bug repair: loading .png image, from Adrian Daerr
[gpiv.git] / configure
blob9342479145d5f3b645431905673b767149e569f6
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for gpiv 0.6.0.
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.0'
600 PACKAGE_STRING='gpiv 0.6.0'
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
656 ALL_LINGUAS
657 INTLTOOL_PERL
658 MSGMERGE
659 INTLTOOL_POLICY_RULE
660 INTLTOOL_SERVICE_RULE
661 INTLTOOL_THEME_RULE
662 INTLTOOL_SCHEMAS_RULE
663 INTLTOOL_CAVES_RULE
664 INTLTOOL_XML_NOMERGE_RULE
665 INTLTOOL_XML_RULE
666 INTLTOOL_KBD_RULE
667 INTLTOOL_XAM_RULE
668 INTLTOOL_UI_RULE
669 INTLTOOL_SOUNDLIST_RULE
670 INTLTOOL_SHEET_RULE
671 INTLTOOL_SERVER_RULE
672 INTLTOOL_PONG_RULE
673 INTLTOOL_OAF_RULE
674 INTLTOOL_PROP_RULE
675 INTLTOOL_KEYS_RULE
676 INTLTOOL_DIRECTORY_RULE
677 INTLTOOL_DESKTOP_RULE
678 INTLTOOL_EXTRACT
679 INTLTOOL_MERGE
680 INTLTOOL_UPDATE
681 MKINSTALLDIRS
682 POSUB
683 POFILES
684 PO_IN_DATADIR_FALSE
685 PO_IN_DATADIR_TRUE
686 INTLLIBS
687 INSTOBJEXT
688 GMOFILES
689 DATADIRNAME
690 CATOBJEXT
691 CATALOGS
692 XGETTEXT
693 GMSGFMT
694 MSGFMT_OPTS
695 MSGFMT
696 USE_NLS
697 GETTEXT_PACKAGE
698 GPIV_LIBS
699 GPIV_CFLAGS
700 GPIV_PRINT_LIBS
701 GPIV_PRINT_CFLAGS
702 GPIV_UI_LIBS
703 GPIV_UI_CFLAGS
704 PKG_CONFIG
705 EGREP
706 GREP
708 am__fastdepCC_FALSE
709 am__fastdepCC_TRUE
710 CCDEPMODE
711 AMDEPBACKSLASH
712 AMDEP_FALSE
713 AMDEP_TRUE
714 am__quote
715 am__include
716 DEPDIR
717 OBJEXT
718 EXEEXT
719 ac_ct_CC
720 CPPFLAGS
721 LDFLAGS
722 CFLAGS
724 MAINT
725 MAINTAINER_MODE_FALSE
726 MAINTAINER_MODE_TRUE
727 am__untar
728 am__tar
729 AMTAR
730 am__leading_dot
731 SET_MAKE
733 mkdir_p
734 MKDIR_P
735 INSTALL_STRIP_PROGRAM
736 STRIP
737 install_sh
738 MAKEINFO
739 AUTOHEADER
740 AUTOMAKE
741 AUTOCONF
742 ACLOCAL
743 VERSION
744 PACKAGE
745 CYGPATH_W
746 am__isrc
747 INSTALL_DATA
748 INSTALL_SCRIPT
749 INSTALL_PROGRAM
750 target_alias
751 host_alias
752 build_alias
753 LIBS
754 ECHO_T
755 ECHO_N
756 ECHO_C
757 DEFS
758 mandir
759 localedir
760 libdir
761 psdir
762 pdfdir
763 dvidir
764 htmldir
765 infodir
766 docdir
767 oldincludedir
768 includedir
769 localstatedir
770 sharedstatedir
771 sysconfdir
772 datadir
773 datarootdir
774 libexecdir
775 sbindir
776 bindir
777 program_transform_name
778 prefix
779 exec_prefix
780 PACKAGE_BUGREPORT
781 PACKAGE_STRING
782 PACKAGE_VERSION
783 PACKAGE_TARNAME
784 PACKAGE_NAME
785 PATH_SEPARATOR
786 SHELL'
787 ac_subst_files=''
788 ac_user_opts='
789 enable_option_checking
790 enable_maintainer_mode
791 enable_dependency_tracking
792 enable_nls
793 enable_mpi
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_PRINT_CFLAGS
816 GPIV_PRINT_LIBS
817 GPIV_CFLAGS
818 GPIV_LIBS'
821 # Initialize some variables set by options.
822 ac_init_help=
823 ac_init_version=false
824 ac_unrecognized_opts=
825 ac_unrecognized_sep=
826 # The variables have the same names as the options, with
827 # dashes changed to underlines.
828 cache_file=/dev/null
829 exec_prefix=NONE
830 no_create=
831 no_recursion=
832 prefix=NONE
833 program_prefix=NONE
834 program_suffix=NONE
835 program_transform_name=s,x,x,
836 silent=
837 site=
838 srcdir=
839 verbose=
840 x_includes=NONE
841 x_libraries=NONE
843 # Installation directory options.
844 # These are left unexpanded so users can "make install exec_prefix=/foo"
845 # and all the variables that are supposed to be based on exec_prefix
846 # by default will actually change.
847 # Use braces instead of parens because sh, perl, etc. also accept them.
848 # (The list follows the same order as the GNU Coding Standards.)
849 bindir='${exec_prefix}/bin'
850 sbindir='${exec_prefix}/sbin'
851 libexecdir='${exec_prefix}/libexec'
852 datarootdir='${prefix}/share'
853 datadir='${datarootdir}'
854 sysconfdir='${prefix}/etc'
855 sharedstatedir='${prefix}/com'
856 localstatedir='${prefix}/var'
857 includedir='${prefix}/include'
858 oldincludedir='/usr/include'
859 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860 infodir='${datarootdir}/info'
861 htmldir='${docdir}'
862 dvidir='${docdir}'
863 pdfdir='${docdir}'
864 psdir='${docdir}'
865 libdir='${exec_prefix}/lib'
866 localedir='${datarootdir}/locale'
867 mandir='${datarootdir}/man'
869 ac_prev=
870 ac_dashdash=
871 for ac_option
873 # If the previous option needs an argument, assign it.
874 if test -n "$ac_prev"; then
875 eval $ac_prev=\$ac_option
876 ac_prev=
877 continue
880 case $ac_option in
881 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882 *) ac_optarg=yes ;;
883 esac
885 # Accept the important Cygnus configure options, so we can diagnose typos.
887 case $ac_dashdash$ac_option in
889 ac_dashdash=yes ;;
891 -bindir | --bindir | --bindi | --bind | --bin | --bi)
892 ac_prev=bindir ;;
893 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894 bindir=$ac_optarg ;;
896 -build | --build | --buil | --bui | --bu)
897 ac_prev=build_alias ;;
898 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899 build_alias=$ac_optarg ;;
901 -cache-file | --cache-file | --cache-fil | --cache-fi \
902 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903 ac_prev=cache_file ;;
904 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906 cache_file=$ac_optarg ;;
908 --config-cache | -C)
909 cache_file=config.cache ;;
911 -datadir | --datadir | --datadi | --datad)
912 ac_prev=datadir ;;
913 -datadir=* | --datadir=* | --datadi=* | --datad=*)
914 datadir=$ac_optarg ;;
916 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917 | --dataroo | --dataro | --datar)
918 ac_prev=datarootdir ;;
919 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921 datarootdir=$ac_optarg ;;
923 -disable-* | --disable-*)
924 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925 # Reject names that are not valid shell variable names.
926 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
928 { (exit 1); exit 1; }; }
929 ac_useropt_orig=$ac_useropt
930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931 case $ac_user_opts in
933 "enable_$ac_useropt"
934 "*) ;;
935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
936 ac_unrecognized_sep=', ';;
937 esac
938 eval enable_$ac_useropt=no ;;
940 -docdir | --docdir | --docdi | --doc | --do)
941 ac_prev=docdir ;;
942 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943 docdir=$ac_optarg ;;
945 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946 ac_prev=dvidir ;;
947 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948 dvidir=$ac_optarg ;;
950 -enable-* | --enable-*)
951 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
955 { (exit 1); exit 1; }; }
956 ac_useropt_orig=$ac_useropt
957 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in
960 "enable_$ac_useropt"
961 "*) ;;
962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
963 ac_unrecognized_sep=', ';;
964 esac
965 eval enable_$ac_useropt=\$ac_optarg ;;
967 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
968 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
969 | --exec | --exe | --ex)
970 ac_prev=exec_prefix ;;
971 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
972 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
973 | --exec=* | --exe=* | --ex=*)
974 exec_prefix=$ac_optarg ;;
976 -gas | --gas | --ga | --g)
977 # Obsolete; use --with-gas.
978 with_gas=yes ;;
980 -help | --help | --hel | --he | -h)
981 ac_init_help=long ;;
982 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
983 ac_init_help=recursive ;;
984 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
985 ac_init_help=short ;;
987 -host | --host | --hos | --ho)
988 ac_prev=host_alias ;;
989 -host=* | --host=* | --hos=* | --ho=*)
990 host_alias=$ac_optarg ;;
992 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
993 ac_prev=htmldir ;;
994 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
995 | --ht=*)
996 htmldir=$ac_optarg ;;
998 -includedir | --includedir | --includedi | --included | --include \
999 | --includ | --inclu | --incl | --inc)
1000 ac_prev=includedir ;;
1001 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1002 | --includ=* | --inclu=* | --incl=* | --inc=*)
1003 includedir=$ac_optarg ;;
1005 -infodir | --infodir | --infodi | --infod | --info | --inf)
1006 ac_prev=infodir ;;
1007 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1008 infodir=$ac_optarg ;;
1010 -libdir | --libdir | --libdi | --libd)
1011 ac_prev=libdir ;;
1012 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1013 libdir=$ac_optarg ;;
1015 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1016 | --libexe | --libex | --libe)
1017 ac_prev=libexecdir ;;
1018 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1019 | --libexe=* | --libex=* | --libe=*)
1020 libexecdir=$ac_optarg ;;
1022 -localedir | --localedir | --localedi | --localed | --locale)
1023 ac_prev=localedir ;;
1024 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1025 localedir=$ac_optarg ;;
1027 -localstatedir | --localstatedir | --localstatedi | --localstated \
1028 | --localstate | --localstat | --localsta | --localst | --locals)
1029 ac_prev=localstatedir ;;
1030 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1031 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1032 localstatedir=$ac_optarg ;;
1034 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1035 ac_prev=mandir ;;
1036 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1037 mandir=$ac_optarg ;;
1039 -nfp | --nfp | --nf)
1040 # Obsolete; use --without-fp.
1041 with_fp=no ;;
1043 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1044 | --no-cr | --no-c | -n)
1045 no_create=yes ;;
1047 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1048 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1049 no_recursion=yes ;;
1051 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1052 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1053 | --oldin | --oldi | --old | --ol | --o)
1054 ac_prev=oldincludedir ;;
1055 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1056 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1057 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1058 oldincludedir=$ac_optarg ;;
1060 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1061 ac_prev=prefix ;;
1062 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1063 prefix=$ac_optarg ;;
1065 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1066 | --program-pre | --program-pr | --program-p)
1067 ac_prev=program_prefix ;;
1068 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1069 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1070 program_prefix=$ac_optarg ;;
1072 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1073 | --program-suf | --program-su | --program-s)
1074 ac_prev=program_suffix ;;
1075 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1076 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1077 program_suffix=$ac_optarg ;;
1079 -program-transform-name | --program-transform-name \
1080 | --program-transform-nam | --program-transform-na \
1081 | --program-transform-n | --program-transform- \
1082 | --program-transform | --program-transfor \
1083 | --program-transfo | --program-transf \
1084 | --program-trans | --program-tran \
1085 | --progr-tra | --program-tr | --program-t)
1086 ac_prev=program_transform_name ;;
1087 -program-transform-name=* | --program-transform-name=* \
1088 | --program-transform-nam=* | --program-transform-na=* \
1089 | --program-transform-n=* | --program-transform-=* \
1090 | --program-transform=* | --program-transfor=* \
1091 | --program-transfo=* | --program-transf=* \
1092 | --program-trans=* | --program-tran=* \
1093 | --progr-tra=* | --program-tr=* | --program-t=*)
1094 program_transform_name=$ac_optarg ;;
1096 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1097 ac_prev=pdfdir ;;
1098 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1099 pdfdir=$ac_optarg ;;
1101 -psdir | --psdir | --psdi | --psd | --ps)
1102 ac_prev=psdir ;;
1103 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1104 psdir=$ac_optarg ;;
1106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1107 | -silent | --silent | --silen | --sile | --sil)
1108 silent=yes ;;
1110 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1111 ac_prev=sbindir ;;
1112 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1113 | --sbi=* | --sb=*)
1114 sbindir=$ac_optarg ;;
1116 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1117 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1118 | --sharedst | --shareds | --shared | --share | --shar \
1119 | --sha | --sh)
1120 ac_prev=sharedstatedir ;;
1121 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1122 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1123 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1124 | --sha=* | --sh=*)
1125 sharedstatedir=$ac_optarg ;;
1127 -site | --site | --sit)
1128 ac_prev=site ;;
1129 -site=* | --site=* | --sit=*)
1130 site=$ac_optarg ;;
1132 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1133 ac_prev=srcdir ;;
1134 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1135 srcdir=$ac_optarg ;;
1137 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1138 | --syscon | --sysco | --sysc | --sys | --sy)
1139 ac_prev=sysconfdir ;;
1140 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1141 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1142 sysconfdir=$ac_optarg ;;
1144 -target | --target | --targe | --targ | --tar | --ta | --t)
1145 ac_prev=target_alias ;;
1146 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1147 target_alias=$ac_optarg ;;
1149 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1150 verbose=yes ;;
1152 -version | --version | --versio | --versi | --vers | -V)
1153 ac_init_version=: ;;
1155 -with-* | --with-*)
1156 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1160 { (exit 1); exit 1; }; }
1161 ac_useropt_orig=$ac_useropt
1162 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1163 case $ac_user_opts in
1165 "with_$ac_useropt"
1166 "*) ;;
1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1168 ac_unrecognized_sep=', ';;
1169 esac
1170 eval with_$ac_useropt=\$ac_optarg ;;
1172 -without-* | --without-*)
1173 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1177 { (exit 1); exit 1; }; }
1178 ac_useropt_orig=$ac_useropt
1179 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180 case $ac_user_opts in
1182 "with_$ac_useropt"
1183 "*) ;;
1184 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1185 ac_unrecognized_sep=', ';;
1186 esac
1187 eval with_$ac_useropt=no ;;
1189 --x)
1190 # Obsolete; use --with-x.
1191 with_x=yes ;;
1193 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1194 | --x-incl | --x-inc | --x-in | --x-i)
1195 ac_prev=x_includes ;;
1196 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1197 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1198 x_includes=$ac_optarg ;;
1200 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1201 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1202 ac_prev=x_libraries ;;
1203 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1204 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1205 x_libraries=$ac_optarg ;;
1207 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1208 Try \`$0 --help' for more information." >&2
1209 { (exit 1); exit 1; }; }
1212 *=*)
1213 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1216 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1217 { (exit 1); exit 1; }; }
1218 eval $ac_envvar=\$ac_optarg
1219 export $ac_envvar ;;
1222 # FIXME: should be removed in autoconf 3.0.
1223 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1224 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1225 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1226 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1229 esac
1230 done
1232 if test -n "$ac_prev"; then
1233 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1234 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1235 { (exit 1); exit 1; }; }
1238 if test -n "$ac_unrecognized_opts"; then
1239 case $enable_option_checking in
1240 no) ;;
1241 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1242 { (exit 1); exit 1; }; } ;;
1243 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1244 esac
1247 # Check all directory arguments for consistency.
1248 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1249 datadir sysconfdir sharedstatedir localstatedir includedir \
1250 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1251 libdir localedir mandir
1253 eval ac_val=\$$ac_var
1254 # Remove trailing slashes.
1255 case $ac_val in
1256 */ )
1257 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1258 eval $ac_var=\$ac_val;;
1259 esac
1260 # Be sure to have absolute directory names.
1261 case $ac_val in
1262 [\\/$]* | ?:[\\/]* ) continue;;
1263 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1264 esac
1265 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1266 { (exit 1); exit 1; }; }
1267 done
1269 # There might be people who depend on the old broken behavior: `$host'
1270 # used to hold the argument of --host etc.
1271 # FIXME: To remove some day.
1272 build=$build_alias
1273 host=$host_alias
1274 target=$target_alias
1276 # FIXME: To remove some day.
1277 if test "x$host_alias" != x; then
1278 if test "x$build_alias" = x; then
1279 cross_compiling=maybe
1280 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1281 If a cross compiler is detected then cross compile mode will be used." >&2
1282 elif test "x$build_alias" != "x$host_alias"; then
1283 cross_compiling=yes
1287 ac_tool_prefix=
1288 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1290 test "$silent" = yes && exec 6>/dev/null
1293 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1294 ac_ls_di=`ls -di .` &&
1295 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1296 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1297 { (exit 1); exit 1; }; }
1298 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1299 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1300 { (exit 1); exit 1; }; }
1303 # Find the source files, if location was not specified.
1304 if test -z "$srcdir"; then
1305 ac_srcdir_defaulted=yes
1306 # Try the directory containing this script, then the parent directory.
1307 ac_confdir=`$as_dirname -- "$as_myself" ||
1308 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1309 X"$as_myself" : 'X\(//\)[^/]' \| \
1310 X"$as_myself" : 'X\(//\)$' \| \
1311 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1312 $as_echo X"$as_myself" |
1313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1314 s//\1/
1317 /^X\(\/\/\)[^/].*/{
1318 s//\1/
1321 /^X\(\/\/\)$/{
1322 s//\1/
1325 /^X\(\/\).*/{
1326 s//\1/
1329 s/.*/./; q'`
1330 srcdir=$ac_confdir
1331 if test ! -r "$srcdir/$ac_unique_file"; then
1332 srcdir=..
1334 else
1335 ac_srcdir_defaulted=no
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1338 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1339 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1340 { (exit 1); exit 1; }; }
1342 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1343 ac_abs_confdir=`(
1344 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1345 { (exit 1); exit 1; }; }
1346 pwd)`
1347 # When building in place, set srcdir=.
1348 if test "$ac_abs_confdir" = "$ac_pwd"; then
1349 srcdir=.
1351 # Remove unnecessary trailing slashes from srcdir.
1352 # Double slashes in file names in object file debugging info
1353 # mess up M-x gdb in Emacs.
1354 case $srcdir in
1355 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1356 esac
1357 for ac_var in $ac_precious_vars; do
1358 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_env_${ac_var}_value=\$${ac_var}
1360 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1362 done
1365 # Report the --help message.
1367 if test "$ac_init_help" = "long"; then
1368 # Omit some internal or obsolete options to make the list less imposing.
1369 # This message is too long to be a string in the A/UX 3.1 sh.
1370 cat <<_ACEOF
1371 \`configure' configures gpiv 0.6.0 to adapt to many kinds of systems.
1373 Usage: $0 [OPTION]... [VAR=VALUE]...
1375 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1376 VAR=VALUE. See below for descriptions of some of the useful variables.
1378 Defaults for the options are specified in brackets.
1380 Configuration:
1381 -h, --help display this help and exit
1382 --help=short display options specific to this package
1383 --help=recursive display the short help of all the included packages
1384 -V, --version display version information and exit
1385 -q, --quiet, --silent do not print \`checking...' messages
1386 --cache-file=FILE cache test results in FILE [disabled]
1387 -C, --config-cache alias for \`--cache-file=config.cache'
1388 -n, --no-create do not create output files
1389 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1391 Installation directories:
1392 --prefix=PREFIX install architecture-independent files in PREFIX
1393 [$ac_default_prefix]
1394 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1395 [PREFIX]
1397 By default, \`make install' will install all the files in
1398 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1399 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1400 for instance \`--prefix=\$HOME'.
1402 For better control, use the options below.
1404 Fine tuning of the installation directories:
1405 --bindir=DIR user executables [EPREFIX/bin]
1406 --sbindir=DIR system admin executables [EPREFIX/sbin]
1407 --libexecdir=DIR program executables [EPREFIX/libexec]
1408 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1409 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1410 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1411 --libdir=DIR object code libraries [EPREFIX/lib]
1412 --includedir=DIR C header files [PREFIX/include]
1413 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1414 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1415 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1416 --infodir=DIR info documentation [DATAROOTDIR/info]
1417 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1418 --mandir=DIR man documentation [DATAROOTDIR/man]
1419 --docdir=DIR documentation root [DATAROOTDIR/doc/gpiv]
1420 --htmldir=DIR html documentation [DOCDIR]
1421 --dvidir=DIR dvi documentation [DOCDIR]
1422 --pdfdir=DIR pdf documentation [DOCDIR]
1423 --psdir=DIR ps documentation [DOCDIR]
1424 _ACEOF
1426 cat <<\_ACEOF
1428 Program names:
1429 --program-prefix=PREFIX prepend PREFIX to installed program names
1430 --program-suffix=SUFFIX append SUFFIX to installed program names
1431 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1432 _ACEOF
1435 if test -n "$ac_init_help"; then
1436 case $ac_init_help in
1437 short | recursive ) echo "Configuration of gpiv 0.6.0:";;
1438 esac
1439 cat <<\_ACEOF
1441 Optional Features:
1442 --disable-option-checking ignore unrecognized --enable/--with options
1443 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1444 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1445 --enable-maintainer-mode enable make rules and dependencies not useful
1446 (and sometimes confusing) to the casual installer
1447 --disable-dependency-tracking speeds up one-time build
1448 --enable-dependency-tracking do not reject slow dependency extractors
1449 --disable-nls do not use Native Language Support
1450 --enable-mpi enable Message Protocol Interface (MPI)
1451 --enable-cam enable data acquisition
1452 --enable-trig enable (realtime) triggering
1453 --enable-rta=RTA_DIR place where the RTAI code resides
1454 (default /usr/lib/realtime)
1455 --enable-k=K_DIR place where the installed kernel
1456 headers resides
1457 (default /usr/src/kernel-headers-2.4.27-adeos)
1458 --enable-img-width=WIDTH maximum image width to be used (default SVGA)
1459 --enable-img-height=HEIGHT maximum image height to be used (default SVGA)
1460 --enable-canvas-aa Use Anti Aliased canvas for viewer; slower but
1461 better displaying of image and resulting data
1462 --enable-debug debug version (more verbose)
1464 Some influential environment variables:
1465 CC C compiler command
1466 CFLAGS C compiler flags
1467 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1468 nonstandard directory <lib dir>
1469 LIBS libraries to pass to the linker, e.g. -l<library>
1470 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1471 you have headers in a nonstandard directory <include dir>
1472 CPP C preprocessor
1473 PKG_CONFIG path to pkg-config utility
1474 GPIV_UI_CFLAGS
1475 C compiler flags for GPIV_UI, overriding pkg-config
1476 GPIV_UI_LIBS
1477 linker flags for GPIV_UI, overriding pkg-config
1478 GPIV_PRINT_CFLAGS
1479 C compiler flags for GPIV_PRINT, overriding pkg-config
1480 GPIV_PRINT_LIBS
1481 linker flags for GPIV_PRINT, overriding pkg-config
1482 GPIV_CFLAGS C compiler flags for GPIV, overriding pkg-config
1483 GPIV_LIBS linker flags for GPIV, overriding pkg-config
1485 Use these variables to override the choices made by `configure' or to help
1486 it to find libraries and programs with nonstandard names/locations.
1488 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gpiv>.
1489 _ACEOF
1490 ac_status=$?
1493 if test "$ac_init_help" = "recursive"; then
1494 # If there are subdirs, report their specific --help.
1495 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1496 test -d "$ac_dir" ||
1497 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1498 continue
1499 ac_builddir=.
1501 case "$ac_dir" in
1502 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1505 # A ".." for each directory in $ac_dir_suffix.
1506 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1507 case $ac_top_builddir_sub in
1508 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1510 esac ;;
1511 esac
1512 ac_abs_top_builddir=$ac_pwd
1513 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1514 # for backward compatibility:
1515 ac_top_builddir=$ac_top_build_prefix
1517 case $srcdir in
1518 .) # We are building in place.
1519 ac_srcdir=.
1520 ac_top_srcdir=$ac_top_builddir_sub
1521 ac_abs_top_srcdir=$ac_pwd ;;
1522 [\\/]* | ?:[\\/]* ) # Absolute name.
1523 ac_srcdir=$srcdir$ac_dir_suffix;
1524 ac_top_srcdir=$srcdir
1525 ac_abs_top_srcdir=$srcdir ;;
1526 *) # Relative name.
1527 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1528 ac_top_srcdir=$ac_top_build_prefix$srcdir
1529 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1530 esac
1531 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1533 cd "$ac_dir" || { ac_status=$?; continue; }
1534 # Check for guested configure.
1535 if test -f "$ac_srcdir/configure.gnu"; then
1536 echo &&
1537 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1538 elif test -f "$ac_srcdir/configure"; then
1539 echo &&
1540 $SHELL "$ac_srcdir/configure" --help=recursive
1541 else
1542 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1543 fi || ac_status=$?
1544 cd "$ac_pwd" || { ac_status=$?; break; }
1545 done
1548 test -n "$ac_init_help" && exit $ac_status
1549 if $ac_init_version; then
1550 cat <<\_ACEOF
1551 gpiv configure 0.6.0
1552 generated by GNU Autoconf 2.63
1554 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1555 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1556 This configure script is free software; the Free Software Foundation
1557 gives unlimited permission to copy, distribute and modify it.
1558 _ACEOF
1559 exit
1561 cat >config.log <<_ACEOF
1562 This file contains any messages produced by compilers while
1563 running configure, to aid debugging if configure makes a mistake.
1565 It was created by gpiv $as_me 0.6.0, which was
1566 generated by GNU Autoconf 2.63. Invocation command line was
1568 $ $0 $@
1570 _ACEOF
1571 exec 5>>config.log
1573 cat <<_ASUNAME
1574 ## --------- ##
1575 ## Platform. ##
1576 ## --------- ##
1578 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1579 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1580 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1581 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1582 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1584 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1585 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1587 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1588 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1589 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1590 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1591 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1592 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1593 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1595 _ASUNAME
1597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1598 for as_dir in $PATH
1600 IFS=$as_save_IFS
1601 test -z "$as_dir" && as_dir=.
1602 $as_echo "PATH: $as_dir"
1603 done
1604 IFS=$as_save_IFS
1606 } >&5
1608 cat >&5 <<_ACEOF
1611 ## ----------- ##
1612 ## Core tests. ##
1613 ## ----------- ##
1615 _ACEOF
1618 # Keep a trace of the command line.
1619 # Strip out --no-create and --no-recursion so they do not pile up.
1620 # Strip out --silent because we don't want to record it for future runs.
1621 # Also quote any args containing shell meta-characters.
1622 # Make two passes to allow for proper duplicate-argument suppression.
1623 ac_configure_args=
1624 ac_configure_args0=
1625 ac_configure_args1=
1626 ac_must_keep_next=false
1627 for ac_pass in 1 2
1629 for ac_arg
1631 case $ac_arg in
1632 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1633 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1634 | -silent | --silent | --silen | --sile | --sil)
1635 continue ;;
1636 *\'*)
1637 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1638 esac
1639 case $ac_pass in
1640 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1642 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1643 if test $ac_must_keep_next = true; then
1644 ac_must_keep_next=false # Got value, back to normal.
1645 else
1646 case $ac_arg in
1647 *=* | --config-cache | -C | -disable-* | --disable-* \
1648 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1649 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1650 | -with-* | --with-* | -without-* | --without-* | --x)
1651 case "$ac_configure_args0 " in
1652 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1653 esac
1655 -* ) ac_must_keep_next=true ;;
1656 esac
1658 ac_configure_args="$ac_configure_args '$ac_arg'"
1660 esac
1661 done
1662 done
1663 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1664 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1666 # When interrupted or exit'd, cleanup temporary files, and complete
1667 # config.log. We remove comments because anyway the quotes in there
1668 # would cause problems or look ugly.
1669 # WARNING: Use '\'' to represent an apostrophe within the trap.
1670 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1671 trap 'exit_status=$?
1672 # Save into config.log some information that might help in debugging.
1674 echo
1676 cat <<\_ASBOX
1677 ## ---------------- ##
1678 ## Cache variables. ##
1679 ## ---------------- ##
1680 _ASBOX
1681 echo
1682 # The following way of writing the cache mishandles newlines in values,
1684 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1685 eval ac_val=\$$ac_var
1686 case $ac_val in #(
1687 *${as_nl}*)
1688 case $ac_var in #(
1689 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1690 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1691 esac
1692 case $ac_var in #(
1693 _ | IFS | as_nl) ;; #(
1694 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1695 *) $as_unset $ac_var ;;
1696 esac ;;
1697 esac
1698 done
1699 (set) 2>&1 |
1700 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1701 *${as_nl}ac_space=\ *)
1702 sed -n \
1703 "s/'\''/'\''\\\\'\'''\''/g;
1704 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1705 ;; #(
1707 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1709 esac |
1710 sort
1712 echo
1714 cat <<\_ASBOX
1715 ## ----------------- ##
1716 ## Output variables. ##
1717 ## ----------------- ##
1718 _ASBOX
1719 echo
1720 for ac_var in $ac_subst_vars
1722 eval ac_val=\$$ac_var
1723 case $ac_val in
1724 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1725 esac
1726 $as_echo "$ac_var='\''$ac_val'\''"
1727 done | sort
1728 echo
1730 if test -n "$ac_subst_files"; then
1731 cat <<\_ASBOX
1732 ## ------------------- ##
1733 ## File substitutions. ##
1734 ## ------------------- ##
1735 _ASBOX
1736 echo
1737 for ac_var in $ac_subst_files
1739 eval ac_val=\$$ac_var
1740 case $ac_val in
1741 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1742 esac
1743 $as_echo "$ac_var='\''$ac_val'\''"
1744 done | sort
1745 echo
1748 if test -s confdefs.h; then
1749 cat <<\_ASBOX
1750 ## ----------- ##
1751 ## confdefs.h. ##
1752 ## ----------- ##
1753 _ASBOX
1754 echo
1755 cat confdefs.h
1756 echo
1758 test "$ac_signal" != 0 &&
1759 $as_echo "$as_me: caught signal $ac_signal"
1760 $as_echo "$as_me: exit $exit_status"
1761 } >&5
1762 rm -f core *.core core.conftest.* &&
1763 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1764 exit $exit_status
1766 for ac_signal in 1 2 13 15; do
1767 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1768 done
1769 ac_signal=0
1771 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1772 rm -f -r conftest* confdefs.h
1774 # Predefined preprocessor variables.
1776 cat >>confdefs.h <<_ACEOF
1777 #define PACKAGE_NAME "$PACKAGE_NAME"
1778 _ACEOF
1781 cat >>confdefs.h <<_ACEOF
1782 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1783 _ACEOF
1786 cat >>confdefs.h <<_ACEOF
1787 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1788 _ACEOF
1791 cat >>confdefs.h <<_ACEOF
1792 #define PACKAGE_STRING "$PACKAGE_STRING"
1793 _ACEOF
1796 cat >>confdefs.h <<_ACEOF
1797 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1798 _ACEOF
1801 # Let the site file select an alternate cache file if it wants to.
1802 # Prefer an explicitly selected file to automatically selected ones.
1803 ac_site_file1=NONE
1804 ac_site_file2=NONE
1805 if test -n "$CONFIG_SITE"; then
1806 ac_site_file1=$CONFIG_SITE
1807 elif test "x$prefix" != xNONE; then
1808 ac_site_file1=$prefix/share/config.site
1809 ac_site_file2=$prefix/etc/config.site
1810 else
1811 ac_site_file1=$ac_default_prefix/share/config.site
1812 ac_site_file2=$ac_default_prefix/etc/config.site
1814 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1816 test "x$ac_site_file" = xNONE && continue
1817 if test -r "$ac_site_file"; then
1818 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1819 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1820 sed 's/^/| /' "$ac_site_file" >&5
1821 . "$ac_site_file"
1823 done
1825 if test -r "$cache_file"; then
1826 # Some versions of bash will fail to source /dev/null (special
1827 # files actually), so we avoid doing that.
1828 if test -f "$cache_file"; then
1829 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1830 $as_echo "$as_me: loading cache $cache_file" >&6;}
1831 case $cache_file in
1832 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1833 *) . "./$cache_file";;
1834 esac
1836 else
1837 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1838 $as_echo "$as_me: creating cache $cache_file" >&6;}
1839 >$cache_file
1842 # Check that the precious variables saved in the cache have kept the same
1843 # value.
1844 ac_cache_corrupted=false
1845 for ac_var in $ac_precious_vars; do
1846 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1847 eval ac_new_set=\$ac_env_${ac_var}_set
1848 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1849 eval ac_new_val=\$ac_env_${ac_var}_value
1850 case $ac_old_set,$ac_new_set in
1851 set,)
1852 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1853 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1854 ac_cache_corrupted=: ;;
1855 ,set)
1856 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1857 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1858 ac_cache_corrupted=: ;;
1859 ,);;
1861 if test "x$ac_old_val" != "x$ac_new_val"; then
1862 # differences in whitespace do not lead to failure.
1863 ac_old_val_w=`echo x $ac_old_val`
1864 ac_new_val_w=`echo x $ac_new_val`
1865 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1866 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1867 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1868 ac_cache_corrupted=:
1869 else
1870 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1871 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1872 eval $ac_var=\$ac_old_val
1874 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1875 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1876 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1877 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1878 fi;;
1879 esac
1880 # Pass precious variables to config.status.
1881 if test "$ac_new_set" = set; then
1882 case $ac_new_val in
1883 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1884 *) ac_arg=$ac_var=$ac_new_val ;;
1885 esac
1886 case " $ac_configure_args " in
1887 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1888 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1889 esac
1891 done
1892 if $ac_cache_corrupted; then
1893 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1895 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1896 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1897 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1898 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1899 { (exit 1); exit 1; }; }
1926 ac_ext=c
1927 ac_cpp='$CPP $CPPFLAGS'
1928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1933 am__api_version='1.10'
1935 ac_aux_dir=
1936 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1937 if test -f "$ac_dir/install-sh"; then
1938 ac_aux_dir=$ac_dir
1939 ac_install_sh="$ac_aux_dir/install-sh -c"
1940 break
1941 elif test -f "$ac_dir/install.sh"; then
1942 ac_aux_dir=$ac_dir
1943 ac_install_sh="$ac_aux_dir/install.sh -c"
1944 break
1945 elif test -f "$ac_dir/shtool"; then
1946 ac_aux_dir=$ac_dir
1947 ac_install_sh="$ac_aux_dir/shtool install -c"
1948 break
1950 done
1951 if test -z "$ac_aux_dir"; then
1952 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1953 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1954 { (exit 1); exit 1; }; }
1957 # These three variables are undocumented and unsupported,
1958 # and are intended to be withdrawn in a future Autoconf release.
1959 # They can cause serious problems if a builder's source tree is in a directory
1960 # whose full name contains unusual characters.
1961 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1962 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1963 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1966 # Find a good install program. We prefer a C program (faster),
1967 # so one script is as good as another. But avoid the broken or
1968 # incompatible versions:
1969 # SysV /etc/install, /usr/sbin/install
1970 # SunOS /usr/etc/install
1971 # IRIX /sbin/install
1972 # AIX /bin/install
1973 # AmigaOS /C/install, which installs bootblocks on floppy discs
1974 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1975 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1976 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1977 # OS/2's system install, which has a completely different semantic
1978 # ./install, which can be erroneously created by make from ./install.sh.
1979 # Reject install programs that cannot install multiple files.
1980 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1981 $as_echo_n "checking for a BSD-compatible install... " >&6; }
1982 if test -z "$INSTALL"; then
1983 if test "${ac_cv_path_install+set}" = set; then
1984 $as_echo_n "(cached) " >&6
1985 else
1986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987 for as_dir in $PATH
1989 IFS=$as_save_IFS
1990 test -z "$as_dir" && as_dir=.
1991 # Account for people who put trailing slashes in PATH elements.
1992 case $as_dir/ in
1993 ./ | .// | /cC/* | \
1994 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1995 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1996 /usr/ucb/* ) ;;
1998 # OSF1 and SCO ODT 3.0 have their own names for install.
1999 # Don't use installbsd from OSF since it installs stuff as root
2000 # by default.
2001 for ac_prog in ginstall scoinst install; do
2002 for ac_exec_ext in '' $ac_executable_extensions; do
2003 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2004 if test $ac_prog = install &&
2005 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2006 # AIX install. It has an incompatible calling convention.
2008 elif test $ac_prog = install &&
2009 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2010 # program-specific install script used by HP pwplus--don't use.
2012 else
2013 rm -rf conftest.one conftest.two conftest.dir
2014 echo one > conftest.one
2015 echo two > conftest.two
2016 mkdir conftest.dir
2017 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2018 test -s conftest.one && test -s conftest.two &&
2019 test -s conftest.dir/conftest.one &&
2020 test -s conftest.dir/conftest.two
2021 then
2022 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2023 break 3
2027 done
2028 done
2030 esac
2032 done
2033 IFS=$as_save_IFS
2035 rm -rf conftest.one conftest.two conftest.dir
2038 if test "${ac_cv_path_install+set}" = set; then
2039 INSTALL=$ac_cv_path_install
2040 else
2041 # As a last resort, use the slow shell script. Don't cache a
2042 # value for INSTALL within a source directory, because that will
2043 # break other packages using the cache if that directory is
2044 # removed, or if the value is a relative name.
2045 INSTALL=$ac_install_sh
2048 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2049 $as_echo "$INSTALL" >&6; }
2051 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2052 # It thinks the first close brace ends the variable substitution.
2053 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2055 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2057 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2059 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2060 $as_echo_n "checking whether build environment is sane... " >&6; }
2061 # Just in case
2062 sleep 1
2063 echo timestamp > conftest.file
2064 # Do `set' in a subshell so we don't clobber the current shell's
2065 # arguments. Must try -L first in case configure is actually a
2066 # symlink; some systems play weird games with the mod time of symlinks
2067 # (eg FreeBSD returns the mod time of the symlink's containing
2068 # directory).
2069 if (
2070 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2071 if test "$*" = "X"; then
2072 # -L didn't work.
2073 set X `ls -t $srcdir/configure conftest.file`
2075 rm -f conftest.file
2076 if test "$*" != "X $srcdir/configure conftest.file" \
2077 && test "$*" != "X conftest.file $srcdir/configure"; then
2079 # If neither matched, then we have a broken ls. This can happen
2080 # if, for instance, CONFIG_SHELL is bash and it inherits a
2081 # broken ls alias from the environment. This has actually
2082 # happened. Such a system could not be considered "sane".
2083 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2084 alias in your environment" >&5
2085 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2086 alias in your environment" >&2;}
2087 { (exit 1); exit 1; }; }
2090 test "$2" = conftest.file
2092 then
2093 # Ok.
2095 else
2096 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2097 Check your system clock" >&5
2098 $as_echo "$as_me: error: newly created file is older than distributed files!
2099 Check your system clock" >&2;}
2100 { (exit 1); exit 1; }; }
2102 { $as_echo "$as_me:$LINENO: result: yes" >&5
2103 $as_echo "yes" >&6; }
2104 test "$program_prefix" != NONE &&
2105 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2106 # Use a double $ so make ignores it.
2107 test "$program_suffix" != NONE &&
2108 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2109 # Double any \ or $.
2110 # By default was `s,x,x', remove it if useless.
2111 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2112 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2114 # expand $ac_aux_dir to an absolute path
2115 am_aux_dir=`cd $ac_aux_dir && pwd`
2117 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2118 # Use eval to expand $SHELL
2119 if eval "$MISSING --run true"; then
2120 am_missing_run="$MISSING --run "
2121 else
2122 am_missing_run=
2123 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2124 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2127 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2128 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2129 if test -z "$MKDIR_P"; then
2130 if test "${ac_cv_path_mkdir+set}" = set; then
2131 $as_echo_n "(cached) " >&6
2132 else
2133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2136 IFS=$as_save_IFS
2137 test -z "$as_dir" && as_dir=.
2138 for ac_prog in mkdir gmkdir; do
2139 for ac_exec_ext in '' $ac_executable_extensions; do
2140 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2141 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2142 'mkdir (GNU coreutils) '* | \
2143 'mkdir (coreutils) '* | \
2144 'mkdir (fileutils) '4.1*)
2145 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2146 break 3;;
2147 esac
2148 done
2149 done
2150 done
2151 IFS=$as_save_IFS
2155 if test "${ac_cv_path_mkdir+set}" = set; then
2156 MKDIR_P="$ac_cv_path_mkdir -p"
2157 else
2158 # As a last resort, use the slow shell script. Don't cache a
2159 # value for MKDIR_P within a source directory, because that will
2160 # break other packages using the cache if that directory is
2161 # removed, or if the value is a relative name.
2162 test -d ./--version && rmdir ./--version
2163 MKDIR_P="$ac_install_sh -d"
2166 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2167 $as_echo "$MKDIR_P" >&6; }
2169 mkdir_p="$MKDIR_P"
2170 case $mkdir_p in
2171 [\\/$]* | ?:[\\/]*) ;;
2172 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2173 esac
2175 for ac_prog in gawk mawk nawk awk
2177 # Extract the first word of "$ac_prog", so it can be a program name with args.
2178 set dummy $ac_prog; ac_word=$2
2179 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2180 $as_echo_n "checking for $ac_word... " >&6; }
2181 if test "${ac_cv_prog_AWK+set}" = set; then
2182 $as_echo_n "(cached) " >&6
2183 else
2184 if test -n "$AWK"; then
2185 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2186 else
2187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2188 for as_dir in $PATH
2190 IFS=$as_save_IFS
2191 test -z "$as_dir" && as_dir=.
2192 for ac_exec_ext in '' $ac_executable_extensions; do
2193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2194 ac_cv_prog_AWK="$ac_prog"
2195 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2196 break 2
2198 done
2199 done
2200 IFS=$as_save_IFS
2204 AWK=$ac_cv_prog_AWK
2205 if test -n "$AWK"; then
2206 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2207 $as_echo "$AWK" >&6; }
2208 else
2209 { $as_echo "$as_me:$LINENO: result: no" >&5
2210 $as_echo "no" >&6; }
2214 test -n "$AWK" && break
2215 done
2217 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2218 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2219 set x ${MAKE-make}
2220 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2221 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2222 $as_echo_n "(cached) " >&6
2223 else
2224 cat >conftest.make <<\_ACEOF
2225 SHELL = /bin/sh
2226 all:
2227 @echo '@@@%%%=$(MAKE)=@@@%%%'
2228 _ACEOF
2229 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2230 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2231 *@@@%%%=?*=@@@%%%*)
2232 eval ac_cv_prog_make_${ac_make}_set=yes;;
2234 eval ac_cv_prog_make_${ac_make}_set=no;;
2235 esac
2236 rm -f conftest.make
2238 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2239 { $as_echo "$as_me:$LINENO: result: yes" >&5
2240 $as_echo "yes" >&6; }
2241 SET_MAKE=
2242 else
2243 { $as_echo "$as_me:$LINENO: result: no" >&5
2244 $as_echo "no" >&6; }
2245 SET_MAKE="MAKE=${MAKE-make}"
2248 rm -rf .tst 2>/dev/null
2249 mkdir .tst 2>/dev/null
2250 if test -d .tst; then
2251 am__leading_dot=.
2252 else
2253 am__leading_dot=_
2255 rmdir .tst 2>/dev/null
2257 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2258 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2259 # is not polluted with repeated "-I."
2260 am__isrc=' -I$(srcdir)'
2261 # test to see if srcdir already configured
2262 if test -f $srcdir/config.status; then
2263 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2264 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2265 { (exit 1); exit 1; }; }
2269 # test whether we have cygpath
2270 if test -z "$CYGPATH_W"; then
2271 if (cygpath --version) >/dev/null 2>/dev/null; then
2272 CYGPATH_W='cygpath -w'
2273 else
2274 CYGPATH_W=echo
2279 # Define the identity of the package.
2280 PACKAGE=gpiv
2281 VERSION=0.6.0
2284 cat >>confdefs.h <<_ACEOF
2285 #define PACKAGE "$PACKAGE"
2286 _ACEOF
2289 cat >>confdefs.h <<_ACEOF
2290 #define VERSION "$VERSION"
2291 _ACEOF
2293 # Some tools Automake needs.
2295 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2298 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2301 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2304 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2307 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2309 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2311 # Installed binaries are usually stripped using `strip' when the user
2312 # run `make install-strip'. However `strip' might not be the right
2313 # tool to use in cross-compilation environments, therefore Automake
2314 # will honor the `STRIP' environment variable to overrule this program.
2315 if test "$cross_compiling" != no; then
2316 if test -n "$ac_tool_prefix"; then
2317 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2318 set dummy ${ac_tool_prefix}strip; ac_word=$2
2319 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2320 $as_echo_n "checking for $ac_word... " >&6; }
2321 if test "${ac_cv_prog_STRIP+set}" = set; then
2322 $as_echo_n "(cached) " >&6
2323 else
2324 if test -n "$STRIP"; then
2325 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2326 else
2327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2328 for as_dir in $PATH
2330 IFS=$as_save_IFS
2331 test -z "$as_dir" && as_dir=.
2332 for ac_exec_ext in '' $ac_executable_extensions; do
2333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2334 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2335 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2336 break 2
2338 done
2339 done
2340 IFS=$as_save_IFS
2344 STRIP=$ac_cv_prog_STRIP
2345 if test -n "$STRIP"; then
2346 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2347 $as_echo "$STRIP" >&6; }
2348 else
2349 { $as_echo "$as_me:$LINENO: result: no" >&5
2350 $as_echo "no" >&6; }
2355 if test -z "$ac_cv_prog_STRIP"; then
2356 ac_ct_STRIP=$STRIP
2357 # Extract the first word of "strip", so it can be a program name with args.
2358 set dummy strip; ac_word=$2
2359 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2360 $as_echo_n "checking for $ac_word... " >&6; }
2361 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2362 $as_echo_n "(cached) " >&6
2363 else
2364 if test -n "$ac_ct_STRIP"; then
2365 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2366 else
2367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2368 for as_dir in $PATH
2370 IFS=$as_save_IFS
2371 test -z "$as_dir" && as_dir=.
2372 for ac_exec_ext in '' $ac_executable_extensions; do
2373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2374 ac_cv_prog_ac_ct_STRIP="strip"
2375 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2376 break 2
2378 done
2379 done
2380 IFS=$as_save_IFS
2384 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2385 if test -n "$ac_ct_STRIP"; then
2386 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2387 $as_echo "$ac_ct_STRIP" >&6; }
2388 else
2389 { $as_echo "$as_me:$LINENO: result: no" >&5
2390 $as_echo "no" >&6; }
2393 if test "x$ac_ct_STRIP" = x; then
2394 STRIP=":"
2395 else
2396 case $cross_compiling:$ac_tool_warned in
2397 yes:)
2398 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2400 ac_tool_warned=yes ;;
2401 esac
2402 STRIP=$ac_ct_STRIP
2404 else
2405 STRIP="$ac_cv_prog_STRIP"
2409 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2411 # We need awk for the "check" target. The system "awk" is bad on
2412 # some platforms.
2413 # Always define AMTAR for backward compatibility.
2415 AMTAR=${AMTAR-"${am_missing_run}tar"}
2417 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2423 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2424 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2425 # Check whether --enable-maintainer-mode was given.
2426 if test "${enable_maintainer_mode+set}" = set; then
2427 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2428 else
2429 USE_MAINTAINER_MODE=no
2432 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2433 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2434 if test $USE_MAINTAINER_MODE = yes; then
2435 MAINTAINER_MODE_TRUE=
2436 MAINTAINER_MODE_FALSE='#'
2437 else
2438 MAINTAINER_MODE_TRUE='#'
2439 MAINTAINER_MODE_FALSE=
2442 MAINT=$MAINTAINER_MODE_TRUE
2447 DEPDIR="${am__leading_dot}deps"
2449 ac_config_commands="$ac_config_commands depfiles"
2452 am_make=${MAKE-make}
2453 cat > confinc << 'END'
2454 am__doit:
2455 @echo done
2456 .PHONY: am__doit
2458 # If we don't find an include directive, just comment out the code.
2459 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2460 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2461 am__include="#"
2462 am__quote=
2463 _am_result=none
2464 # First try GNU make style include.
2465 echo "include confinc" > confmf
2466 # We grep out `Entering directory' and `Leaving directory'
2467 # messages which can occur if `w' ends up in MAKEFLAGS.
2468 # In particular we don't look at `^make:' because GNU make might
2469 # be invoked under some other name (usually "gmake"), in which
2470 # case it prints its new name instead of `make'.
2471 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2472 am__include=include
2473 am__quote=
2474 _am_result=GNU
2476 # Now try BSD make style include.
2477 if test "$am__include" = "#"; then
2478 echo '.include "confinc"' > confmf
2479 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2480 am__include=.include
2481 am__quote="\""
2482 _am_result=BSD
2487 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2488 $as_echo "$_am_result" >&6; }
2489 rm -f confinc confmf
2491 # Check whether --enable-dependency-tracking was given.
2492 if test "${enable_dependency_tracking+set}" = set; then
2493 enableval=$enable_dependency_tracking;
2496 if test "x$enable_dependency_tracking" != xno; then
2497 am_depcomp="$ac_aux_dir/depcomp"
2498 AMDEPBACKSLASH='\'
2500 if test "x$enable_dependency_tracking" != xno; then
2501 AMDEP_TRUE=
2502 AMDEP_FALSE='#'
2503 else
2504 AMDEP_TRUE='#'
2505 AMDEP_FALSE=
2509 ac_ext=c
2510 ac_cpp='$CPP $CPPFLAGS'
2511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2514 if test -n "$ac_tool_prefix"; then
2515 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2516 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2517 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2518 $as_echo_n "checking for $ac_word... " >&6; }
2519 if test "${ac_cv_prog_CC+set}" = set; then
2520 $as_echo_n "(cached) " >&6
2521 else
2522 if test -n "$CC"; then
2523 ac_cv_prog_CC="$CC" # Let the user override the test.
2524 else
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 for as_dir in $PATH
2528 IFS=$as_save_IFS
2529 test -z "$as_dir" && as_dir=.
2530 for ac_exec_ext in '' $ac_executable_extensions; do
2531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2532 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2533 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2534 break 2
2536 done
2537 done
2538 IFS=$as_save_IFS
2542 CC=$ac_cv_prog_CC
2543 if test -n "$CC"; then
2544 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2545 $as_echo "$CC" >&6; }
2546 else
2547 { $as_echo "$as_me:$LINENO: result: no" >&5
2548 $as_echo "no" >&6; }
2553 if test -z "$ac_cv_prog_CC"; then
2554 ac_ct_CC=$CC
2555 # Extract the first word of "gcc", so it can be a program name with args.
2556 set dummy gcc; ac_word=$2
2557 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2558 $as_echo_n "checking for $ac_word... " >&6; }
2559 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2560 $as_echo_n "(cached) " >&6
2561 else
2562 if test -n "$ac_ct_CC"; then
2563 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2564 else
2565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566 for as_dir in $PATH
2568 IFS=$as_save_IFS
2569 test -z "$as_dir" && as_dir=.
2570 for ac_exec_ext in '' $ac_executable_extensions; do
2571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2572 ac_cv_prog_ac_ct_CC="gcc"
2573 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2574 break 2
2576 done
2577 done
2578 IFS=$as_save_IFS
2582 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2583 if test -n "$ac_ct_CC"; then
2584 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2585 $as_echo "$ac_ct_CC" >&6; }
2586 else
2587 { $as_echo "$as_me:$LINENO: result: no" >&5
2588 $as_echo "no" >&6; }
2591 if test "x$ac_ct_CC" = x; then
2592 CC=""
2593 else
2594 case $cross_compiling:$ac_tool_warned in
2595 yes:)
2596 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2598 ac_tool_warned=yes ;;
2599 esac
2600 CC=$ac_ct_CC
2602 else
2603 CC="$ac_cv_prog_CC"
2606 if test -z "$CC"; then
2607 if test -n "$ac_tool_prefix"; then
2608 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2609 set dummy ${ac_tool_prefix}cc; ac_word=$2
2610 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2611 $as_echo_n "checking for $ac_word... " >&6; }
2612 if test "${ac_cv_prog_CC+set}" = set; then
2613 $as_echo_n "(cached) " >&6
2614 else
2615 if test -n "$CC"; then
2616 ac_cv_prog_CC="$CC" # Let the user override the test.
2617 else
2618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619 for as_dir in $PATH
2621 IFS=$as_save_IFS
2622 test -z "$as_dir" && as_dir=.
2623 for ac_exec_ext in '' $ac_executable_extensions; do
2624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2625 ac_cv_prog_CC="${ac_tool_prefix}cc"
2626 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2627 break 2
2629 done
2630 done
2631 IFS=$as_save_IFS
2635 CC=$ac_cv_prog_CC
2636 if test -n "$CC"; then
2637 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2638 $as_echo "$CC" >&6; }
2639 else
2640 { $as_echo "$as_me:$LINENO: result: no" >&5
2641 $as_echo "no" >&6; }
2647 if test -z "$CC"; then
2648 # Extract the first word of "cc", so it can be a program name with args.
2649 set dummy cc; ac_word=$2
2650 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2651 $as_echo_n "checking for $ac_word... " >&6; }
2652 if test "${ac_cv_prog_CC+set}" = set; then
2653 $as_echo_n "(cached) " >&6
2654 else
2655 if test -n "$CC"; then
2656 ac_cv_prog_CC="$CC" # Let the user override the test.
2657 else
2658 ac_prog_rejected=no
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660 for as_dir in $PATH
2662 IFS=$as_save_IFS
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2666 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2667 ac_prog_rejected=yes
2668 continue
2670 ac_cv_prog_CC="cc"
2671 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2672 break 2
2674 done
2675 done
2676 IFS=$as_save_IFS
2678 if test $ac_prog_rejected = yes; then
2679 # We found a bogon in the path, so make sure we never use it.
2680 set dummy $ac_cv_prog_CC
2681 shift
2682 if test $# != 0; then
2683 # We chose a different compiler from the bogus one.
2684 # However, it has the same basename, so the bogon will be chosen
2685 # first if we set CC to just the basename; use the full file name.
2686 shift
2687 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2692 CC=$ac_cv_prog_CC
2693 if test -n "$CC"; then
2694 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2695 $as_echo "$CC" >&6; }
2696 else
2697 { $as_echo "$as_me:$LINENO: result: no" >&5
2698 $as_echo "no" >&6; }
2703 if test -z "$CC"; then
2704 if test -n "$ac_tool_prefix"; then
2705 for ac_prog in cl.exe
2707 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2708 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2709 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2710 $as_echo_n "checking for $ac_word... " >&6; }
2711 if test "${ac_cv_prog_CC+set}" = set; then
2712 $as_echo_n "(cached) " >&6
2713 else
2714 if test -n "$CC"; then
2715 ac_cv_prog_CC="$CC" # Let the user override the test.
2716 else
2717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718 for as_dir in $PATH
2720 IFS=$as_save_IFS
2721 test -z "$as_dir" && as_dir=.
2722 for ac_exec_ext in '' $ac_executable_extensions; do
2723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2724 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2725 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2726 break 2
2728 done
2729 done
2730 IFS=$as_save_IFS
2734 CC=$ac_cv_prog_CC
2735 if test -n "$CC"; then
2736 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2737 $as_echo "$CC" >&6; }
2738 else
2739 { $as_echo "$as_me:$LINENO: result: no" >&5
2740 $as_echo "no" >&6; }
2744 test -n "$CC" && break
2745 done
2747 if test -z "$CC"; then
2748 ac_ct_CC=$CC
2749 for ac_prog in cl.exe
2751 # Extract the first word of "$ac_prog", so it can be a program name with args.
2752 set dummy $ac_prog; ac_word=$2
2753 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2754 $as_echo_n "checking for $ac_word... " >&6; }
2755 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2756 $as_echo_n "(cached) " >&6
2757 else
2758 if test -n "$ac_ct_CC"; then
2759 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2760 else
2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762 for as_dir in $PATH
2764 IFS=$as_save_IFS
2765 test -z "$as_dir" && as_dir=.
2766 for ac_exec_ext in '' $ac_executable_extensions; do
2767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2768 ac_cv_prog_ac_ct_CC="$ac_prog"
2769 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2770 break 2
2772 done
2773 done
2774 IFS=$as_save_IFS
2778 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2779 if test -n "$ac_ct_CC"; then
2780 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2781 $as_echo "$ac_ct_CC" >&6; }
2782 else
2783 { $as_echo "$as_me:$LINENO: result: no" >&5
2784 $as_echo "no" >&6; }
2788 test -n "$ac_ct_CC" && break
2789 done
2791 if test "x$ac_ct_CC" = x; then
2792 CC=""
2793 else
2794 case $cross_compiling:$ac_tool_warned in
2795 yes:)
2796 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2798 ac_tool_warned=yes ;;
2799 esac
2800 CC=$ac_ct_CC
2807 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2809 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2810 See \`config.log' for more details." >&5
2811 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2812 See \`config.log' for more details." >&2;}
2813 { (exit 1); exit 1; }; }; }
2815 # Provide some information about the compiler.
2816 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2817 set X $ac_compile
2818 ac_compiler=$2
2819 { (ac_try="$ac_compiler --version >&5"
2820 case "(($ac_try" in
2821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2822 *) ac_try_echo=$ac_try;;
2823 esac
2824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2825 $as_echo "$ac_try_echo") >&5
2826 (eval "$ac_compiler --version >&5") 2>&5
2827 ac_status=$?
2828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); }
2830 { (ac_try="$ac_compiler -v >&5"
2831 case "(($ac_try" in
2832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2833 *) ac_try_echo=$ac_try;;
2834 esac
2835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2836 $as_echo "$ac_try_echo") >&5
2837 (eval "$ac_compiler -v >&5") 2>&5
2838 ac_status=$?
2839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }
2841 { (ac_try="$ac_compiler -V >&5"
2842 case "(($ac_try" in
2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2845 esac
2846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2847 $as_echo "$ac_try_echo") >&5
2848 (eval "$ac_compiler -V >&5") 2>&5
2849 ac_status=$?
2850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); }
2853 cat >conftest.$ac_ext <<_ACEOF
2854 /* confdefs.h. */
2855 _ACEOF
2856 cat confdefs.h >>conftest.$ac_ext
2857 cat >>conftest.$ac_ext <<_ACEOF
2858 /* end confdefs.h. */
2861 main ()
2865 return 0;
2867 _ACEOF
2868 ac_clean_files_save=$ac_clean_files
2869 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2870 # Try to create an executable without -o first, disregard a.out.
2871 # It will help us diagnose broken compilers, and finding out an intuition
2872 # of exeext.
2873 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2874 $as_echo_n "checking for C compiler default output file name... " >&6; }
2875 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2877 # The possible output files:
2878 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2880 ac_rmfiles=
2881 for ac_file in $ac_files
2883 case $ac_file in
2884 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2885 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2886 esac
2887 done
2888 rm -f $ac_rmfiles
2890 if { (ac_try="$ac_link_default"
2891 case "(($ac_try" in
2892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893 *) ac_try_echo=$ac_try;;
2894 esac
2895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2896 $as_echo "$ac_try_echo") >&5
2897 (eval "$ac_link_default") 2>&5
2898 ac_status=$?
2899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }; then
2901 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2902 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2903 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2904 # so that the user can short-circuit this test for compilers unknown to
2905 # Autoconf.
2906 for ac_file in $ac_files ''
2908 test -f "$ac_file" || continue
2909 case $ac_file in
2910 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2912 [ab].out )
2913 # We found the default executable, but exeext='' is most
2914 # certainly right.
2915 break;;
2916 *.* )
2917 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2918 then :; else
2919 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2921 # We set ac_cv_exeext here because the later test for it is not
2922 # safe: cross compilers may not add the suffix if given an `-o'
2923 # argument, so we may need to know it at that point already.
2924 # Even if this section looks crufty: it has the advantage of
2925 # actually working.
2926 break;;
2928 break;;
2929 esac
2930 done
2931 test "$ac_cv_exeext" = no && ac_cv_exeext=
2933 else
2934 ac_file=''
2937 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2938 $as_echo "$ac_file" >&6; }
2939 if test -z "$ac_file"; then
2940 $as_echo "$as_me: failed program was:" >&5
2941 sed 's/^/| /' conftest.$ac_ext >&5
2943 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2944 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2945 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2946 See \`config.log' for more details." >&5
2947 $as_echo "$as_me: error: C compiler cannot create executables
2948 See \`config.log' for more details." >&2;}
2949 { (exit 77); exit 77; }; }; }
2952 ac_exeext=$ac_cv_exeext
2954 # Check that the compiler produces executables we can run. If not, either
2955 # the compiler is broken, or we cross compile.
2956 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2957 $as_echo_n "checking whether the C compiler works... " >&6; }
2958 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2959 # If not cross compiling, check that we can run a simple program.
2960 if test "$cross_compiling" != yes; then
2961 if { ac_try='./$ac_file'
2962 { (case "(($ac_try" in
2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964 *) ac_try_echo=$ac_try;;
2965 esac
2966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2967 $as_echo "$ac_try_echo") >&5
2968 (eval "$ac_try") 2>&5
2969 ac_status=$?
2970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); }; }; then
2972 cross_compiling=no
2973 else
2974 if test "$cross_compiling" = maybe; then
2975 cross_compiling=yes
2976 else
2977 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2979 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2980 If you meant to cross compile, use \`--host'.
2981 See \`config.log' for more details." >&5
2982 $as_echo "$as_me: error: cannot run C compiled programs.
2983 If you meant to cross compile, use \`--host'.
2984 See \`config.log' for more details." >&2;}
2985 { (exit 1); exit 1; }; }; }
2989 { $as_echo "$as_me:$LINENO: result: yes" >&5
2990 $as_echo "yes" >&6; }
2992 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2993 ac_clean_files=$ac_clean_files_save
2994 # Check that the compiler produces executables we can run. If not, either
2995 # the compiler is broken, or we cross compile.
2996 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2997 $as_echo_n "checking whether we are cross compiling... " >&6; }
2998 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2999 $as_echo "$cross_compiling" >&6; }
3001 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3002 $as_echo_n "checking for suffix of executables... " >&6; }
3003 if { (ac_try="$ac_link"
3004 case "(($ac_try" in
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3007 esac
3008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3009 $as_echo "$ac_try_echo") >&5
3010 (eval "$ac_link") 2>&5
3011 ac_status=$?
3012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); }; then
3014 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3015 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3016 # work properly (i.e., refer to `conftest.exe'), while it won't with
3017 # `rm'.
3018 for ac_file in conftest.exe conftest conftest.*; do
3019 test -f "$ac_file" || continue
3020 case $ac_file in
3021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3022 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3023 break;;
3024 * ) break;;
3025 esac
3026 done
3027 else
3028 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3030 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3031 See \`config.log' for more details." >&5
3032 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3033 See \`config.log' for more details." >&2;}
3034 { (exit 1); exit 1; }; }; }
3037 rm -f conftest$ac_cv_exeext
3038 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3039 $as_echo "$ac_cv_exeext" >&6; }
3041 rm -f conftest.$ac_ext
3042 EXEEXT=$ac_cv_exeext
3043 ac_exeext=$EXEEXT
3044 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3045 $as_echo_n "checking for suffix of object files... " >&6; }
3046 if test "${ac_cv_objext+set}" = set; then
3047 $as_echo_n "(cached) " >&6
3048 else
3049 cat >conftest.$ac_ext <<_ACEOF
3050 /* confdefs.h. */
3051 _ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h. */
3057 main ()
3061 return 0;
3063 _ACEOF
3064 rm -f conftest.o conftest.obj
3065 if { (ac_try="$ac_compile"
3066 case "(($ac_try" in
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3069 esac
3070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3071 $as_echo "$ac_try_echo") >&5
3072 (eval "$ac_compile") 2>&5
3073 ac_status=$?
3074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); }; then
3076 for ac_file in conftest.o conftest.obj conftest.*; do
3077 test -f "$ac_file" || continue;
3078 case $ac_file in
3079 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3080 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3081 break;;
3082 esac
3083 done
3084 else
3085 $as_echo "$as_me: failed program was:" >&5
3086 sed 's/^/| /' conftest.$ac_ext >&5
3088 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3089 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3090 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3091 See \`config.log' for more details." >&5
3092 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3093 See \`config.log' for more details." >&2;}
3094 { (exit 1); exit 1; }; }; }
3097 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3099 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3100 $as_echo "$ac_cv_objext" >&6; }
3101 OBJEXT=$ac_cv_objext
3102 ac_objext=$OBJEXT
3103 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3104 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3105 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3106 $as_echo_n "(cached) " >&6
3107 else
3108 cat >conftest.$ac_ext <<_ACEOF
3109 /* confdefs.h. */
3110 _ACEOF
3111 cat confdefs.h >>conftest.$ac_ext
3112 cat >>conftest.$ac_ext <<_ACEOF
3113 /* end confdefs.h. */
3116 main ()
3118 #ifndef __GNUC__
3119 choke me
3120 #endif
3123 return 0;
3125 _ACEOF
3126 rm -f conftest.$ac_objext
3127 if { (ac_try="$ac_compile"
3128 case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3131 esac
3132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3133 $as_echo "$ac_try_echo") >&5
3134 (eval "$ac_compile") 2>conftest.er1
3135 ac_status=$?
3136 grep -v '^ *+' conftest.er1 >conftest.err
3137 rm -f conftest.er1
3138 cat conftest.err >&5
3139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); } && {
3141 test -z "$ac_c_werror_flag" ||
3142 test ! -s conftest.err
3143 } && test -s conftest.$ac_objext; then
3144 ac_compiler_gnu=yes
3145 else
3146 $as_echo "$as_me: failed program was:" >&5
3147 sed 's/^/| /' conftest.$ac_ext >&5
3149 ac_compiler_gnu=no
3152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3153 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3156 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3157 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3158 if test $ac_compiler_gnu = yes; then
3159 GCC=yes
3160 else
3161 GCC=
3163 ac_test_CFLAGS=${CFLAGS+set}
3164 ac_save_CFLAGS=$CFLAGS
3165 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3166 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3167 if test "${ac_cv_prog_cc_g+set}" = set; then
3168 $as_echo_n "(cached) " >&6
3169 else
3170 ac_save_c_werror_flag=$ac_c_werror_flag
3171 ac_c_werror_flag=yes
3172 ac_cv_prog_cc_g=no
3173 CFLAGS="-g"
3174 cat >conftest.$ac_ext <<_ACEOF
3175 /* confdefs.h. */
3176 _ACEOF
3177 cat confdefs.h >>conftest.$ac_ext
3178 cat >>conftest.$ac_ext <<_ACEOF
3179 /* end confdefs.h. */
3182 main ()
3186 return 0;
3188 _ACEOF
3189 rm -f conftest.$ac_objext
3190 if { (ac_try="$ac_compile"
3191 case "(($ac_try" in
3192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193 *) ac_try_echo=$ac_try;;
3194 esac
3195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3196 $as_echo "$ac_try_echo") >&5
3197 (eval "$ac_compile") 2>conftest.er1
3198 ac_status=$?
3199 grep -v '^ *+' conftest.er1 >conftest.err
3200 rm -f conftest.er1
3201 cat conftest.err >&5
3202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); } && {
3204 test -z "$ac_c_werror_flag" ||
3205 test ! -s conftest.err
3206 } && test -s conftest.$ac_objext; then
3207 ac_cv_prog_cc_g=yes
3208 else
3209 $as_echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3212 CFLAGS=""
3213 cat >conftest.$ac_ext <<_ACEOF
3214 /* confdefs.h. */
3215 _ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3221 main ()
3225 return 0;
3227 _ACEOF
3228 rm -f conftest.$ac_objext
3229 if { (ac_try="$ac_compile"
3230 case "(($ac_try" in
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3233 esac
3234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3235 $as_echo "$ac_try_echo") >&5
3236 (eval "$ac_compile") 2>conftest.er1
3237 ac_status=$?
3238 grep -v '^ *+' conftest.er1 >conftest.err
3239 rm -f conftest.er1
3240 cat conftest.err >&5
3241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } && {
3243 test -z "$ac_c_werror_flag" ||
3244 test ! -s conftest.err
3245 } && test -s conftest.$ac_objext; then
3247 else
3248 $as_echo "$as_me: failed program was:" >&5
3249 sed 's/^/| /' conftest.$ac_ext >&5
3251 ac_c_werror_flag=$ac_save_c_werror_flag
3252 CFLAGS="-g"
3253 cat >conftest.$ac_ext <<_ACEOF
3254 /* confdefs.h. */
3255 _ACEOF
3256 cat confdefs.h >>conftest.$ac_ext
3257 cat >>conftest.$ac_ext <<_ACEOF
3258 /* end confdefs.h. */
3261 main ()
3265 return 0;
3267 _ACEOF
3268 rm -f conftest.$ac_objext
3269 if { (ac_try="$ac_compile"
3270 case "(($ac_try" in
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3273 esac
3274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3275 $as_echo "$ac_try_echo") >&5
3276 (eval "$ac_compile") 2>conftest.er1
3277 ac_status=$?
3278 grep -v '^ *+' conftest.er1 >conftest.err
3279 rm -f conftest.er1
3280 cat conftest.err >&5
3281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); } && {
3283 test -z "$ac_c_werror_flag" ||
3284 test ! -s conftest.err
3285 } && test -s conftest.$ac_objext; then
3286 ac_cv_prog_cc_g=yes
3287 else
3288 $as_echo "$as_me: failed program was:" >&5
3289 sed 's/^/| /' conftest.$ac_ext >&5
3294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3301 ac_c_werror_flag=$ac_save_c_werror_flag
3303 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3304 $as_echo "$ac_cv_prog_cc_g" >&6; }
3305 if test "$ac_test_CFLAGS" = set; then
3306 CFLAGS=$ac_save_CFLAGS
3307 elif test $ac_cv_prog_cc_g = yes; then
3308 if test "$GCC" = yes; then
3309 CFLAGS="-g -O2"
3310 else
3311 CFLAGS="-g"
3313 else
3314 if test "$GCC" = yes; then
3315 CFLAGS="-O2"
3316 else
3317 CFLAGS=
3320 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3321 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3322 if test "${ac_cv_prog_cc_c89+set}" = set; then
3323 $as_echo_n "(cached) " >&6
3324 else
3325 ac_cv_prog_cc_c89=no
3326 ac_save_CC=$CC
3327 cat >conftest.$ac_ext <<_ACEOF
3328 /* confdefs.h. */
3329 _ACEOF
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h. */
3333 #include <stdarg.h>
3334 #include <stdio.h>
3335 #include <sys/types.h>
3336 #include <sys/stat.h>
3337 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3338 struct buf { int x; };
3339 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3340 static char *e (p, i)
3341 char **p;
3342 int i;
3344 return p[i];
3346 static char *f (char * (*g) (char **, int), char **p, ...)
3348 char *s;
3349 va_list v;
3350 va_start (v,p);
3351 s = g (p, va_arg (v,int));
3352 va_end (v);
3353 return s;
3356 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3357 function prototypes and stuff, but not '\xHH' hex character constants.
3358 These don't provoke an error unfortunately, instead are silently treated
3359 as 'x'. The following induces an error, until -std is added to get
3360 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3361 array size at least. It's necessary to write '\x00'==0 to get something
3362 that's true only with -std. */
3363 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3365 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3366 inside strings and character constants. */
3367 #define FOO(x) 'x'
3368 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3370 int test (int i, double x);
3371 struct s1 {int (*f) (int a);};
3372 struct s2 {int (*f) (double a);};
3373 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3374 int argc;
3375 char **argv;
3377 main ()
3379 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3381 return 0;
3383 _ACEOF
3384 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3385 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3387 CC="$ac_save_CC $ac_arg"
3388 rm -f conftest.$ac_objext
3389 if { (ac_try="$ac_compile"
3390 case "(($ac_try" in
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3393 esac
3394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3395 $as_echo "$ac_try_echo") >&5
3396 (eval "$ac_compile") 2>conftest.er1
3397 ac_status=$?
3398 grep -v '^ *+' conftest.er1 >conftest.err
3399 rm -f conftest.er1
3400 cat conftest.err >&5
3401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); } && {
3403 test -z "$ac_c_werror_flag" ||
3404 test ! -s conftest.err
3405 } && test -s conftest.$ac_objext; then
3406 ac_cv_prog_cc_c89=$ac_arg
3407 else
3408 $as_echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.$ac_ext >&5
3414 rm -f core conftest.err conftest.$ac_objext
3415 test "x$ac_cv_prog_cc_c89" != "xno" && break
3416 done
3417 rm -f conftest.$ac_ext
3418 CC=$ac_save_CC
3421 # AC_CACHE_VAL
3422 case "x$ac_cv_prog_cc_c89" in
3424 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3425 $as_echo "none needed" >&6; } ;;
3426 xno)
3427 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3428 $as_echo "unsupported" >&6; } ;;
3430 CC="$CC $ac_cv_prog_cc_c89"
3431 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3432 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3433 esac
3436 ac_ext=c
3437 ac_cpp='$CPP $CPPFLAGS'
3438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3442 depcc="$CC" am_compiler_list=
3444 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3445 $as_echo_n "checking dependency style of $depcc... " >&6; }
3446 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3447 $as_echo_n "(cached) " >&6
3448 else
3449 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3450 # We make a subdir and do the tests there. Otherwise we can end up
3451 # making bogus files that we don't know about and never remove. For
3452 # instance it was reported that on HP-UX the gcc test will end up
3453 # making a dummy file named `D' -- because `-MD' means `put the output
3454 # in D'.
3455 mkdir conftest.dir
3456 # Copy depcomp to subdir because otherwise we won't find it if we're
3457 # using a relative directory.
3458 cp "$am_depcomp" conftest.dir
3459 cd conftest.dir
3460 # We will build objects and dependencies in a subdirectory because
3461 # it helps to detect inapplicable dependency modes. For instance
3462 # both Tru64's cc and ICC support -MD to output dependencies as a
3463 # side effect of compilation, but ICC will put the dependencies in
3464 # the current directory while Tru64 will put them in the object
3465 # directory.
3466 mkdir sub
3468 am_cv_CC_dependencies_compiler_type=none
3469 if test "$am_compiler_list" = ""; then
3470 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3472 for depmode in $am_compiler_list; do
3473 # Setup a source with many dependencies, because some compilers
3474 # like to wrap large dependency lists on column 80 (with \), and
3475 # we should not choose a depcomp mode which is confused by this.
3477 # We need to recreate these files for each test, as the compiler may
3478 # overwrite some of them when testing with obscure command lines.
3479 # This happens at least with the AIX C compiler.
3480 : > sub/conftest.c
3481 for i in 1 2 3 4 5 6; do
3482 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3483 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3484 # Solaris 8's {/usr,}/bin/sh.
3485 touch sub/conftst$i.h
3486 done
3487 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3489 case $depmode in
3490 nosideeffect)
3491 # after this tag, mechanisms are not by side-effect, so they'll
3492 # only be used when explicitly requested
3493 if test "x$enable_dependency_tracking" = xyes; then
3494 continue
3495 else
3496 break
3499 none) break ;;
3500 esac
3501 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3502 # mode. It turns out that the SunPro C++ compiler does not properly
3503 # handle `-M -o', and we need to detect this.
3504 if depmode=$depmode \
3505 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3506 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3507 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3508 >/dev/null 2>conftest.err &&
3509 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3510 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3511 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3512 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3513 # icc doesn't choke on unknown options, it will just issue warnings
3514 # or remarks (even with -Werror). So we grep stderr for any message
3515 # that says an option was ignored or not supported.
3516 # When given -MP, icc 7.0 and 7.1 complain thusly:
3517 # icc: Command line warning: ignoring option '-M'; no argument required
3518 # The diagnosis changed in icc 8.0:
3519 # icc: Command line remark: option '-MP' not supported
3520 if (grep 'ignoring option' conftest.err ||
3521 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3522 am_cv_CC_dependencies_compiler_type=$depmode
3523 break
3526 done
3528 cd ..
3529 rm -rf conftest.dir
3530 else
3531 am_cv_CC_dependencies_compiler_type=none
3535 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3536 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3537 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3540 test "x$enable_dependency_tracking" != xno \
3541 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3542 am__fastdepCC_TRUE=
3543 am__fastdepCC_FALSE='#'
3544 else
3545 am__fastdepCC_TRUE='#'
3546 am__fastdepCC_FALSE=
3551 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
3552 $as_echo_n "checking for library containing strerror... " >&6; }
3553 if test "${ac_cv_search_strerror+set}" = set; then
3554 $as_echo_n "(cached) " >&6
3555 else
3556 ac_func_search_save_LIBS=$LIBS
3557 cat >conftest.$ac_ext <<_ACEOF
3558 /* confdefs.h. */
3559 _ACEOF
3560 cat confdefs.h >>conftest.$ac_ext
3561 cat >>conftest.$ac_ext <<_ACEOF
3562 /* end confdefs.h. */
3564 /* Override any GCC internal prototype to avoid an error.
3565 Use char because int might match the return type of a GCC
3566 builtin and then its argument prototype would still apply. */
3567 #ifdef __cplusplus
3568 extern "C"
3569 #endif
3570 char strerror ();
3572 main ()
3574 return strerror ();
3576 return 0;
3578 _ACEOF
3579 for ac_lib in '' cposix; do
3580 if test -z "$ac_lib"; then
3581 ac_res="none required"
3582 else
3583 ac_res=-l$ac_lib
3584 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3586 rm -f conftest.$ac_objext conftest$ac_exeext
3587 if { (ac_try="$ac_link"
3588 case "(($ac_try" in
3589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590 *) ac_try_echo=$ac_try;;
3591 esac
3592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3593 $as_echo "$ac_try_echo") >&5
3594 (eval "$ac_link") 2>conftest.er1
3595 ac_status=$?
3596 grep -v '^ *+' conftest.er1 >conftest.err
3597 rm -f conftest.er1
3598 cat conftest.err >&5
3599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); } && {
3601 test -z "$ac_c_werror_flag" ||
3602 test ! -s conftest.err
3603 } && test -s conftest$ac_exeext && {
3604 test "$cross_compiling" = yes ||
3605 $as_test_x conftest$ac_exeext
3606 }; then
3607 ac_cv_search_strerror=$ac_res
3608 else
3609 $as_echo "$as_me: failed program was:" >&5
3610 sed 's/^/| /' conftest.$ac_ext >&5
3615 rm -rf conftest.dSYM
3616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3617 conftest$ac_exeext
3618 if test "${ac_cv_search_strerror+set}" = set; then
3619 break
3621 done
3622 if test "${ac_cv_search_strerror+set}" = set; then
3624 else
3625 ac_cv_search_strerror=no
3627 rm conftest.$ac_ext
3628 LIBS=$ac_func_search_save_LIBS
3630 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3631 $as_echo "$ac_cv_search_strerror" >&6; }
3632 ac_res=$ac_cv_search_strerror
3633 if test "$ac_res" != no; then
3634 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3638 ac_ext=c
3639 ac_cpp='$CPP $CPPFLAGS'
3640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3643 if test -n "$ac_tool_prefix"; then
3644 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3645 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3646 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3647 $as_echo_n "checking for $ac_word... " >&6; }
3648 if test "${ac_cv_prog_CC+set}" = set; then
3649 $as_echo_n "(cached) " >&6
3650 else
3651 if test -n "$CC"; then
3652 ac_cv_prog_CC="$CC" # Let the user override the test.
3653 else
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655 for as_dir in $PATH
3657 IFS=$as_save_IFS
3658 test -z "$as_dir" && as_dir=.
3659 for ac_exec_ext in '' $ac_executable_extensions; do
3660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3661 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3662 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3663 break 2
3665 done
3666 done
3667 IFS=$as_save_IFS
3671 CC=$ac_cv_prog_CC
3672 if test -n "$CC"; then
3673 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3674 $as_echo "$CC" >&6; }
3675 else
3676 { $as_echo "$as_me:$LINENO: result: no" >&5
3677 $as_echo "no" >&6; }
3682 if test -z "$ac_cv_prog_CC"; then
3683 ac_ct_CC=$CC
3684 # Extract the first word of "gcc", so it can be a program name with args.
3685 set dummy gcc; ac_word=$2
3686 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3687 $as_echo_n "checking for $ac_word... " >&6; }
3688 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3689 $as_echo_n "(cached) " >&6
3690 else
3691 if test -n "$ac_ct_CC"; then
3692 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3693 else
3694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695 for as_dir in $PATH
3697 IFS=$as_save_IFS
3698 test -z "$as_dir" && as_dir=.
3699 for ac_exec_ext in '' $ac_executable_extensions; do
3700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3701 ac_cv_prog_ac_ct_CC="gcc"
3702 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3703 break 2
3705 done
3706 done
3707 IFS=$as_save_IFS
3711 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3712 if test -n "$ac_ct_CC"; then
3713 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3714 $as_echo "$ac_ct_CC" >&6; }
3715 else
3716 { $as_echo "$as_me:$LINENO: result: no" >&5
3717 $as_echo "no" >&6; }
3720 if test "x$ac_ct_CC" = x; then
3721 CC=""
3722 else
3723 case $cross_compiling:$ac_tool_warned in
3724 yes:)
3725 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3727 ac_tool_warned=yes ;;
3728 esac
3729 CC=$ac_ct_CC
3731 else
3732 CC="$ac_cv_prog_CC"
3735 if test -z "$CC"; then
3736 if test -n "$ac_tool_prefix"; then
3737 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3738 set dummy ${ac_tool_prefix}cc; ac_word=$2
3739 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3740 $as_echo_n "checking for $ac_word... " >&6; }
3741 if test "${ac_cv_prog_CC+set}" = set; then
3742 $as_echo_n "(cached) " >&6
3743 else
3744 if test -n "$CC"; then
3745 ac_cv_prog_CC="$CC" # Let the user override the test.
3746 else
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748 for as_dir in $PATH
3750 IFS=$as_save_IFS
3751 test -z "$as_dir" && as_dir=.
3752 for ac_exec_ext in '' $ac_executable_extensions; do
3753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3754 ac_cv_prog_CC="${ac_tool_prefix}cc"
3755 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3756 break 2
3758 done
3759 done
3760 IFS=$as_save_IFS
3764 CC=$ac_cv_prog_CC
3765 if test -n "$CC"; then
3766 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3767 $as_echo "$CC" >&6; }
3768 else
3769 { $as_echo "$as_me:$LINENO: result: no" >&5
3770 $as_echo "no" >&6; }
3776 if test -z "$CC"; then
3777 # Extract the first word of "cc", so it can be a program name with args.
3778 set dummy cc; ac_word=$2
3779 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3780 $as_echo_n "checking for $ac_word... " >&6; }
3781 if test "${ac_cv_prog_CC+set}" = set; then
3782 $as_echo_n "(cached) " >&6
3783 else
3784 if test -n "$CC"; then
3785 ac_cv_prog_CC="$CC" # Let the user override the test.
3786 else
3787 ac_prog_rejected=no
3788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789 for as_dir in $PATH
3791 IFS=$as_save_IFS
3792 test -z "$as_dir" && as_dir=.
3793 for ac_exec_ext in '' $ac_executable_extensions; do
3794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3795 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3796 ac_prog_rejected=yes
3797 continue
3799 ac_cv_prog_CC="cc"
3800 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3801 break 2
3803 done
3804 done
3805 IFS=$as_save_IFS
3807 if test $ac_prog_rejected = yes; then
3808 # We found a bogon in the path, so make sure we never use it.
3809 set dummy $ac_cv_prog_CC
3810 shift
3811 if test $# != 0; then
3812 # We chose a different compiler from the bogus one.
3813 # However, it has the same basename, so the bogon will be chosen
3814 # first if we set CC to just the basename; use the full file name.
3815 shift
3816 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3821 CC=$ac_cv_prog_CC
3822 if test -n "$CC"; then
3823 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3824 $as_echo "$CC" >&6; }
3825 else
3826 { $as_echo "$as_me:$LINENO: result: no" >&5
3827 $as_echo "no" >&6; }
3832 if test -z "$CC"; then
3833 if test -n "$ac_tool_prefix"; then
3834 for ac_prog in cl.exe
3836 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3837 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3838 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3839 $as_echo_n "checking for $ac_word... " >&6; }
3840 if test "${ac_cv_prog_CC+set}" = set; then
3841 $as_echo_n "(cached) " >&6
3842 else
3843 if test -n "$CC"; then
3844 ac_cv_prog_CC="$CC" # Let the user override the test.
3845 else
3846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847 for as_dir in $PATH
3849 IFS=$as_save_IFS
3850 test -z "$as_dir" && as_dir=.
3851 for ac_exec_ext in '' $ac_executable_extensions; do
3852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3853 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3854 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3855 break 2
3857 done
3858 done
3859 IFS=$as_save_IFS
3863 CC=$ac_cv_prog_CC
3864 if test -n "$CC"; then
3865 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3866 $as_echo "$CC" >&6; }
3867 else
3868 { $as_echo "$as_me:$LINENO: result: no" >&5
3869 $as_echo "no" >&6; }
3873 test -n "$CC" && break
3874 done
3876 if test -z "$CC"; then
3877 ac_ct_CC=$CC
3878 for ac_prog in cl.exe
3880 # Extract the first word of "$ac_prog", so it can be a program name with args.
3881 set dummy $ac_prog; ac_word=$2
3882 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3883 $as_echo_n "checking for $ac_word... " >&6; }
3884 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3885 $as_echo_n "(cached) " >&6
3886 else
3887 if test -n "$ac_ct_CC"; then
3888 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3889 else
3890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3891 for as_dir in $PATH
3893 IFS=$as_save_IFS
3894 test -z "$as_dir" && as_dir=.
3895 for ac_exec_ext in '' $ac_executable_extensions; do
3896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3897 ac_cv_prog_ac_ct_CC="$ac_prog"
3898 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3899 break 2
3901 done
3902 done
3903 IFS=$as_save_IFS
3907 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3908 if test -n "$ac_ct_CC"; then
3909 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3910 $as_echo "$ac_ct_CC" >&6; }
3911 else
3912 { $as_echo "$as_me:$LINENO: result: no" >&5
3913 $as_echo "no" >&6; }
3917 test -n "$ac_ct_CC" && break
3918 done
3920 if test "x$ac_ct_CC" = x; then
3921 CC=""
3922 else
3923 case $cross_compiling:$ac_tool_warned in
3924 yes:)
3925 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3927 ac_tool_warned=yes ;;
3928 esac
3929 CC=$ac_ct_CC
3936 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3938 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3939 See \`config.log' for more details." >&5
3940 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3941 See \`config.log' for more details." >&2;}
3942 { (exit 1); exit 1; }; }; }
3944 # Provide some information about the compiler.
3945 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3946 set X $ac_compile
3947 ac_compiler=$2
3948 { (ac_try="$ac_compiler --version >&5"
3949 case "(($ac_try" in
3950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951 *) ac_try_echo=$ac_try;;
3952 esac
3953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3954 $as_echo "$ac_try_echo") >&5
3955 (eval "$ac_compiler --version >&5") 2>&5
3956 ac_status=$?
3957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); }
3959 { (ac_try="$ac_compiler -v >&5"
3960 case "(($ac_try" in
3961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962 *) ac_try_echo=$ac_try;;
3963 esac
3964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3965 $as_echo "$ac_try_echo") >&5
3966 (eval "$ac_compiler -v >&5") 2>&5
3967 ac_status=$?
3968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); }
3970 { (ac_try="$ac_compiler -V >&5"
3971 case "(($ac_try" in
3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973 *) ac_try_echo=$ac_try;;
3974 esac
3975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3976 $as_echo "$ac_try_echo") >&5
3977 (eval "$ac_compiler -V >&5") 2>&5
3978 ac_status=$?
3979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); }
3982 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3983 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3984 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3985 $as_echo_n "(cached) " >&6
3986 else
3987 cat >conftest.$ac_ext <<_ACEOF
3988 /* confdefs.h. */
3989 _ACEOF
3990 cat confdefs.h >>conftest.$ac_ext
3991 cat >>conftest.$ac_ext <<_ACEOF
3992 /* end confdefs.h. */
3995 main ()
3997 #ifndef __GNUC__
3998 choke me
3999 #endif
4002 return 0;
4004 _ACEOF
4005 rm -f conftest.$ac_objext
4006 if { (ac_try="$ac_compile"
4007 case "(($ac_try" in
4008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4009 *) ac_try_echo=$ac_try;;
4010 esac
4011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4012 $as_echo "$ac_try_echo") >&5
4013 (eval "$ac_compile") 2>conftest.er1
4014 ac_status=$?
4015 grep -v '^ *+' conftest.er1 >conftest.err
4016 rm -f conftest.er1
4017 cat conftest.err >&5
4018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); } && {
4020 test -z "$ac_c_werror_flag" ||
4021 test ! -s conftest.err
4022 } && test -s conftest.$ac_objext; then
4023 ac_compiler_gnu=yes
4024 else
4025 $as_echo "$as_me: failed program was:" >&5
4026 sed 's/^/| /' conftest.$ac_ext >&5
4028 ac_compiler_gnu=no
4031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4032 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4035 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4036 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4037 if test $ac_compiler_gnu = yes; then
4038 GCC=yes
4039 else
4040 GCC=
4042 ac_test_CFLAGS=${CFLAGS+set}
4043 ac_save_CFLAGS=$CFLAGS
4044 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4045 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4046 if test "${ac_cv_prog_cc_g+set}" = set; then
4047 $as_echo_n "(cached) " >&6
4048 else
4049 ac_save_c_werror_flag=$ac_c_werror_flag
4050 ac_c_werror_flag=yes
4051 ac_cv_prog_cc_g=no
4052 CFLAGS="-g"
4053 cat >conftest.$ac_ext <<_ACEOF
4054 /* confdefs.h. */
4055 _ACEOF
4056 cat confdefs.h >>conftest.$ac_ext
4057 cat >>conftest.$ac_ext <<_ACEOF
4058 /* end confdefs.h. */
4061 main ()
4065 return 0;
4067 _ACEOF
4068 rm -f conftest.$ac_objext
4069 if { (ac_try="$ac_compile"
4070 case "(($ac_try" in
4071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4072 *) ac_try_echo=$ac_try;;
4073 esac
4074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4075 $as_echo "$ac_try_echo") >&5
4076 (eval "$ac_compile") 2>conftest.er1
4077 ac_status=$?
4078 grep -v '^ *+' conftest.er1 >conftest.err
4079 rm -f conftest.er1
4080 cat conftest.err >&5
4081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); } && {
4083 test -z "$ac_c_werror_flag" ||
4084 test ! -s conftest.err
4085 } && test -s conftest.$ac_objext; then
4086 ac_cv_prog_cc_g=yes
4087 else
4088 $as_echo "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.$ac_ext >&5
4091 CFLAGS=""
4092 cat >conftest.$ac_ext <<_ACEOF
4093 /* confdefs.h. */
4094 _ACEOF
4095 cat confdefs.h >>conftest.$ac_ext
4096 cat >>conftest.$ac_ext <<_ACEOF
4097 /* end confdefs.h. */
4100 main ()
4104 return 0;
4106 _ACEOF
4107 rm -f conftest.$ac_objext
4108 if { (ac_try="$ac_compile"
4109 case "(($ac_try" in
4110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4111 *) ac_try_echo=$ac_try;;
4112 esac
4113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4114 $as_echo "$ac_try_echo") >&5
4115 (eval "$ac_compile") 2>conftest.er1
4116 ac_status=$?
4117 grep -v '^ *+' conftest.er1 >conftest.err
4118 rm -f conftest.er1
4119 cat conftest.err >&5
4120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); } && {
4122 test -z "$ac_c_werror_flag" ||
4123 test ! -s conftest.err
4124 } && test -s conftest.$ac_objext; then
4126 else
4127 $as_echo "$as_me: failed program was:" >&5
4128 sed 's/^/| /' conftest.$ac_ext >&5
4130 ac_c_werror_flag=$ac_save_c_werror_flag
4131 CFLAGS="-g"
4132 cat >conftest.$ac_ext <<_ACEOF
4133 /* confdefs.h. */
4134 _ACEOF
4135 cat confdefs.h >>conftest.$ac_ext
4136 cat >>conftest.$ac_ext <<_ACEOF
4137 /* end confdefs.h. */
4140 main ()
4144 return 0;
4146 _ACEOF
4147 rm -f conftest.$ac_objext
4148 if { (ac_try="$ac_compile"
4149 case "(($ac_try" in
4150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4151 *) ac_try_echo=$ac_try;;
4152 esac
4153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4154 $as_echo "$ac_try_echo") >&5
4155 (eval "$ac_compile") 2>conftest.er1
4156 ac_status=$?
4157 grep -v '^ *+' conftest.er1 >conftest.err
4158 rm -f conftest.er1
4159 cat conftest.err >&5
4160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); } && {
4162 test -z "$ac_c_werror_flag" ||
4163 test ! -s conftest.err
4164 } && test -s conftest.$ac_objext; then
4165 ac_cv_prog_cc_g=yes
4166 else
4167 $as_echo "$as_me: failed program was:" >&5
4168 sed 's/^/| /' conftest.$ac_ext >&5
4173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180 ac_c_werror_flag=$ac_save_c_werror_flag
4182 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4183 $as_echo "$ac_cv_prog_cc_g" >&6; }
4184 if test "$ac_test_CFLAGS" = set; then
4185 CFLAGS=$ac_save_CFLAGS
4186 elif test $ac_cv_prog_cc_g = yes; then
4187 if test "$GCC" = yes; then
4188 CFLAGS="-g -O2"
4189 else
4190 CFLAGS="-g"
4192 else
4193 if test "$GCC" = yes; then
4194 CFLAGS="-O2"
4195 else
4196 CFLAGS=
4199 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4200 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4201 if test "${ac_cv_prog_cc_c89+set}" = set; then
4202 $as_echo_n "(cached) " >&6
4203 else
4204 ac_cv_prog_cc_c89=no
4205 ac_save_CC=$CC
4206 cat >conftest.$ac_ext <<_ACEOF
4207 /* confdefs.h. */
4208 _ACEOF
4209 cat confdefs.h >>conftest.$ac_ext
4210 cat >>conftest.$ac_ext <<_ACEOF
4211 /* end confdefs.h. */
4212 #include <stdarg.h>
4213 #include <stdio.h>
4214 #include <sys/types.h>
4215 #include <sys/stat.h>
4216 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4217 struct buf { int x; };
4218 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4219 static char *e (p, i)
4220 char **p;
4221 int i;
4223 return p[i];
4225 static char *f (char * (*g) (char **, int), char **p, ...)
4227 char *s;
4228 va_list v;
4229 va_start (v,p);
4230 s = g (p, va_arg (v,int));
4231 va_end (v);
4232 return s;
4235 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4236 function prototypes and stuff, but not '\xHH' hex character constants.
4237 These don't provoke an error unfortunately, instead are silently treated
4238 as 'x'. The following induces an error, until -std is added to get
4239 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4240 array size at least. It's necessary to write '\x00'==0 to get something
4241 that's true only with -std. */
4242 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4244 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4245 inside strings and character constants. */
4246 #define FOO(x) 'x'
4247 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4249 int test (int i, double x);
4250 struct s1 {int (*f) (int a);};
4251 struct s2 {int (*f) (double a);};
4252 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4253 int argc;
4254 char **argv;
4256 main ()
4258 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4260 return 0;
4262 _ACEOF
4263 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4264 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4266 CC="$ac_save_CC $ac_arg"
4267 rm -f conftest.$ac_objext
4268 if { (ac_try="$ac_compile"
4269 case "(($ac_try" in
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4272 esac
4273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4274 $as_echo "$ac_try_echo") >&5
4275 (eval "$ac_compile") 2>conftest.er1
4276 ac_status=$?
4277 grep -v '^ *+' conftest.er1 >conftest.err
4278 rm -f conftest.er1
4279 cat conftest.err >&5
4280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); } && {
4282 test -z "$ac_c_werror_flag" ||
4283 test ! -s conftest.err
4284 } && test -s conftest.$ac_objext; then
4285 ac_cv_prog_cc_c89=$ac_arg
4286 else
4287 $as_echo "$as_me: failed program was:" >&5
4288 sed 's/^/| /' conftest.$ac_ext >&5
4293 rm -f core conftest.err conftest.$ac_objext
4294 test "x$ac_cv_prog_cc_c89" != "xno" && break
4295 done
4296 rm -f conftest.$ac_ext
4297 CC=$ac_save_CC
4300 # AC_CACHE_VAL
4301 case "x$ac_cv_prog_cc_c89" in
4303 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4304 $as_echo "none needed" >&6; } ;;
4305 xno)
4306 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4307 $as_echo "unsupported" >&6; } ;;
4309 CC="$CC $ac_cv_prog_cc_c89"
4310 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4311 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4312 esac
4315 ac_ext=c
4316 ac_cpp='$CPP $CPPFLAGS'
4317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4321 depcc="$CC" am_compiler_list=
4323 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4324 $as_echo_n "checking dependency style of $depcc... " >&6; }
4325 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4326 $as_echo_n "(cached) " >&6
4327 else
4328 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4329 # We make a subdir and do the tests there. Otherwise we can end up
4330 # making bogus files that we don't know about and never remove. For
4331 # instance it was reported that on HP-UX the gcc test will end up
4332 # making a dummy file named `D' -- because `-MD' means `put the output
4333 # in D'.
4334 mkdir conftest.dir
4335 # Copy depcomp to subdir because otherwise we won't find it if we're
4336 # using a relative directory.
4337 cp "$am_depcomp" conftest.dir
4338 cd conftest.dir
4339 # We will build objects and dependencies in a subdirectory because
4340 # it helps to detect inapplicable dependency modes. For instance
4341 # both Tru64's cc and ICC support -MD to output dependencies as a
4342 # side effect of compilation, but ICC will put the dependencies in
4343 # the current directory while Tru64 will put them in the object
4344 # directory.
4345 mkdir sub
4347 am_cv_CC_dependencies_compiler_type=none
4348 if test "$am_compiler_list" = ""; then
4349 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4351 for depmode in $am_compiler_list; do
4352 # Setup a source with many dependencies, because some compilers
4353 # like to wrap large dependency lists on column 80 (with \), and
4354 # we should not choose a depcomp mode which is confused by this.
4356 # We need to recreate these files for each test, as the compiler may
4357 # overwrite some of them when testing with obscure command lines.
4358 # This happens at least with the AIX C compiler.
4359 : > sub/conftest.c
4360 for i in 1 2 3 4 5 6; do
4361 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4362 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4363 # Solaris 8's {/usr,}/bin/sh.
4364 touch sub/conftst$i.h
4365 done
4366 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4368 case $depmode in
4369 nosideeffect)
4370 # after this tag, mechanisms are not by side-effect, so they'll
4371 # only be used when explicitly requested
4372 if test "x$enable_dependency_tracking" = xyes; then
4373 continue
4374 else
4375 break
4378 none) break ;;
4379 esac
4380 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4381 # mode. It turns out that the SunPro C++ compiler does not properly
4382 # handle `-M -o', and we need to detect this.
4383 if depmode=$depmode \
4384 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4385 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4386 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4387 >/dev/null 2>conftest.err &&
4388 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4389 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4390 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4391 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4392 # icc doesn't choke on unknown options, it will just issue warnings
4393 # or remarks (even with -Werror). So we grep stderr for any message
4394 # that says an option was ignored or not supported.
4395 # When given -MP, icc 7.0 and 7.1 complain thusly:
4396 # icc: Command line warning: ignoring option '-M'; no argument required
4397 # The diagnosis changed in icc 8.0:
4398 # icc: Command line remark: option '-MP' not supported
4399 if (grep 'ignoring option' conftest.err ||
4400 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4401 am_cv_CC_dependencies_compiler_type=$depmode
4402 break
4405 done
4407 cd ..
4408 rm -rf conftest.dir
4409 else
4410 am_cv_CC_dependencies_compiler_type=none
4414 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4415 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4416 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4419 test "x$enable_dependency_tracking" != xno \
4420 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4421 am__fastdepCC_TRUE=
4422 am__fastdepCC_FALSE='#'
4423 else
4424 am__fastdepCC_TRUE='#'
4425 am__fastdepCC_FALSE=
4429 ac_ext=c
4430 ac_cpp='$CPP $CPPFLAGS'
4431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4434 if test -n "$ac_tool_prefix"; then
4435 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4436 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4437 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4438 $as_echo_n "checking for $ac_word... " >&6; }
4439 if test "${ac_cv_prog_CC+set}" = set; then
4440 $as_echo_n "(cached) " >&6
4441 else
4442 if test -n "$CC"; then
4443 ac_cv_prog_CC="$CC" # Let the user override the test.
4444 else
4445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446 for as_dir in $PATH
4448 IFS=$as_save_IFS
4449 test -z "$as_dir" && as_dir=.
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4452 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4453 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4454 break 2
4456 done
4457 done
4458 IFS=$as_save_IFS
4462 CC=$ac_cv_prog_CC
4463 if test -n "$CC"; then
4464 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4465 $as_echo "$CC" >&6; }
4466 else
4467 { $as_echo "$as_me:$LINENO: result: no" >&5
4468 $as_echo "no" >&6; }
4473 if test -z "$ac_cv_prog_CC"; then
4474 ac_ct_CC=$CC
4475 # Extract the first word of "gcc", so it can be a program name with args.
4476 set dummy gcc; ac_word=$2
4477 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4478 $as_echo_n "checking for $ac_word... " >&6; }
4479 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4480 $as_echo_n "(cached) " >&6
4481 else
4482 if test -n "$ac_ct_CC"; then
4483 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4484 else
4485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486 for as_dir in $PATH
4488 IFS=$as_save_IFS
4489 test -z "$as_dir" && as_dir=.
4490 for ac_exec_ext in '' $ac_executable_extensions; do
4491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4492 ac_cv_prog_ac_ct_CC="gcc"
4493 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4494 break 2
4496 done
4497 done
4498 IFS=$as_save_IFS
4502 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4503 if test -n "$ac_ct_CC"; then
4504 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4505 $as_echo "$ac_ct_CC" >&6; }
4506 else
4507 { $as_echo "$as_me:$LINENO: result: no" >&5
4508 $as_echo "no" >&6; }
4511 if test "x$ac_ct_CC" = x; then
4512 CC=""
4513 else
4514 case $cross_compiling:$ac_tool_warned in
4515 yes:)
4516 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4517 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4518 ac_tool_warned=yes ;;
4519 esac
4520 CC=$ac_ct_CC
4522 else
4523 CC="$ac_cv_prog_CC"
4526 if test -z "$CC"; then
4527 if test -n "$ac_tool_prefix"; then
4528 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4529 set dummy ${ac_tool_prefix}cc; ac_word=$2
4530 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4531 $as_echo_n "checking for $ac_word... " >&6; }
4532 if test "${ac_cv_prog_CC+set}" = set; then
4533 $as_echo_n "(cached) " >&6
4534 else
4535 if test -n "$CC"; then
4536 ac_cv_prog_CC="$CC" # Let the user override the test.
4537 else
4538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539 for as_dir in $PATH
4541 IFS=$as_save_IFS
4542 test -z "$as_dir" && as_dir=.
4543 for ac_exec_ext in '' $ac_executable_extensions; do
4544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4545 ac_cv_prog_CC="${ac_tool_prefix}cc"
4546 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4547 break 2
4549 done
4550 done
4551 IFS=$as_save_IFS
4555 CC=$ac_cv_prog_CC
4556 if test -n "$CC"; then
4557 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4558 $as_echo "$CC" >&6; }
4559 else
4560 { $as_echo "$as_me:$LINENO: result: no" >&5
4561 $as_echo "no" >&6; }
4567 if test -z "$CC"; then
4568 # Extract the first word of "cc", so it can be a program name with args.
4569 set dummy cc; ac_word=$2
4570 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4571 $as_echo_n "checking for $ac_word... " >&6; }
4572 if test "${ac_cv_prog_CC+set}" = set; then
4573 $as_echo_n "(cached) " >&6
4574 else
4575 if test -n "$CC"; then
4576 ac_cv_prog_CC="$CC" # Let the user override the test.
4577 else
4578 ac_prog_rejected=no
4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580 for as_dir in $PATH
4582 IFS=$as_save_IFS
4583 test -z "$as_dir" && as_dir=.
4584 for ac_exec_ext in '' $ac_executable_extensions; do
4585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4586 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4587 ac_prog_rejected=yes
4588 continue
4590 ac_cv_prog_CC="cc"
4591 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4592 break 2
4594 done
4595 done
4596 IFS=$as_save_IFS
4598 if test $ac_prog_rejected = yes; then
4599 # We found a bogon in the path, so make sure we never use it.
4600 set dummy $ac_cv_prog_CC
4601 shift
4602 if test $# != 0; then
4603 # We chose a different compiler from the bogus one.
4604 # However, it has the same basename, so the bogon will be chosen
4605 # first if we set CC to just the basename; use the full file name.
4606 shift
4607 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4612 CC=$ac_cv_prog_CC
4613 if test -n "$CC"; then
4614 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4615 $as_echo "$CC" >&6; }
4616 else
4617 { $as_echo "$as_me:$LINENO: result: no" >&5
4618 $as_echo "no" >&6; }
4623 if test -z "$CC"; then
4624 if test -n "$ac_tool_prefix"; then
4625 for ac_prog in cl.exe
4627 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4628 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4629 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4630 $as_echo_n "checking for $ac_word... " >&6; }
4631 if test "${ac_cv_prog_CC+set}" = set; then
4632 $as_echo_n "(cached) " >&6
4633 else
4634 if test -n "$CC"; then
4635 ac_cv_prog_CC="$CC" # Let the user override the test.
4636 else
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638 for as_dir in $PATH
4640 IFS=$as_save_IFS
4641 test -z "$as_dir" && as_dir=.
4642 for ac_exec_ext in '' $ac_executable_extensions; do
4643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4644 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4645 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4646 break 2
4648 done
4649 done
4650 IFS=$as_save_IFS
4654 CC=$ac_cv_prog_CC
4655 if test -n "$CC"; then
4656 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4657 $as_echo "$CC" >&6; }
4658 else
4659 { $as_echo "$as_me:$LINENO: result: no" >&5
4660 $as_echo "no" >&6; }
4664 test -n "$CC" && break
4665 done
4667 if test -z "$CC"; then
4668 ac_ct_CC=$CC
4669 for ac_prog in cl.exe
4671 # Extract the first word of "$ac_prog", so it can be a program name with args.
4672 set dummy $ac_prog; ac_word=$2
4673 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4674 $as_echo_n "checking for $ac_word... " >&6; }
4675 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4676 $as_echo_n "(cached) " >&6
4677 else
4678 if test -n "$ac_ct_CC"; then
4679 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4680 else
4681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682 for as_dir in $PATH
4684 IFS=$as_save_IFS
4685 test -z "$as_dir" && as_dir=.
4686 for ac_exec_ext in '' $ac_executable_extensions; do
4687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4688 ac_cv_prog_ac_ct_CC="$ac_prog"
4689 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4690 break 2
4692 done
4693 done
4694 IFS=$as_save_IFS
4698 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4699 if test -n "$ac_ct_CC"; then
4700 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4701 $as_echo "$ac_ct_CC" >&6; }
4702 else
4703 { $as_echo "$as_me:$LINENO: result: no" >&5
4704 $as_echo "no" >&6; }
4708 test -n "$ac_ct_CC" && break
4709 done
4711 if test "x$ac_ct_CC" = x; then
4712 CC=""
4713 else
4714 case $cross_compiling:$ac_tool_warned in
4715 yes:)
4716 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4717 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4718 ac_tool_warned=yes ;;
4719 esac
4720 CC=$ac_ct_CC
4727 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4729 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4730 See \`config.log' for more details." >&5
4731 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4732 See \`config.log' for more details." >&2;}
4733 { (exit 1); exit 1; }; }; }
4735 # Provide some information about the compiler.
4736 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4737 set X $ac_compile
4738 ac_compiler=$2
4739 { (ac_try="$ac_compiler --version >&5"
4740 case "(($ac_try" in
4741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4742 *) ac_try_echo=$ac_try;;
4743 esac
4744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4745 $as_echo "$ac_try_echo") >&5
4746 (eval "$ac_compiler --version >&5") 2>&5
4747 ac_status=$?
4748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); }
4750 { (ac_try="$ac_compiler -v >&5"
4751 case "(($ac_try" in
4752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4753 *) ac_try_echo=$ac_try;;
4754 esac
4755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4756 $as_echo "$ac_try_echo") >&5
4757 (eval "$ac_compiler -v >&5") 2>&5
4758 ac_status=$?
4759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); }
4761 { (ac_try="$ac_compiler -V >&5"
4762 case "(($ac_try" in
4763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4764 *) ac_try_echo=$ac_try;;
4765 esac
4766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4767 $as_echo "$ac_try_echo") >&5
4768 (eval "$ac_compiler -V >&5") 2>&5
4769 ac_status=$?
4770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); }
4773 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4774 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4775 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4776 $as_echo_n "(cached) " >&6
4777 else
4778 cat >conftest.$ac_ext <<_ACEOF
4779 /* confdefs.h. */
4780 _ACEOF
4781 cat confdefs.h >>conftest.$ac_ext
4782 cat >>conftest.$ac_ext <<_ACEOF
4783 /* end confdefs.h. */
4786 main ()
4788 #ifndef __GNUC__
4789 choke me
4790 #endif
4793 return 0;
4795 _ACEOF
4796 rm -f conftest.$ac_objext
4797 if { (ac_try="$ac_compile"
4798 case "(($ac_try" in
4799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4800 *) ac_try_echo=$ac_try;;
4801 esac
4802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4803 $as_echo "$ac_try_echo") >&5
4804 (eval "$ac_compile") 2>conftest.er1
4805 ac_status=$?
4806 grep -v '^ *+' conftest.er1 >conftest.err
4807 rm -f conftest.er1
4808 cat conftest.err >&5
4809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); } && {
4811 test -z "$ac_c_werror_flag" ||
4812 test ! -s conftest.err
4813 } && test -s conftest.$ac_objext; then
4814 ac_compiler_gnu=yes
4815 else
4816 $as_echo "$as_me: failed program was:" >&5
4817 sed 's/^/| /' conftest.$ac_ext >&5
4819 ac_compiler_gnu=no
4822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4823 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4826 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4827 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4828 if test $ac_compiler_gnu = yes; then
4829 GCC=yes
4830 else
4831 GCC=
4833 ac_test_CFLAGS=${CFLAGS+set}
4834 ac_save_CFLAGS=$CFLAGS
4835 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4836 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4837 if test "${ac_cv_prog_cc_g+set}" = set; then
4838 $as_echo_n "(cached) " >&6
4839 else
4840 ac_save_c_werror_flag=$ac_c_werror_flag
4841 ac_c_werror_flag=yes
4842 ac_cv_prog_cc_g=no
4843 CFLAGS="-g"
4844 cat >conftest.$ac_ext <<_ACEOF
4845 /* confdefs.h. */
4846 _ACEOF
4847 cat confdefs.h >>conftest.$ac_ext
4848 cat >>conftest.$ac_ext <<_ACEOF
4849 /* end confdefs.h. */
4852 main ()
4856 return 0;
4858 _ACEOF
4859 rm -f conftest.$ac_objext
4860 if { (ac_try="$ac_compile"
4861 case "(($ac_try" in
4862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4863 *) ac_try_echo=$ac_try;;
4864 esac
4865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4866 $as_echo "$ac_try_echo") >&5
4867 (eval "$ac_compile") 2>conftest.er1
4868 ac_status=$?
4869 grep -v '^ *+' conftest.er1 >conftest.err
4870 rm -f conftest.er1
4871 cat conftest.err >&5
4872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } && {
4874 test -z "$ac_c_werror_flag" ||
4875 test ! -s conftest.err
4876 } && test -s conftest.$ac_objext; then
4877 ac_cv_prog_cc_g=yes
4878 else
4879 $as_echo "$as_me: failed program was:" >&5
4880 sed 's/^/| /' conftest.$ac_ext >&5
4882 CFLAGS=""
4883 cat >conftest.$ac_ext <<_ACEOF
4884 /* confdefs.h. */
4885 _ACEOF
4886 cat confdefs.h >>conftest.$ac_ext
4887 cat >>conftest.$ac_ext <<_ACEOF
4888 /* end confdefs.h. */
4891 main ()
4895 return 0;
4897 _ACEOF
4898 rm -f conftest.$ac_objext
4899 if { (ac_try="$ac_compile"
4900 case "(($ac_try" in
4901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4902 *) ac_try_echo=$ac_try;;
4903 esac
4904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4905 $as_echo "$ac_try_echo") >&5
4906 (eval "$ac_compile") 2>conftest.er1
4907 ac_status=$?
4908 grep -v '^ *+' conftest.er1 >conftest.err
4909 rm -f conftest.er1
4910 cat conftest.err >&5
4911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); } && {
4913 test -z "$ac_c_werror_flag" ||
4914 test ! -s conftest.err
4915 } && test -s conftest.$ac_objext; then
4917 else
4918 $as_echo "$as_me: failed program was:" >&5
4919 sed 's/^/| /' conftest.$ac_ext >&5
4921 ac_c_werror_flag=$ac_save_c_werror_flag
4922 CFLAGS="-g"
4923 cat >conftest.$ac_ext <<_ACEOF
4924 /* confdefs.h. */
4925 _ACEOF
4926 cat confdefs.h >>conftest.$ac_ext
4927 cat >>conftest.$ac_ext <<_ACEOF
4928 /* end confdefs.h. */
4931 main ()
4935 return 0;
4937 _ACEOF
4938 rm -f conftest.$ac_objext
4939 if { (ac_try="$ac_compile"
4940 case "(($ac_try" in
4941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4942 *) ac_try_echo=$ac_try;;
4943 esac
4944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4945 $as_echo "$ac_try_echo") >&5
4946 (eval "$ac_compile") 2>conftest.er1
4947 ac_status=$?
4948 grep -v '^ *+' conftest.er1 >conftest.err
4949 rm -f conftest.er1
4950 cat conftest.err >&5
4951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); } && {
4953 test -z "$ac_c_werror_flag" ||
4954 test ! -s conftest.err
4955 } && test -s conftest.$ac_objext; then
4956 ac_cv_prog_cc_g=yes
4957 else
4958 $as_echo "$as_me: failed program was:" >&5
4959 sed 's/^/| /' conftest.$ac_ext >&5
4964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4971 ac_c_werror_flag=$ac_save_c_werror_flag
4973 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4974 $as_echo "$ac_cv_prog_cc_g" >&6; }
4975 if test "$ac_test_CFLAGS" = set; then
4976 CFLAGS=$ac_save_CFLAGS
4977 elif test $ac_cv_prog_cc_g = yes; then
4978 if test "$GCC" = yes; then
4979 CFLAGS="-g -O2"
4980 else
4981 CFLAGS="-g"
4983 else
4984 if test "$GCC" = yes; then
4985 CFLAGS="-O2"
4986 else
4987 CFLAGS=
4990 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4991 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4992 if test "${ac_cv_prog_cc_c89+set}" = set; then
4993 $as_echo_n "(cached) " >&6
4994 else
4995 ac_cv_prog_cc_c89=no
4996 ac_save_CC=$CC
4997 cat >conftest.$ac_ext <<_ACEOF
4998 /* confdefs.h. */
4999 _ACEOF
5000 cat confdefs.h >>conftest.$ac_ext
5001 cat >>conftest.$ac_ext <<_ACEOF
5002 /* end confdefs.h. */
5003 #include <stdarg.h>
5004 #include <stdio.h>
5005 #include <sys/types.h>
5006 #include <sys/stat.h>
5007 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5008 struct buf { int x; };
5009 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5010 static char *e (p, i)
5011 char **p;
5012 int i;
5014 return p[i];
5016 static char *f (char * (*g) (char **, int), char **p, ...)
5018 char *s;
5019 va_list v;
5020 va_start (v,p);
5021 s = g (p, va_arg (v,int));
5022 va_end (v);
5023 return s;
5026 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5027 function prototypes and stuff, but not '\xHH' hex character constants.
5028 These don't provoke an error unfortunately, instead are silently treated
5029 as 'x'. The following induces an error, until -std is added to get
5030 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5031 array size at least. It's necessary to write '\x00'==0 to get something
5032 that's true only with -std. */
5033 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5035 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5036 inside strings and character constants. */
5037 #define FOO(x) 'x'
5038 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5040 int test (int i, double x);
5041 struct s1 {int (*f) (int a);};
5042 struct s2 {int (*f) (double a);};
5043 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5044 int argc;
5045 char **argv;
5047 main ()
5049 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5051 return 0;
5053 _ACEOF
5054 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5055 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5057 CC="$ac_save_CC $ac_arg"
5058 rm -f conftest.$ac_objext
5059 if { (ac_try="$ac_compile"
5060 case "(($ac_try" in
5061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5062 *) ac_try_echo=$ac_try;;
5063 esac
5064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5065 $as_echo "$ac_try_echo") >&5
5066 (eval "$ac_compile") 2>conftest.er1
5067 ac_status=$?
5068 grep -v '^ *+' conftest.er1 >conftest.err
5069 rm -f conftest.er1
5070 cat conftest.err >&5
5071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); } && {
5073 test -z "$ac_c_werror_flag" ||
5074 test ! -s conftest.err
5075 } && test -s conftest.$ac_objext; then
5076 ac_cv_prog_cc_c89=$ac_arg
5077 else
5078 $as_echo "$as_me: failed program was:" >&5
5079 sed 's/^/| /' conftest.$ac_ext >&5
5084 rm -f core conftest.err conftest.$ac_objext
5085 test "x$ac_cv_prog_cc_c89" != "xno" && break
5086 done
5087 rm -f conftest.$ac_ext
5088 CC=$ac_save_CC
5091 # AC_CACHE_VAL
5092 case "x$ac_cv_prog_cc_c89" in
5094 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5095 $as_echo "none needed" >&6; } ;;
5096 xno)
5097 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5098 $as_echo "unsupported" >&6; } ;;
5100 CC="$CC $ac_cv_prog_cc_c89"
5101 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5102 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5103 esac
5106 ac_ext=c
5107 ac_cpp='$CPP $CPPFLAGS'
5108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5112 depcc="$CC" am_compiler_list=
5114 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5115 $as_echo_n "checking dependency style of $depcc... " >&6; }
5116 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5117 $as_echo_n "(cached) " >&6
5118 else
5119 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5120 # We make a subdir and do the tests there. Otherwise we can end up
5121 # making bogus files that we don't know about and never remove. For
5122 # instance it was reported that on HP-UX the gcc test will end up
5123 # making a dummy file named `D' -- because `-MD' means `put the output
5124 # in D'.
5125 mkdir conftest.dir
5126 # Copy depcomp to subdir because otherwise we won't find it if we're
5127 # using a relative directory.
5128 cp "$am_depcomp" conftest.dir
5129 cd conftest.dir
5130 # We will build objects and dependencies in a subdirectory because
5131 # it helps to detect inapplicable dependency modes. For instance
5132 # both Tru64's cc and ICC support -MD to output dependencies as a
5133 # side effect of compilation, but ICC will put the dependencies in
5134 # the current directory while Tru64 will put them in the object
5135 # directory.
5136 mkdir sub
5138 am_cv_CC_dependencies_compiler_type=none
5139 if test "$am_compiler_list" = ""; then
5140 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5142 for depmode in $am_compiler_list; do
5143 # Setup a source with many dependencies, because some compilers
5144 # like to wrap large dependency lists on column 80 (with \), and
5145 # we should not choose a depcomp mode which is confused by this.
5147 # We need to recreate these files for each test, as the compiler may
5148 # overwrite some of them when testing with obscure command lines.
5149 # This happens at least with the AIX C compiler.
5150 : > sub/conftest.c
5151 for i in 1 2 3 4 5 6; do
5152 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5153 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5154 # Solaris 8's {/usr,}/bin/sh.
5155 touch sub/conftst$i.h
5156 done
5157 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5159 case $depmode in
5160 nosideeffect)
5161 # after this tag, mechanisms are not by side-effect, so they'll
5162 # only be used when explicitly requested
5163 if test "x$enable_dependency_tracking" = xyes; then
5164 continue
5165 else
5166 break
5169 none) break ;;
5170 esac
5171 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5172 # mode. It turns out that the SunPro C++ compiler does not properly
5173 # handle `-M -o', and we need to detect this.
5174 if depmode=$depmode \
5175 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5176 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5177 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5178 >/dev/null 2>conftest.err &&
5179 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5180 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5181 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5182 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5183 # icc doesn't choke on unknown options, it will just issue warnings
5184 # or remarks (even with -Werror). So we grep stderr for any message
5185 # that says an option was ignored or not supported.
5186 # When given -MP, icc 7.0 and 7.1 complain thusly:
5187 # icc: Command line warning: ignoring option '-M'; no argument required
5188 # The diagnosis changed in icc 8.0:
5189 # icc: Command line remark: option '-MP' not supported
5190 if (grep 'ignoring option' conftest.err ||
5191 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5192 am_cv_CC_dependencies_compiler_type=$depmode
5193 break
5196 done
5198 cd ..
5199 rm -rf conftest.dir
5200 else
5201 am_cv_CC_dependencies_compiler_type=none
5205 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5206 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5207 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5210 test "x$enable_dependency_tracking" != xno \
5211 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5212 am__fastdepCC_TRUE=
5213 am__fastdepCC_FALSE='#'
5214 else
5215 am__fastdepCC_TRUE='#'
5216 am__fastdepCC_FALSE=
5221 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5223 ac_ext=c
5224 ac_cpp='$CPP $CPPFLAGS'
5225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5228 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5229 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5230 # On Suns, sometimes $CPP names a directory.
5231 if test -n "$CPP" && test -d "$CPP"; then
5232 CPP=
5234 if test -z "$CPP"; then
5235 if test "${ac_cv_prog_CPP+set}" = set; then
5236 $as_echo_n "(cached) " >&6
5237 else
5238 # Double quotes because CPP needs to be expanded
5239 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5241 ac_preproc_ok=false
5242 for ac_c_preproc_warn_flag in '' yes
5244 # Use a header file that comes with gcc, so configuring glibc
5245 # with a fresh cross-compiler works.
5246 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5247 # <limits.h> exists even on freestanding compilers.
5248 # On the NeXT, cc -E runs the code through the compiler's parser,
5249 # not just through cpp. "Syntax error" is here to catch this case.
5250 cat >conftest.$ac_ext <<_ACEOF
5251 /* confdefs.h. */
5252 _ACEOF
5253 cat confdefs.h >>conftest.$ac_ext
5254 cat >>conftest.$ac_ext <<_ACEOF
5255 /* end confdefs.h. */
5256 #ifdef __STDC__
5257 # include <limits.h>
5258 #else
5259 # include <assert.h>
5260 #endif
5261 Syntax error
5262 _ACEOF
5263 if { (ac_try="$ac_cpp conftest.$ac_ext"
5264 case "(($ac_try" in
5265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5266 *) ac_try_echo=$ac_try;;
5267 esac
5268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5269 $as_echo "$ac_try_echo") >&5
5270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5271 ac_status=$?
5272 grep -v '^ *+' conftest.er1 >conftest.err
5273 rm -f conftest.er1
5274 cat conftest.err >&5
5275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); } >/dev/null && {
5277 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5278 test ! -s conftest.err
5279 }; then
5281 else
5282 $as_echo "$as_me: failed program was:" >&5
5283 sed 's/^/| /' conftest.$ac_ext >&5
5285 # Broken: fails on valid input.
5286 continue
5289 rm -f conftest.err conftest.$ac_ext
5291 # OK, works on sane cases. Now check whether nonexistent headers
5292 # can be detected and how.
5293 cat >conftest.$ac_ext <<_ACEOF
5294 /* confdefs.h. */
5295 _ACEOF
5296 cat confdefs.h >>conftest.$ac_ext
5297 cat >>conftest.$ac_ext <<_ACEOF
5298 /* end confdefs.h. */
5299 #include <ac_nonexistent.h>
5300 _ACEOF
5301 if { (ac_try="$ac_cpp conftest.$ac_ext"
5302 case "(($ac_try" in
5303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5304 *) ac_try_echo=$ac_try;;
5305 esac
5306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5307 $as_echo "$ac_try_echo") >&5
5308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5309 ac_status=$?
5310 grep -v '^ *+' conftest.er1 >conftest.err
5311 rm -f conftest.er1
5312 cat conftest.err >&5
5313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); } >/dev/null && {
5315 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5316 test ! -s conftest.err
5317 }; then
5318 # Broken: success on invalid input.
5319 continue
5320 else
5321 $as_echo "$as_me: failed program was:" >&5
5322 sed 's/^/| /' conftest.$ac_ext >&5
5324 # Passes both tests.
5325 ac_preproc_ok=:
5326 break
5329 rm -f conftest.err conftest.$ac_ext
5331 done
5332 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5333 rm -f conftest.err conftest.$ac_ext
5334 if $ac_preproc_ok; then
5335 break
5338 done
5339 ac_cv_prog_CPP=$CPP
5342 CPP=$ac_cv_prog_CPP
5343 else
5344 ac_cv_prog_CPP=$CPP
5346 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5347 $as_echo "$CPP" >&6; }
5348 ac_preproc_ok=false
5349 for ac_c_preproc_warn_flag in '' yes
5351 # Use a header file that comes with gcc, so configuring glibc
5352 # with a fresh cross-compiler works.
5353 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5354 # <limits.h> exists even on freestanding compilers.
5355 # On the NeXT, cc -E runs the code through the compiler's parser,
5356 # not just through cpp. "Syntax error" is here to catch this case.
5357 cat >conftest.$ac_ext <<_ACEOF
5358 /* confdefs.h. */
5359 _ACEOF
5360 cat confdefs.h >>conftest.$ac_ext
5361 cat >>conftest.$ac_ext <<_ACEOF
5362 /* end confdefs.h. */
5363 #ifdef __STDC__
5364 # include <limits.h>
5365 #else
5366 # include <assert.h>
5367 #endif
5368 Syntax error
5369 _ACEOF
5370 if { (ac_try="$ac_cpp conftest.$ac_ext"
5371 case "(($ac_try" in
5372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5373 *) ac_try_echo=$ac_try;;
5374 esac
5375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5376 $as_echo "$ac_try_echo") >&5
5377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5378 ac_status=$?
5379 grep -v '^ *+' conftest.er1 >conftest.err
5380 rm -f conftest.er1
5381 cat conftest.err >&5
5382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); } >/dev/null && {
5384 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5385 test ! -s conftest.err
5386 }; then
5388 else
5389 $as_echo "$as_me: failed program was:" >&5
5390 sed 's/^/| /' conftest.$ac_ext >&5
5392 # Broken: fails on valid input.
5393 continue
5396 rm -f conftest.err conftest.$ac_ext
5398 # OK, works on sane cases. Now check whether nonexistent headers
5399 # can be detected and how.
5400 cat >conftest.$ac_ext <<_ACEOF
5401 /* confdefs.h. */
5402 _ACEOF
5403 cat confdefs.h >>conftest.$ac_ext
5404 cat >>conftest.$ac_ext <<_ACEOF
5405 /* end confdefs.h. */
5406 #include <ac_nonexistent.h>
5407 _ACEOF
5408 if { (ac_try="$ac_cpp conftest.$ac_ext"
5409 case "(($ac_try" in
5410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5411 *) ac_try_echo=$ac_try;;
5412 esac
5413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5414 $as_echo "$ac_try_echo") >&5
5415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5416 ac_status=$?
5417 grep -v '^ *+' conftest.er1 >conftest.err
5418 rm -f conftest.er1
5419 cat conftest.err >&5
5420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421 (exit $ac_status); } >/dev/null && {
5422 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5423 test ! -s conftest.err
5424 }; then
5425 # Broken: success on invalid input.
5426 continue
5427 else
5428 $as_echo "$as_me: failed program was:" >&5
5429 sed 's/^/| /' conftest.$ac_ext >&5
5431 # Passes both tests.
5432 ac_preproc_ok=:
5433 break
5436 rm -f conftest.err conftest.$ac_ext
5438 done
5439 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5440 rm -f conftest.err conftest.$ac_ext
5441 if $ac_preproc_ok; then
5443 else
5444 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5446 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5447 See \`config.log' for more details." >&5
5448 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5449 See \`config.log' for more details." >&2;}
5450 { (exit 1); exit 1; }; }; }
5453 ac_ext=c
5454 ac_cpp='$CPP $CPPFLAGS'
5455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5460 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5461 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5462 if test "${ac_cv_path_GREP+set}" = set; then
5463 $as_echo_n "(cached) " >&6
5464 else
5465 if test -z "$GREP"; then
5466 ac_path_GREP_found=false
5467 # Loop through the user's path and test for each of PROGNAME-LIST
5468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5469 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5471 IFS=$as_save_IFS
5472 test -z "$as_dir" && as_dir=.
5473 for ac_prog in grep ggrep; do
5474 for ac_exec_ext in '' $ac_executable_extensions; do
5475 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5476 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5477 # Check for GNU ac_path_GREP and select it if it is found.
5478 # Check for GNU $ac_path_GREP
5479 case `"$ac_path_GREP" --version 2>&1` in
5480 *GNU*)
5481 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5483 ac_count=0
5484 $as_echo_n 0123456789 >"conftest.in"
5485 while :
5487 cat "conftest.in" "conftest.in" >"conftest.tmp"
5488 mv "conftest.tmp" "conftest.in"
5489 cp "conftest.in" "conftest.nl"
5490 $as_echo 'GREP' >> "conftest.nl"
5491 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5492 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5493 ac_count=`expr $ac_count + 1`
5494 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5495 # Best one so far, save it but keep looking for a better one
5496 ac_cv_path_GREP="$ac_path_GREP"
5497 ac_path_GREP_max=$ac_count
5499 # 10*(2^10) chars as input seems more than enough
5500 test $ac_count -gt 10 && break
5501 done
5502 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5503 esac
5505 $ac_path_GREP_found && break 3
5506 done
5507 done
5508 done
5509 IFS=$as_save_IFS
5510 if test -z "$ac_cv_path_GREP"; then
5511 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5512 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5513 { (exit 1); exit 1; }; }
5515 else
5516 ac_cv_path_GREP=$GREP
5520 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5521 $as_echo "$ac_cv_path_GREP" >&6; }
5522 GREP="$ac_cv_path_GREP"
5525 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5526 $as_echo_n "checking for egrep... " >&6; }
5527 if test "${ac_cv_path_EGREP+set}" = set; then
5528 $as_echo_n "(cached) " >&6
5529 else
5530 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5531 then ac_cv_path_EGREP="$GREP -E"
5532 else
5533 if test -z "$EGREP"; then
5534 ac_path_EGREP_found=false
5535 # Loop through the user's path and test for each of PROGNAME-LIST
5536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5537 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5539 IFS=$as_save_IFS
5540 test -z "$as_dir" && as_dir=.
5541 for ac_prog in egrep; do
5542 for ac_exec_ext in '' $ac_executable_extensions; do
5543 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5544 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5545 # Check for GNU ac_path_EGREP and select it if it is found.
5546 # Check for GNU $ac_path_EGREP
5547 case `"$ac_path_EGREP" --version 2>&1` in
5548 *GNU*)
5549 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5551 ac_count=0
5552 $as_echo_n 0123456789 >"conftest.in"
5553 while :
5555 cat "conftest.in" "conftest.in" >"conftest.tmp"
5556 mv "conftest.tmp" "conftest.in"
5557 cp "conftest.in" "conftest.nl"
5558 $as_echo 'EGREP' >> "conftest.nl"
5559 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5560 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5561 ac_count=`expr $ac_count + 1`
5562 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5563 # Best one so far, save it but keep looking for a better one
5564 ac_cv_path_EGREP="$ac_path_EGREP"
5565 ac_path_EGREP_max=$ac_count
5567 # 10*(2^10) chars as input seems more than enough
5568 test $ac_count -gt 10 && break
5569 done
5570 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5571 esac
5573 $ac_path_EGREP_found && break 3
5574 done
5575 done
5576 done
5577 IFS=$as_save_IFS
5578 if test -z "$ac_cv_path_EGREP"; then
5579 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5580 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5581 { (exit 1); exit 1; }; }
5583 else
5584 ac_cv_path_EGREP=$EGREP
5589 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5590 $as_echo "$ac_cv_path_EGREP" >&6; }
5591 EGREP="$ac_cv_path_EGREP"
5594 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5595 $as_echo_n "checking for ANSI C header files... " >&6; }
5596 if test "${ac_cv_header_stdc+set}" = set; then
5597 $as_echo_n "(cached) " >&6
5598 else
5599 cat >conftest.$ac_ext <<_ACEOF
5600 /* confdefs.h. */
5601 _ACEOF
5602 cat confdefs.h >>conftest.$ac_ext
5603 cat >>conftest.$ac_ext <<_ACEOF
5604 /* end confdefs.h. */
5605 #include <stdlib.h>
5606 #include <stdarg.h>
5607 #include <string.h>
5608 #include <float.h>
5611 main ()
5615 return 0;
5617 _ACEOF
5618 rm -f conftest.$ac_objext
5619 if { (ac_try="$ac_compile"
5620 case "(($ac_try" in
5621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5622 *) ac_try_echo=$ac_try;;
5623 esac
5624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5625 $as_echo "$ac_try_echo") >&5
5626 (eval "$ac_compile") 2>conftest.er1
5627 ac_status=$?
5628 grep -v '^ *+' conftest.er1 >conftest.err
5629 rm -f conftest.er1
5630 cat conftest.err >&5
5631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); } && {
5633 test -z "$ac_c_werror_flag" ||
5634 test ! -s conftest.err
5635 } && test -s conftest.$ac_objext; then
5636 ac_cv_header_stdc=yes
5637 else
5638 $as_echo "$as_me: failed program was:" >&5
5639 sed 's/^/| /' conftest.$ac_ext >&5
5641 ac_cv_header_stdc=no
5644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5646 if test $ac_cv_header_stdc = yes; then
5647 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5648 cat >conftest.$ac_ext <<_ACEOF
5649 /* confdefs.h. */
5650 _ACEOF
5651 cat confdefs.h >>conftest.$ac_ext
5652 cat >>conftest.$ac_ext <<_ACEOF
5653 /* end confdefs.h. */
5654 #include <string.h>
5656 _ACEOF
5657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5658 $EGREP "memchr" >/dev/null 2>&1; then
5660 else
5661 ac_cv_header_stdc=no
5663 rm -f conftest*
5667 if test $ac_cv_header_stdc = yes; then
5668 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5669 cat >conftest.$ac_ext <<_ACEOF
5670 /* confdefs.h. */
5671 _ACEOF
5672 cat confdefs.h >>conftest.$ac_ext
5673 cat >>conftest.$ac_ext <<_ACEOF
5674 /* end confdefs.h. */
5675 #include <stdlib.h>
5677 _ACEOF
5678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5679 $EGREP "free" >/dev/null 2>&1; then
5681 else
5682 ac_cv_header_stdc=no
5684 rm -f conftest*
5688 if test $ac_cv_header_stdc = yes; then
5689 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5690 if test "$cross_compiling" = yes; then
5692 else
5693 cat >conftest.$ac_ext <<_ACEOF
5694 /* confdefs.h. */
5695 _ACEOF
5696 cat confdefs.h >>conftest.$ac_ext
5697 cat >>conftest.$ac_ext <<_ACEOF
5698 /* end confdefs.h. */
5699 #include <ctype.h>
5700 #include <stdlib.h>
5701 #if ((' ' & 0x0FF) == 0x020)
5702 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5703 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5704 #else
5705 # define ISLOWER(c) \
5706 (('a' <= (c) && (c) <= 'i') \
5707 || ('j' <= (c) && (c) <= 'r') \
5708 || ('s' <= (c) && (c) <= 'z'))
5709 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5710 #endif
5712 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5714 main ()
5716 int i;
5717 for (i = 0; i < 256; i++)
5718 if (XOR (islower (i), ISLOWER (i))
5719 || toupper (i) != TOUPPER (i))
5720 return 2;
5721 return 0;
5723 _ACEOF
5724 rm -f conftest$ac_exeext
5725 if { (ac_try="$ac_link"
5726 case "(($ac_try" in
5727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5728 *) ac_try_echo=$ac_try;;
5729 esac
5730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5731 $as_echo "$ac_try_echo") >&5
5732 (eval "$ac_link") 2>&5
5733 ac_status=$?
5734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5736 { (case "(($ac_try" in
5737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5738 *) ac_try_echo=$ac_try;;
5739 esac
5740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5741 $as_echo "$ac_try_echo") >&5
5742 (eval "$ac_try") 2>&5
5743 ac_status=$?
5744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); }; }; then
5747 else
5748 $as_echo "$as_me: program exited with status $ac_status" >&5
5749 $as_echo "$as_me: failed program was:" >&5
5750 sed 's/^/| /' conftest.$ac_ext >&5
5752 ( exit $ac_status )
5753 ac_cv_header_stdc=no
5755 rm -rf conftest.dSYM
5756 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5762 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5763 $as_echo "$ac_cv_header_stdc" >&6; }
5764 if test $ac_cv_header_stdc = yes; then
5766 cat >>confdefs.h <<\_ACEOF
5767 #define STDC_HEADERS 1
5768 _ACEOF
5774 # ============ Switched off:
5775 #AC_SUBST(CFLAGS)
5776 #AC_SUBST(CPPFLAGS)
5777 #AC_SUBST(LDFLAGS)
5780 GNOME_COMPILE_WARNINGS
5782 #------------------------------------------------------------------------------
5783 # From gpaint:
5784 # The gnomeui library is required but the gnomeprint and gnomeprintui libraries
5785 # are optional. First we verify the gnomeui library is present. Then we check
5786 # for the presence of the gnomeprint libraries and set a flag to indicate the
5787 # print libraries are present. Finally, we run pkg-config to get the compile and
5788 # link flags for the combined set of libraries to eliminate duplications in
5789 # the CFLAGS.
5790 ## GNOME_MODULES="libgnomeui-2 >= 2.0.0"
5791 GNOME_PRINT="libgnomeprint-2.2 >= 2.2.0 libgnomeprintui-2.2 >=2.2.0"
5794 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5795 if test -n "$ac_tool_prefix"; then
5796 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5797 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5798 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5799 $as_echo_n "checking for $ac_word... " >&6; }
5800 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5801 $as_echo_n "(cached) " >&6
5802 else
5803 case $PKG_CONFIG in
5804 [\\/]* | ?:[\\/]*)
5805 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5809 for as_dir in $PATH
5811 IFS=$as_save_IFS
5812 test -z "$as_dir" && as_dir=.
5813 for ac_exec_ext in '' $ac_executable_extensions; do
5814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5815 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5816 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5817 break 2
5819 done
5820 done
5821 IFS=$as_save_IFS
5824 esac
5826 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5827 if test -n "$PKG_CONFIG"; then
5828 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5829 $as_echo "$PKG_CONFIG" >&6; }
5830 else
5831 { $as_echo "$as_me:$LINENO: result: no" >&5
5832 $as_echo "no" >&6; }
5837 if test -z "$ac_cv_path_PKG_CONFIG"; then
5838 ac_pt_PKG_CONFIG=$PKG_CONFIG
5839 # Extract the first word of "pkg-config", so it can be a program name with args.
5840 set dummy pkg-config; ac_word=$2
5841 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5842 $as_echo_n "checking for $ac_word... " >&6; }
5843 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
5844 $as_echo_n "(cached) " >&6
5845 else
5846 case $ac_pt_PKG_CONFIG in
5847 [\\/]* | ?:[\\/]*)
5848 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852 for as_dir in $PATH
5854 IFS=$as_save_IFS
5855 test -z "$as_dir" && as_dir=.
5856 for ac_exec_ext in '' $ac_executable_extensions; do
5857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5858 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5859 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5860 break 2
5862 done
5863 done
5864 IFS=$as_save_IFS
5867 esac
5869 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5870 if test -n "$ac_pt_PKG_CONFIG"; then
5871 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
5872 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5873 else
5874 { $as_echo "$as_me:$LINENO: result: no" >&5
5875 $as_echo "no" >&6; }
5878 if test "x$ac_pt_PKG_CONFIG" = x; then
5879 PKG_CONFIG=""
5880 else
5881 case $cross_compiling:$ac_tool_warned in
5882 yes:)
5883 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5885 ac_tool_warned=yes ;;
5886 esac
5887 PKG_CONFIG=$ac_pt_PKG_CONFIG
5889 else
5890 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5894 if test -n "$PKG_CONFIG"; then
5895 _pkg_min_version=0.9.0
5896 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
5897 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5898 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5899 { $as_echo "$as_me:$LINENO: result: yes" >&5
5900 $as_echo "yes" >&6; }
5901 else
5902 { $as_echo "$as_me:$LINENO: result: no" >&5
5903 $as_echo "no" >&6; }
5904 PKG_CONFIG=""
5909 pkg_failed=no
5910 { $as_echo "$as_me:$LINENO: checking for GPIV_UI" >&5
5911 $as_echo_n "checking for GPIV_UI... " >&6; }
5913 if test -n "$PKG_CONFIG"; then
5914 if test -n "$GPIV_UI_CFLAGS"; then
5915 pkg_cv_GPIV_UI_CFLAGS="$GPIV_UI_CFLAGS"
5916 else
5917 if test -n "$PKG_CONFIG" && \
5918 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeui-2.0\"") >&5
5919 ($PKG_CONFIG --exists --print-errors "libgnomeui-2.0") 2>&5
5920 ac_status=$?
5921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); }; then
5923 pkg_cv_GPIV_UI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeui-2.0" 2>/dev/null`
5924 else
5925 pkg_failed=yes
5928 else
5929 pkg_failed=untried
5931 if test -n "$PKG_CONFIG"; then
5932 if test -n "$GPIV_UI_LIBS"; then
5933 pkg_cv_GPIV_UI_LIBS="$GPIV_UI_LIBS"
5934 else
5935 if test -n "$PKG_CONFIG" && \
5936 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeui-2.0\"") >&5
5937 ($PKG_CONFIG --exists --print-errors "libgnomeui-2.0") 2>&5
5938 ac_status=$?
5939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); }; then
5941 pkg_cv_GPIV_UI_LIBS=`$PKG_CONFIG --libs "libgnomeui-2.0" 2>/dev/null`
5942 else
5943 pkg_failed=yes
5946 else
5947 pkg_failed=untried
5952 if test $pkg_failed = yes; then
5954 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5955 _pkg_short_errors_supported=yes
5956 else
5957 _pkg_short_errors_supported=no
5959 if test $_pkg_short_errors_supported = yes; then
5960 GPIV_UI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeui-2.0"`
5961 else
5962 GPIV_UI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeui-2.0"`
5964 # Put the nasty error message in config.log where it belongs
5965 echo "$GPIV_UI_PKG_ERRORS" >&5
5967 { { $as_echo "$as_me:$LINENO: error: Package requirements (libgnomeui-2.0) were not met:
5969 $GPIV_UI_PKG_ERRORS
5971 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5972 installed software in a non-standard prefix.
5974 Alternatively, you may set the environment variables GPIV_UI_CFLAGS
5975 and GPIV_UI_LIBS to avoid the need to call pkg-config.
5976 See the pkg-config man page for more details.
5977 " >&5
5978 $as_echo "$as_me: error: Package requirements (libgnomeui-2.0) were not met:
5980 $GPIV_UI_PKG_ERRORS
5982 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5983 installed software in a non-standard prefix.
5985 Alternatively, you may set the environment variables GPIV_UI_CFLAGS
5986 and GPIV_UI_LIBS to avoid the need to call pkg-config.
5987 See the pkg-config man page for more details.
5988 " >&2;}
5989 { (exit 1); exit 1; }; }
5990 elif test $pkg_failed = untried; then
5991 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5993 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
5994 is in your PATH or set the PKG_CONFIG environment variable to the full
5995 path to pkg-config.
5997 Alternatively, you may set the environment variables GPIV_UI_CFLAGS
5998 and GPIV_UI_LIBS to avoid the need to call pkg-config.
5999 See the pkg-config man page for more details.
6001 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6002 See \`config.log' for more details." >&5
6003 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
6004 is in your PATH or set the PKG_CONFIG environment variable to the full
6005 path to pkg-config.
6007 Alternatively, you may set the environment variables GPIV_UI_CFLAGS
6008 and GPIV_UI_LIBS to avoid the need to call pkg-config.
6009 See the pkg-config man page for more details.
6011 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6012 See \`config.log' for more details." >&2;}
6013 { (exit 1); exit 1; }; }; }
6014 else
6015 GPIV_UI_CFLAGS=$pkg_cv_GPIV_UI_CFLAGS
6016 GPIV_UI_LIBS=$pkg_cv_GPIV_UI_LIBS
6017 { $as_echo "$as_me:$LINENO: result: yes" >&5
6018 $as_echo "yes" >&6; }
6022 pkg_failed=no
6023 { $as_echo "$as_me:$LINENO: checking for GPIV_PRINT" >&5
6024 $as_echo_n "checking for GPIV_PRINT... " >&6; }
6026 if test -n "$PKG_CONFIG"; then
6027 if test -n "$GPIV_PRINT_CFLAGS"; then
6028 pkg_cv_GPIV_PRINT_CFLAGS="$GPIV_PRINT_CFLAGS"
6029 else
6030 if test -n "$PKG_CONFIG" && \
6031 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprint-2.2 libgnomeprintui-2.2\"") >&5
6032 ($PKG_CONFIG --exists --print-errors "libgnomeprint-2.2 libgnomeprintui-2.2") 2>&5
6033 ac_status=$?
6034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); }; then
6036 pkg_cv_GPIV_PRINT_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprint-2.2 libgnomeprintui-2.2" 2>/dev/null`
6037 else
6038 pkg_failed=yes
6041 else
6042 pkg_failed=untried
6044 if test -n "$PKG_CONFIG"; then
6045 if test -n "$GPIV_PRINT_LIBS"; then
6046 pkg_cv_GPIV_PRINT_LIBS="$GPIV_PRINT_LIBS"
6047 else
6048 if test -n "$PKG_CONFIG" && \
6049 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprint-2.2 libgnomeprintui-2.2\"") >&5
6050 ($PKG_CONFIG --exists --print-errors "libgnomeprint-2.2 libgnomeprintui-2.2") 2>&5
6051 ac_status=$?
6052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); }; then
6054 pkg_cv_GPIV_PRINT_LIBS=`$PKG_CONFIG --libs "libgnomeprint-2.2 libgnomeprintui-2.2" 2>/dev/null`
6055 else
6056 pkg_failed=yes
6059 else
6060 pkg_failed=untried
6065 if test $pkg_failed = yes; then
6067 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6068 _pkg_short_errors_supported=yes
6069 else
6070 _pkg_short_errors_supported=no
6072 if test $_pkg_short_errors_supported = yes; then
6073 GPIV_PRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprint-2.2 libgnomeprintui-2.2"`
6074 else
6075 GPIV_PRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprint-2.2 libgnomeprintui-2.2"`
6077 # Put the nasty error message in config.log where it belongs
6078 echo "$GPIV_PRINT_PKG_ERRORS" >&5
6080 { $as_echo "$as_me:$LINENO: result: no" >&5
6081 $as_echo "no" >&6; }
6082 echo "gnomeprint libraries are not available."
6083 elif test $pkg_failed = untried; then
6084 echo "gnomeprint libraries are not available."
6085 else
6086 GPIV_PRINT_CFLAGS=$pkg_cv_GPIV_PRINT_CFLAGS
6087 GPIV_PRINT_LIBS=$pkg_cv_GPIV_PRINT_LIBS
6088 { $as_echo "$as_me:$LINENO: result: yes" >&5
6089 $as_echo "yes" >&6; }
6090 gpiv_have_gnome_print=1
6093 if test "x$gpiv_have_gnome_print" = "x1"; then
6094 echo "gnomeprint IS available"
6095 cat >>confdefs.h <<\_ACEOF
6096 #define HAVE_GNOME_PRINT "1"
6097 _ACEOF
6099 GPIV_GNOME_LIBS="libgnomeui-2.0 libgnomeprint-2.2 libgnomeprintui-2.2"
6100 else
6101 echo "gnomeprint NOT available"
6102 GPIV_GNOME_LIBS="libgnomeui-2.0"
6105 echo "configuring with libraries: " $gpiv_gnome_libs
6107 pkg_failed=no
6108 { $as_echo "$as_me:$LINENO: checking for GPIV" >&5
6109 $as_echo_n "checking for GPIV... " >&6; }
6111 if test -n "$PKG_CONFIG"; then
6112 if test -n "$GPIV_CFLAGS"; then
6113 pkg_cv_GPIV_CFLAGS="$GPIV_CFLAGS"
6114 else
6115 if test -n "$PKG_CONFIG" && \
6116 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$GPIV_GNOME_LIBS\"") >&5
6117 ($PKG_CONFIG --exists --print-errors "$GPIV_GNOME_LIBS") 2>&5
6118 ac_status=$?
6119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); }; then
6121 pkg_cv_GPIV_CFLAGS=`$PKG_CONFIG --cflags "$GPIV_GNOME_LIBS" 2>/dev/null`
6122 else
6123 pkg_failed=yes
6126 else
6127 pkg_failed=untried
6129 if test -n "$PKG_CONFIG"; then
6130 if test -n "$GPIV_LIBS"; then
6131 pkg_cv_GPIV_LIBS="$GPIV_LIBS"
6132 else
6133 if test -n "$PKG_CONFIG" && \
6134 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$GPIV_GNOME_LIBS\"") >&5
6135 ($PKG_CONFIG --exists --print-errors "$GPIV_GNOME_LIBS") 2>&5
6136 ac_status=$?
6137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; then
6139 pkg_cv_GPIV_LIBS=`$PKG_CONFIG --libs "$GPIV_GNOME_LIBS" 2>/dev/null`
6140 else
6141 pkg_failed=yes
6144 else
6145 pkg_failed=untried
6150 if test $pkg_failed = yes; then
6152 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6153 _pkg_short_errors_supported=yes
6154 else
6155 _pkg_short_errors_supported=no
6157 if test $_pkg_short_errors_supported = yes; then
6158 GPIV_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$GPIV_GNOME_LIBS"`
6159 else
6160 GPIV_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GPIV_GNOME_LIBS"`
6162 # Put the nasty error message in config.log where it belongs
6163 echo "$GPIV_PKG_ERRORS" >&5
6165 { { $as_echo "$as_me:$LINENO: error: Package requirements ($GPIV_GNOME_LIBS) were not met:
6167 $GPIV_PKG_ERRORS
6169 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6170 installed software in a non-standard prefix.
6172 Alternatively, you may set the environment variables GPIV_CFLAGS
6173 and GPIV_LIBS to avoid the need to call pkg-config.
6174 See the pkg-config man page for more details.
6175 " >&5
6176 $as_echo "$as_me: error: Package requirements ($GPIV_GNOME_LIBS) were not met:
6178 $GPIV_PKG_ERRORS
6180 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6181 installed software in a non-standard prefix.
6183 Alternatively, you may set the environment variables GPIV_CFLAGS
6184 and GPIV_LIBS to avoid the need to call pkg-config.
6185 See the pkg-config man page for more details.
6186 " >&2;}
6187 { (exit 1); exit 1; }; }
6188 elif test $pkg_failed = untried; then
6189 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6191 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
6192 is in your PATH or set the PKG_CONFIG environment variable to the full
6193 path to pkg-config.
6195 Alternatively, you may set the environment variables GPIV_CFLAGS
6196 and GPIV_LIBS to avoid the need to call pkg-config.
6197 See the pkg-config man page for more details.
6199 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6200 See \`config.log' for more details." >&5
6201 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
6202 is in your PATH or set the PKG_CONFIG environment variable to the full
6203 path to pkg-config.
6205 Alternatively, you may set the environment variables GPIV_CFLAGS
6206 and GPIV_LIBS to avoid the need to call pkg-config.
6207 See the pkg-config man page for more details.
6209 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6210 See \`config.log' for more details." >&2;}
6211 { (exit 1); exit 1; }; }; }
6212 else
6213 GPIV_CFLAGS=$pkg_cv_GPIV_CFLAGS
6214 GPIV_LIBS=$pkg_cv_GPIV_LIBS
6215 { $as_echo "$as_me:$LINENO: result: yes" >&5
6216 $as_echo "yes" >&6; }
6223 GETTEXT_PACKAGE=gpiv
6225 cat >>confdefs.h <<_ACEOF
6226 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
6227 _ACEOF
6229 ALL_LINGUAS="ca de nl"
6230 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6240 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6241 inttypes.h stdint.h unistd.h
6243 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6244 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6245 $as_echo_n "checking for $ac_header... " >&6; }
6246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6247 $as_echo_n "(cached) " >&6
6248 else
6249 cat >conftest.$ac_ext <<_ACEOF
6250 /* confdefs.h. */
6251 _ACEOF
6252 cat confdefs.h >>conftest.$ac_ext
6253 cat >>conftest.$ac_ext <<_ACEOF
6254 /* end confdefs.h. */
6255 $ac_includes_default
6257 #include <$ac_header>
6258 _ACEOF
6259 rm -f conftest.$ac_objext
6260 if { (ac_try="$ac_compile"
6261 case "(($ac_try" in
6262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6263 *) ac_try_echo=$ac_try;;
6264 esac
6265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6266 $as_echo "$ac_try_echo") >&5
6267 (eval "$ac_compile") 2>conftest.er1
6268 ac_status=$?
6269 grep -v '^ *+' conftest.er1 >conftest.err
6270 rm -f conftest.er1
6271 cat conftest.err >&5
6272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); } && {
6274 test -z "$ac_c_werror_flag" ||
6275 test ! -s conftest.err
6276 } && test -s conftest.$ac_objext; then
6277 eval "$as_ac_Header=yes"
6278 else
6279 $as_echo "$as_me: failed program was:" >&5
6280 sed 's/^/| /' conftest.$ac_ext >&5
6282 eval "$as_ac_Header=no"
6285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6287 ac_res=`eval 'as_val=${'$as_ac_Header'}
6288 $as_echo "$as_val"'`
6289 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6290 $as_echo "$ac_res" >&6; }
6291 as_val=`eval 'as_val=${'$as_ac_Header'}
6292 $as_echo "$as_val"'`
6293 if test "x$as_val" = x""yes; then
6294 cat >>confdefs.h <<_ACEOF
6295 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6296 _ACEOF
6300 done
6305 for ac_header in locale.h
6307 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6309 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6310 $as_echo_n "checking for $ac_header... " >&6; }
6311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6312 $as_echo_n "(cached) " >&6
6314 ac_res=`eval 'as_val=${'$as_ac_Header'}
6315 $as_echo "$as_val"'`
6316 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6317 $as_echo "$ac_res" >&6; }
6318 else
6319 # Is the header compilable?
6320 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6321 $as_echo_n "checking $ac_header usability... " >&6; }
6322 cat >conftest.$ac_ext <<_ACEOF
6323 /* confdefs.h. */
6324 _ACEOF
6325 cat confdefs.h >>conftest.$ac_ext
6326 cat >>conftest.$ac_ext <<_ACEOF
6327 /* end confdefs.h. */
6328 $ac_includes_default
6329 #include <$ac_header>
6330 _ACEOF
6331 rm -f conftest.$ac_objext
6332 if { (ac_try="$ac_compile"
6333 case "(($ac_try" in
6334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6335 *) ac_try_echo=$ac_try;;
6336 esac
6337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6338 $as_echo "$ac_try_echo") >&5
6339 (eval "$ac_compile") 2>conftest.er1
6340 ac_status=$?
6341 grep -v '^ *+' conftest.er1 >conftest.err
6342 rm -f conftest.er1
6343 cat conftest.err >&5
6344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); } && {
6346 test -z "$ac_c_werror_flag" ||
6347 test ! -s conftest.err
6348 } && test -s conftest.$ac_objext; then
6349 ac_header_compiler=yes
6350 else
6351 $as_echo "$as_me: failed program was:" >&5
6352 sed 's/^/| /' conftest.$ac_ext >&5
6354 ac_header_compiler=no
6357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6358 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6359 $as_echo "$ac_header_compiler" >&6; }
6361 # Is the header present?
6362 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6363 $as_echo_n "checking $ac_header presence... " >&6; }
6364 cat >conftest.$ac_ext <<_ACEOF
6365 /* confdefs.h. */
6366 _ACEOF
6367 cat confdefs.h >>conftest.$ac_ext
6368 cat >>conftest.$ac_ext <<_ACEOF
6369 /* end confdefs.h. */
6370 #include <$ac_header>
6371 _ACEOF
6372 if { (ac_try="$ac_cpp conftest.$ac_ext"
6373 case "(($ac_try" in
6374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6375 *) ac_try_echo=$ac_try;;
6376 esac
6377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6378 $as_echo "$ac_try_echo") >&5
6379 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6380 ac_status=$?
6381 grep -v '^ *+' conftest.er1 >conftest.err
6382 rm -f conftest.er1
6383 cat conftest.err >&5
6384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); } >/dev/null && {
6386 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6387 test ! -s conftest.err
6388 }; then
6389 ac_header_preproc=yes
6390 else
6391 $as_echo "$as_me: failed program was:" >&5
6392 sed 's/^/| /' conftest.$ac_ext >&5
6394 ac_header_preproc=no
6397 rm -f conftest.err conftest.$ac_ext
6398 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6399 $as_echo "$ac_header_preproc" >&6; }
6401 # So? What about this header?
6402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6403 yes:no: )
6404 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6405 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6406 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6407 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6408 ac_header_preproc=yes
6410 no:yes:* )
6411 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6412 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6413 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6414 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6415 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6416 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6417 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6418 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6419 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6420 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6421 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6422 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6423 ( cat <<\_ASBOX
6424 ## ------------------------------------------------------------------- ##
6425 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=gpiv ##
6426 ## ------------------------------------------------------------------- ##
6427 _ASBOX
6428 ) | sed "s/^/$as_me: WARNING: /" >&2
6430 esac
6431 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6432 $as_echo_n "checking for $ac_header... " >&6; }
6433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6434 $as_echo_n "(cached) " >&6
6435 else
6436 eval "$as_ac_Header=\$ac_header_preproc"
6438 ac_res=`eval 'as_val=${'$as_ac_Header'}
6439 $as_echo "$as_val"'`
6440 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6441 $as_echo "$ac_res" >&6; }
6444 as_val=`eval 'as_val=${'$as_ac_Header'}
6445 $as_echo "$as_val"'`
6446 if test "x$as_val" = x""yes; then
6447 cat >>confdefs.h <<_ACEOF
6448 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6449 _ACEOF
6453 done
6455 if test $ac_cv_header_locale_h = yes; then
6456 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
6457 $as_echo_n "checking for LC_MESSAGES... " >&6; }
6458 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
6459 $as_echo_n "(cached) " >&6
6460 else
6461 cat >conftest.$ac_ext <<_ACEOF
6462 /* confdefs.h. */
6463 _ACEOF
6464 cat confdefs.h >>conftest.$ac_ext
6465 cat >>conftest.$ac_ext <<_ACEOF
6466 /* end confdefs.h. */
6467 #include <locale.h>
6469 main ()
6471 return LC_MESSAGES
6473 return 0;
6475 _ACEOF
6476 rm -f conftest.$ac_objext conftest$ac_exeext
6477 if { (ac_try="$ac_link"
6478 case "(($ac_try" in
6479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6480 *) ac_try_echo=$ac_try;;
6481 esac
6482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6483 $as_echo "$ac_try_echo") >&5
6484 (eval "$ac_link") 2>conftest.er1
6485 ac_status=$?
6486 grep -v '^ *+' conftest.er1 >conftest.err
6487 rm -f conftest.er1
6488 cat conftest.err >&5
6489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); } && {
6491 test -z "$ac_c_werror_flag" ||
6492 test ! -s conftest.err
6493 } && test -s conftest$ac_exeext && {
6494 test "$cross_compiling" = yes ||
6495 $as_test_x conftest$ac_exeext
6496 }; then
6497 am_cv_val_LC_MESSAGES=yes
6498 else
6499 $as_echo "$as_me: failed program was:" >&5
6500 sed 's/^/| /' conftest.$ac_ext >&5
6502 am_cv_val_LC_MESSAGES=no
6505 rm -rf conftest.dSYM
6506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6507 conftest$ac_exeext conftest.$ac_ext
6509 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
6510 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
6511 if test $am_cv_val_LC_MESSAGES = yes; then
6513 cat >>confdefs.h <<\_ACEOF
6514 #define HAVE_LC_MESSAGES 1
6515 _ACEOF
6519 USE_NLS=yes
6522 gt_cv_have_gettext=no
6524 CATOBJEXT=NONE
6525 XGETTEXT=:
6526 INTLLIBS=
6528 if test "${ac_cv_header_libintl_h+set}" = set; then
6529 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
6530 $as_echo_n "checking for libintl.h... " >&6; }
6531 if test "${ac_cv_header_libintl_h+set}" = set; then
6532 $as_echo_n "(cached) " >&6
6534 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6535 $as_echo "$ac_cv_header_libintl_h" >&6; }
6536 else
6537 # Is the header compilable?
6538 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
6539 $as_echo_n "checking libintl.h usability... " >&6; }
6540 cat >conftest.$ac_ext <<_ACEOF
6541 /* confdefs.h. */
6542 _ACEOF
6543 cat confdefs.h >>conftest.$ac_ext
6544 cat >>conftest.$ac_ext <<_ACEOF
6545 /* end confdefs.h. */
6546 $ac_includes_default
6547 #include <libintl.h>
6548 _ACEOF
6549 rm -f conftest.$ac_objext
6550 if { (ac_try="$ac_compile"
6551 case "(($ac_try" in
6552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6553 *) ac_try_echo=$ac_try;;
6554 esac
6555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6556 $as_echo "$ac_try_echo") >&5
6557 (eval "$ac_compile") 2>conftest.er1
6558 ac_status=$?
6559 grep -v '^ *+' conftest.er1 >conftest.err
6560 rm -f conftest.er1
6561 cat conftest.err >&5
6562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); } && {
6564 test -z "$ac_c_werror_flag" ||
6565 test ! -s conftest.err
6566 } && test -s conftest.$ac_objext; then
6567 ac_header_compiler=yes
6568 else
6569 $as_echo "$as_me: failed program was:" >&5
6570 sed 's/^/| /' conftest.$ac_ext >&5
6572 ac_header_compiler=no
6575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6576 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6577 $as_echo "$ac_header_compiler" >&6; }
6579 # Is the header present?
6580 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
6581 $as_echo_n "checking libintl.h presence... " >&6; }
6582 cat >conftest.$ac_ext <<_ACEOF
6583 /* confdefs.h. */
6584 _ACEOF
6585 cat confdefs.h >>conftest.$ac_ext
6586 cat >>conftest.$ac_ext <<_ACEOF
6587 /* end confdefs.h. */
6588 #include <libintl.h>
6589 _ACEOF
6590 if { (ac_try="$ac_cpp conftest.$ac_ext"
6591 case "(($ac_try" in
6592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6593 *) ac_try_echo=$ac_try;;
6594 esac
6595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6596 $as_echo "$ac_try_echo") >&5
6597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6598 ac_status=$?
6599 grep -v '^ *+' conftest.er1 >conftest.err
6600 rm -f conftest.er1
6601 cat conftest.err >&5
6602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); } >/dev/null && {
6604 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6605 test ! -s conftest.err
6606 }; then
6607 ac_header_preproc=yes
6608 else
6609 $as_echo "$as_me: failed program was:" >&5
6610 sed 's/^/| /' conftest.$ac_ext >&5
6612 ac_header_preproc=no
6615 rm -f conftest.err conftest.$ac_ext
6616 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6617 $as_echo "$ac_header_preproc" >&6; }
6619 # So? What about this header?
6620 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6621 yes:no: )
6622 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
6623 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6624 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
6625 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
6626 ac_header_preproc=yes
6628 no:yes:* )
6629 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
6630 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
6631 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
6632 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
6633 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
6634 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
6635 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
6636 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
6637 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
6638 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
6639 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
6640 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
6641 ( cat <<\_ASBOX
6642 ## ------------------------------------------------------------------- ##
6643 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=gpiv ##
6644 ## ------------------------------------------------------------------- ##
6645 _ASBOX
6646 ) | sed "s/^/$as_me: WARNING: /" >&2
6648 esac
6649 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
6650 $as_echo_n "checking for libintl.h... " >&6; }
6651 if test "${ac_cv_header_libintl_h+set}" = set; then
6652 $as_echo_n "(cached) " >&6
6653 else
6654 ac_cv_header_libintl_h=$ac_header_preproc
6656 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6657 $as_echo "$ac_cv_header_libintl_h" >&6; }
6660 if test "x$ac_cv_header_libintl_h" = x""yes; then
6661 gt_cv_func_dgettext_libintl="no"
6662 libintl_extra_libs=""
6665 # First check in libc
6667 { $as_echo "$as_me:$LINENO: checking for ngettext in libc" >&5
6668 $as_echo_n "checking for ngettext in libc... " >&6; }
6669 if test "${gt_cv_func_ngettext_libc+set}" = set; then
6670 $as_echo_n "(cached) " >&6
6671 else
6672 cat >conftest.$ac_ext <<_ACEOF
6673 /* confdefs.h. */
6674 _ACEOF
6675 cat confdefs.h >>conftest.$ac_ext
6676 cat >>conftest.$ac_ext <<_ACEOF
6677 /* end confdefs.h. */
6679 #include <libintl.h>
6682 main ()
6684 return !ngettext ("","", 1)
6686 return 0;
6688 _ACEOF
6689 rm -f conftest.$ac_objext conftest$ac_exeext
6690 if { (ac_try="$ac_link"
6691 case "(($ac_try" in
6692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6693 *) ac_try_echo=$ac_try;;
6694 esac
6695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6696 $as_echo "$ac_try_echo") >&5
6697 (eval "$ac_link") 2>conftest.er1
6698 ac_status=$?
6699 grep -v '^ *+' conftest.er1 >conftest.err
6700 rm -f conftest.er1
6701 cat conftest.err >&5
6702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); } && {
6704 test -z "$ac_c_werror_flag" ||
6705 test ! -s conftest.err
6706 } && test -s conftest$ac_exeext && {
6707 test "$cross_compiling" = yes ||
6708 $as_test_x conftest$ac_exeext
6709 }; then
6710 gt_cv_func_ngettext_libc=yes
6711 else
6712 $as_echo "$as_me: failed program was:" >&5
6713 sed 's/^/| /' conftest.$ac_ext >&5
6715 gt_cv_func_ngettext_libc=no
6718 rm -rf conftest.dSYM
6719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6720 conftest$ac_exeext conftest.$ac_ext
6723 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
6724 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
6726 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
6727 { $as_echo "$as_me:$LINENO: checking for dgettext in libc" >&5
6728 $as_echo_n "checking for dgettext in libc... " >&6; }
6729 if test "${gt_cv_func_dgettext_libc+set}" = set; then
6730 $as_echo_n "(cached) " >&6
6731 else
6732 cat >conftest.$ac_ext <<_ACEOF
6733 /* confdefs.h. */
6734 _ACEOF
6735 cat confdefs.h >>conftest.$ac_ext
6736 cat >>conftest.$ac_ext <<_ACEOF
6737 /* end confdefs.h. */
6739 #include <libintl.h>
6742 main ()
6744 return !dgettext ("","")
6746 return 0;
6748 _ACEOF
6749 rm -f conftest.$ac_objext conftest$ac_exeext
6750 if { (ac_try="$ac_link"
6751 case "(($ac_try" in
6752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6753 *) ac_try_echo=$ac_try;;
6754 esac
6755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6756 $as_echo "$ac_try_echo") >&5
6757 (eval "$ac_link") 2>conftest.er1
6758 ac_status=$?
6759 grep -v '^ *+' conftest.er1 >conftest.err
6760 rm -f conftest.er1
6761 cat conftest.err >&5
6762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); } && {
6764 test -z "$ac_c_werror_flag" ||
6765 test ! -s conftest.err
6766 } && test -s conftest$ac_exeext && {
6767 test "$cross_compiling" = yes ||
6768 $as_test_x conftest$ac_exeext
6769 }; then
6770 gt_cv_func_dgettext_libc=yes
6771 else
6772 $as_echo "$as_me: failed program was:" >&5
6773 sed 's/^/| /' conftest.$ac_ext >&5
6775 gt_cv_func_dgettext_libc=no
6778 rm -rf conftest.dSYM
6779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6780 conftest$ac_exeext conftest.$ac_ext
6783 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
6784 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
6787 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
6789 for ac_func in bind_textdomain_codeset
6791 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6792 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6793 $as_echo_n "checking for $ac_func... " >&6; }
6794 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6795 $as_echo_n "(cached) " >&6
6796 else
6797 cat >conftest.$ac_ext <<_ACEOF
6798 /* confdefs.h. */
6799 _ACEOF
6800 cat confdefs.h >>conftest.$ac_ext
6801 cat >>conftest.$ac_ext <<_ACEOF
6802 /* end confdefs.h. */
6803 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6805 #define $ac_func innocuous_$ac_func
6807 /* System header to define __stub macros and hopefully few prototypes,
6808 which can conflict with char $ac_func (); below.
6809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6810 <limits.h> exists even on freestanding compilers. */
6812 #ifdef __STDC__
6813 # include <limits.h>
6814 #else
6815 # include <assert.h>
6816 #endif
6818 #undef $ac_func
6820 /* Override any GCC internal prototype to avoid an error.
6821 Use char because int might match the return type of a GCC
6822 builtin and then its argument prototype would still apply. */
6823 #ifdef __cplusplus
6824 extern "C"
6825 #endif
6826 char $ac_func ();
6827 /* The GNU C library defines this for functions which it implements
6828 to always fail with ENOSYS. Some functions are actually named
6829 something starting with __ and the normal name is an alias. */
6830 #if defined __stub_$ac_func || defined __stub___$ac_func
6831 choke me
6832 #endif
6835 main ()
6837 return $ac_func ();
6839 return 0;
6841 _ACEOF
6842 rm -f conftest.$ac_objext conftest$ac_exeext
6843 if { (ac_try="$ac_link"
6844 case "(($ac_try" in
6845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6846 *) ac_try_echo=$ac_try;;
6847 esac
6848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6849 $as_echo "$ac_try_echo") >&5
6850 (eval "$ac_link") 2>conftest.er1
6851 ac_status=$?
6852 grep -v '^ *+' conftest.er1 >conftest.err
6853 rm -f conftest.er1
6854 cat conftest.err >&5
6855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); } && {
6857 test -z "$ac_c_werror_flag" ||
6858 test ! -s conftest.err
6859 } && test -s conftest$ac_exeext && {
6860 test "$cross_compiling" = yes ||
6861 $as_test_x conftest$ac_exeext
6862 }; then
6863 eval "$as_ac_var=yes"
6864 else
6865 $as_echo "$as_me: failed program was:" >&5
6866 sed 's/^/| /' conftest.$ac_ext >&5
6868 eval "$as_ac_var=no"
6871 rm -rf conftest.dSYM
6872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6873 conftest$ac_exeext conftest.$ac_ext
6875 ac_res=`eval 'as_val=${'$as_ac_var'}
6876 $as_echo "$as_val"'`
6877 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6878 $as_echo "$ac_res" >&6; }
6879 as_val=`eval 'as_val=${'$as_ac_var'}
6880 $as_echo "$as_val"'`
6881 if test "x$as_val" = x""yes; then
6882 cat >>confdefs.h <<_ACEOF
6883 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6884 _ACEOF
6887 done
6892 # If we don't have everything we want, check in libintl
6894 if test "$gt_cv_func_dgettext_libc" != "yes" \
6895 || test "$gt_cv_func_ngettext_libc" != "yes" \
6896 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
6898 { $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
6899 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
6900 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
6901 $as_echo_n "(cached) " >&6
6902 else
6903 ac_check_lib_save_LIBS=$LIBS
6904 LIBS="-lintl $LIBS"
6905 cat >conftest.$ac_ext <<_ACEOF
6906 /* confdefs.h. */
6907 _ACEOF
6908 cat confdefs.h >>conftest.$ac_ext
6909 cat >>conftest.$ac_ext <<_ACEOF
6910 /* end confdefs.h. */
6912 /* Override any GCC internal prototype to avoid an error.
6913 Use char because int might match the return type of a GCC
6914 builtin and then its argument prototype would still apply. */
6915 #ifdef __cplusplus
6916 extern "C"
6917 #endif
6918 char bindtextdomain ();
6920 main ()
6922 return bindtextdomain ();
6924 return 0;
6926 _ACEOF
6927 rm -f conftest.$ac_objext conftest$ac_exeext
6928 if { (ac_try="$ac_link"
6929 case "(($ac_try" in
6930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6931 *) ac_try_echo=$ac_try;;
6932 esac
6933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6934 $as_echo "$ac_try_echo") >&5
6935 (eval "$ac_link") 2>conftest.er1
6936 ac_status=$?
6937 grep -v '^ *+' conftest.er1 >conftest.err
6938 rm -f conftest.er1
6939 cat conftest.err >&5
6940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); } && {
6942 test -z "$ac_c_werror_flag" ||
6943 test ! -s conftest.err
6944 } && test -s conftest$ac_exeext && {
6945 test "$cross_compiling" = yes ||
6946 $as_test_x conftest$ac_exeext
6947 }; then
6948 ac_cv_lib_intl_bindtextdomain=yes
6949 else
6950 $as_echo "$as_me: failed program was:" >&5
6951 sed 's/^/| /' conftest.$ac_ext >&5
6953 ac_cv_lib_intl_bindtextdomain=no
6956 rm -rf conftest.dSYM
6957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6958 conftest$ac_exeext conftest.$ac_ext
6959 LIBS=$ac_check_lib_save_LIBS
6961 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
6962 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
6963 if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then
6964 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
6965 $as_echo_n "checking for ngettext in -lintl... " >&6; }
6966 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
6967 $as_echo_n "(cached) " >&6
6968 else
6969 ac_check_lib_save_LIBS=$LIBS
6970 LIBS="-lintl $LIBS"
6971 cat >conftest.$ac_ext <<_ACEOF
6972 /* confdefs.h. */
6973 _ACEOF
6974 cat confdefs.h >>conftest.$ac_ext
6975 cat >>conftest.$ac_ext <<_ACEOF
6976 /* end confdefs.h. */
6978 /* Override any GCC internal prototype to avoid an error.
6979 Use char because int might match the return type of a GCC
6980 builtin and then its argument prototype would still apply. */
6981 #ifdef __cplusplus
6982 extern "C"
6983 #endif
6984 char ngettext ();
6986 main ()
6988 return ngettext ();
6990 return 0;
6992 _ACEOF
6993 rm -f conftest.$ac_objext conftest$ac_exeext
6994 if { (ac_try="$ac_link"
6995 case "(($ac_try" in
6996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6997 *) ac_try_echo=$ac_try;;
6998 esac
6999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7000 $as_echo "$ac_try_echo") >&5
7001 (eval "$ac_link") 2>conftest.er1
7002 ac_status=$?
7003 grep -v '^ *+' conftest.er1 >conftest.err
7004 rm -f conftest.er1
7005 cat conftest.err >&5
7006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); } && {
7008 test -z "$ac_c_werror_flag" ||
7009 test ! -s conftest.err
7010 } && test -s conftest$ac_exeext && {
7011 test "$cross_compiling" = yes ||
7012 $as_test_x conftest$ac_exeext
7013 }; then
7014 ac_cv_lib_intl_ngettext=yes
7015 else
7016 $as_echo "$as_me: failed program was:" >&5
7017 sed 's/^/| /' conftest.$ac_ext >&5
7019 ac_cv_lib_intl_ngettext=no
7022 rm -rf conftest.dSYM
7023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7024 conftest$ac_exeext conftest.$ac_ext
7025 LIBS=$ac_check_lib_save_LIBS
7027 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
7028 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
7029 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then
7030 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
7031 $as_echo_n "checking for dgettext in -lintl... " >&6; }
7032 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
7033 $as_echo_n "(cached) " >&6
7034 else
7035 ac_check_lib_save_LIBS=$LIBS
7036 LIBS="-lintl $LIBS"
7037 cat >conftest.$ac_ext <<_ACEOF
7038 /* confdefs.h. */
7039 _ACEOF
7040 cat confdefs.h >>conftest.$ac_ext
7041 cat >>conftest.$ac_ext <<_ACEOF
7042 /* end confdefs.h. */
7044 /* Override any GCC internal prototype to avoid an error.
7045 Use char because int might match the return type of a GCC
7046 builtin and then its argument prototype would still apply. */
7047 #ifdef __cplusplus
7048 extern "C"
7049 #endif
7050 char dgettext ();
7052 main ()
7054 return dgettext ();
7056 return 0;
7058 _ACEOF
7059 rm -f conftest.$ac_objext conftest$ac_exeext
7060 if { (ac_try="$ac_link"
7061 case "(($ac_try" in
7062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7063 *) ac_try_echo=$ac_try;;
7064 esac
7065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7066 $as_echo "$ac_try_echo") >&5
7067 (eval "$ac_link") 2>conftest.er1
7068 ac_status=$?
7069 grep -v '^ *+' conftest.er1 >conftest.err
7070 rm -f conftest.er1
7071 cat conftest.err >&5
7072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); } && {
7074 test -z "$ac_c_werror_flag" ||
7075 test ! -s conftest.err
7076 } && test -s conftest$ac_exeext && {
7077 test "$cross_compiling" = yes ||
7078 $as_test_x conftest$ac_exeext
7079 }; then
7080 ac_cv_lib_intl_dgettext=yes
7081 else
7082 $as_echo "$as_me: failed program was:" >&5
7083 sed 's/^/| /' conftest.$ac_ext >&5
7085 ac_cv_lib_intl_dgettext=no
7088 rm -rf conftest.dSYM
7089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7090 conftest$ac_exeext conftest.$ac_ext
7091 LIBS=$ac_check_lib_save_LIBS
7093 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
7094 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
7095 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then
7096 gt_cv_func_dgettext_libintl=yes
7104 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
7105 { $as_echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
7106 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
7107 { $as_echo "$as_me:$LINENO: result: " >&5
7108 $as_echo "" >&6; }
7109 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
7110 $as_echo_n "checking for ngettext in -lintl... " >&6; }
7111 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
7112 $as_echo_n "(cached) " >&6
7113 else
7114 ac_check_lib_save_LIBS=$LIBS
7115 LIBS="-lintl -liconv $LIBS"
7116 cat >conftest.$ac_ext <<_ACEOF
7117 /* confdefs.h. */
7118 _ACEOF
7119 cat confdefs.h >>conftest.$ac_ext
7120 cat >>conftest.$ac_ext <<_ACEOF
7121 /* end confdefs.h. */
7123 /* Override any GCC internal prototype to avoid an error.
7124 Use char because int might match the return type of a GCC
7125 builtin and then its argument prototype would still apply. */
7126 #ifdef __cplusplus
7127 extern "C"
7128 #endif
7129 char ngettext ();
7131 main ()
7133 return ngettext ();
7135 return 0;
7137 _ACEOF
7138 rm -f conftest.$ac_objext conftest$ac_exeext
7139 if { (ac_try="$ac_link"
7140 case "(($ac_try" in
7141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7142 *) ac_try_echo=$ac_try;;
7143 esac
7144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7145 $as_echo "$ac_try_echo") >&5
7146 (eval "$ac_link") 2>conftest.er1
7147 ac_status=$?
7148 grep -v '^ *+' conftest.er1 >conftest.err
7149 rm -f conftest.er1
7150 cat conftest.err >&5
7151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152 (exit $ac_status); } && {
7153 test -z "$ac_c_werror_flag" ||
7154 test ! -s conftest.err
7155 } && test -s conftest$ac_exeext && {
7156 test "$cross_compiling" = yes ||
7157 $as_test_x conftest$ac_exeext
7158 }; then
7159 ac_cv_lib_intl_ngettext=yes
7160 else
7161 $as_echo "$as_me: failed program was:" >&5
7162 sed 's/^/| /' conftest.$ac_ext >&5
7164 ac_cv_lib_intl_ngettext=no
7167 rm -rf conftest.dSYM
7168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7169 conftest$ac_exeext conftest.$ac_ext
7170 LIBS=$ac_check_lib_save_LIBS
7172 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
7173 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
7174 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then
7175 { $as_echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
7176 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
7177 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
7178 $as_echo_n "(cached) " >&6
7179 else
7180 ac_check_lib_save_LIBS=$LIBS
7181 LIBS="-lintl -liconv $LIBS"
7182 cat >conftest.$ac_ext <<_ACEOF
7183 /* confdefs.h. */
7184 _ACEOF
7185 cat confdefs.h >>conftest.$ac_ext
7186 cat >>conftest.$ac_ext <<_ACEOF
7187 /* end confdefs.h. */
7189 /* Override any GCC internal prototype to avoid an error.
7190 Use char because int might match the return type of a GCC
7191 builtin and then its argument prototype would still apply. */
7192 #ifdef __cplusplus
7193 extern "C"
7194 #endif
7195 char dcgettext ();
7197 main ()
7199 return dcgettext ();
7201 return 0;
7203 _ACEOF
7204 rm -f conftest.$ac_objext conftest$ac_exeext
7205 if { (ac_try="$ac_link"
7206 case "(($ac_try" in
7207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7208 *) ac_try_echo=$ac_try;;
7209 esac
7210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7211 $as_echo "$ac_try_echo") >&5
7212 (eval "$ac_link") 2>conftest.er1
7213 ac_status=$?
7214 grep -v '^ *+' conftest.er1 >conftest.err
7215 rm -f conftest.er1
7216 cat conftest.err >&5
7217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); } && {
7219 test -z "$ac_c_werror_flag" ||
7220 test ! -s conftest.err
7221 } && test -s conftest$ac_exeext && {
7222 test "$cross_compiling" = yes ||
7223 $as_test_x conftest$ac_exeext
7224 }; then
7225 ac_cv_lib_intl_dcgettext=yes
7226 else
7227 $as_echo "$as_me: failed program was:" >&5
7228 sed 's/^/| /' conftest.$ac_ext >&5
7230 ac_cv_lib_intl_dcgettext=no
7233 rm -rf conftest.dSYM
7234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7235 conftest$ac_exeext conftest.$ac_ext
7236 LIBS=$ac_check_lib_save_LIBS
7238 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
7239 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
7240 if test "x$ac_cv_lib_intl_dcgettext" = x""yes; then
7241 gt_cv_func_dgettext_libintl=yes
7242 libintl_extra_libs=-liconv
7243 else
7247 else
7254 # If we found libintl, then check in it for bind_textdomain_codeset();
7255 # we'll prefer libc if neither have bind_textdomain_codeset(),
7256 # and both have dgettext and ngettext
7258 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
7259 glib_save_LIBS="$LIBS"
7260 LIBS="$LIBS -lintl $libintl_extra_libs"
7261 unset ac_cv_func_bind_textdomain_codeset
7263 for ac_func in bind_textdomain_codeset
7265 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7266 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7267 $as_echo_n "checking for $ac_func... " >&6; }
7268 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7269 $as_echo_n "(cached) " >&6
7270 else
7271 cat >conftest.$ac_ext <<_ACEOF
7272 /* confdefs.h. */
7273 _ACEOF
7274 cat confdefs.h >>conftest.$ac_ext
7275 cat >>conftest.$ac_ext <<_ACEOF
7276 /* end confdefs.h. */
7277 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7279 #define $ac_func innocuous_$ac_func
7281 /* System header to define __stub macros and hopefully few prototypes,
7282 which can conflict with char $ac_func (); below.
7283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7284 <limits.h> exists even on freestanding compilers. */
7286 #ifdef __STDC__
7287 # include <limits.h>
7288 #else
7289 # include <assert.h>
7290 #endif
7292 #undef $ac_func
7294 /* Override any GCC internal prototype to avoid an error.
7295 Use char because int might match the return type of a GCC
7296 builtin and then its argument prototype would still apply. */
7297 #ifdef __cplusplus
7298 extern "C"
7299 #endif
7300 char $ac_func ();
7301 /* The GNU C library defines this for functions which it implements
7302 to always fail with ENOSYS. Some functions are actually named
7303 something starting with __ and the normal name is an alias. */
7304 #if defined __stub_$ac_func || defined __stub___$ac_func
7305 choke me
7306 #endif
7309 main ()
7311 return $ac_func ();
7313 return 0;
7315 _ACEOF
7316 rm -f conftest.$ac_objext conftest$ac_exeext
7317 if { (ac_try="$ac_link"
7318 case "(($ac_try" in
7319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7320 *) ac_try_echo=$ac_try;;
7321 esac
7322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7323 $as_echo "$ac_try_echo") >&5
7324 (eval "$ac_link") 2>conftest.er1
7325 ac_status=$?
7326 grep -v '^ *+' conftest.er1 >conftest.err
7327 rm -f conftest.er1
7328 cat conftest.err >&5
7329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); } && {
7331 test -z "$ac_c_werror_flag" ||
7332 test ! -s conftest.err
7333 } && test -s conftest$ac_exeext && {
7334 test "$cross_compiling" = yes ||
7335 $as_test_x conftest$ac_exeext
7336 }; then
7337 eval "$as_ac_var=yes"
7338 else
7339 $as_echo "$as_me: failed program was:" >&5
7340 sed 's/^/| /' conftest.$ac_ext >&5
7342 eval "$as_ac_var=no"
7345 rm -rf conftest.dSYM
7346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7347 conftest$ac_exeext conftest.$ac_ext
7349 ac_res=`eval 'as_val=${'$as_ac_var'}
7350 $as_echo "$as_val"'`
7351 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7352 $as_echo "$ac_res" >&6; }
7353 as_val=`eval 'as_val=${'$as_ac_var'}
7354 $as_echo "$as_val"'`
7355 if test "x$as_val" = x""yes; then
7356 cat >>confdefs.h <<_ACEOF
7357 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7358 _ACEOF
7361 done
7363 LIBS="$glib_save_LIBS"
7365 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
7366 gt_cv_func_dgettext_libc=no
7367 else
7368 if test "$gt_cv_func_dgettext_libc" = "yes" \
7369 && test "$gt_cv_func_ngettext_libc" = "yes"; then
7370 gt_cv_func_dgettext_libintl=no
7376 if test "$gt_cv_func_dgettext_libc" = "yes" \
7377 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
7378 gt_cv_have_gettext=yes
7381 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
7382 INTLLIBS="-lintl $libintl_extra_libs"
7385 if test "$gt_cv_have_gettext" = "yes"; then
7387 cat >>confdefs.h <<\_ACEOF
7388 #define HAVE_GETTEXT 1
7389 _ACEOF
7391 # Extract the first word of "msgfmt", so it can be a program name with args.
7392 set dummy msgfmt; ac_word=$2
7393 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7394 $as_echo_n "checking for $ac_word... " >&6; }
7395 if test "${ac_cv_path_MSGFMT+set}" = set; then
7396 $as_echo_n "(cached) " >&6
7397 else
7398 case "$MSGFMT" in
7400 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7403 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7404 for ac_dir in $PATH; do
7405 test -z "$ac_dir" && ac_dir=.
7406 if test -f $ac_dir/$ac_word; then
7407 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7408 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7409 break
7412 done
7413 IFS="$ac_save_ifs"
7414 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7416 esac
7418 MSGFMT="$ac_cv_path_MSGFMT"
7419 if test "$MSGFMT" != "no"; then
7420 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
7421 $as_echo "$MSGFMT" >&6; }
7422 else
7423 { $as_echo "$as_me:$LINENO: result: no" >&5
7424 $as_echo "no" >&6; }
7426 if test "$MSGFMT" != "no"; then
7427 glib_save_LIBS="$LIBS"
7428 LIBS="$LIBS $INTLLIBS"
7430 for ac_func in dcgettext
7432 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7433 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7434 $as_echo_n "checking for $ac_func... " >&6; }
7435 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7436 $as_echo_n "(cached) " >&6
7437 else
7438 cat >conftest.$ac_ext <<_ACEOF
7439 /* confdefs.h. */
7440 _ACEOF
7441 cat confdefs.h >>conftest.$ac_ext
7442 cat >>conftest.$ac_ext <<_ACEOF
7443 /* end confdefs.h. */
7444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7446 #define $ac_func innocuous_$ac_func
7448 /* System header to define __stub macros and hopefully few prototypes,
7449 which can conflict with char $ac_func (); below.
7450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7451 <limits.h> exists even on freestanding compilers. */
7453 #ifdef __STDC__
7454 # include <limits.h>
7455 #else
7456 # include <assert.h>
7457 #endif
7459 #undef $ac_func
7461 /* Override any GCC internal prototype to avoid an error.
7462 Use char because int might match the return type of a GCC
7463 builtin and then its argument prototype would still apply. */
7464 #ifdef __cplusplus
7465 extern "C"
7466 #endif
7467 char $ac_func ();
7468 /* The GNU C library defines this for functions which it implements
7469 to always fail with ENOSYS. Some functions are actually named
7470 something starting with __ and the normal name is an alias. */
7471 #if defined __stub_$ac_func || defined __stub___$ac_func
7472 choke me
7473 #endif
7476 main ()
7478 return $ac_func ();
7480 return 0;
7482 _ACEOF
7483 rm -f conftest.$ac_objext conftest$ac_exeext
7484 if { (ac_try="$ac_link"
7485 case "(($ac_try" in
7486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7487 *) ac_try_echo=$ac_try;;
7488 esac
7489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7490 $as_echo "$ac_try_echo") >&5
7491 (eval "$ac_link") 2>conftest.er1
7492 ac_status=$?
7493 grep -v '^ *+' conftest.er1 >conftest.err
7494 rm -f conftest.er1
7495 cat conftest.err >&5
7496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497 (exit $ac_status); } && {
7498 test -z "$ac_c_werror_flag" ||
7499 test ! -s conftest.err
7500 } && test -s conftest$ac_exeext && {
7501 test "$cross_compiling" = yes ||
7502 $as_test_x conftest$ac_exeext
7503 }; then
7504 eval "$as_ac_var=yes"
7505 else
7506 $as_echo "$as_me: failed program was:" >&5
7507 sed 's/^/| /' conftest.$ac_ext >&5
7509 eval "$as_ac_var=no"
7512 rm -rf conftest.dSYM
7513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7514 conftest$ac_exeext conftest.$ac_ext
7516 ac_res=`eval 'as_val=${'$as_ac_var'}
7517 $as_echo "$as_val"'`
7518 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7519 $as_echo "$ac_res" >&6; }
7520 as_val=`eval 'as_val=${'$as_ac_var'}
7521 $as_echo "$as_val"'`
7522 if test "x$as_val" = x""yes; then
7523 cat >>confdefs.h <<_ACEOF
7524 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7525 _ACEOF
7528 done
7530 MSGFMT_OPTS=
7531 { $as_echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
7532 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
7533 cat >conftest.foo <<_ACEOF
7535 msgid ""
7536 msgstr ""
7537 "Content-Type: text/plain; charset=UTF-8\n"
7538 "Project-Id-Version: test 1.0\n"
7539 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
7540 "Last-Translator: test <foo@bar.xx>\n"
7541 "Language-Team: C <LL@li.org>\n"
7542 "MIME-Version: 1.0\n"
7543 "Content-Transfer-Encoding: 8bit\n"
7545 _ACEOF
7546 if { ($as_echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
7547 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
7548 ac_status=$?
7549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 (exit $ac_status); }; then
7551 MSGFMT_OPTS=-c; { $as_echo "$as_me:$LINENO: result: yes" >&5
7552 $as_echo "yes" >&6; }
7553 else { $as_echo "$as_me:$LINENO: result: no" >&5
7554 $as_echo "no" >&6; }
7555 echo "$as_me: failed input was:" >&5
7556 sed 's/^/| /' conftest.foo >&5
7559 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7560 set dummy gmsgfmt; ac_word=$2
7561 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7562 $as_echo_n "checking for $ac_word... " >&6; }
7563 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7564 $as_echo_n "(cached) " >&6
7565 else
7566 case $GMSGFMT in
7567 [\\/]* | ?:[\\/]*)
7568 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7572 for as_dir in $PATH
7574 IFS=$as_save_IFS
7575 test -z "$as_dir" && as_dir=.
7576 for ac_exec_ext in '' $ac_executable_extensions; do
7577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7578 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7579 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7580 break 2
7582 done
7583 done
7584 IFS=$as_save_IFS
7586 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7588 esac
7590 GMSGFMT=$ac_cv_path_GMSGFMT
7591 if test -n "$GMSGFMT"; then
7592 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7593 $as_echo "$GMSGFMT" >&6; }
7594 else
7595 { $as_echo "$as_me:$LINENO: result: no" >&5
7596 $as_echo "no" >&6; }
7600 # Extract the first word of "xgettext", so it can be a program name with args.
7601 set dummy xgettext; ac_word=$2
7602 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7603 $as_echo_n "checking for $ac_word... " >&6; }
7604 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7605 $as_echo_n "(cached) " >&6
7606 else
7607 case "$XGETTEXT" in
7609 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7612 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7613 for ac_dir in $PATH; do
7614 test -z "$ac_dir" && ac_dir=.
7615 if test -f $ac_dir/$ac_word; then
7616 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7617 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7618 break
7621 done
7622 IFS="$ac_save_ifs"
7623 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7625 esac
7627 XGETTEXT="$ac_cv_path_XGETTEXT"
7628 if test "$XGETTEXT" != ":"; then
7629 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7630 $as_echo "$XGETTEXT" >&6; }
7631 else
7632 { $as_echo "$as_me:$LINENO: result: no" >&5
7633 $as_echo "no" >&6; }
7636 cat >conftest.$ac_ext <<_ACEOF
7637 /* confdefs.h. */
7638 _ACEOF
7639 cat confdefs.h >>conftest.$ac_ext
7640 cat >>conftest.$ac_ext <<_ACEOF
7641 /* end confdefs.h. */
7644 main ()
7646 extern int _nl_msg_cat_cntr;
7647 return _nl_msg_cat_cntr
7649 return 0;
7651 _ACEOF
7652 rm -f conftest.$ac_objext conftest$ac_exeext
7653 if { (ac_try="$ac_link"
7654 case "(($ac_try" in
7655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7656 *) ac_try_echo=$ac_try;;
7657 esac
7658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7659 $as_echo "$ac_try_echo") >&5
7660 (eval "$ac_link") 2>conftest.er1
7661 ac_status=$?
7662 grep -v '^ *+' conftest.er1 >conftest.err
7663 rm -f conftest.er1
7664 cat conftest.err >&5
7665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); } && {
7667 test -z "$ac_c_werror_flag" ||
7668 test ! -s conftest.err
7669 } && test -s conftest$ac_exeext && {
7670 test "$cross_compiling" = yes ||
7671 $as_test_x conftest$ac_exeext
7672 }; then
7673 CATOBJEXT=.gmo
7674 DATADIRNAME=share
7675 else
7676 $as_echo "$as_me: failed program was:" >&5
7677 sed 's/^/| /' conftest.$ac_ext >&5
7679 case $host in
7680 *-*-solaris*)
7681 { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
7682 $as_echo_n "checking for bind_textdomain_codeset... " >&6; }
7683 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
7684 $as_echo_n "(cached) " >&6
7685 else
7686 cat >conftest.$ac_ext <<_ACEOF
7687 /* confdefs.h. */
7688 _ACEOF
7689 cat confdefs.h >>conftest.$ac_ext
7690 cat >>conftest.$ac_ext <<_ACEOF
7691 /* end confdefs.h. */
7692 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
7693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7694 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
7696 /* System header to define __stub macros and hopefully few prototypes,
7697 which can conflict with char bind_textdomain_codeset (); below.
7698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7699 <limits.h> exists even on freestanding compilers. */
7701 #ifdef __STDC__
7702 # include <limits.h>
7703 #else
7704 # include <assert.h>
7705 #endif
7707 #undef bind_textdomain_codeset
7709 /* Override any GCC internal prototype to avoid an error.
7710 Use char because int might match the return type of a GCC
7711 builtin and then its argument prototype would still apply. */
7712 #ifdef __cplusplus
7713 extern "C"
7714 #endif
7715 char bind_textdomain_codeset ();
7716 /* The GNU C library defines this for functions which it implements
7717 to always fail with ENOSYS. Some functions are actually named
7718 something starting with __ and the normal name is an alias. */
7719 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
7720 choke me
7721 #endif
7724 main ()
7726 return bind_textdomain_codeset ();
7728 return 0;
7730 _ACEOF
7731 rm -f conftest.$ac_objext conftest$ac_exeext
7732 if { (ac_try="$ac_link"
7733 case "(($ac_try" in
7734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7735 *) ac_try_echo=$ac_try;;
7736 esac
7737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7738 $as_echo "$ac_try_echo") >&5
7739 (eval "$ac_link") 2>conftest.er1
7740 ac_status=$?
7741 grep -v '^ *+' conftest.er1 >conftest.err
7742 rm -f conftest.er1
7743 cat conftest.err >&5
7744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); } && {
7746 test -z "$ac_c_werror_flag" ||
7747 test ! -s conftest.err
7748 } && test -s conftest$ac_exeext && {
7749 test "$cross_compiling" = yes ||
7750 $as_test_x conftest$ac_exeext
7751 }; then
7752 ac_cv_func_bind_textdomain_codeset=yes
7753 else
7754 $as_echo "$as_me: failed program was:" >&5
7755 sed 's/^/| /' conftest.$ac_ext >&5
7757 ac_cv_func_bind_textdomain_codeset=no
7760 rm -rf conftest.dSYM
7761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7762 conftest$ac_exeext conftest.$ac_ext
7764 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
7765 $as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
7766 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then
7767 CATOBJEXT=.gmo
7768 DATADIRNAME=share
7769 else
7770 CATOBJEXT=.mo
7771 DATADIRNAME=lib
7776 CATOBJEXT=.mo
7777 DATADIRNAME=lib
7779 esac
7782 rm -rf conftest.dSYM
7783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7784 conftest$ac_exeext conftest.$ac_ext
7785 LIBS="$glib_save_LIBS"
7786 INSTOBJEXT=.mo
7787 else
7788 gt_cv_have_gettext=no
7796 if test "$gt_cv_have_gettext" = "yes" ; then
7798 cat >>confdefs.h <<\_ACEOF
7799 #define ENABLE_NLS 1
7800 _ACEOF
7804 if test "$XGETTEXT" != ":"; then
7805 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7807 else
7808 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
7809 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
7810 XGETTEXT=":"
7814 # We need to process the po/ directory.
7815 POSUB=po
7817 ac_config_commands="$ac_config_commands default-1"
7820 for lang in $ALL_LINGUAS; do
7821 GMOFILES="$GMOFILES $lang.gmo"
7822 POFILES="$POFILES $lang.po"
7823 done
7837 if test "$gt_cv_have_gettext" = "yes"; then
7838 if test "x$ALL_LINGUAS" = "x"; then
7839 LINGUAS=
7840 else
7841 { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
7842 $as_echo_n "checking for catalogs to be installed... " >&6; }
7843 NEW_LINGUAS=
7844 for presentlang in $ALL_LINGUAS; do
7845 useit=no
7846 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
7847 desiredlanguages="$LINGUAS"
7848 else
7849 desiredlanguages="$ALL_LINGUAS"
7851 for desiredlang in $desiredlanguages; do
7852 # Use the presentlang catalog if desiredlang is
7853 # a. equal to presentlang, or
7854 # b. a variant of presentlang (because in this case,
7855 # presentlang can be used as a fallback for messages
7856 # which are not translated in the desiredlang catalog).
7857 case "$desiredlang" in
7858 "$presentlang"*) useit=yes;;
7859 esac
7860 done
7861 if test $useit = yes; then
7862 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
7864 done
7865 LINGUAS=$NEW_LINGUAS
7866 { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
7867 $as_echo "$LINGUAS" >&6; }
7870 if test -n "$LINGUAS"; then
7871 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7875 MKINSTALLDIRS=
7876 if test -n "$ac_aux_dir"; then
7877 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
7879 if test -z "$MKINSTALLDIRS"; then
7880 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7884 test -d po || mkdir po
7885 if test "x$srcdir" != "x."; then
7886 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
7887 posrcprefix="$srcdir/"
7888 else
7889 posrcprefix="../$srcdir/"
7891 else
7892 posrcprefix="../"
7894 rm -f po/POTFILES
7895 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
7896 < $srcdir/po/POTFILES.in > po/POTFILES
7901 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7902 $as_echo_n "checking whether NLS is requested... " >&6; }
7903 # Check whether --enable-nls was given.
7904 if test "${enable_nls+set}" = set; then
7905 enableval=$enable_nls; USE_NLS=$enableval
7906 else
7907 USE_NLS=yes
7910 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
7911 $as_echo "$USE_NLS" >&6; }
7916 case "$am__api_version" in
7917 1.01234)
7918 { { $as_echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5
7919 $as_echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;}
7920 { (exit 1); exit 1; }; }
7924 esac
7926 if test -n ""; then
7927 { $as_echo "$as_me:$LINENO: checking for intltool >= " >&5
7928 $as_echo_n "checking for intltool >= ... " >&6; }
7930 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
7931 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
7932 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
7934 { $as_echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
7935 $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
7936 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
7937 { { $as_echo "$as_me:$LINENO: error: Your intltool is too old. You need intltool or later." >&5
7938 $as_echo "$as_me: error: Your intltool is too old. You need intltool or later." >&2;}
7939 { (exit 1); exit 1; }; }
7942 # Extract the first word of "intltool-update", so it can be a program name with args.
7943 set dummy intltool-update; ac_word=$2
7944 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7945 $as_echo_n "checking for $ac_word... " >&6; }
7946 if test "${ac_cv_path_INTLTOOL_UPDATE+set}" = set; then
7947 $as_echo_n "(cached) " >&6
7948 else
7949 case $INTLTOOL_UPDATE in
7950 [\\/]* | ?:[\\/]*)
7951 ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
7954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7955 for as_dir in $PATH
7957 IFS=$as_save_IFS
7958 test -z "$as_dir" && as_dir=.
7959 for ac_exec_ext in '' $ac_executable_extensions; do
7960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7961 ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
7962 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7963 break 2
7965 done
7966 done
7967 IFS=$as_save_IFS
7970 esac
7972 INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
7973 if test -n "$INTLTOOL_UPDATE"; then
7974 { $as_echo "$as_me:$LINENO: result: $INTLTOOL_UPDATE" >&5
7975 $as_echo "$INTLTOOL_UPDATE" >&6; }
7976 else
7977 { $as_echo "$as_me:$LINENO: result: no" >&5
7978 $as_echo "no" >&6; }
7982 # Extract the first word of "intltool-merge", so it can be a program name with args.
7983 set dummy intltool-merge; ac_word=$2
7984 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7985 $as_echo_n "checking for $ac_word... " >&6; }
7986 if test "${ac_cv_path_INTLTOOL_MERGE+set}" = set; then
7987 $as_echo_n "(cached) " >&6
7988 else
7989 case $INTLTOOL_MERGE in
7990 [\\/]* | ?:[\\/]*)
7991 ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
7994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7995 for as_dir in $PATH
7997 IFS=$as_save_IFS
7998 test -z "$as_dir" && as_dir=.
7999 for ac_exec_ext in '' $ac_executable_extensions; do
8000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8001 ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
8002 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8003 break 2
8005 done
8006 done
8007 IFS=$as_save_IFS
8010 esac
8012 INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
8013 if test -n "$INTLTOOL_MERGE"; then
8014 { $as_echo "$as_me:$LINENO: result: $INTLTOOL_MERGE" >&5
8015 $as_echo "$INTLTOOL_MERGE" >&6; }
8016 else
8017 { $as_echo "$as_me:$LINENO: result: no" >&5
8018 $as_echo "no" >&6; }
8022 # Extract the first word of "intltool-extract", so it can be a program name with args.
8023 set dummy intltool-extract; ac_word=$2
8024 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8025 $as_echo_n "checking for $ac_word... " >&6; }
8026 if test "${ac_cv_path_INTLTOOL_EXTRACT+set}" = set; then
8027 $as_echo_n "(cached) " >&6
8028 else
8029 case $INTLTOOL_EXTRACT in
8030 [\\/]* | ?:[\\/]*)
8031 ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
8034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8035 for as_dir in $PATH
8037 IFS=$as_save_IFS
8038 test -z "$as_dir" && as_dir=.
8039 for ac_exec_ext in '' $ac_executable_extensions; do
8040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8041 ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
8042 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8043 break 2
8045 done
8046 done
8047 IFS=$as_save_IFS
8050 esac
8052 INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
8053 if test -n "$INTLTOOL_EXTRACT"; then
8054 { $as_echo "$as_me:$LINENO: result: $INTLTOOL_EXTRACT" >&5
8055 $as_echo "$INTLTOOL_EXTRACT" >&6; }
8056 else
8057 { $as_echo "$as_me:$LINENO: result: no" >&5
8058 $as_echo "no" >&6; }
8062 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
8063 { { $as_echo "$as_me:$LINENO: error: The intltool scripts were not found. Please install intltool." >&5
8064 $as_echo "$as_me: error: The intltool scripts were not found. Please install intltool." >&2;}
8065 { (exit 1); exit 1; }; }
8068 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 $< $@'
8069 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 $< $@'
8070 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 $< $@'
8071 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 $< $@'
8072 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
8073 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 $< $@'
8074 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 $< $@'
8075 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 $< $@'
8076 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 $< $@'
8077 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 $< $@'
8078 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 $< $@'
8079 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
8080 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 $< $@'
8081 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 $< $@'
8082 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 $< $@'
8083 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 $< $@'
8084 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 $< $@'
8085 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 $< $@'
8086 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 $< $@'
8184 # Check the gettext tools to make sure they are GNU
8185 # Extract the first word of "xgettext", so it can be a program name with args.
8186 set dummy xgettext; ac_word=$2
8187 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8188 $as_echo_n "checking for $ac_word... " >&6; }
8189 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8190 $as_echo_n "(cached) " >&6
8191 else
8192 case $XGETTEXT in
8193 [\\/]* | ?:[\\/]*)
8194 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8198 for as_dir in $PATH
8200 IFS=$as_save_IFS
8201 test -z "$as_dir" && as_dir=.
8202 for ac_exec_ext in '' $ac_executable_extensions; do
8203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8204 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
8205 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8206 break 2
8208 done
8209 done
8210 IFS=$as_save_IFS
8213 esac
8215 XGETTEXT=$ac_cv_path_XGETTEXT
8216 if test -n "$XGETTEXT"; then
8217 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8218 $as_echo "$XGETTEXT" >&6; }
8219 else
8220 { $as_echo "$as_me:$LINENO: result: no" >&5
8221 $as_echo "no" >&6; }
8225 # Extract the first word of "msgmerge", so it can be a program name with args.
8226 set dummy msgmerge; ac_word=$2
8227 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8228 $as_echo_n "checking for $ac_word... " >&6; }
8229 if test "${ac_cv_path_MSGMERGE+set}" = set; then
8230 $as_echo_n "(cached) " >&6
8231 else
8232 case $MSGMERGE in
8233 [\\/]* | ?:[\\/]*)
8234 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
8237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8238 for as_dir in $PATH
8240 IFS=$as_save_IFS
8241 test -z "$as_dir" && as_dir=.
8242 for ac_exec_ext in '' $ac_executable_extensions; do
8243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8244 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
8245 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8246 break 2
8248 done
8249 done
8250 IFS=$as_save_IFS
8253 esac
8255 MSGMERGE=$ac_cv_path_MSGMERGE
8256 if test -n "$MSGMERGE"; then
8257 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
8258 $as_echo "$MSGMERGE" >&6; }
8259 else
8260 { $as_echo "$as_me:$LINENO: result: no" >&5
8261 $as_echo "no" >&6; }
8265 # Extract the first word of "msgfmt", so it can be a program name with args.
8266 set dummy msgfmt; ac_word=$2
8267 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8268 $as_echo_n "checking for $ac_word... " >&6; }
8269 if test "${ac_cv_path_MSGFMT+set}" = set; then
8270 $as_echo_n "(cached) " >&6
8271 else
8272 case $MSGFMT in
8273 [\\/]* | ?:[\\/]*)
8274 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8278 for as_dir in $PATH
8280 IFS=$as_save_IFS
8281 test -z "$as_dir" && as_dir=.
8282 for ac_exec_ext in '' $ac_executable_extensions; do
8283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8284 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
8285 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8286 break 2
8288 done
8289 done
8290 IFS=$as_save_IFS
8293 esac
8295 MSGFMT=$ac_cv_path_MSGFMT
8296 if test -n "$MSGFMT"; then
8297 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
8298 $as_echo "$MSGFMT" >&6; }
8299 else
8300 { $as_echo "$as_me:$LINENO: result: no" >&5
8301 $as_echo "no" >&6; }
8305 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8306 set dummy gmsgfmt; ac_word=$2
8307 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8308 $as_echo_n "checking for $ac_word... " >&6; }
8309 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8310 $as_echo_n "(cached) " >&6
8311 else
8312 case $GMSGFMT in
8313 [\\/]* | ?:[\\/]*)
8314 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8318 for as_dir in $PATH
8320 IFS=$as_save_IFS
8321 test -z "$as_dir" && as_dir=.
8322 for ac_exec_ext in '' $ac_executable_extensions; do
8323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8324 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8325 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8326 break 2
8328 done
8329 done
8330 IFS=$as_save_IFS
8332 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8334 esac
8336 GMSGFMT=$ac_cv_path_GMSGFMT
8337 if test -n "$GMSGFMT"; then
8338 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8339 $as_echo "$GMSGFMT" >&6; }
8340 else
8341 { $as_echo "$as_me:$LINENO: result: no" >&5
8342 $as_echo "no" >&6; }
8346 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
8347 { { $as_echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
8348 $as_echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
8349 { (exit 1); exit 1; }; }
8351 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
8352 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
8353 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
8354 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
8355 { { $as_echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
8356 $as_echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
8357 { (exit 1); exit 1; }; }
8360 # Extract the first word of "perl", so it can be a program name with args.
8361 set dummy perl; ac_word=$2
8362 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8363 $as_echo_n "checking for $ac_word... " >&6; }
8364 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
8365 $as_echo_n "(cached) " >&6
8366 else
8367 case $INTLTOOL_PERL in
8368 [\\/]* | ?:[\\/]*)
8369 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
8372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8373 for as_dir in $PATH
8375 IFS=$as_save_IFS
8376 test -z "$as_dir" && as_dir=.
8377 for ac_exec_ext in '' $ac_executable_extensions; do
8378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8379 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
8380 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8381 break 2
8383 done
8384 done
8385 IFS=$as_save_IFS
8388 esac
8390 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
8391 if test -n "$INTLTOOL_PERL"; then
8392 { $as_echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
8393 $as_echo "$INTLTOOL_PERL" >&6; }
8394 else
8395 { $as_echo "$as_me:$LINENO: result: no" >&5
8396 $as_echo "no" >&6; }
8400 if test -z "$INTLTOOL_PERL"; then
8401 { { $as_echo "$as_me:$LINENO: error: perl not found" >&5
8402 $as_echo "$as_me: error: perl not found" >&2;}
8403 { (exit 1); exit 1; }; }
8405 { $as_echo "$as_me:$LINENO: checking for perl >= 5.8.1" >&5
8406 $as_echo_n "checking for perl >= 5.8.1... " >&6; }
8407 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
8408 if test $? -ne 0; then
8409 { { $as_echo "$as_me:$LINENO: error: perl 5.8.1 is required for intltool" >&5
8410 $as_echo "$as_me: error: perl 5.8.1 is required for intltool" >&2;}
8411 { (exit 1); exit 1; }; }
8412 else
8413 IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
8414 { $as_echo "$as_me:$LINENO: result: $IT_PERL_VERSION" >&5
8415 $as_echo "$IT_PERL_VERSION" >&6; }
8417 if test "x" != "xno-xml"; then
8418 { $as_echo "$as_me:$LINENO: checking for XML::Parser" >&5
8419 $as_echo_n "checking for XML::Parser... " >&6; }
8420 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
8421 { $as_echo "$as_me:$LINENO: result: ok" >&5
8422 $as_echo "ok" >&6; }
8423 else
8424 { { $as_echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
8425 $as_echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
8426 { (exit 1); exit 1; }; }
8430 # Substitute ALL_LINGUAS so we can use it in po/Makefile
8433 # Set DATADIRNAME correctly if it is not set yet
8434 # (copied from glib-gettext.m4)
8435 if test -z "$DATADIRNAME"; then
8436 cat >conftest.$ac_ext <<_ACEOF
8437 /* confdefs.h. */
8438 _ACEOF
8439 cat confdefs.h >>conftest.$ac_ext
8440 cat >>conftest.$ac_ext <<_ACEOF
8441 /* end confdefs.h. */
8444 main ()
8446 extern int _nl_msg_cat_cntr;
8447 return _nl_msg_cat_cntr
8449 return 0;
8451 _ACEOF
8452 rm -f conftest.$ac_objext conftest$ac_exeext
8453 if { (ac_try="$ac_link"
8454 case "(($ac_try" in
8455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8456 *) ac_try_echo=$ac_try;;
8457 esac
8458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8459 $as_echo "$ac_try_echo") >&5
8460 (eval "$ac_link") 2>conftest.er1
8461 ac_status=$?
8462 grep -v '^ *+' conftest.er1 >conftest.err
8463 rm -f conftest.er1
8464 cat conftest.err >&5
8465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); } && {
8467 test -z "$ac_c_werror_flag" ||
8468 test ! -s conftest.err
8469 } && test -s conftest$ac_exeext && {
8470 test "$cross_compiling" = yes ||
8471 $as_test_x conftest$ac_exeext
8472 }; then
8473 DATADIRNAME=share
8474 else
8475 $as_echo "$as_me: failed program was:" >&5
8476 sed 's/^/| /' conftest.$ac_ext >&5
8478 case $host in
8479 *-*-solaris*)
8480 { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
8481 $as_echo_n "checking for bind_textdomain_codeset... " >&6; }
8482 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
8483 $as_echo_n "(cached) " >&6
8484 else
8485 cat >conftest.$ac_ext <<_ACEOF
8486 /* confdefs.h. */
8487 _ACEOF
8488 cat confdefs.h >>conftest.$ac_ext
8489 cat >>conftest.$ac_ext <<_ACEOF
8490 /* end confdefs.h. */
8491 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
8492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8493 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
8495 /* System header to define __stub macros and hopefully few prototypes,
8496 which can conflict with char bind_textdomain_codeset (); below.
8497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8498 <limits.h> exists even on freestanding compilers. */
8500 #ifdef __STDC__
8501 # include <limits.h>
8502 #else
8503 # include <assert.h>
8504 #endif
8506 #undef bind_textdomain_codeset
8508 /* Override any GCC internal prototype to avoid an error.
8509 Use char because int might match the return type of a GCC
8510 builtin and then its argument prototype would still apply. */
8511 #ifdef __cplusplus
8512 extern "C"
8513 #endif
8514 char bind_textdomain_codeset ();
8515 /* The GNU C library defines this for functions which it implements
8516 to always fail with ENOSYS. Some functions are actually named
8517 something starting with __ and the normal name is an alias. */
8518 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
8519 choke me
8520 #endif
8523 main ()
8525 return bind_textdomain_codeset ();
8527 return 0;
8529 _ACEOF
8530 rm -f conftest.$ac_objext conftest$ac_exeext
8531 if { (ac_try="$ac_link"
8532 case "(($ac_try" in
8533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8534 *) ac_try_echo=$ac_try;;
8535 esac
8536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8537 $as_echo "$ac_try_echo") >&5
8538 (eval "$ac_link") 2>conftest.er1
8539 ac_status=$?
8540 grep -v '^ *+' conftest.er1 >conftest.err
8541 rm -f conftest.er1
8542 cat conftest.err >&5
8543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); } && {
8545 test -z "$ac_c_werror_flag" ||
8546 test ! -s conftest.err
8547 } && test -s conftest$ac_exeext && {
8548 test "$cross_compiling" = yes ||
8549 $as_test_x conftest$ac_exeext
8550 }; then
8551 ac_cv_func_bind_textdomain_codeset=yes
8552 else
8553 $as_echo "$as_me: failed program was:" >&5
8554 sed 's/^/| /' conftest.$ac_ext >&5
8556 ac_cv_func_bind_textdomain_codeset=no
8559 rm -rf conftest.dSYM
8560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8561 conftest$ac_exeext conftest.$ac_ext
8563 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
8564 $as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
8565 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then
8566 DATADIRNAME=share
8567 else
8568 DATADIRNAME=lib
8573 DATADIRNAME=lib
8575 esac
8578 rm -rf conftest.dSYM
8579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8580 conftest$ac_exeext conftest.$ac_ext
8590 { $as_echo "$as_me:$LINENO: checking for g_malloc0 in -lglib-2.0" >&5
8591 $as_echo_n "checking for g_malloc0 in -lglib-2.0... " >&6; }
8592 if test "${ac_cv_lib_glib_2_0_g_malloc0+set}" = set; then
8593 $as_echo_n "(cached) " >&6
8594 else
8595 ac_check_lib_save_LIBS=$LIBS
8596 LIBS="-lglib-2.0 $LIBS"
8597 cat >conftest.$ac_ext <<_ACEOF
8598 /* confdefs.h. */
8599 _ACEOF
8600 cat confdefs.h >>conftest.$ac_ext
8601 cat >>conftest.$ac_ext <<_ACEOF
8602 /* end confdefs.h. */
8604 /* Override any GCC internal prototype to avoid an error.
8605 Use char because int might match the return type of a GCC
8606 builtin and then its argument prototype would still apply. */
8607 #ifdef __cplusplus
8608 extern "C"
8609 #endif
8610 char g_malloc0 ();
8612 main ()
8614 return g_malloc0 ();
8616 return 0;
8618 _ACEOF
8619 rm -f conftest.$ac_objext conftest$ac_exeext
8620 if { (ac_try="$ac_link"
8621 case "(($ac_try" in
8622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8623 *) ac_try_echo=$ac_try;;
8624 esac
8625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8626 $as_echo "$ac_try_echo") >&5
8627 (eval "$ac_link") 2>conftest.er1
8628 ac_status=$?
8629 grep -v '^ *+' conftest.er1 >conftest.err
8630 rm -f conftest.er1
8631 cat conftest.err >&5
8632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); } && {
8634 test -z "$ac_c_werror_flag" ||
8635 test ! -s conftest.err
8636 } && test -s conftest$ac_exeext && {
8637 test "$cross_compiling" = yes ||
8638 $as_test_x conftest$ac_exeext
8639 }; then
8640 ac_cv_lib_glib_2_0_g_malloc0=yes
8641 else
8642 $as_echo "$as_me: failed program was:" >&5
8643 sed 's/^/| /' conftest.$ac_ext >&5
8645 ac_cv_lib_glib_2_0_g_malloc0=no
8648 rm -rf conftest.dSYM
8649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8650 conftest$ac_exeext conftest.$ac_ext
8651 LIBS=$ac_check_lib_save_LIBS
8653 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_glib_2_0_g_malloc0" >&5
8654 $as_echo "$ac_cv_lib_glib_2_0_g_malloc0" >&6; }
8655 if test "x$ac_cv_lib_glib_2_0_g_malloc0" = x""yes; then
8656 cat >>confdefs.h <<_ACEOF
8657 #define HAVE_LIBGLIB_2_0 1
8658 _ACEOF
8660 LIBS="-lglib-2.0 $LIBS"
8662 else
8663 { { $as_echo "$as_me:$LINENO: error: \"libglib not installed\"" >&5
8664 $as_echo "$as_me: error: \"libglib not installed\"" >&2;}
8665 { (exit 1); exit 1; }; }
8672 { $as_echo "$as_me:$LINENO: checking for fftw_plan_dft_r2c_2d in -lfftw3" >&5
8673 $as_echo_n "checking for fftw_plan_dft_r2c_2d in -lfftw3... " >&6; }
8674 if test "${ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d+set}" = set; then
8675 $as_echo_n "(cached) " >&6
8676 else
8677 ac_check_lib_save_LIBS=$LIBS
8678 LIBS="-lfftw3 $LIBS"
8679 cat >conftest.$ac_ext <<_ACEOF
8680 /* confdefs.h. */
8681 _ACEOF
8682 cat confdefs.h >>conftest.$ac_ext
8683 cat >>conftest.$ac_ext <<_ACEOF
8684 /* end confdefs.h. */
8686 /* Override any GCC internal prototype to avoid an error.
8687 Use char because int might match the return type of a GCC
8688 builtin and then its argument prototype would still apply. */
8689 #ifdef __cplusplus
8690 extern "C"
8691 #endif
8692 char fftw_plan_dft_r2c_2d ();
8694 main ()
8696 return fftw_plan_dft_r2c_2d ();
8698 return 0;
8700 _ACEOF
8701 rm -f conftest.$ac_objext conftest$ac_exeext
8702 if { (ac_try="$ac_link"
8703 case "(($ac_try" in
8704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8705 *) ac_try_echo=$ac_try;;
8706 esac
8707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8708 $as_echo "$ac_try_echo") >&5
8709 (eval "$ac_link") 2>conftest.er1
8710 ac_status=$?
8711 grep -v '^ *+' conftest.er1 >conftest.err
8712 rm -f conftest.er1
8713 cat conftest.err >&5
8714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); } && {
8716 test -z "$ac_c_werror_flag" ||
8717 test ! -s conftest.err
8718 } && test -s conftest$ac_exeext && {
8719 test "$cross_compiling" = yes ||
8720 $as_test_x conftest$ac_exeext
8721 }; then
8722 ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d=yes
8723 else
8724 $as_echo "$as_me: failed program was:" >&5
8725 sed 's/^/| /' conftest.$ac_ext >&5
8727 ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d=no
8730 rm -rf conftest.dSYM
8731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8732 conftest$ac_exeext conftest.$ac_ext
8733 LIBS=$ac_check_lib_save_LIBS
8735 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" >&5
8736 $as_echo "$ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" >&6; }
8737 if test "x$ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" = x""yes; then
8738 cat >>confdefs.h <<_ACEOF
8739 #define HAVE_LIBFFTW3 1
8740 _ACEOF
8742 LIBS="-lfftw3 $LIBS"
8744 else
8745 { { $as_echo "$as_me:$LINENO: error: \"libfftw3 not installed\"" >&5
8746 $as_echo "$as_me: error: \"libfftw3 not installed\"" >&2;}
8747 { (exit 1); exit 1; }; }
8752 { $as_echo "$as_me:$LINENO: checking for main in -lgslcblas" >&5
8753 $as_echo_n "checking for main in -lgslcblas... " >&6; }
8754 if test "${ac_cv_lib_gslcblas_main+set}" = set; then
8755 $as_echo_n "(cached) " >&6
8756 else
8757 ac_check_lib_save_LIBS=$LIBS
8758 LIBS="-lgslcblas $LIBS"
8759 cat >conftest.$ac_ext <<_ACEOF
8760 /* confdefs.h. */
8761 _ACEOF
8762 cat confdefs.h >>conftest.$ac_ext
8763 cat >>conftest.$ac_ext <<_ACEOF
8764 /* end confdefs.h. */
8768 main ()
8770 return main ();
8772 return 0;
8774 _ACEOF
8775 rm -f conftest.$ac_objext conftest$ac_exeext
8776 if { (ac_try="$ac_link"
8777 case "(($ac_try" in
8778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8779 *) ac_try_echo=$ac_try;;
8780 esac
8781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8782 $as_echo "$ac_try_echo") >&5
8783 (eval "$ac_link") 2>conftest.er1
8784 ac_status=$?
8785 grep -v '^ *+' conftest.er1 >conftest.err
8786 rm -f conftest.er1
8787 cat conftest.err >&5
8788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); } && {
8790 test -z "$ac_c_werror_flag" ||
8791 test ! -s conftest.err
8792 } && test -s conftest$ac_exeext && {
8793 test "$cross_compiling" = yes ||
8794 $as_test_x conftest$ac_exeext
8795 }; then
8796 ac_cv_lib_gslcblas_main=yes
8797 else
8798 $as_echo "$as_me: failed program was:" >&5
8799 sed 's/^/| /' conftest.$ac_ext >&5
8801 ac_cv_lib_gslcblas_main=no
8804 rm -rf conftest.dSYM
8805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8806 conftest$ac_exeext conftest.$ac_ext
8807 LIBS=$ac_check_lib_save_LIBS
8809 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gslcblas_main" >&5
8810 $as_echo "$ac_cv_lib_gslcblas_main" >&6; }
8811 if test "x$ac_cv_lib_gslcblas_main" = x""yes; then
8812 cat >>confdefs.h <<_ACEOF
8813 #define HAVE_LIBGSLCBLAS 1
8814 _ACEOF
8816 LIBS="-lgslcblas $LIBS"
8818 else
8819 { { $as_echo "$as_me:$LINENO: error: \"libgslcblas not installed\"" >&5
8820 $as_echo "$as_me: error: \"libgslcblas not installed\"" >&2;}
8821 { (exit 1); exit 1; }; }
8826 { $as_echo "$as_me:$LINENO: checking for main in -lgsl" >&5
8827 $as_echo_n "checking for main in -lgsl... " >&6; }
8828 if test "${ac_cv_lib_gsl_main+set}" = set; then
8829 $as_echo_n "(cached) " >&6
8830 else
8831 ac_check_lib_save_LIBS=$LIBS
8832 LIBS="-lgsl $LIBS"
8833 cat >conftest.$ac_ext <<_ACEOF
8834 /* confdefs.h. */
8835 _ACEOF
8836 cat confdefs.h >>conftest.$ac_ext
8837 cat >>conftest.$ac_ext <<_ACEOF
8838 /* end confdefs.h. */
8842 main ()
8844 return main ();
8846 return 0;
8848 _ACEOF
8849 rm -f conftest.$ac_objext conftest$ac_exeext
8850 if { (ac_try="$ac_link"
8851 case "(($ac_try" in
8852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8853 *) ac_try_echo=$ac_try;;
8854 esac
8855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8856 $as_echo "$ac_try_echo") >&5
8857 (eval "$ac_link") 2>conftest.er1
8858 ac_status=$?
8859 grep -v '^ *+' conftest.er1 >conftest.err
8860 rm -f conftest.er1
8861 cat conftest.err >&5
8862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); } && {
8864 test -z "$ac_c_werror_flag" ||
8865 test ! -s conftest.err
8866 } && test -s conftest$ac_exeext && {
8867 test "$cross_compiling" = yes ||
8868 $as_test_x conftest$ac_exeext
8869 }; then
8870 ac_cv_lib_gsl_main=yes
8871 else
8872 $as_echo "$as_me: failed program was:" >&5
8873 sed 's/^/| /' conftest.$ac_ext >&5
8875 ac_cv_lib_gsl_main=no
8878 rm -rf conftest.dSYM
8879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8880 conftest$ac_exeext conftest.$ac_ext
8881 LIBS=$ac_check_lib_save_LIBS
8883 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gsl_main" >&5
8884 $as_echo "$ac_cv_lib_gsl_main" >&6; }
8885 if test "x$ac_cv_lib_gsl_main" = x""yes; then
8886 cat >>confdefs.h <<_ACEOF
8887 #define HAVE_LIBGSL 1
8888 _ACEOF
8890 LIBS="-lgsl $LIBS"
8892 else
8893 { { $as_echo "$as_me:$LINENO: error: \"libgsl not installed\"" >&5
8894 $as_echo "$as_me: error: \"libgsl not installed\"" >&2;}
8895 { (exit 1); exit 1; }; }
8900 # Check whether --enable-mpi was given.
8901 if test "${enable_mpi+set}" = set; then
8902 enableval=$enable_mpi; ENABLE_MPI="-DENABLE_MPI"
8908 if test "${ENABLE_MPI}" == '-DENABLE_MPI'; then
8910 # Extract the first word of "mpirun", so it can be a program name with args.
8911 set dummy mpirun; ac_word=$2
8912 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8913 $as_echo_n "checking for $ac_word... " >&6; }
8914 if test "${ac_cv_prog_MPIRUN+set}" = set; then
8915 $as_echo_n "(cached) " >&6
8916 else
8917 if test -n "$MPIRUN"; then
8918 ac_cv_prog_MPIRUN="$MPIRUN" # Let the user override the test.
8919 else
8920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8921 for as_dir in $PATH
8923 IFS=$as_save_IFS
8924 test -z "$as_dir" && as_dir=.
8925 for ac_exec_ext in '' $ac_executable_extensions; do
8926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8927 ac_cv_prog_MPIRUN="true"
8928 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8929 break 2
8931 done
8932 done
8933 IFS=$as_save_IFS
8935 test -z "$ac_cv_prog_MPIRUN" && ac_cv_prog_MPIRUN="false"
8938 MPIRUN=$ac_cv_prog_MPIRUN
8939 if test -n "$MPIRUN"; then
8940 { $as_echo "$as_me:$LINENO: result: $MPIRUN" >&5
8941 $as_echo "$MPIRUN" >&6; }
8942 else
8943 { $as_echo "$as_me:$LINENO: result: no" >&5
8944 $as_echo "no" >&6; }
8948 if test x$MPIRUN = xfalse ; then
8949 { { $as_echo "$as_me:$LINENO: error: \"missing mpirun \
8950 Needed by gpiv when --enable-mpi\"" >&5
8951 $as_echo "$as_me: error: \"missing mpirun \
8952 Needed by gpiv when --enable-mpi\"" >&2;}
8953 { (exit 1); exit 1; }; }
8956 # Extract the first word of "gpiv_rr", so it can be a program name with args.
8957 set dummy gpiv_rr; ac_word=$2
8958 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8959 $as_echo_n "checking for $ac_word... " >&6; }
8960 if test "${ac_cv_prog_RR+set}" = set; then
8961 $as_echo_n "(cached) " >&6
8962 else
8963 if test -n "$RR"; then
8964 ac_cv_prog_RR="$RR" # Let the user override the test.
8965 else
8966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8967 for as_dir in $PATH
8969 IFS=$as_save_IFS
8970 test -z "$as_dir" && as_dir=.
8971 for ac_exec_ext in '' $ac_executable_extensions; do
8972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8973 ac_cv_prog_RR="true"
8974 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8975 break 2
8977 done
8978 done
8979 IFS=$as_save_IFS
8981 test -z "$ac_cv_prog_RR" && ac_cv_prog_RR="false"
8984 RR=$ac_cv_prog_RR
8985 if test -n "$RR"; then
8986 { $as_echo "$as_me:$LINENO: result: $RR" >&5
8987 $as_echo "$RR" >&6; }
8988 else
8989 { $as_echo "$as_me:$LINENO: result: no" >&5
8990 $as_echo "no" >&6; }
8994 if test x$RR = xfalse ; then
8995 { { $as_echo "$as_me:$LINENO: error: \"missing mpi-enabled gpiv_rr from gpivtools. \
8996 Needed by gpiv when --enable-mpi\"" >&5
8997 $as_echo "$as_me: error: \"missing mpi-enabled gpiv_rr from gpivtools. \
8998 Needed by gpiv when --enable-mpi\"" >&2;}
8999 { (exit 1); exit 1; }; }
9003 { $as_echo "$as_me:$LINENO: checking for gpiv_piv_mpi_bcast_pivpar in -lgpiv_mpi" >&5
9004 $as_echo_n "checking for gpiv_piv_mpi_bcast_pivpar in -lgpiv_mpi... " >&6; }
9005 if test "${ac_cv_lib_gpiv_mpi_gpiv_piv_mpi_bcast_pivpar+set}" = set; then
9006 $as_echo_n "(cached) " >&6
9007 else
9008 ac_check_lib_save_LIBS=$LIBS
9009 LIBS="-lgpiv_mpi $LIBS"
9010 cat >conftest.$ac_ext <<_ACEOF
9011 /* confdefs.h. */
9012 _ACEOF
9013 cat confdefs.h >>conftest.$ac_ext
9014 cat >>conftest.$ac_ext <<_ACEOF
9015 /* end confdefs.h. */
9017 /* Override any GCC internal prototype to avoid an error.
9018 Use char because int might match the return type of a GCC
9019 builtin and then its argument prototype would still apply. */
9020 #ifdef __cplusplus
9021 extern "C"
9022 #endif
9023 char gpiv_piv_mpi_bcast_pivpar ();
9025 main ()
9027 return gpiv_piv_mpi_bcast_pivpar ();
9029 return 0;
9031 _ACEOF
9032 rm -f conftest.$ac_objext conftest$ac_exeext
9033 if { (ac_try="$ac_link"
9034 case "(($ac_try" in
9035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9036 *) ac_try_echo=$ac_try;;
9037 esac
9038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9039 $as_echo "$ac_try_echo") >&5
9040 (eval "$ac_link") 2>conftest.er1
9041 ac_status=$?
9042 grep -v '^ *+' conftest.er1 >conftest.err
9043 rm -f conftest.er1
9044 cat conftest.err >&5
9045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); } && {
9047 test -z "$ac_c_werror_flag" ||
9048 test ! -s conftest.err
9049 } && test -s conftest$ac_exeext && {
9050 test "$cross_compiling" = yes ||
9051 $as_test_x conftest$ac_exeext
9052 }; then
9053 ac_cv_lib_gpiv_mpi_gpiv_piv_mpi_bcast_pivpar=yes
9054 else
9055 $as_echo "$as_me: failed program was:" >&5
9056 sed 's/^/| /' conftest.$ac_ext >&5
9058 ac_cv_lib_gpiv_mpi_gpiv_piv_mpi_bcast_pivpar=no
9061 rm -rf conftest.dSYM
9062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9063 conftest$ac_exeext conftest.$ac_ext
9064 LIBS=$ac_check_lib_save_LIBS
9066 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpiv_mpi_gpiv_piv_mpi_bcast_pivpar" >&5
9067 $as_echo "$ac_cv_lib_gpiv_mpi_gpiv_piv_mpi_bcast_pivpar" >&6; }
9068 if test "x$ac_cv_lib_gpiv_mpi_gpiv_piv_mpi_bcast_pivpar" = x""yes; then
9069 cat >>confdefs.h <<_ACEOF
9070 #define HAVE_LIBGPIV_MPI 1
9071 _ACEOF
9073 LIBS="-lgpiv_mpi $LIBS"
9075 else
9076 { { $as_echo "$as_me:$LINENO: error: \"gpiv_piv_mpi_bcast_pivpar is not working in libgpiv_mpi. \
9077 Enable MPI in libgpiv or disable it here by leaving out --enable-mpi during ./configure\"" >&5
9078 $as_echo "$as_me: error: \"gpiv_piv_mpi_bcast_pivpar is not working in libgpiv_mpi. \
9079 Enable MPI in libgpiv or disable it here by leaving out --enable-mpi during ./configure\"" >&2;}
9080 { (exit 1); exit 1; }; }
9084 else
9086 { $as_echo "$as_me:$LINENO: checking for gpiv_piv_interrogate_img in -lgpiv" >&5
9087 $as_echo_n "checking for gpiv_piv_interrogate_img in -lgpiv... " >&6; }
9088 if test "${ac_cv_lib_gpiv_gpiv_piv_interrogate_img+set}" = set; then
9089 $as_echo_n "(cached) " >&6
9090 else
9091 ac_check_lib_save_LIBS=$LIBS
9092 LIBS="-lgpiv $LIBS"
9093 cat >conftest.$ac_ext <<_ACEOF
9094 /* confdefs.h. */
9095 _ACEOF
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h. */
9100 /* Override any GCC internal prototype to avoid an error.
9101 Use char because int might match the return type of a GCC
9102 builtin and then its argument prototype would still apply. */
9103 #ifdef __cplusplus
9104 extern "C"
9105 #endif
9106 char gpiv_piv_interrogate_img ();
9108 main ()
9110 return gpiv_piv_interrogate_img ();
9112 return 0;
9114 _ACEOF
9115 rm -f conftest.$ac_objext conftest$ac_exeext
9116 if { (ac_try="$ac_link"
9117 case "(($ac_try" in
9118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9119 *) ac_try_echo=$ac_try;;
9120 esac
9121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9122 $as_echo "$ac_try_echo") >&5
9123 (eval "$ac_link") 2>conftest.er1
9124 ac_status=$?
9125 grep -v '^ *+' conftest.er1 >conftest.err
9126 rm -f conftest.er1
9127 cat conftest.err >&5
9128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); } && {
9130 test -z "$ac_c_werror_flag" ||
9131 test ! -s conftest.err
9132 } && test -s conftest$ac_exeext && {
9133 test "$cross_compiling" = yes ||
9134 $as_test_x conftest$ac_exeext
9135 }; then
9136 ac_cv_lib_gpiv_gpiv_piv_interrogate_img=yes
9137 else
9138 $as_echo "$as_me: failed program was:" >&5
9139 sed 's/^/| /' conftest.$ac_ext >&5
9141 ac_cv_lib_gpiv_gpiv_piv_interrogate_img=no
9144 rm -rf conftest.dSYM
9145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9146 conftest$ac_exeext conftest.$ac_ext
9147 LIBS=$ac_check_lib_save_LIBS
9149 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpiv_gpiv_piv_interrogate_img" >&5
9150 $as_echo "$ac_cv_lib_gpiv_gpiv_piv_interrogate_img" >&6; }
9151 if test "x$ac_cv_lib_gpiv_gpiv_piv_interrogate_img" = x""yes; then
9152 cat >>confdefs.h <<_ACEOF
9153 #define HAVE_LIBGPIV 1
9154 _ACEOF
9156 LIBS="-lgpiv $LIBS"
9158 else
9159 { { $as_echo "$as_me:$LINENO: error: libgpiv has not been installed" >&5
9160 $as_echo "$as_me: error: libgpiv has not been installed" >&2;}
9161 { (exit 1); exit 1; }; }
9172 for ac_header in stdlib.h string.h unistd.h fftw3.h gpiv.h
9174 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9176 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9177 $as_echo_n "checking for $ac_header... " >&6; }
9178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9179 $as_echo_n "(cached) " >&6
9181 ac_res=`eval 'as_val=${'$as_ac_Header'}
9182 $as_echo "$as_val"'`
9183 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9184 $as_echo "$ac_res" >&6; }
9185 else
9186 # Is the header compilable?
9187 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9188 $as_echo_n "checking $ac_header usability... " >&6; }
9189 cat >conftest.$ac_ext <<_ACEOF
9190 /* confdefs.h. */
9191 _ACEOF
9192 cat confdefs.h >>conftest.$ac_ext
9193 cat >>conftest.$ac_ext <<_ACEOF
9194 /* end confdefs.h. */
9195 $ac_includes_default
9196 #include <$ac_header>
9197 _ACEOF
9198 rm -f conftest.$ac_objext
9199 if { (ac_try="$ac_compile"
9200 case "(($ac_try" in
9201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9202 *) ac_try_echo=$ac_try;;
9203 esac
9204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9205 $as_echo "$ac_try_echo") >&5
9206 (eval "$ac_compile") 2>conftest.er1
9207 ac_status=$?
9208 grep -v '^ *+' conftest.er1 >conftest.err
9209 rm -f conftest.er1
9210 cat conftest.err >&5
9211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212 (exit $ac_status); } && {
9213 test -z "$ac_c_werror_flag" ||
9214 test ! -s conftest.err
9215 } && test -s conftest.$ac_objext; then
9216 ac_header_compiler=yes
9217 else
9218 $as_echo "$as_me: failed program was:" >&5
9219 sed 's/^/| /' conftest.$ac_ext >&5
9221 ac_header_compiler=no
9224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9225 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9226 $as_echo "$ac_header_compiler" >&6; }
9228 # Is the header present?
9229 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9230 $as_echo_n "checking $ac_header presence... " >&6; }
9231 cat >conftest.$ac_ext <<_ACEOF
9232 /* confdefs.h. */
9233 _ACEOF
9234 cat confdefs.h >>conftest.$ac_ext
9235 cat >>conftest.$ac_ext <<_ACEOF
9236 /* end confdefs.h. */
9237 #include <$ac_header>
9238 _ACEOF
9239 if { (ac_try="$ac_cpp conftest.$ac_ext"
9240 case "(($ac_try" in
9241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9242 *) ac_try_echo=$ac_try;;
9243 esac
9244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9245 $as_echo "$ac_try_echo") >&5
9246 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9247 ac_status=$?
9248 grep -v '^ *+' conftest.er1 >conftest.err
9249 rm -f conftest.er1
9250 cat conftest.err >&5
9251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252 (exit $ac_status); } >/dev/null && {
9253 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9254 test ! -s conftest.err
9255 }; then
9256 ac_header_preproc=yes
9257 else
9258 $as_echo "$as_me: failed program was:" >&5
9259 sed 's/^/| /' conftest.$ac_ext >&5
9261 ac_header_preproc=no
9264 rm -f conftest.err conftest.$ac_ext
9265 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9266 $as_echo "$ac_header_preproc" >&6; }
9268 # So? What about this header?
9269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9270 yes:no: )
9271 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9272 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9273 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9274 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9275 ac_header_preproc=yes
9277 no:yes:* )
9278 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9279 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9280 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9281 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9282 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9283 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9284 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9285 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9286 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9287 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9288 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9289 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9290 ( cat <<\_ASBOX
9291 ## ------------------------------------------------------------------- ##
9292 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=gpiv ##
9293 ## ------------------------------------------------------------------- ##
9294 _ASBOX
9295 ) | sed "s/^/$as_me: WARNING: /" >&2
9297 esac
9298 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9299 $as_echo_n "checking for $ac_header... " >&6; }
9300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9301 $as_echo_n "(cached) " >&6
9302 else
9303 eval "$as_ac_Header=\$ac_header_preproc"
9305 ac_res=`eval 'as_val=${'$as_ac_Header'}
9306 $as_echo "$as_val"'`
9307 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9308 $as_echo "$ac_res" >&6; }
9311 as_val=`eval 'as_val=${'$as_ac_Header'}
9312 $as_echo "$as_val"'`
9313 if test "x$as_val" = x""yes; then
9314 cat >>confdefs.h <<_ACEOF
9315 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9316 _ACEOF
9320 done
9323 # Check whether --enable-cam was given.
9324 if test "${enable_cam+set}" = set; then
9325 enableval=$enable_cam; ENABLE_CAM="-DENABLE_CAM"
9332 # Check whether --enable-trig was given.
9333 if test "${enable_trig+set}" = set; then
9334 enableval=$enable_trig; ENABLE_TRIG="-DENABLE_TRIG"
9341 if test $ENABLE_CAM || test $ENABLE_TRIG; then
9342 ENABLE_DAC="-DENABLE_DAC"
9346 if test "${ENABLE_CAM}" == '-DENABLE_CAM'; then
9348 { $as_echo "$as_me:$LINENO: checking for gpiv_cam_get_camvar in -lgpiv" >&5
9349 $as_echo_n "checking for gpiv_cam_get_camvar in -lgpiv... " >&6; }
9350 if test "${ac_cv_lib_gpiv_gpiv_cam_get_camvar+set}" = set; then
9351 $as_echo_n "(cached) " >&6
9352 else
9353 ac_check_lib_save_LIBS=$LIBS
9354 LIBS="-lgpiv $LIBS"
9355 cat >conftest.$ac_ext <<_ACEOF
9356 /* confdefs.h. */
9357 _ACEOF
9358 cat confdefs.h >>conftest.$ac_ext
9359 cat >>conftest.$ac_ext <<_ACEOF
9360 /* end confdefs.h. */
9362 /* Override any GCC internal prototype to avoid an error.
9363 Use char because int might match the return type of a GCC
9364 builtin and then its argument prototype would still apply. */
9365 #ifdef __cplusplus
9366 extern "C"
9367 #endif
9368 char gpiv_cam_get_camvar ();
9370 main ()
9372 return gpiv_cam_get_camvar ();
9374 return 0;
9376 _ACEOF
9377 rm -f conftest.$ac_objext conftest$ac_exeext
9378 if { (ac_try="$ac_link"
9379 case "(($ac_try" in
9380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9381 *) ac_try_echo=$ac_try;;
9382 esac
9383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9384 $as_echo "$ac_try_echo") >&5
9385 (eval "$ac_link") 2>conftest.er1
9386 ac_status=$?
9387 grep -v '^ *+' conftest.er1 >conftest.err
9388 rm -f conftest.er1
9389 cat conftest.err >&5
9390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); } && {
9392 test -z "$ac_c_werror_flag" ||
9393 test ! -s conftest.err
9394 } && test -s conftest$ac_exeext && {
9395 test "$cross_compiling" = yes ||
9396 $as_test_x conftest$ac_exeext
9397 }; then
9398 ac_cv_lib_gpiv_gpiv_cam_get_camvar=yes
9399 else
9400 $as_echo "$as_me: failed program was:" >&5
9401 sed 's/^/| /' conftest.$ac_ext >&5
9403 ac_cv_lib_gpiv_gpiv_cam_get_camvar=no
9406 rm -rf conftest.dSYM
9407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9408 conftest$ac_exeext conftest.$ac_ext
9409 LIBS=$ac_check_lib_save_LIBS
9411 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpiv_gpiv_cam_get_camvar" >&5
9412 $as_echo "$ac_cv_lib_gpiv_gpiv_cam_get_camvar" >&6; }
9413 if test "x$ac_cv_lib_gpiv_gpiv_cam_get_camvar" = x""yes; then
9414 cat >>confdefs.h <<_ACEOF
9415 #define HAVE_LIBGPIV 1
9416 _ACEOF
9418 LIBS="-lgpiv $LIBS"
9420 else
9421 { { $as_echo "$as_me:$LINENO: error: \"(IEEE-1394) camera is not working in libgpiv. \
9422 Enable (IEEE-1394) camera in libgpiv or disable it here by leaving out --enable-cam during ./configure\"" >&5
9423 $as_echo "$as_me: error: \"(IEEE-1394) camera is not working in libgpiv. \
9424 Enable (IEEE-1394) camera in libgpiv or disable it here by leaving out --enable-cam during ./configure\"" >&2;}
9425 { (exit 1); exit 1; }; }
9430 { $as_echo "$as_me:$LINENO: checking for raw1394_destroy_handle in -lraw1394" >&5
9431 $as_echo_n "checking for raw1394_destroy_handle in -lraw1394... " >&6; }
9432 if test "${ac_cv_lib_raw1394_raw1394_destroy_handle+set}" = set; then
9433 $as_echo_n "(cached) " >&6
9434 else
9435 ac_check_lib_save_LIBS=$LIBS
9436 LIBS="-lraw1394 $LIBS"
9437 cat >conftest.$ac_ext <<_ACEOF
9438 /* confdefs.h. */
9439 _ACEOF
9440 cat confdefs.h >>conftest.$ac_ext
9441 cat >>conftest.$ac_ext <<_ACEOF
9442 /* end confdefs.h. */
9444 /* Override any GCC internal prototype to avoid an error.
9445 Use char because int might match the return type of a GCC
9446 builtin and then its argument prototype would still apply. */
9447 #ifdef __cplusplus
9448 extern "C"
9449 #endif
9450 char raw1394_destroy_handle ();
9452 main ()
9454 return raw1394_destroy_handle ();
9456 return 0;
9458 _ACEOF
9459 rm -f conftest.$ac_objext conftest$ac_exeext
9460 if { (ac_try="$ac_link"
9461 case "(($ac_try" in
9462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9463 *) ac_try_echo=$ac_try;;
9464 esac
9465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9466 $as_echo "$ac_try_echo") >&5
9467 (eval "$ac_link") 2>conftest.er1
9468 ac_status=$?
9469 grep -v '^ *+' conftest.er1 >conftest.err
9470 rm -f conftest.er1
9471 cat conftest.err >&5
9472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 (exit $ac_status); } && {
9474 test -z "$ac_c_werror_flag" ||
9475 test ! -s conftest.err
9476 } && test -s conftest$ac_exeext && {
9477 test "$cross_compiling" = yes ||
9478 $as_test_x conftest$ac_exeext
9479 }; then
9480 ac_cv_lib_raw1394_raw1394_destroy_handle=yes
9481 else
9482 $as_echo "$as_me: failed program was:" >&5
9483 sed 's/^/| /' conftest.$ac_ext >&5
9485 ac_cv_lib_raw1394_raw1394_destroy_handle=no
9488 rm -rf conftest.dSYM
9489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9490 conftest$ac_exeext conftest.$ac_ext
9491 LIBS=$ac_check_lib_save_LIBS
9493 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_raw1394_raw1394_destroy_handle" >&5
9494 $as_echo "$ac_cv_lib_raw1394_raw1394_destroy_handle" >&6; }
9495 if test "x$ac_cv_lib_raw1394_raw1394_destroy_handle" = x""yes; then
9496 cat >>confdefs.h <<_ACEOF
9497 #define HAVE_LIBRAW1394 1
9498 _ACEOF
9500 LIBS="-lraw1394 $LIBS"
9502 else
9503 { { $as_echo "$as_me:$LINENO: error: \"libraw1394 not installed\"" >&5
9504 $as_echo "$as_me: error: \"libraw1394 not installed\"" >&2;}
9505 { (exit 1); exit 1; }; }
9510 { $as_echo "$as_me:$LINENO: checking for dc1394_create_handle in -ldc1394_control" >&5
9511 $as_echo_n "checking for dc1394_create_handle in -ldc1394_control... " >&6; }
9512 if test "${ac_cv_lib_dc1394_control_dc1394_create_handle+set}" = set; then
9513 $as_echo_n "(cached) " >&6
9514 else
9515 ac_check_lib_save_LIBS=$LIBS
9516 LIBS="-ldc1394_control $LIBS"
9517 cat >conftest.$ac_ext <<_ACEOF
9518 /* confdefs.h. */
9519 _ACEOF
9520 cat confdefs.h >>conftest.$ac_ext
9521 cat >>conftest.$ac_ext <<_ACEOF
9522 /* end confdefs.h. */
9524 /* Override any GCC internal prototype to avoid an error.
9525 Use char because int might match the return type of a GCC
9526 builtin and then its argument prototype would still apply. */
9527 #ifdef __cplusplus
9528 extern "C"
9529 #endif
9530 char dc1394_create_handle ();
9532 main ()
9534 return dc1394_create_handle ();
9536 return 0;
9538 _ACEOF
9539 rm -f conftest.$ac_objext conftest$ac_exeext
9540 if { (ac_try="$ac_link"
9541 case "(($ac_try" in
9542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9543 *) ac_try_echo=$ac_try;;
9544 esac
9545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9546 $as_echo "$ac_try_echo") >&5
9547 (eval "$ac_link") 2>conftest.er1
9548 ac_status=$?
9549 grep -v '^ *+' conftest.er1 >conftest.err
9550 rm -f conftest.er1
9551 cat conftest.err >&5
9552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); } && {
9554 test -z "$ac_c_werror_flag" ||
9555 test ! -s conftest.err
9556 } && test -s conftest$ac_exeext && {
9557 test "$cross_compiling" = yes ||
9558 $as_test_x conftest$ac_exeext
9559 }; then
9560 ac_cv_lib_dc1394_control_dc1394_create_handle=yes
9561 else
9562 $as_echo "$as_me: failed program was:" >&5
9563 sed 's/^/| /' conftest.$ac_ext >&5
9565 ac_cv_lib_dc1394_control_dc1394_create_handle=no
9568 rm -rf conftest.dSYM
9569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9570 conftest$ac_exeext conftest.$ac_ext
9571 LIBS=$ac_check_lib_save_LIBS
9573 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dc1394_control_dc1394_create_handle" >&5
9574 $as_echo "$ac_cv_lib_dc1394_control_dc1394_create_handle" >&6; }
9575 if test "x$ac_cv_lib_dc1394_control_dc1394_create_handle" = x""yes; then
9576 cat >>confdefs.h <<_ACEOF
9577 #define HAVE_LIBDC1394_CONTROL 1
9578 _ACEOF
9580 LIBS="-ldc1394_control $LIBS"
9582 else
9583 { { $as_echo "$as_me:$LINENO: error: \"libdc1394_control not installed\"" >&5
9584 $as_echo "$as_me: error: \"libdc1394_control not installed\"" >&2;}
9585 { (exit 1); exit 1; }; }
9589 if test "${ac_cv_header_libdc1394_dc1394_control_h+set}" = set; then
9590 { $as_echo "$as_me:$LINENO: checking for libdc1394/dc1394_control.h" >&5
9591 $as_echo_n "checking for libdc1394/dc1394_control.h... " >&6; }
9592 if test "${ac_cv_header_libdc1394_dc1394_control_h+set}" = set; then
9593 $as_echo_n "(cached) " >&6
9595 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libdc1394_dc1394_control_h" >&5
9596 $as_echo "$ac_cv_header_libdc1394_dc1394_control_h" >&6; }
9597 else
9598 # Is the header compilable?
9599 { $as_echo "$as_me:$LINENO: checking libdc1394/dc1394_control.h usability" >&5
9600 $as_echo_n "checking libdc1394/dc1394_control.h usability... " >&6; }
9601 cat >conftest.$ac_ext <<_ACEOF
9602 /* confdefs.h. */
9603 _ACEOF
9604 cat confdefs.h >>conftest.$ac_ext
9605 cat >>conftest.$ac_ext <<_ACEOF
9606 /* end confdefs.h. */
9607 $ac_includes_default
9608 #include <libdc1394/dc1394_control.h>
9609 _ACEOF
9610 rm -f conftest.$ac_objext
9611 if { (ac_try="$ac_compile"
9612 case "(($ac_try" in
9613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9614 *) ac_try_echo=$ac_try;;
9615 esac
9616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9617 $as_echo "$ac_try_echo") >&5
9618 (eval "$ac_compile") 2>conftest.er1
9619 ac_status=$?
9620 grep -v '^ *+' conftest.er1 >conftest.err
9621 rm -f conftest.er1
9622 cat conftest.err >&5
9623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); } && {
9625 test -z "$ac_c_werror_flag" ||
9626 test ! -s conftest.err
9627 } && test -s conftest.$ac_objext; then
9628 ac_header_compiler=yes
9629 else
9630 $as_echo "$as_me: failed program was:" >&5
9631 sed 's/^/| /' conftest.$ac_ext >&5
9633 ac_header_compiler=no
9636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9637 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9638 $as_echo "$ac_header_compiler" >&6; }
9640 # Is the header present?
9641 { $as_echo "$as_me:$LINENO: checking libdc1394/dc1394_control.h presence" >&5
9642 $as_echo_n "checking libdc1394/dc1394_control.h presence... " >&6; }
9643 cat >conftest.$ac_ext <<_ACEOF
9644 /* confdefs.h. */
9645 _ACEOF
9646 cat confdefs.h >>conftest.$ac_ext
9647 cat >>conftest.$ac_ext <<_ACEOF
9648 /* end confdefs.h. */
9649 #include <libdc1394/dc1394_control.h>
9650 _ACEOF
9651 if { (ac_try="$ac_cpp conftest.$ac_ext"
9652 case "(($ac_try" in
9653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9654 *) ac_try_echo=$ac_try;;
9655 esac
9656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9657 $as_echo "$ac_try_echo") >&5
9658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9659 ac_status=$?
9660 grep -v '^ *+' conftest.er1 >conftest.err
9661 rm -f conftest.er1
9662 cat conftest.err >&5
9663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); } >/dev/null && {
9665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9666 test ! -s conftest.err
9667 }; then
9668 ac_header_preproc=yes
9669 else
9670 $as_echo "$as_me: failed program was:" >&5
9671 sed 's/^/| /' conftest.$ac_ext >&5
9673 ac_header_preproc=no
9676 rm -f conftest.err conftest.$ac_ext
9677 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9678 $as_echo "$ac_header_preproc" >&6; }
9680 # So? What about this header?
9681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9682 yes:no: )
9683 { $as_echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: accepted by the compiler, rejected by the preprocessor!" >&5
9684 $as_echo "$as_me: WARNING: libdc1394/dc1394_control.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9685 { $as_echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: proceeding with the compiler's result" >&5
9686 $as_echo "$as_me: WARNING: libdc1394/dc1394_control.h: proceeding with the compiler's result" >&2;}
9687 ac_header_preproc=yes
9689 no:yes:* )
9690 { $as_echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: present but cannot be compiled" >&5
9691 $as_echo "$as_me: WARNING: libdc1394/dc1394_control.h: present but cannot be compiled" >&2;}
9692 { $as_echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: check for missing prerequisite headers?" >&5
9693 $as_echo "$as_me: WARNING: libdc1394/dc1394_control.h: check for missing prerequisite headers?" >&2;}
9694 { $as_echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: see the Autoconf documentation" >&5
9695 $as_echo "$as_me: WARNING: libdc1394/dc1394_control.h: see the Autoconf documentation" >&2;}
9696 { $as_echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: section \"Present But Cannot Be Compiled\"" >&5
9697 $as_echo "$as_me: WARNING: libdc1394/dc1394_control.h: section \"Present But Cannot Be Compiled\"" >&2;}
9698 { $as_echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: proceeding with the preprocessor's result" >&5
9699 $as_echo "$as_me: WARNING: libdc1394/dc1394_control.h: proceeding with the preprocessor's result" >&2;}
9700 { $as_echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: in the future, the compiler will take precedence" >&5
9701 $as_echo "$as_me: WARNING: libdc1394/dc1394_control.h: in the future, the compiler will take precedence" >&2;}
9702 ( cat <<\_ASBOX
9703 ## ------------------------------------------------------------------- ##
9704 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=gpiv ##
9705 ## ------------------------------------------------------------------- ##
9706 _ASBOX
9707 ) | sed "s/^/$as_me: WARNING: /" >&2
9709 esac
9710 { $as_echo "$as_me:$LINENO: checking for libdc1394/dc1394_control.h" >&5
9711 $as_echo_n "checking for libdc1394/dc1394_control.h... " >&6; }
9712 if test "${ac_cv_header_libdc1394_dc1394_control_h+set}" = set; then
9713 $as_echo_n "(cached) " >&6
9714 else
9715 ac_cv_header_libdc1394_dc1394_control_h=$ac_header_preproc
9717 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libdc1394_dc1394_control_h" >&5
9718 $as_echo "$ac_cv_header_libdc1394_dc1394_control_h" >&6; }
9721 if test "x$ac_cv_header_libdc1394_dc1394_control_h" = x""yes; then
9723 else
9724 { { $as_echo "$as_me:$LINENO: error: \"missing dc1394_control.h\"" >&5
9725 $as_echo "$as_me: error: \"missing dc1394_control.h\"" >&2;}
9726 { (exit 1); exit 1; }; }
9731 if test "${ac_cv_header_libraw1394_raw1394_h+set}" = set; then
9732 { $as_echo "$as_me:$LINENO: checking for libraw1394/raw1394.h" >&5
9733 $as_echo_n "checking for libraw1394/raw1394.h... " >&6; }
9734 if test "${ac_cv_header_libraw1394_raw1394_h+set}" = set; then
9735 $as_echo_n "(cached) " >&6
9737 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libraw1394_raw1394_h" >&5
9738 $as_echo "$ac_cv_header_libraw1394_raw1394_h" >&6; }
9739 else
9740 # Is the header compilable?
9741 { $as_echo "$as_me:$LINENO: checking libraw1394/raw1394.h usability" >&5
9742 $as_echo_n "checking libraw1394/raw1394.h usability... " >&6; }
9743 cat >conftest.$ac_ext <<_ACEOF
9744 /* confdefs.h. */
9745 _ACEOF
9746 cat confdefs.h >>conftest.$ac_ext
9747 cat >>conftest.$ac_ext <<_ACEOF
9748 /* end confdefs.h. */
9749 $ac_includes_default
9750 #include <libraw1394/raw1394.h>
9751 _ACEOF
9752 rm -f conftest.$ac_objext
9753 if { (ac_try="$ac_compile"
9754 case "(($ac_try" in
9755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9756 *) ac_try_echo=$ac_try;;
9757 esac
9758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9759 $as_echo "$ac_try_echo") >&5
9760 (eval "$ac_compile") 2>conftest.er1
9761 ac_status=$?
9762 grep -v '^ *+' conftest.er1 >conftest.err
9763 rm -f conftest.er1
9764 cat conftest.err >&5
9765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); } && {
9767 test -z "$ac_c_werror_flag" ||
9768 test ! -s conftest.err
9769 } && test -s conftest.$ac_objext; then
9770 ac_header_compiler=yes
9771 else
9772 $as_echo "$as_me: failed program was:" >&5
9773 sed 's/^/| /' conftest.$ac_ext >&5
9775 ac_header_compiler=no
9778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9779 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9780 $as_echo "$ac_header_compiler" >&6; }
9782 # Is the header present?
9783 { $as_echo "$as_me:$LINENO: checking libraw1394/raw1394.h presence" >&5
9784 $as_echo_n "checking libraw1394/raw1394.h presence... " >&6; }
9785 cat >conftest.$ac_ext <<_ACEOF
9786 /* confdefs.h. */
9787 _ACEOF
9788 cat confdefs.h >>conftest.$ac_ext
9789 cat >>conftest.$ac_ext <<_ACEOF
9790 /* end confdefs.h. */
9791 #include <libraw1394/raw1394.h>
9792 _ACEOF
9793 if { (ac_try="$ac_cpp conftest.$ac_ext"
9794 case "(($ac_try" in
9795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9796 *) ac_try_echo=$ac_try;;
9797 esac
9798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9799 $as_echo "$ac_try_echo") >&5
9800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9801 ac_status=$?
9802 grep -v '^ *+' conftest.er1 >conftest.err
9803 rm -f conftest.er1
9804 cat conftest.err >&5
9805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); } >/dev/null && {
9807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9808 test ! -s conftest.err
9809 }; then
9810 ac_header_preproc=yes
9811 else
9812 $as_echo "$as_me: failed program was:" >&5
9813 sed 's/^/| /' conftest.$ac_ext >&5
9815 ac_header_preproc=no
9818 rm -f conftest.err conftest.$ac_ext
9819 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9820 $as_echo "$ac_header_preproc" >&6; }
9822 # So? What about this header?
9823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9824 yes:no: )
9825 { $as_echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: accepted by the compiler, rejected by the preprocessor!" >&5
9826 $as_echo "$as_me: WARNING: libraw1394/raw1394.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9827 { $as_echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: proceeding with the compiler's result" >&5
9828 $as_echo "$as_me: WARNING: libraw1394/raw1394.h: proceeding with the compiler's result" >&2;}
9829 ac_header_preproc=yes
9831 no:yes:* )
9832 { $as_echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: present but cannot be compiled" >&5
9833 $as_echo "$as_me: WARNING: libraw1394/raw1394.h: present but cannot be compiled" >&2;}
9834 { $as_echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: check for missing prerequisite headers?" >&5
9835 $as_echo "$as_me: WARNING: libraw1394/raw1394.h: check for missing prerequisite headers?" >&2;}
9836 { $as_echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: see the Autoconf documentation" >&5
9837 $as_echo "$as_me: WARNING: libraw1394/raw1394.h: see the Autoconf documentation" >&2;}
9838 { $as_echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: section \"Present But Cannot Be Compiled\"" >&5
9839 $as_echo "$as_me: WARNING: libraw1394/raw1394.h: section \"Present But Cannot Be Compiled\"" >&2;}
9840 { $as_echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: proceeding with the preprocessor's result" >&5
9841 $as_echo "$as_me: WARNING: libraw1394/raw1394.h: proceeding with the preprocessor's result" >&2;}
9842 { $as_echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: in the future, the compiler will take precedence" >&5
9843 $as_echo "$as_me: WARNING: libraw1394/raw1394.h: in the future, the compiler will take precedence" >&2;}
9844 ( cat <<\_ASBOX
9845 ## ------------------------------------------------------------------- ##
9846 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=gpiv ##
9847 ## ------------------------------------------------------------------- ##
9848 _ASBOX
9849 ) | sed "s/^/$as_me: WARNING: /" >&2
9851 esac
9852 { $as_echo "$as_me:$LINENO: checking for libraw1394/raw1394.h" >&5
9853 $as_echo_n "checking for libraw1394/raw1394.h... " >&6; }
9854 if test "${ac_cv_header_libraw1394_raw1394_h+set}" = set; then
9855 $as_echo_n "(cached) " >&6
9856 else
9857 ac_cv_header_libraw1394_raw1394_h=$ac_header_preproc
9859 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libraw1394_raw1394_h" >&5
9860 $as_echo "$ac_cv_header_libraw1394_raw1394_h" >&6; }
9863 if test "x$ac_cv_header_libraw1394_raw1394_h" = x""yes; then
9865 else
9866 { { $as_echo "$as_me:$LINENO: error: \"missing raw1394.h\"" >&5
9867 $as_echo "$as_me: error: \"missing raw1394.h\"" >&2;}
9868 { (exit 1); exit 1; }; }
9875 if test "${ENABLE_TRIG}" == '-DENABLE_TRIG'; then
9877 { $as_echo "$as_me:$LINENO: checking for gpiv_trig_openrtfs in -lgpiv" >&5
9878 $as_echo_n "checking for gpiv_trig_openrtfs in -lgpiv... " >&6; }
9879 if test "${ac_cv_lib_gpiv_gpiv_trig_openrtfs+set}" = set; then
9880 $as_echo_n "(cached) " >&6
9881 else
9882 ac_check_lib_save_LIBS=$LIBS
9883 LIBS="-lgpiv $LIBS"
9884 cat >conftest.$ac_ext <<_ACEOF
9885 /* confdefs.h. */
9886 _ACEOF
9887 cat confdefs.h >>conftest.$ac_ext
9888 cat >>conftest.$ac_ext <<_ACEOF
9889 /* end confdefs.h. */
9891 /* Override any GCC internal prototype to avoid an error.
9892 Use char because int might match the return type of a GCC
9893 builtin and then its argument prototype would still apply. */
9894 #ifdef __cplusplus
9895 extern "C"
9896 #endif
9897 char gpiv_trig_openrtfs ();
9899 main ()
9901 return gpiv_trig_openrtfs ();
9903 return 0;
9905 _ACEOF
9906 rm -f conftest.$ac_objext conftest$ac_exeext
9907 if { (ac_try="$ac_link"
9908 case "(($ac_try" in
9909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9910 *) ac_try_echo=$ac_try;;
9911 esac
9912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9913 $as_echo "$ac_try_echo") >&5
9914 (eval "$ac_link") 2>conftest.er1
9915 ac_status=$?
9916 grep -v '^ *+' conftest.er1 >conftest.err
9917 rm -f conftest.er1
9918 cat conftest.err >&5
9919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); } && {
9921 test -z "$ac_c_werror_flag" ||
9922 test ! -s conftest.err
9923 } && test -s conftest$ac_exeext && {
9924 test "$cross_compiling" = yes ||
9925 $as_test_x conftest$ac_exeext
9926 }; then
9927 ac_cv_lib_gpiv_gpiv_trig_openrtfs=yes
9928 else
9929 $as_echo "$as_me: failed program was:" >&5
9930 sed 's/^/| /' conftest.$ac_ext >&5
9932 ac_cv_lib_gpiv_gpiv_trig_openrtfs=no
9935 rm -rf conftest.dSYM
9936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9937 conftest$ac_exeext conftest.$ac_ext
9938 LIBS=$ac_check_lib_save_LIBS
9940 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpiv_gpiv_trig_openrtfs" >&5
9941 $as_echo "$ac_cv_lib_gpiv_gpiv_trig_openrtfs" >&6; }
9942 if test "x$ac_cv_lib_gpiv_gpiv_trig_openrtfs" = x""yes; then
9943 cat >>confdefs.h <<_ACEOF
9944 #define HAVE_LIBGPIV 1
9945 _ACEOF
9947 LIBS="-lgpiv $LIBS"
9949 else
9950 { { $as_echo "$as_me:$LINENO: error: \"(Realtime) triggering is not working in libgpiv. \
9951 Enable (realtime) triggering in libgpiv or disable it here by leaving out --enable-trig during ./configure\"" >&5
9952 $as_echo "$as_me: error: \"(Realtime) triggering is not working in libgpiv. \
9953 Enable (realtime) triggering in libgpiv or disable it here by leaving out --enable-trig during ./configure\"" >&2;}
9954 { (exit 1); exit 1; }; }
9960 # Extract the first word of "gpiv_control", so it can be a program name with args.
9961 set dummy gpiv_control; ac_word=$2
9962 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9963 $as_echo_n "checking for $ac_word... " >&6; }
9964 if test "${ac_cv_prog_CONTROL+set}" = set; then
9965 $as_echo_n "(cached) " >&6
9966 else
9967 if test -n "$CONTROL"; then
9968 ac_cv_prog_CONTROL="$CONTROL" # Let the user override the test.
9969 else
9970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9971 for as_dir in $PATH
9973 IFS=$as_save_IFS
9974 test -z "$as_dir" && as_dir=.
9975 for ac_exec_ext in '' $ac_executable_extensions; do
9976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9977 ac_cv_prog_CONTROL="true"
9978 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9979 break 2
9981 done
9982 done
9983 IFS=$as_save_IFS
9985 test -z "$ac_cv_prog_CONTROL" && ac_cv_prog_CONTROL="false"
9988 CONTROL=$ac_cv_prog_CONTROL
9989 if test -n "$CONTROL"; then
9990 { $as_echo "$as_me:$LINENO: result: $CONTROL" >&5
9991 $as_echo "$CONTROL" >&6; }
9992 else
9993 { $as_echo "$as_me:$LINENO: result: no" >&5
9994 $as_echo "no" >&6; }
9998 if $CONTROL; then
9999 HAVE_CONTROL_TRUE=
10000 HAVE_CONTROL_FALSE='#'
10001 else
10002 HAVE_CONTROL_TRUE='#'
10003 HAVE_CONTROL_FALSE=
10007 # Check whether --enable-rta was given.
10008 if test "${enable_rta+set}" = set; then
10009 enableval=$enable_rta; RTA_TOPDIR="$enableval"
10010 else
10011 RTA_TOPDIR="/usr/lib/realtime"
10018 # Check whether --enable-k was given.
10019 if test "${enable_k+set}" = set; then
10020 enableval=$enable_k; K_TOPDIR="$enableval"
10021 else
10022 K_TOPDIR="/usr/src/kernel-headers-2.4.27-adeos"
10029 # Check whether --enable-img-width was given.
10030 if test "${enable_img_width+set}" = set; then
10031 enableval=$enable_img_width; OVERRIDE_IMAGE_WIDTH_MAX="-DIMAGE_WIDTH_MAX=$enableval"
10039 # Check whether --enable-img-height was given.
10040 if test "${enable_img_height+set}" = set; then
10041 enableval=$enable_img_height; OVERRIDE_IMAGE_HEIGHT_MAX="-DIMAGE_HEIGHT_MAX=$enableval"
10048 # Check whether --enable-canvas_aa was given.
10049 if test "${enable_canvas_aa+set}" = set; then
10050 enableval=$enable_canvas_aa; CANVAS_AA="-DCANVAS_AA"
10057 # Check whether --enable-debug was given.
10058 if test "${enable_debug+set}" = set; then
10059 enableval=$enable_debug; DEBUG="-DDEBUG"
10069 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"
10071 cat >confcache <<\_ACEOF
10072 # This file is a shell script that caches the results of configure
10073 # tests run on this system so they can be shared between configure
10074 # scripts and configure runs, see configure's option --config-cache.
10075 # It is not useful on other systems. If it contains results you don't
10076 # want to keep, you may remove or edit it.
10078 # config.status only pays attention to the cache file if you give it
10079 # the --recheck option to rerun configure.
10081 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10082 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10083 # following values.
10085 _ACEOF
10087 # The following way of writing the cache mishandles newlines in values,
10088 # but we know of no workaround that is simple, portable, and efficient.
10089 # So, we kill variables containing newlines.
10090 # Ultrix sh set writes to stderr and can't be redirected directly,
10091 # and sets the high bit in the cache file unless we assign to the vars.
10093 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10094 eval ac_val=\$$ac_var
10095 case $ac_val in #(
10096 *${as_nl}*)
10097 case $ac_var in #(
10098 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
10099 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10100 esac
10101 case $ac_var in #(
10102 _ | IFS | as_nl) ;; #(
10103 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10104 *) $as_unset $ac_var ;;
10105 esac ;;
10106 esac
10107 done
10109 (set) 2>&1 |
10110 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10111 *${as_nl}ac_space=\ *)
10112 # `set' does not quote correctly, so add quotes (double-quote
10113 # substitution turns \\\\ into \\, and sed turns \\ into \).
10114 sed -n \
10115 "s/'/'\\\\''/g;
10116 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10117 ;; #(
10119 # `set' quotes correctly as required by POSIX, so do not add quotes.
10120 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10122 esac |
10123 sort
10125 sed '
10126 /^ac_cv_env_/b end
10127 t clear
10128 :clear
10129 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10130 t end
10131 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10132 :end' >>confcache
10133 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10134 if test -w "$cache_file"; then
10135 test "x$cache_file" != "x/dev/null" &&
10136 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
10137 $as_echo "$as_me: updating cache $cache_file" >&6;}
10138 cat confcache >$cache_file
10139 else
10140 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10141 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10144 rm -f confcache
10146 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10147 # Let make expand exec_prefix.
10148 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10150 # Transform confdefs.h into DEFS.
10151 # Protect against shell expansion while executing Makefile rules.
10152 # Protect against Makefile macro expansion.
10154 # If the first sed substitution is executed (which looks for macros that
10155 # take arguments), then branch to the quote section. Otherwise,
10156 # look for a macro that doesn't take arguments.
10157 ac_script='
10158 :mline
10159 /\\$/{
10161 s,\\\n,,
10162 b mline
10164 t clear
10165 :clear
10166 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
10167 t quote
10168 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
10169 t quote
10170 b any
10171 :quote
10172 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
10173 s/\[/\\&/g
10174 s/\]/\\&/g
10175 s/\$/$$/g
10177 :any
10180 s/^\n//
10181 s/\n/ /g
10185 DEFS=`sed -n "$ac_script" confdefs.h`
10188 ac_libobjs=
10189 ac_ltlibobjs=
10190 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10191 # 1. Remove the extension, and $U if already installed.
10192 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10193 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10194 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10195 # will be set to the directory where LIBOBJS objects are built.
10196 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10197 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10198 done
10199 LIBOBJS=$ac_libobjs
10201 LTLIBOBJS=$ac_ltlibobjs
10204 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10205 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10206 Usually this means the macro was only invoked conditionally." >&5
10207 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10208 Usually this means the macro was only invoked conditionally." >&2;}
10209 { (exit 1); exit 1; }; }
10211 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10212 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10213 Usually this means the macro was only invoked conditionally." >&5
10214 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
10215 Usually this means the macro was only invoked conditionally." >&2;}
10216 { (exit 1); exit 1; }; }
10218 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10219 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10220 Usually this means the macro was only invoked conditionally." >&5
10221 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10222 Usually this means the macro was only invoked conditionally." >&2;}
10223 { (exit 1); exit 1; }; }
10225 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10226 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10227 Usually this means the macro was only invoked conditionally." >&5
10228 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10229 Usually this means the macro was only invoked conditionally." >&2;}
10230 { (exit 1); exit 1; }; }
10232 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10233 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10234 Usually this means the macro was only invoked conditionally." >&5
10235 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10236 Usually this means the macro was only invoked conditionally." >&2;}
10237 { (exit 1); exit 1; }; }
10240 ac_config_commands="$ac_config_commands po/stamp-it"
10243 if test -z "${HAVE_CONTROL_TRUE}" && test -z "${HAVE_CONTROL_FALSE}"; then
10244 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_CONTROL\" was never defined.
10245 Usually this means the macro was only invoked conditionally." >&5
10246 $as_echo "$as_me: error: conditional \"HAVE_CONTROL\" was never defined.
10247 Usually this means the macro was only invoked conditionally." >&2;}
10248 { (exit 1); exit 1; }; }
10251 : ${CONFIG_STATUS=./config.status}
10252 ac_write_fail=0
10253 ac_clean_files_save=$ac_clean_files
10254 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10255 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10256 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10257 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10258 #! $SHELL
10259 # Generated by $as_me.
10260 # Run this file to recreate the current configuration.
10261 # Compiler output produced by configure, useful for debugging
10262 # configure, is in config.log if it exists.
10264 debug=false
10265 ac_cs_recheck=false
10266 ac_cs_silent=false
10267 SHELL=\${CONFIG_SHELL-$SHELL}
10268 _ACEOF
10270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10271 ## --------------------- ##
10272 ## M4sh Initialization. ##
10273 ## --------------------- ##
10275 # Be more Bourne compatible
10276 DUALCASE=1; export DUALCASE # for MKS sh
10277 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10278 emulate sh
10279 NULLCMD=:
10280 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10281 # is contrary to our usage. Disable this feature.
10282 alias -g '${1+"$@"}'='"$@"'
10283 setopt NO_GLOB_SUBST
10284 else
10285 case `(set -o) 2>/dev/null` in
10286 *posix*) set -o posix ;;
10287 esac
10294 # PATH needs CR
10295 # Avoid depending upon Character Ranges.
10296 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10297 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10298 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10299 as_cr_digits='0123456789'
10300 as_cr_alnum=$as_cr_Letters$as_cr_digits
10302 as_nl='
10304 export as_nl
10305 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10306 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10307 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10308 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10309 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10310 as_echo='printf %s\n'
10311 as_echo_n='printf %s'
10312 else
10313 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10314 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10315 as_echo_n='/usr/ucb/echo -n'
10316 else
10317 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10318 as_echo_n_body='eval
10319 arg=$1;
10320 case $arg in
10321 *"$as_nl"*)
10322 expr "X$arg" : "X\\(.*\\)$as_nl";
10323 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10324 esac;
10325 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10327 export as_echo_n_body
10328 as_echo_n='sh -c $as_echo_n_body as_echo'
10330 export as_echo_body
10331 as_echo='sh -c $as_echo_body as_echo'
10334 # The user is always right.
10335 if test "${PATH_SEPARATOR+set}" != set; then
10336 PATH_SEPARATOR=:
10337 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10338 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10339 PATH_SEPARATOR=';'
10343 # Support unset when possible.
10344 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10345 as_unset=unset
10346 else
10347 as_unset=false
10351 # IFS
10352 # We need space, tab and new line, in precisely that order. Quoting is
10353 # there to prevent editors from complaining about space-tab.
10354 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10355 # splitting by setting IFS to empty value.)
10356 IFS=" "" $as_nl"
10358 # Find who we are. Look in the path if we contain no directory separator.
10359 case $0 in
10360 *[\\/]* ) as_myself=$0 ;;
10361 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10362 for as_dir in $PATH
10364 IFS=$as_save_IFS
10365 test -z "$as_dir" && as_dir=.
10366 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10367 done
10368 IFS=$as_save_IFS
10371 esac
10372 # We did not find ourselves, most probably we were run as `sh COMMAND'
10373 # in which case we are not to be found in the path.
10374 if test "x$as_myself" = x; then
10375 as_myself=$0
10377 if test ! -f "$as_myself"; then
10378 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10379 { (exit 1); exit 1; }
10382 # Work around bugs in pre-3.0 UWIN ksh.
10383 for as_var in ENV MAIL MAILPATH
10384 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10385 done
10386 PS1='$ '
10387 PS2='> '
10388 PS4='+ '
10390 # NLS nuisances.
10391 LC_ALL=C
10392 export LC_ALL
10393 LANGUAGE=C
10394 export LANGUAGE
10396 # Required to use basename.
10397 if expr a : '\(a\)' >/dev/null 2>&1 &&
10398 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10399 as_expr=expr
10400 else
10401 as_expr=false
10404 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10405 as_basename=basename
10406 else
10407 as_basename=false
10411 # Name of the executable.
10412 as_me=`$as_basename -- "$0" ||
10413 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10414 X"$0" : 'X\(//\)$' \| \
10415 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10416 $as_echo X/"$0" |
10417 sed '/^.*\/\([^/][^/]*\)\/*$/{
10418 s//\1/
10421 /^X\/\(\/\/\)$/{
10422 s//\1/
10425 /^X\/\(\/\).*/{
10426 s//\1/
10429 s/.*/./; q'`
10431 # CDPATH.
10432 $as_unset CDPATH
10436 as_lineno_1=$LINENO
10437 as_lineno_2=$LINENO
10438 test "x$as_lineno_1" != "x$as_lineno_2" &&
10439 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10441 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10442 # uniformly replaced by the line number. The first 'sed' inserts a
10443 # line-number line after each line using $LINENO; the second 'sed'
10444 # does the real work. The second script uses 'N' to pair each
10445 # line-number line with the line containing $LINENO, and appends
10446 # trailing '-' during substitution so that $LINENO is not a special
10447 # case at line end.
10448 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10449 # scripts with optimization help from Paolo Bonzini. Blame Lee
10450 # E. McMahon (1931-1989) for sed's syntax. :-)
10451 sed -n '
10453 /[$]LINENO/=
10454 ' <$as_myself |
10455 sed '
10456 s/[$]LINENO.*/&-/
10457 t lineno
10459 :lineno
10461 :loop
10462 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10463 t loop
10464 s/-\n.*//
10465 ' >$as_me.lineno &&
10466 chmod +x "$as_me.lineno" ||
10467 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10468 { (exit 1); exit 1; }; }
10470 # Don't try to exec as it changes $[0], causing all sort of problems
10471 # (the dirname of $[0] is not the place where we might find the
10472 # original and so on. Autoconf is especially sensitive to this).
10473 . "./$as_me.lineno"
10474 # Exit status is that of the last command.
10475 exit
10479 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10480 as_dirname=dirname
10481 else
10482 as_dirname=false
10485 ECHO_C= ECHO_N= ECHO_T=
10486 case `echo -n x` in
10487 -n*)
10488 case `echo 'x\c'` in
10489 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10490 *) ECHO_C='\c';;
10491 esac;;
10493 ECHO_N='-n';;
10494 esac
10495 if expr a : '\(a\)' >/dev/null 2>&1 &&
10496 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10497 as_expr=expr
10498 else
10499 as_expr=false
10502 rm -f conf$$ conf$$.exe conf$$.file
10503 if test -d conf$$.dir; then
10504 rm -f conf$$.dir/conf$$.file
10505 else
10506 rm -f conf$$.dir
10507 mkdir conf$$.dir 2>/dev/null
10509 if (echo >conf$$.file) 2>/dev/null; then
10510 if ln -s conf$$.file conf$$ 2>/dev/null; then
10511 as_ln_s='ln -s'
10512 # ... but there are two gotchas:
10513 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10514 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10515 # In both cases, we have to default to `cp -p'.
10516 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10517 as_ln_s='cp -p'
10518 elif ln conf$$.file conf$$ 2>/dev/null; then
10519 as_ln_s=ln
10520 else
10521 as_ln_s='cp -p'
10523 else
10524 as_ln_s='cp -p'
10526 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10527 rmdir conf$$.dir 2>/dev/null
10529 if mkdir -p . 2>/dev/null; then
10530 as_mkdir_p=:
10531 else
10532 test -d ./-p && rmdir ./-p
10533 as_mkdir_p=false
10536 if test -x / >/dev/null 2>&1; then
10537 as_test_x='test -x'
10538 else
10539 if ls -dL / >/dev/null 2>&1; then
10540 as_ls_L_option=L
10541 else
10542 as_ls_L_option=
10544 as_test_x='
10545 eval sh -c '\''
10546 if test -d "$1"; then
10547 test -d "$1/.";
10548 else
10549 case $1 in
10550 -*)set "./$1";;
10551 esac;
10552 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10553 ???[sx]*):;;*)false;;esac;fi
10554 '\'' sh
10557 as_executable_p=$as_test_x
10559 # Sed expression to map a string onto a valid CPP name.
10560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10562 # Sed expression to map a string onto a valid variable name.
10563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10566 exec 6>&1
10568 # Save the log message, to keep $[0] and so on meaningful, and to
10569 # report actual input values of CONFIG_FILES etc. instead of their
10570 # values after options handling.
10571 ac_log="
10572 This file was extended by gpiv $as_me 0.6.0, which was
10573 generated by GNU Autoconf 2.63. Invocation command line was
10575 CONFIG_FILES = $CONFIG_FILES
10576 CONFIG_HEADERS = $CONFIG_HEADERS
10577 CONFIG_LINKS = $CONFIG_LINKS
10578 CONFIG_COMMANDS = $CONFIG_COMMANDS
10579 $ $0 $@
10581 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10584 _ACEOF
10586 case $ac_config_files in *"
10587 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10588 esac
10592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10593 # Files that config.status was made for.
10594 config_files="$ac_config_files"
10595 config_commands="$ac_config_commands"
10597 _ACEOF
10599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10600 ac_cs_usage="\
10601 \`$as_me' instantiates files from templates according to the
10602 current configuration.
10604 Usage: $0 [OPTION]... [FILE]...
10606 -h, --help print this help, then exit
10607 -V, --version print version number and configuration settings, then exit
10608 -q, --quiet, --silent
10609 do not print progress messages
10610 -d, --debug don't remove temporary files
10611 --recheck update $as_me by reconfiguring in the same conditions
10612 --file=FILE[:TEMPLATE]
10613 instantiate the configuration file FILE
10615 Configuration files:
10616 $config_files
10618 Configuration commands:
10619 $config_commands
10621 Report bugs to <bug-autoconf@gnu.org>."
10623 _ACEOF
10624 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10625 ac_cs_version="\\
10626 gpiv config.status 0.6.0
10627 configured by $0, generated by GNU Autoconf 2.63,
10628 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10630 Copyright (C) 2008 Free Software Foundation, Inc.
10631 This config.status script is free software; the Free Software Foundation
10632 gives unlimited permission to copy, distribute and modify it."
10634 ac_pwd='$ac_pwd'
10635 srcdir='$srcdir'
10636 INSTALL='$INSTALL'
10637 MKDIR_P='$MKDIR_P'
10638 AWK='$AWK'
10639 test -n "\$AWK" || AWK=awk
10640 _ACEOF
10642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10643 # The default lists apply if the user does not specify any file.
10644 ac_need_defaults=:
10645 while test $# != 0
10647 case $1 in
10648 --*=*)
10649 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10650 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10651 ac_shift=:
10654 ac_option=$1
10655 ac_optarg=$2
10656 ac_shift=shift
10658 esac
10660 case $ac_option in
10661 # Handling of the options.
10662 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10663 ac_cs_recheck=: ;;
10664 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10665 $as_echo "$ac_cs_version"; exit ;;
10666 --debug | --debu | --deb | --de | --d | -d )
10667 debug=: ;;
10668 --file | --fil | --fi | --f )
10669 $ac_shift
10670 case $ac_optarg in
10671 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10672 esac
10673 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
10674 ac_need_defaults=false;;
10675 --he | --h | --help | --hel | -h )
10676 $as_echo "$ac_cs_usage"; exit ;;
10677 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10678 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10679 ac_cs_silent=: ;;
10681 # This is an error.
10682 -*) { $as_echo "$as_me: error: unrecognized option: $1
10683 Try \`$0 --help' for more information." >&2
10684 { (exit 1); exit 1; }; } ;;
10686 *) ac_config_targets="$ac_config_targets $1"
10687 ac_need_defaults=false ;;
10689 esac
10690 shift
10691 done
10693 ac_configure_extra_args=
10695 if $ac_cs_silent; then
10696 exec 6>/dev/null
10697 ac_configure_extra_args="$ac_configure_extra_args --silent"
10700 _ACEOF
10701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10702 if \$ac_cs_recheck; then
10703 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10704 shift
10705 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10706 CONFIG_SHELL='$SHELL'
10707 export CONFIG_SHELL
10708 exec "\$@"
10711 _ACEOF
10712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10713 exec 5>>config.log
10715 echo
10716 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10717 ## Running $as_me. ##
10718 _ASBOX
10719 $as_echo "$ac_log"
10720 } >&5
10722 _ACEOF
10723 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10725 # INIT-COMMANDS
10727 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10730 _ACEOF
10732 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10734 # Handling of arguments.
10735 for ac_config_target in $ac_config_targets
10737 case $ac_config_target in
10738 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10739 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
10740 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10741 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10742 "doc/C/Makefile") CONFIG_FILES="$CONFIG_FILES doc/C/Makefile" ;;
10743 "doc/C/figures/Makefile") CONFIG_FILES="$CONFIG_FILES doc/C/figures/Makefile" ;;
10744 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10745 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
10746 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10747 "pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/Makefile" ;;
10748 "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
10750 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10751 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10752 { (exit 1); exit 1; }; };;
10753 esac
10754 done
10757 # If the user did not use the arguments to specify the items to instantiate,
10758 # then the envvar interface is used. Set only those that are not.
10759 # We use the long form for the default assignment because of an extremely
10760 # bizarre bug on SunOS 4.1.3.
10761 if $ac_need_defaults; then
10762 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10763 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10766 # Have a temporary directory for convenience. Make it in the build tree
10767 # simply because there is no reason against having it here, and in addition,
10768 # creating and moving files from /tmp can sometimes cause problems.
10769 # Hook for its removal unless debugging.
10770 # Note that there is a small window in which the directory will not be cleaned:
10771 # after its creation but before its name has been assigned to `$tmp'.
10772 $debug ||
10774 tmp=
10775 trap 'exit_status=$?
10776 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10778 trap '{ (exit 1); exit 1; }' 1 2 13 15
10780 # Create a (secure) tmp directory for tmp files.
10783 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10784 test -n "$tmp" && test -d "$tmp"
10785 } ||
10787 tmp=./conf$$-$RANDOM
10788 (umask 077 && mkdir "$tmp")
10789 } ||
10791 $as_echo "$as_me: cannot create a temporary directory in ." >&2
10792 { (exit 1); exit 1; }
10795 # Set up the scripts for CONFIG_FILES section.
10796 # No need to generate them if there are no CONFIG_FILES.
10797 # This happens for instance with `./config.status config.h'.
10798 if test -n "$CONFIG_FILES"; then
10801 ac_cr=' '
10802 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10803 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10804 ac_cs_awk_cr='\\r'
10805 else
10806 ac_cs_awk_cr=$ac_cr
10809 echo 'BEGIN {' >"$tmp/subs1.awk" &&
10810 _ACEOF
10814 echo "cat >conf$$subs.awk <<_ACEOF" &&
10815 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10816 echo "_ACEOF"
10817 } >conf$$subs.sh ||
10818 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10819 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10820 { (exit 1); exit 1; }; }
10821 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10822 ac_delim='%!_!# '
10823 for ac_last_try in false false false false false :; do
10824 . ./conf$$subs.sh ||
10825 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10826 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10827 { (exit 1); exit 1; }; }
10829 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10830 if test $ac_delim_n = $ac_delim_num; then
10831 break
10832 elif $ac_last_try; then
10833 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10834 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10835 { (exit 1); exit 1; }; }
10836 else
10837 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10839 done
10840 rm -f conf$$subs.sh
10842 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10843 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10844 _ACEOF
10845 sed -n '
10847 s/^/S["/; s/!.*/"]=/
10850 s/^[^!]*!//
10851 :repl
10852 t repl
10853 s/'"$ac_delim"'$//
10854 t delim
10857 s/\(.\{148\}\).*/\1/
10858 t more1
10859 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10862 b repl
10863 :more1
10864 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10867 s/.\{148\}//
10868 t nl
10869 :delim
10871 s/\(.\{148\}\).*/\1/
10872 t more2
10873 s/["\\]/\\&/g; s/^/"/; s/$/"/
10876 :more2
10877 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10880 s/.\{148\}//
10881 t delim
10882 ' <conf$$subs.awk | sed '
10883 /^[^""]/{
10885 s/\n//
10887 ' >>$CONFIG_STATUS || ac_write_fail=1
10888 rm -f conf$$subs.awk
10889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10890 _ACAWK
10891 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10892 for (key in S) S_is_set[key] = 1
10893 FS = "\a"
10897 line = $ 0
10898 nfields = split(line, field, "@")
10899 substed = 0
10900 len = length(field[1])
10901 for (i = 2; i < nfields; i++) {
10902 key = field[i]
10903 keylen = length(key)
10904 if (S_is_set[key]) {
10905 value = S[key]
10906 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10907 len += length(value) + length(field[++i])
10908 substed = 1
10909 } else
10910 len += 1 + keylen
10913 print line
10916 _ACAWK
10917 _ACEOF
10918 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10919 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10920 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10921 else
10923 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10924 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
10925 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
10926 { (exit 1); exit 1; }; }
10927 _ACEOF
10929 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10930 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10931 # trailing colons and then remove the whole line if VPATH becomes empty
10932 # (actually we leave an empty line to preserve line numbers).
10933 if test "x$srcdir" = x.; then
10934 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10935 s/:*\$(srcdir):*/:/
10936 s/:*\${srcdir}:*/:/
10937 s/:*@srcdir@:*/:/
10938 s/^\([^=]*=[ ]*\):*/\1/
10939 s/:*$//
10940 s/^[^=]*=[ ]*$//
10944 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10945 fi # test -n "$CONFIG_FILES"
10948 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
10949 shift
10950 for ac_tag
10952 case $ac_tag in
10953 :[FHLC]) ac_mode=$ac_tag; continue;;
10954 esac
10955 case $ac_mode$ac_tag in
10956 :[FHL]*:*);;
10957 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
10958 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
10959 { (exit 1); exit 1; }; };;
10960 :[FH]-) ac_tag=-:-;;
10961 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10962 esac
10963 ac_save_IFS=$IFS
10964 IFS=:
10965 set x $ac_tag
10966 IFS=$ac_save_IFS
10967 shift
10968 ac_file=$1
10969 shift
10971 case $ac_mode in
10972 :L) ac_source=$1;;
10973 :[FH])
10974 ac_file_inputs=
10975 for ac_f
10977 case $ac_f in
10978 -) ac_f="$tmp/stdin";;
10979 *) # Look for the file first in the build tree, then in the source tree
10980 # (if the path is not absolute). The absolute path cannot be DOS-style,
10981 # because $ac_f cannot contain `:'.
10982 test -f "$ac_f" ||
10983 case $ac_f in
10984 [\\/$]*) false;;
10985 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10986 esac ||
10987 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10988 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10989 { (exit 1); exit 1; }; };;
10990 esac
10991 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10992 ac_file_inputs="$ac_file_inputs '$ac_f'"
10993 done
10995 # Let's still pretend it is `configure' which instantiates (i.e., don't
10996 # use $as_me), people would be surprised to read:
10997 # /* config.h. Generated by config.status. */
10998 configure_input='Generated from '`
10999 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11000 `' by configure.'
11001 if test x"$ac_file" != x-; then
11002 configure_input="$ac_file. $configure_input"
11003 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
11004 $as_echo "$as_me: creating $ac_file" >&6;}
11006 # Neutralize special characters interpreted by sed in replacement strings.
11007 case $configure_input in #(
11008 *\&* | *\|* | *\\* )
11009 ac_sed_conf_input=`$as_echo "$configure_input" |
11010 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11011 *) ac_sed_conf_input=$configure_input;;
11012 esac
11014 case $ac_tag in
11015 *:-:* | *:-) cat >"$tmp/stdin" \
11016 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11017 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11018 { (exit 1); exit 1; }; } ;;
11019 esac
11021 esac
11023 ac_dir=`$as_dirname -- "$ac_file" ||
11024 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11025 X"$ac_file" : 'X\(//\)[^/]' \| \
11026 X"$ac_file" : 'X\(//\)$' \| \
11027 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11028 $as_echo X"$ac_file" |
11029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11030 s//\1/
11033 /^X\(\/\/\)[^/].*/{
11034 s//\1/
11037 /^X\(\/\/\)$/{
11038 s//\1/
11041 /^X\(\/\).*/{
11042 s//\1/
11045 s/.*/./; q'`
11046 { as_dir="$ac_dir"
11047 case $as_dir in #(
11048 -*) as_dir=./$as_dir;;
11049 esac
11050 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11051 as_dirs=
11052 while :; do
11053 case $as_dir in #(
11054 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11055 *) as_qdir=$as_dir;;
11056 esac
11057 as_dirs="'$as_qdir' $as_dirs"
11058 as_dir=`$as_dirname -- "$as_dir" ||
11059 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11060 X"$as_dir" : 'X\(//\)[^/]' \| \
11061 X"$as_dir" : 'X\(//\)$' \| \
11062 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11063 $as_echo X"$as_dir" |
11064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11065 s//\1/
11068 /^X\(\/\/\)[^/].*/{
11069 s//\1/
11072 /^X\(\/\/\)$/{
11073 s//\1/
11076 /^X\(\/\).*/{
11077 s//\1/
11080 s/.*/./; q'`
11081 test -d "$as_dir" && break
11082 done
11083 test -z "$as_dirs" || eval "mkdir $as_dirs"
11084 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11085 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
11086 { (exit 1); exit 1; }; }; }
11087 ac_builddir=.
11089 case "$ac_dir" in
11090 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11092 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11093 # A ".." for each directory in $ac_dir_suffix.
11094 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11095 case $ac_top_builddir_sub in
11096 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11097 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11098 esac ;;
11099 esac
11100 ac_abs_top_builddir=$ac_pwd
11101 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11102 # for backward compatibility:
11103 ac_top_builddir=$ac_top_build_prefix
11105 case $srcdir in
11106 .) # We are building in place.
11107 ac_srcdir=.
11108 ac_top_srcdir=$ac_top_builddir_sub
11109 ac_abs_top_srcdir=$ac_pwd ;;
11110 [\\/]* | ?:[\\/]* ) # Absolute name.
11111 ac_srcdir=$srcdir$ac_dir_suffix;
11112 ac_top_srcdir=$srcdir
11113 ac_abs_top_srcdir=$srcdir ;;
11114 *) # Relative name.
11115 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11116 ac_top_srcdir=$ac_top_build_prefix$srcdir
11117 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11118 esac
11119 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11122 case $ac_mode in
11125 # CONFIG_FILE
11128 case $INSTALL in
11129 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11130 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11131 esac
11132 ac_MKDIR_P=$MKDIR_P
11133 case $MKDIR_P in
11134 [\\/$]* | ?:[\\/]* ) ;;
11135 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11136 esac
11137 _ACEOF
11139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11140 # If the template does not know about datarootdir, expand it.
11141 # FIXME: This hack should be removed a few years after 2.60.
11142 ac_datarootdir_hack=; ac_datarootdir_seen=
11144 ac_sed_dataroot='
11145 /datarootdir/ {
11149 /@datadir@/p
11150 /@docdir@/p
11151 /@infodir@/p
11152 /@localedir@/p
11153 /@mandir@/p
11155 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11156 *datarootdir*) ac_datarootdir_seen=yes;;
11157 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11158 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11159 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11160 _ACEOF
11161 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11162 ac_datarootdir_hack='
11163 s&@datadir@&$datadir&g
11164 s&@docdir@&$docdir&g
11165 s&@infodir@&$infodir&g
11166 s&@localedir@&$localedir&g
11167 s&@mandir@&$mandir&g
11168 s&\\\${datarootdir}&$datarootdir&g' ;;
11169 esac
11170 _ACEOF
11172 # Neutralize VPATH when `$srcdir' = `.'.
11173 # Shell code in configure.ac might set extrasub.
11174 # FIXME: do we really want to maintain this feature?
11175 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11176 ac_sed_extra="$ac_vpsub
11177 $extrasub
11178 _ACEOF
11179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11181 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11182 s|@configure_input@|$ac_sed_conf_input|;t t
11183 s&@top_builddir@&$ac_top_builddir_sub&;t t
11184 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11185 s&@srcdir@&$ac_srcdir&;t t
11186 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11187 s&@top_srcdir@&$ac_top_srcdir&;t t
11188 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11189 s&@builddir@&$ac_builddir&;t t
11190 s&@abs_builddir@&$ac_abs_builddir&;t t
11191 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11192 s&@INSTALL@&$ac_INSTALL&;t t
11193 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11194 $ac_datarootdir_hack
11196 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
11197 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11198 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11199 { (exit 1); exit 1; }; }
11201 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11202 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11203 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11204 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11205 which seems to be undefined. Please make sure it is defined." >&5
11206 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11207 which seems to be undefined. Please make sure it is defined." >&2;}
11209 rm -f "$tmp/stdin"
11210 case $ac_file in
11211 -) cat "$tmp/out" && rm -f "$tmp/out";;
11212 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11213 esac \
11214 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11215 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11216 { (exit 1); exit 1; }; }
11220 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
11221 $as_echo "$as_me: executing $ac_file commands" >&6;}
11223 esac
11226 case $ac_file$ac_mode in
11227 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11228 # Strip MF so we end up with the name of the file.
11229 mf=`echo "$mf" | sed -e 's/:.*$//'`
11230 # Check whether this is an Automake generated Makefile or not.
11231 # We used to match only the files named `Makefile.in', but
11232 # some people rename them; so instead we look at the file content.
11233 # Grep'ing the first line is not enough: some people post-process
11234 # each Makefile.in and add a new line on top of each file to say so.
11235 # Grep'ing the whole file is not good either: AIX grep has a line
11236 # limit of 2048, but all sed's we know have understand at least 4000.
11237 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11238 dirpart=`$as_dirname -- "$mf" ||
11239 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11240 X"$mf" : 'X\(//\)[^/]' \| \
11241 X"$mf" : 'X\(//\)$' \| \
11242 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11243 $as_echo X"$mf" |
11244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11245 s//\1/
11248 /^X\(\/\/\)[^/].*/{
11249 s//\1/
11252 /^X\(\/\/\)$/{
11253 s//\1/
11256 /^X\(\/\).*/{
11257 s//\1/
11260 s/.*/./; q'`
11261 else
11262 continue
11264 # Extract the definition of DEPDIR, am__include, and am__quote
11265 # from the Makefile without running `make'.
11266 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11267 test -z "$DEPDIR" && continue
11268 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11269 test -z "am__include" && continue
11270 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11271 # When using ansi2knr, U may be empty or an underscore; expand it
11272 U=`sed -n 's/^U = //p' < "$mf"`
11273 # Find all dependency output files, they are included files with
11274 # $(DEPDIR) in their names. We invoke sed twice because it is the
11275 # simplest approach to changing $(DEPDIR) to its actual value in the
11276 # expansion.
11277 for file in `sed -n "
11278 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11279 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11280 # Make sure the directory exists.
11281 test -f "$dirpart/$file" && continue
11282 fdir=`$as_dirname -- "$file" ||
11283 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11284 X"$file" : 'X\(//\)[^/]' \| \
11285 X"$file" : 'X\(//\)$' \| \
11286 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11287 $as_echo X"$file" |
11288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11289 s//\1/
11292 /^X\(\/\/\)[^/].*/{
11293 s//\1/
11296 /^X\(\/\/\)$/{
11297 s//\1/
11300 /^X\(\/\).*/{
11301 s//\1/
11304 s/.*/./; q'`
11305 { as_dir=$dirpart/$fdir
11306 case $as_dir in #(
11307 -*) as_dir=./$as_dir;;
11308 esac
11309 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11310 as_dirs=
11311 while :; do
11312 case $as_dir in #(
11313 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11314 *) as_qdir=$as_dir;;
11315 esac
11316 as_dirs="'$as_qdir' $as_dirs"
11317 as_dir=`$as_dirname -- "$as_dir" ||
11318 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11319 X"$as_dir" : 'X\(//\)[^/]' \| \
11320 X"$as_dir" : 'X\(//\)$' \| \
11321 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11322 $as_echo X"$as_dir" |
11323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11324 s//\1/
11327 /^X\(\/\/\)[^/].*/{
11328 s//\1/
11331 /^X\(\/\/\)$/{
11332 s//\1/
11335 /^X\(\/\).*/{
11336 s//\1/
11339 s/.*/./; q'`
11340 test -d "$as_dir" && break
11341 done
11342 test -z "$as_dirs" || eval "mkdir $as_dirs"
11343 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11344 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
11345 { (exit 1); exit 1; }; }; }
11346 # echo "creating $dirpart/$file"
11347 echo '# dummy' > "$dirpart/$file"
11348 done
11349 done
11351 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
11352 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
11353 esac ;;
11354 "po/stamp-it":C)
11355 if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
11356 { { $as_echo "$as_me:$LINENO: error: po/Makefile.in.in was not created by intltoolize." >&5
11357 $as_echo "$as_me: error: po/Makefile.in.in was not created by intltoolize." >&2;}
11358 { (exit 1); exit 1; }; }
11360 rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
11361 >"po/stamp-it.tmp"
11362 sed '/^#/d
11363 s/^[[].*] *//
11364 /^[ ]*$/d
11365 '"s|^| $ac_top_srcdir/|" \
11366 "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
11368 sed '/^POTFILES =/,/[^\\]$/ {
11369 /^POTFILES =/!d
11370 r po/POTFILES
11372 ' "po/Makefile.in" >"po/Makefile"
11373 rm -f "po/Makefile.tmp"
11374 mv "po/stamp-it.tmp" "po/stamp-it"
11377 esac
11378 done # for ac_tag
11381 { (exit 0); exit 0; }
11382 _ACEOF
11383 chmod +x $CONFIG_STATUS
11384 ac_clean_files=$ac_clean_files_save
11386 test $ac_write_fail = 0 ||
11387 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
11388 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
11389 { (exit 1); exit 1; }; }
11392 # configure is writing to config.log, and then calls config.status.
11393 # config.status does its own redirection, appending to config.log.
11394 # Unfortunately, on DOS this fails, as config.log is still kept open
11395 # by configure, so config.status won't be able to write to it; its
11396 # output is simply discarded. So we exec the FD to /dev/null,
11397 # effectively closing config.log, so it can be properly (re)opened and
11398 # appended to by config.status. When coming back to configure, we
11399 # need to make the FD available again.
11400 if test "$no_create" != yes; then
11401 ac_cs_success=:
11402 ac_config_status_args=
11403 test "$silent" = yes &&
11404 ac_config_status_args="$ac_config_status_args --quiet"
11405 exec 5>/dev/null
11406 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11407 exec 5>>config.log
11408 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11409 # would make configure fail if this is the last instruction.
11410 $ac_cs_success || { (exit 1); exit 1; }
11412 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11413 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11414 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11419 echo "===================================================================="
11420 echo "Configuration succesfully finished"
11421 if test $HAVE_GNOME_PRINT; then
11422 echo "with gnomeprint"
11423 else
11424 echo "without gnomeprint"
11427 if test $ENABLE_CAM; then
11428 echo "with (IEEE-1394) camera enabled"
11431 if test $ENABLE_TRIG; then
11432 echo "with (realtime) triggering enabled."
11434 if test x$CONTROL = xfalse ; then
11435 echo "Gpiv_control has not been found on this system, and probably gpivtrig-rtl isn't"
11436 echo "resident as well. This script eases to install and uninstall the gpivtrig-rtl"
11437 echo "and RTAI kernel modules that are needed for the triggering of camera and lasers"
11438 echo ""
11442 if test $ENABLE_MPI; then
11443 echo "Using Message Passing Interface (MPI)"
11444 echo "for processing on distributed memory systems"
11447 echo "Type 'make' and 'make install' to build and install gpiv"
11448 echo "===================================================================="