bugfix to load image, cleanup building system.
[gpiv.git] / configure
blob9fccbd331c750305b7e29a63298b344795108305
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for gpiv 0.6.1.
5 # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gpiv>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 as_nl='
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86 else
87 as_unset=false
91 # IFS
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" "" $as_nl"
98 # Find who we are. Look in the path if we contain no directory separator.
99 case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115 as_myself=$0
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140 else
141 as_expr=false
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146 else
147 as_basename=false
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
161 /^X\/\(\/\/\)$/{
162 s//\1/
165 /^X\/\(\/\).*/{
166 s//\1/
169 s/.*/./; q'`
171 # CDPATH.
172 $as_unset CDPATH
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178 else
179 as_have_required=no
182 if test $as_have_required = yes && (eval ":
183 (as_func_return () {
184 (exit \$1)
186 as_func_success () {
187 as_func_return 0
189 as_func_failure () {
190 as_func_return 1
192 as_func_ret_success () {
193 return 0
195 as_func_ret_failure () {
196 return 1
199 exitcode=0
200 if as_func_success; then
202 else
203 exitcode=1
204 echo as_func_success failed.
207 if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
212 if as_func_ret_success; then
214 else
215 exitcode=1
216 echo as_func_ret_success failed.
219 if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 else
227 exitcode=1
228 echo positional parameters were not saved.
231 test \$exitcode = 0) || { (exit 1); exit 1; }
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
240 else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253 done
254 IFS=$as_save_IFS
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 _ASEOF
278 }; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289 else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292 esac
298 (as_func_return () {
299 (exit $1)
301 as_func_success () {
302 as_func_return 0
304 as_func_failure () {
305 as_func_return 1
307 as_func_ret_success () {
308 return 0
310 as_func_ret_failure () {
311 return 1
314 exitcode=0
315 if as_func_success; then
317 else
318 exitcode=1
319 echo as_func_success failed.
322 if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
327 if as_func_ret_success; then
329 else
330 exitcode=1
331 echo as_func_ret_success failed.
334 if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 else
342 exitcode=1
343 echo positional parameters were not saved.
346 test $exitcode = 0) || { (exit 1); exit 1; }
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
354 _ASEOF
355 }; then
356 break
361 done
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
387 (eval "as_func_return () {
388 (exit \$1)
390 as_func_success () {
391 as_func_return 0
393 as_func_failure () {
394 as_func_return 1
396 as_func_ret_success () {
397 return 0
399 as_func_ret_failure () {
400 return 1
403 exitcode=0
404 if as_func_success; then
406 else
407 exitcode=1
408 echo as_func_success failed.
411 if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
416 if as_func_ret_success; then
418 else
419 exitcode=1
420 echo as_func_ret_success failed.
423 if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 else
431 exitcode=1
432 echo positional parameters were not saved.
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
468 :lineno
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490 else
491 as_dirname=false
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
502 ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507 else
508 as_expr=false
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514 else
515 rm -f conf$$.dir
516 mkdir conf$$.dir 2>/dev/null
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
530 as_ln_s='cp -p'
532 else
533 as_ln_s='cp -p'
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
538 if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540 else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
545 if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547 else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
566 as_executable_p=$as_test_x
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
576 exec 7<&0 </dev/null 6>&1
578 # Name of the host.
579 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
580 # so uname gets run too.
581 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 # Initializations.
586 ac_default_prefix=/usr/local
587 ac_clean_files=
588 ac_config_libobj_dir=.
589 LIBOBJS=
590 cross_compiling=no
591 subdirs=
592 MFLAGS=
593 MAKEFLAGS=
594 SHELL=${CONFIG_SHELL-/bin/sh}
596 # Identity of this package.
597 PACKAGE_NAME='gpiv'
598 PACKAGE_TARNAME='gpiv'
599 PACKAGE_VERSION='0.6.1'
600 PACKAGE_STRING='gpiv 0.6.1'
601 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=gpiv'
603 # Factoring default headers for most tests.
604 ac_includes_default="\
605 #include <stdio.h>
606 #ifdef HAVE_SYS_TYPES_H
607 # include <sys/types.h>
608 #endif
609 #ifdef HAVE_SYS_STAT_H
610 # include <sys/stat.h>
611 #endif
612 #ifdef STDC_HEADERS
613 # include <stdlib.h>
614 # include <stddef.h>
615 #else
616 # ifdef HAVE_STDLIB_H
617 # include <stdlib.h>
618 # endif
619 #endif
620 #ifdef HAVE_STRING_H
621 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 # include <memory.h>
623 # endif
624 # include <string.h>
625 #endif
626 #ifdef HAVE_STRINGS_H
627 # include <strings.h>
628 #endif
629 #ifdef HAVE_INTTYPES_H
630 # include <inttypes.h>
631 #endif
632 #ifdef HAVE_STDINT_H
633 # include <stdint.h>
634 #endif
635 #ifdef HAVE_UNISTD_H
636 # include <unistd.h>
637 #endif"
639 ac_subst_vars='LTLIBOBJS
640 LIBOBJS
641 DEBUG
642 CANVAS_AA
643 OVERRIDE_IMAGE_HEIGHT_MAX
644 OVERRIDE_IMAGE_WIDTH_MAX
645 K_TOPDIR
646 RTA_TOPDIR
647 HAVE_CONTROL_FALSE
648 HAVE_CONTROL_TRUE
649 CONTROL
650 ENABLE_DAC
651 ENABLE_TRIG
652 ENABLE_CAM
654 MPIRUN
655 ENABLE_MPI_RR
656 ENABLE_MPI
657 ALL_LINGUAS
658 INTLTOOL_PERL
659 MSGMERGE
660 INTLTOOL_POLICY_RULE
661 INTLTOOL_SERVICE_RULE
662 INTLTOOL_THEME_RULE
663 INTLTOOL_SCHEMAS_RULE
664 INTLTOOL_CAVES_RULE
665 INTLTOOL_XML_NOMERGE_RULE
666 INTLTOOL_XML_RULE
667 INTLTOOL_KBD_RULE
668 INTLTOOL_XAM_RULE
669 INTLTOOL_UI_RULE
670 INTLTOOL_SOUNDLIST_RULE
671 INTLTOOL_SHEET_RULE
672 INTLTOOL_SERVER_RULE
673 INTLTOOL_PONG_RULE
674 INTLTOOL_OAF_RULE
675 INTLTOOL_PROP_RULE
676 INTLTOOL_KEYS_RULE
677 INTLTOOL_DIRECTORY_RULE
678 INTLTOOL_DESKTOP_RULE
679 INTLTOOL_EXTRACT
680 INTLTOOL_MERGE
681 INTLTOOL_UPDATE
682 MKINSTALLDIRS
683 POSUB
684 POFILES
685 PO_IN_DATADIR_FALSE
686 PO_IN_DATADIR_TRUE
687 INTLLIBS
688 INSTOBJEXT
689 GMOFILES
690 DATADIRNAME
691 CATOBJEXT
692 CATALOGS
693 XGETTEXT
694 GMSGFMT
695 MSGFMT_OPTS
696 MSGFMT
697 USE_NLS
698 GETTEXT_PACKAGE
699 GPIV_LIBS
700 GPIV_CFLAGS
701 GPIV_UI_LIBS
702 GPIV_UI_CFLAGS
703 PKG_CONFIG
704 EGREP
705 GREP
707 am__fastdepCC_FALSE
708 am__fastdepCC_TRUE
709 CCDEPMODE
710 AMDEPBACKSLASH
711 AMDEP_FALSE
712 AMDEP_TRUE
713 am__quote
714 am__include
715 DEPDIR
716 OBJEXT
717 EXEEXT
718 ac_ct_CC
719 CPPFLAGS
720 LDFLAGS
721 CFLAGS
723 MAINT
724 MAINTAINER_MODE_FALSE
725 MAINTAINER_MODE_TRUE
726 am__untar
727 am__tar
728 AMTAR
729 am__leading_dot
730 SET_MAKE
732 mkdir_p
733 MKDIR_P
734 INSTALL_STRIP_PROGRAM
735 STRIP
736 install_sh
737 MAKEINFO
738 AUTOHEADER
739 AUTOMAKE
740 AUTOCONF
741 ACLOCAL
742 VERSION
743 PACKAGE
744 CYGPATH_W
745 am__isrc
746 INSTALL_DATA
747 INSTALL_SCRIPT
748 INSTALL_PROGRAM
749 target_alias
750 host_alias
751 build_alias
752 LIBS
753 ECHO_T
754 ECHO_N
755 ECHO_C
756 DEFS
757 mandir
758 localedir
759 libdir
760 psdir
761 pdfdir
762 dvidir
763 htmldir
764 infodir
765 docdir
766 oldincludedir
767 includedir
768 localstatedir
769 sharedstatedir
770 sysconfdir
771 datadir
772 datarootdir
773 libexecdir
774 sbindir
775 bindir
776 program_transform_name
777 prefix
778 exec_prefix
779 PACKAGE_BUGREPORT
780 PACKAGE_STRING
781 PACKAGE_VERSION
782 PACKAGE_TARNAME
783 PACKAGE_NAME
784 PATH_SEPARATOR
785 SHELL'
786 ac_subst_files=''
787 ac_user_opts='
788 enable_option_checking
789 enable_maintainer_mode
790 enable_dependency_tracking
791 enable_nls
792 enable_mpi
793 enable_rr
794 enable_cam
795 enable_trig
796 enable_rta
797 enable_k
798 enable_img_width
799 enable_img_height
800 enable_canvas_aa
801 enable_debug
803 ac_precious_vars='build_alias
804 host_alias
805 target_alias
807 CFLAGS
808 LDFLAGS
809 LIBS
810 CPPFLAGS
812 PKG_CONFIG
813 GPIV_UI_CFLAGS
814 GPIV_UI_LIBS
815 GPIV_CFLAGS
816 GPIV_LIBS'
819 # Initialize some variables set by options.
820 ac_init_help=
821 ac_init_version=false
822 ac_unrecognized_opts=
823 ac_unrecognized_sep=
824 # The variables have the same names as the options, with
825 # dashes changed to underlines.
826 cache_file=/dev/null
827 exec_prefix=NONE
828 no_create=
829 no_recursion=
830 prefix=NONE
831 program_prefix=NONE
832 program_suffix=NONE
833 program_transform_name=s,x,x,
834 silent=
835 site=
836 srcdir=
837 verbose=
838 x_includes=NONE
839 x_libraries=NONE
841 # Installation directory options.
842 # These are left unexpanded so users can "make install exec_prefix=/foo"
843 # and all the variables that are supposed to be based on exec_prefix
844 # by default will actually change.
845 # Use braces instead of parens because sh, perl, etc. also accept them.
846 # (The list follows the same order as the GNU Coding Standards.)
847 bindir='${exec_prefix}/bin'
848 sbindir='${exec_prefix}/sbin'
849 libexecdir='${exec_prefix}/libexec'
850 datarootdir='${prefix}/share'
851 datadir='${datarootdir}'
852 sysconfdir='${prefix}/etc'
853 sharedstatedir='${prefix}/com'
854 localstatedir='${prefix}/var'
855 includedir='${prefix}/include'
856 oldincludedir='/usr/include'
857 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858 infodir='${datarootdir}/info'
859 htmldir='${docdir}'
860 dvidir='${docdir}'
861 pdfdir='${docdir}'
862 psdir='${docdir}'
863 libdir='${exec_prefix}/lib'
864 localedir='${datarootdir}/locale'
865 mandir='${datarootdir}/man'
867 ac_prev=
868 ac_dashdash=
869 for ac_option
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
873 eval $ac_prev=\$ac_option
874 ac_prev=
875 continue
878 case $ac_option in
879 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880 *) ac_optarg=yes ;;
881 esac
883 # Accept the important Cygnus configure options, so we can diagnose typos.
885 case $ac_dashdash$ac_option in
887 ac_dashdash=yes ;;
889 -bindir | --bindir | --bindi | --bind | --bin | --bi)
890 ac_prev=bindir ;;
891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892 bindir=$ac_optarg ;;
894 -build | --build | --buil | --bui | --bu)
895 ac_prev=build_alias ;;
896 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897 build_alias=$ac_optarg ;;
899 -cache-file | --cache-file | --cache-fil | --cache-fi \
900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901 ac_prev=cache_file ;;
902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904 cache_file=$ac_optarg ;;
906 --config-cache | -C)
907 cache_file=config.cache ;;
909 -datadir | --datadir | --datadi | --datad)
910 ac_prev=datadir ;;
911 -datadir=* | --datadir=* | --datadi=* | --datad=*)
912 datadir=$ac_optarg ;;
914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915 | --dataroo | --dataro | --datar)
916 ac_prev=datarootdir ;;
917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919 datarootdir=$ac_optarg ;;
921 -disable-* | --disable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
926 { (exit 1); exit 1; }; }
927 ac_useropt_orig=$ac_useropt
928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
931 "enable_$ac_useropt"
932 "*) ;;
933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
934 ac_unrecognized_sep=', ';;
935 esac
936 eval enable_$ac_useropt=no ;;
938 -docdir | --docdir | --docdi | --doc | --do)
939 ac_prev=docdir ;;
940 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
941 docdir=$ac_optarg ;;
943 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
944 ac_prev=dvidir ;;
945 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
946 dvidir=$ac_optarg ;;
948 -enable-* | --enable-*)
949 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
950 # Reject names that are not valid shell variable names.
951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
953 { (exit 1); exit 1; }; }
954 ac_useropt_orig=$ac_useropt
955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
958 "enable_$ac_useropt"
959 "*) ;;
960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
961 ac_unrecognized_sep=', ';;
962 esac
963 eval enable_$ac_useropt=\$ac_optarg ;;
965 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
966 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
967 | --exec | --exe | --ex)
968 ac_prev=exec_prefix ;;
969 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
970 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
971 | --exec=* | --exe=* | --ex=*)
972 exec_prefix=$ac_optarg ;;
974 -gas | --gas | --ga | --g)
975 # Obsolete; use --with-gas.
976 with_gas=yes ;;
978 -help | --help | --hel | --he | -h)
979 ac_init_help=long ;;
980 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
981 ac_init_help=recursive ;;
982 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
983 ac_init_help=short ;;
985 -host | --host | --hos | --ho)
986 ac_prev=host_alias ;;
987 -host=* | --host=* | --hos=* | --ho=*)
988 host_alias=$ac_optarg ;;
990 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
991 ac_prev=htmldir ;;
992 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
993 | --ht=*)
994 htmldir=$ac_optarg ;;
996 -includedir | --includedir | --includedi | --included | --include \
997 | --includ | --inclu | --incl | --inc)
998 ac_prev=includedir ;;
999 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1000 | --includ=* | --inclu=* | --incl=* | --inc=*)
1001 includedir=$ac_optarg ;;
1003 -infodir | --infodir | --infodi | --infod | --info | --inf)
1004 ac_prev=infodir ;;
1005 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1006 infodir=$ac_optarg ;;
1008 -libdir | --libdir | --libdi | --libd)
1009 ac_prev=libdir ;;
1010 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1011 libdir=$ac_optarg ;;
1013 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1014 | --libexe | --libex | --libe)
1015 ac_prev=libexecdir ;;
1016 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1017 | --libexe=* | --libex=* | --libe=*)
1018 libexecdir=$ac_optarg ;;
1020 -localedir | --localedir | --localedi | --localed | --locale)
1021 ac_prev=localedir ;;
1022 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1023 localedir=$ac_optarg ;;
1025 -localstatedir | --localstatedir | --localstatedi | --localstated \
1026 | --localstate | --localstat | --localsta | --localst | --locals)
1027 ac_prev=localstatedir ;;
1028 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1029 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1030 localstatedir=$ac_optarg ;;
1032 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1033 ac_prev=mandir ;;
1034 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1035 mandir=$ac_optarg ;;
1037 -nfp | --nfp | --nf)
1038 # Obsolete; use --without-fp.
1039 with_fp=no ;;
1041 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1042 | --no-cr | --no-c | -n)
1043 no_create=yes ;;
1045 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1046 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1047 no_recursion=yes ;;
1049 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1050 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1051 | --oldin | --oldi | --old | --ol | --o)
1052 ac_prev=oldincludedir ;;
1053 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1054 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1055 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1056 oldincludedir=$ac_optarg ;;
1058 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1059 ac_prev=prefix ;;
1060 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1061 prefix=$ac_optarg ;;
1063 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1064 | --program-pre | --program-pr | --program-p)
1065 ac_prev=program_prefix ;;
1066 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1067 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1068 program_prefix=$ac_optarg ;;
1070 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1071 | --program-suf | --program-su | --program-s)
1072 ac_prev=program_suffix ;;
1073 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1074 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1075 program_suffix=$ac_optarg ;;
1077 -program-transform-name | --program-transform-name \
1078 | --program-transform-nam | --program-transform-na \
1079 | --program-transform-n | --program-transform- \
1080 | --program-transform | --program-transfor \
1081 | --program-transfo | --program-transf \
1082 | --program-trans | --program-tran \
1083 | --progr-tra | --program-tr | --program-t)
1084 ac_prev=program_transform_name ;;
1085 -program-transform-name=* | --program-transform-name=* \
1086 | --program-transform-nam=* | --program-transform-na=* \
1087 | --program-transform-n=* | --program-transform-=* \
1088 | --program-transform=* | --program-transfor=* \
1089 | --program-transfo=* | --program-transf=* \
1090 | --program-trans=* | --program-tran=* \
1091 | --progr-tra=* | --program-tr=* | --program-t=*)
1092 program_transform_name=$ac_optarg ;;
1094 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1095 ac_prev=pdfdir ;;
1096 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1097 pdfdir=$ac_optarg ;;
1099 -psdir | --psdir | --psdi | --psd | --ps)
1100 ac_prev=psdir ;;
1101 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1102 psdir=$ac_optarg ;;
1104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1105 | -silent | --silent | --silen | --sile | --sil)
1106 silent=yes ;;
1108 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1109 ac_prev=sbindir ;;
1110 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1111 | --sbi=* | --sb=*)
1112 sbindir=$ac_optarg ;;
1114 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1115 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1116 | --sharedst | --shareds | --shared | --share | --shar \
1117 | --sha | --sh)
1118 ac_prev=sharedstatedir ;;
1119 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1120 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1121 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1122 | --sha=* | --sh=*)
1123 sharedstatedir=$ac_optarg ;;
1125 -site | --site | --sit)
1126 ac_prev=site ;;
1127 -site=* | --site=* | --sit=*)
1128 site=$ac_optarg ;;
1130 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1131 ac_prev=srcdir ;;
1132 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1133 srcdir=$ac_optarg ;;
1135 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1136 | --syscon | --sysco | --sysc | --sys | --sy)
1137 ac_prev=sysconfdir ;;
1138 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1139 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1140 sysconfdir=$ac_optarg ;;
1142 -target | --target | --targe | --targ | --tar | --ta | --t)
1143 ac_prev=target_alias ;;
1144 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1145 target_alias=$ac_optarg ;;
1147 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1148 verbose=yes ;;
1150 -version | --version | --versio | --versi | --vers | -V)
1151 ac_init_version=: ;;
1153 -with-* | --with-*)
1154 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1158 { (exit 1); exit 1; }; }
1159 ac_useropt_orig=$ac_useropt
1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1163 "with_$ac_useropt"
1164 "*) ;;
1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1166 ac_unrecognized_sep=', ';;
1167 esac
1168 eval with_$ac_useropt=\$ac_optarg ;;
1170 -without-* | --without-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1175 { (exit 1); exit 1; }; }
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1180 "with_$ac_useropt"
1181 "*) ;;
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1184 esac
1185 eval with_$ac_useropt=no ;;
1187 --x)
1188 # Obsolete; use --with-x.
1189 with_x=yes ;;
1191 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1192 | --x-incl | --x-inc | --x-in | --x-i)
1193 ac_prev=x_includes ;;
1194 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1195 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1196 x_includes=$ac_optarg ;;
1198 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1199 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1200 ac_prev=x_libraries ;;
1201 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1202 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1203 x_libraries=$ac_optarg ;;
1205 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1206 Try \`$0 --help' for more information." >&2
1207 { (exit 1); exit 1; }; }
1210 *=*)
1211 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1212 # Reject names that are not valid shell variable names.
1213 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1214 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1215 { (exit 1); exit 1; }; }
1216 eval $ac_envvar=\$ac_optarg
1217 export $ac_envvar ;;
1220 # FIXME: should be removed in autoconf 3.0.
1221 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1222 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1224 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1227 esac
1228 done
1230 if test -n "$ac_prev"; then
1231 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1232 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1233 { (exit 1); exit 1; }; }
1236 if test -n "$ac_unrecognized_opts"; then
1237 case $enable_option_checking in
1238 no) ;;
1239 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1240 { (exit 1); exit 1; }; } ;;
1241 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1242 esac
1245 # Check all directory arguments for consistency.
1246 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1247 datadir sysconfdir sharedstatedir localstatedir includedir \
1248 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1249 libdir localedir mandir
1251 eval ac_val=\$$ac_var
1252 # Remove trailing slashes.
1253 case $ac_val in
1254 */ )
1255 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1256 eval $ac_var=\$ac_val;;
1257 esac
1258 # Be sure to have absolute directory names.
1259 case $ac_val in
1260 [\\/$]* | ?:[\\/]* ) continue;;
1261 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1262 esac
1263 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1264 { (exit 1); exit 1; }; }
1265 done
1267 # There might be people who depend on the old broken behavior: `$host'
1268 # used to hold the argument of --host etc.
1269 # FIXME: To remove some day.
1270 build=$build_alias
1271 host=$host_alias
1272 target=$target_alias
1274 # FIXME: To remove some day.
1275 if test "x$host_alias" != x; then
1276 if test "x$build_alias" = x; then
1277 cross_compiling=maybe
1278 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1279 If a cross compiler is detected then cross compile mode will be used." >&2
1280 elif test "x$build_alias" != "x$host_alias"; then
1281 cross_compiling=yes
1285 ac_tool_prefix=
1286 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1288 test "$silent" = yes && exec 6>/dev/null
1291 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1292 ac_ls_di=`ls -di .` &&
1293 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1294 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1295 { (exit 1); exit 1; }; }
1296 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1297 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1298 { (exit 1); exit 1; }; }
1301 # Find the source files, if location was not specified.
1302 if test -z "$srcdir"; then
1303 ac_srcdir_defaulted=yes
1304 # Try the directory containing this script, then the parent directory.
1305 ac_confdir=`$as_dirname -- "$as_myself" ||
1306 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1307 X"$as_myself" : 'X\(//\)[^/]' \| \
1308 X"$as_myself" : 'X\(//\)$' \| \
1309 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1310 $as_echo X"$as_myself" |
1311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1312 s//\1/
1315 /^X\(\/\/\)[^/].*/{
1316 s//\1/
1319 /^X\(\/\/\)$/{
1320 s//\1/
1323 /^X\(\/\).*/{
1324 s//\1/
1327 s/.*/./; q'`
1328 srcdir=$ac_confdir
1329 if test ! -r "$srcdir/$ac_unique_file"; then
1330 srcdir=..
1332 else
1333 ac_srcdir_defaulted=no
1335 if test ! -r "$srcdir/$ac_unique_file"; then
1336 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1337 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1338 { (exit 1); exit 1; }; }
1340 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1341 ac_abs_confdir=`(
1342 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1343 { (exit 1); exit 1; }; }
1344 pwd)`
1345 # When building in place, set srcdir=.
1346 if test "$ac_abs_confdir" = "$ac_pwd"; then
1347 srcdir=.
1349 # Remove unnecessary trailing slashes from srcdir.
1350 # Double slashes in file names in object file debugging info
1351 # mess up M-x gdb in Emacs.
1352 case $srcdir in
1353 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1354 esac
1355 for ac_var in $ac_precious_vars; do
1356 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1357 eval ac_env_${ac_var}_value=\$${ac_var}
1358 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1360 done
1363 # Report the --help message.
1365 if test "$ac_init_help" = "long"; then
1366 # Omit some internal or obsolete options to make the list less imposing.
1367 # This message is too long to be a string in the A/UX 3.1 sh.
1368 cat <<_ACEOF
1369 \`configure' configures gpiv 0.6.1 to adapt to many kinds of systems.
1371 Usage: $0 [OPTION]... [VAR=VALUE]...
1373 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1374 VAR=VALUE. See below for descriptions of some of the useful variables.
1376 Defaults for the options are specified in brackets.
1378 Configuration:
1379 -h, --help display this help and exit
1380 --help=short display options specific to this package
1381 --help=recursive display the short help of all the included packages
1382 -V, --version display version information and exit
1383 -q, --quiet, --silent do not print \`checking...' messages
1384 --cache-file=FILE cache test results in FILE [disabled]
1385 -C, --config-cache alias for \`--cache-file=config.cache'
1386 -n, --no-create do not create output files
1387 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1389 Installation directories:
1390 --prefix=PREFIX install architecture-independent files in PREFIX
1391 [$ac_default_prefix]
1392 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1393 [PREFIX]
1395 By default, \`make install' will install all the files in
1396 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1397 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1398 for instance \`--prefix=\$HOME'.
1400 For better control, use the options below.
1402 Fine tuning of the installation directories:
1403 --bindir=DIR user executables [EPREFIX/bin]
1404 --sbindir=DIR system admin executables [EPREFIX/sbin]
1405 --libexecdir=DIR program executables [EPREFIX/libexec]
1406 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1407 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1408 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1409 --libdir=DIR object code libraries [EPREFIX/lib]
1410 --includedir=DIR C header files [PREFIX/include]
1411 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1412 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1413 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1414 --infodir=DIR info documentation [DATAROOTDIR/info]
1415 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1416 --mandir=DIR man documentation [DATAROOTDIR/man]
1417 --docdir=DIR documentation root [DATAROOTDIR/doc/gpiv]
1418 --htmldir=DIR html documentation [DOCDIR]
1419 --dvidir=DIR dvi documentation [DOCDIR]
1420 --pdfdir=DIR pdf documentation [DOCDIR]
1421 --psdir=DIR ps documentation [DOCDIR]
1422 _ACEOF
1424 cat <<\_ACEOF
1426 Program names:
1427 --program-prefix=PREFIX prepend PREFIX to installed program names
1428 --program-suffix=SUFFIX append SUFFIX to installed program names
1429 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1430 _ACEOF
1433 if test -n "$ac_init_help"; then
1434 case $ac_init_help in
1435 short | recursive ) echo "Configuration of gpiv 0.6.1:";;
1436 esac
1437 cat <<\_ACEOF
1439 Optional Features:
1440 --disable-option-checking ignore unrecognized --enable/--with options
1441 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1442 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1443 --enable-maintainer-mode enable make rules and dependencies not useful
1444 (and sometimes confusing) to the casual installer
1445 --disable-dependency-tracking speeds up one-time build
1446 --enable-dependency-tracking do not reject slow dependency extractors
1447 --disable-nls do not use Native Language Support
1448 --enable-mpi enable Message Protocol Interface (MPI)
1449 --enable-rr checks also for MPI-enabled gpiv_rr
1450 --enable-cam enable data acquisition
1451 --enable-trig enable (realtime) triggering
1452 --enable-rta=RTA_DIR place where the RTAI code resides
1453 (default /usr/lib/realtime)
1454 --enable-k=K_DIR place where the installed kernel
1455 headers resides
1456 (default /usr/src/kernel-headers-2.4.27-adeos)
1457 --enable-img-width=WIDTH maximum image width to be used (default SVGA)
1458 --enable-img-height=HEIGHT maximum image height to be used (default SVGA)
1459 --enable-canvas-aa Use Anti Aliased canvas for viewer; slower but
1460 better displaying of image and resulting data
1461 --enable-debug debug version (more verbose)
1463 Some influential environment variables:
1464 CC C compiler command
1465 CFLAGS C compiler flags
1466 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1467 nonstandard directory <lib dir>
1468 LIBS libraries to pass to the linker, e.g. -l<library>
1469 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1470 you have headers in a nonstandard directory <include dir>
1471 CPP C preprocessor
1472 PKG_CONFIG path to pkg-config utility
1473 GPIV_UI_CFLAGS
1474 C compiler flags for GPIV_UI, overriding pkg-config
1475 GPIV_UI_LIBS
1476 linker flags for GPIV_UI, overriding pkg-config
1477 GPIV_CFLAGS C compiler flags for GPIV, overriding pkg-config
1478 GPIV_LIBS linker flags for GPIV, overriding pkg-config
1480 Use these variables to override the choices made by `configure' or to help
1481 it to find libraries and programs with nonstandard names/locations.
1483 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gpiv>.
1484 _ACEOF
1485 ac_status=$?
1488 if test "$ac_init_help" = "recursive"; then
1489 # If there are subdirs, report their specific --help.
1490 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1491 test -d "$ac_dir" ||
1492 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1493 continue
1494 ac_builddir=.
1496 case "$ac_dir" in
1497 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1500 # A ".." for each directory in $ac_dir_suffix.
1501 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1502 case $ac_top_builddir_sub in
1503 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1505 esac ;;
1506 esac
1507 ac_abs_top_builddir=$ac_pwd
1508 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1509 # for backward compatibility:
1510 ac_top_builddir=$ac_top_build_prefix
1512 case $srcdir in
1513 .) # We are building in place.
1514 ac_srcdir=.
1515 ac_top_srcdir=$ac_top_builddir_sub
1516 ac_abs_top_srcdir=$ac_pwd ;;
1517 [\\/]* | ?:[\\/]* ) # Absolute name.
1518 ac_srcdir=$srcdir$ac_dir_suffix;
1519 ac_top_srcdir=$srcdir
1520 ac_abs_top_srcdir=$srcdir ;;
1521 *) # Relative name.
1522 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1523 ac_top_srcdir=$ac_top_build_prefix$srcdir
1524 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1525 esac
1526 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1528 cd "$ac_dir" || { ac_status=$?; continue; }
1529 # Check for guested configure.
1530 if test -f "$ac_srcdir/configure.gnu"; then
1531 echo &&
1532 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1533 elif test -f "$ac_srcdir/configure"; then
1534 echo &&
1535 $SHELL "$ac_srcdir/configure" --help=recursive
1536 else
1537 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1538 fi || ac_status=$?
1539 cd "$ac_pwd" || { ac_status=$?; break; }
1540 done
1543 test -n "$ac_init_help" && exit $ac_status
1544 if $ac_init_version; then
1545 cat <<\_ACEOF
1546 gpiv configure 0.6.1
1547 generated by GNU Autoconf 2.63
1549 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1550 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1551 This configure script is free software; the Free Software Foundation
1552 gives unlimited permission to copy, distribute and modify it.
1553 _ACEOF
1554 exit
1556 cat >config.log <<_ACEOF
1557 This file contains any messages produced by compilers while
1558 running configure, to aid debugging if configure makes a mistake.
1560 It was created by gpiv $as_me 0.6.1, which was
1561 generated by GNU Autoconf 2.63. Invocation command line was
1563 $ $0 $@
1565 _ACEOF
1566 exec 5>>config.log
1568 cat <<_ASUNAME
1569 ## --------- ##
1570 ## Platform. ##
1571 ## --------- ##
1573 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1574 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1575 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1576 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1577 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1579 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1580 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1582 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1583 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1584 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1585 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1586 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1587 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1588 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1590 _ASUNAME
1592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1593 for as_dir in $PATH
1595 IFS=$as_save_IFS
1596 test -z "$as_dir" && as_dir=.
1597 $as_echo "PATH: $as_dir"
1598 done
1599 IFS=$as_save_IFS
1601 } >&5
1603 cat >&5 <<_ACEOF
1606 ## ----------- ##
1607 ## Core tests. ##
1608 ## ----------- ##
1610 _ACEOF
1613 # Keep a trace of the command line.
1614 # Strip out --no-create and --no-recursion so they do not pile up.
1615 # Strip out --silent because we don't want to record it for future runs.
1616 # Also quote any args containing shell meta-characters.
1617 # Make two passes to allow for proper duplicate-argument suppression.
1618 ac_configure_args=
1619 ac_configure_args0=
1620 ac_configure_args1=
1621 ac_must_keep_next=false
1622 for ac_pass in 1 2
1624 for ac_arg
1626 case $ac_arg in
1627 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1628 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1629 | -silent | --silent | --silen | --sile | --sil)
1630 continue ;;
1631 *\'*)
1632 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1633 esac
1634 case $ac_pass in
1635 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1637 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1638 if test $ac_must_keep_next = true; then
1639 ac_must_keep_next=false # Got value, back to normal.
1640 else
1641 case $ac_arg in
1642 *=* | --config-cache | -C | -disable-* | --disable-* \
1643 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1644 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1645 | -with-* | --with-* | -without-* | --without-* | --x)
1646 case "$ac_configure_args0 " in
1647 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1648 esac
1650 -* ) ac_must_keep_next=true ;;
1651 esac
1653 ac_configure_args="$ac_configure_args '$ac_arg'"
1655 esac
1656 done
1657 done
1658 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1659 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1661 # When interrupted or exit'd, cleanup temporary files, and complete
1662 # config.log. We remove comments because anyway the quotes in there
1663 # would cause problems or look ugly.
1664 # WARNING: Use '\'' to represent an apostrophe within the trap.
1665 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1666 trap 'exit_status=$?
1667 # Save into config.log some information that might help in debugging.
1669 echo
1671 cat <<\_ASBOX
1672 ## ---------------- ##
1673 ## Cache variables. ##
1674 ## ---------------- ##
1675 _ASBOX
1676 echo
1677 # The following way of writing the cache mishandles newlines in values,
1679 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1680 eval ac_val=\$$ac_var
1681 case $ac_val in #(
1682 *${as_nl}*)
1683 case $ac_var in #(
1684 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1685 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1686 esac
1687 case $ac_var in #(
1688 _ | IFS | as_nl) ;; #(
1689 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1690 *) $as_unset $ac_var ;;
1691 esac ;;
1692 esac
1693 done
1694 (set) 2>&1 |
1695 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1696 *${as_nl}ac_space=\ *)
1697 sed -n \
1698 "s/'\''/'\''\\\\'\'''\''/g;
1699 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1700 ;; #(
1702 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1704 esac |
1705 sort
1707 echo
1709 cat <<\_ASBOX
1710 ## ----------------- ##
1711 ## Output variables. ##
1712 ## ----------------- ##
1713 _ASBOX
1714 echo
1715 for ac_var in $ac_subst_vars
1717 eval ac_val=\$$ac_var
1718 case $ac_val in
1719 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1720 esac
1721 $as_echo "$ac_var='\''$ac_val'\''"
1722 done | sort
1723 echo
1725 if test -n "$ac_subst_files"; then
1726 cat <<\_ASBOX
1727 ## ------------------- ##
1728 ## File substitutions. ##
1729 ## ------------------- ##
1730 _ASBOX
1731 echo
1732 for ac_var in $ac_subst_files
1734 eval ac_val=\$$ac_var
1735 case $ac_val in
1736 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1737 esac
1738 $as_echo "$ac_var='\''$ac_val'\''"
1739 done | sort
1740 echo
1743 if test -s confdefs.h; then
1744 cat <<\_ASBOX
1745 ## ----------- ##
1746 ## confdefs.h. ##
1747 ## ----------- ##
1748 _ASBOX
1749 echo
1750 cat confdefs.h
1751 echo
1753 test "$ac_signal" != 0 &&
1754 $as_echo "$as_me: caught signal $ac_signal"
1755 $as_echo "$as_me: exit $exit_status"
1756 } >&5
1757 rm -f core *.core core.conftest.* &&
1758 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1759 exit $exit_status
1761 for ac_signal in 1 2 13 15; do
1762 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1763 done
1764 ac_signal=0
1766 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1767 rm -f -r conftest* confdefs.h
1769 # Predefined preprocessor variables.
1771 cat >>confdefs.h <<_ACEOF
1772 #define PACKAGE_NAME "$PACKAGE_NAME"
1773 _ACEOF
1776 cat >>confdefs.h <<_ACEOF
1777 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1778 _ACEOF
1781 cat >>confdefs.h <<_ACEOF
1782 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1783 _ACEOF
1786 cat >>confdefs.h <<_ACEOF
1787 #define PACKAGE_STRING "$PACKAGE_STRING"
1788 _ACEOF
1791 cat >>confdefs.h <<_ACEOF
1792 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1793 _ACEOF
1796 # Let the site file select an alternate cache file if it wants to.
1797 # Prefer an explicitly selected file to automatically selected ones.
1798 ac_site_file1=NONE
1799 ac_site_file2=NONE
1800 if test -n "$CONFIG_SITE"; then
1801 ac_site_file1=$CONFIG_SITE
1802 elif test "x$prefix" != xNONE; then
1803 ac_site_file1=$prefix/share/config.site
1804 ac_site_file2=$prefix/etc/config.site
1805 else
1806 ac_site_file1=$ac_default_prefix/share/config.site
1807 ac_site_file2=$ac_default_prefix/etc/config.site
1809 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1811 test "x$ac_site_file" = xNONE && continue
1812 if test -r "$ac_site_file"; then
1813 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1814 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1815 sed 's/^/| /' "$ac_site_file" >&5
1816 . "$ac_site_file"
1818 done
1820 if test -r "$cache_file"; then
1821 # Some versions of bash will fail to source /dev/null (special
1822 # files actually), so we avoid doing that.
1823 if test -f "$cache_file"; then
1824 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1825 $as_echo "$as_me: loading cache $cache_file" >&6;}
1826 case $cache_file in
1827 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1828 *) . "./$cache_file";;
1829 esac
1831 else
1832 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1833 $as_echo "$as_me: creating cache $cache_file" >&6;}
1834 >$cache_file
1837 # Check that the precious variables saved in the cache have kept the same
1838 # value.
1839 ac_cache_corrupted=false
1840 for ac_var in $ac_precious_vars; do
1841 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1842 eval ac_new_set=\$ac_env_${ac_var}_set
1843 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1844 eval ac_new_val=\$ac_env_${ac_var}_value
1845 case $ac_old_set,$ac_new_set in
1846 set,)
1847 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1848 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1849 ac_cache_corrupted=: ;;
1850 ,set)
1851 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1852 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1853 ac_cache_corrupted=: ;;
1854 ,);;
1856 if test "x$ac_old_val" != "x$ac_new_val"; then
1857 # differences in whitespace do not lead to failure.
1858 ac_old_val_w=`echo x $ac_old_val`
1859 ac_new_val_w=`echo x $ac_new_val`
1860 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1861 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1862 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1863 ac_cache_corrupted=:
1864 else
1865 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1866 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1867 eval $ac_var=\$ac_old_val
1869 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1870 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1871 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1872 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1873 fi;;
1874 esac
1875 # Pass precious variables to config.status.
1876 if test "$ac_new_set" = set; then
1877 case $ac_new_val in
1878 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1879 *) ac_arg=$ac_var=$ac_new_val ;;
1880 esac
1881 case " $ac_configure_args " in
1882 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1883 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1884 esac
1886 done
1887 if $ac_cache_corrupted; then
1888 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1889 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1890 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1891 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1892 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1893 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1894 { (exit 1); exit 1; }; }
1921 ac_ext=c
1922 ac_cpp='$CPP $CPPFLAGS'
1923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1928 am__api_version='1.10'
1930 ac_aux_dir=
1931 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1932 if test -f "$ac_dir/install-sh"; then
1933 ac_aux_dir=$ac_dir
1934 ac_install_sh="$ac_aux_dir/install-sh -c"
1935 break
1936 elif test -f "$ac_dir/install.sh"; then
1937 ac_aux_dir=$ac_dir
1938 ac_install_sh="$ac_aux_dir/install.sh -c"
1939 break
1940 elif test -f "$ac_dir/shtool"; then
1941 ac_aux_dir=$ac_dir
1942 ac_install_sh="$ac_aux_dir/shtool install -c"
1943 break
1945 done
1946 if test -z "$ac_aux_dir"; then
1947 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1948 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1949 { (exit 1); exit 1; }; }
1952 # These three variables are undocumented and unsupported,
1953 # and are intended to be withdrawn in a future Autoconf release.
1954 # They can cause serious problems if a builder's source tree is in a directory
1955 # whose full name contains unusual characters.
1956 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1957 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1958 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1961 # Find a good install program. We prefer a C program (faster),
1962 # so one script is as good as another. But avoid the broken or
1963 # incompatible versions:
1964 # SysV /etc/install, /usr/sbin/install
1965 # SunOS /usr/etc/install
1966 # IRIX /sbin/install
1967 # AIX /bin/install
1968 # AmigaOS /C/install, which installs bootblocks on floppy discs
1969 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1970 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1971 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1972 # OS/2's system install, which has a completely different semantic
1973 # ./install, which can be erroneously created by make from ./install.sh.
1974 # Reject install programs that cannot install multiple files.
1975 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1976 $as_echo_n "checking for a BSD-compatible install... " >&6; }
1977 if test -z "$INSTALL"; then
1978 if test "${ac_cv_path_install+set}" = set; then
1979 $as_echo_n "(cached) " >&6
1980 else
1981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982 for as_dir in $PATH
1984 IFS=$as_save_IFS
1985 test -z "$as_dir" && as_dir=.
1986 # Account for people who put trailing slashes in PATH elements.
1987 case $as_dir/ in
1988 ./ | .// | /cC/* | \
1989 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1990 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1991 /usr/ucb/* ) ;;
1993 # OSF1 and SCO ODT 3.0 have their own names for install.
1994 # Don't use installbsd from OSF since it installs stuff as root
1995 # by default.
1996 for ac_prog in ginstall scoinst install; do
1997 for ac_exec_ext in '' $ac_executable_extensions; do
1998 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1999 if test $ac_prog = install &&
2000 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2001 # AIX install. It has an incompatible calling convention.
2003 elif test $ac_prog = install &&
2004 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2005 # program-specific install script used by HP pwplus--don't use.
2007 else
2008 rm -rf conftest.one conftest.two conftest.dir
2009 echo one > conftest.one
2010 echo two > conftest.two
2011 mkdir conftest.dir
2012 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2013 test -s conftest.one && test -s conftest.two &&
2014 test -s conftest.dir/conftest.one &&
2015 test -s conftest.dir/conftest.two
2016 then
2017 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2018 break 3
2022 done
2023 done
2025 esac
2027 done
2028 IFS=$as_save_IFS
2030 rm -rf conftest.one conftest.two conftest.dir
2033 if test "${ac_cv_path_install+set}" = set; then
2034 INSTALL=$ac_cv_path_install
2035 else
2036 # As a last resort, use the slow shell script. Don't cache a
2037 # value for INSTALL within a source directory, because that will
2038 # break other packages using the cache if that directory is
2039 # removed, or if the value is a relative name.
2040 INSTALL=$ac_install_sh
2043 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2044 $as_echo "$INSTALL" >&6; }
2046 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2047 # It thinks the first close brace ends the variable substitution.
2048 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2050 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2052 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2054 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2055 $as_echo_n "checking whether build environment is sane... " >&6; }
2056 # Just in case
2057 sleep 1
2058 echo timestamp > conftest.file
2059 # Do `set' in a subshell so we don't clobber the current shell's
2060 # arguments. Must try -L first in case configure is actually a
2061 # symlink; some systems play weird games with the mod time of symlinks
2062 # (eg FreeBSD returns the mod time of the symlink's containing
2063 # directory).
2064 if (
2065 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2066 if test "$*" = "X"; then
2067 # -L didn't work.
2068 set X `ls -t $srcdir/configure conftest.file`
2070 rm -f conftest.file
2071 if test "$*" != "X $srcdir/configure conftest.file" \
2072 && test "$*" != "X conftest.file $srcdir/configure"; then
2074 # If neither matched, then we have a broken ls. This can happen
2075 # if, for instance, CONFIG_SHELL is bash and it inherits a
2076 # broken ls alias from the environment. This has actually
2077 # happened. Such a system could not be considered "sane".
2078 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2079 alias in your environment" >&5
2080 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2081 alias in your environment" >&2;}
2082 { (exit 1); exit 1; }; }
2085 test "$2" = conftest.file
2087 then
2088 # Ok.
2090 else
2091 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2092 Check your system clock" >&5
2093 $as_echo "$as_me: error: newly created file is older than distributed files!
2094 Check your system clock" >&2;}
2095 { (exit 1); exit 1; }; }
2097 { $as_echo "$as_me:$LINENO: result: yes" >&5
2098 $as_echo "yes" >&6; }
2099 test "$program_prefix" != NONE &&
2100 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2101 # Use a double $ so make ignores it.
2102 test "$program_suffix" != NONE &&
2103 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2104 # Double any \ or $.
2105 # By default was `s,x,x', remove it if useless.
2106 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2107 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2109 # expand $ac_aux_dir to an absolute path
2110 am_aux_dir=`cd $ac_aux_dir && pwd`
2112 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2113 # Use eval to expand $SHELL
2114 if eval "$MISSING --run true"; then
2115 am_missing_run="$MISSING --run "
2116 else
2117 am_missing_run=
2118 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2119 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2122 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2123 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2124 if test -z "$MKDIR_P"; then
2125 if test "${ac_cv_path_mkdir+set}" = set; then
2126 $as_echo_n "(cached) " >&6
2127 else
2128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2129 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2131 IFS=$as_save_IFS
2132 test -z "$as_dir" && as_dir=.
2133 for ac_prog in mkdir gmkdir; do
2134 for ac_exec_ext in '' $ac_executable_extensions; do
2135 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2136 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2137 'mkdir (GNU coreutils) '* | \
2138 'mkdir (coreutils) '* | \
2139 'mkdir (fileutils) '4.1*)
2140 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2141 break 3;;
2142 esac
2143 done
2144 done
2145 done
2146 IFS=$as_save_IFS
2150 if test "${ac_cv_path_mkdir+set}" = set; then
2151 MKDIR_P="$ac_cv_path_mkdir -p"
2152 else
2153 # As a last resort, use the slow shell script. Don't cache a
2154 # value for MKDIR_P within a source directory, because that will
2155 # break other packages using the cache if that directory is
2156 # removed, or if the value is a relative name.
2157 test -d ./--version && rmdir ./--version
2158 MKDIR_P="$ac_install_sh -d"
2161 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2162 $as_echo "$MKDIR_P" >&6; }
2164 mkdir_p="$MKDIR_P"
2165 case $mkdir_p in
2166 [\\/$]* | ?:[\\/]*) ;;
2167 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2168 esac
2170 for ac_prog in gawk mawk nawk awk
2172 # Extract the first word of "$ac_prog", so it can be a program name with args.
2173 set dummy $ac_prog; ac_word=$2
2174 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2175 $as_echo_n "checking for $ac_word... " >&6; }
2176 if test "${ac_cv_prog_AWK+set}" = set; then
2177 $as_echo_n "(cached) " >&6
2178 else
2179 if test -n "$AWK"; then
2180 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2181 else
2182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2183 for as_dir in $PATH
2185 IFS=$as_save_IFS
2186 test -z "$as_dir" && as_dir=.
2187 for ac_exec_ext in '' $ac_executable_extensions; do
2188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2189 ac_cv_prog_AWK="$ac_prog"
2190 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2191 break 2
2193 done
2194 done
2195 IFS=$as_save_IFS
2199 AWK=$ac_cv_prog_AWK
2200 if test -n "$AWK"; then
2201 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2202 $as_echo "$AWK" >&6; }
2203 else
2204 { $as_echo "$as_me:$LINENO: result: no" >&5
2205 $as_echo "no" >&6; }
2209 test -n "$AWK" && break
2210 done
2212 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2213 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2214 set x ${MAKE-make}
2215 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2216 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2217 $as_echo_n "(cached) " >&6
2218 else
2219 cat >conftest.make <<\_ACEOF
2220 SHELL = /bin/sh
2221 all:
2222 @echo '@@@%%%=$(MAKE)=@@@%%%'
2223 _ACEOF
2224 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2225 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2226 *@@@%%%=?*=@@@%%%*)
2227 eval ac_cv_prog_make_${ac_make}_set=yes;;
2229 eval ac_cv_prog_make_${ac_make}_set=no;;
2230 esac
2231 rm -f conftest.make
2233 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2234 { $as_echo "$as_me:$LINENO: result: yes" >&5
2235 $as_echo "yes" >&6; }
2236 SET_MAKE=
2237 else
2238 { $as_echo "$as_me:$LINENO: result: no" >&5
2239 $as_echo "no" >&6; }
2240 SET_MAKE="MAKE=${MAKE-make}"
2243 rm -rf .tst 2>/dev/null
2244 mkdir .tst 2>/dev/null
2245 if test -d .tst; then
2246 am__leading_dot=.
2247 else
2248 am__leading_dot=_
2250 rmdir .tst 2>/dev/null
2252 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2253 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2254 # is not polluted with repeated "-I."
2255 am__isrc=' -I$(srcdir)'
2256 # test to see if srcdir already configured
2257 if test -f $srcdir/config.status; then
2258 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2259 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2260 { (exit 1); exit 1; }; }
2264 # test whether we have cygpath
2265 if test -z "$CYGPATH_W"; then
2266 if (cygpath --version) >/dev/null 2>/dev/null; then
2267 CYGPATH_W='cygpath -w'
2268 else
2269 CYGPATH_W=echo
2274 # Define the identity of the package.
2275 PACKAGE=gpiv
2276 VERSION=0.6.1
2279 cat >>confdefs.h <<_ACEOF
2280 #define PACKAGE "$PACKAGE"
2281 _ACEOF
2284 cat >>confdefs.h <<_ACEOF
2285 #define VERSION "$VERSION"
2286 _ACEOF
2288 # Some tools Automake needs.
2290 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2293 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2296 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2299 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2302 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2304 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2306 # Installed binaries are usually stripped using `strip' when the user
2307 # run `make install-strip'. However `strip' might not be the right
2308 # tool to use in cross-compilation environments, therefore Automake
2309 # will honor the `STRIP' environment variable to overrule this program.
2310 if test "$cross_compiling" != no; then
2311 if test -n "$ac_tool_prefix"; then
2312 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2313 set dummy ${ac_tool_prefix}strip; ac_word=$2
2314 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2315 $as_echo_n "checking for $ac_word... " >&6; }
2316 if test "${ac_cv_prog_STRIP+set}" = set; then
2317 $as_echo_n "(cached) " >&6
2318 else
2319 if test -n "$STRIP"; then
2320 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2321 else
2322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2323 for as_dir in $PATH
2325 IFS=$as_save_IFS
2326 test -z "$as_dir" && as_dir=.
2327 for ac_exec_ext in '' $ac_executable_extensions; do
2328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2329 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2330 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2331 break 2
2333 done
2334 done
2335 IFS=$as_save_IFS
2339 STRIP=$ac_cv_prog_STRIP
2340 if test -n "$STRIP"; then
2341 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2342 $as_echo "$STRIP" >&6; }
2343 else
2344 { $as_echo "$as_me:$LINENO: result: no" >&5
2345 $as_echo "no" >&6; }
2350 if test -z "$ac_cv_prog_STRIP"; then
2351 ac_ct_STRIP=$STRIP
2352 # Extract the first word of "strip", so it can be a program name with args.
2353 set dummy strip; ac_word=$2
2354 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2355 $as_echo_n "checking for $ac_word... " >&6; }
2356 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2357 $as_echo_n "(cached) " >&6
2358 else
2359 if test -n "$ac_ct_STRIP"; then
2360 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2361 else
2362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363 for as_dir in $PATH
2365 IFS=$as_save_IFS
2366 test -z "$as_dir" && as_dir=.
2367 for ac_exec_ext in '' $ac_executable_extensions; do
2368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2369 ac_cv_prog_ac_ct_STRIP="strip"
2370 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2371 break 2
2373 done
2374 done
2375 IFS=$as_save_IFS
2379 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2380 if test -n "$ac_ct_STRIP"; then
2381 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2382 $as_echo "$ac_ct_STRIP" >&6; }
2383 else
2384 { $as_echo "$as_me:$LINENO: result: no" >&5
2385 $as_echo "no" >&6; }
2388 if test "x$ac_ct_STRIP" = x; then
2389 STRIP=":"
2390 else
2391 case $cross_compiling:$ac_tool_warned in
2392 yes:)
2393 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2394 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2395 ac_tool_warned=yes ;;
2396 esac
2397 STRIP=$ac_ct_STRIP
2399 else
2400 STRIP="$ac_cv_prog_STRIP"
2404 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2406 # We need awk for the "check" target. The system "awk" is bad on
2407 # some platforms.
2408 # Always define AMTAR for backward compatibility.
2410 AMTAR=${AMTAR-"${am_missing_run}tar"}
2412 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2418 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2419 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2420 # Check whether --enable-maintainer-mode was given.
2421 if test "${enable_maintainer_mode+set}" = set; then
2422 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2423 else
2424 USE_MAINTAINER_MODE=no
2427 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2428 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2429 if test $USE_MAINTAINER_MODE = yes; then
2430 MAINTAINER_MODE_TRUE=
2431 MAINTAINER_MODE_FALSE='#'
2432 else
2433 MAINTAINER_MODE_TRUE='#'
2434 MAINTAINER_MODE_FALSE=
2437 MAINT=$MAINTAINER_MODE_TRUE
2442 DEPDIR="${am__leading_dot}deps"
2444 ac_config_commands="$ac_config_commands depfiles"
2447 am_make=${MAKE-make}
2448 cat > confinc << 'END'
2449 am__doit:
2450 @echo done
2451 .PHONY: am__doit
2453 # If we don't find an include directive, just comment out the code.
2454 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2455 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2456 am__include="#"
2457 am__quote=
2458 _am_result=none
2459 # First try GNU make style include.
2460 echo "include confinc" > confmf
2461 # We grep out `Entering directory' and `Leaving directory'
2462 # messages which can occur if `w' ends up in MAKEFLAGS.
2463 # In particular we don't look at `^make:' because GNU make might
2464 # be invoked under some other name (usually "gmake"), in which
2465 # case it prints its new name instead of `make'.
2466 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2467 am__include=include
2468 am__quote=
2469 _am_result=GNU
2471 # Now try BSD make style include.
2472 if test "$am__include" = "#"; then
2473 echo '.include "confinc"' > confmf
2474 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2475 am__include=.include
2476 am__quote="\""
2477 _am_result=BSD
2482 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2483 $as_echo "$_am_result" >&6; }
2484 rm -f confinc confmf
2486 # Check whether --enable-dependency-tracking was given.
2487 if test "${enable_dependency_tracking+set}" = set; then
2488 enableval=$enable_dependency_tracking;
2491 if test "x$enable_dependency_tracking" != xno; then
2492 am_depcomp="$ac_aux_dir/depcomp"
2493 AMDEPBACKSLASH='\'
2495 if test "x$enable_dependency_tracking" != xno; then
2496 AMDEP_TRUE=
2497 AMDEP_FALSE='#'
2498 else
2499 AMDEP_TRUE='#'
2500 AMDEP_FALSE=
2504 ac_ext=c
2505 ac_cpp='$CPP $CPPFLAGS'
2506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2509 if test -n "$ac_tool_prefix"; then
2510 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2511 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2512 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2513 $as_echo_n "checking for $ac_word... " >&6; }
2514 if test "${ac_cv_prog_CC+set}" = set; then
2515 $as_echo_n "(cached) " >&6
2516 else
2517 if test -n "$CC"; then
2518 ac_cv_prog_CC="$CC" # Let the user override the test.
2519 else
2520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521 for as_dir in $PATH
2523 IFS=$as_save_IFS
2524 test -z "$as_dir" && as_dir=.
2525 for ac_exec_ext in '' $ac_executable_extensions; do
2526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2527 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2528 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2529 break 2
2531 done
2532 done
2533 IFS=$as_save_IFS
2537 CC=$ac_cv_prog_CC
2538 if test -n "$CC"; then
2539 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2540 $as_echo "$CC" >&6; }
2541 else
2542 { $as_echo "$as_me:$LINENO: result: no" >&5
2543 $as_echo "no" >&6; }
2548 if test -z "$ac_cv_prog_CC"; then
2549 ac_ct_CC=$CC
2550 # Extract the first word of "gcc", so it can be a program name with args.
2551 set dummy gcc; ac_word=$2
2552 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2553 $as_echo_n "checking for $ac_word... " >&6; }
2554 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2555 $as_echo_n "(cached) " >&6
2556 else
2557 if test -n "$ac_ct_CC"; then
2558 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2559 else
2560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561 for as_dir in $PATH
2563 IFS=$as_save_IFS
2564 test -z "$as_dir" && as_dir=.
2565 for ac_exec_ext in '' $ac_executable_extensions; do
2566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2567 ac_cv_prog_ac_ct_CC="gcc"
2568 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2569 break 2
2571 done
2572 done
2573 IFS=$as_save_IFS
2577 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2578 if test -n "$ac_ct_CC"; then
2579 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2580 $as_echo "$ac_ct_CC" >&6; }
2581 else
2582 { $as_echo "$as_me:$LINENO: result: no" >&5
2583 $as_echo "no" >&6; }
2586 if test "x$ac_ct_CC" = x; then
2587 CC=""
2588 else
2589 case $cross_compiling:$ac_tool_warned in
2590 yes:)
2591 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2592 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2593 ac_tool_warned=yes ;;
2594 esac
2595 CC=$ac_ct_CC
2597 else
2598 CC="$ac_cv_prog_CC"
2601 if test -z "$CC"; then
2602 if test -n "$ac_tool_prefix"; then
2603 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2604 set dummy ${ac_tool_prefix}cc; ac_word=$2
2605 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2606 $as_echo_n "checking for $ac_word... " >&6; }
2607 if test "${ac_cv_prog_CC+set}" = set; then
2608 $as_echo_n "(cached) " >&6
2609 else
2610 if test -n "$CC"; then
2611 ac_cv_prog_CC="$CC" # Let the user override the test.
2612 else
2613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614 for as_dir in $PATH
2616 IFS=$as_save_IFS
2617 test -z "$as_dir" && as_dir=.
2618 for ac_exec_ext in '' $ac_executable_extensions; do
2619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2620 ac_cv_prog_CC="${ac_tool_prefix}cc"
2621 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2622 break 2
2624 done
2625 done
2626 IFS=$as_save_IFS
2630 CC=$ac_cv_prog_CC
2631 if test -n "$CC"; then
2632 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2633 $as_echo "$CC" >&6; }
2634 else
2635 { $as_echo "$as_me:$LINENO: result: no" >&5
2636 $as_echo "no" >&6; }
2642 if test -z "$CC"; then
2643 # Extract the first word of "cc", so it can be a program name with args.
2644 set dummy cc; ac_word=$2
2645 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2646 $as_echo_n "checking for $ac_word... " >&6; }
2647 if test "${ac_cv_prog_CC+set}" = set; then
2648 $as_echo_n "(cached) " >&6
2649 else
2650 if test -n "$CC"; then
2651 ac_cv_prog_CC="$CC" # Let the user override the test.
2652 else
2653 ac_prog_rejected=no
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 for as_dir in $PATH
2657 IFS=$as_save_IFS
2658 test -z "$as_dir" && as_dir=.
2659 for ac_exec_ext in '' $ac_executable_extensions; do
2660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2661 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2662 ac_prog_rejected=yes
2663 continue
2665 ac_cv_prog_CC="cc"
2666 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2667 break 2
2669 done
2670 done
2671 IFS=$as_save_IFS
2673 if test $ac_prog_rejected = yes; then
2674 # We found a bogon in the path, so make sure we never use it.
2675 set dummy $ac_cv_prog_CC
2676 shift
2677 if test $# != 0; then
2678 # We chose a different compiler from the bogus one.
2679 # However, it has the same basename, so the bogon will be chosen
2680 # first if we set CC to just the basename; use the full file name.
2681 shift
2682 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2687 CC=$ac_cv_prog_CC
2688 if test -n "$CC"; then
2689 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2690 $as_echo "$CC" >&6; }
2691 else
2692 { $as_echo "$as_me:$LINENO: result: no" >&5
2693 $as_echo "no" >&6; }
2698 if test -z "$CC"; then
2699 if test -n "$ac_tool_prefix"; then
2700 for ac_prog in cl.exe
2702 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2703 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2704 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2705 $as_echo_n "checking for $ac_word... " >&6; }
2706 if test "${ac_cv_prog_CC+set}" = set; then
2707 $as_echo_n "(cached) " >&6
2708 else
2709 if test -n "$CC"; then
2710 ac_cv_prog_CC="$CC" # Let the user override the test.
2711 else
2712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713 for as_dir in $PATH
2715 IFS=$as_save_IFS
2716 test -z "$as_dir" && as_dir=.
2717 for ac_exec_ext in '' $ac_executable_extensions; do
2718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2719 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2720 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2721 break 2
2723 done
2724 done
2725 IFS=$as_save_IFS
2729 CC=$ac_cv_prog_CC
2730 if test -n "$CC"; then
2731 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2732 $as_echo "$CC" >&6; }
2733 else
2734 { $as_echo "$as_me:$LINENO: result: no" >&5
2735 $as_echo "no" >&6; }
2739 test -n "$CC" && break
2740 done
2742 if test -z "$CC"; then
2743 ac_ct_CC=$CC
2744 for ac_prog in cl.exe
2746 # Extract the first word of "$ac_prog", so it can be a program name with args.
2747 set dummy $ac_prog; ac_word=$2
2748 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2749 $as_echo_n "checking for $ac_word... " >&6; }
2750 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2751 $as_echo_n "(cached) " >&6
2752 else
2753 if test -n "$ac_ct_CC"; then
2754 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2755 else
2756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757 for as_dir in $PATH
2759 IFS=$as_save_IFS
2760 test -z "$as_dir" && as_dir=.
2761 for ac_exec_ext in '' $ac_executable_extensions; do
2762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2763 ac_cv_prog_ac_ct_CC="$ac_prog"
2764 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2765 break 2
2767 done
2768 done
2769 IFS=$as_save_IFS
2773 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2774 if test -n "$ac_ct_CC"; then
2775 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2776 $as_echo "$ac_ct_CC" >&6; }
2777 else
2778 { $as_echo "$as_me:$LINENO: result: no" >&5
2779 $as_echo "no" >&6; }
2783 test -n "$ac_ct_CC" && break
2784 done
2786 if test "x$ac_ct_CC" = x; then
2787 CC=""
2788 else
2789 case $cross_compiling:$ac_tool_warned in
2790 yes:)
2791 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2792 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2793 ac_tool_warned=yes ;;
2794 esac
2795 CC=$ac_ct_CC
2802 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2803 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2804 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2805 See \`config.log' for more details." >&5
2806 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2807 See \`config.log' for more details." >&2;}
2808 { (exit 1); exit 1; }; }; }
2810 # Provide some information about the compiler.
2811 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2812 set X $ac_compile
2813 ac_compiler=$2
2814 { (ac_try="$ac_compiler --version >&5"
2815 case "(($ac_try" in
2816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817 *) ac_try_echo=$ac_try;;
2818 esac
2819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2820 $as_echo "$ac_try_echo") >&5
2821 (eval "$ac_compiler --version >&5") 2>&5
2822 ac_status=$?
2823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }
2825 { (ac_try="$ac_compiler -v >&5"
2826 case "(($ac_try" in
2827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2828 *) ac_try_echo=$ac_try;;
2829 esac
2830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2831 $as_echo "$ac_try_echo") >&5
2832 (eval "$ac_compiler -v >&5") 2>&5
2833 ac_status=$?
2834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); }
2836 { (ac_try="$ac_compiler -V >&5"
2837 case "(($ac_try" in
2838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2839 *) ac_try_echo=$ac_try;;
2840 esac
2841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2842 $as_echo "$ac_try_echo") >&5
2843 (eval "$ac_compiler -V >&5") 2>&5
2844 ac_status=$?
2845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }
2848 cat >conftest.$ac_ext <<_ACEOF
2849 /* confdefs.h. */
2850 _ACEOF
2851 cat confdefs.h >>conftest.$ac_ext
2852 cat >>conftest.$ac_ext <<_ACEOF
2853 /* end confdefs.h. */
2856 main ()
2860 return 0;
2862 _ACEOF
2863 ac_clean_files_save=$ac_clean_files
2864 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2865 # Try to create an executable without -o first, disregard a.out.
2866 # It will help us diagnose broken compilers, and finding out an intuition
2867 # of exeext.
2868 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2869 $as_echo_n "checking for C compiler default output file name... " >&6; }
2870 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2872 # The possible output files:
2873 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2875 ac_rmfiles=
2876 for ac_file in $ac_files
2878 case $ac_file in
2879 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2880 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2881 esac
2882 done
2883 rm -f $ac_rmfiles
2885 if { (ac_try="$ac_link_default"
2886 case "(($ac_try" in
2887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888 *) ac_try_echo=$ac_try;;
2889 esac
2890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2891 $as_echo "$ac_try_echo") >&5
2892 (eval "$ac_link_default") 2>&5
2893 ac_status=$?
2894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }; then
2896 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2897 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2898 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2899 # so that the user can short-circuit this test for compilers unknown to
2900 # Autoconf.
2901 for ac_file in $ac_files ''
2903 test -f "$ac_file" || continue
2904 case $ac_file in
2905 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2907 [ab].out )
2908 # We found the default executable, but exeext='' is most
2909 # certainly right.
2910 break;;
2911 *.* )
2912 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2913 then :; else
2914 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2916 # We set ac_cv_exeext here because the later test for it is not
2917 # safe: cross compilers may not add the suffix if given an `-o'
2918 # argument, so we may need to know it at that point already.
2919 # Even if this section looks crufty: it has the advantage of
2920 # actually working.
2921 break;;
2923 break;;
2924 esac
2925 done
2926 test "$ac_cv_exeext" = no && ac_cv_exeext=
2928 else
2929 ac_file=''
2932 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2933 $as_echo "$ac_file" >&6; }
2934 if test -z "$ac_file"; then
2935 $as_echo "$as_me: failed program was:" >&5
2936 sed 's/^/| /' conftest.$ac_ext >&5
2938 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2940 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2941 See \`config.log' for more details." >&5
2942 $as_echo "$as_me: error: C compiler cannot create executables
2943 See \`config.log' for more details." >&2;}
2944 { (exit 77); exit 77; }; }; }
2947 ac_exeext=$ac_cv_exeext
2949 # Check that the compiler produces executables we can run. If not, either
2950 # the compiler is broken, or we cross compile.
2951 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2952 $as_echo_n "checking whether the C compiler works... " >&6; }
2953 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2954 # If not cross compiling, check that we can run a simple program.
2955 if test "$cross_compiling" != yes; then
2956 if { ac_try='./$ac_file'
2957 { (case "(($ac_try" in
2958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959 *) ac_try_echo=$ac_try;;
2960 esac
2961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2962 $as_echo "$ac_try_echo") >&5
2963 (eval "$ac_try") 2>&5
2964 ac_status=$?
2965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); }; }; then
2967 cross_compiling=no
2968 else
2969 if test "$cross_compiling" = maybe; then
2970 cross_compiling=yes
2971 else
2972 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2974 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2975 If you meant to cross compile, use \`--host'.
2976 See \`config.log' for more details." >&5
2977 $as_echo "$as_me: error: cannot run C compiled programs.
2978 If you meant to cross compile, use \`--host'.
2979 See \`config.log' for more details." >&2;}
2980 { (exit 1); exit 1; }; }; }
2984 { $as_echo "$as_me:$LINENO: result: yes" >&5
2985 $as_echo "yes" >&6; }
2987 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2988 ac_clean_files=$ac_clean_files_save
2989 # Check that the compiler produces executables we can run. If not, either
2990 # the compiler is broken, or we cross compile.
2991 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2992 $as_echo_n "checking whether we are cross compiling... " >&6; }
2993 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2994 $as_echo "$cross_compiling" >&6; }
2996 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2997 $as_echo_n "checking for suffix of executables... " >&6; }
2998 if { (ac_try="$ac_link"
2999 case "(($ac_try" in
3000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001 *) ac_try_echo=$ac_try;;
3002 esac
3003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3004 $as_echo "$ac_try_echo") >&5
3005 (eval "$ac_link") 2>&5
3006 ac_status=$?
3007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }; then
3009 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3010 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3011 # work properly (i.e., refer to `conftest.exe'), while it won't with
3012 # `rm'.
3013 for ac_file in conftest.exe conftest conftest.*; do
3014 test -f "$ac_file" || continue
3015 case $ac_file in
3016 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3017 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3018 break;;
3019 * ) break;;
3020 esac
3021 done
3022 else
3023 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3025 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3026 See \`config.log' for more details." >&5
3027 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3028 See \`config.log' for more details." >&2;}
3029 { (exit 1); exit 1; }; }; }
3032 rm -f conftest$ac_cv_exeext
3033 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3034 $as_echo "$ac_cv_exeext" >&6; }
3036 rm -f conftest.$ac_ext
3037 EXEEXT=$ac_cv_exeext
3038 ac_exeext=$EXEEXT
3039 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3040 $as_echo_n "checking for suffix of object files... " >&6; }
3041 if test "${ac_cv_objext+set}" = set; then
3042 $as_echo_n "(cached) " >&6
3043 else
3044 cat >conftest.$ac_ext <<_ACEOF
3045 /* confdefs.h. */
3046 _ACEOF
3047 cat confdefs.h >>conftest.$ac_ext
3048 cat >>conftest.$ac_ext <<_ACEOF
3049 /* end confdefs.h. */
3052 main ()
3056 return 0;
3058 _ACEOF
3059 rm -f conftest.o conftest.obj
3060 if { (ac_try="$ac_compile"
3061 case "(($ac_try" in
3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063 *) ac_try_echo=$ac_try;;
3064 esac
3065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3066 $as_echo "$ac_try_echo") >&5
3067 (eval "$ac_compile") 2>&5
3068 ac_status=$?
3069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); }; then
3071 for ac_file in conftest.o conftest.obj conftest.*; do
3072 test -f "$ac_file" || continue;
3073 case $ac_file in
3074 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3075 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3076 break;;
3077 esac
3078 done
3079 else
3080 $as_echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3083 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3085 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3086 See \`config.log' for more details." >&5
3087 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3088 See \`config.log' for more details." >&2;}
3089 { (exit 1); exit 1; }; }; }
3092 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3094 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3095 $as_echo "$ac_cv_objext" >&6; }
3096 OBJEXT=$ac_cv_objext
3097 ac_objext=$OBJEXT
3098 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3099 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3100 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3101 $as_echo_n "(cached) " >&6
3102 else
3103 cat >conftest.$ac_ext <<_ACEOF
3104 /* confdefs.h. */
3105 _ACEOF
3106 cat confdefs.h >>conftest.$ac_ext
3107 cat >>conftest.$ac_ext <<_ACEOF
3108 /* end confdefs.h. */
3111 main ()
3113 #ifndef __GNUC__
3114 choke me
3115 #endif
3118 return 0;
3120 _ACEOF
3121 rm -f conftest.$ac_objext
3122 if { (ac_try="$ac_compile"
3123 case "(($ac_try" in
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3126 esac
3127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3128 $as_echo "$ac_try_echo") >&5
3129 (eval "$ac_compile") 2>conftest.er1
3130 ac_status=$?
3131 grep -v '^ *+' conftest.er1 >conftest.err
3132 rm -f conftest.er1
3133 cat conftest.err >&5
3134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); } && {
3136 test -z "$ac_c_werror_flag" ||
3137 test ! -s conftest.err
3138 } && test -s conftest.$ac_objext; then
3139 ac_compiler_gnu=yes
3140 else
3141 $as_echo "$as_me: failed program was:" >&5
3142 sed 's/^/| /' conftest.$ac_ext >&5
3144 ac_compiler_gnu=no
3147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3148 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3151 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3152 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3153 if test $ac_compiler_gnu = yes; then
3154 GCC=yes
3155 else
3156 GCC=
3158 ac_test_CFLAGS=${CFLAGS+set}
3159 ac_save_CFLAGS=$CFLAGS
3160 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3161 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3162 if test "${ac_cv_prog_cc_g+set}" = set; then
3163 $as_echo_n "(cached) " >&6
3164 else
3165 ac_save_c_werror_flag=$ac_c_werror_flag
3166 ac_c_werror_flag=yes
3167 ac_cv_prog_cc_g=no
3168 CFLAGS="-g"
3169 cat >conftest.$ac_ext <<_ACEOF
3170 /* confdefs.h. */
3171 _ACEOF
3172 cat confdefs.h >>conftest.$ac_ext
3173 cat >>conftest.$ac_ext <<_ACEOF
3174 /* end confdefs.h. */
3177 main ()
3181 return 0;
3183 _ACEOF
3184 rm -f conftest.$ac_objext
3185 if { (ac_try="$ac_compile"
3186 case "(($ac_try" in
3187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188 *) ac_try_echo=$ac_try;;
3189 esac
3190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3191 $as_echo "$ac_try_echo") >&5
3192 (eval "$ac_compile") 2>conftest.er1
3193 ac_status=$?
3194 grep -v '^ *+' conftest.er1 >conftest.err
3195 rm -f conftest.er1
3196 cat conftest.err >&5
3197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); } && {
3199 test -z "$ac_c_werror_flag" ||
3200 test ! -s conftest.err
3201 } && test -s conftest.$ac_objext; then
3202 ac_cv_prog_cc_g=yes
3203 else
3204 $as_echo "$as_me: failed program was:" >&5
3205 sed 's/^/| /' conftest.$ac_ext >&5
3207 CFLAGS=""
3208 cat >conftest.$ac_ext <<_ACEOF
3209 /* confdefs.h. */
3210 _ACEOF
3211 cat confdefs.h >>conftest.$ac_ext
3212 cat >>conftest.$ac_ext <<_ACEOF
3213 /* end confdefs.h. */
3216 main ()
3220 return 0;
3222 _ACEOF
3223 rm -f conftest.$ac_objext
3224 if { (ac_try="$ac_compile"
3225 case "(($ac_try" in
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3228 esac
3229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3230 $as_echo "$ac_try_echo") >&5
3231 (eval "$ac_compile") 2>conftest.er1
3232 ac_status=$?
3233 grep -v '^ *+' conftest.er1 >conftest.err
3234 rm -f conftest.er1
3235 cat conftest.err >&5
3236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); } && {
3238 test -z "$ac_c_werror_flag" ||
3239 test ! -s conftest.err
3240 } && test -s conftest.$ac_objext; then
3242 else
3243 $as_echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3246 ac_c_werror_flag=$ac_save_c_werror_flag
3247 CFLAGS="-g"
3248 cat >conftest.$ac_ext <<_ACEOF
3249 /* confdefs.h. */
3250 _ACEOF
3251 cat confdefs.h >>conftest.$ac_ext
3252 cat >>conftest.$ac_ext <<_ACEOF
3253 /* end confdefs.h. */
3256 main ()
3260 return 0;
3262 _ACEOF
3263 rm -f conftest.$ac_objext
3264 if { (ac_try="$ac_compile"
3265 case "(($ac_try" in
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3268 esac
3269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3270 $as_echo "$ac_try_echo") >&5
3271 (eval "$ac_compile") 2>conftest.er1
3272 ac_status=$?
3273 grep -v '^ *+' conftest.er1 >conftest.err
3274 rm -f conftest.er1
3275 cat conftest.err >&5
3276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); } && {
3278 test -z "$ac_c_werror_flag" ||
3279 test ! -s conftest.err
3280 } && test -s conftest.$ac_objext; then
3281 ac_cv_prog_cc_g=yes
3282 else
3283 $as_echo "$as_me: failed program was:" >&5
3284 sed 's/^/| /' conftest.$ac_ext >&5
3289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3296 ac_c_werror_flag=$ac_save_c_werror_flag
3298 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3299 $as_echo "$ac_cv_prog_cc_g" >&6; }
3300 if test "$ac_test_CFLAGS" = set; then
3301 CFLAGS=$ac_save_CFLAGS
3302 elif test $ac_cv_prog_cc_g = yes; then
3303 if test "$GCC" = yes; then
3304 CFLAGS="-g -O2"
3305 else
3306 CFLAGS="-g"
3308 else
3309 if test "$GCC" = yes; then
3310 CFLAGS="-O2"
3311 else
3312 CFLAGS=
3315 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3316 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3317 if test "${ac_cv_prog_cc_c89+set}" = set; then
3318 $as_echo_n "(cached) " >&6
3319 else
3320 ac_cv_prog_cc_c89=no
3321 ac_save_CC=$CC
3322 cat >conftest.$ac_ext <<_ACEOF
3323 /* confdefs.h. */
3324 _ACEOF
3325 cat confdefs.h >>conftest.$ac_ext
3326 cat >>conftest.$ac_ext <<_ACEOF
3327 /* end confdefs.h. */
3328 #include <stdarg.h>
3329 #include <stdio.h>
3330 #include <sys/types.h>
3331 #include <sys/stat.h>
3332 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3333 struct buf { int x; };
3334 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3335 static char *e (p, i)
3336 char **p;
3337 int i;
3339 return p[i];
3341 static char *f (char * (*g) (char **, int), char **p, ...)
3343 char *s;
3344 va_list v;
3345 va_start (v,p);
3346 s = g (p, va_arg (v,int));
3347 va_end (v);
3348 return s;
3351 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3352 function prototypes and stuff, but not '\xHH' hex character constants.
3353 These don't provoke an error unfortunately, instead are silently treated
3354 as 'x'. The following induces an error, until -std is added to get
3355 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3356 array size at least. It's necessary to write '\x00'==0 to get something
3357 that's true only with -std. */
3358 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3360 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3361 inside strings and character constants. */
3362 #define FOO(x) 'x'
3363 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3365 int test (int i, double x);
3366 struct s1 {int (*f) (int a);};
3367 struct s2 {int (*f) (double a);};
3368 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3369 int argc;
3370 char **argv;
3372 main ()
3374 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3376 return 0;
3378 _ACEOF
3379 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3380 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3382 CC="$ac_save_CC $ac_arg"
3383 rm -f conftest.$ac_objext
3384 if { (ac_try="$ac_compile"
3385 case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3388 esac
3389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3390 $as_echo "$ac_try_echo") >&5
3391 (eval "$ac_compile") 2>conftest.er1
3392 ac_status=$?
3393 grep -v '^ *+' conftest.er1 >conftest.err
3394 rm -f conftest.er1
3395 cat conftest.err >&5
3396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); } && {
3398 test -z "$ac_c_werror_flag" ||
3399 test ! -s conftest.err
3400 } && test -s conftest.$ac_objext; then
3401 ac_cv_prog_cc_c89=$ac_arg
3402 else
3403 $as_echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3409 rm -f core conftest.err conftest.$ac_objext
3410 test "x$ac_cv_prog_cc_c89" != "xno" && break
3411 done
3412 rm -f conftest.$ac_ext
3413 CC=$ac_save_CC
3416 # AC_CACHE_VAL
3417 case "x$ac_cv_prog_cc_c89" in
3419 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3420 $as_echo "none needed" >&6; } ;;
3421 xno)
3422 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3423 $as_echo "unsupported" >&6; } ;;
3425 CC="$CC $ac_cv_prog_cc_c89"
3426 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3427 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3428 esac
3431 ac_ext=c
3432 ac_cpp='$CPP $CPPFLAGS'
3433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3437 depcc="$CC" am_compiler_list=
3439 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3440 $as_echo_n "checking dependency style of $depcc... " >&6; }
3441 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3442 $as_echo_n "(cached) " >&6
3443 else
3444 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3445 # We make a subdir and do the tests there. Otherwise we can end up
3446 # making bogus files that we don't know about and never remove. For
3447 # instance it was reported that on HP-UX the gcc test will end up
3448 # making a dummy file named `D' -- because `-MD' means `put the output
3449 # in D'.
3450 mkdir conftest.dir
3451 # Copy depcomp to subdir because otherwise we won't find it if we're
3452 # using a relative directory.
3453 cp "$am_depcomp" conftest.dir
3454 cd conftest.dir
3455 # We will build objects and dependencies in a subdirectory because
3456 # it helps to detect inapplicable dependency modes. For instance
3457 # both Tru64's cc and ICC support -MD to output dependencies as a
3458 # side effect of compilation, but ICC will put the dependencies in
3459 # the current directory while Tru64 will put them in the object
3460 # directory.
3461 mkdir sub
3463 am_cv_CC_dependencies_compiler_type=none
3464 if test "$am_compiler_list" = ""; then
3465 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3467 for depmode in $am_compiler_list; do
3468 # Setup a source with many dependencies, because some compilers
3469 # like to wrap large dependency lists on column 80 (with \), and
3470 # we should not choose a depcomp mode which is confused by this.
3472 # We need to recreate these files for each test, as the compiler may
3473 # overwrite some of them when testing with obscure command lines.
3474 # This happens at least with the AIX C compiler.
3475 : > sub/conftest.c
3476 for i in 1 2 3 4 5 6; do
3477 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3478 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3479 # Solaris 8's {/usr,}/bin/sh.
3480 touch sub/conftst$i.h
3481 done
3482 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3484 case $depmode in
3485 nosideeffect)
3486 # after this tag, mechanisms are not by side-effect, so they'll
3487 # only be used when explicitly requested
3488 if test "x$enable_dependency_tracking" = xyes; then
3489 continue
3490 else
3491 break
3494 none) break ;;
3495 esac
3496 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3497 # mode. It turns out that the SunPro C++ compiler does not properly
3498 # handle `-M -o', and we need to detect this.
3499 if depmode=$depmode \
3500 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3501 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3502 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3503 >/dev/null 2>conftest.err &&
3504 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3505 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3506 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3507 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3508 # icc doesn't choke on unknown options, it will just issue warnings
3509 # or remarks (even with -Werror). So we grep stderr for any message
3510 # that says an option was ignored or not supported.
3511 # When given -MP, icc 7.0 and 7.1 complain thusly:
3512 # icc: Command line warning: ignoring option '-M'; no argument required
3513 # The diagnosis changed in icc 8.0:
3514 # icc: Command line remark: option '-MP' not supported
3515 if (grep 'ignoring option' conftest.err ||
3516 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3517 am_cv_CC_dependencies_compiler_type=$depmode
3518 break
3521 done
3523 cd ..
3524 rm -rf conftest.dir
3525 else
3526 am_cv_CC_dependencies_compiler_type=none
3530 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3531 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3532 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3535 test "x$enable_dependency_tracking" != xno \
3536 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3537 am__fastdepCC_TRUE=
3538 am__fastdepCC_FALSE='#'
3539 else
3540 am__fastdepCC_TRUE='#'
3541 am__fastdepCC_FALSE=
3546 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
3547 $as_echo_n "checking for library containing strerror... " >&6; }
3548 if test "${ac_cv_search_strerror+set}" = set; then
3549 $as_echo_n "(cached) " >&6
3550 else
3551 ac_func_search_save_LIBS=$LIBS
3552 cat >conftest.$ac_ext <<_ACEOF
3553 /* confdefs.h. */
3554 _ACEOF
3555 cat confdefs.h >>conftest.$ac_ext
3556 cat >>conftest.$ac_ext <<_ACEOF
3557 /* end confdefs.h. */
3559 /* Override any GCC internal prototype to avoid an error.
3560 Use char because int might match the return type of a GCC
3561 builtin and then its argument prototype would still apply. */
3562 #ifdef __cplusplus
3563 extern "C"
3564 #endif
3565 char strerror ();
3567 main ()
3569 return strerror ();
3571 return 0;
3573 _ACEOF
3574 for ac_lib in '' cposix; do
3575 if test -z "$ac_lib"; then
3576 ac_res="none required"
3577 else
3578 ac_res=-l$ac_lib
3579 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3581 rm -f conftest.$ac_objext conftest$ac_exeext
3582 if { (ac_try="$ac_link"
3583 case "(($ac_try" in
3584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585 *) ac_try_echo=$ac_try;;
3586 esac
3587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3588 $as_echo "$ac_try_echo") >&5
3589 (eval "$ac_link") 2>conftest.er1
3590 ac_status=$?
3591 grep -v '^ *+' conftest.er1 >conftest.err
3592 rm -f conftest.er1
3593 cat conftest.err >&5
3594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); } && {
3596 test -z "$ac_c_werror_flag" ||
3597 test ! -s conftest.err
3598 } && test -s conftest$ac_exeext && {
3599 test "$cross_compiling" = yes ||
3600 $as_test_x conftest$ac_exeext
3601 }; then
3602 ac_cv_search_strerror=$ac_res
3603 else
3604 $as_echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3610 rm -rf conftest.dSYM
3611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3612 conftest$ac_exeext
3613 if test "${ac_cv_search_strerror+set}" = set; then
3614 break
3616 done
3617 if test "${ac_cv_search_strerror+set}" = set; then
3619 else
3620 ac_cv_search_strerror=no
3622 rm conftest.$ac_ext
3623 LIBS=$ac_func_search_save_LIBS
3625 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3626 $as_echo "$ac_cv_search_strerror" >&6; }
3627 ac_res=$ac_cv_search_strerror
3628 if test "$ac_res" != no; then
3629 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3633 ac_ext=c
3634 ac_cpp='$CPP $CPPFLAGS'
3635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3638 if test -n "$ac_tool_prefix"; then
3639 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3640 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3641 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3642 $as_echo_n "checking for $ac_word... " >&6; }
3643 if test "${ac_cv_prog_CC+set}" = set; then
3644 $as_echo_n "(cached) " >&6
3645 else
3646 if test -n "$CC"; then
3647 ac_cv_prog_CC="$CC" # Let the user override the test.
3648 else
3649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3650 for as_dir in $PATH
3652 IFS=$as_save_IFS
3653 test -z "$as_dir" && as_dir=.
3654 for ac_exec_ext in '' $ac_executable_extensions; do
3655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3656 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3657 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3658 break 2
3660 done
3661 done
3662 IFS=$as_save_IFS
3666 CC=$ac_cv_prog_CC
3667 if test -n "$CC"; then
3668 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3669 $as_echo "$CC" >&6; }
3670 else
3671 { $as_echo "$as_me:$LINENO: result: no" >&5
3672 $as_echo "no" >&6; }
3677 if test -z "$ac_cv_prog_CC"; then
3678 ac_ct_CC=$CC
3679 # Extract the first word of "gcc", so it can be a program name with args.
3680 set dummy gcc; ac_word=$2
3681 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3682 $as_echo_n "checking for $ac_word... " >&6; }
3683 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3684 $as_echo_n "(cached) " >&6
3685 else
3686 if test -n "$ac_ct_CC"; then
3687 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3688 else
3689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690 for as_dir in $PATH
3692 IFS=$as_save_IFS
3693 test -z "$as_dir" && as_dir=.
3694 for ac_exec_ext in '' $ac_executable_extensions; do
3695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3696 ac_cv_prog_ac_ct_CC="gcc"
3697 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3698 break 2
3700 done
3701 done
3702 IFS=$as_save_IFS
3706 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3707 if test -n "$ac_ct_CC"; then
3708 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3709 $as_echo "$ac_ct_CC" >&6; }
3710 else
3711 { $as_echo "$as_me:$LINENO: result: no" >&5
3712 $as_echo "no" >&6; }
3715 if test "x$ac_ct_CC" = x; then
3716 CC=""
3717 else
3718 case $cross_compiling:$ac_tool_warned in
3719 yes:)
3720 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3722 ac_tool_warned=yes ;;
3723 esac
3724 CC=$ac_ct_CC
3726 else
3727 CC="$ac_cv_prog_CC"
3730 if test -z "$CC"; then
3731 if test -n "$ac_tool_prefix"; then
3732 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3733 set dummy ${ac_tool_prefix}cc; ac_word=$2
3734 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3735 $as_echo_n "checking for $ac_word... " >&6; }
3736 if test "${ac_cv_prog_CC+set}" = set; then
3737 $as_echo_n "(cached) " >&6
3738 else
3739 if test -n "$CC"; then
3740 ac_cv_prog_CC="$CC" # Let the user override the test.
3741 else
3742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743 for as_dir in $PATH
3745 IFS=$as_save_IFS
3746 test -z "$as_dir" && as_dir=.
3747 for ac_exec_ext in '' $ac_executable_extensions; do
3748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3749 ac_cv_prog_CC="${ac_tool_prefix}cc"
3750 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3751 break 2
3753 done
3754 done
3755 IFS=$as_save_IFS
3759 CC=$ac_cv_prog_CC
3760 if test -n "$CC"; then
3761 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3762 $as_echo "$CC" >&6; }
3763 else
3764 { $as_echo "$as_me:$LINENO: result: no" >&5
3765 $as_echo "no" >&6; }
3771 if test -z "$CC"; then
3772 # Extract the first word of "cc", so it can be a program name with args.
3773 set dummy cc; ac_word=$2
3774 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3775 $as_echo_n "checking for $ac_word... " >&6; }
3776 if test "${ac_cv_prog_CC+set}" = set; then
3777 $as_echo_n "(cached) " >&6
3778 else
3779 if test -n "$CC"; then
3780 ac_cv_prog_CC="$CC" # Let the user override the test.
3781 else
3782 ac_prog_rejected=no
3783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784 for as_dir in $PATH
3786 IFS=$as_save_IFS
3787 test -z "$as_dir" && as_dir=.
3788 for ac_exec_ext in '' $ac_executable_extensions; do
3789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3790 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3791 ac_prog_rejected=yes
3792 continue
3794 ac_cv_prog_CC="cc"
3795 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3796 break 2
3798 done
3799 done
3800 IFS=$as_save_IFS
3802 if test $ac_prog_rejected = yes; then
3803 # We found a bogon in the path, so make sure we never use it.
3804 set dummy $ac_cv_prog_CC
3805 shift
3806 if test $# != 0; then
3807 # We chose a different compiler from the bogus one.
3808 # However, it has the same basename, so the bogon will be chosen
3809 # first if we set CC to just the basename; use the full file name.
3810 shift
3811 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3816 CC=$ac_cv_prog_CC
3817 if test -n "$CC"; then
3818 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3819 $as_echo "$CC" >&6; }
3820 else
3821 { $as_echo "$as_me:$LINENO: result: no" >&5
3822 $as_echo "no" >&6; }
3827 if test -z "$CC"; then
3828 if test -n "$ac_tool_prefix"; then
3829 for ac_prog in cl.exe
3831 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3832 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3833 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3834 $as_echo_n "checking for $ac_word... " >&6; }
3835 if test "${ac_cv_prog_CC+set}" = set; then
3836 $as_echo_n "(cached) " >&6
3837 else
3838 if test -n "$CC"; then
3839 ac_cv_prog_CC="$CC" # Let the user override the test.
3840 else
3841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842 for as_dir in $PATH
3844 IFS=$as_save_IFS
3845 test -z "$as_dir" && as_dir=.
3846 for ac_exec_ext in '' $ac_executable_extensions; do
3847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3848 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3849 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3850 break 2
3852 done
3853 done
3854 IFS=$as_save_IFS
3858 CC=$ac_cv_prog_CC
3859 if test -n "$CC"; then
3860 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3861 $as_echo "$CC" >&6; }
3862 else
3863 { $as_echo "$as_me:$LINENO: result: no" >&5
3864 $as_echo "no" >&6; }
3868 test -n "$CC" && break
3869 done
3871 if test -z "$CC"; then
3872 ac_ct_CC=$CC
3873 for ac_prog in cl.exe
3875 # Extract the first word of "$ac_prog", so it can be a program name with args.
3876 set dummy $ac_prog; ac_word=$2
3877 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3878 $as_echo_n "checking for $ac_word... " >&6; }
3879 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3880 $as_echo_n "(cached) " >&6
3881 else
3882 if test -n "$ac_ct_CC"; then
3883 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3884 else
3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886 for as_dir in $PATH
3888 IFS=$as_save_IFS
3889 test -z "$as_dir" && as_dir=.
3890 for ac_exec_ext in '' $ac_executable_extensions; do
3891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3892 ac_cv_prog_ac_ct_CC="$ac_prog"
3893 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3894 break 2
3896 done
3897 done
3898 IFS=$as_save_IFS
3902 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3903 if test -n "$ac_ct_CC"; then
3904 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3905 $as_echo "$ac_ct_CC" >&6; }
3906 else
3907 { $as_echo "$as_me:$LINENO: result: no" >&5
3908 $as_echo "no" >&6; }
3912 test -n "$ac_ct_CC" && break
3913 done
3915 if test "x$ac_ct_CC" = x; then
3916 CC=""
3917 else
3918 case $cross_compiling:$ac_tool_warned in
3919 yes:)
3920 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3922 ac_tool_warned=yes ;;
3923 esac
3924 CC=$ac_ct_CC
3931 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3933 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3934 See \`config.log' for more details." >&5
3935 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3936 See \`config.log' for more details." >&2;}
3937 { (exit 1); exit 1; }; }; }
3939 # Provide some information about the compiler.
3940 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3941 set X $ac_compile
3942 ac_compiler=$2
3943 { (ac_try="$ac_compiler --version >&5"
3944 case "(($ac_try" in
3945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3946 *) ac_try_echo=$ac_try;;
3947 esac
3948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3949 $as_echo "$ac_try_echo") >&5
3950 (eval "$ac_compiler --version >&5") 2>&5
3951 ac_status=$?
3952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); }
3954 { (ac_try="$ac_compiler -v >&5"
3955 case "(($ac_try" in
3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3958 esac
3959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3960 $as_echo "$ac_try_echo") >&5
3961 (eval "$ac_compiler -v >&5") 2>&5
3962 ac_status=$?
3963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); }
3965 { (ac_try="$ac_compiler -V >&5"
3966 case "(($ac_try" in
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3969 esac
3970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3971 $as_echo "$ac_try_echo") >&5
3972 (eval "$ac_compiler -V >&5") 2>&5
3973 ac_status=$?
3974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); }
3977 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3978 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3979 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3980 $as_echo_n "(cached) " >&6
3981 else
3982 cat >conftest.$ac_ext <<_ACEOF
3983 /* confdefs.h. */
3984 _ACEOF
3985 cat confdefs.h >>conftest.$ac_ext
3986 cat >>conftest.$ac_ext <<_ACEOF
3987 /* end confdefs.h. */
3990 main ()
3992 #ifndef __GNUC__
3993 choke me
3994 #endif
3997 return 0;
3999 _ACEOF
4000 rm -f conftest.$ac_objext
4001 if { (ac_try="$ac_compile"
4002 case "(($ac_try" in
4003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4004 *) ac_try_echo=$ac_try;;
4005 esac
4006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4007 $as_echo "$ac_try_echo") >&5
4008 (eval "$ac_compile") 2>conftest.er1
4009 ac_status=$?
4010 grep -v '^ *+' conftest.er1 >conftest.err
4011 rm -f conftest.er1
4012 cat conftest.err >&5
4013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); } && {
4015 test -z "$ac_c_werror_flag" ||
4016 test ! -s conftest.err
4017 } && test -s conftest.$ac_objext; then
4018 ac_compiler_gnu=yes
4019 else
4020 $as_echo "$as_me: failed program was:" >&5
4021 sed 's/^/| /' conftest.$ac_ext >&5
4023 ac_compiler_gnu=no
4026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4027 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4030 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4031 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4032 if test $ac_compiler_gnu = yes; then
4033 GCC=yes
4034 else
4035 GCC=
4037 ac_test_CFLAGS=${CFLAGS+set}
4038 ac_save_CFLAGS=$CFLAGS
4039 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4040 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4041 if test "${ac_cv_prog_cc_g+set}" = set; then
4042 $as_echo_n "(cached) " >&6
4043 else
4044 ac_save_c_werror_flag=$ac_c_werror_flag
4045 ac_c_werror_flag=yes
4046 ac_cv_prog_cc_g=no
4047 CFLAGS="-g"
4048 cat >conftest.$ac_ext <<_ACEOF
4049 /* confdefs.h. */
4050 _ACEOF
4051 cat confdefs.h >>conftest.$ac_ext
4052 cat >>conftest.$ac_ext <<_ACEOF
4053 /* end confdefs.h. */
4056 main ()
4060 return 0;
4062 _ACEOF
4063 rm -f conftest.$ac_objext
4064 if { (ac_try="$ac_compile"
4065 case "(($ac_try" in
4066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4067 *) ac_try_echo=$ac_try;;
4068 esac
4069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4070 $as_echo "$ac_try_echo") >&5
4071 (eval "$ac_compile") 2>conftest.er1
4072 ac_status=$?
4073 grep -v '^ *+' conftest.er1 >conftest.err
4074 rm -f conftest.er1
4075 cat conftest.err >&5
4076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); } && {
4078 test -z "$ac_c_werror_flag" ||
4079 test ! -s conftest.err
4080 } && test -s conftest.$ac_objext; then
4081 ac_cv_prog_cc_g=yes
4082 else
4083 $as_echo "$as_me: failed program was:" >&5
4084 sed 's/^/| /' conftest.$ac_ext >&5
4086 CFLAGS=""
4087 cat >conftest.$ac_ext <<_ACEOF
4088 /* confdefs.h. */
4089 _ACEOF
4090 cat confdefs.h >>conftest.$ac_ext
4091 cat >>conftest.$ac_ext <<_ACEOF
4092 /* end confdefs.h. */
4095 main ()
4099 return 0;
4101 _ACEOF
4102 rm -f conftest.$ac_objext
4103 if { (ac_try="$ac_compile"
4104 case "(($ac_try" in
4105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4106 *) ac_try_echo=$ac_try;;
4107 esac
4108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4109 $as_echo "$ac_try_echo") >&5
4110 (eval "$ac_compile") 2>conftest.er1
4111 ac_status=$?
4112 grep -v '^ *+' conftest.er1 >conftest.err
4113 rm -f conftest.er1
4114 cat conftest.err >&5
4115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); } && {
4117 test -z "$ac_c_werror_flag" ||
4118 test ! -s conftest.err
4119 } && test -s conftest.$ac_objext; then
4121 else
4122 $as_echo "$as_me: failed program was:" >&5
4123 sed 's/^/| /' conftest.$ac_ext >&5
4125 ac_c_werror_flag=$ac_save_c_werror_flag
4126 CFLAGS="-g"
4127 cat >conftest.$ac_ext <<_ACEOF
4128 /* confdefs.h. */
4129 _ACEOF
4130 cat confdefs.h >>conftest.$ac_ext
4131 cat >>conftest.$ac_ext <<_ACEOF
4132 /* end confdefs.h. */
4135 main ()
4139 return 0;
4141 _ACEOF
4142 rm -f conftest.$ac_objext
4143 if { (ac_try="$ac_compile"
4144 case "(($ac_try" in
4145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4146 *) ac_try_echo=$ac_try;;
4147 esac
4148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4149 $as_echo "$ac_try_echo") >&5
4150 (eval "$ac_compile") 2>conftest.er1
4151 ac_status=$?
4152 grep -v '^ *+' conftest.er1 >conftest.err
4153 rm -f conftest.er1
4154 cat conftest.err >&5
4155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); } && {
4157 test -z "$ac_c_werror_flag" ||
4158 test ! -s conftest.err
4159 } && test -s conftest.$ac_objext; then
4160 ac_cv_prog_cc_g=yes
4161 else
4162 $as_echo "$as_me: failed program was:" >&5
4163 sed 's/^/| /' conftest.$ac_ext >&5
4168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4175 ac_c_werror_flag=$ac_save_c_werror_flag
4177 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4178 $as_echo "$ac_cv_prog_cc_g" >&6; }
4179 if test "$ac_test_CFLAGS" = set; then
4180 CFLAGS=$ac_save_CFLAGS
4181 elif test $ac_cv_prog_cc_g = yes; then
4182 if test "$GCC" = yes; then
4183 CFLAGS="-g -O2"
4184 else
4185 CFLAGS="-g"
4187 else
4188 if test "$GCC" = yes; then
4189 CFLAGS="-O2"
4190 else
4191 CFLAGS=
4194 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4195 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4196 if test "${ac_cv_prog_cc_c89+set}" = set; then
4197 $as_echo_n "(cached) " >&6
4198 else
4199 ac_cv_prog_cc_c89=no
4200 ac_save_CC=$CC
4201 cat >conftest.$ac_ext <<_ACEOF
4202 /* confdefs.h. */
4203 _ACEOF
4204 cat confdefs.h >>conftest.$ac_ext
4205 cat >>conftest.$ac_ext <<_ACEOF
4206 /* end confdefs.h. */
4207 #include <stdarg.h>
4208 #include <stdio.h>
4209 #include <sys/types.h>
4210 #include <sys/stat.h>
4211 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4212 struct buf { int x; };
4213 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4214 static char *e (p, i)
4215 char **p;
4216 int i;
4218 return p[i];
4220 static char *f (char * (*g) (char **, int), char **p, ...)
4222 char *s;
4223 va_list v;
4224 va_start (v,p);
4225 s = g (p, va_arg (v,int));
4226 va_end (v);
4227 return s;
4230 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4231 function prototypes and stuff, but not '\xHH' hex character constants.
4232 These don't provoke an error unfortunately, instead are silently treated
4233 as 'x'. The following induces an error, until -std is added to get
4234 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4235 array size at least. It's necessary to write '\x00'==0 to get something
4236 that's true only with -std. */
4237 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4239 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4240 inside strings and character constants. */
4241 #define FOO(x) 'x'
4242 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4244 int test (int i, double x);
4245 struct s1 {int (*f) (int a);};
4246 struct s2 {int (*f) (double a);};
4247 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4248 int argc;
4249 char **argv;
4251 main ()
4253 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4255 return 0;
4257 _ACEOF
4258 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4259 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4261 CC="$ac_save_CC $ac_arg"
4262 rm -f conftest.$ac_objext
4263 if { (ac_try="$ac_compile"
4264 case "(($ac_try" in
4265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266 *) ac_try_echo=$ac_try;;
4267 esac
4268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4269 $as_echo "$ac_try_echo") >&5
4270 (eval "$ac_compile") 2>conftest.er1
4271 ac_status=$?
4272 grep -v '^ *+' conftest.er1 >conftest.err
4273 rm -f conftest.er1
4274 cat conftest.err >&5
4275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); } && {
4277 test -z "$ac_c_werror_flag" ||
4278 test ! -s conftest.err
4279 } && test -s conftest.$ac_objext; then
4280 ac_cv_prog_cc_c89=$ac_arg
4281 else
4282 $as_echo "$as_me: failed program was:" >&5
4283 sed 's/^/| /' conftest.$ac_ext >&5
4288 rm -f core conftest.err conftest.$ac_objext
4289 test "x$ac_cv_prog_cc_c89" != "xno" && break
4290 done
4291 rm -f conftest.$ac_ext
4292 CC=$ac_save_CC
4295 # AC_CACHE_VAL
4296 case "x$ac_cv_prog_cc_c89" in
4298 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4299 $as_echo "none needed" >&6; } ;;
4300 xno)
4301 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4302 $as_echo "unsupported" >&6; } ;;
4304 CC="$CC $ac_cv_prog_cc_c89"
4305 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4306 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4307 esac
4310 ac_ext=c
4311 ac_cpp='$CPP $CPPFLAGS'
4312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4316 depcc="$CC" am_compiler_list=
4318 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4319 $as_echo_n "checking dependency style of $depcc... " >&6; }
4320 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4321 $as_echo_n "(cached) " >&6
4322 else
4323 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4324 # We make a subdir and do the tests there. Otherwise we can end up
4325 # making bogus files that we don't know about and never remove. For
4326 # instance it was reported that on HP-UX the gcc test will end up
4327 # making a dummy file named `D' -- because `-MD' means `put the output
4328 # in D'.
4329 mkdir conftest.dir
4330 # Copy depcomp to subdir because otherwise we won't find it if we're
4331 # using a relative directory.
4332 cp "$am_depcomp" conftest.dir
4333 cd conftest.dir
4334 # We will build objects and dependencies in a subdirectory because
4335 # it helps to detect inapplicable dependency modes. For instance
4336 # both Tru64's cc and ICC support -MD to output dependencies as a
4337 # side effect of compilation, but ICC will put the dependencies in
4338 # the current directory while Tru64 will put them in the object
4339 # directory.
4340 mkdir sub
4342 am_cv_CC_dependencies_compiler_type=none
4343 if test "$am_compiler_list" = ""; then
4344 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4346 for depmode in $am_compiler_list; do
4347 # Setup a source with many dependencies, because some compilers
4348 # like to wrap large dependency lists on column 80 (with \), and
4349 # we should not choose a depcomp mode which is confused by this.
4351 # We need to recreate these files for each test, as the compiler may
4352 # overwrite some of them when testing with obscure command lines.
4353 # This happens at least with the AIX C compiler.
4354 : > sub/conftest.c
4355 for i in 1 2 3 4 5 6; do
4356 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4357 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4358 # Solaris 8's {/usr,}/bin/sh.
4359 touch sub/conftst$i.h
4360 done
4361 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4363 case $depmode in
4364 nosideeffect)
4365 # after this tag, mechanisms are not by side-effect, so they'll
4366 # only be used when explicitly requested
4367 if test "x$enable_dependency_tracking" = xyes; then
4368 continue
4369 else
4370 break
4373 none) break ;;
4374 esac
4375 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4376 # mode. It turns out that the SunPro C++ compiler does not properly
4377 # handle `-M -o', and we need to detect this.
4378 if depmode=$depmode \
4379 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4380 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4381 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4382 >/dev/null 2>conftest.err &&
4383 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4384 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4385 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4386 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4387 # icc doesn't choke on unknown options, it will just issue warnings
4388 # or remarks (even with -Werror). So we grep stderr for any message
4389 # that says an option was ignored or not supported.
4390 # When given -MP, icc 7.0 and 7.1 complain thusly:
4391 # icc: Command line warning: ignoring option '-M'; no argument required
4392 # The diagnosis changed in icc 8.0:
4393 # icc: Command line remark: option '-MP' not supported
4394 if (grep 'ignoring option' conftest.err ||
4395 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4396 am_cv_CC_dependencies_compiler_type=$depmode
4397 break
4400 done
4402 cd ..
4403 rm -rf conftest.dir
4404 else
4405 am_cv_CC_dependencies_compiler_type=none
4409 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4410 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4411 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4414 test "x$enable_dependency_tracking" != xno \
4415 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4416 am__fastdepCC_TRUE=
4417 am__fastdepCC_FALSE='#'
4418 else
4419 am__fastdepCC_TRUE='#'
4420 am__fastdepCC_FALSE=
4424 ac_ext=c
4425 ac_cpp='$CPP $CPPFLAGS'
4426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4429 if test -n "$ac_tool_prefix"; then
4430 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4431 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4432 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4433 $as_echo_n "checking for $ac_word... " >&6; }
4434 if test "${ac_cv_prog_CC+set}" = set; then
4435 $as_echo_n "(cached) " >&6
4436 else
4437 if test -n "$CC"; then
4438 ac_cv_prog_CC="$CC" # Let the user override the test.
4439 else
4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 for as_dir in $PATH
4443 IFS=$as_save_IFS
4444 test -z "$as_dir" && as_dir=.
4445 for ac_exec_ext in '' $ac_executable_extensions; do
4446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4447 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4448 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4449 break 2
4451 done
4452 done
4453 IFS=$as_save_IFS
4457 CC=$ac_cv_prog_CC
4458 if test -n "$CC"; then
4459 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4460 $as_echo "$CC" >&6; }
4461 else
4462 { $as_echo "$as_me:$LINENO: result: no" >&5
4463 $as_echo "no" >&6; }
4468 if test -z "$ac_cv_prog_CC"; then
4469 ac_ct_CC=$CC
4470 # Extract the first word of "gcc", so it can be a program name with args.
4471 set dummy gcc; ac_word=$2
4472 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4473 $as_echo_n "checking for $ac_word... " >&6; }
4474 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4475 $as_echo_n "(cached) " >&6
4476 else
4477 if test -n "$ac_ct_CC"; then
4478 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4479 else
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 for as_dir in $PATH
4483 IFS=$as_save_IFS
4484 test -z "$as_dir" && as_dir=.
4485 for ac_exec_ext in '' $ac_executable_extensions; do
4486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4487 ac_cv_prog_ac_ct_CC="gcc"
4488 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4489 break 2
4491 done
4492 done
4493 IFS=$as_save_IFS
4497 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4498 if test -n "$ac_ct_CC"; then
4499 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4500 $as_echo "$ac_ct_CC" >&6; }
4501 else
4502 { $as_echo "$as_me:$LINENO: result: no" >&5
4503 $as_echo "no" >&6; }
4506 if test "x$ac_ct_CC" = x; then
4507 CC=""
4508 else
4509 case $cross_compiling:$ac_tool_warned in
4510 yes:)
4511 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4512 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4513 ac_tool_warned=yes ;;
4514 esac
4515 CC=$ac_ct_CC
4517 else
4518 CC="$ac_cv_prog_CC"
4521 if test -z "$CC"; then
4522 if test -n "$ac_tool_prefix"; then
4523 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4524 set dummy ${ac_tool_prefix}cc; ac_word=$2
4525 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4526 $as_echo_n "checking for $ac_word... " >&6; }
4527 if test "${ac_cv_prog_CC+set}" = set; then
4528 $as_echo_n "(cached) " >&6
4529 else
4530 if test -n "$CC"; then
4531 ac_cv_prog_CC="$CC" # Let the user override the test.
4532 else
4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534 for as_dir in $PATH
4536 IFS=$as_save_IFS
4537 test -z "$as_dir" && as_dir=.
4538 for ac_exec_ext in '' $ac_executable_extensions; do
4539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4540 ac_cv_prog_CC="${ac_tool_prefix}cc"
4541 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4542 break 2
4544 done
4545 done
4546 IFS=$as_save_IFS
4550 CC=$ac_cv_prog_CC
4551 if test -n "$CC"; then
4552 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4553 $as_echo "$CC" >&6; }
4554 else
4555 { $as_echo "$as_me:$LINENO: result: no" >&5
4556 $as_echo "no" >&6; }
4562 if test -z "$CC"; then
4563 # Extract the first word of "cc", so it can be a program name with args.
4564 set dummy cc; ac_word=$2
4565 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4566 $as_echo_n "checking for $ac_word... " >&6; }
4567 if test "${ac_cv_prog_CC+set}" = set; then
4568 $as_echo_n "(cached) " >&6
4569 else
4570 if test -n "$CC"; then
4571 ac_cv_prog_CC="$CC" # Let the user override the test.
4572 else
4573 ac_prog_rejected=no
4574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 for as_dir in $PATH
4577 IFS=$as_save_IFS
4578 test -z "$as_dir" && as_dir=.
4579 for ac_exec_ext in '' $ac_executable_extensions; do
4580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4581 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4582 ac_prog_rejected=yes
4583 continue
4585 ac_cv_prog_CC="cc"
4586 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4587 break 2
4589 done
4590 done
4591 IFS=$as_save_IFS
4593 if test $ac_prog_rejected = yes; then
4594 # We found a bogon in the path, so make sure we never use it.
4595 set dummy $ac_cv_prog_CC
4596 shift
4597 if test $# != 0; then
4598 # We chose a different compiler from the bogus one.
4599 # However, it has the same basename, so the bogon will be chosen
4600 # first if we set CC to just the basename; use the full file name.
4601 shift
4602 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4607 CC=$ac_cv_prog_CC
4608 if test -n "$CC"; then
4609 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4610 $as_echo "$CC" >&6; }
4611 else
4612 { $as_echo "$as_me:$LINENO: result: no" >&5
4613 $as_echo "no" >&6; }
4618 if test -z "$CC"; then
4619 if test -n "$ac_tool_prefix"; then
4620 for ac_prog in cl.exe
4622 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4623 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4624 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4625 $as_echo_n "checking for $ac_word... " >&6; }
4626 if test "${ac_cv_prog_CC+set}" = set; then
4627 $as_echo_n "(cached) " >&6
4628 else
4629 if test -n "$CC"; then
4630 ac_cv_prog_CC="$CC" # Let the user override the test.
4631 else
4632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633 for as_dir in $PATH
4635 IFS=$as_save_IFS
4636 test -z "$as_dir" && as_dir=.
4637 for ac_exec_ext in '' $ac_executable_extensions; do
4638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4639 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4640 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4641 break 2
4643 done
4644 done
4645 IFS=$as_save_IFS
4649 CC=$ac_cv_prog_CC
4650 if test -n "$CC"; then
4651 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4652 $as_echo "$CC" >&6; }
4653 else
4654 { $as_echo "$as_me:$LINENO: result: no" >&5
4655 $as_echo "no" >&6; }
4659 test -n "$CC" && break
4660 done
4662 if test -z "$CC"; then
4663 ac_ct_CC=$CC
4664 for ac_prog in cl.exe
4666 # Extract the first word of "$ac_prog", so it can be a program name with args.
4667 set dummy $ac_prog; ac_word=$2
4668 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4669 $as_echo_n "checking for $ac_word... " >&6; }
4670 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4671 $as_echo_n "(cached) " >&6
4672 else
4673 if test -n "$ac_ct_CC"; then
4674 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4675 else
4676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677 for as_dir in $PATH
4679 IFS=$as_save_IFS
4680 test -z "$as_dir" && as_dir=.
4681 for ac_exec_ext in '' $ac_executable_extensions; do
4682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4683 ac_cv_prog_ac_ct_CC="$ac_prog"
4684 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4685 break 2
4687 done
4688 done
4689 IFS=$as_save_IFS
4693 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4694 if test -n "$ac_ct_CC"; then
4695 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4696 $as_echo "$ac_ct_CC" >&6; }
4697 else
4698 { $as_echo "$as_me:$LINENO: result: no" >&5
4699 $as_echo "no" >&6; }
4703 test -n "$ac_ct_CC" && break
4704 done
4706 if test "x$ac_ct_CC" = x; then
4707 CC=""
4708 else
4709 case $cross_compiling:$ac_tool_warned in
4710 yes:)
4711 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4713 ac_tool_warned=yes ;;
4714 esac
4715 CC=$ac_ct_CC
4722 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4724 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4725 See \`config.log' for more details." >&5
4726 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4727 See \`config.log' for more details." >&2;}
4728 { (exit 1); exit 1; }; }; }
4730 # Provide some information about the compiler.
4731 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4732 set X $ac_compile
4733 ac_compiler=$2
4734 { (ac_try="$ac_compiler --version >&5"
4735 case "(($ac_try" in
4736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4737 *) ac_try_echo=$ac_try;;
4738 esac
4739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4740 $as_echo "$ac_try_echo") >&5
4741 (eval "$ac_compiler --version >&5") 2>&5
4742 ac_status=$?
4743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }
4745 { (ac_try="$ac_compiler -v >&5"
4746 case "(($ac_try" in
4747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4748 *) ac_try_echo=$ac_try;;
4749 esac
4750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4751 $as_echo "$ac_try_echo") >&5
4752 (eval "$ac_compiler -v >&5") 2>&5
4753 ac_status=$?
4754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); }
4756 { (ac_try="$ac_compiler -V >&5"
4757 case "(($ac_try" in
4758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4759 *) ac_try_echo=$ac_try;;
4760 esac
4761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4762 $as_echo "$ac_try_echo") >&5
4763 (eval "$ac_compiler -V >&5") 2>&5
4764 ac_status=$?
4765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); }
4768 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4769 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4770 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4771 $as_echo_n "(cached) " >&6
4772 else
4773 cat >conftest.$ac_ext <<_ACEOF
4774 /* confdefs.h. */
4775 _ACEOF
4776 cat confdefs.h >>conftest.$ac_ext
4777 cat >>conftest.$ac_ext <<_ACEOF
4778 /* end confdefs.h. */
4781 main ()
4783 #ifndef __GNUC__
4784 choke me
4785 #endif
4788 return 0;
4790 _ACEOF
4791 rm -f conftest.$ac_objext
4792 if { (ac_try="$ac_compile"
4793 case "(($ac_try" in
4794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4795 *) ac_try_echo=$ac_try;;
4796 esac
4797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4798 $as_echo "$ac_try_echo") >&5
4799 (eval "$ac_compile") 2>conftest.er1
4800 ac_status=$?
4801 grep -v '^ *+' conftest.er1 >conftest.err
4802 rm -f conftest.er1
4803 cat conftest.err >&5
4804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); } && {
4806 test -z "$ac_c_werror_flag" ||
4807 test ! -s conftest.err
4808 } && test -s conftest.$ac_objext; then
4809 ac_compiler_gnu=yes
4810 else
4811 $as_echo "$as_me: failed program was:" >&5
4812 sed 's/^/| /' conftest.$ac_ext >&5
4814 ac_compiler_gnu=no
4817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4818 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4821 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4822 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4823 if test $ac_compiler_gnu = yes; then
4824 GCC=yes
4825 else
4826 GCC=
4828 ac_test_CFLAGS=${CFLAGS+set}
4829 ac_save_CFLAGS=$CFLAGS
4830 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4831 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4832 if test "${ac_cv_prog_cc_g+set}" = set; then
4833 $as_echo_n "(cached) " >&6
4834 else
4835 ac_save_c_werror_flag=$ac_c_werror_flag
4836 ac_c_werror_flag=yes
4837 ac_cv_prog_cc_g=no
4838 CFLAGS="-g"
4839 cat >conftest.$ac_ext <<_ACEOF
4840 /* confdefs.h. */
4841 _ACEOF
4842 cat confdefs.h >>conftest.$ac_ext
4843 cat >>conftest.$ac_ext <<_ACEOF
4844 /* end confdefs.h. */
4847 main ()
4851 return 0;
4853 _ACEOF
4854 rm -f conftest.$ac_objext
4855 if { (ac_try="$ac_compile"
4856 case "(($ac_try" in
4857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4858 *) ac_try_echo=$ac_try;;
4859 esac
4860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4861 $as_echo "$ac_try_echo") >&5
4862 (eval "$ac_compile") 2>conftest.er1
4863 ac_status=$?
4864 grep -v '^ *+' conftest.er1 >conftest.err
4865 rm -f conftest.er1
4866 cat conftest.err >&5
4867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); } && {
4869 test -z "$ac_c_werror_flag" ||
4870 test ! -s conftest.err
4871 } && test -s conftest.$ac_objext; then
4872 ac_cv_prog_cc_g=yes
4873 else
4874 $as_echo "$as_me: failed program was:" >&5
4875 sed 's/^/| /' conftest.$ac_ext >&5
4877 CFLAGS=""
4878 cat >conftest.$ac_ext <<_ACEOF
4879 /* confdefs.h. */
4880 _ACEOF
4881 cat confdefs.h >>conftest.$ac_ext
4882 cat >>conftest.$ac_ext <<_ACEOF
4883 /* end confdefs.h. */
4886 main ()
4890 return 0;
4892 _ACEOF
4893 rm -f conftest.$ac_objext
4894 if { (ac_try="$ac_compile"
4895 case "(($ac_try" in
4896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4897 *) ac_try_echo=$ac_try;;
4898 esac
4899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4900 $as_echo "$ac_try_echo") >&5
4901 (eval "$ac_compile") 2>conftest.er1
4902 ac_status=$?
4903 grep -v '^ *+' conftest.er1 >conftest.err
4904 rm -f conftest.er1
4905 cat conftest.err >&5
4906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); } && {
4908 test -z "$ac_c_werror_flag" ||
4909 test ! -s conftest.err
4910 } && test -s conftest.$ac_objext; then
4912 else
4913 $as_echo "$as_me: failed program was:" >&5
4914 sed 's/^/| /' conftest.$ac_ext >&5
4916 ac_c_werror_flag=$ac_save_c_werror_flag
4917 CFLAGS="-g"
4918 cat >conftest.$ac_ext <<_ACEOF
4919 /* confdefs.h. */
4920 _ACEOF
4921 cat confdefs.h >>conftest.$ac_ext
4922 cat >>conftest.$ac_ext <<_ACEOF
4923 /* end confdefs.h. */
4926 main ()
4930 return 0;
4932 _ACEOF
4933 rm -f conftest.$ac_objext
4934 if { (ac_try="$ac_compile"
4935 case "(($ac_try" in
4936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4937 *) ac_try_echo=$ac_try;;
4938 esac
4939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4940 $as_echo "$ac_try_echo") >&5
4941 (eval "$ac_compile") 2>conftest.er1
4942 ac_status=$?
4943 grep -v '^ *+' conftest.er1 >conftest.err
4944 rm -f conftest.er1
4945 cat conftest.err >&5
4946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); } && {
4948 test -z "$ac_c_werror_flag" ||
4949 test ! -s conftest.err
4950 } && test -s conftest.$ac_objext; then
4951 ac_cv_prog_cc_g=yes
4952 else
4953 $as_echo "$as_me: failed program was:" >&5
4954 sed 's/^/| /' conftest.$ac_ext >&5
4959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4966 ac_c_werror_flag=$ac_save_c_werror_flag
4968 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4969 $as_echo "$ac_cv_prog_cc_g" >&6; }
4970 if test "$ac_test_CFLAGS" = set; then
4971 CFLAGS=$ac_save_CFLAGS
4972 elif test $ac_cv_prog_cc_g = yes; then
4973 if test "$GCC" = yes; then
4974 CFLAGS="-g -O2"
4975 else
4976 CFLAGS="-g"
4978 else
4979 if test "$GCC" = yes; then
4980 CFLAGS="-O2"
4981 else
4982 CFLAGS=
4985 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4986 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4987 if test "${ac_cv_prog_cc_c89+set}" = set; then
4988 $as_echo_n "(cached) " >&6
4989 else
4990 ac_cv_prog_cc_c89=no
4991 ac_save_CC=$CC
4992 cat >conftest.$ac_ext <<_ACEOF
4993 /* confdefs.h. */
4994 _ACEOF
4995 cat confdefs.h >>conftest.$ac_ext
4996 cat >>conftest.$ac_ext <<_ACEOF
4997 /* end confdefs.h. */
4998 #include <stdarg.h>
4999 #include <stdio.h>
5000 #include <sys/types.h>
5001 #include <sys/stat.h>
5002 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5003 struct buf { int x; };
5004 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5005 static char *e (p, i)
5006 char **p;
5007 int i;
5009 return p[i];
5011 static char *f (char * (*g) (char **, int), char **p, ...)
5013 char *s;
5014 va_list v;
5015 va_start (v,p);
5016 s = g (p, va_arg (v,int));
5017 va_end (v);
5018 return s;
5021 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5022 function prototypes and stuff, but not '\xHH' hex character constants.
5023 These don't provoke an error unfortunately, instead are silently treated
5024 as 'x'. The following induces an error, until -std is added to get
5025 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5026 array size at least. It's necessary to write '\x00'==0 to get something
5027 that's true only with -std. */
5028 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5030 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5031 inside strings and character constants. */
5032 #define FOO(x) 'x'
5033 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5035 int test (int i, double x);
5036 struct s1 {int (*f) (int a);};
5037 struct s2 {int (*f) (double a);};
5038 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5039 int argc;
5040 char **argv;
5042 main ()
5044 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5046 return 0;
5048 _ACEOF
5049 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5050 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5052 CC="$ac_save_CC $ac_arg"
5053 rm -f conftest.$ac_objext
5054 if { (ac_try="$ac_compile"
5055 case "(($ac_try" in
5056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5057 *) ac_try_echo=$ac_try;;
5058 esac
5059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5060 $as_echo "$ac_try_echo") >&5
5061 (eval "$ac_compile") 2>conftest.er1
5062 ac_status=$?
5063 grep -v '^ *+' conftest.er1 >conftest.err
5064 rm -f conftest.er1
5065 cat conftest.err >&5
5066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); } && {
5068 test -z "$ac_c_werror_flag" ||
5069 test ! -s conftest.err
5070 } && test -s conftest.$ac_objext; then
5071 ac_cv_prog_cc_c89=$ac_arg
5072 else
5073 $as_echo "$as_me: failed program was:" >&5
5074 sed 's/^/| /' conftest.$ac_ext >&5
5079 rm -f core conftest.err conftest.$ac_objext
5080 test "x$ac_cv_prog_cc_c89" != "xno" && break
5081 done
5082 rm -f conftest.$ac_ext
5083 CC=$ac_save_CC
5086 # AC_CACHE_VAL
5087 case "x$ac_cv_prog_cc_c89" in
5089 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5090 $as_echo "none needed" >&6; } ;;
5091 xno)
5092 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5093 $as_echo "unsupported" >&6; } ;;
5095 CC="$CC $ac_cv_prog_cc_c89"
5096 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5097 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5098 esac
5101 ac_ext=c
5102 ac_cpp='$CPP $CPPFLAGS'
5103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5107 depcc="$CC" am_compiler_list=
5109 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5110 $as_echo_n "checking dependency style of $depcc... " >&6; }
5111 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5112 $as_echo_n "(cached) " >&6
5113 else
5114 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5115 # We make a subdir and do the tests there. Otherwise we can end up
5116 # making bogus files that we don't know about and never remove. For
5117 # instance it was reported that on HP-UX the gcc test will end up
5118 # making a dummy file named `D' -- because `-MD' means `put the output
5119 # in D'.
5120 mkdir conftest.dir
5121 # Copy depcomp to subdir because otherwise we won't find it if we're
5122 # using a relative directory.
5123 cp "$am_depcomp" conftest.dir
5124 cd conftest.dir
5125 # We will build objects and dependencies in a subdirectory because
5126 # it helps to detect inapplicable dependency modes. For instance
5127 # both Tru64's cc and ICC support -MD to output dependencies as a
5128 # side effect of compilation, but ICC will put the dependencies in
5129 # the current directory while Tru64 will put them in the object
5130 # directory.
5131 mkdir sub
5133 am_cv_CC_dependencies_compiler_type=none
5134 if test "$am_compiler_list" = ""; then
5135 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5137 for depmode in $am_compiler_list; do
5138 # Setup a source with many dependencies, because some compilers
5139 # like to wrap large dependency lists on column 80 (with \), and
5140 # we should not choose a depcomp mode which is confused by this.
5142 # We need to recreate these files for each test, as the compiler may
5143 # overwrite some of them when testing with obscure command lines.
5144 # This happens at least with the AIX C compiler.
5145 : > sub/conftest.c
5146 for i in 1 2 3 4 5 6; do
5147 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5148 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5149 # Solaris 8's {/usr,}/bin/sh.
5150 touch sub/conftst$i.h
5151 done
5152 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5154 case $depmode in
5155 nosideeffect)
5156 # after this tag, mechanisms are not by side-effect, so they'll
5157 # only be used when explicitly requested
5158 if test "x$enable_dependency_tracking" = xyes; then
5159 continue
5160 else
5161 break
5164 none) break ;;
5165 esac
5166 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5167 # mode. It turns out that the SunPro C++ compiler does not properly
5168 # handle `-M -o', and we need to detect this.
5169 if depmode=$depmode \
5170 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5171 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5172 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5173 >/dev/null 2>conftest.err &&
5174 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5175 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5176 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5177 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5178 # icc doesn't choke on unknown options, it will just issue warnings
5179 # or remarks (even with -Werror). So we grep stderr for any message
5180 # that says an option was ignored or not supported.
5181 # When given -MP, icc 7.0 and 7.1 complain thusly:
5182 # icc: Command line warning: ignoring option '-M'; no argument required
5183 # The diagnosis changed in icc 8.0:
5184 # icc: Command line remark: option '-MP' not supported
5185 if (grep 'ignoring option' conftest.err ||
5186 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5187 am_cv_CC_dependencies_compiler_type=$depmode
5188 break
5191 done
5193 cd ..
5194 rm -rf conftest.dir
5195 else
5196 am_cv_CC_dependencies_compiler_type=none
5200 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5201 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5202 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5205 test "x$enable_dependency_tracking" != xno \
5206 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5207 am__fastdepCC_TRUE=
5208 am__fastdepCC_FALSE='#'
5209 else
5210 am__fastdepCC_TRUE='#'
5211 am__fastdepCC_FALSE=
5216 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5218 ac_ext=c
5219 ac_cpp='$CPP $CPPFLAGS'
5220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5223 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5224 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5225 # On Suns, sometimes $CPP names a directory.
5226 if test -n "$CPP" && test -d "$CPP"; then
5227 CPP=
5229 if test -z "$CPP"; then
5230 if test "${ac_cv_prog_CPP+set}" = set; then
5231 $as_echo_n "(cached) " >&6
5232 else
5233 # Double quotes because CPP needs to be expanded
5234 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5236 ac_preproc_ok=false
5237 for ac_c_preproc_warn_flag in '' yes
5239 # Use a header file that comes with gcc, so configuring glibc
5240 # with a fresh cross-compiler works.
5241 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5242 # <limits.h> exists even on freestanding compilers.
5243 # On the NeXT, cc -E runs the code through the compiler's parser,
5244 # not just through cpp. "Syntax error" is here to catch this case.
5245 cat >conftest.$ac_ext <<_ACEOF
5246 /* confdefs.h. */
5247 _ACEOF
5248 cat confdefs.h >>conftest.$ac_ext
5249 cat >>conftest.$ac_ext <<_ACEOF
5250 /* end confdefs.h. */
5251 #ifdef __STDC__
5252 # include <limits.h>
5253 #else
5254 # include <assert.h>
5255 #endif
5256 Syntax error
5257 _ACEOF
5258 if { (ac_try="$ac_cpp conftest.$ac_ext"
5259 case "(($ac_try" in
5260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5261 *) ac_try_echo=$ac_try;;
5262 esac
5263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5264 $as_echo "$ac_try_echo") >&5
5265 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5266 ac_status=$?
5267 grep -v '^ *+' conftest.er1 >conftest.err
5268 rm -f conftest.er1
5269 cat conftest.err >&5
5270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); } >/dev/null && {
5272 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5273 test ! -s conftest.err
5274 }; then
5276 else
5277 $as_echo "$as_me: failed program was:" >&5
5278 sed 's/^/| /' conftest.$ac_ext >&5
5280 # Broken: fails on valid input.
5281 continue
5284 rm -f conftest.err conftest.$ac_ext
5286 # OK, works on sane cases. Now check whether nonexistent headers
5287 # can be detected and how.
5288 cat >conftest.$ac_ext <<_ACEOF
5289 /* confdefs.h. */
5290 _ACEOF
5291 cat confdefs.h >>conftest.$ac_ext
5292 cat >>conftest.$ac_ext <<_ACEOF
5293 /* end confdefs.h. */
5294 #include <ac_nonexistent.h>
5295 _ACEOF
5296 if { (ac_try="$ac_cpp conftest.$ac_ext"
5297 case "(($ac_try" in
5298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5299 *) ac_try_echo=$ac_try;;
5300 esac
5301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5302 $as_echo "$ac_try_echo") >&5
5303 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5304 ac_status=$?
5305 grep -v '^ *+' conftest.er1 >conftest.err
5306 rm -f conftest.er1
5307 cat conftest.err >&5
5308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); } >/dev/null && {
5310 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5311 test ! -s conftest.err
5312 }; then
5313 # Broken: success on invalid input.
5314 continue
5315 else
5316 $as_echo "$as_me: failed program was:" >&5
5317 sed 's/^/| /' conftest.$ac_ext >&5
5319 # Passes both tests.
5320 ac_preproc_ok=:
5321 break
5324 rm -f conftest.err conftest.$ac_ext
5326 done
5327 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5328 rm -f conftest.err conftest.$ac_ext
5329 if $ac_preproc_ok; then
5330 break
5333 done
5334 ac_cv_prog_CPP=$CPP
5337 CPP=$ac_cv_prog_CPP
5338 else
5339 ac_cv_prog_CPP=$CPP
5341 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5342 $as_echo "$CPP" >&6; }
5343 ac_preproc_ok=false
5344 for ac_c_preproc_warn_flag in '' yes
5346 # Use a header file that comes with gcc, so configuring glibc
5347 # with a fresh cross-compiler works.
5348 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5349 # <limits.h> exists even on freestanding compilers.
5350 # On the NeXT, cc -E runs the code through the compiler's parser,
5351 # not just through cpp. "Syntax error" is here to catch this case.
5352 cat >conftest.$ac_ext <<_ACEOF
5353 /* confdefs.h. */
5354 _ACEOF
5355 cat confdefs.h >>conftest.$ac_ext
5356 cat >>conftest.$ac_ext <<_ACEOF
5357 /* end confdefs.h. */
5358 #ifdef __STDC__
5359 # include <limits.h>
5360 #else
5361 # include <assert.h>
5362 #endif
5363 Syntax error
5364 _ACEOF
5365 if { (ac_try="$ac_cpp conftest.$ac_ext"
5366 case "(($ac_try" in
5367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5368 *) ac_try_echo=$ac_try;;
5369 esac
5370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5371 $as_echo "$ac_try_echo") >&5
5372 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5373 ac_status=$?
5374 grep -v '^ *+' conftest.er1 >conftest.err
5375 rm -f conftest.er1
5376 cat conftest.err >&5
5377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); } >/dev/null && {
5379 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5380 test ! -s conftest.err
5381 }; then
5383 else
5384 $as_echo "$as_me: failed program was:" >&5
5385 sed 's/^/| /' conftest.$ac_ext >&5
5387 # Broken: fails on valid input.
5388 continue
5391 rm -f conftest.err conftest.$ac_ext
5393 # OK, works on sane cases. Now check whether nonexistent headers
5394 # can be detected and how.
5395 cat >conftest.$ac_ext <<_ACEOF
5396 /* confdefs.h. */
5397 _ACEOF
5398 cat confdefs.h >>conftest.$ac_ext
5399 cat >>conftest.$ac_ext <<_ACEOF
5400 /* end confdefs.h. */
5401 #include <ac_nonexistent.h>
5402 _ACEOF
5403 if { (ac_try="$ac_cpp conftest.$ac_ext"
5404 case "(($ac_try" in
5405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5406 *) ac_try_echo=$ac_try;;
5407 esac
5408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5409 $as_echo "$ac_try_echo") >&5
5410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5411 ac_status=$?
5412 grep -v '^ *+' conftest.er1 >conftest.err
5413 rm -f conftest.er1
5414 cat conftest.err >&5
5415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); } >/dev/null && {
5417 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5418 test ! -s conftest.err
5419 }; then
5420 # Broken: success on invalid input.
5421 continue
5422 else
5423 $as_echo "$as_me: failed program was:" >&5
5424 sed 's/^/| /' conftest.$ac_ext >&5
5426 # Passes both tests.
5427 ac_preproc_ok=:
5428 break
5431 rm -f conftest.err conftest.$ac_ext
5433 done
5434 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5435 rm -f conftest.err conftest.$ac_ext
5436 if $ac_preproc_ok; then
5438 else
5439 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5441 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5442 See \`config.log' for more details." >&5
5443 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5444 See \`config.log' for more details." >&2;}
5445 { (exit 1); exit 1; }; }; }
5448 ac_ext=c
5449 ac_cpp='$CPP $CPPFLAGS'
5450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5455 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5456 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5457 if test "${ac_cv_path_GREP+set}" = set; then
5458 $as_echo_n "(cached) " >&6
5459 else
5460 if test -z "$GREP"; then
5461 ac_path_GREP_found=false
5462 # Loop through the user's path and test for each of PROGNAME-LIST
5463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5466 IFS=$as_save_IFS
5467 test -z "$as_dir" && as_dir=.
5468 for ac_prog in grep ggrep; do
5469 for ac_exec_ext in '' $ac_executable_extensions; do
5470 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5471 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5472 # Check for GNU ac_path_GREP and select it if it is found.
5473 # Check for GNU $ac_path_GREP
5474 case `"$ac_path_GREP" --version 2>&1` in
5475 *GNU*)
5476 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5478 ac_count=0
5479 $as_echo_n 0123456789 >"conftest.in"
5480 while :
5482 cat "conftest.in" "conftest.in" >"conftest.tmp"
5483 mv "conftest.tmp" "conftest.in"
5484 cp "conftest.in" "conftest.nl"
5485 $as_echo 'GREP' >> "conftest.nl"
5486 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5487 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5488 ac_count=`expr $ac_count + 1`
5489 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5490 # Best one so far, save it but keep looking for a better one
5491 ac_cv_path_GREP="$ac_path_GREP"
5492 ac_path_GREP_max=$ac_count
5494 # 10*(2^10) chars as input seems more than enough
5495 test $ac_count -gt 10 && break
5496 done
5497 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5498 esac
5500 $ac_path_GREP_found && break 3
5501 done
5502 done
5503 done
5504 IFS=$as_save_IFS
5505 if test -z "$ac_cv_path_GREP"; then
5506 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5507 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5508 { (exit 1); exit 1; }; }
5510 else
5511 ac_cv_path_GREP=$GREP
5515 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5516 $as_echo "$ac_cv_path_GREP" >&6; }
5517 GREP="$ac_cv_path_GREP"
5520 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5521 $as_echo_n "checking for egrep... " >&6; }
5522 if test "${ac_cv_path_EGREP+set}" = set; then
5523 $as_echo_n "(cached) " >&6
5524 else
5525 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5526 then ac_cv_path_EGREP="$GREP -E"
5527 else
5528 if test -z "$EGREP"; then
5529 ac_path_EGREP_found=false
5530 # Loop through the user's path and test for each of PROGNAME-LIST
5531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5534 IFS=$as_save_IFS
5535 test -z "$as_dir" && as_dir=.
5536 for ac_prog in egrep; do
5537 for ac_exec_ext in '' $ac_executable_extensions; do
5538 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5539 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5540 # Check for GNU ac_path_EGREP and select it if it is found.
5541 # Check for GNU $ac_path_EGREP
5542 case `"$ac_path_EGREP" --version 2>&1` in
5543 *GNU*)
5544 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5546 ac_count=0
5547 $as_echo_n 0123456789 >"conftest.in"
5548 while :
5550 cat "conftest.in" "conftest.in" >"conftest.tmp"
5551 mv "conftest.tmp" "conftest.in"
5552 cp "conftest.in" "conftest.nl"
5553 $as_echo 'EGREP' >> "conftest.nl"
5554 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5555 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5556 ac_count=`expr $ac_count + 1`
5557 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5558 # Best one so far, save it but keep looking for a better one
5559 ac_cv_path_EGREP="$ac_path_EGREP"
5560 ac_path_EGREP_max=$ac_count
5562 # 10*(2^10) chars as input seems more than enough
5563 test $ac_count -gt 10 && break
5564 done
5565 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5566 esac
5568 $ac_path_EGREP_found && break 3
5569 done
5570 done
5571 done
5572 IFS=$as_save_IFS
5573 if test -z "$ac_cv_path_EGREP"; then
5574 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5575 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5576 { (exit 1); exit 1; }; }
5578 else
5579 ac_cv_path_EGREP=$EGREP
5584 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5585 $as_echo "$ac_cv_path_EGREP" >&6; }
5586 EGREP="$ac_cv_path_EGREP"
5589 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5590 $as_echo_n "checking for ANSI C header files... " >&6; }
5591 if test "${ac_cv_header_stdc+set}" = set; then
5592 $as_echo_n "(cached) " >&6
5593 else
5594 cat >conftest.$ac_ext <<_ACEOF
5595 /* confdefs.h. */
5596 _ACEOF
5597 cat confdefs.h >>conftest.$ac_ext
5598 cat >>conftest.$ac_ext <<_ACEOF
5599 /* end confdefs.h. */
5600 #include <stdlib.h>
5601 #include <stdarg.h>
5602 #include <string.h>
5603 #include <float.h>
5606 main ()
5610 return 0;
5612 _ACEOF
5613 rm -f conftest.$ac_objext
5614 if { (ac_try="$ac_compile"
5615 case "(($ac_try" in
5616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5617 *) ac_try_echo=$ac_try;;
5618 esac
5619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5620 $as_echo "$ac_try_echo") >&5
5621 (eval "$ac_compile") 2>conftest.er1
5622 ac_status=$?
5623 grep -v '^ *+' conftest.er1 >conftest.err
5624 rm -f conftest.er1
5625 cat conftest.err >&5
5626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); } && {
5628 test -z "$ac_c_werror_flag" ||
5629 test ! -s conftest.err
5630 } && test -s conftest.$ac_objext; then
5631 ac_cv_header_stdc=yes
5632 else
5633 $as_echo "$as_me: failed program was:" >&5
5634 sed 's/^/| /' conftest.$ac_ext >&5
5636 ac_cv_header_stdc=no
5639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5641 if test $ac_cv_header_stdc = yes; then
5642 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5643 cat >conftest.$ac_ext <<_ACEOF
5644 /* confdefs.h. */
5645 _ACEOF
5646 cat confdefs.h >>conftest.$ac_ext
5647 cat >>conftest.$ac_ext <<_ACEOF
5648 /* end confdefs.h. */
5649 #include <string.h>
5651 _ACEOF
5652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5653 $EGREP "memchr" >/dev/null 2>&1; then
5655 else
5656 ac_cv_header_stdc=no
5658 rm -f conftest*
5662 if test $ac_cv_header_stdc = yes; then
5663 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5664 cat >conftest.$ac_ext <<_ACEOF
5665 /* confdefs.h. */
5666 _ACEOF
5667 cat confdefs.h >>conftest.$ac_ext
5668 cat >>conftest.$ac_ext <<_ACEOF
5669 /* end confdefs.h. */
5670 #include <stdlib.h>
5672 _ACEOF
5673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5674 $EGREP "free" >/dev/null 2>&1; then
5676 else
5677 ac_cv_header_stdc=no
5679 rm -f conftest*
5683 if test $ac_cv_header_stdc = yes; then
5684 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5685 if test "$cross_compiling" = yes; then
5687 else
5688 cat >conftest.$ac_ext <<_ACEOF
5689 /* confdefs.h. */
5690 _ACEOF
5691 cat confdefs.h >>conftest.$ac_ext
5692 cat >>conftest.$ac_ext <<_ACEOF
5693 /* end confdefs.h. */
5694 #include <ctype.h>
5695 #include <stdlib.h>
5696 #if ((' ' & 0x0FF) == 0x020)
5697 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5698 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5699 #else
5700 # define ISLOWER(c) \
5701 (('a' <= (c) && (c) <= 'i') \
5702 || ('j' <= (c) && (c) <= 'r') \
5703 || ('s' <= (c) && (c) <= 'z'))
5704 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5705 #endif
5707 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5709 main ()
5711 int i;
5712 for (i = 0; i < 256; i++)
5713 if (XOR (islower (i), ISLOWER (i))
5714 || toupper (i) != TOUPPER (i))
5715 return 2;
5716 return 0;
5718 _ACEOF
5719 rm -f conftest$ac_exeext
5720 if { (ac_try="$ac_link"
5721 case "(($ac_try" in
5722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5723 *) ac_try_echo=$ac_try;;
5724 esac
5725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5726 $as_echo "$ac_try_echo") >&5
5727 (eval "$ac_link") 2>&5
5728 ac_status=$?
5729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5731 { (case "(($ac_try" in
5732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5733 *) ac_try_echo=$ac_try;;
5734 esac
5735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5736 $as_echo "$ac_try_echo") >&5
5737 (eval "$ac_try") 2>&5
5738 ac_status=$?
5739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); }; }; then
5742 else
5743 $as_echo "$as_me: program exited with status $ac_status" >&5
5744 $as_echo "$as_me: failed program was:" >&5
5745 sed 's/^/| /' conftest.$ac_ext >&5
5747 ( exit $ac_status )
5748 ac_cv_header_stdc=no
5750 rm -rf conftest.dSYM
5751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5757 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5758 $as_echo "$ac_cv_header_stdc" >&6; }
5759 if test $ac_cv_header_stdc = yes; then
5761 cat >>confdefs.h <<\_ACEOF
5762 #define STDC_HEADERS 1
5763 _ACEOF
5769 # ============ Switched off:
5770 #AC_SUBST(CFLAGS)
5771 #AC_SUBST(CPPFLAGS)
5772 #AC_SUBST(LDFLAGS)
5775 GNOME_COMPILE_WARNINGS
5778 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5779 if test -n "$ac_tool_prefix"; then
5780 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5781 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5782 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5783 $as_echo_n "checking for $ac_word... " >&6; }
5784 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5785 $as_echo_n "(cached) " >&6
5786 else
5787 case $PKG_CONFIG in
5788 [\\/]* | ?:[\\/]*)
5789 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5793 for as_dir in $PATH
5795 IFS=$as_save_IFS
5796 test -z "$as_dir" && as_dir=.
5797 for ac_exec_ext in '' $ac_executable_extensions; do
5798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5799 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5800 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5801 break 2
5803 done
5804 done
5805 IFS=$as_save_IFS
5808 esac
5810 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5811 if test -n "$PKG_CONFIG"; then
5812 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5813 $as_echo "$PKG_CONFIG" >&6; }
5814 else
5815 { $as_echo "$as_me:$LINENO: result: no" >&5
5816 $as_echo "no" >&6; }
5821 if test -z "$ac_cv_path_PKG_CONFIG"; then
5822 ac_pt_PKG_CONFIG=$PKG_CONFIG
5823 # Extract the first word of "pkg-config", so it can be a program name with args.
5824 set dummy pkg-config; ac_word=$2
5825 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5826 $as_echo_n "checking for $ac_word... " >&6; }
5827 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
5828 $as_echo_n "(cached) " >&6
5829 else
5830 case $ac_pt_PKG_CONFIG in
5831 [\\/]* | ?:[\\/]*)
5832 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836 for as_dir in $PATH
5838 IFS=$as_save_IFS
5839 test -z "$as_dir" && as_dir=.
5840 for ac_exec_ext in '' $ac_executable_extensions; do
5841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5842 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5843 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5844 break 2
5846 done
5847 done
5848 IFS=$as_save_IFS
5851 esac
5853 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5854 if test -n "$ac_pt_PKG_CONFIG"; then
5855 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
5856 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5857 else
5858 { $as_echo "$as_me:$LINENO: result: no" >&5
5859 $as_echo "no" >&6; }
5862 if test "x$ac_pt_PKG_CONFIG" = x; then
5863 PKG_CONFIG=""
5864 else
5865 case $cross_compiling:$ac_tool_warned in
5866 yes:)
5867 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5869 ac_tool_warned=yes ;;
5870 esac
5871 PKG_CONFIG=$ac_pt_PKG_CONFIG
5873 else
5874 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5878 if test -n "$PKG_CONFIG"; then
5879 _pkg_min_version=0.9.0
5880 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
5881 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5882 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5883 { $as_echo "$as_me:$LINENO: result: yes" >&5
5884 $as_echo "yes" >&6; }
5885 else
5886 { $as_echo "$as_me:$LINENO: result: no" >&5
5887 $as_echo "no" >&6; }
5888 PKG_CONFIG=""
5893 pkg_failed=no
5894 { $as_echo "$as_me:$LINENO: checking for GPIV_UI" >&5
5895 $as_echo_n "checking for GPIV_UI... " >&6; }
5897 if test -n "$PKG_CONFIG"; then
5898 if test -n "$GPIV_UI_CFLAGS"; then
5899 pkg_cv_GPIV_UI_CFLAGS="$GPIV_UI_CFLAGS"
5900 else
5901 if test -n "$PKG_CONFIG" && \
5902 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeui-2.0\"") >&5
5903 ($PKG_CONFIG --exists --print-errors "libgnomeui-2.0") 2>&5
5904 ac_status=$?
5905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); }; then
5907 pkg_cv_GPIV_UI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeui-2.0" 2>/dev/null`
5908 else
5909 pkg_failed=yes
5912 else
5913 pkg_failed=untried
5915 if test -n "$PKG_CONFIG"; then
5916 if test -n "$GPIV_UI_LIBS"; then
5917 pkg_cv_GPIV_UI_LIBS="$GPIV_UI_LIBS"
5918 else
5919 if test -n "$PKG_CONFIG" && \
5920 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeui-2.0\"") >&5
5921 ($PKG_CONFIG --exists --print-errors "libgnomeui-2.0") 2>&5
5922 ac_status=$?
5923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); }; then
5925 pkg_cv_GPIV_UI_LIBS=`$PKG_CONFIG --libs "libgnomeui-2.0" 2>/dev/null`
5926 else
5927 pkg_failed=yes
5930 else
5931 pkg_failed=untried
5936 if test $pkg_failed = yes; then
5938 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5939 _pkg_short_errors_supported=yes
5940 else
5941 _pkg_short_errors_supported=no
5943 if test $_pkg_short_errors_supported = yes; then
5944 GPIV_UI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeui-2.0"`
5945 else
5946 GPIV_UI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeui-2.0"`
5948 # Put the nasty error message in config.log where it belongs
5949 echo "$GPIV_UI_PKG_ERRORS" >&5
5951 { { $as_echo "$as_me:$LINENO: error: Package requirements (libgnomeui-2.0) were not met:
5953 $GPIV_UI_PKG_ERRORS
5955 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5956 installed software in a non-standard prefix.
5958 Alternatively, you may set the environment variables GPIV_UI_CFLAGS
5959 and GPIV_UI_LIBS to avoid the need to call pkg-config.
5960 See the pkg-config man page for more details.
5961 " >&5
5962 $as_echo "$as_me: error: Package requirements (libgnomeui-2.0) were not met:
5964 $GPIV_UI_PKG_ERRORS
5966 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5967 installed software in a non-standard prefix.
5969 Alternatively, you may set the environment variables GPIV_UI_CFLAGS
5970 and GPIV_UI_LIBS to avoid the need to call pkg-config.
5971 See the pkg-config man page for more details.
5972 " >&2;}
5973 { (exit 1); exit 1; }; }
5974 elif test $pkg_failed = untried; then
5975 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5976 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5977 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
5978 is in your PATH or set the PKG_CONFIG environment variable to the full
5979 path to pkg-config.
5981 Alternatively, you may set the environment variables GPIV_UI_CFLAGS
5982 and GPIV_UI_LIBS to avoid the need to call pkg-config.
5983 See the pkg-config man page for more details.
5985 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5986 See \`config.log' for more details." >&5
5987 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
5988 is in your PATH or set the PKG_CONFIG environment variable to the full
5989 path to pkg-config.
5991 Alternatively, you may set the environment variables GPIV_UI_CFLAGS
5992 and GPIV_UI_LIBS to avoid the need to call pkg-config.
5993 See the pkg-config man page for more details.
5995 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5996 See \`config.log' for more details." >&2;}
5997 { (exit 1); exit 1; }; }; }
5998 else
5999 GPIV_UI_CFLAGS=$pkg_cv_GPIV_UI_CFLAGS
6000 GPIV_UI_LIBS=$pkg_cv_GPIV_UI_LIBS
6001 { $as_echo "$as_me:$LINENO: result: yes" >&5
6002 $as_echo "yes" >&6; }
6005 GPIV_GNOME_LIBS="libgnomeui-2.0"
6006 echo "configuring with libraries: " $gpiv_gnome_libs
6008 pkg_failed=no
6009 { $as_echo "$as_me:$LINENO: checking for GPIV" >&5
6010 $as_echo_n "checking for GPIV... " >&6; }
6012 if test -n "$PKG_CONFIG"; then
6013 if test -n "$GPIV_CFLAGS"; then
6014 pkg_cv_GPIV_CFLAGS="$GPIV_CFLAGS"
6015 else
6016 if test -n "$PKG_CONFIG" && \
6017 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$GPIV_GNOME_LIBS\"") >&5
6018 ($PKG_CONFIG --exists --print-errors "$GPIV_GNOME_LIBS") 2>&5
6019 ac_status=$?
6020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; then
6022 pkg_cv_GPIV_CFLAGS=`$PKG_CONFIG --cflags "$GPIV_GNOME_LIBS" 2>/dev/null`
6023 else
6024 pkg_failed=yes
6027 else
6028 pkg_failed=untried
6030 if test -n "$PKG_CONFIG"; then
6031 if test -n "$GPIV_LIBS"; then
6032 pkg_cv_GPIV_LIBS="$GPIV_LIBS"
6033 else
6034 if test -n "$PKG_CONFIG" && \
6035 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$GPIV_GNOME_LIBS\"") >&5
6036 ($PKG_CONFIG --exists --print-errors "$GPIV_GNOME_LIBS") 2>&5
6037 ac_status=$?
6038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); }; then
6040 pkg_cv_GPIV_LIBS=`$PKG_CONFIG --libs "$GPIV_GNOME_LIBS" 2>/dev/null`
6041 else
6042 pkg_failed=yes
6045 else
6046 pkg_failed=untried
6051 if test $pkg_failed = yes; then
6053 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6054 _pkg_short_errors_supported=yes
6055 else
6056 _pkg_short_errors_supported=no
6058 if test $_pkg_short_errors_supported = yes; then
6059 GPIV_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$GPIV_GNOME_LIBS"`
6060 else
6061 GPIV_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GPIV_GNOME_LIBS"`
6063 # Put the nasty error message in config.log where it belongs
6064 echo "$GPIV_PKG_ERRORS" >&5
6066 { { $as_echo "$as_me:$LINENO: error: Package requirements ($GPIV_GNOME_LIBS) were not met:
6068 $GPIV_PKG_ERRORS
6070 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6071 installed software in a non-standard prefix.
6073 Alternatively, you may set the environment variables GPIV_CFLAGS
6074 and GPIV_LIBS to avoid the need to call pkg-config.
6075 See the pkg-config man page for more details.
6076 " >&5
6077 $as_echo "$as_me: error: Package requirements ($GPIV_GNOME_LIBS) were not met:
6079 $GPIV_PKG_ERRORS
6081 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6082 installed software in a non-standard prefix.
6084 Alternatively, you may set the environment variables GPIV_CFLAGS
6085 and GPIV_LIBS to avoid the need to call pkg-config.
6086 See the pkg-config man page for more details.
6087 " >&2;}
6088 { (exit 1); exit 1; }; }
6089 elif test $pkg_failed = untried; then
6090 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6091 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6092 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
6093 is in your PATH or set the PKG_CONFIG environment variable to the full
6094 path to pkg-config.
6096 Alternatively, you may set the environment variables GPIV_CFLAGS
6097 and GPIV_LIBS to avoid the need to call pkg-config.
6098 See the pkg-config man page for more details.
6100 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6101 See \`config.log' for more details." >&5
6102 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
6103 is in your PATH or set the PKG_CONFIG environment variable to the full
6104 path to pkg-config.
6106 Alternatively, you may set the environment variables GPIV_CFLAGS
6107 and GPIV_LIBS to avoid the need to call pkg-config.
6108 See the pkg-config man page for more details.
6110 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6111 See \`config.log' for more details." >&2;}
6112 { (exit 1); exit 1; }; }; }
6113 else
6114 GPIV_CFLAGS=$pkg_cv_GPIV_CFLAGS
6115 GPIV_LIBS=$pkg_cv_GPIV_LIBS
6116 { $as_echo "$as_me:$LINENO: result: yes" >&5
6117 $as_echo "yes" >&6; }
6124 GETTEXT_PACKAGE=gpiv
6126 cat >>confdefs.h <<_ACEOF
6127 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
6128 _ACEOF
6130 ALL_LINGUAS="ca de nl"
6131 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6141 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6142 inttypes.h stdint.h unistd.h
6144 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6145 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6146 $as_echo_n "checking for $ac_header... " >&6; }
6147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6148 $as_echo_n "(cached) " >&6
6149 else
6150 cat >conftest.$ac_ext <<_ACEOF
6151 /* confdefs.h. */
6152 _ACEOF
6153 cat confdefs.h >>conftest.$ac_ext
6154 cat >>conftest.$ac_ext <<_ACEOF
6155 /* end confdefs.h. */
6156 $ac_includes_default
6158 #include <$ac_header>
6159 _ACEOF
6160 rm -f conftest.$ac_objext
6161 if { (ac_try="$ac_compile"
6162 case "(($ac_try" in
6163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6164 *) ac_try_echo=$ac_try;;
6165 esac
6166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6167 $as_echo "$ac_try_echo") >&5
6168 (eval "$ac_compile") 2>conftest.er1
6169 ac_status=$?
6170 grep -v '^ *+' conftest.er1 >conftest.err
6171 rm -f conftest.er1
6172 cat conftest.err >&5
6173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } && {
6175 test -z "$ac_c_werror_flag" ||
6176 test ! -s conftest.err
6177 } && test -s conftest.$ac_objext; then
6178 eval "$as_ac_Header=yes"
6179 else
6180 $as_echo "$as_me: failed program was:" >&5
6181 sed 's/^/| /' conftest.$ac_ext >&5
6183 eval "$as_ac_Header=no"
6186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6188 ac_res=`eval 'as_val=${'$as_ac_Header'}
6189 $as_echo "$as_val"'`
6190 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6191 $as_echo "$ac_res" >&6; }
6192 as_val=`eval 'as_val=${'$as_ac_Header'}
6193 $as_echo "$as_val"'`
6194 if test "x$as_val" = x""yes; then
6195 cat >>confdefs.h <<_ACEOF
6196 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6197 _ACEOF
6201 done
6206 for ac_header in locale.h
6208 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6210 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6211 $as_echo_n "checking for $ac_header... " >&6; }
6212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6213 $as_echo_n "(cached) " >&6
6215 ac_res=`eval 'as_val=${'$as_ac_Header'}
6216 $as_echo "$as_val"'`
6217 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6218 $as_echo "$ac_res" >&6; }
6219 else
6220 # Is the header compilable?
6221 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6222 $as_echo_n "checking $ac_header usability... " >&6; }
6223 cat >conftest.$ac_ext <<_ACEOF
6224 /* confdefs.h. */
6225 _ACEOF
6226 cat confdefs.h >>conftest.$ac_ext
6227 cat >>conftest.$ac_ext <<_ACEOF
6228 /* end confdefs.h. */
6229 $ac_includes_default
6230 #include <$ac_header>
6231 _ACEOF
6232 rm -f conftest.$ac_objext
6233 if { (ac_try="$ac_compile"
6234 case "(($ac_try" in
6235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6236 *) ac_try_echo=$ac_try;;
6237 esac
6238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6239 $as_echo "$ac_try_echo") >&5
6240 (eval "$ac_compile") 2>conftest.er1
6241 ac_status=$?
6242 grep -v '^ *+' conftest.er1 >conftest.err
6243 rm -f conftest.er1
6244 cat conftest.err >&5
6245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); } && {
6247 test -z "$ac_c_werror_flag" ||
6248 test ! -s conftest.err
6249 } && test -s conftest.$ac_objext; then
6250 ac_header_compiler=yes
6251 else
6252 $as_echo "$as_me: failed program was:" >&5
6253 sed 's/^/| /' conftest.$ac_ext >&5
6255 ac_header_compiler=no
6258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6259 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6260 $as_echo "$ac_header_compiler" >&6; }
6262 # Is the header present?
6263 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6264 $as_echo_n "checking $ac_header presence... " >&6; }
6265 cat >conftest.$ac_ext <<_ACEOF
6266 /* confdefs.h. */
6267 _ACEOF
6268 cat confdefs.h >>conftest.$ac_ext
6269 cat >>conftest.$ac_ext <<_ACEOF
6270 /* end confdefs.h. */
6271 #include <$ac_header>
6272 _ACEOF
6273 if { (ac_try="$ac_cpp conftest.$ac_ext"
6274 case "(($ac_try" in
6275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6276 *) ac_try_echo=$ac_try;;
6277 esac
6278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6279 $as_echo "$ac_try_echo") >&5
6280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6281 ac_status=$?
6282 grep -v '^ *+' conftest.er1 >conftest.err
6283 rm -f conftest.er1
6284 cat conftest.err >&5
6285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); } >/dev/null && {
6287 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6288 test ! -s conftest.err
6289 }; then
6290 ac_header_preproc=yes
6291 else
6292 $as_echo "$as_me: failed program was:" >&5
6293 sed 's/^/| /' conftest.$ac_ext >&5
6295 ac_header_preproc=no
6298 rm -f conftest.err conftest.$ac_ext
6299 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6300 $as_echo "$ac_header_preproc" >&6; }
6302 # So? What about this header?
6303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6304 yes:no: )
6305 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6306 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6307 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6308 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6309 ac_header_preproc=yes
6311 no:yes:* )
6312 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6313 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6314 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6315 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6316 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6317 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6318 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6319 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6320 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6321 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6323 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6324 ( cat <<\_ASBOX
6325 ## ------------------------------------------------------------------- ##
6326 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=gpiv ##
6327 ## ------------------------------------------------------------------- ##
6328 _ASBOX
6329 ) | sed "s/^/$as_me: WARNING: /" >&2
6331 esac
6332 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6333 $as_echo_n "checking for $ac_header... " >&6; }
6334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6335 $as_echo_n "(cached) " >&6
6336 else
6337 eval "$as_ac_Header=\$ac_header_preproc"
6339 ac_res=`eval 'as_val=${'$as_ac_Header'}
6340 $as_echo "$as_val"'`
6341 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6342 $as_echo "$ac_res" >&6; }
6345 as_val=`eval 'as_val=${'$as_ac_Header'}
6346 $as_echo "$as_val"'`
6347 if test "x$as_val" = x""yes; then
6348 cat >>confdefs.h <<_ACEOF
6349 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6350 _ACEOF
6354 done
6356 if test $ac_cv_header_locale_h = yes; then
6357 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
6358 $as_echo_n "checking for LC_MESSAGES... " >&6; }
6359 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
6360 $as_echo_n "(cached) " >&6
6361 else
6362 cat >conftest.$ac_ext <<_ACEOF
6363 /* confdefs.h. */
6364 _ACEOF
6365 cat confdefs.h >>conftest.$ac_ext
6366 cat >>conftest.$ac_ext <<_ACEOF
6367 /* end confdefs.h. */
6368 #include <locale.h>
6370 main ()
6372 return LC_MESSAGES
6374 return 0;
6376 _ACEOF
6377 rm -f conftest.$ac_objext conftest$ac_exeext
6378 if { (ac_try="$ac_link"
6379 case "(($ac_try" in
6380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6381 *) ac_try_echo=$ac_try;;
6382 esac
6383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6384 $as_echo "$ac_try_echo") >&5
6385 (eval "$ac_link") 2>conftest.er1
6386 ac_status=$?
6387 grep -v '^ *+' conftest.er1 >conftest.err
6388 rm -f conftest.er1
6389 cat conftest.err >&5
6390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); } && {
6392 test -z "$ac_c_werror_flag" ||
6393 test ! -s conftest.err
6394 } && test -s conftest$ac_exeext && {
6395 test "$cross_compiling" = yes ||
6396 $as_test_x conftest$ac_exeext
6397 }; then
6398 am_cv_val_LC_MESSAGES=yes
6399 else
6400 $as_echo "$as_me: failed program was:" >&5
6401 sed 's/^/| /' conftest.$ac_ext >&5
6403 am_cv_val_LC_MESSAGES=no
6406 rm -rf conftest.dSYM
6407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6408 conftest$ac_exeext conftest.$ac_ext
6410 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
6411 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
6412 if test $am_cv_val_LC_MESSAGES = yes; then
6414 cat >>confdefs.h <<\_ACEOF
6415 #define HAVE_LC_MESSAGES 1
6416 _ACEOF
6420 USE_NLS=yes
6423 gt_cv_have_gettext=no
6425 CATOBJEXT=NONE
6426 XGETTEXT=:
6427 INTLLIBS=
6429 if test "${ac_cv_header_libintl_h+set}" = set; then
6430 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
6431 $as_echo_n "checking for libintl.h... " >&6; }
6432 if test "${ac_cv_header_libintl_h+set}" = set; then
6433 $as_echo_n "(cached) " >&6
6435 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6436 $as_echo "$ac_cv_header_libintl_h" >&6; }
6437 else
6438 # Is the header compilable?
6439 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
6440 $as_echo_n "checking libintl.h usability... " >&6; }
6441 cat >conftest.$ac_ext <<_ACEOF
6442 /* confdefs.h. */
6443 _ACEOF
6444 cat confdefs.h >>conftest.$ac_ext
6445 cat >>conftest.$ac_ext <<_ACEOF
6446 /* end confdefs.h. */
6447 $ac_includes_default
6448 #include <libintl.h>
6449 _ACEOF
6450 rm -f conftest.$ac_objext
6451 if { (ac_try="$ac_compile"
6452 case "(($ac_try" in
6453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6454 *) ac_try_echo=$ac_try;;
6455 esac
6456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6457 $as_echo "$ac_try_echo") >&5
6458 (eval "$ac_compile") 2>conftest.er1
6459 ac_status=$?
6460 grep -v '^ *+' conftest.er1 >conftest.err
6461 rm -f conftest.er1
6462 cat conftest.err >&5
6463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); } && {
6465 test -z "$ac_c_werror_flag" ||
6466 test ! -s conftest.err
6467 } && test -s conftest.$ac_objext; then
6468 ac_header_compiler=yes
6469 else
6470 $as_echo "$as_me: failed program was:" >&5
6471 sed 's/^/| /' conftest.$ac_ext >&5
6473 ac_header_compiler=no
6476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6477 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6478 $as_echo "$ac_header_compiler" >&6; }
6480 # Is the header present?
6481 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
6482 $as_echo_n "checking libintl.h presence... " >&6; }
6483 cat >conftest.$ac_ext <<_ACEOF
6484 /* confdefs.h. */
6485 _ACEOF
6486 cat confdefs.h >>conftest.$ac_ext
6487 cat >>conftest.$ac_ext <<_ACEOF
6488 /* end confdefs.h. */
6489 #include <libintl.h>
6490 _ACEOF
6491 if { (ac_try="$ac_cpp conftest.$ac_ext"
6492 case "(($ac_try" in
6493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6494 *) ac_try_echo=$ac_try;;
6495 esac
6496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6497 $as_echo "$ac_try_echo") >&5
6498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6499 ac_status=$?
6500 grep -v '^ *+' conftest.er1 >conftest.err
6501 rm -f conftest.er1
6502 cat conftest.err >&5
6503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); } >/dev/null && {
6505 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6506 test ! -s conftest.err
6507 }; then
6508 ac_header_preproc=yes
6509 else
6510 $as_echo "$as_me: failed program was:" >&5
6511 sed 's/^/| /' conftest.$ac_ext >&5
6513 ac_header_preproc=no
6516 rm -f conftest.err conftest.$ac_ext
6517 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6518 $as_echo "$ac_header_preproc" >&6; }
6520 # So? What about this header?
6521 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6522 yes:no: )
6523 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
6524 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6525 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
6526 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
6527 ac_header_preproc=yes
6529 no:yes:* )
6530 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
6531 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
6532 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
6533 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
6534 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
6535 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
6536 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
6537 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
6538 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
6539 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
6540 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
6541 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
6542 ( cat <<\_ASBOX
6543 ## ------------------------------------------------------------------- ##
6544 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=gpiv ##
6545 ## ------------------------------------------------------------------- ##
6546 _ASBOX
6547 ) | sed "s/^/$as_me: WARNING: /" >&2
6549 esac
6550 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
6551 $as_echo_n "checking for libintl.h... " >&6; }
6552 if test "${ac_cv_header_libintl_h+set}" = set; then
6553 $as_echo_n "(cached) " >&6
6554 else
6555 ac_cv_header_libintl_h=$ac_header_preproc
6557 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6558 $as_echo "$ac_cv_header_libintl_h" >&6; }
6561 if test "x$ac_cv_header_libintl_h" = x""yes; then
6562 gt_cv_func_dgettext_libintl="no"
6563 libintl_extra_libs=""
6566 # First check in libc
6568 { $as_echo "$as_me:$LINENO: checking for ngettext in libc" >&5
6569 $as_echo_n "checking for ngettext in libc... " >&6; }
6570 if test "${gt_cv_func_ngettext_libc+set}" = set; then
6571 $as_echo_n "(cached) " >&6
6572 else
6573 cat >conftest.$ac_ext <<_ACEOF
6574 /* confdefs.h. */
6575 _ACEOF
6576 cat confdefs.h >>conftest.$ac_ext
6577 cat >>conftest.$ac_ext <<_ACEOF
6578 /* end confdefs.h. */
6580 #include <libintl.h>
6583 main ()
6585 return !ngettext ("","", 1)
6587 return 0;
6589 _ACEOF
6590 rm -f conftest.$ac_objext conftest$ac_exeext
6591 if { (ac_try="$ac_link"
6592 case "(($ac_try" in
6593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6594 *) ac_try_echo=$ac_try;;
6595 esac
6596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6597 $as_echo "$ac_try_echo") >&5
6598 (eval "$ac_link") 2>conftest.er1
6599 ac_status=$?
6600 grep -v '^ *+' conftest.er1 >conftest.err
6601 rm -f conftest.er1
6602 cat conftest.err >&5
6603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); } && {
6605 test -z "$ac_c_werror_flag" ||
6606 test ! -s conftest.err
6607 } && test -s conftest$ac_exeext && {
6608 test "$cross_compiling" = yes ||
6609 $as_test_x conftest$ac_exeext
6610 }; then
6611 gt_cv_func_ngettext_libc=yes
6612 else
6613 $as_echo "$as_me: failed program was:" >&5
6614 sed 's/^/| /' conftest.$ac_ext >&5
6616 gt_cv_func_ngettext_libc=no
6619 rm -rf conftest.dSYM
6620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6621 conftest$ac_exeext conftest.$ac_ext
6624 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
6625 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
6627 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
6628 { $as_echo "$as_me:$LINENO: checking for dgettext in libc" >&5
6629 $as_echo_n "checking for dgettext in libc... " >&6; }
6630 if test "${gt_cv_func_dgettext_libc+set}" = set; then
6631 $as_echo_n "(cached) " >&6
6632 else
6633 cat >conftest.$ac_ext <<_ACEOF
6634 /* confdefs.h. */
6635 _ACEOF
6636 cat confdefs.h >>conftest.$ac_ext
6637 cat >>conftest.$ac_ext <<_ACEOF
6638 /* end confdefs.h. */
6640 #include <libintl.h>
6643 main ()
6645 return !dgettext ("","")
6647 return 0;
6649 _ACEOF
6650 rm -f conftest.$ac_objext conftest$ac_exeext
6651 if { (ac_try="$ac_link"
6652 case "(($ac_try" in
6653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6654 *) ac_try_echo=$ac_try;;
6655 esac
6656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6657 $as_echo "$ac_try_echo") >&5
6658 (eval "$ac_link") 2>conftest.er1
6659 ac_status=$?
6660 grep -v '^ *+' conftest.er1 >conftest.err
6661 rm -f conftest.er1
6662 cat conftest.err >&5
6663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); } && {
6665 test -z "$ac_c_werror_flag" ||
6666 test ! -s conftest.err
6667 } && test -s conftest$ac_exeext && {
6668 test "$cross_compiling" = yes ||
6669 $as_test_x conftest$ac_exeext
6670 }; then
6671 gt_cv_func_dgettext_libc=yes
6672 else
6673 $as_echo "$as_me: failed program was:" >&5
6674 sed 's/^/| /' conftest.$ac_ext >&5
6676 gt_cv_func_dgettext_libc=no
6679 rm -rf conftest.dSYM
6680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6681 conftest$ac_exeext conftest.$ac_ext
6684 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
6685 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
6688 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
6690 for ac_func in bind_textdomain_codeset
6692 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6693 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6694 $as_echo_n "checking for $ac_func... " >&6; }
6695 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6696 $as_echo_n "(cached) " >&6
6697 else
6698 cat >conftest.$ac_ext <<_ACEOF
6699 /* confdefs.h. */
6700 _ACEOF
6701 cat confdefs.h >>conftest.$ac_ext
6702 cat >>conftest.$ac_ext <<_ACEOF
6703 /* end confdefs.h. */
6704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6706 #define $ac_func innocuous_$ac_func
6708 /* System header to define __stub macros and hopefully few prototypes,
6709 which can conflict with char $ac_func (); below.
6710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6711 <limits.h> exists even on freestanding compilers. */
6713 #ifdef __STDC__
6714 # include <limits.h>
6715 #else
6716 # include <assert.h>
6717 #endif
6719 #undef $ac_func
6721 /* Override any GCC internal prototype to avoid an error.
6722 Use char because int might match the return type of a GCC
6723 builtin and then its argument prototype would still apply. */
6724 #ifdef __cplusplus
6725 extern "C"
6726 #endif
6727 char $ac_func ();
6728 /* The GNU C library defines this for functions which it implements
6729 to always fail with ENOSYS. Some functions are actually named
6730 something starting with __ and the normal name is an alias. */
6731 #if defined __stub_$ac_func || defined __stub___$ac_func
6732 choke me
6733 #endif
6736 main ()
6738 return $ac_func ();
6740 return 0;
6742 _ACEOF
6743 rm -f conftest.$ac_objext conftest$ac_exeext
6744 if { (ac_try="$ac_link"
6745 case "(($ac_try" in
6746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6747 *) ac_try_echo=$ac_try;;
6748 esac
6749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6750 $as_echo "$ac_try_echo") >&5
6751 (eval "$ac_link") 2>conftest.er1
6752 ac_status=$?
6753 grep -v '^ *+' conftest.er1 >conftest.err
6754 rm -f conftest.er1
6755 cat conftest.err >&5
6756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); } && {
6758 test -z "$ac_c_werror_flag" ||
6759 test ! -s conftest.err
6760 } && test -s conftest$ac_exeext && {
6761 test "$cross_compiling" = yes ||
6762 $as_test_x conftest$ac_exeext
6763 }; then
6764 eval "$as_ac_var=yes"
6765 else
6766 $as_echo "$as_me: failed program was:" >&5
6767 sed 's/^/| /' conftest.$ac_ext >&5
6769 eval "$as_ac_var=no"
6772 rm -rf conftest.dSYM
6773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6774 conftest$ac_exeext conftest.$ac_ext
6776 ac_res=`eval 'as_val=${'$as_ac_var'}
6777 $as_echo "$as_val"'`
6778 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6779 $as_echo "$ac_res" >&6; }
6780 as_val=`eval 'as_val=${'$as_ac_var'}
6781 $as_echo "$as_val"'`
6782 if test "x$as_val" = x""yes; then
6783 cat >>confdefs.h <<_ACEOF
6784 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6785 _ACEOF
6788 done
6793 # If we don't have everything we want, check in libintl
6795 if test "$gt_cv_func_dgettext_libc" != "yes" \
6796 || test "$gt_cv_func_ngettext_libc" != "yes" \
6797 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
6799 { $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
6800 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
6801 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
6802 $as_echo_n "(cached) " >&6
6803 else
6804 ac_check_lib_save_LIBS=$LIBS
6805 LIBS="-lintl $LIBS"
6806 cat >conftest.$ac_ext <<_ACEOF
6807 /* confdefs.h. */
6808 _ACEOF
6809 cat confdefs.h >>conftest.$ac_ext
6810 cat >>conftest.$ac_ext <<_ACEOF
6811 /* end confdefs.h. */
6813 /* Override any GCC internal prototype to avoid an error.
6814 Use char because int might match the return type of a GCC
6815 builtin and then its argument prototype would still apply. */
6816 #ifdef __cplusplus
6817 extern "C"
6818 #endif
6819 char bindtextdomain ();
6821 main ()
6823 return bindtextdomain ();
6825 return 0;
6827 _ACEOF
6828 rm -f conftest.$ac_objext conftest$ac_exeext
6829 if { (ac_try="$ac_link"
6830 case "(($ac_try" in
6831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6832 *) ac_try_echo=$ac_try;;
6833 esac
6834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6835 $as_echo "$ac_try_echo") >&5
6836 (eval "$ac_link") 2>conftest.er1
6837 ac_status=$?
6838 grep -v '^ *+' conftest.er1 >conftest.err
6839 rm -f conftest.er1
6840 cat conftest.err >&5
6841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); } && {
6843 test -z "$ac_c_werror_flag" ||
6844 test ! -s conftest.err
6845 } && test -s conftest$ac_exeext && {
6846 test "$cross_compiling" = yes ||
6847 $as_test_x conftest$ac_exeext
6848 }; then
6849 ac_cv_lib_intl_bindtextdomain=yes
6850 else
6851 $as_echo "$as_me: failed program was:" >&5
6852 sed 's/^/| /' conftest.$ac_ext >&5
6854 ac_cv_lib_intl_bindtextdomain=no
6857 rm -rf conftest.dSYM
6858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6859 conftest$ac_exeext conftest.$ac_ext
6860 LIBS=$ac_check_lib_save_LIBS
6862 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
6863 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
6864 if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then
6865 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
6866 $as_echo_n "checking for ngettext in -lintl... " >&6; }
6867 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
6868 $as_echo_n "(cached) " >&6
6869 else
6870 ac_check_lib_save_LIBS=$LIBS
6871 LIBS="-lintl $LIBS"
6872 cat >conftest.$ac_ext <<_ACEOF
6873 /* confdefs.h. */
6874 _ACEOF
6875 cat confdefs.h >>conftest.$ac_ext
6876 cat >>conftest.$ac_ext <<_ACEOF
6877 /* end confdefs.h. */
6879 /* Override any GCC internal prototype to avoid an error.
6880 Use char because int might match the return type of a GCC
6881 builtin and then its argument prototype would still apply. */
6882 #ifdef __cplusplus
6883 extern "C"
6884 #endif
6885 char ngettext ();
6887 main ()
6889 return ngettext ();
6891 return 0;
6893 _ACEOF
6894 rm -f conftest.$ac_objext conftest$ac_exeext
6895 if { (ac_try="$ac_link"
6896 case "(($ac_try" in
6897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6898 *) ac_try_echo=$ac_try;;
6899 esac
6900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6901 $as_echo "$ac_try_echo") >&5
6902 (eval "$ac_link") 2>conftest.er1
6903 ac_status=$?
6904 grep -v '^ *+' conftest.er1 >conftest.err
6905 rm -f conftest.er1
6906 cat conftest.err >&5
6907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); } && {
6909 test -z "$ac_c_werror_flag" ||
6910 test ! -s conftest.err
6911 } && test -s conftest$ac_exeext && {
6912 test "$cross_compiling" = yes ||
6913 $as_test_x conftest$ac_exeext
6914 }; then
6915 ac_cv_lib_intl_ngettext=yes
6916 else
6917 $as_echo "$as_me: failed program was:" >&5
6918 sed 's/^/| /' conftest.$ac_ext >&5
6920 ac_cv_lib_intl_ngettext=no
6923 rm -rf conftest.dSYM
6924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6925 conftest$ac_exeext conftest.$ac_ext
6926 LIBS=$ac_check_lib_save_LIBS
6928 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
6929 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
6930 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then
6931 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
6932 $as_echo_n "checking for dgettext in -lintl... " >&6; }
6933 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
6934 $as_echo_n "(cached) " >&6
6935 else
6936 ac_check_lib_save_LIBS=$LIBS
6937 LIBS="-lintl $LIBS"
6938 cat >conftest.$ac_ext <<_ACEOF
6939 /* confdefs.h. */
6940 _ACEOF
6941 cat confdefs.h >>conftest.$ac_ext
6942 cat >>conftest.$ac_ext <<_ACEOF
6943 /* end confdefs.h. */
6945 /* Override any GCC internal prototype to avoid an error.
6946 Use char because int might match the return type of a GCC
6947 builtin and then its argument prototype would still apply. */
6948 #ifdef __cplusplus
6949 extern "C"
6950 #endif
6951 char dgettext ();
6953 main ()
6955 return dgettext ();
6957 return 0;
6959 _ACEOF
6960 rm -f conftest.$ac_objext conftest$ac_exeext
6961 if { (ac_try="$ac_link"
6962 case "(($ac_try" in
6963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6964 *) ac_try_echo=$ac_try;;
6965 esac
6966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6967 $as_echo "$ac_try_echo") >&5
6968 (eval "$ac_link") 2>conftest.er1
6969 ac_status=$?
6970 grep -v '^ *+' conftest.er1 >conftest.err
6971 rm -f conftest.er1
6972 cat conftest.err >&5
6973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); } && {
6975 test -z "$ac_c_werror_flag" ||
6976 test ! -s conftest.err
6977 } && test -s conftest$ac_exeext && {
6978 test "$cross_compiling" = yes ||
6979 $as_test_x conftest$ac_exeext
6980 }; then
6981 ac_cv_lib_intl_dgettext=yes
6982 else
6983 $as_echo "$as_me: failed program was:" >&5
6984 sed 's/^/| /' conftest.$ac_ext >&5
6986 ac_cv_lib_intl_dgettext=no
6989 rm -rf conftest.dSYM
6990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6991 conftest$ac_exeext conftest.$ac_ext
6992 LIBS=$ac_check_lib_save_LIBS
6994 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
6995 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
6996 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then
6997 gt_cv_func_dgettext_libintl=yes
7005 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
7006 { $as_echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
7007 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
7008 { $as_echo "$as_me:$LINENO: result: " >&5
7009 $as_echo "" >&6; }
7010 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
7011 $as_echo_n "checking for ngettext in -lintl... " >&6; }
7012 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
7013 $as_echo_n "(cached) " >&6
7014 else
7015 ac_check_lib_save_LIBS=$LIBS
7016 LIBS="-lintl -liconv $LIBS"
7017 cat >conftest.$ac_ext <<_ACEOF
7018 /* confdefs.h. */
7019 _ACEOF
7020 cat confdefs.h >>conftest.$ac_ext
7021 cat >>conftest.$ac_ext <<_ACEOF
7022 /* end confdefs.h. */
7024 /* Override any GCC internal prototype to avoid an error.
7025 Use char because int might match the return type of a GCC
7026 builtin and then its argument prototype would still apply. */
7027 #ifdef __cplusplus
7028 extern "C"
7029 #endif
7030 char ngettext ();
7032 main ()
7034 return ngettext ();
7036 return 0;
7038 _ACEOF
7039 rm -f conftest.$ac_objext conftest$ac_exeext
7040 if { (ac_try="$ac_link"
7041 case "(($ac_try" in
7042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7043 *) ac_try_echo=$ac_try;;
7044 esac
7045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7046 $as_echo "$ac_try_echo") >&5
7047 (eval "$ac_link") 2>conftest.er1
7048 ac_status=$?
7049 grep -v '^ *+' conftest.er1 >conftest.err
7050 rm -f conftest.er1
7051 cat conftest.err >&5
7052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); } && {
7054 test -z "$ac_c_werror_flag" ||
7055 test ! -s conftest.err
7056 } && test -s conftest$ac_exeext && {
7057 test "$cross_compiling" = yes ||
7058 $as_test_x conftest$ac_exeext
7059 }; then
7060 ac_cv_lib_intl_ngettext=yes
7061 else
7062 $as_echo "$as_me: failed program was:" >&5
7063 sed 's/^/| /' conftest.$ac_ext >&5
7065 ac_cv_lib_intl_ngettext=no
7068 rm -rf conftest.dSYM
7069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7070 conftest$ac_exeext conftest.$ac_ext
7071 LIBS=$ac_check_lib_save_LIBS
7073 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
7074 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
7075 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then
7076 { $as_echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
7077 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
7078 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
7079 $as_echo_n "(cached) " >&6
7080 else
7081 ac_check_lib_save_LIBS=$LIBS
7082 LIBS="-lintl -liconv $LIBS"
7083 cat >conftest.$ac_ext <<_ACEOF
7084 /* confdefs.h. */
7085 _ACEOF
7086 cat confdefs.h >>conftest.$ac_ext
7087 cat >>conftest.$ac_ext <<_ACEOF
7088 /* end confdefs.h. */
7090 /* Override any GCC internal prototype to avoid an error.
7091 Use char because int might match the return type of a GCC
7092 builtin and then its argument prototype would still apply. */
7093 #ifdef __cplusplus
7094 extern "C"
7095 #endif
7096 char dcgettext ();
7098 main ()
7100 return dcgettext ();
7102 return 0;
7104 _ACEOF
7105 rm -f conftest.$ac_objext conftest$ac_exeext
7106 if { (ac_try="$ac_link"
7107 case "(($ac_try" in
7108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7109 *) ac_try_echo=$ac_try;;
7110 esac
7111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7112 $as_echo "$ac_try_echo") >&5
7113 (eval "$ac_link") 2>conftest.er1
7114 ac_status=$?
7115 grep -v '^ *+' conftest.er1 >conftest.err
7116 rm -f conftest.er1
7117 cat conftest.err >&5
7118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119 (exit $ac_status); } && {
7120 test -z "$ac_c_werror_flag" ||
7121 test ! -s conftest.err
7122 } && test -s conftest$ac_exeext && {
7123 test "$cross_compiling" = yes ||
7124 $as_test_x conftest$ac_exeext
7125 }; then
7126 ac_cv_lib_intl_dcgettext=yes
7127 else
7128 $as_echo "$as_me: failed program was:" >&5
7129 sed 's/^/| /' conftest.$ac_ext >&5
7131 ac_cv_lib_intl_dcgettext=no
7134 rm -rf conftest.dSYM
7135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7136 conftest$ac_exeext conftest.$ac_ext
7137 LIBS=$ac_check_lib_save_LIBS
7139 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
7140 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
7141 if test "x$ac_cv_lib_intl_dcgettext" = x""yes; then
7142 gt_cv_func_dgettext_libintl=yes
7143 libintl_extra_libs=-liconv
7144 else
7148 else
7155 # If we found libintl, then check in it for bind_textdomain_codeset();
7156 # we'll prefer libc if neither have bind_textdomain_codeset(),
7157 # and both have dgettext and ngettext
7159 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
7160 glib_save_LIBS="$LIBS"
7161 LIBS="$LIBS -lintl $libintl_extra_libs"
7162 unset ac_cv_func_bind_textdomain_codeset
7164 for ac_func in bind_textdomain_codeset
7166 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7167 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7168 $as_echo_n "checking for $ac_func... " >&6; }
7169 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7170 $as_echo_n "(cached) " >&6
7171 else
7172 cat >conftest.$ac_ext <<_ACEOF
7173 /* confdefs.h. */
7174 _ACEOF
7175 cat confdefs.h >>conftest.$ac_ext
7176 cat >>conftest.$ac_ext <<_ACEOF
7177 /* end confdefs.h. */
7178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7180 #define $ac_func innocuous_$ac_func
7182 /* System header to define __stub macros and hopefully few prototypes,
7183 which can conflict with char $ac_func (); below.
7184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7185 <limits.h> exists even on freestanding compilers. */
7187 #ifdef __STDC__
7188 # include <limits.h>
7189 #else
7190 # include <assert.h>
7191 #endif
7193 #undef $ac_func
7195 /* Override any GCC internal prototype to avoid an error.
7196 Use char because int might match the return type of a GCC
7197 builtin and then its argument prototype would still apply. */
7198 #ifdef __cplusplus
7199 extern "C"
7200 #endif
7201 char $ac_func ();
7202 /* The GNU C library defines this for functions which it implements
7203 to always fail with ENOSYS. Some functions are actually named
7204 something starting with __ and the normal name is an alias. */
7205 #if defined __stub_$ac_func || defined __stub___$ac_func
7206 choke me
7207 #endif
7210 main ()
7212 return $ac_func ();
7214 return 0;
7216 _ACEOF
7217 rm -f conftest.$ac_objext conftest$ac_exeext
7218 if { (ac_try="$ac_link"
7219 case "(($ac_try" in
7220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7221 *) ac_try_echo=$ac_try;;
7222 esac
7223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7224 $as_echo "$ac_try_echo") >&5
7225 (eval "$ac_link") 2>conftest.er1
7226 ac_status=$?
7227 grep -v '^ *+' conftest.er1 >conftest.err
7228 rm -f conftest.er1
7229 cat conftest.err >&5
7230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); } && {
7232 test -z "$ac_c_werror_flag" ||
7233 test ! -s conftest.err
7234 } && test -s conftest$ac_exeext && {
7235 test "$cross_compiling" = yes ||
7236 $as_test_x conftest$ac_exeext
7237 }; then
7238 eval "$as_ac_var=yes"
7239 else
7240 $as_echo "$as_me: failed program was:" >&5
7241 sed 's/^/| /' conftest.$ac_ext >&5
7243 eval "$as_ac_var=no"
7246 rm -rf conftest.dSYM
7247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7248 conftest$ac_exeext conftest.$ac_ext
7250 ac_res=`eval 'as_val=${'$as_ac_var'}
7251 $as_echo "$as_val"'`
7252 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7253 $as_echo "$ac_res" >&6; }
7254 as_val=`eval 'as_val=${'$as_ac_var'}
7255 $as_echo "$as_val"'`
7256 if test "x$as_val" = x""yes; then
7257 cat >>confdefs.h <<_ACEOF
7258 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7259 _ACEOF
7262 done
7264 LIBS="$glib_save_LIBS"
7266 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
7267 gt_cv_func_dgettext_libc=no
7268 else
7269 if test "$gt_cv_func_dgettext_libc" = "yes" \
7270 && test "$gt_cv_func_ngettext_libc" = "yes"; then
7271 gt_cv_func_dgettext_libintl=no
7277 if test "$gt_cv_func_dgettext_libc" = "yes" \
7278 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
7279 gt_cv_have_gettext=yes
7282 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
7283 INTLLIBS="-lintl $libintl_extra_libs"
7286 if test "$gt_cv_have_gettext" = "yes"; then
7288 cat >>confdefs.h <<\_ACEOF
7289 #define HAVE_GETTEXT 1
7290 _ACEOF
7292 # Extract the first word of "msgfmt", so it can be a program name with args.
7293 set dummy msgfmt; ac_word=$2
7294 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7295 $as_echo_n "checking for $ac_word... " >&6; }
7296 if test "${ac_cv_path_MSGFMT+set}" = set; then
7297 $as_echo_n "(cached) " >&6
7298 else
7299 case "$MSGFMT" in
7301 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7304 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7305 for ac_dir in $PATH; do
7306 test -z "$ac_dir" && ac_dir=.
7307 if test -f $ac_dir/$ac_word; then
7308 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7309 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7310 break
7313 done
7314 IFS="$ac_save_ifs"
7315 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7317 esac
7319 MSGFMT="$ac_cv_path_MSGFMT"
7320 if test "$MSGFMT" != "no"; then
7321 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
7322 $as_echo "$MSGFMT" >&6; }
7323 else
7324 { $as_echo "$as_me:$LINENO: result: no" >&5
7325 $as_echo "no" >&6; }
7327 if test "$MSGFMT" != "no"; then
7328 glib_save_LIBS="$LIBS"
7329 LIBS="$LIBS $INTLLIBS"
7331 for ac_func in dcgettext
7333 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7334 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7335 $as_echo_n "checking for $ac_func... " >&6; }
7336 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7337 $as_echo_n "(cached) " >&6
7338 else
7339 cat >conftest.$ac_ext <<_ACEOF
7340 /* confdefs.h. */
7341 _ACEOF
7342 cat confdefs.h >>conftest.$ac_ext
7343 cat >>conftest.$ac_ext <<_ACEOF
7344 /* end confdefs.h. */
7345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7347 #define $ac_func innocuous_$ac_func
7349 /* System header to define __stub macros and hopefully few prototypes,
7350 which can conflict with char $ac_func (); below.
7351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7352 <limits.h> exists even on freestanding compilers. */
7354 #ifdef __STDC__
7355 # include <limits.h>
7356 #else
7357 # include <assert.h>
7358 #endif
7360 #undef $ac_func
7362 /* Override any GCC internal prototype to avoid an error.
7363 Use char because int might match the return type of a GCC
7364 builtin and then its argument prototype would still apply. */
7365 #ifdef __cplusplus
7366 extern "C"
7367 #endif
7368 char $ac_func ();
7369 /* The GNU C library defines this for functions which it implements
7370 to always fail with ENOSYS. Some functions are actually named
7371 something starting with __ and the normal name is an alias. */
7372 #if defined __stub_$ac_func || defined __stub___$ac_func
7373 choke me
7374 #endif
7377 main ()
7379 return $ac_func ();
7381 return 0;
7383 _ACEOF
7384 rm -f conftest.$ac_objext conftest$ac_exeext
7385 if { (ac_try="$ac_link"
7386 case "(($ac_try" in
7387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7388 *) ac_try_echo=$ac_try;;
7389 esac
7390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7391 $as_echo "$ac_try_echo") >&5
7392 (eval "$ac_link") 2>conftest.er1
7393 ac_status=$?
7394 grep -v '^ *+' conftest.er1 >conftest.err
7395 rm -f conftest.er1
7396 cat conftest.err >&5
7397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398 (exit $ac_status); } && {
7399 test -z "$ac_c_werror_flag" ||
7400 test ! -s conftest.err
7401 } && test -s conftest$ac_exeext && {
7402 test "$cross_compiling" = yes ||
7403 $as_test_x conftest$ac_exeext
7404 }; then
7405 eval "$as_ac_var=yes"
7406 else
7407 $as_echo "$as_me: failed program was:" >&5
7408 sed 's/^/| /' conftest.$ac_ext >&5
7410 eval "$as_ac_var=no"
7413 rm -rf conftest.dSYM
7414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7415 conftest$ac_exeext conftest.$ac_ext
7417 ac_res=`eval 'as_val=${'$as_ac_var'}
7418 $as_echo "$as_val"'`
7419 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7420 $as_echo "$ac_res" >&6; }
7421 as_val=`eval 'as_val=${'$as_ac_var'}
7422 $as_echo "$as_val"'`
7423 if test "x$as_val" = x""yes; then
7424 cat >>confdefs.h <<_ACEOF
7425 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7426 _ACEOF
7429 done
7431 MSGFMT_OPTS=
7432 { $as_echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
7433 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
7434 cat >conftest.foo <<_ACEOF
7436 msgid ""
7437 msgstr ""
7438 "Content-Type: text/plain; charset=UTF-8\n"
7439 "Project-Id-Version: test 1.0\n"
7440 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
7441 "Last-Translator: test <foo@bar.xx>\n"
7442 "Language-Team: C <LL@li.org>\n"
7443 "MIME-Version: 1.0\n"
7444 "Content-Transfer-Encoding: 8bit\n"
7446 _ACEOF
7447 if { ($as_echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
7448 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
7449 ac_status=$?
7450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); }; then
7452 MSGFMT_OPTS=-c; { $as_echo "$as_me:$LINENO: result: yes" >&5
7453 $as_echo "yes" >&6; }
7454 else { $as_echo "$as_me:$LINENO: result: no" >&5
7455 $as_echo "no" >&6; }
7456 echo "$as_me: failed input was:" >&5
7457 sed 's/^/| /' conftest.foo >&5
7460 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7461 set dummy gmsgfmt; ac_word=$2
7462 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7463 $as_echo_n "checking for $ac_word... " >&6; }
7464 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7465 $as_echo_n "(cached) " >&6
7466 else
7467 case $GMSGFMT in
7468 [\\/]* | ?:[\\/]*)
7469 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473 for as_dir in $PATH
7475 IFS=$as_save_IFS
7476 test -z "$as_dir" && as_dir=.
7477 for ac_exec_ext in '' $ac_executable_extensions; do
7478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7479 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7480 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7481 break 2
7483 done
7484 done
7485 IFS=$as_save_IFS
7487 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7489 esac
7491 GMSGFMT=$ac_cv_path_GMSGFMT
7492 if test -n "$GMSGFMT"; then
7493 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7494 $as_echo "$GMSGFMT" >&6; }
7495 else
7496 { $as_echo "$as_me:$LINENO: result: no" >&5
7497 $as_echo "no" >&6; }
7501 # Extract the first word of "xgettext", so it can be a program name with args.
7502 set dummy xgettext; ac_word=$2
7503 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7504 $as_echo_n "checking for $ac_word... " >&6; }
7505 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7506 $as_echo_n "(cached) " >&6
7507 else
7508 case "$XGETTEXT" in
7510 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7513 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7514 for ac_dir in $PATH; do
7515 test -z "$ac_dir" && ac_dir=.
7516 if test -f $ac_dir/$ac_word; then
7517 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7518 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7519 break
7522 done
7523 IFS="$ac_save_ifs"
7524 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7526 esac
7528 XGETTEXT="$ac_cv_path_XGETTEXT"
7529 if test "$XGETTEXT" != ":"; then
7530 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7531 $as_echo "$XGETTEXT" >&6; }
7532 else
7533 { $as_echo "$as_me:$LINENO: result: no" >&5
7534 $as_echo "no" >&6; }
7537 cat >conftest.$ac_ext <<_ACEOF
7538 /* confdefs.h. */
7539 _ACEOF
7540 cat confdefs.h >>conftest.$ac_ext
7541 cat >>conftest.$ac_ext <<_ACEOF
7542 /* end confdefs.h. */
7545 main ()
7547 extern int _nl_msg_cat_cntr;
7548 return _nl_msg_cat_cntr
7550 return 0;
7552 _ACEOF
7553 rm -f conftest.$ac_objext conftest$ac_exeext
7554 if { (ac_try="$ac_link"
7555 case "(($ac_try" in
7556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7557 *) ac_try_echo=$ac_try;;
7558 esac
7559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7560 $as_echo "$ac_try_echo") >&5
7561 (eval "$ac_link") 2>conftest.er1
7562 ac_status=$?
7563 grep -v '^ *+' conftest.er1 >conftest.err
7564 rm -f conftest.er1
7565 cat conftest.err >&5
7566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567 (exit $ac_status); } && {
7568 test -z "$ac_c_werror_flag" ||
7569 test ! -s conftest.err
7570 } && test -s conftest$ac_exeext && {
7571 test "$cross_compiling" = yes ||
7572 $as_test_x conftest$ac_exeext
7573 }; then
7574 CATOBJEXT=.gmo
7575 DATADIRNAME=share
7576 else
7577 $as_echo "$as_me: failed program was:" >&5
7578 sed 's/^/| /' conftest.$ac_ext >&5
7580 case $host in
7581 *-*-solaris*)
7582 { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
7583 $as_echo_n "checking for bind_textdomain_codeset... " >&6; }
7584 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
7585 $as_echo_n "(cached) " >&6
7586 else
7587 cat >conftest.$ac_ext <<_ACEOF
7588 /* confdefs.h. */
7589 _ACEOF
7590 cat confdefs.h >>conftest.$ac_ext
7591 cat >>conftest.$ac_ext <<_ACEOF
7592 /* end confdefs.h. */
7593 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
7594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7595 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
7597 /* System header to define __stub macros and hopefully few prototypes,
7598 which can conflict with char bind_textdomain_codeset (); below.
7599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7600 <limits.h> exists even on freestanding compilers. */
7602 #ifdef __STDC__
7603 # include <limits.h>
7604 #else
7605 # include <assert.h>
7606 #endif
7608 #undef bind_textdomain_codeset
7610 /* Override any GCC internal prototype to avoid an error.
7611 Use char because int might match the return type of a GCC
7612 builtin and then its argument prototype would still apply. */
7613 #ifdef __cplusplus
7614 extern "C"
7615 #endif
7616 char bind_textdomain_codeset ();
7617 /* The GNU C library defines this for functions which it implements
7618 to always fail with ENOSYS. Some functions are actually named
7619 something starting with __ and the normal name is an alias. */
7620 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
7621 choke me
7622 #endif
7625 main ()
7627 return bind_textdomain_codeset ();
7629 return 0;
7631 _ACEOF
7632 rm -f conftest.$ac_objext conftest$ac_exeext
7633 if { (ac_try="$ac_link"
7634 case "(($ac_try" in
7635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7636 *) ac_try_echo=$ac_try;;
7637 esac
7638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7639 $as_echo "$ac_try_echo") >&5
7640 (eval "$ac_link") 2>conftest.er1
7641 ac_status=$?
7642 grep -v '^ *+' conftest.er1 >conftest.err
7643 rm -f conftest.er1
7644 cat conftest.err >&5
7645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646 (exit $ac_status); } && {
7647 test -z "$ac_c_werror_flag" ||
7648 test ! -s conftest.err
7649 } && test -s conftest$ac_exeext && {
7650 test "$cross_compiling" = yes ||
7651 $as_test_x conftest$ac_exeext
7652 }; then
7653 ac_cv_func_bind_textdomain_codeset=yes
7654 else
7655 $as_echo "$as_me: failed program was:" >&5
7656 sed 's/^/| /' conftest.$ac_ext >&5
7658 ac_cv_func_bind_textdomain_codeset=no
7661 rm -rf conftest.dSYM
7662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7663 conftest$ac_exeext conftest.$ac_ext
7665 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
7666 $as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
7667 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then
7668 CATOBJEXT=.gmo
7669 DATADIRNAME=share
7670 else
7671 CATOBJEXT=.mo
7672 DATADIRNAME=lib
7677 CATOBJEXT=.mo
7678 DATADIRNAME=lib
7680 esac
7683 rm -rf conftest.dSYM
7684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7685 conftest$ac_exeext conftest.$ac_ext
7686 LIBS="$glib_save_LIBS"
7687 INSTOBJEXT=.mo
7688 else
7689 gt_cv_have_gettext=no
7697 if test "$gt_cv_have_gettext" = "yes" ; then
7699 cat >>confdefs.h <<\_ACEOF
7700 #define ENABLE_NLS 1
7701 _ACEOF
7705 if test "$XGETTEXT" != ":"; then
7706 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7708 else
7709 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
7710 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
7711 XGETTEXT=":"
7715 # We need to process the po/ directory.
7716 POSUB=po
7718 ac_config_commands="$ac_config_commands default-1"
7721 for lang in $ALL_LINGUAS; do
7722 GMOFILES="$GMOFILES $lang.gmo"
7723 POFILES="$POFILES $lang.po"
7724 done
7738 if test "$gt_cv_have_gettext" = "yes"; then
7739 if test "x$ALL_LINGUAS" = "x"; then
7740 LINGUAS=
7741 else
7742 { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
7743 $as_echo_n "checking for catalogs to be installed... " >&6; }
7744 NEW_LINGUAS=
7745 for presentlang in $ALL_LINGUAS; do
7746 useit=no
7747 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
7748 desiredlanguages="$LINGUAS"
7749 else
7750 desiredlanguages="$ALL_LINGUAS"
7752 for desiredlang in $desiredlanguages; do
7753 # Use the presentlang catalog if desiredlang is
7754 # a. equal to presentlang, or
7755 # b. a variant of presentlang (because in this case,
7756 # presentlang can be used as a fallback for messages
7757 # which are not translated in the desiredlang catalog).
7758 case "$desiredlang" in
7759 "$presentlang"*) useit=yes;;
7760 esac
7761 done
7762 if test $useit = yes; then
7763 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
7765 done
7766 LINGUAS=$NEW_LINGUAS
7767 { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
7768 $as_echo "$LINGUAS" >&6; }
7771 if test -n "$LINGUAS"; then
7772 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7776 MKINSTALLDIRS=
7777 if test -n "$ac_aux_dir"; then
7778 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
7780 if test -z "$MKINSTALLDIRS"; then
7781 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7785 test -d po || mkdir po
7786 if test "x$srcdir" != "x."; then
7787 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
7788 posrcprefix="$srcdir/"
7789 else
7790 posrcprefix="../$srcdir/"
7792 else
7793 posrcprefix="../"
7795 rm -f po/POTFILES
7796 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
7797 < $srcdir/po/POTFILES.in > po/POTFILES
7802 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7803 $as_echo_n "checking whether NLS is requested... " >&6; }
7804 # Check whether --enable-nls was given.
7805 if test "${enable_nls+set}" = set; then
7806 enableval=$enable_nls; USE_NLS=$enableval
7807 else
7808 USE_NLS=yes
7811 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
7812 $as_echo "$USE_NLS" >&6; }
7817 case "$am__api_version" in
7818 1.01234)
7819 { { $as_echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5
7820 $as_echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;}
7821 { (exit 1); exit 1; }; }
7825 esac
7827 if test -n ""; then
7828 { $as_echo "$as_me:$LINENO: checking for intltool >= " >&5
7829 $as_echo_n "checking for intltool >= ... " >&6; }
7831 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
7832 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
7833 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
7835 { $as_echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
7836 $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
7837 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
7838 { { $as_echo "$as_me:$LINENO: error: Your intltool is too old. You need intltool or later." >&5
7839 $as_echo "$as_me: error: Your intltool is too old. You need intltool or later." >&2;}
7840 { (exit 1); exit 1; }; }
7843 # Extract the first word of "intltool-update", so it can be a program name with args.
7844 set dummy intltool-update; ac_word=$2
7845 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7846 $as_echo_n "checking for $ac_word... " >&6; }
7847 if test "${ac_cv_path_INTLTOOL_UPDATE+set}" = set; then
7848 $as_echo_n "(cached) " >&6
7849 else
7850 case $INTLTOOL_UPDATE in
7851 [\\/]* | ?:[\\/]*)
7852 ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
7855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7856 for as_dir in $PATH
7858 IFS=$as_save_IFS
7859 test -z "$as_dir" && as_dir=.
7860 for ac_exec_ext in '' $ac_executable_extensions; do
7861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7862 ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
7863 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7864 break 2
7866 done
7867 done
7868 IFS=$as_save_IFS
7871 esac
7873 INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
7874 if test -n "$INTLTOOL_UPDATE"; then
7875 { $as_echo "$as_me:$LINENO: result: $INTLTOOL_UPDATE" >&5
7876 $as_echo "$INTLTOOL_UPDATE" >&6; }
7877 else
7878 { $as_echo "$as_me:$LINENO: result: no" >&5
7879 $as_echo "no" >&6; }
7883 # Extract the first word of "intltool-merge", so it can be a program name with args.
7884 set dummy intltool-merge; ac_word=$2
7885 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7886 $as_echo_n "checking for $ac_word... " >&6; }
7887 if test "${ac_cv_path_INTLTOOL_MERGE+set}" = set; then
7888 $as_echo_n "(cached) " >&6
7889 else
7890 case $INTLTOOL_MERGE in
7891 [\\/]* | ?:[\\/]*)
7892 ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
7895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7896 for as_dir in $PATH
7898 IFS=$as_save_IFS
7899 test -z "$as_dir" && as_dir=.
7900 for ac_exec_ext in '' $ac_executable_extensions; do
7901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7902 ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
7903 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7904 break 2
7906 done
7907 done
7908 IFS=$as_save_IFS
7911 esac
7913 INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
7914 if test -n "$INTLTOOL_MERGE"; then
7915 { $as_echo "$as_me:$LINENO: result: $INTLTOOL_MERGE" >&5
7916 $as_echo "$INTLTOOL_MERGE" >&6; }
7917 else
7918 { $as_echo "$as_me:$LINENO: result: no" >&5
7919 $as_echo "no" >&6; }
7923 # Extract the first word of "intltool-extract", so it can be a program name with args.
7924 set dummy intltool-extract; ac_word=$2
7925 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7926 $as_echo_n "checking for $ac_word... " >&6; }
7927 if test "${ac_cv_path_INTLTOOL_EXTRACT+set}" = set; then
7928 $as_echo_n "(cached) " >&6
7929 else
7930 case $INTLTOOL_EXTRACT in
7931 [\\/]* | ?:[\\/]*)
7932 ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
7935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7936 for as_dir in $PATH
7938 IFS=$as_save_IFS
7939 test -z "$as_dir" && as_dir=.
7940 for ac_exec_ext in '' $ac_executable_extensions; do
7941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7942 ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
7943 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7944 break 2
7946 done
7947 done
7948 IFS=$as_save_IFS
7951 esac
7953 INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
7954 if test -n "$INTLTOOL_EXTRACT"; then
7955 { $as_echo "$as_me:$LINENO: result: $INTLTOOL_EXTRACT" >&5
7956 $as_echo "$INTLTOOL_EXTRACT" >&6; }
7957 else
7958 { $as_echo "$as_me:$LINENO: result: no" >&5
7959 $as_echo "no" >&6; }
7963 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
7964 { { $as_echo "$as_me:$LINENO: error: The intltool scripts were not found. Please install intltool." >&5
7965 $as_echo "$as_me: error: The intltool scripts were not found. Please install intltool." >&2;}
7966 { (exit 1); exit 1; }; }
7969 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 $< $@'
7970 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 $< $@'
7971 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 $< $@'
7972 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 $< $@'
7973 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
7974 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 $< $@'
7975 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 $< $@'
7976 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 $< $@'
7977 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 $< $@'
7978 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 $< $@'
7979 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 $< $@'
7980 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
7981 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 $< $@'
7982 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 $< $@'
7983 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 $< $@'
7984 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 $< $@'
7985 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 $< $@'
7986 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 $< $@'
7987 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 $< $@'
8085 # Check the gettext tools to make sure they are GNU
8086 # Extract the first word of "xgettext", so it can be a program name with args.
8087 set dummy xgettext; ac_word=$2
8088 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8089 $as_echo_n "checking for $ac_word... " >&6; }
8090 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8091 $as_echo_n "(cached) " >&6
8092 else
8093 case $XGETTEXT in
8094 [\\/]* | ?:[\\/]*)
8095 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8099 for as_dir in $PATH
8101 IFS=$as_save_IFS
8102 test -z "$as_dir" && as_dir=.
8103 for ac_exec_ext in '' $ac_executable_extensions; do
8104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8105 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
8106 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8107 break 2
8109 done
8110 done
8111 IFS=$as_save_IFS
8114 esac
8116 XGETTEXT=$ac_cv_path_XGETTEXT
8117 if test -n "$XGETTEXT"; then
8118 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8119 $as_echo "$XGETTEXT" >&6; }
8120 else
8121 { $as_echo "$as_me:$LINENO: result: no" >&5
8122 $as_echo "no" >&6; }
8126 # Extract the first word of "msgmerge", so it can be a program name with args.
8127 set dummy msgmerge; ac_word=$2
8128 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8129 $as_echo_n "checking for $ac_word... " >&6; }
8130 if test "${ac_cv_path_MSGMERGE+set}" = set; then
8131 $as_echo_n "(cached) " >&6
8132 else
8133 case $MSGMERGE in
8134 [\\/]* | ?:[\\/]*)
8135 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
8138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8139 for as_dir in $PATH
8141 IFS=$as_save_IFS
8142 test -z "$as_dir" && as_dir=.
8143 for ac_exec_ext in '' $ac_executable_extensions; do
8144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8145 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
8146 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8147 break 2
8149 done
8150 done
8151 IFS=$as_save_IFS
8154 esac
8156 MSGMERGE=$ac_cv_path_MSGMERGE
8157 if test -n "$MSGMERGE"; then
8158 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
8159 $as_echo "$MSGMERGE" >&6; }
8160 else
8161 { $as_echo "$as_me:$LINENO: result: no" >&5
8162 $as_echo "no" >&6; }
8166 # Extract the first word of "msgfmt", so it can be a program name with args.
8167 set dummy msgfmt; ac_word=$2
8168 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8169 $as_echo_n "checking for $ac_word... " >&6; }
8170 if test "${ac_cv_path_MSGFMT+set}" = set; then
8171 $as_echo_n "(cached) " >&6
8172 else
8173 case $MSGFMT in
8174 [\\/]* | ?:[\\/]*)
8175 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8179 for as_dir in $PATH
8181 IFS=$as_save_IFS
8182 test -z "$as_dir" && as_dir=.
8183 for ac_exec_ext in '' $ac_executable_extensions; do
8184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8185 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
8186 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8187 break 2
8189 done
8190 done
8191 IFS=$as_save_IFS
8194 esac
8196 MSGFMT=$ac_cv_path_MSGFMT
8197 if test -n "$MSGFMT"; then
8198 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
8199 $as_echo "$MSGFMT" >&6; }
8200 else
8201 { $as_echo "$as_me:$LINENO: result: no" >&5
8202 $as_echo "no" >&6; }
8206 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8207 set dummy gmsgfmt; ac_word=$2
8208 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8209 $as_echo_n "checking for $ac_word... " >&6; }
8210 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8211 $as_echo_n "(cached) " >&6
8212 else
8213 case $GMSGFMT in
8214 [\\/]* | ?:[\\/]*)
8215 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8219 for as_dir in $PATH
8221 IFS=$as_save_IFS
8222 test -z "$as_dir" && as_dir=.
8223 for ac_exec_ext in '' $ac_executable_extensions; do
8224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8225 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8226 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8227 break 2
8229 done
8230 done
8231 IFS=$as_save_IFS
8233 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8235 esac
8237 GMSGFMT=$ac_cv_path_GMSGFMT
8238 if test -n "$GMSGFMT"; then
8239 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8240 $as_echo "$GMSGFMT" >&6; }
8241 else
8242 { $as_echo "$as_me:$LINENO: result: no" >&5
8243 $as_echo "no" >&6; }
8247 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
8248 { { $as_echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
8249 $as_echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
8250 { (exit 1); exit 1; }; }
8252 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
8253 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
8254 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
8255 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
8256 { { $as_echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
8257 $as_echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
8258 { (exit 1); exit 1; }; }
8261 # Extract the first word of "perl", so it can be a program name with args.
8262 set dummy perl; ac_word=$2
8263 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8264 $as_echo_n "checking for $ac_word... " >&6; }
8265 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
8266 $as_echo_n "(cached) " >&6
8267 else
8268 case $INTLTOOL_PERL in
8269 [\\/]* | ?:[\\/]*)
8270 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
8273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8274 for as_dir in $PATH
8276 IFS=$as_save_IFS
8277 test -z "$as_dir" && as_dir=.
8278 for ac_exec_ext in '' $ac_executable_extensions; do
8279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8280 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
8281 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8282 break 2
8284 done
8285 done
8286 IFS=$as_save_IFS
8289 esac
8291 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
8292 if test -n "$INTLTOOL_PERL"; then
8293 { $as_echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
8294 $as_echo "$INTLTOOL_PERL" >&6; }
8295 else
8296 { $as_echo "$as_me:$LINENO: result: no" >&5
8297 $as_echo "no" >&6; }
8301 if test -z "$INTLTOOL_PERL"; then
8302 { { $as_echo "$as_me:$LINENO: error: perl not found" >&5
8303 $as_echo "$as_me: error: perl not found" >&2;}
8304 { (exit 1); exit 1; }; }
8306 { $as_echo "$as_me:$LINENO: checking for perl >= 5.8.1" >&5
8307 $as_echo_n "checking for perl >= 5.8.1... " >&6; }
8308 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
8309 if test $? -ne 0; then
8310 { { $as_echo "$as_me:$LINENO: error: perl 5.8.1 is required for intltool" >&5
8311 $as_echo "$as_me: error: perl 5.8.1 is required for intltool" >&2;}
8312 { (exit 1); exit 1; }; }
8313 else
8314 IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
8315 { $as_echo "$as_me:$LINENO: result: $IT_PERL_VERSION" >&5
8316 $as_echo "$IT_PERL_VERSION" >&6; }
8318 if test "x" != "xno-xml"; then
8319 { $as_echo "$as_me:$LINENO: checking for XML::Parser" >&5
8320 $as_echo_n "checking for XML::Parser... " >&6; }
8321 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
8322 { $as_echo "$as_me:$LINENO: result: ok" >&5
8323 $as_echo "ok" >&6; }
8324 else
8325 { { $as_echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
8326 $as_echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
8327 { (exit 1); exit 1; }; }
8331 # Substitute ALL_LINGUAS so we can use it in po/Makefile
8334 # Set DATADIRNAME correctly if it is not set yet
8335 # (copied from glib-gettext.m4)
8336 if test -z "$DATADIRNAME"; then
8337 cat >conftest.$ac_ext <<_ACEOF
8338 /* confdefs.h. */
8339 _ACEOF
8340 cat confdefs.h >>conftest.$ac_ext
8341 cat >>conftest.$ac_ext <<_ACEOF
8342 /* end confdefs.h. */
8345 main ()
8347 extern int _nl_msg_cat_cntr;
8348 return _nl_msg_cat_cntr
8350 return 0;
8352 _ACEOF
8353 rm -f conftest.$ac_objext conftest$ac_exeext
8354 if { (ac_try="$ac_link"
8355 case "(($ac_try" in
8356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8357 *) ac_try_echo=$ac_try;;
8358 esac
8359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8360 $as_echo "$ac_try_echo") >&5
8361 (eval "$ac_link") 2>conftest.er1
8362 ac_status=$?
8363 grep -v '^ *+' conftest.er1 >conftest.err
8364 rm -f conftest.er1
8365 cat conftest.err >&5
8366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); } && {
8368 test -z "$ac_c_werror_flag" ||
8369 test ! -s conftest.err
8370 } && test -s conftest$ac_exeext && {
8371 test "$cross_compiling" = yes ||
8372 $as_test_x conftest$ac_exeext
8373 }; then
8374 DATADIRNAME=share
8375 else
8376 $as_echo "$as_me: failed program was:" >&5
8377 sed 's/^/| /' conftest.$ac_ext >&5
8379 case $host in
8380 *-*-solaris*)
8381 { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
8382 $as_echo_n "checking for bind_textdomain_codeset... " >&6; }
8383 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
8384 $as_echo_n "(cached) " >&6
8385 else
8386 cat >conftest.$ac_ext <<_ACEOF
8387 /* confdefs.h. */
8388 _ACEOF
8389 cat confdefs.h >>conftest.$ac_ext
8390 cat >>conftest.$ac_ext <<_ACEOF
8391 /* end confdefs.h. */
8392 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
8393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8394 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
8396 /* System header to define __stub macros and hopefully few prototypes,
8397 which can conflict with char bind_textdomain_codeset (); below.
8398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8399 <limits.h> exists even on freestanding compilers. */
8401 #ifdef __STDC__
8402 # include <limits.h>
8403 #else
8404 # include <assert.h>
8405 #endif
8407 #undef bind_textdomain_codeset
8409 /* Override any GCC internal prototype to avoid an error.
8410 Use char because int might match the return type of a GCC
8411 builtin and then its argument prototype would still apply. */
8412 #ifdef __cplusplus
8413 extern "C"
8414 #endif
8415 char bind_textdomain_codeset ();
8416 /* The GNU C library defines this for functions which it implements
8417 to always fail with ENOSYS. Some functions are actually named
8418 something starting with __ and the normal name is an alias. */
8419 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
8420 choke me
8421 #endif
8424 main ()
8426 return bind_textdomain_codeset ();
8428 return 0;
8430 _ACEOF
8431 rm -f conftest.$ac_objext conftest$ac_exeext
8432 if { (ac_try="$ac_link"
8433 case "(($ac_try" in
8434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8435 *) ac_try_echo=$ac_try;;
8436 esac
8437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8438 $as_echo "$ac_try_echo") >&5
8439 (eval "$ac_link") 2>conftest.er1
8440 ac_status=$?
8441 grep -v '^ *+' conftest.er1 >conftest.err
8442 rm -f conftest.er1
8443 cat conftest.err >&5
8444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); } && {
8446 test -z "$ac_c_werror_flag" ||
8447 test ! -s conftest.err
8448 } && test -s conftest$ac_exeext && {
8449 test "$cross_compiling" = yes ||
8450 $as_test_x conftest$ac_exeext
8451 }; then
8452 ac_cv_func_bind_textdomain_codeset=yes
8453 else
8454 $as_echo "$as_me: failed program was:" >&5
8455 sed 's/^/| /' conftest.$ac_ext >&5
8457 ac_cv_func_bind_textdomain_codeset=no
8460 rm -rf conftest.dSYM
8461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8462 conftest$ac_exeext conftest.$ac_ext
8464 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
8465 $as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
8466 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then
8467 DATADIRNAME=share
8468 else
8469 DATADIRNAME=lib
8474 DATADIRNAME=lib
8476 esac
8479 rm -rf conftest.dSYM
8480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8481 conftest$ac_exeext conftest.$ac_ext
8491 { $as_echo "$as_me:$LINENO: checking for g_malloc0 in -lglib-2.0" >&5
8492 $as_echo_n "checking for g_malloc0 in -lglib-2.0... " >&6; }
8493 if test "${ac_cv_lib_glib_2_0_g_malloc0+set}" = set; then
8494 $as_echo_n "(cached) " >&6
8495 else
8496 ac_check_lib_save_LIBS=$LIBS
8497 LIBS="-lglib-2.0 $LIBS"
8498 cat >conftest.$ac_ext <<_ACEOF
8499 /* confdefs.h. */
8500 _ACEOF
8501 cat confdefs.h >>conftest.$ac_ext
8502 cat >>conftest.$ac_ext <<_ACEOF
8503 /* end confdefs.h. */
8505 /* Override any GCC internal prototype to avoid an error.
8506 Use char because int might match the return type of a GCC
8507 builtin and then its argument prototype would still apply. */
8508 #ifdef __cplusplus
8509 extern "C"
8510 #endif
8511 char g_malloc0 ();
8513 main ()
8515 return g_malloc0 ();
8517 return 0;
8519 _ACEOF
8520 rm -f conftest.$ac_objext conftest$ac_exeext
8521 if { (ac_try="$ac_link"
8522 case "(($ac_try" in
8523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8524 *) ac_try_echo=$ac_try;;
8525 esac
8526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8527 $as_echo "$ac_try_echo") >&5
8528 (eval "$ac_link") 2>conftest.er1
8529 ac_status=$?
8530 grep -v '^ *+' conftest.er1 >conftest.err
8531 rm -f conftest.er1
8532 cat conftest.err >&5
8533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); } && {
8535 test -z "$ac_c_werror_flag" ||
8536 test ! -s conftest.err
8537 } && test -s conftest$ac_exeext && {
8538 test "$cross_compiling" = yes ||
8539 $as_test_x conftest$ac_exeext
8540 }; then
8541 ac_cv_lib_glib_2_0_g_malloc0=yes
8542 else
8543 $as_echo "$as_me: failed program was:" >&5
8544 sed 's/^/| /' conftest.$ac_ext >&5
8546 ac_cv_lib_glib_2_0_g_malloc0=no
8549 rm -rf conftest.dSYM
8550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8551 conftest$ac_exeext conftest.$ac_ext
8552 LIBS=$ac_check_lib_save_LIBS
8554 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_glib_2_0_g_malloc0" >&5
8555 $as_echo "$ac_cv_lib_glib_2_0_g_malloc0" >&6; }
8556 if test "x$ac_cv_lib_glib_2_0_g_malloc0" = x""yes; then
8557 cat >>confdefs.h <<_ACEOF
8558 #define HAVE_LIBGLIB_2_0 1
8559 _ACEOF
8561 LIBS="-lglib-2.0 $LIBS"
8563 else
8564 { { $as_echo "$as_me:$LINENO: error: \"libglib not installed\"" >&5
8565 $as_echo "$as_me: error: \"libglib not installed\"" >&2;}
8566 { (exit 1); exit 1; }; }
8573 { $as_echo "$as_me:$LINENO: checking for fftw_plan_dft_r2c_2d in -lfftw3" >&5
8574 $as_echo_n "checking for fftw_plan_dft_r2c_2d in -lfftw3... " >&6; }
8575 if test "${ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d+set}" = set; then
8576 $as_echo_n "(cached) " >&6
8577 else
8578 ac_check_lib_save_LIBS=$LIBS
8579 LIBS="-lfftw3 $LIBS"
8580 cat >conftest.$ac_ext <<_ACEOF
8581 /* confdefs.h. */
8582 _ACEOF
8583 cat confdefs.h >>conftest.$ac_ext
8584 cat >>conftest.$ac_ext <<_ACEOF
8585 /* end confdefs.h. */
8587 /* Override any GCC internal prototype to avoid an error.
8588 Use char because int might match the return type of a GCC
8589 builtin and then its argument prototype would still apply. */
8590 #ifdef __cplusplus
8591 extern "C"
8592 #endif
8593 char fftw_plan_dft_r2c_2d ();
8595 main ()
8597 return fftw_plan_dft_r2c_2d ();
8599 return 0;
8601 _ACEOF
8602 rm -f conftest.$ac_objext conftest$ac_exeext
8603 if { (ac_try="$ac_link"
8604 case "(($ac_try" in
8605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8606 *) ac_try_echo=$ac_try;;
8607 esac
8608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8609 $as_echo "$ac_try_echo") >&5
8610 (eval "$ac_link") 2>conftest.er1
8611 ac_status=$?
8612 grep -v '^ *+' conftest.er1 >conftest.err
8613 rm -f conftest.er1
8614 cat conftest.err >&5
8615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); } && {
8617 test -z "$ac_c_werror_flag" ||
8618 test ! -s conftest.err
8619 } && test -s conftest$ac_exeext && {
8620 test "$cross_compiling" = yes ||
8621 $as_test_x conftest$ac_exeext
8622 }; then
8623 ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d=yes
8624 else
8625 $as_echo "$as_me: failed program was:" >&5
8626 sed 's/^/| /' conftest.$ac_ext >&5
8628 ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d=no
8631 rm -rf conftest.dSYM
8632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8633 conftest$ac_exeext conftest.$ac_ext
8634 LIBS=$ac_check_lib_save_LIBS
8636 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" >&5
8637 $as_echo "$ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" >&6; }
8638 if test "x$ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" = x""yes; then
8639 cat >>confdefs.h <<_ACEOF
8640 #define HAVE_LIBFFTW3 1
8641 _ACEOF
8643 LIBS="-lfftw3 $LIBS"
8645 else
8646 { { $as_echo "$as_me:$LINENO: error: \"libfftw3 not installed\"" >&5
8647 $as_echo "$as_me: error: \"libfftw3 not installed\"" >&2;}
8648 { (exit 1); exit 1; }; }
8653 { $as_echo "$as_me:$LINENO: checking for main in -lgslcblas" >&5
8654 $as_echo_n "checking for main in -lgslcblas... " >&6; }
8655 if test "${ac_cv_lib_gslcblas_main+set}" = set; then
8656 $as_echo_n "(cached) " >&6
8657 else
8658 ac_check_lib_save_LIBS=$LIBS
8659 LIBS="-lgslcblas $LIBS"
8660 cat >conftest.$ac_ext <<_ACEOF
8661 /* confdefs.h. */
8662 _ACEOF
8663 cat confdefs.h >>conftest.$ac_ext
8664 cat >>conftest.$ac_ext <<_ACEOF
8665 /* end confdefs.h. */
8669 main ()
8671 return main ();
8673 return 0;
8675 _ACEOF
8676 rm -f conftest.$ac_objext conftest$ac_exeext
8677 if { (ac_try="$ac_link"
8678 case "(($ac_try" in
8679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8680 *) ac_try_echo=$ac_try;;
8681 esac
8682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8683 $as_echo "$ac_try_echo") >&5
8684 (eval "$ac_link") 2>conftest.er1
8685 ac_status=$?
8686 grep -v '^ *+' conftest.er1 >conftest.err
8687 rm -f conftest.er1
8688 cat conftest.err >&5
8689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); } && {
8691 test -z "$ac_c_werror_flag" ||
8692 test ! -s conftest.err
8693 } && test -s conftest$ac_exeext && {
8694 test "$cross_compiling" = yes ||
8695 $as_test_x conftest$ac_exeext
8696 }; then
8697 ac_cv_lib_gslcblas_main=yes
8698 else
8699 $as_echo "$as_me: failed program was:" >&5
8700 sed 's/^/| /' conftest.$ac_ext >&5
8702 ac_cv_lib_gslcblas_main=no
8705 rm -rf conftest.dSYM
8706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8707 conftest$ac_exeext conftest.$ac_ext
8708 LIBS=$ac_check_lib_save_LIBS
8710 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gslcblas_main" >&5
8711 $as_echo "$ac_cv_lib_gslcblas_main" >&6; }
8712 if test "x$ac_cv_lib_gslcblas_main" = x""yes; then
8713 cat >>confdefs.h <<_ACEOF
8714 #define HAVE_LIBGSLCBLAS 1
8715 _ACEOF
8717 LIBS="-lgslcblas $LIBS"
8719 else
8720 { { $as_echo "$as_me:$LINENO: error: \"libgslcblas not installed\"" >&5
8721 $as_echo "$as_me: error: \"libgslcblas not installed\"" >&2;}
8722 { (exit 1); exit 1; }; }
8727 { $as_echo "$as_me:$LINENO: checking for main in -lgsl" >&5
8728 $as_echo_n "checking for main in -lgsl... " >&6; }
8729 if test "${ac_cv_lib_gsl_main+set}" = set; then
8730 $as_echo_n "(cached) " >&6
8731 else
8732 ac_check_lib_save_LIBS=$LIBS
8733 LIBS="-lgsl $LIBS"
8734 cat >conftest.$ac_ext <<_ACEOF
8735 /* confdefs.h. */
8736 _ACEOF
8737 cat confdefs.h >>conftest.$ac_ext
8738 cat >>conftest.$ac_ext <<_ACEOF
8739 /* end confdefs.h. */
8743 main ()
8745 return main ();
8747 return 0;
8749 _ACEOF
8750 rm -f conftest.$ac_objext conftest$ac_exeext
8751 if { (ac_try="$ac_link"
8752 case "(($ac_try" in
8753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8754 *) ac_try_echo=$ac_try;;
8755 esac
8756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8757 $as_echo "$ac_try_echo") >&5
8758 (eval "$ac_link") 2>conftest.er1
8759 ac_status=$?
8760 grep -v '^ *+' conftest.er1 >conftest.err
8761 rm -f conftest.er1
8762 cat conftest.err >&5
8763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); } && {
8765 test -z "$ac_c_werror_flag" ||
8766 test ! -s conftest.err
8767 } && test -s conftest$ac_exeext && {
8768 test "$cross_compiling" = yes ||
8769 $as_test_x conftest$ac_exeext
8770 }; then
8771 ac_cv_lib_gsl_main=yes
8772 else
8773 $as_echo "$as_me: failed program was:" >&5
8774 sed 's/^/| /' conftest.$ac_ext >&5
8776 ac_cv_lib_gsl_main=no
8779 rm -rf conftest.dSYM
8780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8781 conftest$ac_exeext conftest.$ac_ext
8782 LIBS=$ac_check_lib_save_LIBS
8784 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gsl_main" >&5
8785 $as_echo "$ac_cv_lib_gsl_main" >&6; }
8786 if test "x$ac_cv_lib_gsl_main" = x""yes; then
8787 cat >>confdefs.h <<_ACEOF
8788 #define HAVE_LIBGSL 1
8789 _ACEOF
8791 LIBS="-lgsl $LIBS"
8793 else
8794 { { $as_echo "$as_me:$LINENO: error: \"libgsl not installed\"" >&5
8795 $as_echo "$as_me: error: \"libgsl not installed\"" >&2;}
8796 { (exit 1); exit 1; }; }
8801 # Check whether --enable-mpi was given.
8802 if test "${enable_mpi+set}" = set; then
8803 enableval=$enable_mpi; ENABLE_MPI="-DENABLE_MPI"
8809 # Check whether --enable-rr was given.
8810 if test "${enable_rr+set}" = set; then
8811 enableval=$enable_rr; ENABLE_MPI_RR="-DENABLE_MPI_RR"
8817 if test "${ENABLE_MPI}" == '-DENABLE_MPI'; then
8819 if test "${ac_cv_header_mpi_mpi_h+set}" = set; then
8820 { $as_echo "$as_me:$LINENO: checking for mpi/mpi.h" >&5
8821 $as_echo_n "checking for mpi/mpi.h... " >&6; }
8822 if test "${ac_cv_header_mpi_mpi_h+set}" = set; then
8823 $as_echo_n "(cached) " >&6
8825 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_mpi_mpi_h" >&5
8826 $as_echo "$ac_cv_header_mpi_mpi_h" >&6; }
8827 else
8828 # Is the header compilable?
8829 { $as_echo "$as_me:$LINENO: checking mpi/mpi.h usability" >&5
8830 $as_echo_n "checking mpi/mpi.h usability... " >&6; }
8831 cat >conftest.$ac_ext <<_ACEOF
8832 /* confdefs.h. */
8833 _ACEOF
8834 cat confdefs.h >>conftest.$ac_ext
8835 cat >>conftest.$ac_ext <<_ACEOF
8836 /* end confdefs.h. */
8837 $ac_includes_default
8838 #include <mpi/mpi.h>
8839 _ACEOF
8840 rm -f conftest.$ac_objext
8841 if { (ac_try="$ac_compile"
8842 case "(($ac_try" in
8843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8844 *) ac_try_echo=$ac_try;;
8845 esac
8846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8847 $as_echo "$ac_try_echo") >&5
8848 (eval "$ac_compile") 2>conftest.er1
8849 ac_status=$?
8850 grep -v '^ *+' conftest.er1 >conftest.err
8851 rm -f conftest.er1
8852 cat conftest.err >&5
8853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); } && {
8855 test -z "$ac_c_werror_flag" ||
8856 test ! -s conftest.err
8857 } && test -s conftest.$ac_objext; then
8858 ac_header_compiler=yes
8859 else
8860 $as_echo "$as_me: failed program was:" >&5
8861 sed 's/^/| /' conftest.$ac_ext >&5
8863 ac_header_compiler=no
8866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8867 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8868 $as_echo "$ac_header_compiler" >&6; }
8870 # Is the header present?
8871 { $as_echo "$as_me:$LINENO: checking mpi/mpi.h presence" >&5
8872 $as_echo_n "checking mpi/mpi.h presence... " >&6; }
8873 cat >conftest.$ac_ext <<_ACEOF
8874 /* confdefs.h. */
8875 _ACEOF
8876 cat confdefs.h >>conftest.$ac_ext
8877 cat >>conftest.$ac_ext <<_ACEOF
8878 /* end confdefs.h. */
8879 #include <mpi/mpi.h>
8880 _ACEOF
8881 if { (ac_try="$ac_cpp conftest.$ac_ext"
8882 case "(($ac_try" in
8883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8884 *) ac_try_echo=$ac_try;;
8885 esac
8886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8887 $as_echo "$ac_try_echo") >&5
8888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8889 ac_status=$?
8890 grep -v '^ *+' conftest.er1 >conftest.err
8891 rm -f conftest.er1
8892 cat conftest.err >&5
8893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); } >/dev/null && {
8895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8896 test ! -s conftest.err
8897 }; then
8898 ac_header_preproc=yes
8899 else
8900 $as_echo "$as_me: failed program was:" >&5
8901 sed 's/^/| /' conftest.$ac_ext >&5
8903 ac_header_preproc=no
8906 rm -f conftest.err conftest.$ac_ext
8907 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8908 $as_echo "$ac_header_preproc" >&6; }
8910 # So? What about this header?
8911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8912 yes:no: )
8913 { $as_echo "$as_me:$LINENO: WARNING: mpi/mpi.h: accepted by the compiler, rejected by the preprocessor!" >&5
8914 $as_echo "$as_me: WARNING: mpi/mpi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8915 { $as_echo "$as_me:$LINENO: WARNING: mpi/mpi.h: proceeding with the compiler's result" >&5
8916 $as_echo "$as_me: WARNING: mpi/mpi.h: proceeding with the compiler's result" >&2;}
8917 ac_header_preproc=yes
8919 no:yes:* )
8920 { $as_echo "$as_me:$LINENO: WARNING: mpi/mpi.h: present but cannot be compiled" >&5
8921 $as_echo "$as_me: WARNING: mpi/mpi.h: present but cannot be compiled" >&2;}
8922 { $as_echo "$as_me:$LINENO: WARNING: mpi/mpi.h: check for missing prerequisite headers?" >&5
8923 $as_echo "$as_me: WARNING: mpi/mpi.h: check for missing prerequisite headers?" >&2;}
8924 { $as_echo "$as_me:$LINENO: WARNING: mpi/mpi.h: see the Autoconf documentation" >&5
8925 $as_echo "$as_me: WARNING: mpi/mpi.h: see the Autoconf documentation" >&2;}
8926 { $as_echo "$as_me:$LINENO: WARNING: mpi/mpi.h: section \"Present But Cannot Be Compiled\"" >&5
8927 $as_echo "$as_me: WARNING: mpi/mpi.h: section \"Present But Cannot Be Compiled\"" >&2;}
8928 { $as_echo "$as_me:$LINENO: WARNING: mpi/mpi.h: proceeding with the preprocessor's result" >&5
8929 $as_echo "$as_me: WARNING: mpi/mpi.h: proceeding with the preprocessor's result" >&2;}
8930 { $as_echo "$as_me:$LINENO: WARNING: mpi/mpi.h: in the future, the compiler will take precedence" >&5
8931 $as_echo "$as_me: WARNING: mpi/mpi.h: in the future, the compiler will take precedence" >&2;}
8932 ( cat <<\_ASBOX
8933 ## ------------------------------------------------------------------- ##
8934 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=gpiv ##
8935 ## ------------------------------------------------------------------- ##
8936 _ASBOX
8937 ) | sed "s/^/$as_me: WARNING: /" >&2
8939 esac
8940 { $as_echo "$as_me:$LINENO: checking for mpi/mpi.h" >&5
8941 $as_echo_n "checking for mpi/mpi.h... " >&6; }
8942 if test "${ac_cv_header_mpi_mpi_h+set}" = set; then
8943 $as_echo_n "(cached) " >&6
8944 else
8945 ac_cv_header_mpi_mpi_h=$ac_header_preproc
8947 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_mpi_mpi_h" >&5
8948 $as_echo "$ac_cv_header_mpi_mpi_h" >&6; }
8951 if test "x$ac_cv_header_mpi_mpi_h" = x""yes; then
8953 else
8954 { { $as_echo "$as_me:$LINENO: error: \"mpi.h is not installed\"" >&5
8955 $as_echo "$as_me: error: \"mpi.h is not installed\"" >&2;}
8956 { (exit 1); exit 1; }; }
8961 # Extract the first word of "mpirun", so it can be a program name with args.
8962 set dummy mpirun; ac_word=$2
8963 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8964 $as_echo_n "checking for $ac_word... " >&6; }
8965 if test "${ac_cv_prog_MPIRUN+set}" = set; then
8966 $as_echo_n "(cached) " >&6
8967 else
8968 if test -n "$MPIRUN"; then
8969 ac_cv_prog_MPIRUN="$MPIRUN" # Let the user override the test.
8970 else
8971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8972 for as_dir in $PATH
8974 IFS=$as_save_IFS
8975 test -z "$as_dir" && as_dir=.
8976 for ac_exec_ext in '' $ac_executable_extensions; do
8977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8978 ac_cv_prog_MPIRUN="true"
8979 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8980 break 2
8982 done
8983 done
8984 IFS=$as_save_IFS
8986 test -z "$ac_cv_prog_MPIRUN" && ac_cv_prog_MPIRUN="false"
8989 MPIRUN=$ac_cv_prog_MPIRUN
8990 if test -n "$MPIRUN"; then
8991 { $as_echo "$as_me:$LINENO: result: $MPIRUN" >&5
8992 $as_echo "$MPIRUN" >&6; }
8993 else
8994 { $as_echo "$as_me:$LINENO: result: no" >&5
8995 $as_echo "no" >&6; }
8999 if test x$MPIRUN = xfalse ; then
9000 { { $as_echo "$as_me:$LINENO: error: \"missing mpirun \
9001 Needed by gpiv when --enable-mpi\"" >&5
9002 $as_echo "$as_me: error: \"missing mpirun \
9003 Needed by gpiv when --enable-mpi\"" >&2;}
9004 { (exit 1); exit 1; }; }
9007 if test "${ENABLE_MPI_RR}" == '-DENABLE_MPI_RR'; then
9008 # Extract the first word of "gpiv_rr", so it can be a program name with args.
9009 set dummy gpiv_rr; ac_word=$2
9010 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9011 $as_echo_n "checking for $ac_word... " >&6; }
9012 if test "${ac_cv_prog_RR+set}" = set; then
9013 $as_echo_n "(cached) " >&6
9014 else
9015 if test -n "$RR"; then
9016 ac_cv_prog_RR="$RR" # Let the user override the test.
9017 else
9018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9019 for as_dir in $PATH
9021 IFS=$as_save_IFS
9022 test -z "$as_dir" && as_dir=.
9023 for ac_exec_ext in '' $ac_executable_extensions; do
9024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9025 ac_cv_prog_RR="true"
9026 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9027 break 2
9029 done
9030 done
9031 IFS=$as_save_IFS
9033 test -z "$ac_cv_prog_RR" && ac_cv_prog_RR="false"
9036 RR=$ac_cv_prog_RR
9037 if test -n "$RR"; then
9038 { $as_echo "$as_me:$LINENO: result: $RR" >&5
9039 $as_echo "$RR" >&6; }
9040 else
9041 { $as_echo "$as_me:$LINENO: result: no" >&5
9042 $as_echo "no" >&6; }
9046 if test x$RR = xfalse ; then
9047 { { $as_echo "$as_me:$LINENO: error: \"missing mpi-enabled gpiv_rr from gpivtools. \
9048 Needed by gpiv when --enable-mpi.\"" >&5
9049 $as_echo "$as_me: error: \"missing mpi-enabled gpiv_rr from gpivtools. \
9050 Needed by gpiv when --enable-mpi.\"" >&2;}
9051 { (exit 1); exit 1; }; }
9053 else
9054 echo "WARNING: Not checking on MPI-enabled gpiv_rr"
9058 { $as_echo "$as_me:$LINENO: checking for gpiv_piv_mpi_bcast_pivpar in -lgpiv_mpi" >&5
9059 $as_echo_n "checking for gpiv_piv_mpi_bcast_pivpar in -lgpiv_mpi... " >&6; }
9060 if test "${ac_cv_lib_gpiv_mpi_gpiv_piv_mpi_bcast_pivpar+set}" = set; then
9061 $as_echo_n "(cached) " >&6
9062 else
9063 ac_check_lib_save_LIBS=$LIBS
9064 LIBS="-lgpiv_mpi $LIBS"
9065 cat >conftest.$ac_ext <<_ACEOF
9066 /* confdefs.h. */
9067 _ACEOF
9068 cat confdefs.h >>conftest.$ac_ext
9069 cat >>conftest.$ac_ext <<_ACEOF
9070 /* end confdefs.h. */
9072 /* Override any GCC internal prototype to avoid an error.
9073 Use char because int might match the return type of a GCC
9074 builtin and then its argument prototype would still apply. */
9075 #ifdef __cplusplus
9076 extern "C"
9077 #endif
9078 char gpiv_piv_mpi_bcast_pivpar ();
9080 main ()
9082 return gpiv_piv_mpi_bcast_pivpar ();
9084 return 0;
9086 _ACEOF
9087 rm -f conftest.$ac_objext conftest$ac_exeext
9088 if { (ac_try="$ac_link"
9089 case "(($ac_try" in
9090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9091 *) ac_try_echo=$ac_try;;
9092 esac
9093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9094 $as_echo "$ac_try_echo") >&5
9095 (eval "$ac_link") 2>conftest.er1
9096 ac_status=$?
9097 grep -v '^ *+' conftest.er1 >conftest.err
9098 rm -f conftest.er1
9099 cat conftest.err >&5
9100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); } && {
9102 test -z "$ac_c_werror_flag" ||
9103 test ! -s conftest.err
9104 } && test -s conftest$ac_exeext && {
9105 test "$cross_compiling" = yes ||
9106 $as_test_x conftest$ac_exeext
9107 }; then
9108 ac_cv_lib_gpiv_mpi_gpiv_piv_mpi_bcast_pivpar=yes
9109 else
9110 $as_echo "$as_me: failed program was:" >&5
9111 sed 's/^/| /' conftest.$ac_ext >&5
9113 ac_cv_lib_gpiv_mpi_gpiv_piv_mpi_bcast_pivpar=no
9116 rm -rf conftest.dSYM
9117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9118 conftest$ac_exeext conftest.$ac_ext
9119 LIBS=$ac_check_lib_save_LIBS
9121 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpiv_mpi_gpiv_piv_mpi_bcast_pivpar" >&5
9122 $as_echo "$ac_cv_lib_gpiv_mpi_gpiv_piv_mpi_bcast_pivpar" >&6; }
9123 if test "x$ac_cv_lib_gpiv_mpi_gpiv_piv_mpi_bcast_pivpar" = x""yes; then
9124 cat >>confdefs.h <<_ACEOF
9125 #define HAVE_LIBGPIV_MPI 1
9126 _ACEOF
9128 LIBS="-lgpiv_mpi $LIBS"
9130 else
9131 { { $as_echo "$as_me:$LINENO: error: \"gpiv_piv_mpi_bcast_pivpar is not working in libgpiv_mpi. \
9132 Enable MPI in libgpiv or disable it here by leaving out --enable-mpi during ./configure\"" >&5
9133 $as_echo "$as_me: error: \"gpiv_piv_mpi_bcast_pivpar is not working in libgpiv_mpi. \
9134 Enable MPI in libgpiv or disable it here by leaving out --enable-mpi during ./configure\"" >&2;}
9135 { (exit 1); exit 1; }; }
9139 else
9141 { $as_echo "$as_me:$LINENO: checking for gpiv_piv_interrogate_img in -lgpiv" >&5
9142 $as_echo_n "checking for gpiv_piv_interrogate_img in -lgpiv... " >&6; }
9143 if test "${ac_cv_lib_gpiv_gpiv_piv_interrogate_img+set}" = set; then
9144 $as_echo_n "(cached) " >&6
9145 else
9146 ac_check_lib_save_LIBS=$LIBS
9147 LIBS="-lgpiv $LIBS"
9148 cat >conftest.$ac_ext <<_ACEOF
9149 /* confdefs.h. */
9150 _ACEOF
9151 cat confdefs.h >>conftest.$ac_ext
9152 cat >>conftest.$ac_ext <<_ACEOF
9153 /* end confdefs.h. */
9155 /* Override any GCC internal prototype to avoid an error.
9156 Use char because int might match the return type of a GCC
9157 builtin and then its argument prototype would still apply. */
9158 #ifdef __cplusplus
9159 extern "C"
9160 #endif
9161 char gpiv_piv_interrogate_img ();
9163 main ()
9165 return gpiv_piv_interrogate_img ();
9167 return 0;
9169 _ACEOF
9170 rm -f conftest.$ac_objext conftest$ac_exeext
9171 if { (ac_try="$ac_link"
9172 case "(($ac_try" in
9173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9174 *) ac_try_echo=$ac_try;;
9175 esac
9176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9177 $as_echo "$ac_try_echo") >&5
9178 (eval "$ac_link") 2>conftest.er1
9179 ac_status=$?
9180 grep -v '^ *+' conftest.er1 >conftest.err
9181 rm -f conftest.er1
9182 cat conftest.err >&5
9183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); } && {
9185 test -z "$ac_c_werror_flag" ||
9186 test ! -s conftest.err
9187 } && test -s conftest$ac_exeext && {
9188 test "$cross_compiling" = yes ||
9189 $as_test_x conftest$ac_exeext
9190 }; then
9191 ac_cv_lib_gpiv_gpiv_piv_interrogate_img=yes
9192 else
9193 $as_echo "$as_me: failed program was:" >&5
9194 sed 's/^/| /' conftest.$ac_ext >&5
9196 ac_cv_lib_gpiv_gpiv_piv_interrogate_img=no
9199 rm -rf conftest.dSYM
9200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9201 conftest$ac_exeext conftest.$ac_ext
9202 LIBS=$ac_check_lib_save_LIBS
9204 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpiv_gpiv_piv_interrogate_img" >&5
9205 $as_echo "$ac_cv_lib_gpiv_gpiv_piv_interrogate_img" >&6; }
9206 if test "x$ac_cv_lib_gpiv_gpiv_piv_interrogate_img" = x""yes; then
9207 cat >>confdefs.h <<_ACEOF
9208 #define HAVE_LIBGPIV 1
9209 _ACEOF
9211 LIBS="-lgpiv $LIBS"
9213 else
9214 { { $as_echo "$as_me:$LINENO: error: libgpiv has not been installed" >&5
9215 $as_echo "$as_me: error: libgpiv has not been installed" >&2;}
9216 { (exit 1); exit 1; }; }
9227 for ac_header in stdlib.h string.h unistd.h fftw3.h gpiv.h
9229 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9231 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9232 $as_echo_n "checking for $ac_header... " >&6; }
9233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9234 $as_echo_n "(cached) " >&6
9236 ac_res=`eval 'as_val=${'$as_ac_Header'}
9237 $as_echo "$as_val"'`
9238 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9239 $as_echo "$ac_res" >&6; }
9240 else
9241 # Is the header compilable?
9242 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9243 $as_echo_n "checking $ac_header usability... " >&6; }
9244 cat >conftest.$ac_ext <<_ACEOF
9245 /* confdefs.h. */
9246 _ACEOF
9247 cat confdefs.h >>conftest.$ac_ext
9248 cat >>conftest.$ac_ext <<_ACEOF
9249 /* end confdefs.h. */
9250 $ac_includes_default
9251 #include <$ac_header>
9252 _ACEOF
9253 rm -f conftest.$ac_objext
9254 if { (ac_try="$ac_compile"
9255 case "(($ac_try" in
9256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9257 *) ac_try_echo=$ac_try;;
9258 esac
9259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9260 $as_echo "$ac_try_echo") >&5
9261 (eval "$ac_compile") 2>conftest.er1
9262 ac_status=$?
9263 grep -v '^ *+' conftest.er1 >conftest.err
9264 rm -f conftest.er1
9265 cat conftest.err >&5
9266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); } && {
9268 test -z "$ac_c_werror_flag" ||
9269 test ! -s conftest.err
9270 } && test -s conftest.$ac_objext; then
9271 ac_header_compiler=yes
9272 else
9273 $as_echo "$as_me: failed program was:" >&5
9274 sed 's/^/| /' conftest.$ac_ext >&5
9276 ac_header_compiler=no
9279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9280 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9281 $as_echo "$ac_header_compiler" >&6; }
9283 # Is the header present?
9284 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9285 $as_echo_n "checking $ac_header presence... " >&6; }
9286 cat >conftest.$ac_ext <<_ACEOF
9287 /* confdefs.h. */
9288 _ACEOF
9289 cat confdefs.h >>conftest.$ac_ext
9290 cat >>conftest.$ac_ext <<_ACEOF
9291 /* end confdefs.h. */
9292 #include <$ac_header>
9293 _ACEOF
9294 if { (ac_try="$ac_cpp conftest.$ac_ext"
9295 case "(($ac_try" in
9296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9297 *) ac_try_echo=$ac_try;;
9298 esac
9299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9300 $as_echo "$ac_try_echo") >&5
9301 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9302 ac_status=$?
9303 grep -v '^ *+' conftest.er1 >conftest.err
9304 rm -f conftest.er1
9305 cat conftest.err >&5
9306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); } >/dev/null && {
9308 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9309 test ! -s conftest.err
9310 }; then
9311 ac_header_preproc=yes
9312 else
9313 $as_echo "$as_me: failed program was:" >&5
9314 sed 's/^/| /' conftest.$ac_ext >&5
9316 ac_header_preproc=no
9319 rm -f conftest.err conftest.$ac_ext
9320 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9321 $as_echo "$ac_header_preproc" >&6; }
9323 # So? What about this header?
9324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9325 yes:no: )
9326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9327 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9329 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9330 ac_header_preproc=yes
9332 no:yes:* )
9333 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9334 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9335 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9336 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9337 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9338 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9339 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9340 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9341 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9342 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9343 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9344 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9345 ( cat <<\_ASBOX
9346 ## ------------------------------------------------------------------- ##
9347 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=gpiv ##
9348 ## ------------------------------------------------------------------- ##
9349 _ASBOX
9350 ) | sed "s/^/$as_me: WARNING: /" >&2
9352 esac
9353 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9354 $as_echo_n "checking for $ac_header... " >&6; }
9355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9356 $as_echo_n "(cached) " >&6
9357 else
9358 eval "$as_ac_Header=\$ac_header_preproc"
9360 ac_res=`eval 'as_val=${'$as_ac_Header'}
9361 $as_echo "$as_val"'`
9362 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9363 $as_echo "$ac_res" >&6; }
9366 as_val=`eval 'as_val=${'$as_ac_Header'}
9367 $as_echo "$as_val"'`
9368 if test "x$as_val" = x""yes; then
9369 cat >>confdefs.h <<_ACEOF
9370 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9371 _ACEOF
9375 done
9378 # Check whether --enable-cam was given.
9379 if test "${enable_cam+set}" = set; then
9380 enableval=$enable_cam; ENABLE_CAM="-DENABLE_CAM"
9387 # Check whether --enable-trig was given.
9388 if test "${enable_trig+set}" = set; then
9389 enableval=$enable_trig; ENABLE_TRIG="-DENABLE_TRIG"
9396 if test $ENABLE_CAM || test $ENABLE_TRIG; then
9397 ENABLE_DAC="-DENABLE_DAC"
9401 if test "${ENABLE_CAM}" == '-DENABLE_CAM'; then
9403 { $as_echo "$as_me:$LINENO: checking for gpiv_cam_get_camvar in -lgpiv" >&5
9404 $as_echo_n "checking for gpiv_cam_get_camvar in -lgpiv... " >&6; }
9405 if test "${ac_cv_lib_gpiv_gpiv_cam_get_camvar+set}" = set; then
9406 $as_echo_n "(cached) " >&6
9407 else
9408 ac_check_lib_save_LIBS=$LIBS
9409 LIBS="-lgpiv $LIBS"
9410 cat >conftest.$ac_ext <<_ACEOF
9411 /* confdefs.h. */
9412 _ACEOF
9413 cat confdefs.h >>conftest.$ac_ext
9414 cat >>conftest.$ac_ext <<_ACEOF
9415 /* end confdefs.h. */
9417 /* Override any GCC internal prototype to avoid an error.
9418 Use char because int might match the return type of a GCC
9419 builtin and then its argument prototype would still apply. */
9420 #ifdef __cplusplus
9421 extern "C"
9422 #endif
9423 char gpiv_cam_get_camvar ();
9425 main ()
9427 return gpiv_cam_get_camvar ();
9429 return 0;
9431 _ACEOF
9432 rm -f conftest.$ac_objext conftest$ac_exeext
9433 if { (ac_try="$ac_link"
9434 case "(($ac_try" in
9435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9436 *) ac_try_echo=$ac_try;;
9437 esac
9438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9439 $as_echo "$ac_try_echo") >&5
9440 (eval "$ac_link") 2>conftest.er1
9441 ac_status=$?
9442 grep -v '^ *+' conftest.er1 >conftest.err
9443 rm -f conftest.er1
9444 cat conftest.err >&5
9445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); } && {
9447 test -z "$ac_c_werror_flag" ||
9448 test ! -s conftest.err
9449 } && test -s conftest$ac_exeext && {
9450 test "$cross_compiling" = yes ||
9451 $as_test_x conftest$ac_exeext
9452 }; then
9453 ac_cv_lib_gpiv_gpiv_cam_get_camvar=yes
9454 else
9455 $as_echo "$as_me: failed program was:" >&5
9456 sed 's/^/| /' conftest.$ac_ext >&5
9458 ac_cv_lib_gpiv_gpiv_cam_get_camvar=no
9461 rm -rf conftest.dSYM
9462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9463 conftest$ac_exeext conftest.$ac_ext
9464 LIBS=$ac_check_lib_save_LIBS
9466 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpiv_gpiv_cam_get_camvar" >&5
9467 $as_echo "$ac_cv_lib_gpiv_gpiv_cam_get_camvar" >&6; }
9468 if test "x$ac_cv_lib_gpiv_gpiv_cam_get_camvar" = x""yes; then
9469 cat >>confdefs.h <<_ACEOF
9470 #define HAVE_LIBGPIV 1
9471 _ACEOF
9473 LIBS="-lgpiv $LIBS"
9475 else
9476 { { $as_echo "$as_me:$LINENO: error: \"(IEEE-1394) camera is not working in libgpiv. \
9477 Enable (IEEE-1394) camera in libgpiv or disable it here by leaving out --enable-cam during ./configure\"" >&5
9478 $as_echo "$as_me: error: \"(IEEE-1394) camera is not working in libgpiv. \
9479 Enable (IEEE-1394) camera in libgpiv or disable it here by leaving out --enable-cam during ./configure\"" >&2;}
9480 { (exit 1); exit 1; }; }
9485 { $as_echo "$as_me:$LINENO: checking for raw1394_destroy_handle in -lraw1394" >&5
9486 $as_echo_n "checking for raw1394_destroy_handle in -lraw1394... " >&6; }
9487 if test "${ac_cv_lib_raw1394_raw1394_destroy_handle+set}" = set; then
9488 $as_echo_n "(cached) " >&6
9489 else
9490 ac_check_lib_save_LIBS=$LIBS
9491 LIBS="-lraw1394 $LIBS"
9492 cat >conftest.$ac_ext <<_ACEOF
9493 /* confdefs.h. */
9494 _ACEOF
9495 cat confdefs.h >>conftest.$ac_ext
9496 cat >>conftest.$ac_ext <<_ACEOF
9497 /* end confdefs.h. */
9499 /* Override any GCC internal prototype to avoid an error.
9500 Use char because int might match the return type of a GCC
9501 builtin and then its argument prototype would still apply. */
9502 #ifdef __cplusplus
9503 extern "C"
9504 #endif
9505 char raw1394_destroy_handle ();
9507 main ()
9509 return raw1394_destroy_handle ();
9511 return 0;
9513 _ACEOF
9514 rm -f conftest.$ac_objext conftest$ac_exeext
9515 if { (ac_try="$ac_link"
9516 case "(($ac_try" in
9517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9518 *) ac_try_echo=$ac_try;;
9519 esac
9520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9521 $as_echo "$ac_try_echo") >&5
9522 (eval "$ac_link") 2>conftest.er1
9523 ac_status=$?
9524 grep -v '^ *+' conftest.er1 >conftest.err
9525 rm -f conftest.er1
9526 cat conftest.err >&5
9527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); } && {
9529 test -z "$ac_c_werror_flag" ||
9530 test ! -s conftest.err
9531 } && test -s conftest$ac_exeext && {
9532 test "$cross_compiling" = yes ||
9533 $as_test_x conftest$ac_exeext
9534 }; then
9535 ac_cv_lib_raw1394_raw1394_destroy_handle=yes
9536 else
9537 $as_echo "$as_me: failed program was:" >&5
9538 sed 's/^/| /' conftest.$ac_ext >&5
9540 ac_cv_lib_raw1394_raw1394_destroy_handle=no
9543 rm -rf conftest.dSYM
9544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9545 conftest$ac_exeext conftest.$ac_ext
9546 LIBS=$ac_check_lib_save_LIBS
9548 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_raw1394_raw1394_destroy_handle" >&5
9549 $as_echo "$ac_cv_lib_raw1394_raw1394_destroy_handle" >&6; }
9550 if test "x$ac_cv_lib_raw1394_raw1394_destroy_handle" = x""yes; then
9551 cat >>confdefs.h <<_ACEOF
9552 #define HAVE_LIBRAW1394 1
9553 _ACEOF
9555 LIBS="-lraw1394 $LIBS"
9557 else
9558 { { $as_echo "$as_me:$LINENO: error: \"libraw1394 not installed\"" >&5
9559 $as_echo "$as_me: error: \"libraw1394 not installed\"" >&2;}
9560 { (exit 1); exit 1; }; }
9565 { $as_echo "$as_me:$LINENO: checking for dc1394_create_handle in -ldc1394_control" >&5
9566 $as_echo_n "checking for dc1394_create_handle in -ldc1394_control... " >&6; }
9567 if test "${ac_cv_lib_dc1394_control_dc1394_create_handle+set}" = set; then
9568 $as_echo_n "(cached) " >&6
9569 else
9570 ac_check_lib_save_LIBS=$LIBS
9571 LIBS="-ldc1394_control $LIBS"
9572 cat >conftest.$ac_ext <<_ACEOF
9573 /* confdefs.h. */
9574 _ACEOF
9575 cat confdefs.h >>conftest.$ac_ext
9576 cat >>conftest.$ac_ext <<_ACEOF
9577 /* end confdefs.h. */
9579 /* Override any GCC internal prototype to avoid an error.
9580 Use char because int might match the return type of a GCC
9581 builtin and then its argument prototype would still apply. */
9582 #ifdef __cplusplus
9583 extern "C"
9584 #endif
9585 char dc1394_create_handle ();
9587 main ()
9589 return dc1394_create_handle ();
9591 return 0;
9593 _ACEOF
9594 rm -f conftest.$ac_objext conftest$ac_exeext
9595 if { (ac_try="$ac_link"
9596 case "(($ac_try" in
9597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9598 *) ac_try_echo=$ac_try;;
9599 esac
9600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9601 $as_echo "$ac_try_echo") >&5
9602 (eval "$ac_link") 2>conftest.er1
9603 ac_status=$?
9604 grep -v '^ *+' conftest.er1 >conftest.err
9605 rm -f conftest.er1
9606 cat conftest.err >&5
9607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); } && {
9609 test -z "$ac_c_werror_flag" ||
9610 test ! -s conftest.err
9611 } && test -s conftest$ac_exeext && {
9612 test "$cross_compiling" = yes ||
9613 $as_test_x conftest$ac_exeext
9614 }; then
9615 ac_cv_lib_dc1394_control_dc1394_create_handle=yes
9616 else
9617 $as_echo "$as_me: failed program was:" >&5
9618 sed 's/^/| /' conftest.$ac_ext >&5
9620 ac_cv_lib_dc1394_control_dc1394_create_handle=no
9623 rm -rf conftest.dSYM
9624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9625 conftest$ac_exeext conftest.$ac_ext
9626 LIBS=$ac_check_lib_save_LIBS
9628 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dc1394_control_dc1394_create_handle" >&5
9629 $as_echo "$ac_cv_lib_dc1394_control_dc1394_create_handle" >&6; }
9630 if test "x$ac_cv_lib_dc1394_control_dc1394_create_handle" = x""yes; then
9631 cat >>confdefs.h <<_ACEOF
9632 #define HAVE_LIBDC1394_CONTROL 1
9633 _ACEOF
9635 LIBS="-ldc1394_control $LIBS"
9637 else
9638 { { $as_echo "$as_me:$LINENO: error: \"libdc1394_control not installed\"" >&5
9639 $as_echo "$as_me: error: \"libdc1394_control not installed\"" >&2;}
9640 { (exit 1); exit 1; }; }
9644 if test "${ac_cv_header_libdc1394_dc1394_control_h+set}" = set; then
9645 { $as_echo "$as_me:$LINENO: checking for libdc1394/dc1394_control.h" >&5
9646 $as_echo_n "checking for libdc1394/dc1394_control.h... " >&6; }
9647 if test "${ac_cv_header_libdc1394_dc1394_control_h+set}" = set; then
9648 $as_echo_n "(cached) " >&6
9650 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libdc1394_dc1394_control_h" >&5
9651 $as_echo "$ac_cv_header_libdc1394_dc1394_control_h" >&6; }
9652 else
9653 # Is the header compilable?
9654 { $as_echo "$as_me:$LINENO: checking libdc1394/dc1394_control.h usability" >&5
9655 $as_echo_n "checking libdc1394/dc1394_control.h usability... " >&6; }
9656 cat >conftest.$ac_ext <<_ACEOF
9657 /* confdefs.h. */
9658 _ACEOF
9659 cat confdefs.h >>conftest.$ac_ext
9660 cat >>conftest.$ac_ext <<_ACEOF
9661 /* end confdefs.h. */
9662 $ac_includes_default
9663 #include <libdc1394/dc1394_control.h>
9664 _ACEOF
9665 rm -f conftest.$ac_objext
9666 if { (ac_try="$ac_compile"
9667 case "(($ac_try" in
9668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9669 *) ac_try_echo=$ac_try;;
9670 esac
9671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9672 $as_echo "$ac_try_echo") >&5
9673 (eval "$ac_compile") 2>conftest.er1
9674 ac_status=$?
9675 grep -v '^ *+' conftest.er1 >conftest.err
9676 rm -f conftest.er1
9677 cat conftest.err >&5
9678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); } && {
9680 test -z "$ac_c_werror_flag" ||
9681 test ! -s conftest.err
9682 } && test -s conftest.$ac_objext; then
9683 ac_header_compiler=yes
9684 else
9685 $as_echo "$as_me: failed program was:" >&5
9686 sed 's/^/| /' conftest.$ac_ext >&5
9688 ac_header_compiler=no
9691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9692 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9693 $as_echo "$ac_header_compiler" >&6; }
9695 # Is the header present?
9696 { $as_echo "$as_me:$LINENO: checking libdc1394/dc1394_control.h presence" >&5
9697 $as_echo_n "checking libdc1394/dc1394_control.h presence... " >&6; }
9698 cat >conftest.$ac_ext <<_ACEOF
9699 /* confdefs.h. */
9700 _ACEOF
9701 cat confdefs.h >>conftest.$ac_ext
9702 cat >>conftest.$ac_ext <<_ACEOF
9703 /* end confdefs.h. */
9704 #include <libdc1394/dc1394_control.h>
9705 _ACEOF
9706 if { (ac_try="$ac_cpp conftest.$ac_ext"
9707 case "(($ac_try" in
9708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9709 *) ac_try_echo=$ac_try;;
9710 esac
9711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9712 $as_echo "$ac_try_echo") >&5
9713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9714 ac_status=$?
9715 grep -v '^ *+' conftest.er1 >conftest.err
9716 rm -f conftest.er1
9717 cat conftest.err >&5
9718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); } >/dev/null && {
9720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9721 test ! -s conftest.err
9722 }; then
9723 ac_header_preproc=yes
9724 else
9725 $as_echo "$as_me: failed program was:" >&5
9726 sed 's/^/| /' conftest.$ac_ext >&5
9728 ac_header_preproc=no
9731 rm -f conftest.err conftest.$ac_ext
9732 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9733 $as_echo "$ac_header_preproc" >&6; }
9735 # So? What about this header?
9736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9737 yes:no: )
9738 { $as_echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: accepted by the compiler, rejected by the preprocessor!" >&5
9739 $as_echo "$as_me: WARNING: libdc1394/dc1394_control.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9740 { $as_echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: proceeding with the compiler's result" >&5
9741 $as_echo "$as_me: WARNING: libdc1394/dc1394_control.h: proceeding with the compiler's result" >&2;}
9742 ac_header_preproc=yes
9744 no:yes:* )
9745 { $as_echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: present but cannot be compiled" >&5
9746 $as_echo "$as_me: WARNING: libdc1394/dc1394_control.h: present but cannot be compiled" >&2;}
9747 { $as_echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: check for missing prerequisite headers?" >&5
9748 $as_echo "$as_me: WARNING: libdc1394/dc1394_control.h: check for missing prerequisite headers?" >&2;}
9749 { $as_echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: see the Autoconf documentation" >&5
9750 $as_echo "$as_me: WARNING: libdc1394/dc1394_control.h: see the Autoconf documentation" >&2;}
9751 { $as_echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: section \"Present But Cannot Be Compiled\"" >&5
9752 $as_echo "$as_me: WARNING: libdc1394/dc1394_control.h: section \"Present But Cannot Be Compiled\"" >&2;}
9753 { $as_echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: proceeding with the preprocessor's result" >&5
9754 $as_echo "$as_me: WARNING: libdc1394/dc1394_control.h: proceeding with the preprocessor's result" >&2;}
9755 { $as_echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: in the future, the compiler will take precedence" >&5
9756 $as_echo "$as_me: WARNING: libdc1394/dc1394_control.h: in the future, the compiler will take precedence" >&2;}
9757 ( cat <<\_ASBOX
9758 ## ------------------------------------------------------------------- ##
9759 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=gpiv ##
9760 ## ------------------------------------------------------------------- ##
9761 _ASBOX
9762 ) | sed "s/^/$as_me: WARNING: /" >&2
9764 esac
9765 { $as_echo "$as_me:$LINENO: checking for libdc1394/dc1394_control.h" >&5
9766 $as_echo_n "checking for libdc1394/dc1394_control.h... " >&6; }
9767 if test "${ac_cv_header_libdc1394_dc1394_control_h+set}" = set; then
9768 $as_echo_n "(cached) " >&6
9769 else
9770 ac_cv_header_libdc1394_dc1394_control_h=$ac_header_preproc
9772 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libdc1394_dc1394_control_h" >&5
9773 $as_echo "$ac_cv_header_libdc1394_dc1394_control_h" >&6; }
9776 if test "x$ac_cv_header_libdc1394_dc1394_control_h" = x""yes; then
9778 else
9779 { { $as_echo "$as_me:$LINENO: error: \"missing dc1394_control.h\"" >&5
9780 $as_echo "$as_me: error: \"missing dc1394_control.h\"" >&2;}
9781 { (exit 1); exit 1; }; }
9786 if test "${ac_cv_header_libraw1394_raw1394_h+set}" = set; then
9787 { $as_echo "$as_me:$LINENO: checking for libraw1394/raw1394.h" >&5
9788 $as_echo_n "checking for libraw1394/raw1394.h... " >&6; }
9789 if test "${ac_cv_header_libraw1394_raw1394_h+set}" = set; then
9790 $as_echo_n "(cached) " >&6
9792 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libraw1394_raw1394_h" >&5
9793 $as_echo "$ac_cv_header_libraw1394_raw1394_h" >&6; }
9794 else
9795 # Is the header compilable?
9796 { $as_echo "$as_me:$LINENO: checking libraw1394/raw1394.h usability" >&5
9797 $as_echo_n "checking libraw1394/raw1394.h usability... " >&6; }
9798 cat >conftest.$ac_ext <<_ACEOF
9799 /* confdefs.h. */
9800 _ACEOF
9801 cat confdefs.h >>conftest.$ac_ext
9802 cat >>conftest.$ac_ext <<_ACEOF
9803 /* end confdefs.h. */
9804 $ac_includes_default
9805 #include <libraw1394/raw1394.h>
9806 _ACEOF
9807 rm -f conftest.$ac_objext
9808 if { (ac_try="$ac_compile"
9809 case "(($ac_try" in
9810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9811 *) ac_try_echo=$ac_try;;
9812 esac
9813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9814 $as_echo "$ac_try_echo") >&5
9815 (eval "$ac_compile") 2>conftest.er1
9816 ac_status=$?
9817 grep -v '^ *+' conftest.er1 >conftest.err
9818 rm -f conftest.er1
9819 cat conftest.err >&5
9820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); } && {
9822 test -z "$ac_c_werror_flag" ||
9823 test ! -s conftest.err
9824 } && test -s conftest.$ac_objext; then
9825 ac_header_compiler=yes
9826 else
9827 $as_echo "$as_me: failed program was:" >&5
9828 sed 's/^/| /' conftest.$ac_ext >&5
9830 ac_header_compiler=no
9833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9834 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9835 $as_echo "$ac_header_compiler" >&6; }
9837 # Is the header present?
9838 { $as_echo "$as_me:$LINENO: checking libraw1394/raw1394.h presence" >&5
9839 $as_echo_n "checking libraw1394/raw1394.h presence... " >&6; }
9840 cat >conftest.$ac_ext <<_ACEOF
9841 /* confdefs.h. */
9842 _ACEOF
9843 cat confdefs.h >>conftest.$ac_ext
9844 cat >>conftest.$ac_ext <<_ACEOF
9845 /* end confdefs.h. */
9846 #include <libraw1394/raw1394.h>
9847 _ACEOF
9848 if { (ac_try="$ac_cpp conftest.$ac_ext"
9849 case "(($ac_try" in
9850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9851 *) ac_try_echo=$ac_try;;
9852 esac
9853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9854 $as_echo "$ac_try_echo") >&5
9855 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9856 ac_status=$?
9857 grep -v '^ *+' conftest.er1 >conftest.err
9858 rm -f conftest.er1
9859 cat conftest.err >&5
9860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); } >/dev/null && {
9862 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9863 test ! -s conftest.err
9864 }; then
9865 ac_header_preproc=yes
9866 else
9867 $as_echo "$as_me: failed program was:" >&5
9868 sed 's/^/| /' conftest.$ac_ext >&5
9870 ac_header_preproc=no
9873 rm -f conftest.err conftest.$ac_ext
9874 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9875 $as_echo "$ac_header_preproc" >&6; }
9877 # So? What about this header?
9878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9879 yes:no: )
9880 { $as_echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: accepted by the compiler, rejected by the preprocessor!" >&5
9881 $as_echo "$as_me: WARNING: libraw1394/raw1394.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9882 { $as_echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: proceeding with the compiler's result" >&5
9883 $as_echo "$as_me: WARNING: libraw1394/raw1394.h: proceeding with the compiler's result" >&2;}
9884 ac_header_preproc=yes
9886 no:yes:* )
9887 { $as_echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: present but cannot be compiled" >&5
9888 $as_echo "$as_me: WARNING: libraw1394/raw1394.h: present but cannot be compiled" >&2;}
9889 { $as_echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: check for missing prerequisite headers?" >&5
9890 $as_echo "$as_me: WARNING: libraw1394/raw1394.h: check for missing prerequisite headers?" >&2;}
9891 { $as_echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: see the Autoconf documentation" >&5
9892 $as_echo "$as_me: WARNING: libraw1394/raw1394.h: see the Autoconf documentation" >&2;}
9893 { $as_echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: section \"Present But Cannot Be Compiled\"" >&5
9894 $as_echo "$as_me: WARNING: libraw1394/raw1394.h: section \"Present But Cannot Be Compiled\"" >&2;}
9895 { $as_echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: proceeding with the preprocessor's result" >&5
9896 $as_echo "$as_me: WARNING: libraw1394/raw1394.h: proceeding with the preprocessor's result" >&2;}
9897 { $as_echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: in the future, the compiler will take precedence" >&5
9898 $as_echo "$as_me: WARNING: libraw1394/raw1394.h: in the future, the compiler will take precedence" >&2;}
9899 ( cat <<\_ASBOX
9900 ## ------------------------------------------------------------------- ##
9901 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=gpiv ##
9902 ## ------------------------------------------------------------------- ##
9903 _ASBOX
9904 ) | sed "s/^/$as_me: WARNING: /" >&2
9906 esac
9907 { $as_echo "$as_me:$LINENO: checking for libraw1394/raw1394.h" >&5
9908 $as_echo_n "checking for libraw1394/raw1394.h... " >&6; }
9909 if test "${ac_cv_header_libraw1394_raw1394_h+set}" = set; then
9910 $as_echo_n "(cached) " >&6
9911 else
9912 ac_cv_header_libraw1394_raw1394_h=$ac_header_preproc
9914 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libraw1394_raw1394_h" >&5
9915 $as_echo "$ac_cv_header_libraw1394_raw1394_h" >&6; }
9918 if test "x$ac_cv_header_libraw1394_raw1394_h" = x""yes; then
9920 else
9921 { { $as_echo "$as_me:$LINENO: error: \"missing raw1394.h\"" >&5
9922 $as_echo "$as_me: error: \"missing raw1394.h\"" >&2;}
9923 { (exit 1); exit 1; }; }
9930 if test "${ENABLE_TRIG}" == '-DENABLE_TRIG'; then
9932 { $as_echo "$as_me:$LINENO: checking for gpiv_trig_openrtfs in -lgpiv" >&5
9933 $as_echo_n "checking for gpiv_trig_openrtfs in -lgpiv... " >&6; }
9934 if test "${ac_cv_lib_gpiv_gpiv_trig_openrtfs+set}" = set; then
9935 $as_echo_n "(cached) " >&6
9936 else
9937 ac_check_lib_save_LIBS=$LIBS
9938 LIBS="-lgpiv $LIBS"
9939 cat >conftest.$ac_ext <<_ACEOF
9940 /* confdefs.h. */
9941 _ACEOF
9942 cat confdefs.h >>conftest.$ac_ext
9943 cat >>conftest.$ac_ext <<_ACEOF
9944 /* end confdefs.h. */
9946 /* Override any GCC internal prototype to avoid an error.
9947 Use char because int might match the return type of a GCC
9948 builtin and then its argument prototype would still apply. */
9949 #ifdef __cplusplus
9950 extern "C"
9951 #endif
9952 char gpiv_trig_openrtfs ();
9954 main ()
9956 return gpiv_trig_openrtfs ();
9958 return 0;
9960 _ACEOF
9961 rm -f conftest.$ac_objext conftest$ac_exeext
9962 if { (ac_try="$ac_link"
9963 case "(($ac_try" in
9964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9965 *) ac_try_echo=$ac_try;;
9966 esac
9967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9968 $as_echo "$ac_try_echo") >&5
9969 (eval "$ac_link") 2>conftest.er1
9970 ac_status=$?
9971 grep -v '^ *+' conftest.er1 >conftest.err
9972 rm -f conftest.er1
9973 cat conftest.err >&5
9974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); } && {
9976 test -z "$ac_c_werror_flag" ||
9977 test ! -s conftest.err
9978 } && test -s conftest$ac_exeext && {
9979 test "$cross_compiling" = yes ||
9980 $as_test_x conftest$ac_exeext
9981 }; then
9982 ac_cv_lib_gpiv_gpiv_trig_openrtfs=yes
9983 else
9984 $as_echo "$as_me: failed program was:" >&5
9985 sed 's/^/| /' conftest.$ac_ext >&5
9987 ac_cv_lib_gpiv_gpiv_trig_openrtfs=no
9990 rm -rf conftest.dSYM
9991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9992 conftest$ac_exeext conftest.$ac_ext
9993 LIBS=$ac_check_lib_save_LIBS
9995 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpiv_gpiv_trig_openrtfs" >&5
9996 $as_echo "$ac_cv_lib_gpiv_gpiv_trig_openrtfs" >&6; }
9997 if test "x$ac_cv_lib_gpiv_gpiv_trig_openrtfs" = x""yes; then
9998 cat >>confdefs.h <<_ACEOF
9999 #define HAVE_LIBGPIV 1
10000 _ACEOF
10002 LIBS="-lgpiv $LIBS"
10004 else
10005 { { $as_echo "$as_me:$LINENO: error: \"(Realtime) triggering is not working in libgpiv. \
10006 Enable (realtime) triggering in libgpiv or disable it here by leaving out --enable-trig during ./configure\"" >&5
10007 $as_echo "$as_me: error: \"(Realtime) triggering is not working in libgpiv. \
10008 Enable (realtime) triggering in libgpiv or disable it here by leaving out --enable-trig during ./configure\"" >&2;}
10009 { (exit 1); exit 1; }; }
10015 # Extract the first word of "gpiv_control", so it can be a program name with args.
10016 set dummy gpiv_control; ac_word=$2
10017 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10018 $as_echo_n "checking for $ac_word... " >&6; }
10019 if test "${ac_cv_prog_CONTROL+set}" = set; then
10020 $as_echo_n "(cached) " >&6
10021 else
10022 if test -n "$CONTROL"; then
10023 ac_cv_prog_CONTROL="$CONTROL" # Let the user override the test.
10024 else
10025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10026 for as_dir in $PATH
10028 IFS=$as_save_IFS
10029 test -z "$as_dir" && as_dir=.
10030 for ac_exec_ext in '' $ac_executable_extensions; do
10031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10032 ac_cv_prog_CONTROL="true"
10033 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10034 break 2
10036 done
10037 done
10038 IFS=$as_save_IFS
10040 test -z "$ac_cv_prog_CONTROL" && ac_cv_prog_CONTROL="false"
10043 CONTROL=$ac_cv_prog_CONTROL
10044 if test -n "$CONTROL"; then
10045 { $as_echo "$as_me:$LINENO: result: $CONTROL" >&5
10046 $as_echo "$CONTROL" >&6; }
10047 else
10048 { $as_echo "$as_me:$LINENO: result: no" >&5
10049 $as_echo "no" >&6; }
10053 if $CONTROL; then
10054 HAVE_CONTROL_TRUE=
10055 HAVE_CONTROL_FALSE='#'
10056 else
10057 HAVE_CONTROL_TRUE='#'
10058 HAVE_CONTROL_FALSE=
10062 # Check whether --enable-rta was given.
10063 if test "${enable_rta+set}" = set; then
10064 enableval=$enable_rta; RTA_TOPDIR="$enableval"
10065 else
10066 RTA_TOPDIR="/usr/lib/realtime"
10073 # Check whether --enable-k was given.
10074 if test "${enable_k+set}" = set; then
10075 enableval=$enable_k; K_TOPDIR="$enableval"
10076 else
10077 K_TOPDIR="/usr/src/kernel-headers-2.4.27-adeos"
10084 # Check whether --enable-img-width was given.
10085 if test "${enable_img_width+set}" = set; then
10086 enableval=$enable_img_width; OVERRIDE_IMAGE_WIDTH_MAX="-DIMAGE_WIDTH_MAX=$enableval"
10094 # Check whether --enable-img-height was given.
10095 if test "${enable_img_height+set}" = set; then
10096 enableval=$enable_img_height; OVERRIDE_IMAGE_HEIGHT_MAX="-DIMAGE_HEIGHT_MAX=$enableval"
10103 # Check whether --enable-canvas_aa was given.
10104 if test "${enable_canvas_aa+set}" = set; then
10105 enableval=$enable_canvas_aa; CANVAS_AA="-DCANVAS_AA"
10112 # Check whether --enable-debug was given.
10113 if test "${enable_debug+set}" = set; then
10114 enableval=$enable_debug; DEBUG="-DDEBUG"
10124 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"
10126 cat >confcache <<\_ACEOF
10127 # This file is a shell script that caches the results of configure
10128 # tests run on this system so they can be shared between configure
10129 # scripts and configure runs, see configure's option --config-cache.
10130 # It is not useful on other systems. If it contains results you don't
10131 # want to keep, you may remove or edit it.
10133 # config.status only pays attention to the cache file if you give it
10134 # the --recheck option to rerun configure.
10136 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10137 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10138 # following values.
10140 _ACEOF
10142 # The following way of writing the cache mishandles newlines in values,
10143 # but we know of no workaround that is simple, portable, and efficient.
10144 # So, we kill variables containing newlines.
10145 # Ultrix sh set writes to stderr and can't be redirected directly,
10146 # and sets the high bit in the cache file unless we assign to the vars.
10148 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10149 eval ac_val=\$$ac_var
10150 case $ac_val in #(
10151 *${as_nl}*)
10152 case $ac_var in #(
10153 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
10154 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10155 esac
10156 case $ac_var in #(
10157 _ | IFS | as_nl) ;; #(
10158 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10159 *) $as_unset $ac_var ;;
10160 esac ;;
10161 esac
10162 done
10164 (set) 2>&1 |
10165 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10166 *${as_nl}ac_space=\ *)
10167 # `set' does not quote correctly, so add quotes (double-quote
10168 # substitution turns \\\\ into \\, and sed turns \\ into \).
10169 sed -n \
10170 "s/'/'\\\\''/g;
10171 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10172 ;; #(
10174 # `set' quotes correctly as required by POSIX, so do not add quotes.
10175 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10177 esac |
10178 sort
10180 sed '
10181 /^ac_cv_env_/b end
10182 t clear
10183 :clear
10184 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10185 t end
10186 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10187 :end' >>confcache
10188 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10189 if test -w "$cache_file"; then
10190 test "x$cache_file" != "x/dev/null" &&
10191 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
10192 $as_echo "$as_me: updating cache $cache_file" >&6;}
10193 cat confcache >$cache_file
10194 else
10195 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10196 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10199 rm -f confcache
10201 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10202 # Let make expand exec_prefix.
10203 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10205 # Transform confdefs.h into DEFS.
10206 # Protect against shell expansion while executing Makefile rules.
10207 # Protect against Makefile macro expansion.
10209 # If the first sed substitution is executed (which looks for macros that
10210 # take arguments), then branch to the quote section. Otherwise,
10211 # look for a macro that doesn't take arguments.
10212 ac_script='
10213 :mline
10214 /\\$/{
10216 s,\\\n,,
10217 b mline
10219 t clear
10220 :clear
10221 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
10222 t quote
10223 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
10224 t quote
10225 b any
10226 :quote
10227 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
10228 s/\[/\\&/g
10229 s/\]/\\&/g
10230 s/\$/$$/g
10232 :any
10235 s/^\n//
10236 s/\n/ /g
10240 DEFS=`sed -n "$ac_script" confdefs.h`
10243 ac_libobjs=
10244 ac_ltlibobjs=
10245 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10246 # 1. Remove the extension, and $U if already installed.
10247 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10248 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10249 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10250 # will be set to the directory where LIBOBJS objects are built.
10251 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10252 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10253 done
10254 LIBOBJS=$ac_libobjs
10256 LTLIBOBJS=$ac_ltlibobjs
10259 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10260 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10261 Usually this means the macro was only invoked conditionally." >&5
10262 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10263 Usually this means the macro was only invoked conditionally." >&2;}
10264 { (exit 1); exit 1; }; }
10266 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10267 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10268 Usually this means the macro was only invoked conditionally." >&5
10269 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
10270 Usually this means the macro was only invoked conditionally." >&2;}
10271 { (exit 1); exit 1; }; }
10273 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10274 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10275 Usually this means the macro was only invoked conditionally." >&5
10276 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10277 Usually this means the macro was only invoked conditionally." >&2;}
10278 { (exit 1); exit 1; }; }
10280 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10281 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10282 Usually this means the macro was only invoked conditionally." >&5
10283 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10284 Usually this means the macro was only invoked conditionally." >&2;}
10285 { (exit 1); exit 1; }; }
10287 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10288 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10289 Usually this means the macro was only invoked conditionally." >&5
10290 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10291 Usually this means the macro was only invoked conditionally." >&2;}
10292 { (exit 1); exit 1; }; }
10295 ac_config_commands="$ac_config_commands po/stamp-it"
10298 if test -z "${HAVE_CONTROL_TRUE}" && test -z "${HAVE_CONTROL_FALSE}"; then
10299 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_CONTROL\" was never defined.
10300 Usually this means the macro was only invoked conditionally." >&5
10301 $as_echo "$as_me: error: conditional \"HAVE_CONTROL\" was never defined.
10302 Usually this means the macro was only invoked conditionally." >&2;}
10303 { (exit 1); exit 1; }; }
10306 : ${CONFIG_STATUS=./config.status}
10307 ac_write_fail=0
10308 ac_clean_files_save=$ac_clean_files
10309 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10310 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10311 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10312 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10313 #! $SHELL
10314 # Generated by $as_me.
10315 # Run this file to recreate the current configuration.
10316 # Compiler output produced by configure, useful for debugging
10317 # configure, is in config.log if it exists.
10319 debug=false
10320 ac_cs_recheck=false
10321 ac_cs_silent=false
10322 SHELL=\${CONFIG_SHELL-$SHELL}
10323 _ACEOF
10325 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10326 ## --------------------- ##
10327 ## M4sh Initialization. ##
10328 ## --------------------- ##
10330 # Be more Bourne compatible
10331 DUALCASE=1; export DUALCASE # for MKS sh
10332 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10333 emulate sh
10334 NULLCMD=:
10335 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10336 # is contrary to our usage. Disable this feature.
10337 alias -g '${1+"$@"}'='"$@"'
10338 setopt NO_GLOB_SUBST
10339 else
10340 case `(set -o) 2>/dev/null` in
10341 *posix*) set -o posix ;;
10342 esac
10349 # PATH needs CR
10350 # Avoid depending upon Character Ranges.
10351 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10352 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10353 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10354 as_cr_digits='0123456789'
10355 as_cr_alnum=$as_cr_Letters$as_cr_digits
10357 as_nl='
10359 export as_nl
10360 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10361 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10362 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10363 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10364 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10365 as_echo='printf %s\n'
10366 as_echo_n='printf %s'
10367 else
10368 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10369 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10370 as_echo_n='/usr/ucb/echo -n'
10371 else
10372 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10373 as_echo_n_body='eval
10374 arg=$1;
10375 case $arg in
10376 *"$as_nl"*)
10377 expr "X$arg" : "X\\(.*\\)$as_nl";
10378 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10379 esac;
10380 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10382 export as_echo_n_body
10383 as_echo_n='sh -c $as_echo_n_body as_echo'
10385 export as_echo_body
10386 as_echo='sh -c $as_echo_body as_echo'
10389 # The user is always right.
10390 if test "${PATH_SEPARATOR+set}" != set; then
10391 PATH_SEPARATOR=:
10392 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10393 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10394 PATH_SEPARATOR=';'
10398 # Support unset when possible.
10399 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10400 as_unset=unset
10401 else
10402 as_unset=false
10406 # IFS
10407 # We need space, tab and new line, in precisely that order. Quoting is
10408 # there to prevent editors from complaining about space-tab.
10409 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10410 # splitting by setting IFS to empty value.)
10411 IFS=" "" $as_nl"
10413 # Find who we are. Look in the path if we contain no directory separator.
10414 case $0 in
10415 *[\\/]* ) as_myself=$0 ;;
10416 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10417 for as_dir in $PATH
10419 IFS=$as_save_IFS
10420 test -z "$as_dir" && as_dir=.
10421 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10422 done
10423 IFS=$as_save_IFS
10426 esac
10427 # We did not find ourselves, most probably we were run as `sh COMMAND'
10428 # in which case we are not to be found in the path.
10429 if test "x$as_myself" = x; then
10430 as_myself=$0
10432 if test ! -f "$as_myself"; then
10433 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10434 { (exit 1); exit 1; }
10437 # Work around bugs in pre-3.0 UWIN ksh.
10438 for as_var in ENV MAIL MAILPATH
10439 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10440 done
10441 PS1='$ '
10442 PS2='> '
10443 PS4='+ '
10445 # NLS nuisances.
10446 LC_ALL=C
10447 export LC_ALL
10448 LANGUAGE=C
10449 export LANGUAGE
10451 # Required to use basename.
10452 if expr a : '\(a\)' >/dev/null 2>&1 &&
10453 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10454 as_expr=expr
10455 else
10456 as_expr=false
10459 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10460 as_basename=basename
10461 else
10462 as_basename=false
10466 # Name of the executable.
10467 as_me=`$as_basename -- "$0" ||
10468 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10469 X"$0" : 'X\(//\)$' \| \
10470 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10471 $as_echo X/"$0" |
10472 sed '/^.*\/\([^/][^/]*\)\/*$/{
10473 s//\1/
10476 /^X\/\(\/\/\)$/{
10477 s//\1/
10480 /^X\/\(\/\).*/{
10481 s//\1/
10484 s/.*/./; q'`
10486 # CDPATH.
10487 $as_unset CDPATH
10491 as_lineno_1=$LINENO
10492 as_lineno_2=$LINENO
10493 test "x$as_lineno_1" != "x$as_lineno_2" &&
10494 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10496 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10497 # uniformly replaced by the line number. The first 'sed' inserts a
10498 # line-number line after each line using $LINENO; the second 'sed'
10499 # does the real work. The second script uses 'N' to pair each
10500 # line-number line with the line containing $LINENO, and appends
10501 # trailing '-' during substitution so that $LINENO is not a special
10502 # case at line end.
10503 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10504 # scripts with optimization help from Paolo Bonzini. Blame Lee
10505 # E. McMahon (1931-1989) for sed's syntax. :-)
10506 sed -n '
10508 /[$]LINENO/=
10509 ' <$as_myself |
10510 sed '
10511 s/[$]LINENO.*/&-/
10512 t lineno
10514 :lineno
10516 :loop
10517 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10518 t loop
10519 s/-\n.*//
10520 ' >$as_me.lineno &&
10521 chmod +x "$as_me.lineno" ||
10522 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10523 { (exit 1); exit 1; }; }
10525 # Don't try to exec as it changes $[0], causing all sort of problems
10526 # (the dirname of $[0] is not the place where we might find the
10527 # original and so on. Autoconf is especially sensitive to this).
10528 . "./$as_me.lineno"
10529 # Exit status is that of the last command.
10530 exit
10534 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10535 as_dirname=dirname
10536 else
10537 as_dirname=false
10540 ECHO_C= ECHO_N= ECHO_T=
10541 case `echo -n x` in
10542 -n*)
10543 case `echo 'x\c'` in
10544 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10545 *) ECHO_C='\c';;
10546 esac;;
10548 ECHO_N='-n';;
10549 esac
10550 if expr a : '\(a\)' >/dev/null 2>&1 &&
10551 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10552 as_expr=expr
10553 else
10554 as_expr=false
10557 rm -f conf$$ conf$$.exe conf$$.file
10558 if test -d conf$$.dir; then
10559 rm -f conf$$.dir/conf$$.file
10560 else
10561 rm -f conf$$.dir
10562 mkdir conf$$.dir 2>/dev/null
10564 if (echo >conf$$.file) 2>/dev/null; then
10565 if ln -s conf$$.file conf$$ 2>/dev/null; then
10566 as_ln_s='ln -s'
10567 # ... but there are two gotchas:
10568 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10569 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10570 # In both cases, we have to default to `cp -p'.
10571 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10572 as_ln_s='cp -p'
10573 elif ln conf$$.file conf$$ 2>/dev/null; then
10574 as_ln_s=ln
10575 else
10576 as_ln_s='cp -p'
10578 else
10579 as_ln_s='cp -p'
10581 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10582 rmdir conf$$.dir 2>/dev/null
10584 if mkdir -p . 2>/dev/null; then
10585 as_mkdir_p=:
10586 else
10587 test -d ./-p && rmdir ./-p
10588 as_mkdir_p=false
10591 if test -x / >/dev/null 2>&1; then
10592 as_test_x='test -x'
10593 else
10594 if ls -dL / >/dev/null 2>&1; then
10595 as_ls_L_option=L
10596 else
10597 as_ls_L_option=
10599 as_test_x='
10600 eval sh -c '\''
10601 if test -d "$1"; then
10602 test -d "$1/.";
10603 else
10604 case $1 in
10605 -*)set "./$1";;
10606 esac;
10607 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10608 ???[sx]*):;;*)false;;esac;fi
10609 '\'' sh
10612 as_executable_p=$as_test_x
10614 # Sed expression to map a string onto a valid CPP name.
10615 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10617 # Sed expression to map a string onto a valid variable name.
10618 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10621 exec 6>&1
10623 # Save the log message, to keep $[0] and so on meaningful, and to
10624 # report actual input values of CONFIG_FILES etc. instead of their
10625 # values after options handling.
10626 ac_log="
10627 This file was extended by gpiv $as_me 0.6.1, which was
10628 generated by GNU Autoconf 2.63. Invocation command line was
10630 CONFIG_FILES = $CONFIG_FILES
10631 CONFIG_HEADERS = $CONFIG_HEADERS
10632 CONFIG_LINKS = $CONFIG_LINKS
10633 CONFIG_COMMANDS = $CONFIG_COMMANDS
10634 $ $0 $@
10636 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10639 _ACEOF
10641 case $ac_config_files in *"
10642 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10643 esac
10647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10648 # Files that config.status was made for.
10649 config_files="$ac_config_files"
10650 config_commands="$ac_config_commands"
10652 _ACEOF
10654 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10655 ac_cs_usage="\
10656 \`$as_me' instantiates files from templates according to the
10657 current configuration.
10659 Usage: $0 [OPTION]... [FILE]...
10661 -h, --help print this help, then exit
10662 -V, --version print version number and configuration settings, then exit
10663 -q, --quiet, --silent
10664 do not print progress messages
10665 -d, --debug don't remove temporary files
10666 --recheck update $as_me by reconfiguring in the same conditions
10667 --file=FILE[:TEMPLATE]
10668 instantiate the configuration file FILE
10670 Configuration files:
10671 $config_files
10673 Configuration commands:
10674 $config_commands
10676 Report bugs to <bug-autoconf@gnu.org>."
10678 _ACEOF
10679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10680 ac_cs_version="\\
10681 gpiv config.status 0.6.1
10682 configured by $0, generated by GNU Autoconf 2.63,
10683 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10685 Copyright (C) 2008 Free Software Foundation, Inc.
10686 This config.status script is free software; the Free Software Foundation
10687 gives unlimited permission to copy, distribute and modify it."
10689 ac_pwd='$ac_pwd'
10690 srcdir='$srcdir'
10691 INSTALL='$INSTALL'
10692 MKDIR_P='$MKDIR_P'
10693 AWK='$AWK'
10694 test -n "\$AWK" || AWK=awk
10695 _ACEOF
10697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10698 # The default lists apply if the user does not specify any file.
10699 ac_need_defaults=:
10700 while test $# != 0
10702 case $1 in
10703 --*=*)
10704 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10705 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10706 ac_shift=:
10709 ac_option=$1
10710 ac_optarg=$2
10711 ac_shift=shift
10713 esac
10715 case $ac_option in
10716 # Handling of the options.
10717 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10718 ac_cs_recheck=: ;;
10719 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10720 $as_echo "$ac_cs_version"; exit ;;
10721 --debug | --debu | --deb | --de | --d | -d )
10722 debug=: ;;
10723 --file | --fil | --fi | --f )
10724 $ac_shift
10725 case $ac_optarg in
10726 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10727 esac
10728 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
10729 ac_need_defaults=false;;
10730 --he | --h | --help | --hel | -h )
10731 $as_echo "$ac_cs_usage"; exit ;;
10732 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10733 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10734 ac_cs_silent=: ;;
10736 # This is an error.
10737 -*) { $as_echo "$as_me: error: unrecognized option: $1
10738 Try \`$0 --help' for more information." >&2
10739 { (exit 1); exit 1; }; } ;;
10741 *) ac_config_targets="$ac_config_targets $1"
10742 ac_need_defaults=false ;;
10744 esac
10745 shift
10746 done
10748 ac_configure_extra_args=
10750 if $ac_cs_silent; then
10751 exec 6>/dev/null
10752 ac_configure_extra_args="$ac_configure_extra_args --silent"
10755 _ACEOF
10756 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10757 if \$ac_cs_recheck; then
10758 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10759 shift
10760 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10761 CONFIG_SHELL='$SHELL'
10762 export CONFIG_SHELL
10763 exec "\$@"
10766 _ACEOF
10767 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10768 exec 5>>config.log
10770 echo
10771 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10772 ## Running $as_me. ##
10773 _ASBOX
10774 $as_echo "$ac_log"
10775 } >&5
10777 _ACEOF
10778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10780 # INIT-COMMANDS
10782 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10785 _ACEOF
10787 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10789 # Handling of arguments.
10790 for ac_config_target in $ac_config_targets
10792 case $ac_config_target in
10793 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10794 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
10795 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10796 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10797 "doc/C/Makefile") CONFIG_FILES="$CONFIG_FILES doc/C/Makefile" ;;
10798 "doc/C/figures/Makefile") CONFIG_FILES="$CONFIG_FILES doc/C/figures/Makefile" ;;
10799 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10800 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
10801 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10802 "pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/Makefile" ;;
10803 "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
10805 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10806 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10807 { (exit 1); exit 1; }; };;
10808 esac
10809 done
10812 # If the user did not use the arguments to specify the items to instantiate,
10813 # then the envvar interface is used. Set only those that are not.
10814 # We use the long form for the default assignment because of an extremely
10815 # bizarre bug on SunOS 4.1.3.
10816 if $ac_need_defaults; then
10817 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10818 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10821 # Have a temporary directory for convenience. Make it in the build tree
10822 # simply because there is no reason against having it here, and in addition,
10823 # creating and moving files from /tmp can sometimes cause problems.
10824 # Hook for its removal unless debugging.
10825 # Note that there is a small window in which the directory will not be cleaned:
10826 # after its creation but before its name has been assigned to `$tmp'.
10827 $debug ||
10829 tmp=
10830 trap 'exit_status=$?
10831 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10833 trap '{ (exit 1); exit 1; }' 1 2 13 15
10835 # Create a (secure) tmp directory for tmp files.
10838 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10839 test -n "$tmp" && test -d "$tmp"
10840 } ||
10842 tmp=./conf$$-$RANDOM
10843 (umask 077 && mkdir "$tmp")
10844 } ||
10846 $as_echo "$as_me: cannot create a temporary directory in ." >&2
10847 { (exit 1); exit 1; }
10850 # Set up the scripts for CONFIG_FILES section.
10851 # No need to generate them if there are no CONFIG_FILES.
10852 # This happens for instance with `./config.status config.h'.
10853 if test -n "$CONFIG_FILES"; then
10856 ac_cr=' '
10857 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10858 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10859 ac_cs_awk_cr='\\r'
10860 else
10861 ac_cs_awk_cr=$ac_cr
10864 echo 'BEGIN {' >"$tmp/subs1.awk" &&
10865 _ACEOF
10869 echo "cat >conf$$subs.awk <<_ACEOF" &&
10870 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10871 echo "_ACEOF"
10872 } >conf$$subs.sh ||
10873 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10874 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10875 { (exit 1); exit 1; }; }
10876 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10877 ac_delim='%!_!# '
10878 for ac_last_try in false false false false false :; do
10879 . ./conf$$subs.sh ||
10880 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10881 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10882 { (exit 1); exit 1; }; }
10884 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10885 if test $ac_delim_n = $ac_delim_num; then
10886 break
10887 elif $ac_last_try; then
10888 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10889 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10890 { (exit 1); exit 1; }; }
10891 else
10892 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10894 done
10895 rm -f conf$$subs.sh
10897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10898 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10899 _ACEOF
10900 sed -n '
10902 s/^/S["/; s/!.*/"]=/
10905 s/^[^!]*!//
10906 :repl
10907 t repl
10908 s/'"$ac_delim"'$//
10909 t delim
10912 s/\(.\{148\}\).*/\1/
10913 t more1
10914 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10917 b repl
10918 :more1
10919 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10922 s/.\{148\}//
10923 t nl
10924 :delim
10926 s/\(.\{148\}\).*/\1/
10927 t more2
10928 s/["\\]/\\&/g; s/^/"/; s/$/"/
10931 :more2
10932 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10935 s/.\{148\}//
10936 t delim
10937 ' <conf$$subs.awk | sed '
10938 /^[^""]/{
10940 s/\n//
10942 ' >>$CONFIG_STATUS || ac_write_fail=1
10943 rm -f conf$$subs.awk
10944 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10945 _ACAWK
10946 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10947 for (key in S) S_is_set[key] = 1
10948 FS = "\a"
10952 line = $ 0
10953 nfields = split(line, field, "@")
10954 substed = 0
10955 len = length(field[1])
10956 for (i = 2; i < nfields; i++) {
10957 key = field[i]
10958 keylen = length(key)
10959 if (S_is_set[key]) {
10960 value = S[key]
10961 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10962 len += length(value) + length(field[++i])
10963 substed = 1
10964 } else
10965 len += 1 + keylen
10968 print line
10971 _ACAWK
10972 _ACEOF
10973 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10974 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10975 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10976 else
10978 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10979 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
10980 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
10981 { (exit 1); exit 1; }; }
10982 _ACEOF
10984 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10985 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10986 # trailing colons and then remove the whole line if VPATH becomes empty
10987 # (actually we leave an empty line to preserve line numbers).
10988 if test "x$srcdir" = x.; then
10989 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10990 s/:*\$(srcdir):*/:/
10991 s/:*\${srcdir}:*/:/
10992 s/:*@srcdir@:*/:/
10993 s/^\([^=]*=[ ]*\):*/\1/
10994 s/:*$//
10995 s/^[^=]*=[ ]*$//
10999 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11000 fi # test -n "$CONFIG_FILES"
11003 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
11004 shift
11005 for ac_tag
11007 case $ac_tag in
11008 :[FHLC]) ac_mode=$ac_tag; continue;;
11009 esac
11010 case $ac_mode$ac_tag in
11011 :[FHL]*:*);;
11012 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
11013 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
11014 { (exit 1); exit 1; }; };;
11015 :[FH]-) ac_tag=-:-;;
11016 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11017 esac
11018 ac_save_IFS=$IFS
11019 IFS=:
11020 set x $ac_tag
11021 IFS=$ac_save_IFS
11022 shift
11023 ac_file=$1
11024 shift
11026 case $ac_mode in
11027 :L) ac_source=$1;;
11028 :[FH])
11029 ac_file_inputs=
11030 for ac_f
11032 case $ac_f in
11033 -) ac_f="$tmp/stdin";;
11034 *) # Look for the file first in the build tree, then in the source tree
11035 # (if the path is not absolute). The absolute path cannot be DOS-style,
11036 # because $ac_f cannot contain `:'.
11037 test -f "$ac_f" ||
11038 case $ac_f in
11039 [\\/$]*) false;;
11040 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11041 esac ||
11042 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11043 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11044 { (exit 1); exit 1; }; };;
11045 esac
11046 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11047 ac_file_inputs="$ac_file_inputs '$ac_f'"
11048 done
11050 # Let's still pretend it is `configure' which instantiates (i.e., don't
11051 # use $as_me), people would be surprised to read:
11052 # /* config.h. Generated by config.status. */
11053 configure_input='Generated from '`
11054 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11055 `' by configure.'
11056 if test x"$ac_file" != x-; then
11057 configure_input="$ac_file. $configure_input"
11058 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
11059 $as_echo "$as_me: creating $ac_file" >&6;}
11061 # Neutralize special characters interpreted by sed in replacement strings.
11062 case $configure_input in #(
11063 *\&* | *\|* | *\\* )
11064 ac_sed_conf_input=`$as_echo "$configure_input" |
11065 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11066 *) ac_sed_conf_input=$configure_input;;
11067 esac
11069 case $ac_tag in
11070 *:-:* | *:-) cat >"$tmp/stdin" \
11071 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11072 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11073 { (exit 1); exit 1; }; } ;;
11074 esac
11076 esac
11078 ac_dir=`$as_dirname -- "$ac_file" ||
11079 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11080 X"$ac_file" : 'X\(//\)[^/]' \| \
11081 X"$ac_file" : 'X\(//\)$' \| \
11082 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11083 $as_echo X"$ac_file" |
11084 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11085 s//\1/
11088 /^X\(\/\/\)[^/].*/{
11089 s//\1/
11092 /^X\(\/\/\)$/{
11093 s//\1/
11096 /^X\(\/\).*/{
11097 s//\1/
11100 s/.*/./; q'`
11101 { as_dir="$ac_dir"
11102 case $as_dir in #(
11103 -*) as_dir=./$as_dir;;
11104 esac
11105 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11106 as_dirs=
11107 while :; do
11108 case $as_dir in #(
11109 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11110 *) as_qdir=$as_dir;;
11111 esac
11112 as_dirs="'$as_qdir' $as_dirs"
11113 as_dir=`$as_dirname -- "$as_dir" ||
11114 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11115 X"$as_dir" : 'X\(//\)[^/]' \| \
11116 X"$as_dir" : 'X\(//\)$' \| \
11117 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11118 $as_echo X"$as_dir" |
11119 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11120 s//\1/
11123 /^X\(\/\/\)[^/].*/{
11124 s//\1/
11127 /^X\(\/\/\)$/{
11128 s//\1/
11131 /^X\(\/\).*/{
11132 s//\1/
11135 s/.*/./; q'`
11136 test -d "$as_dir" && break
11137 done
11138 test -z "$as_dirs" || eval "mkdir $as_dirs"
11139 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11140 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
11141 { (exit 1); exit 1; }; }; }
11142 ac_builddir=.
11144 case "$ac_dir" in
11145 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11147 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11148 # A ".." for each directory in $ac_dir_suffix.
11149 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11150 case $ac_top_builddir_sub in
11151 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11152 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11153 esac ;;
11154 esac
11155 ac_abs_top_builddir=$ac_pwd
11156 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11157 # for backward compatibility:
11158 ac_top_builddir=$ac_top_build_prefix
11160 case $srcdir in
11161 .) # We are building in place.
11162 ac_srcdir=.
11163 ac_top_srcdir=$ac_top_builddir_sub
11164 ac_abs_top_srcdir=$ac_pwd ;;
11165 [\\/]* | ?:[\\/]* ) # Absolute name.
11166 ac_srcdir=$srcdir$ac_dir_suffix;
11167 ac_top_srcdir=$srcdir
11168 ac_abs_top_srcdir=$srcdir ;;
11169 *) # Relative name.
11170 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11171 ac_top_srcdir=$ac_top_build_prefix$srcdir
11172 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11173 esac
11174 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11177 case $ac_mode in
11180 # CONFIG_FILE
11183 case $INSTALL in
11184 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11185 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11186 esac
11187 ac_MKDIR_P=$MKDIR_P
11188 case $MKDIR_P in
11189 [\\/$]* | ?:[\\/]* ) ;;
11190 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11191 esac
11192 _ACEOF
11194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11195 # If the template does not know about datarootdir, expand it.
11196 # FIXME: This hack should be removed a few years after 2.60.
11197 ac_datarootdir_hack=; ac_datarootdir_seen=
11199 ac_sed_dataroot='
11200 /datarootdir/ {
11204 /@datadir@/p
11205 /@docdir@/p
11206 /@infodir@/p
11207 /@localedir@/p
11208 /@mandir@/p
11210 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11211 *datarootdir*) ac_datarootdir_seen=yes;;
11212 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11213 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11214 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11215 _ACEOF
11216 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11217 ac_datarootdir_hack='
11218 s&@datadir@&$datadir&g
11219 s&@docdir@&$docdir&g
11220 s&@infodir@&$infodir&g
11221 s&@localedir@&$localedir&g
11222 s&@mandir@&$mandir&g
11223 s&\\\${datarootdir}&$datarootdir&g' ;;
11224 esac
11225 _ACEOF
11227 # Neutralize VPATH when `$srcdir' = `.'.
11228 # Shell code in configure.ac might set extrasub.
11229 # FIXME: do we really want to maintain this feature?
11230 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11231 ac_sed_extra="$ac_vpsub
11232 $extrasub
11233 _ACEOF
11234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11236 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11237 s|@configure_input@|$ac_sed_conf_input|;t t
11238 s&@top_builddir@&$ac_top_builddir_sub&;t t
11239 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11240 s&@srcdir@&$ac_srcdir&;t t
11241 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11242 s&@top_srcdir@&$ac_top_srcdir&;t t
11243 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11244 s&@builddir@&$ac_builddir&;t t
11245 s&@abs_builddir@&$ac_abs_builddir&;t t
11246 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11247 s&@INSTALL@&$ac_INSTALL&;t t
11248 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11249 $ac_datarootdir_hack
11251 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
11252 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11253 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11254 { (exit 1); exit 1; }; }
11256 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11257 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11258 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11259 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11260 which seems to be undefined. Please make sure it is defined." >&5
11261 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11262 which seems to be undefined. Please make sure it is defined." >&2;}
11264 rm -f "$tmp/stdin"
11265 case $ac_file in
11266 -) cat "$tmp/out" && rm -f "$tmp/out";;
11267 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11268 esac \
11269 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11270 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11271 { (exit 1); exit 1; }; }
11275 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
11276 $as_echo "$as_me: executing $ac_file commands" >&6;}
11278 esac
11281 case $ac_file$ac_mode in
11282 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
11283 # are listed without --file. Let's play safe and only enable the eval
11284 # if we detect the quoting.
11285 case $CONFIG_FILES in
11286 *\'*) eval set x "$CONFIG_FILES" ;;
11287 *) set x $CONFIG_FILES ;;
11288 esac
11289 shift
11290 for mf
11292 # Strip MF so we end up with the name of the file.
11293 mf=`echo "$mf" | sed -e 's/:.*$//'`
11294 # Check whether this is an Automake generated Makefile or not.
11295 # We used to match only the files named `Makefile.in', but
11296 # some people rename them; so instead we look at the file content.
11297 # Grep'ing the first line is not enough: some people post-process
11298 # each Makefile.in and add a new line on top of each file to say so.
11299 # Grep'ing the whole file is not good either: AIX grep has a line
11300 # limit of 2048, but all sed's we know have understand at least 4000.
11301 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11302 dirpart=`$as_dirname -- "$mf" ||
11303 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11304 X"$mf" : 'X\(//\)[^/]' \| \
11305 X"$mf" : 'X\(//\)$' \| \
11306 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11307 $as_echo X"$mf" |
11308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11309 s//\1/
11312 /^X\(\/\/\)[^/].*/{
11313 s//\1/
11316 /^X\(\/\/\)$/{
11317 s//\1/
11320 /^X\(\/\).*/{
11321 s//\1/
11324 s/.*/./; q'`
11325 else
11326 continue
11328 # Extract the definition of DEPDIR, am__include, and am__quote
11329 # from the Makefile without running `make'.
11330 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11331 test -z "$DEPDIR" && continue
11332 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11333 test -z "am__include" && continue
11334 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11335 # When using ansi2knr, U may be empty or an underscore; expand it
11336 U=`sed -n 's/^U = //p' < "$mf"`
11337 # Find all dependency output files, they are included files with
11338 # $(DEPDIR) in their names. We invoke sed twice because it is the
11339 # simplest approach to changing $(DEPDIR) to its actual value in the
11340 # expansion.
11341 for file in `sed -n "
11342 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11343 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11344 # Make sure the directory exists.
11345 test -f "$dirpart/$file" && continue
11346 fdir=`$as_dirname -- "$file" ||
11347 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11348 X"$file" : 'X\(//\)[^/]' \| \
11349 X"$file" : 'X\(//\)$' \| \
11350 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11351 $as_echo X"$file" |
11352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11353 s//\1/
11356 /^X\(\/\/\)[^/].*/{
11357 s//\1/
11360 /^X\(\/\/\)$/{
11361 s//\1/
11364 /^X\(\/\).*/{
11365 s//\1/
11368 s/.*/./; q'`
11369 { as_dir=$dirpart/$fdir
11370 case $as_dir in #(
11371 -*) as_dir=./$as_dir;;
11372 esac
11373 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11374 as_dirs=
11375 while :; do
11376 case $as_dir in #(
11377 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11378 *) as_qdir=$as_dir;;
11379 esac
11380 as_dirs="'$as_qdir' $as_dirs"
11381 as_dir=`$as_dirname -- "$as_dir" ||
11382 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11383 X"$as_dir" : 'X\(//\)[^/]' \| \
11384 X"$as_dir" : 'X\(//\)$' \| \
11385 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11386 $as_echo X"$as_dir" |
11387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11388 s//\1/
11391 /^X\(\/\/\)[^/].*/{
11392 s//\1/
11395 /^X\(\/\/\)$/{
11396 s//\1/
11399 /^X\(\/\).*/{
11400 s//\1/
11403 s/.*/./; q'`
11404 test -d "$as_dir" && break
11405 done
11406 test -z "$as_dirs" || eval "mkdir $as_dirs"
11407 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11408 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
11409 { (exit 1); exit 1; }; }; }
11410 # echo "creating $dirpart/$file"
11411 echo '# dummy' > "$dirpart/$file"
11412 done
11413 done
11415 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
11416 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
11417 esac ;;
11418 "po/stamp-it":C)
11419 if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
11420 { { $as_echo "$as_me:$LINENO: error: po/Makefile.in.in was not created by intltoolize." >&5
11421 $as_echo "$as_me: error: po/Makefile.in.in was not created by intltoolize." >&2;}
11422 { (exit 1); exit 1; }; }
11424 rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
11425 >"po/stamp-it.tmp"
11426 sed '/^#/d
11427 s/^[[].*] *//
11428 /^[ ]*$/d
11429 '"s|^| $ac_top_srcdir/|" \
11430 "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
11432 sed '/^POTFILES =/,/[^\\]$/ {
11433 /^POTFILES =/!d
11434 r po/POTFILES
11436 ' "po/Makefile.in" >"po/Makefile"
11437 rm -f "po/Makefile.tmp"
11438 mv "po/stamp-it.tmp" "po/stamp-it"
11441 esac
11442 done # for ac_tag
11445 { (exit 0); exit 0; }
11446 _ACEOF
11447 chmod +x $CONFIG_STATUS
11448 ac_clean_files=$ac_clean_files_save
11450 test $ac_write_fail = 0 ||
11451 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
11452 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
11453 { (exit 1); exit 1; }; }
11456 # configure is writing to config.log, and then calls config.status.
11457 # config.status does its own redirection, appending to config.log.
11458 # Unfortunately, on DOS this fails, as config.log is still kept open
11459 # by configure, so config.status won't be able to write to it; its
11460 # output is simply discarded. So we exec the FD to /dev/null,
11461 # effectively closing config.log, so it can be properly (re)opened and
11462 # appended to by config.status. When coming back to configure, we
11463 # need to make the FD available again.
11464 if test "$no_create" != yes; then
11465 ac_cs_success=:
11466 ac_config_status_args=
11467 test "$silent" = yes &&
11468 ac_config_status_args="$ac_config_status_args --quiet"
11469 exec 5>/dev/null
11470 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11471 exec 5>>config.log
11472 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11473 # would make configure fail if this is the last instruction.
11474 $ac_cs_success || { (exit 1); exit 1; }
11476 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11477 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11478 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11483 echo "===================================================================="
11484 echo "Configuration succesfully finished"
11486 if test $ENABLE_CAM; then
11487 echo "with (IEEE-1394) camera enabled"
11490 if test $ENABLE_TRIG; then
11491 echo "with (realtime) triggering enabled."
11493 if test x$CONTROL = xfalse ; then
11494 echo "Gpiv_control has not been found on this system, and probably gpivtrig-rtl isn't"
11495 echo "resident as well. This script eases to install and uninstall the gpivtrig-rtl"
11496 echo "and RTAI kernel modules that are needed for the triggering of camera and lasers"
11497 echo ""
11501 if test $ENABLE_MPI; then
11502 echo "Using Message Passing Interface (MPI)."
11503 echo "for processing on distributed memory systems"
11504 echo "MPI-enabled gpivtools package is needed for correct funtioning"
11507 echo "Type 'make' and 'make install' to build and install gpiv"
11508 echo "===================================================================="