aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/mimesh/g3dviewer-0.2.99.4/configure
diff options
context:
space:
mode:
Diffstat (limited to 'src/others/mimesh/g3dviewer-0.2.99.4/configure')
-rwxr-xr-xsrc/others/mimesh/g3dviewer-0.2.99.4/configure10636
1 files changed, 10636 insertions, 0 deletions
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/configure b/src/others/mimesh/g3dviewer-0.2.99.4/configure
new file mode 100755
index 0000000..dd249c2
--- /dev/null
+++ b/src/others/mimesh/g3dviewer-0.2.99.4/configure
@@ -0,0 +1,10636 @@
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.60a.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 setopt NO_GLOB_SUBST
21else
22 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
23fi
24BIN_SH=xpg4; export BIN_SH # for Tru64
25DUALCASE=1; export DUALCASE # for MKS sh
26
27
28# PATH needs CR
29# Avoid depending upon Character Ranges.
30as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33as_cr_digits='0123456789'
34as_cr_alnum=$as_cr_Letters$as_cr_digits
35
36# The user is always right.
37if test "${PATH_SEPARATOR+set}" != set; then
38 echo "#! /bin/sh" >conf$$.sh
39 echo "exit 0" >>conf$$.sh
40 chmod +x conf$$.sh
41 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42 PATH_SEPARATOR=';'
43 else
44 PATH_SEPARATOR=:
45 fi
46 rm -f conf$$.sh
47fi
48
49# Support unset when possible.
50if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51 as_unset=unset
52else
53 as_unset=false
54fi
55
56
57# IFS
58# We need space, tab and new line, in precisely that order. Quoting is
59# there to prevent editors from complaining about space-tab.
60# (If _AS_PATH_WALK were called with IFS unset, it would disable word
61# splitting by setting IFS to empty value.)
62as_nl='
63'
64IFS=" "" $as_nl"
65
66# Find who we are. Look in the path if we contain no directory separator.
67case $0 in
68 *[\\/]* ) as_myself=$0 ;;
69 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
70for as_dir in $PATH
71do
72 IFS=$as_save_IFS
73 test -z "$as_dir" && as_dir=.
74 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
75done
76IFS=$as_save_IFS
77
78 ;;
79esac
80# We did not find ourselves, most probably we were run as `sh COMMAND'
81# in which case we are not to be found in the path.
82if test "x$as_myself" = x; then
83 as_myself=$0
84fi
85if test ! -f "$as_myself"; then
86 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
87 { (exit 1); exit 1; }
88fi
89
90# Work around bugs in pre-3.0 UWIN ksh.
91for as_var in ENV MAIL MAILPATH
92do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
93done
94PS1='$ '
95PS2='> '
96PS4='+ '
97
98# NLS nuisances.
99for as_var in \
100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
102 LC_TELEPHONE LC_TIME
103do
104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105 eval $as_var=C; export $as_var
106 else
107 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
108 fi
109done
110
111# Required to use basename.
112if expr a : '\(a\)' >/dev/null 2>&1 &&
113 test "X`expr 00001 : '.*\(...\)'`" = X001; then
114 as_expr=expr
115else
116 as_expr=false
117fi
118
119if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
120 as_basename=basename
121else
122 as_basename=false
123fi
124
125
126# Name of the executable.
127as_me=`$as_basename -- "$0" ||
128$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129 X"$0" : 'X\(//\)$' \| \
130 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
131echo X/"$0" |
132 sed '/^.*\/\([^/][^/]*\)\/*$/{
133 s//\1/
134 q
135 }
136 /^X\/\(\/\/\)$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\).*/{
141 s//\1/
142 q
143 }
144 s/.*/./; q'`
145
146# CDPATH.
147$as_unset CDPATH
148
149
150if test "x$CONFIG_SHELL" = x; then
151 if (eval ":") 2>/dev/null; then
152 as_have_required=yes
153else
154 as_have_required=no
155fi
156
157 if test $as_have_required = yes && (eval ":
158(as_func_return () {
159 (exit \$1)
160}
161as_func_success () {
162 as_func_return 0
163}
164as_func_failure () {
165 as_func_return 1
166}
167as_func_ret_success () {
168 return 0
169}
170as_func_ret_failure () {
171 return 1
172}
173
174exitcode=0
175if as_func_success; then
176 :
177else
178 exitcode=1
179 echo as_func_success failed.
180fi
181
182if as_func_failure; then
183 exitcode=1
184 echo as_func_failure succeeded.
185fi
186
187if as_func_ret_success; then
188 :
189else
190 exitcode=1
191 echo as_func_ret_success failed.
192fi
193
194if as_func_ret_failure; then
195 exitcode=1
196 echo as_func_ret_failure succeeded.
197fi
198
199if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
200 :
201else
202 exitcode=1
203 echo positional parameters were not saved.
204fi
205
206test \$exitcode = 0) || { (exit 1); exit 1; }
207
208(
209 as_lineno_1=\$LINENO
210 as_lineno_2=\$LINENO
211 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213") 2> /dev/null; then
214 :
215else
216 as_candidate_shells=
217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 case $as_dir in
223 /*)
224 for as_base in sh bash ksh sh5; do
225 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
226 done;;
227 esac
228done
229IFS=$as_save_IFS
230
231
232 for as_shell in $as_candidate_shells $SHELL; do
233 # Try only shells that exist, to save several forks.
234 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235 { ("$as_shell") 2> /dev/null <<\_ASEOF
236# Be Bourne compatible
237if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
238 emulate sh
239 NULLCMD=:
240 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241 # is contrary to our usage. Disable this feature.
242 alias -g '${1+"$@"}'='"$@"'
243 setopt NO_GLOB_SUBST
244else
245 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
246fi
247BIN_SH=xpg4; export BIN_SH # for Tru64
248DUALCASE=1; export DUALCASE # for MKS sh
249
250:
251_ASEOF
252}; then
253 CONFIG_SHELL=$as_shell
254 as_have_required=yes
255 if { "$as_shell" 2> /dev/null <<\_ASEOF
256# Be Bourne compatible
257if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
258 emulate sh
259 NULLCMD=:
260 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261 # is contrary to our usage. Disable this feature.
262 alias -g '${1+"$@"}'='"$@"'
263 setopt NO_GLOB_SUBST
264else
265 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
266fi
267BIN_SH=xpg4; export BIN_SH # for Tru64
268DUALCASE=1; export DUALCASE # for MKS sh
269
270:
271(as_func_return () {
272 (exit $1)
273}
274as_func_success () {
275 as_func_return 0
276}
277as_func_failure () {
278 as_func_return 1
279}
280as_func_ret_success () {
281 return 0
282}
283as_func_ret_failure () {
284 return 1
285}
286
287exitcode=0
288if as_func_success; then
289 :
290else
291 exitcode=1
292 echo as_func_success failed.
293fi
294
295if as_func_failure; then
296 exitcode=1
297 echo as_func_failure succeeded.
298fi
299
300if as_func_ret_success; then
301 :
302else
303 exitcode=1
304 echo as_func_ret_success failed.
305fi
306
307if as_func_ret_failure; then
308 exitcode=1
309 echo as_func_ret_failure succeeded.
310fi
311
312if ( set x; as_func_ret_success y && test x = "$1" ); then
313 :
314else
315 exitcode=1
316 echo positional parameters were not saved.
317fi
318
319test $exitcode = 0) || { (exit 1); exit 1; }
320
321(
322 as_lineno_1=$LINENO
323 as_lineno_2=$LINENO
324 test "x$as_lineno_1" != "x$as_lineno_2" &&
325 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
326
327_ASEOF
328}; then
329 break
330fi
331
332fi
333
334 done
335
336 if test "x$CONFIG_SHELL" != x; then
337 for as_var in BASH_ENV ENV
338 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
339 done
340 export CONFIG_SHELL
341 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
342fi
343
344
345 if test $as_have_required = no; then
346 echo This script requires a shell more modern than all the
347 echo shells that I found on your system. Please install a
348 echo modern shell, or manually run the script under such a
349 echo shell if you do have one.
350 { (exit 1); exit 1; }
351fi
352
353
354fi
355
356fi
357
358
359
360(eval "as_func_return () {
361 (exit \$1)
362}
363as_func_success () {
364 as_func_return 0
365}
366as_func_failure () {
367 as_func_return 1
368}
369as_func_ret_success () {
370 return 0
371}
372as_func_ret_failure () {
373 return 1
374}
375
376exitcode=0
377if as_func_success; then
378 :
379else
380 exitcode=1
381 echo as_func_success failed.
382fi
383
384if as_func_failure; then
385 exitcode=1
386 echo as_func_failure succeeded.
387fi
388
389if as_func_ret_success; then
390 :
391else
392 exitcode=1
393 echo as_func_ret_success failed.
394fi
395
396if as_func_ret_failure; then
397 exitcode=1
398 echo as_func_ret_failure succeeded.
399fi
400
401if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
402 :
403else
404 exitcode=1
405 echo positional parameters were not saved.
406fi
407
408test \$exitcode = 0") || {
409 echo No shell found that supports shell functions.
410 echo Please tell autoconf@gnu.org about your system,
411 echo including any error possibly output before this
412 echo message
413}
414
415
416
417 as_lineno_1=$LINENO
418 as_lineno_2=$LINENO
419 test "x$as_lineno_1" != "x$as_lineno_2" &&
420 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
421
422 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423 # uniformly replaced by the line number. The first 'sed' inserts a
424 # line-number line after each line using $LINENO; the second 'sed'
425 # does the real work. The second script uses 'N' to pair each
426 # line-number line with the line containing $LINENO, and appends
427 # trailing '-' during substitution so that $LINENO is not a special
428 # case at line end.
429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430 # scripts with optimization help from Paolo Bonzini. Blame Lee
431 # E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449 { (exit 1); exit 1; }; }
450
451 # Don't try to exec as it changes $[0], causing all sort of problems
452 # (the dirname of $[0] is not the place where we might find the
453 # original and so on. Autoconf is especially sensitive to this).
454 . "./$as_me.lineno"
455 # Exit status is that of the last command.
456 exit
457}
458
459
460if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461 as_dirname=dirname
462else
463 as_dirname=false
464fi
465
466ECHO_C= ECHO_N= ECHO_T=
467case `echo -n x` in
468-n*)
469 case `echo 'x\c'` in
470 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
471 *) ECHO_C='\c';;
472 esac;;
473*)
474 ECHO_N='-n';;
475esac
476
477if expr a : '\(a\)' >/dev/null 2>&1 &&
478 test "X`expr 00001 : '.*\(...\)'`" = X001; then
479 as_expr=expr
480else
481 as_expr=false
482fi
483
484rm -f conf$$ conf$$.exe conf$$.file
485if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487else
488 rm -f conf$$.dir
489 mkdir conf$$.dir
490fi
491echo >conf$$.file
492if ln -s conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499 as_ln_s='cp -p'
500elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502else
503 as_ln_s='cp -p'
504fi
505rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506rmdir conf$$.dir 2>/dev/null
507
508if mkdir -p . 2>/dev/null; then
509 as_mkdir_p=:
510else
511 test -d ./-p && rmdir ./-p
512 as_mkdir_p=false
513fi
514
515# Find out whether ``test -x'' works. Don't use a zero-byte file, as
516# systems may use methods other than mode bits to determine executability.
517cat >conf$$.file <<_ASEOF
518#! /bin/sh
519exit 0
520_ASEOF
521chmod +x conf$$.file
522if test -x conf$$.file >/dev/null 2>&1; then
523 as_executable_p="test -x"
524else
525 as_executable_p=:
526fi
527rm -f conf$$.file
528
529# Sed expression to map a string onto a valid CPP name.
530as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531
532# Sed expression to map a string onto a valid variable name.
533as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534
535
536
537exec 7<&0 </dev/null 6>&1
538
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544#
545# Initializations.
546#
547ac_default_prefix=/usr/local
548ac_clean_files=
549ac_config_libobj_dir=.
550LIBOBJS=
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
555SHELL=${CONFIG_SHELL-/bin/sh}
556
557# Identity of this package.
558PACKAGE_NAME=
559PACKAGE_TARNAME=
560PACKAGE_VERSION=
561PACKAGE_STRING=
562PACKAGE_BUGREPORT=
563
564ac_unique_file="configure.in"
565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
568#ifdef HAVE_SYS_TYPES_H
569# include <sys/types.h>
570#endif
571#ifdef HAVE_SYS_STAT_H
572# include <sys/stat.h>
573#endif
574#ifdef STDC_HEADERS
575# include <stdlib.h>
576# include <stddef.h>
577#else
578# ifdef HAVE_STDLIB_H
579# include <stdlib.h>
580# endif
581#endif
582#ifdef HAVE_STRING_H
583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584# include <memory.h>
585# endif
586# include <string.h>
587#endif
588#ifdef HAVE_STRINGS_H
589# include <strings.h>
590#endif
591#ifdef HAVE_INTTYPES_H
592# include <inttypes.h>
593#endif
594#ifdef HAVE_STDINT_H
595# include <stdint.h>
596#endif
597#ifdef HAVE_UNISTD_H
598# include <unistd.h>
599#endif"
600
601ac_subst_vars='SHELL
602PATH_SEPARATOR
603PACKAGE_NAME
604PACKAGE_TARNAME
605PACKAGE_VERSION
606PACKAGE_STRING
607PACKAGE_BUGREPORT
608exec_prefix
609prefix
610program_transform_name
611bindir
612sbindir
613libexecdir
614datarootdir
615datadir
616sysconfdir
617sharedstatedir
618localstatedir
619includedir
620oldincludedir
621docdir
622infodir
623htmldir
624dvidir
625pdfdir
626psdir
627libdir
628localedir
629mandir
630DEFS
631ECHO_C
632ECHO_N
633ECHO_T
634LIBS
635build_alias
636host_alias
637target_alias
638INSTALL_PROGRAM
639INSTALL_SCRIPT
640INSTALL_DATA
641CYGPATH_W
642PACKAGE
643VERSION
644ACLOCAL
645AUTOCONF
646AUTOMAKE
647AUTOHEADER
648MAKEINFO
649AMTAR
650install_sh
651STRIP
652INSTALL_STRIP_PROGRAM
653AWK
654SET_MAKE
655am__leading_dot
656CC
657CFLAGS
658LDFLAGS
659CPPFLAGS
660ac_ct_CC
661EXEEXT
662OBJEXT
663DEPDIR
664am__include
665am__quote
666AMDEP_TRUE
667AMDEP_FALSE
668AMDEPBACKSLASH
669CCDEPMODE
670am__fastdepCC_TRUE
671am__fastdepCC_FALSE
672CPP
673GREP
674EGREP
675USE_NLS
676MSGFMT
677GMSGFMT
678XGETTEXT
679CATALOGS
680CATOBJEXT
681DATADIRNAME
682GMOFILES
683INSTOBJEXT
684INTLLIBS
685PO_IN_DATADIR_TRUE
686PO_IN_DATADIR_FALSE
687POFILES
688POSUB
689MKINSTALLDIRS
690GETTEXT_PACKAGE
691PKG_CONFIG
692GLIB_CFLAGS
693GLIB_LIBS
694GLIB_GENMARSHAL
695GOBJECT_QUERY
696GLIB_MKENUMS
697GTK_CFLAGS
698GTK_LIBS
699LIBGLADE_CFLAGS
700LIBGLADE_LIBS
701GTKGLEXT_CFLAGS
702GTKGLEXT_LIBS
703LIBG3D_CFLAGS
704LIBG3D_LIBS
705XMKMF
706X_CFLAGS
707X_PRE_LIBS
708X_LIBS
709X_EXTRA_LIBS
710GL_LIBS
711DEBUG
712DBG_CFLAGS
713LIBOBJS
714LTLIBOBJS'
715ac_subst_files=''
716 ac_precious_vars='build_alias
717host_alias
718target_alias
719CC
720CFLAGS
721LDFLAGS
722CPPFLAGS
723CPP
724PKG_CONFIG
725LIBGLADE_CFLAGS
726LIBGLADE_LIBS
727LIBG3D_CFLAGS
728LIBG3D_LIBS
729XMKMF'
730
731
732# Initialize some variables set by options.
733ac_init_help=
734ac_init_version=false
735# The variables have the same names as the options, with
736# dashes changed to underlines.
737cache_file=/dev/null
738exec_prefix=NONE
739no_create=
740no_recursion=
741prefix=NONE
742program_prefix=NONE
743program_suffix=NONE
744program_transform_name=s,x,x,
745silent=
746site=
747srcdir=
748verbose=
749x_includes=NONE
750x_libraries=NONE
751
752# Installation directory options.
753# These are left unexpanded so users can "make install exec_prefix=/foo"
754# and all the variables that are supposed to be based on exec_prefix
755# by default will actually change.
756# Use braces instead of parens because sh, perl, etc. also accept them.
757# (The list follows the same order as the GNU Coding Standards.)
758bindir='${exec_prefix}/bin'
759sbindir='${exec_prefix}/sbin'
760libexecdir='${exec_prefix}/libexec'
761datarootdir='${prefix}/share'
762datadir='${datarootdir}'
763sysconfdir='${prefix}/etc'
764sharedstatedir='${prefix}/com'
765localstatedir='${prefix}/var'
766includedir='${prefix}/include'
767oldincludedir='/usr/include'
768docdir='${datarootdir}/doc/${PACKAGE}'
769infodir='${datarootdir}/info'
770htmldir='${docdir}'
771dvidir='${docdir}'
772pdfdir='${docdir}'
773psdir='${docdir}'
774libdir='${exec_prefix}/lib'
775localedir='${datarootdir}/locale'
776mandir='${datarootdir}/man'
777
778ac_prev=
779ac_dashdash=
780for ac_option
781do
782 # If the previous option needs an argument, assign it.
783 if test -n "$ac_prev"; then
784 eval $ac_prev=\$ac_option
785 ac_prev=
786 continue
787 fi
788
789 case $ac_option in
790 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
791 *) ac_optarg=yes ;;
792 esac
793
794 # Accept the important Cygnus configure options, so we can diagnose typos.
795
796 case $ac_dashdash$ac_option in
797 --)
798 ac_dashdash=yes ;;
799
800 -bindir | --bindir | --bindi | --bind | --bin | --bi)
801 ac_prev=bindir ;;
802 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
803 bindir=$ac_optarg ;;
804
805 -build | --build | --buil | --bui | --bu)
806 ac_prev=build_alias ;;
807 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
808 build_alias=$ac_optarg ;;
809
810 -cache-file | --cache-file | --cache-fil | --cache-fi \
811 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
812 ac_prev=cache_file ;;
813 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
814 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
815 cache_file=$ac_optarg ;;
816
817 --config-cache | -C)
818 cache_file=config.cache ;;
819
820 -datadir | --datadir | --datadi | --datad)
821 ac_prev=datadir ;;
822 -datadir=* | --datadir=* | --datadi=* | --datad=*)
823 datadir=$ac_optarg ;;
824
825 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
826 | --dataroo | --dataro | --datar)
827 ac_prev=datarootdir ;;
828 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
829 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
830 datarootdir=$ac_optarg ;;
831
832 -disable-* | --disable-*)
833 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
834 # Reject names that are not valid shell variable names.
835 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
836 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
837 { (exit 1); exit 1; }; }
838 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
839 eval enable_$ac_feature=no ;;
840
841 -docdir | --docdir | --docdi | --doc | --do)
842 ac_prev=docdir ;;
843 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
844 docdir=$ac_optarg ;;
845
846 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
847 ac_prev=dvidir ;;
848 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
849 dvidir=$ac_optarg ;;
850
851 -enable-* | --enable-*)
852 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
853 # Reject names that are not valid shell variable names.
854 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
855 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
856 { (exit 1); exit 1; }; }
857 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
858 eval enable_$ac_feature=\$ac_optarg ;;
859
860 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
861 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
862 | --exec | --exe | --ex)
863 ac_prev=exec_prefix ;;
864 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
865 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
866 | --exec=* | --exe=* | --ex=*)
867 exec_prefix=$ac_optarg ;;
868
869 -gas | --gas | --ga | --g)
870 # Obsolete; use --with-gas.
871 with_gas=yes ;;
872
873 -help | --help | --hel | --he | -h)
874 ac_init_help=long ;;
875 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
876 ac_init_help=recursive ;;
877 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
878 ac_init_help=short ;;
879
880 -host | --host | --hos | --ho)
881 ac_prev=host_alias ;;
882 -host=* | --host=* | --hos=* | --ho=*)
883 host_alias=$ac_optarg ;;
884
885 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
886 ac_prev=htmldir ;;
887 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
888 | --ht=*)
889 htmldir=$ac_optarg ;;
890
891 -includedir | --includedir | --includedi | --included | --include \
892 | --includ | --inclu | --incl | --inc)
893 ac_prev=includedir ;;
894 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
895 | --includ=* | --inclu=* | --incl=* | --inc=*)
896 includedir=$ac_optarg ;;
897
898 -infodir | --infodir | --infodi | --infod | --info | --inf)
899 ac_prev=infodir ;;
900 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
901 infodir=$ac_optarg ;;
902
903 -libdir | --libdir | --libdi | --libd)
904 ac_prev=libdir ;;
905 -libdir=* | --libdir=* | --libdi=* | --libd=*)
906 libdir=$ac_optarg ;;
907
908 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
909 | --libexe | --libex | --libe)
910 ac_prev=libexecdir ;;
911 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
912 | --libexe=* | --libex=* | --libe=*)
913 libexecdir=$ac_optarg ;;
914
915 -localedir | --localedir | --localedi | --localed | --locale)
916 ac_prev=localedir ;;
917 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
918 localedir=$ac_optarg ;;
919
920 -localstatedir | --localstatedir | --localstatedi | --localstated \
921 | --localstate | --localstat | --localsta | --localst | --locals)
922 ac_prev=localstatedir ;;
923 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
924 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
925 localstatedir=$ac_optarg ;;
926
927 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
928 ac_prev=mandir ;;
929 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
930 mandir=$ac_optarg ;;
931
932 -nfp | --nfp | --nf)
933 # Obsolete; use --without-fp.
934 with_fp=no ;;
935
936 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
937 | --no-cr | --no-c | -n)
938 no_create=yes ;;
939
940 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
941 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
942 no_recursion=yes ;;
943
944 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
945 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
946 | --oldin | --oldi | --old | --ol | --o)
947 ac_prev=oldincludedir ;;
948 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
949 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
950 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
951 oldincludedir=$ac_optarg ;;
952
953 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
954 ac_prev=prefix ;;
955 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
956 prefix=$ac_optarg ;;
957
958 -program-prefix | --program-prefix | --program-prefi | --program-pref \
959 | --program-pre | --program-pr | --program-p)
960 ac_prev=program_prefix ;;
961 -program-prefix=* | --program-prefix=* | --program-prefi=* \
962 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
963 program_prefix=$ac_optarg ;;
964
965 -program-suffix | --program-suffix | --program-suffi | --program-suff \
966 | --program-suf | --program-su | --program-s)
967 ac_prev=program_suffix ;;
968 -program-suffix=* | --program-suffix=* | --program-suffi=* \
969 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
970 program_suffix=$ac_optarg ;;
971
972 -program-transform-name | --program-transform-name \
973 | --program-transform-nam | --program-transform-na \
974 | --program-transform-n | --program-transform- \
975 | --program-transform | --program-transfor \
976 | --program-transfo | --program-transf \
977 | --program-trans | --program-tran \
978 | --progr-tra | --program-tr | --program-t)
979 ac_prev=program_transform_name ;;
980 -program-transform-name=* | --program-transform-name=* \
981 | --program-transform-nam=* | --program-transform-na=* \
982 | --program-transform-n=* | --program-transform-=* \
983 | --program-transform=* | --program-transfor=* \
984 | --program-transfo=* | --program-transf=* \
985 | --program-trans=* | --program-tran=* \
986 | --progr-tra=* | --program-tr=* | --program-t=*)
987 program_transform_name=$ac_optarg ;;
988
989 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
990 ac_prev=pdfdir ;;
991 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
992 pdfdir=$ac_optarg ;;
993
994 -psdir | --psdir | --psdi | --psd | --ps)
995 ac_prev=psdir ;;
996 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
997 psdir=$ac_optarg ;;
998
999 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1000 | -silent | --silent | --silen | --sile | --sil)
1001 silent=yes ;;
1002
1003 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1004 ac_prev=sbindir ;;
1005 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1006 | --sbi=* | --sb=*)
1007 sbindir=$ac_optarg ;;
1008
1009 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1010 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1011 | --sharedst | --shareds | --shared | --share | --shar \
1012 | --sha | --sh)
1013 ac_prev=sharedstatedir ;;
1014 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1015 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1016 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1017 | --sha=* | --sh=*)
1018 sharedstatedir=$ac_optarg ;;
1019
1020 -site | --site | --sit)
1021 ac_prev=site ;;
1022 -site=* | --site=* | --sit=*)
1023 site=$ac_optarg ;;
1024
1025 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1026 ac_prev=srcdir ;;
1027 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1028 srcdir=$ac_optarg ;;
1029
1030 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1031 | --syscon | --sysco | --sysc | --sys | --sy)
1032 ac_prev=sysconfdir ;;
1033 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1034 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1035 sysconfdir=$ac_optarg ;;
1036
1037 -target | --target | --targe | --targ | --tar | --ta | --t)
1038 ac_prev=target_alias ;;
1039 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1040 target_alias=$ac_optarg ;;
1041
1042 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1043 verbose=yes ;;
1044
1045 -version | --version | --versio | --versi | --vers | -V)
1046 ac_init_version=: ;;
1047
1048 -with-* | --with-*)
1049 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1050 # Reject names that are not valid shell variable names.
1051 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1052 { echo "$as_me: error: invalid package name: $ac_package" >&2
1053 { (exit 1); exit 1; }; }
1054 ac_package=`echo $ac_package| sed 's/-/_/g'`
1055 eval with_$ac_package=\$ac_optarg ;;
1056
1057 -without-* | --without-*)
1058 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1059 # Reject names that are not valid shell variable names.
1060 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1061 { echo "$as_me: error: invalid package name: $ac_package" >&2
1062 { (exit 1); exit 1; }; }
1063 ac_package=`echo $ac_package | sed 's/-/_/g'`
1064 eval with_$ac_package=no ;;
1065
1066 --x)
1067 # Obsolete; use --with-x.
1068 with_x=yes ;;
1069
1070 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1071 | --x-incl | --x-inc | --x-in | --x-i)
1072 ac_prev=x_includes ;;
1073 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1074 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1075 x_includes=$ac_optarg ;;
1076
1077 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1078 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1079 ac_prev=x_libraries ;;
1080 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1081 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1082 x_libraries=$ac_optarg ;;
1083
1084 -*) { echo "$as_me: error: unrecognized option: $ac_option
1085Try \`$0 --help' for more information." >&2
1086 { (exit 1); exit 1; }; }
1087 ;;
1088
1089 *=*)
1090 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1091 # Reject names that are not valid shell variable names.
1092 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1093 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1094 { (exit 1); exit 1; }; }
1095 eval $ac_envvar=\$ac_optarg
1096 export $ac_envvar ;;
1097
1098 *)
1099 # FIXME: should be removed in autoconf 3.0.
1100 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1101 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1102 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1103 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1104 ;;
1105
1106 esac
1107done
1108
1109if test -n "$ac_prev"; then
1110 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1111 { echo "$as_me: error: missing argument to $ac_option" >&2
1112 { (exit 1); exit 1; }; }
1113fi
1114
1115# Be sure to have absolute directory names.
1116for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1117 datadir sysconfdir sharedstatedir localstatedir includedir \
1118 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1119 libdir localedir mandir
1120do
1121 eval ac_val=\$$ac_var
1122 case $ac_val in
1123 [\\/$]* | ?:[\\/]* ) continue;;
1124 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1125 esac
1126 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1127 { (exit 1); exit 1; }; }
1128done
1129
1130# There might be people who depend on the old broken behavior: `$host'
1131# used to hold the argument of --host etc.
1132# FIXME: To remove some day.
1133build=$build_alias
1134host=$host_alias
1135target=$target_alias
1136
1137# FIXME: To remove some day.
1138if test "x$host_alias" != x; then
1139 if test "x$build_alias" = x; then
1140 cross_compiling=maybe
1141 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1142 If a cross compiler is detected then cross compile mode will be used." >&2
1143 elif test "x$build_alias" != "x$host_alias"; then
1144 cross_compiling=yes
1145 fi
1146fi
1147
1148ac_tool_prefix=
1149test -n "$host_alias" && ac_tool_prefix=$host_alias-
1150
1151test "$silent" = yes && exec 6>/dev/null
1152
1153
1154ac_pwd=`pwd` && test -n "$ac_pwd" &&
1155ac_ls_di=`ls -di .` &&
1156ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1157 { echo "$as_me: error: Working directory cannot be determined" >&2
1158 { (exit 1); exit 1; }; }
1159test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1160 { echo "$as_me: error: pwd does not report name of working directory" >&2
1161 { (exit 1); exit 1; }; }
1162
1163
1164# Find the source files, if location was not specified.
1165if test -z "$srcdir"; then
1166 ac_srcdir_defaulted=yes
1167 # Try the directory containing this script, then the parent directory.
1168 ac_confdir=`$as_dirname -- "$0" ||
1169$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1170 X"$0" : 'X\(//\)[^/]' \| \
1171 X"$0" : 'X\(//\)$' \| \
1172 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1173echo X"$0" |
1174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1175 s//\1/
1176 q
1177 }
1178 /^X\(\/\/\)[^/].*/{
1179 s//\1/
1180 q
1181 }
1182 /^X\(\/\/\)$/{
1183 s//\1/
1184 q
1185 }
1186 /^X\(\/\).*/{
1187 s//\1/
1188 q
1189 }
1190 s/.*/./; q'`
1191 srcdir=$ac_confdir
1192 if test ! -r "$srcdir/$ac_unique_file"; then
1193 srcdir=..
1194 fi
1195else
1196 ac_srcdir_defaulted=no
1197fi
1198if test ! -r "$srcdir/$ac_unique_file"; then
1199 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1200 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1201 { (exit 1); exit 1; }; }
1202fi
1203ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1204ac_abs_confdir=`(
1205 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1206 { (exit 1); exit 1; }; }
1207 pwd)`
1208# When building in place, set srcdir=.
1209if test "$ac_abs_confdir" = "$ac_pwd"; then
1210 srcdir=.
1211fi
1212# Remove unnecessary trailing slashes from srcdir.
1213# Double slashes in file names in object file debugging info
1214# mess up M-x gdb in Emacs.
1215case $srcdir in
1216*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1217esac
1218for ac_var in $ac_precious_vars; do
1219 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1220 eval ac_env_${ac_var}_value=\$${ac_var}
1221 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1222 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1223done
1224
1225#
1226# Report the --help message.
1227#
1228if test "$ac_init_help" = "long"; then
1229 # Omit some internal or obsolete options to make the list less imposing.
1230 # This message is too long to be a string in the A/UX 3.1 sh.
1231 cat <<_ACEOF
1232\`configure' configures this package to adapt to many kinds of systems.
1233
1234Usage: $0 [OPTION]... [VAR=VALUE]...
1235
1236To assign environment variables (e.g., CC, CFLAGS...), specify them as
1237VAR=VALUE. See below for descriptions of some of the useful variables.
1238
1239Defaults for the options are specified in brackets.
1240
1241Configuration:
1242 -h, --help display this help and exit
1243 --help=short display options specific to this package
1244 --help=recursive display the short help of all the included packages
1245 -V, --version display version information and exit
1246 -q, --quiet, --silent do not print \`checking...' messages
1247 --cache-file=FILE cache test results in FILE [disabled]
1248 -C, --config-cache alias for \`--cache-file=config.cache'
1249 -n, --no-create do not create output files
1250 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1251
1252Installation directories:
1253 --prefix=PREFIX install architecture-independent files in PREFIX
1254 [$ac_default_prefix]
1255 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1256 [PREFIX]
1257
1258By default, \`make install' will install all the files in
1259\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1260an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1261for instance \`--prefix=\$HOME'.
1262
1263For better control, use the options below.
1264
1265Fine tuning of the installation directories:
1266 --bindir=DIR user executables [EPREFIX/bin]
1267 --sbindir=DIR system admin executables [EPREFIX/sbin]
1268 --libexecdir=DIR program executables [EPREFIX/libexec]
1269 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1270 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1271 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1272 --libdir=DIR object code libraries [EPREFIX/lib]
1273 --includedir=DIR C header files [PREFIX/include]
1274 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1275 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1276 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1277 --infodir=DIR info documentation [DATAROOTDIR/info]
1278 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1279 --mandir=DIR man documentation [DATAROOTDIR/man]
1280 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1281 --htmldir=DIR html documentation [DOCDIR]
1282 --dvidir=DIR dvi documentation [DOCDIR]
1283 --pdfdir=DIR pdf documentation [DOCDIR]
1284 --psdir=DIR ps documentation [DOCDIR]
1285_ACEOF
1286
1287 cat <<\_ACEOF
1288
1289Program names:
1290 --program-prefix=PREFIX prepend PREFIX to installed program names
1291 --program-suffix=SUFFIX append SUFFIX to installed program names
1292 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1293
1294X features:
1295 --x-includes=DIR X include files are in DIR
1296 --x-libraries=DIR X library files are in DIR
1297_ACEOF
1298fi
1299
1300if test -n "$ac_init_help"; then
1301
1302 cat <<\_ACEOF
1303
1304Optional Features:
1305 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1306 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1307 --disable-dependency-tracking Speeds up one-time builds
1308 --enable-dependency-tracking Do not reject slow dependency extractors
1309 --disable-glibtest do not try to compile and run a test GLIB program
1310 --disable-gtktest do not try to compile and run a test GTK+ program
1311 --disable-gtkglext-test do not try to compile and run a test GtkGLExt program
1312 --enable-debug[=LVL] enable debug level LVL or 1 (default is 0)
1313
1314Optional Packages:
1315 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1316 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1317 --with-x use the X Window System
1318
1319Some influential environment variables:
1320 CC C compiler command
1321 CFLAGS C compiler flags
1322 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1323 nonstandard directory <lib dir>
1324 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1325 you have headers in a nonstandard directory <include dir>
1326 CPP C preprocessor
1327 PKG_CONFIG path to pkg-config utility
1328 LIBGLADE_CFLAGS
1329 C compiler flags for LIBGLADE, overriding pkg-config
1330 LIBGLADE_LIBS
1331 linker flags for LIBGLADE, overriding pkg-config
1332 LIBG3D_CFLAGS
1333 C compiler flags for LIBG3D, overriding pkg-config
1334 LIBG3D_LIBS linker flags for LIBG3D, overriding pkg-config
1335 XMKMF Path to xmkmf, Makefile generator for X Window System
1336
1337Use these variables to override the choices made by `configure' or to help
1338it to find libraries and programs with nonstandard names/locations.
1339
1340_ACEOF
1341ac_status=$?
1342fi
1343
1344if test "$ac_init_help" = "recursive"; then
1345 # If there are subdirs, report their specific --help.
1346 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1347 test -d "$ac_dir" || continue
1348 ac_builddir=.
1349
1350case "$ac_dir" in
1351.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1352*)
1353 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1354 # A ".." for each directory in $ac_dir_suffix.
1355 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1356 case $ac_top_builddir_sub in
1357 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1358 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1359 esac ;;
1360esac
1361ac_abs_top_builddir=$ac_pwd
1362ac_abs_builddir=$ac_pwd$ac_dir_suffix
1363# for backward compatibility:
1364ac_top_builddir=$ac_top_build_prefix
1365
1366case $srcdir in
1367 .) # We are building in place.
1368 ac_srcdir=.
1369 ac_top_srcdir=$ac_top_builddir_sub
1370 ac_abs_top_srcdir=$ac_pwd ;;
1371 [\\/]* | ?:[\\/]* ) # Absolute name.
1372 ac_srcdir=$srcdir$ac_dir_suffix;
1373 ac_top_srcdir=$srcdir
1374 ac_abs_top_srcdir=$srcdir ;;
1375 *) # Relative name.
1376 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1377 ac_top_srcdir=$ac_top_build_prefix$srcdir
1378 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1379esac
1380ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1381
1382 cd "$ac_dir" || { ac_status=$?; continue; }
1383 # Check for guested configure.
1384 if test -f "$ac_srcdir/configure.gnu"; then
1385 echo &&
1386 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1387 elif test -f "$ac_srcdir/configure"; then
1388 echo &&
1389 $SHELL "$ac_srcdir/configure" --help=recursive
1390 else
1391 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1392 fi || ac_status=$?
1393 cd "$ac_pwd" || { ac_status=$?; break; }
1394 done
1395fi
1396
1397test -n "$ac_init_help" && exit $ac_status
1398if $ac_init_version; then
1399 cat <<\_ACEOF
1400configure
1401generated by GNU Autoconf 2.60a
1402
1403Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14042002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1405This configure script is free software; the Free Software Foundation
1406gives unlimited permission to copy, distribute and modify it.
1407_ACEOF
1408 exit
1409fi
1410cat >config.log <<_ACEOF
1411This file contains any messages produced by compilers while
1412running configure, to aid debugging if configure makes a mistake.
1413
1414It was created by $as_me, which was
1415generated by GNU Autoconf 2.60a. Invocation command line was
1416
1417 $ $0 $@
1418
1419_ACEOF
1420exec 5>>config.log
1421{
1422cat <<_ASUNAME
1423## --------- ##
1424## Platform. ##
1425## --------- ##
1426
1427hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1428uname -m = `(uname -m) 2>/dev/null || echo unknown`
1429uname -r = `(uname -r) 2>/dev/null || echo unknown`
1430uname -s = `(uname -s) 2>/dev/null || echo unknown`
1431uname -v = `(uname -v) 2>/dev/null || echo unknown`
1432
1433/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1434/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1435
1436/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1437/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1438/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1439/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1440/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1441/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1442/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1443
1444_ASUNAME
1445
1446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1447for as_dir in $PATH
1448do
1449 IFS=$as_save_IFS
1450 test -z "$as_dir" && as_dir=.
1451 echo "PATH: $as_dir"
1452done
1453IFS=$as_save_IFS
1454
1455} >&5
1456
1457cat >&5 <<_ACEOF
1458
1459
1460## ----------- ##
1461## Core tests. ##
1462## ----------- ##
1463
1464_ACEOF
1465
1466
1467# Keep a trace of the command line.
1468# Strip out --no-create and --no-recursion so they do not pile up.
1469# Strip out --silent because we don't want to record it for future runs.
1470# Also quote any args containing shell meta-characters.
1471# Make two passes to allow for proper duplicate-argument suppression.
1472ac_configure_args=
1473ac_configure_args0=
1474ac_configure_args1=
1475ac_must_keep_next=false
1476for ac_pass in 1 2
1477do
1478 for ac_arg
1479 do
1480 case $ac_arg in
1481 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1482 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1483 | -silent | --silent | --silen | --sile | --sil)
1484 continue ;;
1485 *\'*)
1486 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1487 esac
1488 case $ac_pass in
1489 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1490 2)
1491 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1492 if test $ac_must_keep_next = true; then
1493 ac_must_keep_next=false # Got value, back to normal.
1494 else
1495 case $ac_arg in
1496 *=* | --config-cache | -C | -disable-* | --disable-* \
1497 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1498 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1499 | -with-* | --with-* | -without-* | --without-* | --x)
1500 case "$ac_configure_args0 " in
1501 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1502 esac
1503 ;;
1504 -* ) ac_must_keep_next=true ;;
1505 esac
1506 fi
1507 ac_configure_args="$ac_configure_args '$ac_arg'"
1508 ;;
1509 esac
1510 done
1511done
1512$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1513$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1514
1515# When interrupted or exit'd, cleanup temporary files, and complete
1516# config.log. We remove comments because anyway the quotes in there
1517# would cause problems or look ugly.
1518# WARNING: Use '\'' to represent an apostrophe within the trap.
1519# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1520trap 'exit_status=$?
1521 # Save into config.log some information that might help in debugging.
1522 {
1523 echo
1524
1525 cat <<\_ASBOX
1526## ---------------- ##
1527## Cache variables. ##
1528## ---------------- ##
1529_ASBOX
1530 echo
1531 # The following way of writing the cache mishandles newlines in values,
1532(
1533 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1534 eval ac_val=\$$ac_var
1535 case $ac_val in #(
1536 *${as_nl}*)
1537 case $ac_var in #(
1538 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1539echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1540 esac
1541 case $ac_var in #(
1542 _ | IFS | as_nl) ;; #(
1543 *) $as_unset $ac_var ;;
1544 esac ;;
1545 esac
1546 done
1547 (set) 2>&1 |
1548 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1549 *${as_nl}ac_space=\ *)
1550 sed -n \
1551 "s/'\''/'\''\\\\'\'''\''/g;
1552 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1553 ;; #(
1554 *)
1555 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1556 ;;
1557 esac |
1558 sort
1559)
1560 echo
1561
1562 cat <<\_ASBOX
1563## ----------------- ##
1564## Output variables. ##
1565## ----------------- ##
1566_ASBOX
1567 echo
1568 for ac_var in $ac_subst_vars
1569 do
1570 eval ac_val=\$$ac_var
1571 case $ac_val in
1572 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1573 esac
1574 echo "$ac_var='\''$ac_val'\''"
1575 done | sort
1576 echo
1577
1578 if test -n "$ac_subst_files"; then
1579 cat <<\_ASBOX
1580## ------------------- ##
1581## File substitutions. ##
1582## ------------------- ##
1583_ASBOX
1584 echo
1585 for ac_var in $ac_subst_files
1586 do
1587 eval ac_val=\$$ac_var
1588 case $ac_val in
1589 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1590 esac
1591 echo "$ac_var='\''$ac_val'\''"
1592 done | sort
1593 echo
1594 fi
1595
1596 if test -s confdefs.h; then
1597 cat <<\_ASBOX
1598## ----------- ##
1599## confdefs.h. ##
1600## ----------- ##
1601_ASBOX
1602 echo
1603 cat confdefs.h
1604 echo
1605 fi
1606 test "$ac_signal" != 0 &&
1607 echo "$as_me: caught signal $ac_signal"
1608 echo "$as_me: exit $exit_status"
1609 } >&5
1610 rm -f core *.core core.conftest.* &&
1611 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1612 exit $exit_status
1613' 0
1614for ac_signal in 1 2 13 15; do
1615 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1616done
1617ac_signal=0
1618
1619# confdefs.h avoids OS command line length limits that DEFS can exceed.
1620rm -f -r conftest* confdefs.h
1621
1622# Predefined preprocessor variables.
1623
1624cat >>confdefs.h <<_ACEOF
1625#define PACKAGE_NAME "$PACKAGE_NAME"
1626_ACEOF
1627
1628
1629cat >>confdefs.h <<_ACEOF
1630#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1631_ACEOF
1632
1633
1634cat >>confdefs.h <<_ACEOF
1635#define PACKAGE_VERSION "$PACKAGE_VERSION"
1636_ACEOF
1637
1638
1639cat >>confdefs.h <<_ACEOF
1640#define PACKAGE_STRING "$PACKAGE_STRING"
1641_ACEOF
1642
1643
1644cat >>confdefs.h <<_ACEOF
1645#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1646_ACEOF
1647
1648
1649# Let the site file select an alternate cache file if it wants to.
1650# Prefer explicitly selected file to automatically selected ones.
1651if test -n "$CONFIG_SITE"; then
1652 set x "$CONFIG_SITE"
1653elif test "x$prefix" != xNONE; then
1654 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1655else
1656 set x "$ac_default_prefix/share/config.site" \
1657 "$ac_default_prefix/etc/config.site"
1658fi
1659shift
1660for ac_site_file
1661do
1662 if test -r "$ac_site_file"; then
1663 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1664echo "$as_me: loading site script $ac_site_file" >&6;}
1665 sed 's/^/| /' "$ac_site_file" >&5
1666 . "$ac_site_file"
1667 fi
1668done
1669
1670if test -r "$cache_file"; then
1671 # Some versions of bash will fail to source /dev/null (special
1672 # files actually), so we avoid doing that.
1673 if test -f "$cache_file"; then
1674 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1675echo "$as_me: loading cache $cache_file" >&6;}
1676 case $cache_file in
1677 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1678 *) . "./$cache_file";;
1679 esac
1680 fi
1681else
1682 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1683echo "$as_me: creating cache $cache_file" >&6;}
1684 >$cache_file
1685fi
1686
1687# Check that the precious variables saved in the cache have kept the same
1688# value.
1689ac_cache_corrupted=false
1690for ac_var in $ac_precious_vars; do
1691 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1692 eval ac_new_set=\$ac_env_${ac_var}_set
1693 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1694 eval ac_new_val=\$ac_env_${ac_var}_value
1695 case $ac_old_set,$ac_new_set in
1696 set,)
1697 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1698echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1699 ac_cache_corrupted=: ;;
1700 ,set)
1701 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1702echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1703 ac_cache_corrupted=: ;;
1704 ,);;
1705 *)
1706 if test "x$ac_old_val" != "x$ac_new_val"; then
1707 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1708echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1709 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1710echo "$as_me: former value: $ac_old_val" >&2;}
1711 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1712echo "$as_me: current value: $ac_new_val" >&2;}
1713 ac_cache_corrupted=:
1714 fi;;
1715 esac
1716 # Pass precious variables to config.status.
1717 if test "$ac_new_set" = set; then
1718 case $ac_new_val in
1719 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1720 *) ac_arg=$ac_var=$ac_new_val ;;
1721 esac
1722 case " $ac_configure_args " in
1723 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1724 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1725 esac
1726 fi
1727done
1728if $ac_cache_corrupted; then
1729 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1730echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1731 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1732echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1733 { (exit 1); exit 1; }; }
1734fi
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752ac_ext=c
1753ac_cpp='$CPP $CPPFLAGS'
1754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1756ac_compiler_gnu=$ac_cv_c_compiler_gnu
1757
1758
1759
1760VERSION=0.2.99.4
1761PACKAGE=g3dviewer
1762
1763ac_config_headers="$ac_config_headers config.h"
1764
1765
1766am__api_version="1.7"
1767ac_aux_dir=
1768for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1769 if test -f "$ac_dir/install-sh"; then
1770 ac_aux_dir=$ac_dir
1771 ac_install_sh="$ac_aux_dir/install-sh -c"
1772 break
1773 elif test -f "$ac_dir/install.sh"; then
1774 ac_aux_dir=$ac_dir
1775 ac_install_sh="$ac_aux_dir/install.sh -c"
1776 break
1777 elif test -f "$ac_dir/shtool"; then
1778 ac_aux_dir=$ac_dir
1779 ac_install_sh="$ac_aux_dir/shtool install -c"
1780 break
1781 fi
1782done
1783if test -z "$ac_aux_dir"; then
1784 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1785echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1786 { (exit 1); exit 1; }; }
1787fi
1788
1789# These three variables are undocumented and unsupported,
1790# and are intended to be withdrawn in a future Autoconf release.
1791# They can cause serious problems if a builder's source tree is in a directory
1792# whose full name contains unusual characters.
1793ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1794ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1795ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1796
1797
1798# Find a good install program. We prefer a C program (faster),
1799# so one script is as good as another. But avoid the broken or
1800# incompatible versions:
1801# SysV /etc/install, /usr/sbin/install
1802# SunOS /usr/etc/install
1803# IRIX /sbin/install
1804# AIX /bin/install
1805# AmigaOS /C/install, which installs bootblocks on floppy discs
1806# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1807# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1808# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1809# OS/2's system install, which has a completely different semantic
1810# ./install, which can be erroneously created by make from ./install.sh.
1811{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1812echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1813if test -z "$INSTALL"; then
1814if test "${ac_cv_path_install+set}" = set; then
1815 echo $ECHO_N "(cached) $ECHO_C" >&6
1816else
1817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818for as_dir in $PATH
1819do
1820 IFS=$as_save_IFS
1821 test -z "$as_dir" && as_dir=.
1822 # Account for people who put trailing slashes in PATH elements.
1823case $as_dir/ in
1824 ./ | .// | /cC/* | \
1825 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1826 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1827 /usr/ucb/* ) ;;
1828 *)
1829 # OSF1 and SCO ODT 3.0 have their own names for install.
1830 # Don't use installbsd from OSF since it installs stuff as root
1831 # by default.
1832 for ac_prog in ginstall scoinst install; do
1833 for ac_exec_ext in '' $ac_executable_extensions; do
1834 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
1835 if test $ac_prog = install &&
1836 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1837 # AIX install. It has an incompatible calling convention.
1838 :
1839 elif test $ac_prog = install &&
1840 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1841 # program-specific install script used by HP pwplus--don't use.
1842 :
1843 else
1844 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1845 break 3
1846 fi
1847 fi
1848 done
1849 done
1850 ;;
1851esac
1852done
1853IFS=$as_save_IFS
1854
1855
1856fi
1857 if test "${ac_cv_path_install+set}" = set; then
1858 INSTALL=$ac_cv_path_install
1859 else
1860 # As a last resort, use the slow shell script. Don't cache a
1861 # value for INSTALL within a source directory, because that will
1862 # break other packages using the cache if that directory is
1863 # removed, or if the value is a relative name.
1864 INSTALL=$ac_install_sh
1865 fi
1866fi
1867{ echo "$as_me:$LINENO: result: $INSTALL" >&5
1868echo "${ECHO_T}$INSTALL" >&6; }
1869
1870# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1871# It thinks the first close brace ends the variable substitution.
1872test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1873
1874test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1875
1876test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1877
1878{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1879echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1880# Just in case
1881sleep 1
1882echo timestamp > conftest.file
1883# Do `set' in a subshell so we don't clobber the current shell's
1884# arguments. Must try -L first in case configure is actually a
1885# symlink; some systems play weird games with the mod time of symlinks
1886# (eg FreeBSD returns the mod time of the symlink's containing
1887# directory).
1888if (
1889 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1890 if test "$*" = "X"; then
1891 # -L didn't work.
1892 set X `ls -t $srcdir/configure conftest.file`
1893 fi
1894 rm -f conftest.file
1895 if test "$*" != "X $srcdir/configure conftest.file" \
1896 && test "$*" != "X conftest.file $srcdir/configure"; then
1897
1898 # If neither matched, then we have a broken ls. This can happen
1899 # if, for instance, CONFIG_SHELL is bash and it inherits a
1900 # broken ls alias from the environment. This has actually
1901 # happened. Such a system could not be considered "sane".
1902 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1903alias in your environment" >&5
1904echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1905alias in your environment" >&2;}
1906 { (exit 1); exit 1; }; }
1907 fi
1908
1909 test "$2" = conftest.file
1910 )
1911then
1912 # Ok.
1913 :
1914else
1915 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1916Check your system clock" >&5
1917echo "$as_me: error: newly created file is older than distributed files!
1918Check your system clock" >&2;}
1919 { (exit 1); exit 1; }; }
1920fi
1921{ echo "$as_me:$LINENO: result: yes" >&5
1922echo "${ECHO_T}yes" >&6; }
1923test "$program_prefix" != NONE &&
1924 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1925# Use a double $ so make ignores it.
1926test "$program_suffix" != NONE &&
1927 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1928# Double any \ or $. echo might interpret backslashes.
1929# By default was `s,x,x', remove it if useless.
1930cat <<\_ACEOF >conftest.sed
1931s/[\\$]/&&/g;s/;s,x,x,$//
1932_ACEOF
1933program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1934rm -f conftest.sed
1935
1936
1937# expand $ac_aux_dir to an absolute path
1938am_aux_dir=`cd $ac_aux_dir && pwd`
1939
1940test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1941# Use eval to expand $SHELL
1942if eval "$MISSING --run true"; then
1943 am_missing_run="$MISSING --run "
1944else
1945 am_missing_run=
1946 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1947echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1948fi
1949
1950for ac_prog in gawk mawk nawk awk
1951do
1952 # Extract the first word of "$ac_prog", so it can be a program name with args.
1953set dummy $ac_prog; ac_word=$2
1954{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1956if test "${ac_cv_prog_AWK+set}" = set; then
1957 echo $ECHO_N "(cached) $ECHO_C" >&6
1958else
1959 if test -n "$AWK"; then
1960 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1961else
1962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1963for as_dir in $PATH
1964do
1965 IFS=$as_save_IFS
1966 test -z "$as_dir" && as_dir=.
1967 for ac_exec_ext in '' $ac_executable_extensions; do
1968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1969 ac_cv_prog_AWK="$ac_prog"
1970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1971 break 2
1972 fi
1973done
1974done
1975IFS=$as_save_IFS
1976
1977fi
1978fi
1979AWK=$ac_cv_prog_AWK
1980if test -n "$AWK"; then
1981 { echo "$as_me:$LINENO: result: $AWK" >&5
1982echo "${ECHO_T}$AWK" >&6; }
1983else
1984 { echo "$as_me:$LINENO: result: no" >&5
1985echo "${ECHO_T}no" >&6; }
1986fi
1987
1988
1989 test -n "$AWK" && break
1990done
1991
1992{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1993echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1994set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1995if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1996 echo $ECHO_N "(cached) $ECHO_C" >&6
1997else
1998 cat >conftest.make <<\_ACEOF
1999SHELL = /bin/sh
2000all:
2001 @echo '@@@%%%=$(MAKE)=@@@%%%'
2002_ACEOF
2003# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2004case `${MAKE-make} -f conftest.make 2>/dev/null` in
2005 *@@@%%%=?*=@@@%%%*)
2006 eval ac_cv_prog_make_${ac_make}_set=yes;;
2007 *)
2008 eval ac_cv_prog_make_${ac_make}_set=no;;
2009esac
2010rm -f conftest.make
2011fi
2012if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2013 { echo "$as_me:$LINENO: result: yes" >&5
2014echo "${ECHO_T}yes" >&6; }
2015 SET_MAKE=
2016else
2017 { echo "$as_me:$LINENO: result: no" >&5
2018echo "${ECHO_T}no" >&6; }
2019 SET_MAKE="MAKE=${MAKE-make}"
2020fi
2021
2022rm -rf .tst 2>/dev/null
2023mkdir .tst 2>/dev/null
2024if test -d .tst; then
2025 am__leading_dot=.
2026else
2027 am__leading_dot=_
2028fi
2029rmdir .tst 2>/dev/null
2030
2031 # test to see if srcdir already configured
2032if test "`cd $srcdir && pwd`" != "`pwd`" &&
2033 test -f $srcdir/config.status; then
2034 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2035echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2036 { (exit 1); exit 1; }; }
2037fi
2038
2039# test whether we have cygpath
2040if test -z "$CYGPATH_W"; then
2041 if (cygpath --version) >/dev/null 2>/dev/null; then
2042 CYGPATH_W='cygpath -w'
2043 else
2044 CYGPATH_W=echo
2045 fi
2046fi
2047
2048
2049# Define the identity of the package.
2050 PACKAGE=$PACKAGE
2051 VERSION=$VERSION
2052
2053
2054# Some tools Automake needs.
2055
2056ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2057
2058
2059AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2060
2061
2062AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2063
2064
2065AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2066
2067
2068MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2069
2070
2071AMTAR=${AMTAR-"${am_missing_run}tar"}
2072
2073install_sh=${install_sh-"$am_aux_dir/install-sh"}
2074
2075# Installed binaries are usually stripped using `strip' when the user
2076# run `make install-strip'. However `strip' might not be the right
2077# tool to use in cross-compilation environments, therefore Automake
2078# will honor the `STRIP' environment variable to overrule this program.
2079if test "$cross_compiling" != no; then
2080 if test -n "$ac_tool_prefix"; then
2081 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2082set dummy ${ac_tool_prefix}strip; ac_word=$2
2083{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2085if test "${ac_cv_prog_STRIP+set}" = set; then
2086 echo $ECHO_N "(cached) $ECHO_C" >&6
2087else
2088 if test -n "$STRIP"; then
2089 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2090else
2091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2092for as_dir in $PATH
2093do
2094 IFS=$as_save_IFS
2095 test -z "$as_dir" && as_dir=.
2096 for ac_exec_ext in '' $ac_executable_extensions; do
2097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2098 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2100 break 2
2101 fi
2102done
2103done
2104IFS=$as_save_IFS
2105
2106fi
2107fi
2108STRIP=$ac_cv_prog_STRIP
2109if test -n "$STRIP"; then
2110 { echo "$as_me:$LINENO: result: $STRIP" >&5
2111echo "${ECHO_T}$STRIP" >&6; }
2112else
2113 { echo "$as_me:$LINENO: result: no" >&5
2114echo "${ECHO_T}no" >&6; }
2115fi
2116
2117
2118fi
2119if test -z "$ac_cv_prog_STRIP"; then
2120 ac_ct_STRIP=$STRIP
2121 # Extract the first word of "strip", so it can be a program name with args.
2122set dummy strip; ac_word=$2
2123{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2125if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2126 echo $ECHO_N "(cached) $ECHO_C" >&6
2127else
2128 if test -n "$ac_ct_STRIP"; then
2129 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2130else
2131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132for as_dir in $PATH
2133do
2134 IFS=$as_save_IFS
2135 test -z "$as_dir" && as_dir=.
2136 for ac_exec_ext in '' $ac_executable_extensions; do
2137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2138 ac_cv_prog_ac_ct_STRIP="strip"
2139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2140 break 2
2141 fi
2142done
2143done
2144IFS=$as_save_IFS
2145
2146fi
2147fi
2148ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2149if test -n "$ac_ct_STRIP"; then
2150 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2151echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2152else
2153 { echo "$as_me:$LINENO: result: no" >&5
2154echo "${ECHO_T}no" >&6; }
2155fi
2156
2157 if test "x$ac_ct_STRIP" = x; then
2158 STRIP=":"
2159 else
2160 case $cross_compiling:$ac_tool_warned in
2161yes:)
2162{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2163whose name does not start with the host triplet. If you think this
2164configuration is useful to you, please write to autoconf@gnu.org." >&5
2165echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2166whose name does not start with the host triplet. If you think this
2167configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2168ac_tool_warned=yes ;;
2169esac
2170 STRIP=$ac_ct_STRIP
2171 fi
2172else
2173 STRIP="$ac_cv_prog_STRIP"
2174fi
2175
2176fi
2177INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2178
2179# We need awk for the "check" target. The system "awk" is bad on
2180# some platforms.
2181
2182
2183
2184
2185
2186ac_ext=c
2187ac_cpp='$CPP $CPPFLAGS'
2188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2190ac_compiler_gnu=$ac_cv_c_compiler_gnu
2191if test -n "$ac_tool_prefix"; then
2192 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2193set dummy ${ac_tool_prefix}gcc; ac_word=$2
2194{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2195echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2196if test "${ac_cv_prog_CC+set}" = set; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
2198else
2199 if test -n "$CC"; then
2200 ac_cv_prog_CC="$CC" # Let the user override the test.
2201else
2202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2203for as_dir in $PATH
2204do
2205 IFS=$as_save_IFS
2206 test -z "$as_dir" && as_dir=.
2207 for ac_exec_ext in '' $ac_executable_extensions; do
2208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2209 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2211 break 2
2212 fi
2213done
2214done
2215IFS=$as_save_IFS
2216
2217fi
2218fi
2219CC=$ac_cv_prog_CC
2220if test -n "$CC"; then
2221 { echo "$as_me:$LINENO: result: $CC" >&5
2222echo "${ECHO_T}$CC" >&6; }
2223else
2224 { echo "$as_me:$LINENO: result: no" >&5
2225echo "${ECHO_T}no" >&6; }
2226fi
2227
2228
2229fi
2230if test -z "$ac_cv_prog_CC"; then
2231 ac_ct_CC=$CC
2232 # Extract the first word of "gcc", so it can be a program name with args.
2233set dummy gcc; ac_word=$2
2234{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2236if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2237 echo $ECHO_N "(cached) $ECHO_C" >&6
2238else
2239 if test -n "$ac_ct_CC"; then
2240 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2241else
2242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243for as_dir in $PATH
2244do
2245 IFS=$as_save_IFS
2246 test -z "$as_dir" && as_dir=.
2247 for ac_exec_ext in '' $ac_executable_extensions; do
2248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2249 ac_cv_prog_ac_ct_CC="gcc"
2250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2251 break 2
2252 fi
2253done
2254done
2255IFS=$as_save_IFS
2256
2257fi
2258fi
2259ac_ct_CC=$ac_cv_prog_ac_ct_CC
2260if test -n "$ac_ct_CC"; then
2261 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2262echo "${ECHO_T}$ac_ct_CC" >&6; }
2263else
2264 { echo "$as_me:$LINENO: result: no" >&5
2265echo "${ECHO_T}no" >&6; }
2266fi
2267
2268 if test "x$ac_ct_CC" = x; then
2269 CC=""
2270 else
2271 case $cross_compiling:$ac_tool_warned in
2272yes:)
2273{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2274whose name does not start with the host triplet. If you think this
2275configuration is useful to you, please write to autoconf@gnu.org." >&5
2276echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2277whose name does not start with the host triplet. If you think this
2278configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2279ac_tool_warned=yes ;;
2280esac
2281 CC=$ac_ct_CC
2282 fi
2283else
2284 CC="$ac_cv_prog_CC"
2285fi
2286
2287if test -z "$CC"; then
2288 if test -n "$ac_tool_prefix"; then
2289 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2290set dummy ${ac_tool_prefix}cc; ac_word=$2
2291{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2293if test "${ac_cv_prog_CC+set}" = set; then
2294 echo $ECHO_N "(cached) $ECHO_C" >&6
2295else
2296 if test -n "$CC"; then
2297 ac_cv_prog_CC="$CC" # Let the user override the test.
2298else
2299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2300for as_dir in $PATH
2301do
2302 IFS=$as_save_IFS
2303 test -z "$as_dir" && as_dir=.
2304 for ac_exec_ext in '' $ac_executable_extensions; do
2305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2306 ac_cv_prog_CC="${ac_tool_prefix}cc"
2307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2308 break 2
2309 fi
2310done
2311done
2312IFS=$as_save_IFS
2313
2314fi
2315fi
2316CC=$ac_cv_prog_CC
2317if test -n "$CC"; then
2318 { echo "$as_me:$LINENO: result: $CC" >&5
2319echo "${ECHO_T}$CC" >&6; }
2320else
2321 { echo "$as_me:$LINENO: result: no" >&5
2322echo "${ECHO_T}no" >&6; }
2323fi
2324
2325
2326 fi
2327fi
2328if test -z "$CC"; then
2329 # Extract the first word of "cc", so it can be a program name with args.
2330set dummy cc; ac_word=$2
2331{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2333if test "${ac_cv_prog_CC+set}" = set; then
2334 echo $ECHO_N "(cached) $ECHO_C" >&6
2335else
2336 if test -n "$CC"; then
2337 ac_cv_prog_CC="$CC" # Let the user override the test.
2338else
2339 ac_prog_rejected=no
2340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341for as_dir in $PATH
2342do
2343 IFS=$as_save_IFS
2344 test -z "$as_dir" && as_dir=.
2345 for ac_exec_ext in '' $ac_executable_extensions; do
2346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2347 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2348 ac_prog_rejected=yes
2349 continue
2350 fi
2351 ac_cv_prog_CC="cc"
2352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2353 break 2
2354 fi
2355done
2356done
2357IFS=$as_save_IFS
2358
2359if test $ac_prog_rejected = yes; then
2360 # We found a bogon in the path, so make sure we never use it.
2361 set dummy $ac_cv_prog_CC
2362 shift
2363 if test $# != 0; then
2364 # We chose a different compiler from the bogus one.
2365 # However, it has the same basename, so the bogon will be chosen
2366 # first if we set CC to just the basename; use the full file name.
2367 shift
2368 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2369 fi
2370fi
2371fi
2372fi
2373CC=$ac_cv_prog_CC
2374if test -n "$CC"; then
2375 { echo "$as_me:$LINENO: result: $CC" >&5
2376echo "${ECHO_T}$CC" >&6; }
2377else
2378 { echo "$as_me:$LINENO: result: no" >&5
2379echo "${ECHO_T}no" >&6; }
2380fi
2381
2382
2383fi
2384if test -z "$CC"; then
2385 if test -n "$ac_tool_prefix"; then
2386 for ac_prog in cl.exe
2387 do
2388 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2389set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2390{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2392if test "${ac_cv_prog_CC+set}" = set; then
2393 echo $ECHO_N "(cached) $ECHO_C" >&6
2394else
2395 if test -n "$CC"; then
2396 ac_cv_prog_CC="$CC" # Let the user override the test.
2397else
2398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399for as_dir in $PATH
2400do
2401 IFS=$as_save_IFS
2402 test -z "$as_dir" && as_dir=.
2403 for ac_exec_ext in '' $ac_executable_extensions; do
2404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2405 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2407 break 2
2408 fi
2409done
2410done
2411IFS=$as_save_IFS
2412
2413fi
2414fi
2415CC=$ac_cv_prog_CC
2416if test -n "$CC"; then
2417 { echo "$as_me:$LINENO: result: $CC" >&5
2418echo "${ECHO_T}$CC" >&6; }
2419else
2420 { echo "$as_me:$LINENO: result: no" >&5
2421echo "${ECHO_T}no" >&6; }
2422fi
2423
2424
2425 test -n "$CC" && break
2426 done
2427fi
2428if test -z "$CC"; then
2429 ac_ct_CC=$CC
2430 for ac_prog in cl.exe
2431do
2432 # Extract the first word of "$ac_prog", so it can be a program name with args.
2433set dummy $ac_prog; ac_word=$2
2434{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2436if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
2438else
2439 if test -n "$ac_ct_CC"; then
2440 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2441else
2442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443for as_dir in $PATH
2444do
2445 IFS=$as_save_IFS
2446 test -z "$as_dir" && as_dir=.
2447 for ac_exec_ext in '' $ac_executable_extensions; do
2448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2449 ac_cv_prog_ac_ct_CC="$ac_prog"
2450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2451 break 2
2452 fi
2453done
2454done
2455IFS=$as_save_IFS
2456
2457fi
2458fi
2459ac_ct_CC=$ac_cv_prog_ac_ct_CC
2460if test -n "$ac_ct_CC"; then
2461 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2462echo "${ECHO_T}$ac_ct_CC" >&6; }
2463else
2464 { echo "$as_me:$LINENO: result: no" >&5
2465echo "${ECHO_T}no" >&6; }
2466fi
2467
2468
2469 test -n "$ac_ct_CC" && break
2470done
2471
2472 if test "x$ac_ct_CC" = x; then
2473 CC=""
2474 else
2475 case $cross_compiling:$ac_tool_warned in
2476yes:)
2477{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2478whose name does not start with the host triplet. If you think this
2479configuration is useful to you, please write to autoconf@gnu.org." >&5
2480echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2481whose name does not start with the host triplet. If you think this
2482configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2483ac_tool_warned=yes ;;
2484esac
2485 CC=$ac_ct_CC
2486 fi
2487fi
2488
2489fi
2490
2491
2492test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2493See \`config.log' for more details." >&5
2494echo "$as_me: error: no acceptable C compiler found in \$PATH
2495See \`config.log' for more details." >&2;}
2496 { (exit 1); exit 1; }; }
2497
2498# Provide some information about the compiler.
2499echo "$as_me:$LINENO: checking for C compiler version" >&5
2500ac_compiler=`set X $ac_compile; echo $2`
2501{ (ac_try="$ac_compiler --version >&5"
2502case "(($ac_try" in
2503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2504 *) ac_try_echo=$ac_try;;
2505esac
2506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2507 (eval "$ac_compiler --version >&5") 2>&5
2508 ac_status=$?
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); }
2511{ (ac_try="$ac_compiler -v >&5"
2512case "(($ac_try" in
2513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2514 *) ac_try_echo=$ac_try;;
2515esac
2516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2517 (eval "$ac_compiler -v >&5") 2>&5
2518 ac_status=$?
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }
2521{ (ac_try="$ac_compiler -V >&5"
2522case "(($ac_try" in
2523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2524 *) ac_try_echo=$ac_try;;
2525esac
2526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2527 (eval "$ac_compiler -V >&5") 2>&5
2528 ac_status=$?
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }
2531
2532cat >conftest.$ac_ext <<_ACEOF
2533/* confdefs.h. */
2534_ACEOF
2535cat confdefs.h >>conftest.$ac_ext
2536cat >>conftest.$ac_ext <<_ACEOF
2537/* end confdefs.h. */
2538
2539int
2540main ()
2541{
2542
2543 ;
2544 return 0;
2545}
2546_ACEOF
2547ac_clean_files_save=$ac_clean_files
2548ac_clean_files="$ac_clean_files a.out a.exe b.out"
2549# Try to create an executable without -o first, disregard a.out.
2550# It will help us diagnose broken compilers, and finding out an intuition
2551# of exeext.
2552{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2553echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2554ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2555#
2556# List of possible output files, starting from the most likely.
2557# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2558# only as a last resort. b.out is created by i960 compilers.
2559ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2560#
2561# The IRIX 6 linker writes into existing files which may not be
2562# executable, retaining their permissions. Remove them first so a
2563# subsequent execution test works.
2564ac_rmfiles=
2565for ac_file in $ac_files
2566do
2567 case $ac_file in
2568 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2569 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2570 esac
2571done
2572rm -f $ac_rmfiles
2573
2574if { (ac_try="$ac_link_default"
2575case "(($ac_try" in
2576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577 *) ac_try_echo=$ac_try;;
2578esac
2579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2580 (eval "$ac_link_default") 2>&5
2581 ac_status=$?
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }; then
2584 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2585# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2586# in a Makefile. We should not override ac_cv_exeext if it was cached,
2587# so that the user can short-circuit this test for compilers unknown to
2588# Autoconf.
2589for ac_file in $ac_files ''
2590do
2591 test -f "$ac_file" || continue
2592 case $ac_file in
2593 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2594 ;;
2595 [ab].out )
2596 # We found the default executable, but exeext='' is most
2597 # certainly right.
2598 break;;
2599 *.* )
2600 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2601 then :; else
2602 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2603 fi
2604 # We set ac_cv_exeext here because the later test for it is not
2605 # safe: cross compilers may not add the suffix if given an `-o'
2606 # argument, so we may need to know it at that point already.
2607 # Even if this section looks crufty: it has the advantage of
2608 # actually working.
2609 break;;
2610 * )
2611 break;;
2612 esac
2613done
2614test "$ac_cv_exeext" = no && ac_cv_exeext=
2615
2616else
2617 ac_file=''
2618fi
2619
2620{ echo "$as_me:$LINENO: result: $ac_file" >&5
2621echo "${ECHO_T}$ac_file" >&6; }
2622if test -z "$ac_file"; then
2623 echo "$as_me: failed program was:" >&5
2624sed 's/^/| /' conftest.$ac_ext >&5
2625
2626{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2627See \`config.log' for more details." >&5
2628echo "$as_me: error: C compiler cannot create executables
2629See \`config.log' for more details." >&2;}
2630 { (exit 77); exit 77; }; }
2631fi
2632
2633ac_exeext=$ac_cv_exeext
2634
2635# Check that the compiler produces executables we can run. If not, either
2636# the compiler is broken, or we cross compile.
2637{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2638echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2639# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2640# If not cross compiling, check that we can run a simple program.
2641if test "$cross_compiling" != yes; then
2642 if { ac_try='./$ac_file'
2643 { (case "(($ac_try" in
2644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2645 *) ac_try_echo=$ac_try;;
2646esac
2647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2648 (eval "$ac_try") 2>&5
2649 ac_status=$?
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); }; }; then
2652 cross_compiling=no
2653 else
2654 if test "$cross_compiling" = maybe; then
2655 cross_compiling=yes
2656 else
2657 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2658If you meant to cross compile, use \`--host'.
2659See \`config.log' for more details." >&5
2660echo "$as_me: error: cannot run C compiled programs.
2661If you meant to cross compile, use \`--host'.
2662See \`config.log' for more details." >&2;}
2663 { (exit 1); exit 1; }; }
2664 fi
2665 fi
2666fi
2667{ echo "$as_me:$LINENO: result: yes" >&5
2668echo "${ECHO_T}yes" >&6; }
2669
2670rm -f a.out a.exe conftest$ac_cv_exeext b.out
2671ac_clean_files=$ac_clean_files_save
2672# Check that the compiler produces executables we can run. If not, either
2673# the compiler is broken, or we cross compile.
2674{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2675echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2676{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2677echo "${ECHO_T}$cross_compiling" >&6; }
2678
2679{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2680echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2681if { (ac_try="$ac_link"
2682case "(($ac_try" in
2683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684 *) ac_try_echo=$ac_try;;
2685esac
2686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2687 (eval "$ac_link") 2>&5
2688 ac_status=$?
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); }; then
2691 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2692# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2693# work properly (i.e., refer to `conftest.exe'), while it won't with
2694# `rm'.
2695for ac_file in conftest.exe conftest conftest.*; do
2696 test -f "$ac_file" || continue
2697 case $ac_file in
2698 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2699 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2700 break;;
2701 * ) break;;
2702 esac
2703done
2704else
2705 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2706See \`config.log' for more details." >&5
2707echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2708See \`config.log' for more details." >&2;}
2709 { (exit 1); exit 1; }; }
2710fi
2711
2712rm -f conftest$ac_cv_exeext
2713{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2714echo "${ECHO_T}$ac_cv_exeext" >&6; }
2715
2716rm -f conftest.$ac_ext
2717EXEEXT=$ac_cv_exeext
2718ac_exeext=$EXEEXT
2719{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2720echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2721if test "${ac_cv_objext+set}" = set; then
2722 echo $ECHO_N "(cached) $ECHO_C" >&6
2723else
2724 cat >conftest.$ac_ext <<_ACEOF
2725/* confdefs.h. */
2726_ACEOF
2727cat confdefs.h >>conftest.$ac_ext
2728cat >>conftest.$ac_ext <<_ACEOF
2729/* end confdefs.h. */
2730
2731int
2732main ()
2733{
2734
2735 ;
2736 return 0;
2737}
2738_ACEOF
2739rm -f conftest.o conftest.obj
2740if { (ac_try="$ac_compile"
2741case "(($ac_try" in
2742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743 *) ac_try_echo=$ac_try;;
2744esac
2745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2746 (eval "$ac_compile") 2>&5
2747 ac_status=$?
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); }; then
2750 for ac_file in conftest.o conftest.obj conftest.*; do
2751 test -f "$ac_file" || continue;
2752 case $ac_file in
2753 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2754 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2755 break;;
2756 esac
2757done
2758else
2759 echo "$as_me: failed program was:" >&5
2760sed 's/^/| /' conftest.$ac_ext >&5
2761
2762{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2763See \`config.log' for more details." >&5
2764echo "$as_me: error: cannot compute suffix of object files: cannot compile
2765See \`config.log' for more details." >&2;}
2766 { (exit 1); exit 1; }; }
2767fi
2768
2769rm -f conftest.$ac_cv_objext conftest.$ac_ext
2770fi
2771{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2772echo "${ECHO_T}$ac_cv_objext" >&6; }
2773OBJEXT=$ac_cv_objext
2774ac_objext=$OBJEXT
2775{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2776echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2777if test "${ac_cv_c_compiler_gnu+set}" = set; then
2778 echo $ECHO_N "(cached) $ECHO_C" >&6
2779else
2780 cat >conftest.$ac_ext <<_ACEOF
2781/* confdefs.h. */
2782_ACEOF
2783cat confdefs.h >>conftest.$ac_ext
2784cat >>conftest.$ac_ext <<_ACEOF
2785/* end confdefs.h. */
2786
2787int
2788main ()
2789{
2790#ifndef __GNUC__
2791 choke me
2792#endif
2793
2794 ;
2795 return 0;
2796}
2797_ACEOF
2798rm -f conftest.$ac_objext
2799if { (ac_try="$ac_compile"
2800case "(($ac_try" in
2801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2802 *) ac_try_echo=$ac_try;;
2803esac
2804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2805 (eval "$ac_compile") 2>conftest.er1
2806 ac_status=$?
2807 grep -v '^ *+' conftest.er1 >conftest.err
2808 rm -f conftest.er1
2809 cat conftest.err >&5
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); } &&
2812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2813 { (case "(($ac_try" in
2814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2815 *) ac_try_echo=$ac_try;;
2816esac
2817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2818 (eval "$ac_try") 2>&5
2819 ac_status=$?
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); }; } &&
2822 { ac_try='test -s conftest.$ac_objext'
2823 { (case "(($ac_try" in
2824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825 *) ac_try_echo=$ac_try;;
2826esac
2827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2828 (eval "$ac_try") 2>&5
2829 ac_status=$?
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }; }; then
2832 ac_compiler_gnu=yes
2833else
2834 echo "$as_me: failed program was:" >&5
2835sed 's/^/| /' conftest.$ac_ext >&5
2836
2837 ac_compiler_gnu=no
2838fi
2839
2840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2841ac_cv_c_compiler_gnu=$ac_compiler_gnu
2842
2843fi
2844{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2845echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2846GCC=`test $ac_compiler_gnu = yes && echo yes`
2847ac_test_CFLAGS=${CFLAGS+set}
2848ac_save_CFLAGS=$CFLAGS
2849{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2850echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2851if test "${ac_cv_prog_cc_g+set}" = set; then
2852 echo $ECHO_N "(cached) $ECHO_C" >&6
2853else
2854 ac_save_c_werror_flag=$ac_c_werror_flag
2855 ac_c_werror_flag=yes
2856 ac_cv_prog_cc_g=no
2857 CFLAGS="-g"
2858 cat >conftest.$ac_ext <<_ACEOF
2859/* confdefs.h. */
2860_ACEOF
2861cat confdefs.h >>conftest.$ac_ext
2862cat >>conftest.$ac_ext <<_ACEOF
2863/* end confdefs.h. */
2864
2865int
2866main ()
2867{
2868
2869 ;
2870 return 0;
2871}
2872_ACEOF
2873rm -f conftest.$ac_objext
2874if { (ac_try="$ac_compile"
2875case "(($ac_try" in
2876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2877 *) ac_try_echo=$ac_try;;
2878esac
2879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2880 (eval "$ac_compile") 2>conftest.er1
2881 ac_status=$?
2882 grep -v '^ *+' conftest.er1 >conftest.err
2883 rm -f conftest.er1
2884 cat conftest.err >&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); } &&
2887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2888 { (case "(($ac_try" in
2889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890 *) ac_try_echo=$ac_try;;
2891esac
2892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2893 (eval "$ac_try") 2>&5
2894 ac_status=$?
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); }; } &&
2897 { ac_try='test -s conftest.$ac_objext'
2898 { (case "(($ac_try" in
2899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900 *) ac_try_echo=$ac_try;;
2901esac
2902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2903 (eval "$ac_try") 2>&5
2904 ac_status=$?
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); }; }; then
2907 ac_cv_prog_cc_g=yes
2908else
2909 echo "$as_me: failed program was:" >&5
2910sed 's/^/| /' conftest.$ac_ext >&5
2911
2912 CFLAGS=""
2913 cat >conftest.$ac_ext <<_ACEOF
2914/* confdefs.h. */
2915_ACEOF
2916cat confdefs.h >>conftest.$ac_ext
2917cat >>conftest.$ac_ext <<_ACEOF
2918/* end confdefs.h. */
2919
2920int
2921main ()
2922{
2923
2924 ;
2925 return 0;
2926}
2927_ACEOF
2928rm -f conftest.$ac_objext
2929if { (ac_try="$ac_compile"
2930case "(($ac_try" in
2931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932 *) ac_try_echo=$ac_try;;
2933esac
2934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935 (eval "$ac_compile") 2>conftest.er1
2936 ac_status=$?
2937 grep -v '^ *+' conftest.er1 >conftest.err
2938 rm -f conftest.er1
2939 cat conftest.err >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); } &&
2942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2943 { (case "(($ac_try" in
2944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945 *) ac_try_echo=$ac_try;;
2946esac
2947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2948 (eval "$ac_try") 2>&5
2949 ac_status=$?
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }; } &&
2952 { ac_try='test -s conftest.$ac_objext'
2953 { (case "(($ac_try" in
2954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955 *) ac_try_echo=$ac_try;;
2956esac
2957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2958 (eval "$ac_try") 2>&5
2959 ac_status=$?
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); }; }; then
2962 :
2963else
2964 echo "$as_me: failed program was:" >&5
2965sed 's/^/| /' conftest.$ac_ext >&5
2966
2967 ac_c_werror_flag=$ac_save_c_werror_flag
2968 CFLAGS="-g"
2969 cat >conftest.$ac_ext <<_ACEOF
2970/* confdefs.h. */
2971_ACEOF
2972cat confdefs.h >>conftest.$ac_ext
2973cat >>conftest.$ac_ext <<_ACEOF
2974/* end confdefs.h. */
2975
2976int
2977main ()
2978{
2979
2980 ;
2981 return 0;
2982}
2983_ACEOF
2984rm -f conftest.$ac_objext
2985if { (ac_try="$ac_compile"
2986case "(($ac_try" in
2987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988 *) ac_try_echo=$ac_try;;
2989esac
2990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2991 (eval "$ac_compile") 2>conftest.er1
2992 ac_status=$?
2993 grep -v '^ *+' conftest.er1 >conftest.err
2994 rm -f conftest.er1
2995 cat conftest.err >&5
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); } &&
2998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2999 { (case "(($ac_try" in
3000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001 *) ac_try_echo=$ac_try;;
3002esac
3003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3004 (eval "$ac_try") 2>&5
3005 ac_status=$?
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); }; } &&
3008 { ac_try='test -s conftest.$ac_objext'
3009 { (case "(($ac_try" in
3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011 *) ac_try_echo=$ac_try;;
3012esac
3013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3014 (eval "$ac_try") 2>&5
3015 ac_status=$?
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }; }; then
3018 ac_cv_prog_cc_g=yes
3019else
3020 echo "$as_me: failed program was:" >&5
3021sed 's/^/| /' conftest.$ac_ext >&5
3022
3023
3024fi
3025
3026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3027fi
3028
3029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3030fi
3031
3032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3033 ac_c_werror_flag=$ac_save_c_werror_flag
3034fi
3035{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3036echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3037if test "$ac_test_CFLAGS" = set; then
3038 CFLAGS=$ac_save_CFLAGS
3039elif test $ac_cv_prog_cc_g = yes; then
3040 if test "$GCC" = yes; then
3041 CFLAGS="-g -O2"
3042 else
3043 CFLAGS="-g"
3044 fi
3045else
3046 if test "$GCC" = yes; then
3047 CFLAGS="-O2"
3048 else
3049 CFLAGS=
3050 fi
3051fi
3052{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3053echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3054if test "${ac_cv_prog_cc_c89+set}" = set; then
3055 echo $ECHO_N "(cached) $ECHO_C" >&6
3056else
3057 ac_cv_prog_cc_c89=no
3058ac_save_CC=$CC
3059cat >conftest.$ac_ext <<_ACEOF
3060/* confdefs.h. */
3061_ACEOF
3062cat confdefs.h >>conftest.$ac_ext
3063cat >>conftest.$ac_ext <<_ACEOF
3064/* end confdefs.h. */
3065#include <stdarg.h>
3066#include <stdio.h>
3067#include <sys/types.h>
3068#include <sys/stat.h>
3069/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3070struct buf { int x; };
3071FILE * (*rcsopen) (struct buf *, struct stat *, int);
3072static char *e (p, i)
3073 char **p;
3074 int i;
3075{
3076 return p[i];
3077}
3078static char *f (char * (*g) (char **, int), char **p, ...)
3079{
3080 char *s;
3081 va_list v;
3082 va_start (v,p);
3083 s = g (p, va_arg (v,int));
3084 va_end (v);
3085 return s;
3086}
3087
3088/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3089 function prototypes and stuff, but not '\xHH' hex character constants.
3090 These don't provoke an error unfortunately, instead are silently treated
3091 as 'x'. The following induces an error, until -std is added to get
3092 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3093 array size at least. It's necessary to write '\x00'==0 to get something
3094 that's true only with -std. */
3095int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3096
3097/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3098 inside strings and character constants. */
3099#define FOO(x) 'x'
3100int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3101
3102int test (int i, double x);
3103struct s1 {int (*f) (int a);};
3104struct s2 {int (*f) (double a);};
3105int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3106int argc;
3107char **argv;
3108int
3109main ()
3110{
3111return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3112 ;
3113 return 0;
3114}
3115_ACEOF
3116for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3117 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3118do
3119 CC="$ac_save_CC $ac_arg"
3120 rm -f conftest.$ac_objext
3121if { (ac_try="$ac_compile"
3122case "(($ac_try" in
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3125esac
3126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3127 (eval "$ac_compile") 2>conftest.er1
3128 ac_status=$?
3129 grep -v '^ *+' conftest.er1 >conftest.err
3130 rm -f conftest.er1
3131 cat conftest.err >&5
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); } &&
3134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3135 { (case "(($ac_try" in
3136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137 *) ac_try_echo=$ac_try;;
3138esac
3139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3140 (eval "$ac_try") 2>&5
3141 ac_status=$?
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); }; } &&
3144 { ac_try='test -s conftest.$ac_objext'
3145 { (case "(($ac_try" in
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3148esac
3149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150 (eval "$ac_try") 2>&5
3151 ac_status=$?
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); }; }; then
3154 ac_cv_prog_cc_c89=$ac_arg
3155else
3156 echo "$as_me: failed program was:" >&5
3157sed 's/^/| /' conftest.$ac_ext >&5
3158
3159
3160fi
3161
3162rm -f core conftest.err conftest.$ac_objext
3163 test "x$ac_cv_prog_cc_c89" != "xno" && break
3164done
3165rm -f conftest.$ac_ext
3166CC=$ac_save_CC
3167
3168fi
3169# AC_CACHE_VAL
3170case "x$ac_cv_prog_cc_c89" in
3171 x)
3172 { echo "$as_me:$LINENO: result: none needed" >&5
3173echo "${ECHO_T}none needed" >&6; } ;;
3174 xno)
3175 { echo "$as_me:$LINENO: result: unsupported" >&5
3176echo "${ECHO_T}unsupported" >&6; } ;;
3177 *)
3178 CC="$CC $ac_cv_prog_cc_c89"
3179 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3180echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3181esac
3182
3183
3184ac_ext=c
3185ac_cpp='$CPP $CPPFLAGS'
3186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3188ac_compiler_gnu=$ac_cv_c_compiler_gnu
3189DEPDIR="${am__leading_dot}deps"
3190
3191ac_config_commands="$ac_config_commands depfiles"
3192
3193
3194am_make=${MAKE-make}
3195cat > confinc << 'END'
3196am__doit:
3197 @echo done
3198.PHONY: am__doit
3199END
3200# If we don't find an include directive, just comment out the code.
3201{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3202echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3203am__include="#"
3204am__quote=
3205_am_result=none
3206# First try GNU make style include.
3207echo "include confinc" > confmf
3208# We grep out `Entering directory' and `Leaving directory'
3209# messages which can occur if `w' ends up in MAKEFLAGS.
3210# In particular we don't look at `^make:' because GNU make might
3211# be invoked under some other name (usually "gmake"), in which
3212# case it prints its new name instead of `make'.
3213if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3214 am__include=include
3215 am__quote=
3216 _am_result=GNU
3217fi
3218# Now try BSD make style include.
3219if test "$am__include" = "#"; then
3220 echo '.include "confinc"' > confmf
3221 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3222 am__include=.include
3223 am__quote="\""
3224 _am_result=BSD
3225 fi
3226fi
3227
3228
3229{ echo "$as_me:$LINENO: result: $_am_result" >&5
3230echo "${ECHO_T}$_am_result" >&6; }
3231rm -f confinc confmf
3232
3233# Check whether --enable-dependency-tracking was given.
3234if test "${enable_dependency_tracking+set}" = set; then
3235 enableval=$enable_dependency_tracking;
3236fi
3237
3238if test "x$enable_dependency_tracking" != xno; then
3239 am_depcomp="$ac_aux_dir/depcomp"
3240 AMDEPBACKSLASH='\'
3241fi
3242
3243
3244if test "x$enable_dependency_tracking" != xno; then
3245 AMDEP_TRUE=
3246 AMDEP_FALSE='#'
3247else
3248 AMDEP_TRUE='#'
3249 AMDEP_FALSE=
3250fi
3251
3252
3253
3254
3255depcc="$CC" am_compiler_list=
3256
3257{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3258echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3259if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3260 echo $ECHO_N "(cached) $ECHO_C" >&6
3261else
3262 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3263 # We make a subdir and do the tests there. Otherwise we can end up
3264 # making bogus files that we don't know about and never remove. For
3265 # instance it was reported that on HP-UX the gcc test will end up
3266 # making a dummy file named `D' -- because `-MD' means `put the output
3267 # in D'.
3268 mkdir conftest.dir
3269 # Copy depcomp to subdir because otherwise we won't find it if we're
3270 # using a relative directory.
3271 cp "$am_depcomp" conftest.dir
3272 cd conftest.dir
3273 # We will build objects and dependencies in a subdirectory because
3274 # it helps to detect inapplicable dependency modes. For instance
3275 # both Tru64's cc and ICC support -MD to output dependencies as a
3276 # side effect of compilation, but ICC will put the dependencies in
3277 # the current directory while Tru64 will put them in the object
3278 # directory.
3279 mkdir sub
3280
3281 am_cv_CC_dependencies_compiler_type=none
3282 if test "$am_compiler_list" = ""; then
3283 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3284 fi
3285 for depmode in $am_compiler_list; do
3286 # Setup a source with many dependencies, because some compilers
3287 # like to wrap large dependency lists on column 80 (with \), and
3288 # we should not choose a depcomp mode which is confused by this.
3289 #
3290 # We need to recreate these files for each test, as the compiler may
3291 # overwrite some of them when testing with obscure command lines.
3292 # This happens at least with the AIX C compiler.
3293 : > sub/conftest.c
3294 for i in 1 2 3 4 5 6; do
3295 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3296 : > sub/conftst$i.h
3297 done
3298 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3299
3300 case $depmode in
3301 nosideeffect)
3302 # after this tag, mechanisms are not by side-effect, so they'll
3303 # only be used when explicitly requested
3304 if test "x$enable_dependency_tracking" = xyes; then
3305 continue
3306 else
3307 break
3308 fi
3309 ;;
3310 none) break ;;
3311 esac
3312 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3313 # mode. It turns out that the SunPro C++ compiler does not properly
3314 # handle `-M -o', and we need to detect this.
3315 if depmode=$depmode \
3316 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3317 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3318 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3319 >/dev/null 2>conftest.err &&
3320 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3321 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3322 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3323 # icc doesn't choke on unknown options, it will just issue warnings
3324 # (even with -Werror). So we grep stderr for any message
3325 # that says an option was ignored.
3326 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3327 am_cv_CC_dependencies_compiler_type=$depmode
3328 break
3329 fi
3330 fi
3331 done
3332
3333 cd ..
3334 rm -rf conftest.dir
3335else
3336 am_cv_CC_dependencies_compiler_type=none
3337fi
3338
3339fi
3340{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3341echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3342CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3343
3344
3345
3346if
3347 test "x$enable_dependency_tracking" != xno \
3348 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3349 am__fastdepCC_TRUE=
3350 am__fastdepCC_FALSE='#'
3351else
3352 am__fastdepCC_TRUE='#'
3353 am__fastdepCC_FALSE=
3354fi
3355
3356
3357
3358ALL_LINGUAS="de"
3359
3360ac_ext=c
3361ac_cpp='$CPP $CPPFLAGS'
3362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3364ac_compiler_gnu=$ac_cv_c_compiler_gnu
3365{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3366echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3367# On Suns, sometimes $CPP names a directory.
3368if test -n "$CPP" && test -d "$CPP"; then
3369 CPP=
3370fi
3371if test -z "$CPP"; then
3372 if test "${ac_cv_prog_CPP+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3374else
3375 # Double quotes because CPP needs to be expanded
3376 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3377 do
3378 ac_preproc_ok=false
3379for ac_c_preproc_warn_flag in '' yes
3380do
3381 # Use a header file that comes with gcc, so configuring glibc
3382 # with a fresh cross-compiler works.
3383 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3384 # <limits.h> exists even on freestanding compilers.
3385 # On the NeXT, cc -E runs the code through the compiler's parser,
3386 # not just through cpp. "Syntax error" is here to catch this case.
3387 cat >conftest.$ac_ext <<_ACEOF
3388/* confdefs.h. */
3389_ACEOF
3390cat confdefs.h >>conftest.$ac_ext
3391cat >>conftest.$ac_ext <<_ACEOF
3392/* end confdefs.h. */
3393#ifdef __STDC__
3394# include <limits.h>
3395#else
3396# include <assert.h>
3397#endif
3398 Syntax error
3399_ACEOF
3400if { (ac_try="$ac_cpp conftest.$ac_ext"
3401case "(($ac_try" in
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3404esac
3405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3407 ac_status=$?
3408 grep -v '^ *+' conftest.er1 >conftest.err
3409 rm -f conftest.er1
3410 cat conftest.err >&5
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); } >/dev/null; then
3413 if test -s conftest.err; then
3414 ac_cpp_err=$ac_c_preproc_warn_flag
3415 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3416 else
3417 ac_cpp_err=
3418 fi
3419else
3420 ac_cpp_err=yes
3421fi
3422if test -z "$ac_cpp_err"; then
3423 :
3424else
3425 echo "$as_me: failed program was:" >&5
3426sed 's/^/| /' conftest.$ac_ext >&5
3427
3428 # Broken: fails on valid input.
3429continue
3430fi
3431
3432rm -f conftest.err conftest.$ac_ext
3433
3434 # OK, works on sane cases. Now check whether nonexistent headers
3435 # can be detected and how.
3436 cat >conftest.$ac_ext <<_ACEOF
3437/* confdefs.h. */
3438_ACEOF
3439cat confdefs.h >>conftest.$ac_ext
3440cat >>conftest.$ac_ext <<_ACEOF
3441/* end confdefs.h. */
3442#include <ac_nonexistent.h>
3443_ACEOF
3444if { (ac_try="$ac_cpp conftest.$ac_ext"
3445case "(($ac_try" in
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3448esac
3449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3451 ac_status=$?
3452 grep -v '^ *+' conftest.er1 >conftest.err
3453 rm -f conftest.er1
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } >/dev/null; then
3457 if test -s conftest.err; then
3458 ac_cpp_err=$ac_c_preproc_warn_flag
3459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3460 else
3461 ac_cpp_err=
3462 fi
3463else
3464 ac_cpp_err=yes
3465fi
3466if test -z "$ac_cpp_err"; then
3467 # Broken: success on invalid input.
3468continue
3469else
3470 echo "$as_me: failed program was:" >&5
3471sed 's/^/| /' conftest.$ac_ext >&5
3472
3473 # Passes both tests.
3474ac_preproc_ok=:
3475break
3476fi
3477
3478rm -f conftest.err conftest.$ac_ext
3479
3480done
3481# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3482rm -f conftest.err conftest.$ac_ext
3483if $ac_preproc_ok; then
3484 break
3485fi
3486
3487 done
3488 ac_cv_prog_CPP=$CPP
3489
3490fi
3491 CPP=$ac_cv_prog_CPP
3492else
3493 ac_cv_prog_CPP=$CPP
3494fi
3495{ echo "$as_me:$LINENO: result: $CPP" >&5
3496echo "${ECHO_T}$CPP" >&6; }
3497ac_preproc_ok=false
3498for ac_c_preproc_warn_flag in '' yes
3499do
3500 # Use a header file that comes with gcc, so configuring glibc
3501 # with a fresh cross-compiler works.
3502 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3503 # <limits.h> exists even on freestanding compilers.
3504 # On the NeXT, cc -E runs the code through the compiler's parser,
3505 # not just through cpp. "Syntax error" is here to catch this case.
3506 cat >conftest.$ac_ext <<_ACEOF
3507/* confdefs.h. */
3508_ACEOF
3509cat confdefs.h >>conftest.$ac_ext
3510cat >>conftest.$ac_ext <<_ACEOF
3511/* end confdefs.h. */
3512#ifdef __STDC__
3513# include <limits.h>
3514#else
3515# include <assert.h>
3516#endif
3517 Syntax error
3518_ACEOF
3519if { (ac_try="$ac_cpp conftest.$ac_ext"
3520case "(($ac_try" in
3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3523esac
3524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3526 ac_status=$?
3527 grep -v '^ *+' conftest.er1 >conftest.err
3528 rm -f conftest.er1
3529 cat conftest.err >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } >/dev/null; then
3532 if test -s conftest.err; then
3533 ac_cpp_err=$ac_c_preproc_warn_flag
3534 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3535 else
3536 ac_cpp_err=
3537 fi
3538else
3539 ac_cpp_err=yes
3540fi
3541if test -z "$ac_cpp_err"; then
3542 :
3543else
3544 echo "$as_me: failed program was:" >&5
3545sed 's/^/| /' conftest.$ac_ext >&5
3546
3547 # Broken: fails on valid input.
3548continue
3549fi
3550
3551rm -f conftest.err conftest.$ac_ext
3552
3553 # OK, works on sane cases. Now check whether nonexistent headers
3554 # can be detected and how.
3555 cat >conftest.$ac_ext <<_ACEOF
3556/* confdefs.h. */
3557_ACEOF
3558cat confdefs.h >>conftest.$ac_ext
3559cat >>conftest.$ac_ext <<_ACEOF
3560/* end confdefs.h. */
3561#include <ac_nonexistent.h>
3562_ACEOF
3563if { (ac_try="$ac_cpp conftest.$ac_ext"
3564case "(($ac_try" in
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3567esac
3568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3570 ac_status=$?
3571 grep -v '^ *+' conftest.er1 >conftest.err
3572 rm -f conftest.er1
3573 cat conftest.err >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); } >/dev/null; then
3576 if test -s conftest.err; then
3577 ac_cpp_err=$ac_c_preproc_warn_flag
3578 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3579 else
3580 ac_cpp_err=
3581 fi
3582else
3583 ac_cpp_err=yes
3584fi
3585if test -z "$ac_cpp_err"; then
3586 # Broken: success on invalid input.
3587continue
3588else
3589 echo "$as_me: failed program was:" >&5
3590sed 's/^/| /' conftest.$ac_ext >&5
3591
3592 # Passes both tests.
3593ac_preproc_ok=:
3594break
3595fi
3596
3597rm -f conftest.err conftest.$ac_ext
3598
3599done
3600# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3601rm -f conftest.err conftest.$ac_ext
3602if $ac_preproc_ok; then
3603 :
3604else
3605 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3606See \`config.log' for more details." >&5
3607echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3608See \`config.log' for more details." >&2;}
3609 { (exit 1); exit 1; }; }
3610fi
3611
3612ac_ext=c
3613ac_cpp='$CPP $CPPFLAGS'
3614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3616ac_compiler_gnu=$ac_cv_c_compiler_gnu
3617
3618
3619{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3620echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3621if test "${ac_cv_path_GREP+set}" = set; then
3622 echo $ECHO_N "(cached) $ECHO_C" >&6
3623else
3624 # Extract the first word of "grep ggrep" to use in msg output
3625if test -z "$GREP"; then
3626set dummy grep ggrep; ac_prog_name=$2
3627if test "${ac_cv_path_GREP+set}" = set; then
3628 echo $ECHO_N "(cached) $ECHO_C" >&6
3629else
3630 ac_path_GREP_found=false
3631# Loop through the user's path and test for each of PROGNAME-LIST
3632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3634do
3635 IFS=$as_save_IFS
3636 test -z "$as_dir" && as_dir=.
3637 for ac_prog in grep ggrep; do
3638 for ac_exec_ext in '' $ac_executable_extensions; do
3639 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3640 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3641 # Check for GNU ac_path_GREP and select it if it is found.
3642 # Check for GNU $ac_path_GREP
3643case `"$ac_path_GREP" --version 2>&1` in
3644*GNU*)
3645 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3646*)
3647 ac_count=0
3648 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3649 while :
3650 do
3651 cat "conftest.in" "conftest.in" >"conftest.tmp"
3652 mv "conftest.tmp" "conftest.in"
3653 cp "conftest.in" "conftest.nl"
3654 echo 'GREP' >> "conftest.nl"
3655 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3656 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3657 ac_count=`expr $ac_count + 1`
3658 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3659 # Best one so far, save it but keep looking for a better one
3660 ac_cv_path_GREP="$ac_path_GREP"
3661 ac_path_GREP_max=$ac_count
3662 fi
3663 # 10*(2^10) chars as input seems more than enough
3664 test $ac_count -gt 10 && break
3665 done
3666 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3667esac
3668
3669
3670 $ac_path_GREP_found && break 3
3671 done
3672done
3673
3674done
3675IFS=$as_save_IFS
3676
3677
3678fi
3679
3680GREP="$ac_cv_path_GREP"
3681if test -z "$GREP"; then
3682 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3683echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3684 { (exit 1); exit 1; }; }
3685fi
3686
3687else
3688 ac_cv_path_GREP=$GREP
3689fi
3690
3691
3692fi
3693{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3694echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3695 GREP="$ac_cv_path_GREP"
3696
3697
3698{ echo "$as_me:$LINENO: checking for egrep" >&5
3699echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3700if test "${ac_cv_path_EGREP+set}" = set; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6
3702else
3703 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3704 then ac_cv_path_EGREP="$GREP -E"
3705 else
3706 # Extract the first word of "egrep" to use in msg output
3707if test -z "$EGREP"; then
3708set dummy egrep; ac_prog_name=$2
3709if test "${ac_cv_path_EGREP+set}" = set; then
3710 echo $ECHO_N "(cached) $ECHO_C" >&6
3711else
3712 ac_path_EGREP_found=false
3713# Loop through the user's path and test for each of PROGNAME-LIST
3714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3716do
3717 IFS=$as_save_IFS
3718 test -z "$as_dir" && as_dir=.
3719 for ac_prog in egrep; do
3720 for ac_exec_ext in '' $ac_executable_extensions; do
3721 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3722 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3723 # Check for GNU ac_path_EGREP and select it if it is found.
3724 # Check for GNU $ac_path_EGREP
3725case `"$ac_path_EGREP" --version 2>&1` in
3726*GNU*)
3727 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3728*)
3729 ac_count=0
3730 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3731 while :
3732 do
3733 cat "conftest.in" "conftest.in" >"conftest.tmp"
3734 mv "conftest.tmp" "conftest.in"
3735 cp "conftest.in" "conftest.nl"
3736 echo 'EGREP' >> "conftest.nl"
3737 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3738 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3739 ac_count=`expr $ac_count + 1`
3740 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3741 # Best one so far, save it but keep looking for a better one
3742 ac_cv_path_EGREP="$ac_path_EGREP"
3743 ac_path_EGREP_max=$ac_count
3744 fi
3745 # 10*(2^10) chars as input seems more than enough
3746 test $ac_count -gt 10 && break
3747 done
3748 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3749esac
3750
3751
3752 $ac_path_EGREP_found && break 3
3753 done
3754done
3755
3756done
3757IFS=$as_save_IFS
3758
3759
3760fi
3761
3762EGREP="$ac_cv_path_EGREP"
3763if test -z "$EGREP"; then
3764 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3765echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3766 { (exit 1); exit 1; }; }
3767fi
3768
3769else
3770 ac_cv_path_EGREP=$EGREP
3771fi
3772
3773
3774 fi
3775fi
3776{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3777echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3778 EGREP="$ac_cv_path_EGREP"
3779
3780
3781{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3782echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3783if test "${ac_cv_header_stdc+set}" = set; then
3784 echo $ECHO_N "(cached) $ECHO_C" >&6
3785else
3786 cat >conftest.$ac_ext <<_ACEOF
3787/* confdefs.h. */
3788_ACEOF
3789cat confdefs.h >>conftest.$ac_ext
3790cat >>conftest.$ac_ext <<_ACEOF
3791/* end confdefs.h. */
3792#include <stdlib.h>
3793#include <stdarg.h>
3794#include <string.h>
3795#include <float.h>
3796
3797int
3798main ()
3799{
3800
3801 ;
3802 return 0;
3803}
3804_ACEOF
3805rm -f conftest.$ac_objext
3806if { (ac_try="$ac_compile"
3807case "(($ac_try" in
3808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3809 *) ac_try_echo=$ac_try;;
3810esac
3811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3812 (eval "$ac_compile") 2>conftest.er1
3813 ac_status=$?
3814 grep -v '^ *+' conftest.er1 >conftest.err
3815 rm -f conftest.er1
3816 cat conftest.err >&5
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } &&
3819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3820 { (case "(($ac_try" in
3821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822 *) ac_try_echo=$ac_try;;
3823esac
3824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3825 (eval "$ac_try") 2>&5
3826 ac_status=$?
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); }; } &&
3829 { ac_try='test -s conftest.$ac_objext'
3830 { (case "(($ac_try" in
3831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3832 *) ac_try_echo=$ac_try;;
3833esac
3834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3835 (eval "$ac_try") 2>&5
3836 ac_status=$?
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); }; }; then
3839 ac_cv_header_stdc=yes
3840else
3841 echo "$as_me: failed program was:" >&5
3842sed 's/^/| /' conftest.$ac_ext >&5
3843
3844 ac_cv_header_stdc=no
3845fi
3846
3847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3848
3849if test $ac_cv_header_stdc = yes; then
3850 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3851 cat >conftest.$ac_ext <<_ACEOF
3852/* confdefs.h. */
3853_ACEOF
3854cat confdefs.h >>conftest.$ac_ext
3855cat >>conftest.$ac_ext <<_ACEOF
3856/* end confdefs.h. */
3857#include <string.h>
3858
3859_ACEOF
3860if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3861 $EGREP "memchr" >/dev/null 2>&1; then
3862 :
3863else
3864 ac_cv_header_stdc=no
3865fi
3866rm -f conftest*
3867
3868fi
3869
3870if test $ac_cv_header_stdc = yes; then
3871 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3872 cat >conftest.$ac_ext <<_ACEOF
3873/* confdefs.h. */
3874_ACEOF
3875cat confdefs.h >>conftest.$ac_ext
3876cat >>conftest.$ac_ext <<_ACEOF
3877/* end confdefs.h. */
3878#include <stdlib.h>
3879
3880_ACEOF
3881if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3882 $EGREP "free" >/dev/null 2>&1; then
3883 :
3884else
3885 ac_cv_header_stdc=no
3886fi
3887rm -f conftest*
3888
3889fi
3890
3891if test $ac_cv_header_stdc = yes; then
3892 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3893 if test "$cross_compiling" = yes; then
3894 :
3895else
3896 cat >conftest.$ac_ext <<_ACEOF
3897/* confdefs.h. */
3898_ACEOF
3899cat confdefs.h >>conftest.$ac_ext
3900cat >>conftest.$ac_ext <<_ACEOF
3901/* end confdefs.h. */
3902#include <ctype.h>
3903#include <stdlib.h>
3904#if ((' ' & 0x0FF) == 0x020)
3905# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3906# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3907#else
3908# define ISLOWER(c) \
3909 (('a' <= (c) && (c) <= 'i') \
3910 || ('j' <= (c) && (c) <= 'r') \
3911 || ('s' <= (c) && (c) <= 'z'))
3912# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3913#endif
3914
3915#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3916int
3917main ()
3918{
3919 int i;
3920 for (i = 0; i < 256; i++)
3921 if (XOR (islower (i), ISLOWER (i))
3922 || toupper (i) != TOUPPER (i))
3923 return 2;
3924 return 0;
3925}
3926_ACEOF
3927rm -f conftest$ac_exeext
3928if { (ac_try="$ac_link"
3929case "(($ac_try" in
3930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3931 *) ac_try_echo=$ac_try;;
3932esac
3933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3934 (eval "$ac_link") 2>&5
3935 ac_status=$?
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3938 { (case "(($ac_try" in
3939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3940 *) ac_try_echo=$ac_try;;
3941esac
3942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3943 (eval "$ac_try") 2>&5
3944 ac_status=$?
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); }; }; then
3947 :
3948else
3949 echo "$as_me: program exited with status $ac_status" >&5
3950echo "$as_me: failed program was:" >&5
3951sed 's/^/| /' conftest.$ac_ext >&5
3952
3953( exit $ac_status )
3954ac_cv_header_stdc=no
3955fi
3956rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3957fi
3958
3959
3960fi
3961fi
3962{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3963echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3964if test $ac_cv_header_stdc = yes; then
3965
3966cat >>confdefs.h <<\_ACEOF
3967#define STDC_HEADERS 1
3968_ACEOF
3969
3970fi
3971
3972# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3983 inttypes.h stdint.h unistd.h
3984do
3985as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3986{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3987echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3988if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3989 echo $ECHO_N "(cached) $ECHO_C" >&6
3990else
3991 cat >conftest.$ac_ext <<_ACEOF
3992/* confdefs.h. */
3993_ACEOF
3994cat confdefs.h >>conftest.$ac_ext
3995cat >>conftest.$ac_ext <<_ACEOF
3996/* end confdefs.h. */
3997$ac_includes_default
3998
3999#include <$ac_header>
4000_ACEOF
4001rm -f conftest.$ac_objext
4002if { (ac_try="$ac_compile"
4003case "(($ac_try" in
4004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4005 *) ac_try_echo=$ac_try;;
4006esac
4007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4008 (eval "$ac_compile") 2>conftest.er1
4009 ac_status=$?
4010 grep -v '^ *+' conftest.er1 >conftest.err
4011 rm -f conftest.er1
4012 cat conftest.err >&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); } &&
4015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4016 { (case "(($ac_try" in
4017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4018 *) ac_try_echo=$ac_try;;
4019esac
4020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4021 (eval "$ac_try") 2>&5
4022 ac_status=$?
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); }; } &&
4025 { ac_try='test -s conftest.$ac_objext'
4026 { (case "(($ac_try" in
4027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4028 *) ac_try_echo=$ac_try;;
4029esac
4030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4031 (eval "$ac_try") 2>&5
4032 ac_status=$?
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); }; }; then
4035 eval "$as_ac_Header=yes"
4036else
4037 echo "$as_me: failed program was:" >&5
4038sed 's/^/| /' conftest.$ac_ext >&5
4039
4040 eval "$as_ac_Header=no"
4041fi
4042
4043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4044fi
4045ac_res=`eval echo '${'$as_ac_Header'}'`
4046 { echo "$as_me:$LINENO: result: $ac_res" >&5
4047echo "${ECHO_T}$ac_res" >&6; }
4048if test `eval echo '${'$as_ac_Header'}'` = yes; then
4049 cat >>confdefs.h <<_ACEOF
4050#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4051_ACEOF
4052
4053fi
4054
4055done
4056
4057
4058
4059
4060for ac_header in locale.h
4061do
4062as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4063if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4064 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4065echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4066if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4067 echo $ECHO_N "(cached) $ECHO_C" >&6
4068fi
4069ac_res=`eval echo '${'$as_ac_Header'}'`
4070 { echo "$as_me:$LINENO: result: $ac_res" >&5
4071echo "${ECHO_T}$ac_res" >&6; }
4072else
4073 # Is the header compilable?
4074{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4075echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4076cat >conftest.$ac_ext <<_ACEOF
4077/* confdefs.h. */
4078_ACEOF
4079cat confdefs.h >>conftest.$ac_ext
4080cat >>conftest.$ac_ext <<_ACEOF
4081/* end confdefs.h. */
4082$ac_includes_default
4083#include <$ac_header>
4084_ACEOF
4085rm -f conftest.$ac_objext
4086if { (ac_try="$ac_compile"
4087case "(($ac_try" in
4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4090esac
4091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4092 (eval "$ac_compile") 2>conftest.er1
4093 ac_status=$?
4094 grep -v '^ *+' conftest.er1 >conftest.err
4095 rm -f conftest.er1
4096 cat conftest.err >&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); } &&
4099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4100 { (case "(($ac_try" in
4101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4102 *) ac_try_echo=$ac_try;;
4103esac
4104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4105 (eval "$ac_try") 2>&5
4106 ac_status=$?
4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); }; } &&
4109 { ac_try='test -s conftest.$ac_objext'
4110 { (case "(($ac_try" in
4111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4112 *) ac_try_echo=$ac_try;;
4113esac
4114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4115 (eval "$ac_try") 2>&5
4116 ac_status=$?
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); }; }; then
4119 ac_header_compiler=yes
4120else
4121 echo "$as_me: failed program was:" >&5
4122sed 's/^/| /' conftest.$ac_ext >&5
4123
4124 ac_header_compiler=no
4125fi
4126
4127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4128{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4129echo "${ECHO_T}$ac_header_compiler" >&6; }
4130
4131# Is the header present?
4132{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4133echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4134cat >conftest.$ac_ext <<_ACEOF
4135/* confdefs.h. */
4136_ACEOF
4137cat confdefs.h >>conftest.$ac_ext
4138cat >>conftest.$ac_ext <<_ACEOF
4139/* end confdefs.h. */
4140#include <$ac_header>
4141_ACEOF
4142if { (ac_try="$ac_cpp conftest.$ac_ext"
4143case "(($ac_try" in
4144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145 *) ac_try_echo=$ac_try;;
4146esac
4147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4148 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4149 ac_status=$?
4150 grep -v '^ *+' conftest.er1 >conftest.err
4151 rm -f conftest.er1
4152 cat conftest.err >&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); } >/dev/null; then
4155 if test -s conftest.err; then
4156 ac_cpp_err=$ac_c_preproc_warn_flag
4157 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4158 else
4159 ac_cpp_err=
4160 fi
4161else
4162 ac_cpp_err=yes
4163fi
4164if test -z "$ac_cpp_err"; then
4165 ac_header_preproc=yes
4166else
4167 echo "$as_me: failed program was:" >&5
4168sed 's/^/| /' conftest.$ac_ext >&5
4169
4170 ac_header_preproc=no
4171fi
4172
4173rm -f conftest.err conftest.$ac_ext
4174{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4175echo "${ECHO_T}$ac_header_preproc" >&6; }
4176
4177# So? What about this header?
4178case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4179 yes:no: )
4180 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4181echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4183echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4184 ac_header_preproc=yes
4185 ;;
4186 no:yes:* )
4187 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4188echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4189 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4190echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4191 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4192echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4193 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4194echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4196echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4197 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4198echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4199
4200 ;;
4201esac
4202{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4203echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4204if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4205 echo $ECHO_N "(cached) $ECHO_C" >&6
4206else
4207 eval "$as_ac_Header=\$ac_header_preproc"
4208fi
4209ac_res=`eval echo '${'$as_ac_Header'}'`
4210 { echo "$as_me:$LINENO: result: $ac_res" >&5
4211echo "${ECHO_T}$ac_res" >&6; }
4212
4213fi
4214if test `eval echo '${'$as_ac_Header'}'` = yes; then
4215 cat >>confdefs.h <<_ACEOF
4216#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4217_ACEOF
4218
4219fi
4220
4221done
4222
4223 if test $ac_cv_header_locale_h = yes; then
4224 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4225echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
4226if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4227 echo $ECHO_N "(cached) $ECHO_C" >&6
4228else
4229 cat >conftest.$ac_ext <<_ACEOF
4230/* confdefs.h. */
4231_ACEOF
4232cat confdefs.h >>conftest.$ac_ext
4233cat >>conftest.$ac_ext <<_ACEOF
4234/* end confdefs.h. */
4235#include <locale.h>
4236int
4237main ()
4238{
4239return LC_MESSAGES
4240 ;
4241 return 0;
4242}
4243_ACEOF
4244rm -f conftest.$ac_objext conftest$ac_exeext
4245if { (ac_try="$ac_link"
4246case "(($ac_try" in
4247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4248 *) ac_try_echo=$ac_try;;
4249esac
4250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4251 (eval "$ac_link") 2>conftest.er1
4252 ac_status=$?
4253 grep -v '^ *+' conftest.er1 >conftest.err
4254 rm -f conftest.er1
4255 cat conftest.err >&5
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); } &&
4258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4259 { (case "(($ac_try" in
4260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261 *) ac_try_echo=$ac_try;;
4262esac
4263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4264 (eval "$ac_try") 2>&5
4265 ac_status=$?
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); }; } &&
4268 { ac_try='test -s conftest$ac_exeext'
4269 { (case "(($ac_try" in
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4272esac
4273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274 (eval "$ac_try") 2>&5
4275 ac_status=$?
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }; }; then
4278 am_cv_val_LC_MESSAGES=yes
4279else
4280 echo "$as_me: failed program was:" >&5
4281sed 's/^/| /' conftest.$ac_ext >&5
4282
4283 am_cv_val_LC_MESSAGES=no
4284fi
4285
4286rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4287 conftest$ac_exeext conftest.$ac_ext
4288fi
4289{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4290echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
4291 if test $am_cv_val_LC_MESSAGES = yes; then
4292
4293cat >>confdefs.h <<\_ACEOF
4294#define HAVE_LC_MESSAGES 1
4295_ACEOF
4296
4297 fi
4298 fi
4299 USE_NLS=yes
4300
4301
4302 gt_cv_have_gettext=no
4303
4304 CATOBJEXT=NONE
4305 XGETTEXT=:
4306 INTLLIBS=
4307
4308 if test "${ac_cv_header_libintl_h+set}" = set; then
4309 { echo "$as_me:$LINENO: checking for libintl.h" >&5
4310echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
4311if test "${ac_cv_header_libintl_h+set}" = set; then
4312 echo $ECHO_N "(cached) $ECHO_C" >&6
4313fi
4314{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4315echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
4316else
4317 # Is the header compilable?
4318{ echo "$as_me:$LINENO: checking libintl.h usability" >&5
4319echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
4320cat >conftest.$ac_ext <<_ACEOF
4321/* confdefs.h. */
4322_ACEOF
4323cat confdefs.h >>conftest.$ac_ext
4324cat >>conftest.$ac_ext <<_ACEOF
4325/* end confdefs.h. */
4326$ac_includes_default
4327#include <libintl.h>
4328_ACEOF
4329rm -f conftest.$ac_objext
4330if { (ac_try="$ac_compile"
4331case "(($ac_try" in
4332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333 *) ac_try_echo=$ac_try;;
4334esac
4335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4336 (eval "$ac_compile") 2>conftest.er1
4337 ac_status=$?
4338 grep -v '^ *+' conftest.er1 >conftest.err
4339 rm -f conftest.er1
4340 cat conftest.err >&5
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); } &&
4343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4344 { (case "(($ac_try" in
4345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4346 *) ac_try_echo=$ac_try;;
4347esac
4348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4349 (eval "$ac_try") 2>&5
4350 ac_status=$?
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); }; } &&
4353 { ac_try='test -s conftest.$ac_objext'
4354 { (case "(($ac_try" in
4355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356 *) ac_try_echo=$ac_try;;
4357esac
4358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4359 (eval "$ac_try") 2>&5
4360 ac_status=$?
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; }; then
4363 ac_header_compiler=yes
4364else
4365 echo "$as_me: failed program was:" >&5
4366sed 's/^/| /' conftest.$ac_ext >&5
4367
4368 ac_header_compiler=no
4369fi
4370
4371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4372{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4373echo "${ECHO_T}$ac_header_compiler" >&6; }
4374
4375# Is the header present?
4376{ echo "$as_me:$LINENO: checking libintl.h presence" >&5
4377echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
4378cat >conftest.$ac_ext <<_ACEOF
4379/* confdefs.h. */
4380_ACEOF
4381cat confdefs.h >>conftest.$ac_ext
4382cat >>conftest.$ac_ext <<_ACEOF
4383/* end confdefs.h. */
4384#include <libintl.h>
4385_ACEOF
4386if { (ac_try="$ac_cpp conftest.$ac_ext"
4387case "(($ac_try" in
4388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389 *) ac_try_echo=$ac_try;;
4390esac
4391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4392 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4393 ac_status=$?
4394 grep -v '^ *+' conftest.er1 >conftest.err
4395 rm -f conftest.er1
4396 cat conftest.err >&5
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); } >/dev/null; then
4399 if test -s conftest.err; then
4400 ac_cpp_err=$ac_c_preproc_warn_flag
4401 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4402 else
4403 ac_cpp_err=
4404 fi
4405else
4406 ac_cpp_err=yes
4407fi
4408if test -z "$ac_cpp_err"; then
4409 ac_header_preproc=yes
4410else
4411 echo "$as_me: failed program was:" >&5
4412sed 's/^/| /' conftest.$ac_ext >&5
4413
4414 ac_header_preproc=no
4415fi
4416
4417rm -f conftest.err conftest.$ac_ext
4418{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4419echo "${ECHO_T}$ac_header_preproc" >&6; }
4420
4421# So? What about this header?
4422case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4423 yes:no: )
4424 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4425echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4426 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
4427echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
4428 ac_header_preproc=yes
4429 ;;
4430 no:yes:* )
4431 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
4432echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
4433 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
4434echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
4435 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
4436echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
4437 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
4438echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
4439 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4440echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
4441 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
4442echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
4443
4444 ;;
4445esac
4446{ echo "$as_me:$LINENO: checking for libintl.h" >&5
4447echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
4448if test "${ac_cv_header_libintl_h+set}" = set; then
4449 echo $ECHO_N "(cached) $ECHO_C" >&6
4450else
4451 ac_cv_header_libintl_h=$ac_header_preproc
4452fi
4453{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4454echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
4455
4456fi
4457if test $ac_cv_header_libintl_h = yes; then
4458 gt_cv_func_dgettext_libintl="no"
4459 libintl_extra_libs=""
4460
4461 #
4462 # First check in libc
4463 #
4464 { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
4465echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
4466if test "${gt_cv_func_ngettext_libc+set}" = set; then
4467 echo $ECHO_N "(cached) $ECHO_C" >&6
4468else
4469 cat >conftest.$ac_ext <<_ACEOF
4470/* confdefs.h. */
4471_ACEOF
4472cat confdefs.h >>conftest.$ac_ext
4473cat >>conftest.$ac_ext <<_ACEOF
4474/* end confdefs.h. */
4475
4476#include <libintl.h>
4477
4478int
4479main ()
4480{
4481return !ngettext ("","", 1)
4482 ;
4483 return 0;
4484}
4485_ACEOF
4486rm -f conftest.$ac_objext conftest$ac_exeext
4487if { (ac_try="$ac_link"
4488case "(($ac_try" in
4489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490 *) ac_try_echo=$ac_try;;
4491esac
4492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4493 (eval "$ac_link") 2>conftest.er1
4494 ac_status=$?
4495 grep -v '^ *+' conftest.er1 >conftest.err
4496 rm -f conftest.er1
4497 cat conftest.err >&5
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); } &&
4500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4501 { (case "(($ac_try" in
4502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4503 *) ac_try_echo=$ac_try;;
4504esac
4505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4506 (eval "$ac_try") 2>&5
4507 ac_status=$?
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); }; } &&
4510 { ac_try='test -s conftest$ac_exeext'
4511 { (case "(($ac_try" in
4512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4513 *) ac_try_echo=$ac_try;;
4514esac
4515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4516 (eval "$ac_try") 2>&5
4517 ac_status=$?
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); }; }; then
4520 gt_cv_func_ngettext_libc=yes
4521else
4522 echo "$as_me: failed program was:" >&5
4523sed 's/^/| /' conftest.$ac_ext >&5
4524
4525 gt_cv_func_ngettext_libc=no
4526fi
4527
4528rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4529 conftest$ac_exeext conftest.$ac_ext
4530
4531fi
4532{ echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
4533echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
4534
4535 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
4536 { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
4537echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
4538if test "${gt_cv_func_dgettext_libc+set}" = set; then
4539 echo $ECHO_N "(cached) $ECHO_C" >&6
4540else
4541 cat >conftest.$ac_ext <<_ACEOF
4542/* confdefs.h. */
4543_ACEOF
4544cat confdefs.h >>conftest.$ac_ext
4545cat >>conftest.$ac_ext <<_ACEOF
4546/* end confdefs.h. */
4547
4548#include <libintl.h>
4549
4550int
4551main ()
4552{
4553return !dgettext ("","")
4554 ;
4555 return 0;
4556}
4557_ACEOF
4558rm -f conftest.$ac_objext conftest$ac_exeext
4559if { (ac_try="$ac_link"
4560case "(($ac_try" in
4561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4562 *) ac_try_echo=$ac_try;;
4563esac
4564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4565 (eval "$ac_link") 2>conftest.er1
4566 ac_status=$?
4567 grep -v '^ *+' conftest.er1 >conftest.err
4568 rm -f conftest.er1
4569 cat conftest.err >&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); } &&
4572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4573 { (case "(($ac_try" in
4574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4575 *) ac_try_echo=$ac_try;;
4576esac
4577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4578 (eval "$ac_try") 2>&5
4579 ac_status=$?
4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); }; } &&
4582 { ac_try='test -s conftest$ac_exeext'
4583 { (case "(($ac_try" in
4584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4585 *) ac_try_echo=$ac_try;;
4586esac
4587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4588 (eval "$ac_try") 2>&5
4589 ac_status=$?
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); }; }; then
4592 gt_cv_func_dgettext_libc=yes
4593else
4594 echo "$as_me: failed program was:" >&5
4595sed 's/^/| /' conftest.$ac_ext >&5
4596
4597 gt_cv_func_dgettext_libc=no
4598fi
4599
4600rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4601 conftest$ac_exeext conftest.$ac_ext
4602
4603fi
4604{ echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
4605echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
4606 fi
4607
4608 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
4609
4610for ac_func in bind_textdomain_codeset
4611do
4612as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4613{ echo "$as_me:$LINENO: checking for $ac_func" >&5
4614echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4615if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4616 echo $ECHO_N "(cached) $ECHO_C" >&6
4617else
4618 cat >conftest.$ac_ext <<_ACEOF
4619/* confdefs.h. */
4620_ACEOF
4621cat confdefs.h >>conftest.$ac_ext
4622cat >>conftest.$ac_ext <<_ACEOF
4623/* end confdefs.h. */
4624/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4626#define $ac_func innocuous_$ac_func
4627
4628/* System header to define __stub macros and hopefully few prototypes,
4629 which can conflict with char $ac_func (); below.
4630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4631 <limits.h> exists even on freestanding compilers. */
4632
4633#ifdef __STDC__
4634# include <limits.h>
4635#else
4636# include <assert.h>
4637#endif
4638
4639#undef $ac_func
4640
4641/* Override any GCC internal prototype to avoid an error.
4642 Use char because int might match the return type of a GCC
4643 builtin and then its argument prototype would still apply. */
4644#ifdef __cplusplus
4645extern "C"
4646#endif
4647char $ac_func ();
4648/* The GNU C library defines this for functions which it implements
4649 to always fail with ENOSYS. Some functions are actually named
4650 something starting with __ and the normal name is an alias. */
4651#if defined __stub_$ac_func || defined __stub___$ac_func
4652choke me
4653#endif
4654
4655int
4656main ()
4657{
4658return $ac_func ();
4659 ;
4660 return 0;
4661}
4662_ACEOF
4663rm -f conftest.$ac_objext conftest$ac_exeext
4664if { (ac_try="$ac_link"
4665case "(($ac_try" in
4666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667 *) ac_try_echo=$ac_try;;
4668esac
4669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4670 (eval "$ac_link") 2>conftest.er1
4671 ac_status=$?
4672 grep -v '^ *+' conftest.er1 >conftest.err
4673 rm -f conftest.er1
4674 cat conftest.err >&5
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); } &&
4677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4678 { (case "(($ac_try" in
4679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680 *) ac_try_echo=$ac_try;;
4681esac
4682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4683 (eval "$ac_try") 2>&5
4684 ac_status=$?
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); }; } &&
4687 { ac_try='test -s conftest$ac_exeext'
4688 { (case "(($ac_try" in
4689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4690 *) ac_try_echo=$ac_try;;
4691esac
4692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4693 (eval "$ac_try") 2>&5
4694 ac_status=$?
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); }; }; then
4697 eval "$as_ac_var=yes"
4698else
4699 echo "$as_me: failed program was:" >&5
4700sed 's/^/| /' conftest.$ac_ext >&5
4701
4702 eval "$as_ac_var=no"
4703fi
4704
4705rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4706 conftest$ac_exeext conftest.$ac_ext
4707fi
4708ac_res=`eval echo '${'$as_ac_var'}'`
4709 { echo "$as_me:$LINENO: result: $ac_res" >&5
4710echo "${ECHO_T}$ac_res" >&6; }
4711if test `eval echo '${'$as_ac_var'}'` = yes; then
4712 cat >>confdefs.h <<_ACEOF
4713#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4714_ACEOF
4715
4716fi
4717done
4718
4719 fi
4720
4721 #
4722 # If we don't have everything we want, check in libintl
4723 #
4724 if test "$gt_cv_func_dgettext_libc" != "yes" \
4725 || test "$gt_cv_func_ngettext_libc" != "yes" \
4726 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
4727
4728 { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
4729echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
4730if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
4731 echo $ECHO_N "(cached) $ECHO_C" >&6
4732else
4733 ac_check_lib_save_LIBS=$LIBS
4734LIBS="-lintl $LIBS"
4735cat >conftest.$ac_ext <<_ACEOF
4736/* confdefs.h. */
4737_ACEOF
4738cat confdefs.h >>conftest.$ac_ext
4739cat >>conftest.$ac_ext <<_ACEOF
4740/* end confdefs.h. */
4741
4742/* Override any GCC internal prototype to avoid an error.
4743 Use char because int might match the return type of a GCC
4744 builtin and then its argument prototype would still apply. */
4745#ifdef __cplusplus
4746extern "C"
4747#endif
4748char bindtextdomain ();
4749int
4750main ()
4751{
4752return bindtextdomain ();
4753 ;
4754 return 0;
4755}
4756_ACEOF
4757rm -f conftest.$ac_objext conftest$ac_exeext
4758if { (ac_try="$ac_link"
4759case "(($ac_try" in
4760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4761 *) ac_try_echo=$ac_try;;
4762esac
4763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4764 (eval "$ac_link") 2>conftest.er1
4765 ac_status=$?
4766 grep -v '^ *+' conftest.er1 >conftest.err
4767 rm -f conftest.er1
4768 cat conftest.err >&5
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); } &&
4771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4772 { (case "(($ac_try" in
4773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4774 *) ac_try_echo=$ac_try;;
4775esac
4776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4777 (eval "$ac_try") 2>&5
4778 ac_status=$?
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); }; } &&
4781 { ac_try='test -s conftest$ac_exeext'
4782 { (case "(($ac_try" in
4783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4784 *) ac_try_echo=$ac_try;;
4785esac
4786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4787 (eval "$ac_try") 2>&5
4788 ac_status=$?
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); }; }; then
4791 ac_cv_lib_intl_bindtextdomain=yes
4792else
4793 echo "$as_me: failed program was:" >&5
4794sed 's/^/| /' conftest.$ac_ext >&5
4795
4796 ac_cv_lib_intl_bindtextdomain=no
4797fi
4798
4799rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4800 conftest$ac_exeext conftest.$ac_ext
4801LIBS=$ac_check_lib_save_LIBS
4802fi
4803{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
4804echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
4805if test $ac_cv_lib_intl_bindtextdomain = yes; then
4806 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
4807echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
4808if test "${ac_cv_lib_intl_ngettext+set}" = set; then
4809 echo $ECHO_N "(cached) $ECHO_C" >&6
4810else
4811 ac_check_lib_save_LIBS=$LIBS
4812LIBS="-lintl $LIBS"
4813cat >conftest.$ac_ext <<_ACEOF
4814/* confdefs.h. */
4815_ACEOF
4816cat confdefs.h >>conftest.$ac_ext
4817cat >>conftest.$ac_ext <<_ACEOF
4818/* end confdefs.h. */
4819
4820/* Override any GCC internal prototype to avoid an error.
4821 Use char because int might match the return type of a GCC
4822 builtin and then its argument prototype would still apply. */
4823#ifdef __cplusplus
4824extern "C"
4825#endif
4826char ngettext ();
4827int
4828main ()
4829{
4830return ngettext ();
4831 ;
4832 return 0;
4833}
4834_ACEOF
4835rm -f conftest.$ac_objext conftest$ac_exeext
4836if { (ac_try="$ac_link"
4837case "(($ac_try" in
4838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4839 *) ac_try_echo=$ac_try;;
4840esac
4841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4842 (eval "$ac_link") 2>conftest.er1
4843 ac_status=$?
4844 grep -v '^ *+' conftest.er1 >conftest.err
4845 rm -f conftest.er1
4846 cat conftest.err >&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); } &&
4849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4850 { (case "(($ac_try" in
4851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4852 *) ac_try_echo=$ac_try;;
4853esac
4854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4855 (eval "$ac_try") 2>&5
4856 ac_status=$?
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); }; } &&
4859 { ac_try='test -s conftest$ac_exeext'
4860 { (case "(($ac_try" in
4861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4862 *) ac_try_echo=$ac_try;;
4863esac
4864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4865 (eval "$ac_try") 2>&5
4866 ac_status=$?
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; }; then
4869 ac_cv_lib_intl_ngettext=yes
4870else
4871 echo "$as_me: failed program was:" >&5
4872sed 's/^/| /' conftest.$ac_ext >&5
4873
4874 ac_cv_lib_intl_ngettext=no
4875fi
4876
4877rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4878 conftest$ac_exeext conftest.$ac_ext
4879LIBS=$ac_check_lib_save_LIBS
4880fi
4881{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
4882echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
4883if test $ac_cv_lib_intl_ngettext = yes; then
4884 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
4885echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
4886if test "${ac_cv_lib_intl_dgettext+set}" = set; then
4887 echo $ECHO_N "(cached) $ECHO_C" >&6
4888else
4889 ac_check_lib_save_LIBS=$LIBS
4890LIBS="-lintl $LIBS"
4891cat >conftest.$ac_ext <<_ACEOF
4892/* confdefs.h. */
4893_ACEOF
4894cat confdefs.h >>conftest.$ac_ext
4895cat >>conftest.$ac_ext <<_ACEOF
4896/* end confdefs.h. */
4897
4898/* Override any GCC internal prototype to avoid an error.
4899 Use char because int might match the return type of a GCC
4900 builtin and then its argument prototype would still apply. */
4901#ifdef __cplusplus
4902extern "C"
4903#endif
4904char dgettext ();
4905int
4906main ()
4907{
4908return dgettext ();
4909 ;
4910 return 0;
4911}
4912_ACEOF
4913rm -f conftest.$ac_objext conftest$ac_exeext
4914if { (ac_try="$ac_link"
4915case "(($ac_try" in
4916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4917 *) ac_try_echo=$ac_try;;
4918esac
4919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4920 (eval "$ac_link") 2>conftest.er1
4921 ac_status=$?
4922 grep -v '^ *+' conftest.er1 >conftest.err
4923 rm -f conftest.er1
4924 cat conftest.err >&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); } &&
4927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4928 { (case "(($ac_try" in
4929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4930 *) ac_try_echo=$ac_try;;
4931esac
4932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4933 (eval "$ac_try") 2>&5
4934 ac_status=$?
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); }; } &&
4937 { ac_try='test -s conftest$ac_exeext'
4938 { (case "(($ac_try" in
4939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4940 *) ac_try_echo=$ac_try;;
4941esac
4942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4943 (eval "$ac_try") 2>&5
4944 ac_status=$?
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); }; }; then
4947 ac_cv_lib_intl_dgettext=yes
4948else
4949 echo "$as_me: failed program was:" >&5
4950sed 's/^/| /' conftest.$ac_ext >&5
4951
4952 ac_cv_lib_intl_dgettext=no
4953fi
4954
4955rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4956 conftest$ac_exeext conftest.$ac_ext
4957LIBS=$ac_check_lib_save_LIBS
4958fi
4959{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
4960echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
4961if test $ac_cv_lib_intl_dgettext = yes; then
4962 gt_cv_func_dgettext_libintl=yes
4963fi
4964
4965fi
4966
4967fi
4968
4969
4970 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
4971 { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
4972echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
4973 { echo "$as_me:$LINENO: result: " >&5
4974echo "${ECHO_T}" >&6; }
4975 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
4976echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
4977if test "${ac_cv_lib_intl_ngettext+set}" = set; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
4979else
4980 ac_check_lib_save_LIBS=$LIBS
4981LIBS="-lintl -liconv $LIBS"
4982cat >conftest.$ac_ext <<_ACEOF
4983/* confdefs.h. */
4984_ACEOF
4985cat confdefs.h >>conftest.$ac_ext
4986cat >>conftest.$ac_ext <<_ACEOF
4987/* end confdefs.h. */
4988
4989/* Override any GCC internal prototype to avoid an error.
4990 Use char because int might match the return type of a GCC
4991 builtin and then its argument prototype would still apply. */
4992#ifdef __cplusplus
4993extern "C"
4994#endif
4995char ngettext ();
4996int
4997main ()
4998{
4999return ngettext ();
5000 ;
5001 return 0;
5002}
5003_ACEOF
5004rm -f conftest.$ac_objext conftest$ac_exeext
5005if { (ac_try="$ac_link"
5006case "(($ac_try" in
5007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5008 *) ac_try_echo=$ac_try;;
5009esac
5010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5011 (eval "$ac_link") 2>conftest.er1
5012 ac_status=$?
5013 grep -v '^ *+' conftest.er1 >conftest.err
5014 rm -f conftest.er1
5015 cat conftest.err >&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); } &&
5018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5019 { (case "(($ac_try" in
5020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5021 *) ac_try_echo=$ac_try;;
5022esac
5023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5024 (eval "$ac_try") 2>&5
5025 ac_status=$?
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); }; } &&
5028 { ac_try='test -s conftest$ac_exeext'
5029 { (case "(($ac_try" in
5030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5031 *) ac_try_echo=$ac_try;;
5032esac
5033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5034 (eval "$ac_try") 2>&5
5035 ac_status=$?
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); }; }; then
5038 ac_cv_lib_intl_ngettext=yes
5039else
5040 echo "$as_me: failed program was:" >&5
5041sed 's/^/| /' conftest.$ac_ext >&5
5042
5043 ac_cv_lib_intl_ngettext=no
5044fi
5045
5046rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5047 conftest$ac_exeext conftest.$ac_ext
5048LIBS=$ac_check_lib_save_LIBS
5049fi
5050{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
5051echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
5052if test $ac_cv_lib_intl_ngettext = yes; then
5053 { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
5054echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
5055if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
5056 echo $ECHO_N "(cached) $ECHO_C" >&6
5057else
5058 ac_check_lib_save_LIBS=$LIBS
5059LIBS="-lintl -liconv $LIBS"
5060cat >conftest.$ac_ext <<_ACEOF
5061/* confdefs.h. */
5062_ACEOF
5063cat confdefs.h >>conftest.$ac_ext
5064cat >>conftest.$ac_ext <<_ACEOF
5065/* end confdefs.h. */
5066
5067/* Override any GCC internal prototype to avoid an error.
5068 Use char because int might match the return type of a GCC
5069 builtin and then its argument prototype would still apply. */
5070#ifdef __cplusplus
5071extern "C"
5072#endif
5073char dcgettext ();
5074int
5075main ()
5076{
5077return dcgettext ();
5078 ;
5079 return 0;
5080}
5081_ACEOF
5082rm -f conftest.$ac_objext conftest$ac_exeext
5083if { (ac_try="$ac_link"
5084case "(($ac_try" in
5085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5086 *) ac_try_echo=$ac_try;;
5087esac
5088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5089 (eval "$ac_link") 2>conftest.er1
5090 ac_status=$?
5091 grep -v '^ *+' conftest.er1 >conftest.err
5092 rm -f conftest.er1
5093 cat conftest.err >&5
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); } &&
5096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5097 { (case "(($ac_try" in
5098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5099 *) ac_try_echo=$ac_try;;
5100esac
5101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5102 (eval "$ac_try") 2>&5
5103 ac_status=$?
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); }; } &&
5106 { ac_try='test -s conftest$ac_exeext'
5107 { (case "(($ac_try" in
5108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5109 *) ac_try_echo=$ac_try;;
5110esac
5111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5112 (eval "$ac_try") 2>&5
5113 ac_status=$?
5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); }; }; then
5116 ac_cv_lib_intl_dcgettext=yes
5117else
5118 echo "$as_me: failed program was:" >&5
5119sed 's/^/| /' conftest.$ac_ext >&5
5120
5121 ac_cv_lib_intl_dcgettext=no
5122fi
5123
5124rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5125 conftest$ac_exeext conftest.$ac_ext
5126LIBS=$ac_check_lib_save_LIBS
5127fi
5128{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
5129echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
5130if test $ac_cv_lib_intl_dcgettext = yes; then
5131 gt_cv_func_dgettext_libintl=yes
5132 libintl_extra_libs=-liconv
5133else
5134 :
5135fi
5136
5137else
5138 :
5139fi
5140
5141 fi
5142
5143 #
5144 # If we found libintl, then check in it for bind_textdomain_codeset();
5145 # we'll prefer libc if neither have bind_textdomain_codeset(),
5146 # and both have dgettext and ngettext
5147 #
5148 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
5149 glib_save_LIBS="$LIBS"
5150 LIBS="$LIBS -lintl $libintl_extra_libs"
5151 unset ac_cv_func_bind_textdomain_codeset
5152
5153for ac_func in bind_textdomain_codeset
5154do
5155as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5156{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5157echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5158if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5159 echo $ECHO_N "(cached) $ECHO_C" >&6
5160else
5161 cat >conftest.$ac_ext <<_ACEOF
5162/* confdefs.h. */
5163_ACEOF
5164cat confdefs.h >>conftest.$ac_ext
5165cat >>conftest.$ac_ext <<_ACEOF
5166/* end confdefs.h. */
5167/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5168 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5169#define $ac_func innocuous_$ac_func
5170
5171/* System header to define __stub macros and hopefully few prototypes,
5172 which can conflict with char $ac_func (); below.
5173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5174 <limits.h> exists even on freestanding compilers. */
5175
5176#ifdef __STDC__
5177# include <limits.h>
5178#else
5179# include <assert.h>
5180#endif
5181
5182#undef $ac_func
5183
5184/* Override any GCC internal prototype to avoid an error.
5185 Use char because int might match the return type of a GCC
5186 builtin and then its argument prototype would still apply. */
5187#ifdef __cplusplus
5188extern "C"
5189#endif
5190char $ac_func ();
5191/* The GNU C library defines this for functions which it implements
5192 to always fail with ENOSYS. Some functions are actually named
5193 something starting with __ and the normal name is an alias. */
5194#if defined __stub_$ac_func || defined __stub___$ac_func
5195choke me
5196#endif
5197
5198int
5199main ()
5200{
5201return $ac_func ();
5202 ;
5203 return 0;
5204}
5205_ACEOF
5206rm -f conftest.$ac_objext conftest$ac_exeext
5207if { (ac_try="$ac_link"
5208case "(($ac_try" in
5209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5210 *) ac_try_echo=$ac_try;;
5211esac
5212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5213 (eval "$ac_link") 2>conftest.er1
5214 ac_status=$?
5215 grep -v '^ *+' conftest.er1 >conftest.err
5216 rm -f conftest.er1
5217 cat conftest.err >&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); } &&
5220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5221 { (case "(($ac_try" in
5222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5223 *) ac_try_echo=$ac_try;;
5224esac
5225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5226 (eval "$ac_try") 2>&5
5227 ac_status=$?
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); }; } &&
5230 { ac_try='test -s conftest$ac_exeext'
5231 { (case "(($ac_try" in
5232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5233 *) ac_try_echo=$ac_try;;
5234esac
5235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5236 (eval "$ac_try") 2>&5
5237 ac_status=$?
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); }; }; then
5240 eval "$as_ac_var=yes"
5241else
5242 echo "$as_me: failed program was:" >&5
5243sed 's/^/| /' conftest.$ac_ext >&5
5244
5245 eval "$as_ac_var=no"
5246fi
5247
5248rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5249 conftest$ac_exeext conftest.$ac_ext
5250fi
5251ac_res=`eval echo '${'$as_ac_var'}'`
5252 { echo "$as_me:$LINENO: result: $ac_res" >&5
5253echo "${ECHO_T}$ac_res" >&6; }
5254if test `eval echo '${'$as_ac_var'}'` = yes; then
5255 cat >>confdefs.h <<_ACEOF
5256#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5257_ACEOF
5258
5259fi
5260done
5261
5262 LIBS="$glib_save_LIBS"
5263
5264 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
5265 gt_cv_func_dgettext_libc=no
5266 else
5267 if test "$gt_cv_func_dgettext_libc" = "yes" \
5268 && test "$gt_cv_func_ngettext_libc" = "yes"; then
5269 gt_cv_func_dgettext_libintl=no
5270 fi
5271 fi
5272 fi
5273 fi
5274
5275 if test "$gt_cv_func_dgettext_libc" = "yes" \
5276 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
5277 gt_cv_have_gettext=yes
5278 fi
5279
5280 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
5281 INTLLIBS="-lintl $libintl_extra_libs"
5282 fi
5283
5284 if test "$gt_cv_have_gettext" = "yes"; then
5285
5286cat >>confdefs.h <<\_ACEOF
5287#define HAVE_GETTEXT 1
5288_ACEOF
5289
5290 # Extract the first word of "msgfmt", so it can be a program name with args.
5291set dummy msgfmt; ac_word=$2
5292{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5294if test "${ac_cv_path_MSGFMT+set}" = set; then
5295 echo $ECHO_N "(cached) $ECHO_C" >&6
5296else
5297 case "$MSGFMT" in
5298 /*)
5299 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5300 ;;
5301 *)
5302 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5303 for ac_dir in $PATH; do
5304 test -z "$ac_dir" && ac_dir=.
5305 if test -f $ac_dir/$ac_word; then
5306 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5307 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5308 break
5309 fi
5310 fi
5311 done
5312 IFS="$ac_save_ifs"
5313 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5314 ;;
5315esac
5316fi
5317MSGFMT="$ac_cv_path_MSGFMT"
5318if test "$MSGFMT" != "no"; then
5319 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5320echo "${ECHO_T}$MSGFMT" >&6; }
5321else
5322 { echo "$as_me:$LINENO: result: no" >&5
5323echo "${ECHO_T}no" >&6; }
5324fi
5325 if test "$MSGFMT" != "no"; then
5326 glib_save_LIBS="$LIBS"
5327 LIBS="$LIBS $INTLLIBS"
5328
5329for ac_func in dcgettext
5330do
5331as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5332{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5333echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5334if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5335 echo $ECHO_N "(cached) $ECHO_C" >&6
5336else
5337 cat >conftest.$ac_ext <<_ACEOF
5338/* confdefs.h. */
5339_ACEOF
5340cat confdefs.h >>conftest.$ac_ext
5341cat >>conftest.$ac_ext <<_ACEOF
5342/* end confdefs.h. */
5343/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5345#define $ac_func innocuous_$ac_func
5346
5347/* System header to define __stub macros and hopefully few prototypes,
5348 which can conflict with char $ac_func (); below.
5349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5350 <limits.h> exists even on freestanding compilers. */
5351
5352#ifdef __STDC__
5353# include <limits.h>
5354#else
5355# include <assert.h>
5356#endif
5357
5358#undef $ac_func
5359
5360/* Override any GCC internal prototype to avoid an error.
5361 Use char because int might match the return type of a GCC
5362 builtin and then its argument prototype would still apply. */
5363#ifdef __cplusplus
5364extern "C"
5365#endif
5366char $ac_func ();
5367/* The GNU C library defines this for functions which it implements
5368 to always fail with ENOSYS. Some functions are actually named
5369 something starting with __ and the normal name is an alias. */
5370#if defined __stub_$ac_func || defined __stub___$ac_func
5371choke me
5372#endif
5373
5374int
5375main ()
5376{
5377return $ac_func ();
5378 ;
5379 return 0;
5380}
5381_ACEOF
5382rm -f conftest.$ac_objext conftest$ac_exeext
5383if { (ac_try="$ac_link"
5384case "(($ac_try" in
5385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5386 *) ac_try_echo=$ac_try;;
5387esac
5388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5389 (eval "$ac_link") 2>conftest.er1
5390 ac_status=$?
5391 grep -v '^ *+' conftest.er1 >conftest.err
5392 rm -f conftest.er1
5393 cat conftest.err >&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); } &&
5396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5397 { (case "(($ac_try" in
5398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5399 *) ac_try_echo=$ac_try;;
5400esac
5401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5402 (eval "$ac_try") 2>&5
5403 ac_status=$?
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); }; } &&
5406 { ac_try='test -s conftest$ac_exeext'
5407 { (case "(($ac_try" in
5408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5409 *) ac_try_echo=$ac_try;;
5410esac
5411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5412 (eval "$ac_try") 2>&5
5413 ac_status=$?
5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415 (exit $ac_status); }; }; then
5416 eval "$as_ac_var=yes"
5417else
5418 echo "$as_me: failed program was:" >&5
5419sed 's/^/| /' conftest.$ac_ext >&5
5420
5421 eval "$as_ac_var=no"
5422fi
5423
5424rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5425 conftest$ac_exeext conftest.$ac_ext
5426fi
5427ac_res=`eval echo '${'$as_ac_var'}'`
5428 { echo "$as_me:$LINENO: result: $ac_res" >&5
5429echo "${ECHO_T}$ac_res" >&6; }
5430if test `eval echo '${'$as_ac_var'}'` = yes; then
5431 cat >>confdefs.h <<_ACEOF
5432#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5433_ACEOF
5434
5435fi
5436done
5437
5438 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5439set dummy gmsgfmt; ac_word=$2
5440{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5442if test "${ac_cv_path_GMSGFMT+set}" = set; then
5443 echo $ECHO_N "(cached) $ECHO_C" >&6
5444else
5445 case $GMSGFMT in
5446 [\\/]* | ?:[\\/]*)
5447 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5448 ;;
5449 *)
5450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5451for as_dir in $PATH
5452do
5453 IFS=$as_save_IFS
5454 test -z "$as_dir" && as_dir=.
5455 for ac_exec_ext in '' $ac_executable_extensions; do
5456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5457 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5459 break 2
5460 fi
5461done
5462done
5463IFS=$as_save_IFS
5464
5465 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5466 ;;
5467esac
5468fi
5469GMSGFMT=$ac_cv_path_GMSGFMT
5470if test -n "$GMSGFMT"; then
5471 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5472echo "${ECHO_T}$GMSGFMT" >&6; }
5473else
5474 { echo "$as_me:$LINENO: result: no" >&5
5475echo "${ECHO_T}no" >&6; }
5476fi
5477
5478
5479 # Extract the first word of "xgettext", so it can be a program name with args.
5480set dummy xgettext; ac_word=$2
5481{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5483if test "${ac_cv_path_XGETTEXT+set}" = set; then
5484 echo $ECHO_N "(cached) $ECHO_C" >&6
5485else
5486 case "$XGETTEXT" in
5487 /*)
5488 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5489 ;;
5490 *)
5491 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5492 for ac_dir in $PATH; do
5493 test -z "$ac_dir" && ac_dir=.
5494 if test -f $ac_dir/$ac_word; then
5495 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5496 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5497 break
5498 fi
5499 fi
5500 done
5501 IFS="$ac_save_ifs"
5502 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5503 ;;
5504esac
5505fi
5506XGETTEXT="$ac_cv_path_XGETTEXT"
5507if test "$XGETTEXT" != ":"; then
5508 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5509echo "${ECHO_T}$XGETTEXT" >&6; }
5510else
5511 { echo "$as_me:$LINENO: result: no" >&5
5512echo "${ECHO_T}no" >&6; }
5513fi
5514
5515 cat >conftest.$ac_ext <<_ACEOF
5516/* confdefs.h. */
5517_ACEOF
5518cat confdefs.h >>conftest.$ac_ext
5519cat >>conftest.$ac_ext <<_ACEOF
5520/* end confdefs.h. */
5521
5522int
5523main ()
5524{
5525extern int _nl_msg_cat_cntr;
5526 return _nl_msg_cat_cntr
5527 ;
5528 return 0;
5529}
5530_ACEOF
5531rm -f conftest.$ac_objext conftest$ac_exeext
5532if { (ac_try="$ac_link"
5533case "(($ac_try" in
5534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5535 *) ac_try_echo=$ac_try;;
5536esac
5537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5538 (eval "$ac_link") 2>conftest.er1
5539 ac_status=$?
5540 grep -v '^ *+' conftest.er1 >conftest.err
5541 rm -f conftest.er1
5542 cat conftest.err >&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); } &&
5545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5546 { (case "(($ac_try" in
5547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5548 *) ac_try_echo=$ac_try;;
5549esac
5550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5551 (eval "$ac_try") 2>&5
5552 ac_status=$?
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); }; } &&
5555 { ac_try='test -s conftest$ac_exeext'
5556 { (case "(($ac_try" in
5557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558 *) ac_try_echo=$ac_try;;
5559esac
5560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5561 (eval "$ac_try") 2>&5
5562 ac_status=$?
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); }; }; then
5565 CATOBJEXT=.gmo
5566 DATADIRNAME=share
5567else
5568 echo "$as_me: failed program was:" >&5
5569sed 's/^/| /' conftest.$ac_ext >&5
5570
5571 case $host in
5572 *-*-solaris*)
5573 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
5574echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
5575if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
5576 echo $ECHO_N "(cached) $ECHO_C" >&6
5577else
5578 cat >conftest.$ac_ext <<_ACEOF
5579/* confdefs.h. */
5580_ACEOF
5581cat confdefs.h >>conftest.$ac_ext
5582cat >>conftest.$ac_ext <<_ACEOF
5583/* end confdefs.h. */
5584/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
5585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5586#define bind_textdomain_codeset innocuous_bind_textdomain_codeset
5587
5588/* System header to define __stub macros and hopefully few prototypes,
5589 which can conflict with char bind_textdomain_codeset (); below.
5590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5591 <limits.h> exists even on freestanding compilers. */
5592
5593#ifdef __STDC__
5594# include <limits.h>
5595#else
5596# include <assert.h>
5597#endif
5598
5599#undef bind_textdomain_codeset
5600
5601/* Override any GCC internal prototype to avoid an error.
5602 Use char because int might match the return type of a GCC
5603 builtin and then its argument prototype would still apply. */
5604#ifdef __cplusplus
5605extern "C"
5606#endif
5607char bind_textdomain_codeset ();
5608/* The GNU C library defines this for functions which it implements
5609 to always fail with ENOSYS. Some functions are actually named
5610 something starting with __ and the normal name is an alias. */
5611#if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
5612choke me
5613#endif
5614
5615int
5616main ()
5617{
5618return bind_textdomain_codeset ();
5619 ;
5620 return 0;
5621}
5622_ACEOF
5623rm -f conftest.$ac_objext conftest$ac_exeext
5624if { (ac_try="$ac_link"
5625case "(($ac_try" in
5626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5627 *) ac_try_echo=$ac_try;;
5628esac
5629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5630 (eval "$ac_link") 2>conftest.er1
5631 ac_status=$?
5632 grep -v '^ *+' conftest.er1 >conftest.err
5633 rm -f conftest.er1
5634 cat conftest.err >&5
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); } &&
5637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5638 { (case "(($ac_try" in
5639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5640 *) ac_try_echo=$ac_try;;
5641esac
5642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5643 (eval "$ac_try") 2>&5
5644 ac_status=$?
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); }; } &&
5647 { ac_try='test -s conftest$ac_exeext'
5648 { (case "(($ac_try" in
5649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5650 *) ac_try_echo=$ac_try;;
5651esac
5652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5653 (eval "$ac_try") 2>&5
5654 ac_status=$?
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); }; }; then
5657 ac_cv_func_bind_textdomain_codeset=yes
5658else
5659 echo "$as_me: failed program was:" >&5
5660sed 's/^/| /' conftest.$ac_ext >&5
5661
5662 ac_cv_func_bind_textdomain_codeset=no
5663fi
5664
5665rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5666 conftest$ac_exeext conftest.$ac_ext
5667fi
5668{ echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
5669echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
5670if test $ac_cv_func_bind_textdomain_codeset = yes; then
5671 CATOBJEXT=.gmo
5672 DATADIRNAME=share
5673else
5674 CATOBJEXT=.mo
5675 DATADIRNAME=lib
5676fi
5677
5678 ;;
5679 *)
5680 CATOBJEXT=.mo
5681 DATADIRNAME=lib
5682 ;;
5683 esac
5684fi
5685
5686rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5687 conftest$ac_exeext conftest.$ac_ext
5688 LIBS="$glib_save_LIBS"
5689 INSTOBJEXT=.mo
5690 else
5691 gt_cv_have_gettext=no
5692 fi
5693 fi
5694
5695fi
5696
5697
5698
5699 if test "$gt_cv_have_gettext" = "yes" ; then
5700
5701cat >>confdefs.h <<\_ACEOF
5702#define ENABLE_NLS 1
5703_ACEOF
5704
5705 fi
5706
5707 if test "$XGETTEXT" != ":"; then
5708 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5709 : ;
5710 else
5711 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5712echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
5713 XGETTEXT=":"
5714 fi
5715 fi
5716
5717 # We need to process the po/ directory.
5718 POSUB=po
5719
5720 ac_config_commands="$ac_config_commands default-1"
5721
5722
5723 for lang in $ALL_LINGUAS; do
5724 GMOFILES="$GMOFILES $lang.gmo"
5725 POFILES="$POFILES $lang.po"
5726 done
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740 if test "$gt_cv_have_gettext" = "yes"; then
5741 if test "x$ALL_LINGUAS" = "x"; then
5742 LINGUAS=
5743 else
5744 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5745echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
5746 NEW_LINGUAS=
5747 for presentlang in $ALL_LINGUAS; do
5748 useit=no
5749 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
5750 desiredlanguages="$LINGUAS"
5751 else
5752 desiredlanguages="$ALL_LINGUAS"
5753 fi
5754 for desiredlang in $desiredlanguages; do
5755 # Use the presentlang catalog if desiredlang is
5756 # a. equal to presentlang, or
5757 # b. a variant of presentlang (because in this case,
5758 # presentlang can be used as a fallback for messages
5759 # which are not translated in the desiredlang catalog).
5760 case "$desiredlang" in
5761 "$presentlang"*) useit=yes;;
5762 esac
5763 done
5764 if test $useit = yes; then
5765 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
5766 fi
5767 done
5768 LINGUAS=$NEW_LINGUAS
5769 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
5770echo "${ECHO_T}$LINGUAS" >&6; }
5771 fi
5772
5773 if test -n "$LINGUAS"; then
5774 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5775 fi
5776 fi
5777
5778 MKINSTALLDIRS=
5779 if test -n "$ac_aux_dir"; then
5780 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
5781 fi
5782 if test -z "$MKINSTALLDIRS"; then
5783 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5784 fi
5785
5786
5787 test -d po || mkdir po
5788 if test "x$srcdir" != "x."; then
5789 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5790 posrcprefix="$srcdir/"
5791 else
5792 posrcprefix="../$srcdir/"
5793 fi
5794 else
5795 posrcprefix="../"
5796 fi
5797 rm -f po/POTFILES
5798 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5799 < $srcdir/po/POTFILES.in > po/POTFILES
5800
5801
5802GETTEXT_PACKAGE=$PACKAGE
5803
5804
5805# glib 2.0
5806# Check whether --enable-glibtest was given.
5807if test "${enable_glibtest+set}" = set; then
5808 enableval=$enable_glibtest;
5809else
5810 enable_glibtest=yes
5811fi
5812
5813
5814 pkg_config_args=glib-2.0
5815 for module in .
5816 do
5817 case "$module" in
5818 gmodule)
5819 pkg_config_args="$pkg_config_args gmodule-2.0"
5820 ;;
5821 gmodule-no-export)
5822 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
5823 ;;
5824 gobject)
5825 pkg_config_args="$pkg_config_args gobject-2.0"
5826 ;;
5827 gthread)
5828 pkg_config_args="$pkg_config_args gthread-2.0"
5829 ;;
5830 esac
5831 done
5832
5833 # Extract the first word of "pkg-config", so it can be a program name with args.
5834set dummy pkg-config; ac_word=$2
5835{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5837if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5839else
5840 case $PKG_CONFIG in
5841 [\\/]* | ?:[\\/]*)
5842 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5843 ;;
5844 *)
5845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846for as_dir in $PATH
5847do
5848 IFS=$as_save_IFS
5849 test -z "$as_dir" && as_dir=.
5850 for ac_exec_ext in '' $ac_executable_extensions; do
5851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5852 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5854 break 2
5855 fi
5856done
5857done
5858IFS=$as_save_IFS
5859
5860 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
5861 ;;
5862esac
5863fi
5864PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5865if test -n "$PKG_CONFIG"; then
5866 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5867echo "${ECHO_T}$PKG_CONFIG" >&6; }
5868else
5869 { echo "$as_me:$LINENO: result: no" >&5
5870echo "${ECHO_T}no" >&6; }
5871fi
5872
5873
5874
5875 no_glib=""
5876
5877 if test x$PKG_CONFIG != xno ; then
5878 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
5879 :
5880 else
5881 echo *** pkg-config too old; version 0.7 or better required.
5882 no_glib=yes
5883 PKG_CONFIG=no
5884 fi
5885 else
5886 no_glib=yes
5887 fi
5888
5889 min_glib_version=2.4.0
5890 { echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5
5891echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6; }
5892
5893 if test x$PKG_CONFIG != xno ; then
5894 ## don't try to run the test against uninstalled libtool libs
5895 if $PKG_CONFIG --uninstalled $pkg_config_args; then
5896 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
5897 enable_glibtest=no
5898 fi
5899
5900 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
5901 :
5902 else
5903 no_glib=yes
5904 fi
5905 fi
5906
5907 if test x"$no_glib" = x ; then
5908 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
5909 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
5910 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
5911
5912 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
5913 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
5914 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
5915 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
5916 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
5917 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
5918 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
5919 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
5920 if test "x$enable_glibtest" = "xyes" ; then
5921 ac_save_CFLAGS="$CFLAGS"
5922 ac_save_LIBS="$LIBS"
5923 CFLAGS="$CFLAGS $GLIB_CFLAGS"
5924 LIBS="$GLIB_LIBS $LIBS"
5925 rm -f conf.glibtest
5926 if test "$cross_compiling" = yes; then
5927 echo $ac_n "cross compiling; assumed OK... $ac_c"
5928else
5929 cat >conftest.$ac_ext <<_ACEOF
5930/* confdefs.h. */
5931_ACEOF
5932cat confdefs.h >>conftest.$ac_ext
5933cat >>conftest.$ac_ext <<_ACEOF
5934/* end confdefs.h. */
5935
5936#include <glib.h>
5937#include <stdio.h>
5938#include <stdlib.h>
5939
5940int
5941main ()
5942{
5943 int major, minor, micro;
5944 char *tmp_version;
5945
5946 system ("touch conf.glibtest");
5947
5948 /* HP/UX 9 (%@#!) writes to sscanf strings */
5949 tmp_version = g_strdup("$min_glib_version");
5950 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
5951 printf("%s, bad version string\n", "$min_glib_version");
5952 exit(1);
5953 }
5954
5955 if ((glib_major_version != $glib_config_major_version) ||
5956 (glib_minor_version != $glib_config_minor_version) ||
5957 (glib_micro_version != $glib_config_micro_version))
5958 {
5959 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
5960 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
5961 glib_major_version, glib_minor_version, glib_micro_version);
5962 printf ("*** was found! If pkg-config was correct, then it is best\n");
5963 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
5964 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
5965 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
5966 printf("*** required on your system.\n");
5967 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
5968 printf("*** to point to the correct configuration files\n");
5969 }
5970 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
5971 (glib_minor_version != GLIB_MINOR_VERSION) ||
5972 (glib_micro_version != GLIB_MICRO_VERSION))
5973 {
5974 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
5975 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
5976 printf("*** library (version %d.%d.%d)\n",
5977 glib_major_version, glib_minor_version, glib_micro_version);
5978 }
5979 else
5980 {
5981 if ((glib_major_version > major) ||
5982 ((glib_major_version == major) && (glib_minor_version > minor)) ||
5983 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
5984 {
5985 return 0;
5986 }
5987 else
5988 {
5989 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
5990 glib_major_version, glib_minor_version, glib_micro_version);
5991 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
5992 major, minor, micro);
5993 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
5994 printf("***\n");
5995 printf("*** If you have already installed a sufficiently new version, this error\n");
5996 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
5997 printf("*** being found. The easiest way to fix this is to remove the old version\n");
5998 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
5999 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
6000 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
6001 printf("*** so that the correct libraries are found at run-time))\n");
6002 }
6003 }
6004 return 1;
6005}
6006
6007_ACEOF
6008rm -f conftest$ac_exeext
6009if { (ac_try="$ac_link"
6010case "(($ac_try" in
6011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012 *) ac_try_echo=$ac_try;;
6013esac
6014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6015 (eval "$ac_link") 2>&5
6016 ac_status=$?
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6019 { (case "(($ac_try" in
6020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6021 *) ac_try_echo=$ac_try;;
6022esac
6023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6024 (eval "$ac_try") 2>&5
6025 ac_status=$?
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); }; }; then
6028 :
6029else
6030 echo "$as_me: program exited with status $ac_status" >&5
6031echo "$as_me: failed program was:" >&5
6032sed 's/^/| /' conftest.$ac_ext >&5
6033
6034( exit $ac_status )
6035no_glib=yes
6036fi
6037rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6038fi
6039
6040
6041 CFLAGS="$ac_save_CFLAGS"
6042 LIBS="$ac_save_LIBS"
6043 fi
6044 fi
6045 if test "x$no_glib" = x ; then
6046 { echo "$as_me:$LINENO: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
6047echo "${ECHO_T}yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
6048 :
6049 else
6050 { echo "$as_me:$LINENO: result: no" >&5
6051echo "${ECHO_T}no" >&6; }
6052 if test "$PKG_CONFIG" = "no" ; then
6053 echo "*** A new enough version of pkg-config was not found."
6054 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
6055 else
6056 if test -f conf.glibtest ; then
6057 :
6058 else
6059 echo "*** Could not run GLIB test program, checking why..."
6060 ac_save_CFLAGS="$CFLAGS"
6061 ac_save_LIBS="$LIBS"
6062 CFLAGS="$CFLAGS $GLIB_CFLAGS"
6063 LIBS="$LIBS $GLIB_LIBS"
6064 cat >conftest.$ac_ext <<_ACEOF
6065/* confdefs.h. */
6066_ACEOF
6067cat confdefs.h >>conftest.$ac_ext
6068cat >>conftest.$ac_ext <<_ACEOF
6069/* end confdefs.h. */
6070
6071#include <glib.h>
6072#include <stdio.h>
6073
6074int
6075main ()
6076{
6077 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
6078 ;
6079 return 0;
6080}
6081_ACEOF
6082rm -f conftest.$ac_objext conftest$ac_exeext
6083if { (ac_try="$ac_link"
6084case "(($ac_try" in
6085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6086 *) ac_try_echo=$ac_try;;
6087esac
6088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6089 (eval "$ac_link") 2>conftest.er1
6090 ac_status=$?
6091 grep -v '^ *+' conftest.er1 >conftest.err
6092 rm -f conftest.er1
6093 cat conftest.err >&5
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); } &&
6096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6097 { (case "(($ac_try" in
6098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6099 *) ac_try_echo=$ac_try;;
6100esac
6101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6102 (eval "$ac_try") 2>&5
6103 ac_status=$?
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); }; } &&
6106 { ac_try='test -s conftest$ac_exeext'
6107 { (case "(($ac_try" in
6108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6109 *) ac_try_echo=$ac_try;;
6110esac
6111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6112 (eval "$ac_try") 2>&5
6113 ac_status=$?
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); }; }; then
6116 echo "*** The test program compiled, but did not run. This usually means"
6117 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
6118 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
6119 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
6120 echo "*** to the installed location Also, make sure you have run ldconfig if that"
6121 echo "*** is required on your system"
6122 echo "***"
6123 echo "*** If you have an old version installed, it is best to remove it, although"
6124 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
6125else
6126 echo "$as_me: failed program was:" >&5
6127sed 's/^/| /' conftest.$ac_ext >&5
6128
6129 echo "*** The test program failed to compile or link. See the file config.log for the"
6130 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
6131fi
6132
6133rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6134 conftest$ac_exeext conftest.$ac_ext
6135 CFLAGS="$ac_save_CFLAGS"
6136 LIBS="$ac_save_LIBS"
6137 fi
6138 fi
6139 GLIB_CFLAGS=""
6140 GLIB_LIBS=""
6141 GLIB_GENMARSHAL=""
6142 GOBJECT_QUERY=""
6143 GLIB_MKENUMS=""
6144 { { echo "$as_me:$LINENO: error: GLib >= 2.4.0 is required" >&5
6145echo "$as_me: error: GLib >= 2.4.0 is required" >&2;}
6146 { (exit 1); exit 1; }; }
6147 fi
6148
6149
6150
6151
6152
6153 rm -f conf.glibtest
6154
6155
6156# gtk+ 2.0
6157# Check whether --enable-gtktest was given.
6158if test "${enable_gtktest+set}" = set; then
6159 enableval=$enable_gtktest;
6160else
6161 enable_gtktest=yes
6162fi
6163
6164
6165 pkg_config_args=gtk+-2.0
6166 for module in .
6167 do
6168 case "$module" in
6169 gthread)
6170 pkg_config_args="$pkg_config_args gthread-2.0"
6171 ;;
6172 esac
6173 done
6174
6175 no_gtk=""
6176
6177 # Extract the first word of "pkg-config", so it can be a program name with args.
6178set dummy pkg-config; ac_word=$2
6179{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6181if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6182 echo $ECHO_N "(cached) $ECHO_C" >&6
6183else
6184 case $PKG_CONFIG in
6185 [\\/]* | ?:[\\/]*)
6186 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6187 ;;
6188 *)
6189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190for as_dir in $PATH
6191do
6192 IFS=$as_save_IFS
6193 test -z "$as_dir" && as_dir=.
6194 for ac_exec_ext in '' $ac_executable_extensions; do
6195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6196 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6198 break 2
6199 fi
6200done
6201done
6202IFS=$as_save_IFS
6203
6204 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6205 ;;
6206esac
6207fi
6208PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6209if test -n "$PKG_CONFIG"; then
6210 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6211echo "${ECHO_T}$PKG_CONFIG" >&6; }
6212else
6213 { echo "$as_me:$LINENO: result: no" >&5
6214echo "${ECHO_T}no" >&6; }
6215fi
6216
6217
6218
6219 if test x$PKG_CONFIG != xno ; then
6220 if pkg-config --atleast-pkgconfig-version 0.7 ; then
6221 :
6222 else
6223 echo "*** pkg-config too old; version 0.7 or better required."
6224 no_gtk=yes
6225 PKG_CONFIG=no
6226 fi
6227 else
6228 no_gtk=yes
6229 fi
6230
6231 min_gtk_version=2.4.0
6232 { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
6233echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
6234
6235 if test x$PKG_CONFIG != xno ; then
6236 ## don't try to run the test against uninstalled libtool libs
6237 if $PKG_CONFIG --uninstalled $pkg_config_args; then
6238 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
6239 enable_gtktest=no
6240 fi
6241
6242 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
6243 :
6244 else
6245 no_gtk=yes
6246 fi
6247 fi
6248
6249 if test x"$no_gtk" = x ; then
6250 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
6251 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
6252 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
6253 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
6254 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
6255 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
6256 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
6257 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
6258 if test "x$enable_gtktest" = "xyes" ; then
6259 ac_save_CFLAGS="$CFLAGS"
6260 ac_save_LIBS="$LIBS"
6261 CFLAGS="$CFLAGS $GTK_CFLAGS"
6262 LIBS="$GTK_LIBS $LIBS"
6263 rm -f conf.gtktest
6264 if test "$cross_compiling" = yes; then
6265 echo $ac_n "cross compiling; assumed OK... $ac_c"
6266else
6267 cat >conftest.$ac_ext <<_ACEOF
6268/* confdefs.h. */
6269_ACEOF
6270cat confdefs.h >>conftest.$ac_ext
6271cat >>conftest.$ac_ext <<_ACEOF
6272/* end confdefs.h. */
6273
6274#include <gtk/gtk.h>
6275#include <stdio.h>
6276#include <stdlib.h>
6277
6278int
6279main ()
6280{
6281 int major, minor, micro;
6282 char *tmp_version;
6283
6284 system ("touch conf.gtktest");
6285
6286 /* HP/UX 9 (%@#!) writes to sscanf strings */
6287 tmp_version = g_strdup("$min_gtk_version");
6288 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
6289 printf("%s, bad version string\n", "$min_gtk_version");
6290 exit(1);
6291 }
6292
6293 if ((gtk_major_version != $gtk_config_major_version) ||
6294 (gtk_minor_version != $gtk_config_minor_version) ||
6295 (gtk_micro_version != $gtk_config_micro_version))
6296 {
6297 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
6298 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
6299 gtk_major_version, gtk_minor_version, gtk_micro_version);
6300 printf ("*** was found! If pkg-config was correct, then it is best\n");
6301 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
6302 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
6303 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
6304 printf("*** required on your system.\n");
6305 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
6306 printf("*** to point to the correct configuration files\n");
6307 }
6308 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
6309 (gtk_minor_version != GTK_MINOR_VERSION) ||
6310 (gtk_micro_version != GTK_MICRO_VERSION))
6311 {
6312 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
6313 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
6314 printf("*** library (version %d.%d.%d)\n",
6315 gtk_major_version, gtk_minor_version, gtk_micro_version);
6316 }
6317 else
6318 {
6319 if ((gtk_major_version > major) ||
6320 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
6321 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
6322 {
6323 return 0;
6324 }
6325 else
6326 {
6327 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
6328 gtk_major_version, gtk_minor_version, gtk_micro_version);
6329 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
6330 major, minor, micro);
6331 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
6332 printf("***\n");
6333 printf("*** If you have already installed a sufficiently new version, this error\n");
6334 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
6335 printf("*** being found. The easiest way to fix this is to remove the old version\n");
6336 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
6337 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
6338 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
6339 printf("*** so that the correct libraries are found at run-time))\n");
6340 }
6341 }
6342 return 1;
6343}
6344
6345_ACEOF
6346rm -f conftest$ac_exeext
6347if { (ac_try="$ac_link"
6348case "(($ac_try" in
6349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6350 *) ac_try_echo=$ac_try;;
6351esac
6352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6353 (eval "$ac_link") 2>&5
6354 ac_status=$?
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6357 { (case "(($ac_try" in
6358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6359 *) ac_try_echo=$ac_try;;
6360esac
6361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6362 (eval "$ac_try") 2>&5
6363 ac_status=$?
6364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365 (exit $ac_status); }; }; then
6366 :
6367else
6368 echo "$as_me: program exited with status $ac_status" >&5
6369echo "$as_me: failed program was:" >&5
6370sed 's/^/| /' conftest.$ac_ext >&5
6371
6372( exit $ac_status )
6373no_gtk=yes
6374fi
6375rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6376fi
6377
6378
6379 CFLAGS="$ac_save_CFLAGS"
6380 LIBS="$ac_save_LIBS"
6381 fi
6382 fi
6383 if test "x$no_gtk" = x ; then
6384 { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
6385echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
6386 :
6387 else
6388 { echo "$as_me:$LINENO: result: no" >&5
6389echo "${ECHO_T}no" >&6; }
6390 if test "$PKG_CONFIG" = "no" ; then
6391 echo "*** A new enough version of pkg-config was not found."
6392 echo "*** See http://pkgconfig.sourceforge.net"
6393 else
6394 if test -f conf.gtktest ; then
6395 :
6396 else
6397 echo "*** Could not run GTK+ test program, checking why..."
6398 ac_save_CFLAGS="$CFLAGS"
6399 ac_save_LIBS="$LIBS"
6400 CFLAGS="$CFLAGS $GTK_CFLAGS"
6401 LIBS="$LIBS $GTK_LIBS"
6402 cat >conftest.$ac_ext <<_ACEOF
6403/* confdefs.h. */
6404_ACEOF
6405cat confdefs.h >>conftest.$ac_ext
6406cat >>conftest.$ac_ext <<_ACEOF
6407/* end confdefs.h. */
6408
6409#include <gtk/gtk.h>
6410#include <stdio.h>
6411
6412int
6413main ()
6414{
6415 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
6416 ;
6417 return 0;
6418}
6419_ACEOF
6420rm -f conftest.$ac_objext conftest$ac_exeext
6421if { (ac_try="$ac_link"
6422case "(($ac_try" in
6423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6424 *) ac_try_echo=$ac_try;;
6425esac
6426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6427 (eval "$ac_link") 2>conftest.er1
6428 ac_status=$?
6429 grep -v '^ *+' conftest.er1 >conftest.err
6430 rm -f conftest.er1
6431 cat conftest.err >&5
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); } &&
6434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6435 { (case "(($ac_try" in
6436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6437 *) ac_try_echo=$ac_try;;
6438esac
6439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6440 (eval "$ac_try") 2>&5
6441 ac_status=$?
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); }; } &&
6444 { ac_try='test -s conftest$ac_exeext'
6445 { (case "(($ac_try" in
6446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6447 *) ac_try_echo=$ac_try;;
6448esac
6449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6450 (eval "$ac_try") 2>&5
6451 ac_status=$?
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; }; then
6454 echo "*** The test program compiled, but did not run. This usually means"
6455 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
6456 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
6457 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
6458 echo "*** to the installed location Also, make sure you have run ldconfig if that"
6459 echo "*** is required on your system"
6460 echo "***"
6461 echo "*** If you have an old version installed, it is best to remove it, although"
6462 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
6463else
6464 echo "$as_me: failed program was:" >&5
6465sed 's/^/| /' conftest.$ac_ext >&5
6466
6467 echo "*** The test program failed to compile or link. See the file config.log for the"
6468 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
6469fi
6470
6471rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6472 conftest$ac_exeext conftest.$ac_ext
6473 CFLAGS="$ac_save_CFLAGS"
6474 LIBS="$ac_save_LIBS"
6475 fi
6476 fi
6477 GTK_CFLAGS=""
6478 GTK_LIBS=""
6479 { { echo "$as_me:$LINENO: error: GTK+ >= 2.4.0 is required" >&5
6480echo "$as_me: error: GTK+ >= 2.4.0 is required" >&2;}
6481 { (exit 1); exit 1; }; }
6482 fi
6483
6484
6485 rm -f conf.gtktest
6486
6487
6488# libglade 2.0
6489
6490
6491if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6492 if test -n "$ac_tool_prefix"; then
6493 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6494set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6495{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6497if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6498 echo $ECHO_N "(cached) $ECHO_C" >&6
6499else
6500 case $PKG_CONFIG in
6501 [\\/]* | ?:[\\/]*)
6502 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6503 ;;
6504 *)
6505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506for as_dir in $PATH
6507do
6508 IFS=$as_save_IFS
6509 test -z "$as_dir" && as_dir=.
6510 for ac_exec_ext in '' $ac_executable_extensions; do
6511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6512 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6514 break 2
6515 fi
6516done
6517done
6518IFS=$as_save_IFS
6519
6520 ;;
6521esac
6522fi
6523PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6524if test -n "$PKG_CONFIG"; then
6525 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6526echo "${ECHO_T}$PKG_CONFIG" >&6; }
6527else
6528 { echo "$as_me:$LINENO: result: no" >&5
6529echo "${ECHO_T}no" >&6; }
6530fi
6531
6532
6533fi
6534if test -z "$ac_cv_path_PKG_CONFIG"; then
6535 ac_pt_PKG_CONFIG=$PKG_CONFIG
6536 # Extract the first word of "pkg-config", so it can be a program name with args.
6537set dummy pkg-config; ac_word=$2
6538{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6540if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
6541 echo $ECHO_N "(cached) $ECHO_C" >&6
6542else
6543 case $ac_pt_PKG_CONFIG in
6544 [\\/]* | ?:[\\/]*)
6545 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6546 ;;
6547 *)
6548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549for as_dir in $PATH
6550do
6551 IFS=$as_save_IFS
6552 test -z "$as_dir" && as_dir=.
6553 for ac_exec_ext in '' $ac_executable_extensions; do
6554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6555 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6557 break 2
6558 fi
6559done
6560done
6561IFS=$as_save_IFS
6562
6563 ;;
6564esac
6565fi
6566ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6567if test -n "$ac_pt_PKG_CONFIG"; then
6568 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
6569echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
6570else
6571 { echo "$as_me:$LINENO: result: no" >&5
6572echo "${ECHO_T}no" >&6; }
6573fi
6574
6575 if test "x$ac_pt_PKG_CONFIG" = x; then
6576 PKG_CONFIG=""
6577 else
6578 case $cross_compiling:$ac_tool_warned in
6579yes:)
6580{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6581whose name does not start with the host triplet. If you think this
6582configuration is useful to you, please write to autoconf@gnu.org." >&5
6583echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6584whose name does not start with the host triplet. If you think this
6585configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6586ac_tool_warned=yes ;;
6587esac
6588 PKG_CONFIG=$ac_pt_PKG_CONFIG
6589 fi
6590else
6591 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6592fi
6593
6594fi
6595if test -n "$PKG_CONFIG"; then
6596 _pkg_min_version=0.9.0
6597 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
6598echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
6599 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6600 { echo "$as_me:$LINENO: result: yes" >&5
6601echo "${ECHO_T}yes" >&6; }
6602 else
6603 { echo "$as_me:$LINENO: result: no" >&5
6604echo "${ECHO_T}no" >&6; }
6605 PKG_CONFIG=""
6606 fi
6607
6608fi
6609
6610pkg_failed=no
6611{ echo "$as_me:$LINENO: checking for LIBGLADE" >&5
6612echo $ECHO_N "checking for LIBGLADE... $ECHO_C" >&6; }
6613
6614if test -n "$PKG_CONFIG"; then
6615 if test -n "$PKG_CONFIG" && \
6616 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libglade-2.0 >= 2.4.0\"") >&5
6617 ($PKG_CONFIG --exists --print-errors "libglade-2.0 >= 2.4.0") 2>&5
6618 ac_status=$?
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); }; then
6621 pkg_cv_LIBGLADE_CFLAGS=`$PKG_CONFIG --cflags "libglade-2.0 >= 2.4.0" 2>/dev/null`
6622else
6623 pkg_failed=yes
6624fi
6625else
6626 pkg_failed=untried
6627fi
6628if test -n "$PKG_CONFIG"; then
6629 if test -n "$PKG_CONFIG" && \
6630 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libglade-2.0 >= 2.4.0\"") >&5
6631 ($PKG_CONFIG --exists --print-errors "libglade-2.0 >= 2.4.0") 2>&5
6632 ac_status=$?
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); }; then
6635 pkg_cv_LIBGLADE_LIBS=`$PKG_CONFIG --libs "libglade-2.0 >= 2.4.0" 2>/dev/null`
6636else
6637 pkg_failed=yes
6638fi
6639else
6640 pkg_failed=untried
6641fi
6642
6643if test $pkg_failed = yes; then
6644 LIBGLADE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libglade-2.0 >= 2.4.0"`
6645 # Put the nasty error message in config.log where it belongs
6646 echo "$LIBGLADE_PKG_ERRORS" 1>&5
6647
6648 { { echo "$as_me:$LINENO: error: libglade >= 2.4.0 is required" >&5
6649echo "$as_me: error: libglade >= 2.4.0 is required" >&2;}
6650 { (exit 1); exit 1; }; }
6651elif test $pkg_failed = untried; then
6652 { { echo "$as_me:$LINENO: error: libglade >= 2.4.0 is required" >&5
6653echo "$as_me: error: libglade >= 2.4.0 is required" >&2;}
6654 { (exit 1); exit 1; }; }
6655else
6656 LIBGLADE_CFLAGS=$pkg_cv_LIBGLADE_CFLAGS
6657 LIBGLADE_LIBS=$pkg_cv_LIBGLADE_LIBS
6658 { echo "$as_me:$LINENO: result: yes" >&5
6659echo "${ECHO_T}yes" >&6; }
6660 :
6661fi
6662
6663# gtkglext
6664 no_gtkglext=""
6665 GTKGLEXT_CFLAGS=""
6666 GTKGLEXT_LIBS=""
6667
6668 # GtkGLExt pkg-config module
6669 gtkglext_module=gtkglext-1.0
6670
6671 # minimum GtkGLExt version
6672 gtkglext_min_version=1.0.0
6673
6674 # minimum pkg-config version
6675 pkgconfig_min_version=0.7
6676
6677# Check whether --enable-gtkglext-test was given.
6678if test "${enable_gtkglext_test+set}" = set; then
6679 enableval=$enable_gtkglext_test;
6680else
6681 enable_gtkglext_test=yes
6682fi
6683
6684
6685 pkg_config_modules=$gtkglext_module
6686
6687 # Extract the first word of "pkg-config", so it can be a program name with args.
6688set dummy pkg-config; ac_word=$2
6689{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6691if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6692 echo $ECHO_N "(cached) $ECHO_C" >&6
6693else
6694 case $PKG_CONFIG in
6695 [\\/]* | ?:[\\/]*)
6696 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6697 ;;
6698 *)
6699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700for as_dir in $PATH
6701do
6702 IFS=$as_save_IFS
6703 test -z "$as_dir" && as_dir=.
6704 for ac_exec_ext in '' $ac_executable_extensions; do
6705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6706 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6708 break 2
6709 fi
6710done
6711done
6712IFS=$as_save_IFS
6713
6714 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6715 ;;
6716esac
6717fi
6718PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6719if test -n "$PKG_CONFIG"; then
6720 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6721echo "${ECHO_T}$PKG_CONFIG" >&6; }
6722else
6723 { echo "$as_me:$LINENO: result: no" >&5
6724echo "${ECHO_T}no" >&6; }
6725fi
6726
6727
6728
6729 if test x$PKG_CONFIG != xno ; then
6730 if pkg-config --atleast-pkgconfig-version $pkgconfig_min_version ; then
6731 :
6732 else
6733 echo ""
6734 echo "*** pkg-config too old; version $pkgconfig_min_version or better required."
6735 no_gtkglext=yes
6736 PKG_CONFIG=no
6737 fi
6738 else
6739 no_gtkglext=yes
6740 fi
6741
6742 { echo "$as_me:$LINENO: checking for GtkGLExt - version >= $gtkglext_min_version" >&5
6743echo $ECHO_N "checking for GtkGLExt - version >= $gtkglext_min_version... $ECHO_C" >&6; }
6744
6745 if test x$PKG_CONFIG != xno ; then
6746 ## don't try to run the test against uninstalled libtool libs
6747 if $PKG_CONFIG --uninstalled $pkg_config_modules; then
6748 echo ""
6749 echo "Will use uninstalled version of GtkGLExt found in PKG_CONFIG_PATH"
6750 enable_gtkglext_test=no
6751 fi
6752
6753 if $PKG_CONFIG --atleast-version $gtkglext_min_version $pkg_config_modules; then
6754 :
6755 else
6756 echo ""
6757 echo "*** pkg-config cannot find $gtkglext_module >= $gtkglext_min_version"
6758 echo "*** Set the environment variable PKG_CONFIG_PATH to point to the correct"
6759 echo "*** configuration files."
6760 no_gtkglext=yes
6761 enable_gtkglext_test=no
6762 fi
6763 fi
6764
6765 if test x"$no_gtkglext" = x ; then
6766 GTKGLEXT_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_modules`
6767 GTKGLEXT_LIBS=`$PKG_CONFIG --libs $pkg_config_modules`
6768 gtkglext_config_major_version=`$PKG_CONFIG --modversion $gtkglext_module | \
6769 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
6770 gtkglext_config_minor_version=`$PKG_CONFIG --modversion $gtkglext_module | \
6771 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
6772 gtkglext_config_micro_version=`$PKG_CONFIG --modversion $gtkglext_module | \
6773 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
6774 if test "x$enable_gtkglext_test" = "xyes" ; then
6775 ac_save_CFLAGS="$CFLAGS"
6776 ac_save_LIBS="$LIBS"
6777 CFLAGS="$CFLAGS $GTKGLEXT_CFLAGS"
6778 LIBS="$GTKGLEXT_LIBS $LIBS"
6779 rm -f conf.gtkgltest
6780 if test "$cross_compiling" = yes; then
6781 echo $ac_n "cross compiling; assumed OK... $ac_c"
6782else
6783 cat >conftest.$ac_ext <<_ACEOF
6784/* confdefs.h. */
6785_ACEOF
6786cat confdefs.h >>conftest.$ac_ext
6787cat >>conftest.$ac_ext <<_ACEOF
6788/* end confdefs.h. */
6789
6790#include <gtk/gtk.h>
6791#include <gtk/gtkgl.h>
6792#include <stdio.h>
6793#include <stdlib.h>
6794
6795int
6796main ()
6797{
6798 int major, minor, micro;
6799 char *tmp_version;
6800
6801 system ("touch conf.gtkgltest");
6802
6803 /* HP/UX 9 (%@#!) writes to sscanf strings */
6804 tmp_version = g_strdup ("$gtkglext_min_version");
6805 if (sscanf (tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3)
6806 {
6807 printf ("%s, bad version string\n", "$gtkglext_min_version");
6808 exit (1);
6809 }
6810
6811 if ((gtkglext_major_version != $gtkglext_config_major_version) ||
6812 (gtkglext_minor_version != $gtkglext_config_minor_version) ||
6813 (gtkglext_micro_version != $gtkglext_config_micro_version))
6814 {
6815 printf ("\n*** 'pkg-config --modversion $gtkglext_module' returned %d.%d.%d, but GtkGLExt\n",
6816 $gtkglext_config_major_version, $gtkglext_config_minor_version, $gtkglext_config_micro_version);
6817 printf ("*** library %d.%d.%d was found!\n",
6818 gtkglext_major_version, gtkglext_minor_version, gtkglext_micro_version);
6819 printf ("***\n");
6820 printf ("*** If pkg-config was correct, then it is best to remove the old version\n");
6821 printf ("*** of GtkGLExt. You may also be able to fix the error by modifying your\n");
6822 printf ("*** LD_LIBRARY_PATH enviroment variable, or by editing /etc/ld.so.conf.\n");
6823 printf ("*** Make sure you have run ldconfig if that is required on your system.\n");
6824 printf ("***\n");
6825 printf ("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
6826 printf ("*** to point to the correct configuration files.\n");
6827 }
6828 else if ((gtkglext_major_version != GTKGLEXT_MAJOR_VERSION) ||
6829 (gtkglext_minor_version != GTKGLEXT_MINOR_VERSION) ||
6830 (gtkglext_micro_version != GTKGLEXT_MICRO_VERSION))
6831 {
6832 printf ("\n*** GtkGLExt header files (version %d.%d.%d) do not match library (version %d.%d.%d).\n",
6833 GTKGLEXT_MAJOR_VERSION, GTKGLEXT_MINOR_VERSION, GTKGLEXT_MICRO_VERSION,
6834 gtkglext_major_version, gtkglext_minor_version, gtkglext_micro_version);
6835 }
6836 else
6837 {
6838 if ((gtkglext_major_version > major) ||
6839 ((gtkglext_major_version == major) && (gtkglext_minor_version > minor)) ||
6840 ((gtkglext_major_version == major) && (gtkglext_minor_version == minor) && (gtkglext_micro_version >= micro)))
6841 {
6842 return 0;
6843 }
6844 else
6845 {
6846 printf ("\n*** An old version of GtkGLExt library (%d.%d.%d) was found.\n",
6847 gtkglext_major_version, gtkglext_minor_version, gtkglext_micro_version);
6848 printf ("*** You need a version of GtkGLExt newer than %d.%d.%d. The latest version of\n",
6849 major, minor, micro);
6850 printf ("*** GtkGLExt is always available from http://gtkglext.sourceforge.net/.\n");
6851 printf ("***\n");
6852 printf ("*** If you have already installed a sufficiently new version, this error\n");
6853 printf ("*** probably means that the wrong copy of the pkg-config shell script is\n");
6854 printf ("*** being found. The easiest way to fix this is to remove the old version\n");
6855 printf ("*** of GtkGLExt, but you can also set the PKG_CONFIG environment to point\n");
6856 printf ("*** to the correct copy of pkg-config. (In this case, you will have to\n");
6857 printf ("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
6858 printf ("*** so that the correct libraries are found at run-time)\n");
6859 }
6860 }
6861 return 1;
6862}
6863
6864_ACEOF
6865rm -f conftest$ac_exeext
6866if { (ac_try="$ac_link"
6867case "(($ac_try" in
6868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6869 *) ac_try_echo=$ac_try;;
6870esac
6871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6872 (eval "$ac_link") 2>&5
6873 ac_status=$?
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6876 { (case "(($ac_try" in
6877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6878 *) ac_try_echo=$ac_try;;
6879esac
6880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6881 (eval "$ac_try") 2>&5
6882 ac_status=$?
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); }; }; then
6885 :
6886else
6887 echo "$as_me: program exited with status $ac_status" >&5
6888echo "$as_me: failed program was:" >&5
6889sed 's/^/| /' conftest.$ac_ext >&5
6890
6891( exit $ac_status )
6892no_gtkglext=yes
6893fi
6894rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6895fi
6896
6897
6898 CFLAGS="$ac_save_CFLAGS"
6899 LIBS="$ac_save_LIBS"
6900 fi
6901 fi
6902 if test "x$no_gtkglext" = x ; then
6903 { echo "$as_me:$LINENO: result: yes (version $gtkglext_config_major_version.$gtkglext_config_minor_version.$gtkglext_config_micro_version)" >&5
6904echo "${ECHO_T}yes (version $gtkglext_config_major_version.$gtkglext_config_minor_version.$gtkglext_config_micro_version)" >&6; }
6905 :
6906 else
6907 { echo "$as_me:$LINENO: result: no" >&5
6908echo "${ECHO_T}no" >&6; }
6909 if test "$PKG_CONFIG" = "no" ; then
6910 echo "*** A new enough version of pkg-config was not found."
6911 echo "*** See http://www.freedesktop.org/software/pkgconfig/."
6912 elif test "x$enable_gtkglext_test" = "xyes" ; then
6913 if test -f conf.gtkgltest ; then
6914 :
6915 else
6916 echo "*** Could not run GtkGLExt test program, checking why..."
6917 ac_save_CFLAGS="$CFLAGS"
6918 ac_save_LIBS="$LIBS"
6919 CFLAGS="$CFLAGS $GTKGLEXT_CFLAGS"
6920 LIBS="$LIBS $GTKGLEXT_LIBS"
6921 cat >conftest.$ac_ext <<_ACEOF
6922/* confdefs.h. */
6923_ACEOF
6924cat confdefs.h >>conftest.$ac_ext
6925cat >>conftest.$ac_ext <<_ACEOF
6926/* end confdefs.h. */
6927
6928#include <gtk/gtk.h>
6929#include <gtk/gtkgl.h>
6930#include <stdio.h>
6931
6932int
6933main ()
6934{
6935 return ((gtkglext_major_version) || (gtkglext_minor_version) || (gtkglext_micro_version));
6936 ;
6937 return 0;
6938}
6939_ACEOF
6940rm -f conftest.$ac_objext conftest$ac_exeext
6941if { (ac_try="$ac_link"
6942case "(($ac_try" in
6943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6944 *) ac_try_echo=$ac_try;;
6945esac
6946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6947 (eval "$ac_link") 2>conftest.er1
6948 ac_status=$?
6949 grep -v '^ *+' conftest.er1 >conftest.err
6950 rm -f conftest.er1
6951 cat conftest.err >&5
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); } &&
6954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6955 { (case "(($ac_try" in
6956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6957 *) ac_try_echo=$ac_try;;
6958esac
6959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6960 (eval "$ac_try") 2>&5
6961 ac_status=$?
6962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); }; } &&
6964 { ac_try='test -s conftest$ac_exeext'
6965 { (case "(($ac_try" in
6966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6967 *) ac_try_echo=$ac_try;;
6968esac
6969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6970 (eval "$ac_try") 2>&5
6971 ac_status=$?
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); }; }; then
6974 echo "*** The test program compiled, but did not run. This usually means"
6975 echo "*** that the run-time linker is not finding GtkGLExt or finding the wrong"
6976 echo "*** version of GtkGLExt. If it is not finding GtkGLExt, you'll need to set your"
6977 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
6978 echo "*** to the installed location Also, make sure you have run ldconfig if that"
6979 echo "*** is required on your system"
6980 echo "***"
6981 echo "*** If you have an old version installed, it is best to remove it, although"
6982 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
6983else
6984 echo "$as_me: failed program was:" >&5
6985sed 's/^/| /' conftest.$ac_ext >&5
6986
6987 echo "*** The test program failed to compile or link. See the file config.log for the"
6988 echo "*** exact error that occured. This usually means GtkGLExt is incorrectly installed."
6989fi
6990
6991rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6992 conftest$ac_exeext conftest.$ac_ext
6993 CFLAGS="$ac_save_CFLAGS"
6994 LIBS="$ac_save_LIBS"
6995 fi
6996 fi
6997 GTKGLEXT_CFLAGS=""
6998 GTKGLEXT_LIBS=""
6999 { { echo "$as_me:$LINENO: error: GtkGlExt >= 1.0.0 is required" >&5
7000echo "$as_me: error: GtkGlExt >= 1.0.0 is required" >&2;}
7001 { (exit 1); exit 1; }; }
7002 fi
7003
7004
7005 rm -f conf.gtkgltest
7006
7007
7008# libg3d
7009
7010pkg_failed=no
7011{ echo "$as_me:$LINENO: checking for LIBG3D" >&5
7012echo $ECHO_N "checking for LIBG3D... $ECHO_C" >&6; }
7013
7014if test -n "$PKG_CONFIG"; then
7015 if test -n "$PKG_CONFIG" && \
7016 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libg3d >= 0.0.5\"") >&5
7017 ($PKG_CONFIG --exists --print-errors "libg3d >= 0.0.5") 2>&5
7018 ac_status=$?
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); }; then
7021 pkg_cv_LIBG3D_CFLAGS=`$PKG_CONFIG --cflags "libg3d >= 0.0.5" 2>/dev/null`
7022else
7023 pkg_failed=yes
7024fi
7025else
7026 pkg_failed=untried
7027fi
7028if test -n "$PKG_CONFIG"; then
7029 if test -n "$PKG_CONFIG" && \
7030 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libg3d >= 0.0.5\"") >&5
7031 ($PKG_CONFIG --exists --print-errors "libg3d >= 0.0.5") 2>&5
7032 ac_status=$?
7033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034 (exit $ac_status); }; then
7035 pkg_cv_LIBG3D_LIBS=`$PKG_CONFIG --libs "libg3d >= 0.0.5" 2>/dev/null`
7036else
7037 pkg_failed=yes
7038fi
7039else
7040 pkg_failed=untried
7041fi
7042
7043if test $pkg_failed = yes; then
7044 LIBG3D_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libg3d >= 0.0.5"`
7045 # Put the nasty error message in config.log where it belongs
7046 echo "$LIBG3D_PKG_ERRORS" 1>&5
7047
7048 { { echo "$as_me:$LINENO: error: libg3d >= 0.0.5 is required" >&5
7049echo "$as_me: error: libg3d >= 0.0.5 is required" >&2;}
7050 { (exit 1); exit 1; }; }
7051elif test $pkg_failed = untried; then
7052 { { echo "$as_me:$LINENO: error: libg3d >= 0.0.5 is required" >&5
7053echo "$as_me: error: libg3d >= 0.0.5 is required" >&2;}
7054 { (exit 1); exit 1; }; }
7055else
7056 LIBG3D_CFLAGS=$pkg_cv_LIBG3D_CFLAGS
7057 LIBG3D_LIBS=$pkg_cv_LIBG3D_LIBS
7058 { echo "$as_me:$LINENO: result: yes" >&5
7059echo "${ECHO_T}yes" >&6; }
7060 :
7061fi
7062
7063# Check OpenGL stuff
7064{ echo "$as_me:$LINENO: checking for X" >&5
7065echo $ECHO_N "checking for X... $ECHO_C" >&6; }
7066
7067
7068# Check whether --with-x was given.
7069if test "${with_x+set}" = set; then
7070 withval=$with_x;
7071fi
7072
7073# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7074if test "x$with_x" = xno; then
7075 # The user explicitly disabled X.
7076 have_x=disabled
7077else
7078 case $x_includes,$x_libraries in #(
7079 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
7080echo "$as_me: error: Cannot use X directory names containing '" >&2;}
7081 { (exit 1); exit 1; }; };; #(
7082 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
7084else
7085 # One or both of the vars are not set, and there is no cached value.
7086ac_x_includes=no ac_x_libraries=no
7087rm -f -r conftest.dir
7088if mkdir conftest.dir; then
7089 cd conftest.dir
7090 cat >Imakefile <<'_ACEOF'
7091incroot:
7092 @echo incroot='${INCROOT}'
7093usrlibdir:
7094 @echo usrlibdir='${USRLIBDIR}'
7095libdir:
7096 @echo libdir='${LIBDIR}'
7097_ACEOF
7098 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7099 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7100 for ac_var in incroot usrlibdir libdir; do
7101 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7102 done
7103 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7104 for ac_extension in a so sl; do
7105 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7106 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7107 ac_im_usrlibdir=$ac_im_libdir; break
7108 fi
7109 done
7110 # Screen out bogus values from the imake configuration. They are
7111 # bogus both because they are the default anyway, and because
7112 # using them would break gcc on systems where it needs fixed includes.
7113 case $ac_im_incroot in
7114 /usr/include) ac_x_includes= ;;
7115 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7116 esac
7117 case $ac_im_usrlibdir in
7118 /usr/lib | /lib) ;;
7119 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7120 esac
7121 fi
7122 cd ..
7123 rm -f -r conftest.dir
7124fi
7125
7126# Standard set of common directories for X headers.
7127# Check X11 before X11Rn because it is often a symlink to the current release.
7128ac_x_header_dirs='
7129/usr/X11/include
7130/usr/X11R6/include
7131/usr/X11R5/include
7132/usr/X11R4/include
7133
7134/usr/include/X11
7135/usr/include/X11R6
7136/usr/include/X11R5
7137/usr/include/X11R4
7138
7139/usr/local/X11/include
7140/usr/local/X11R6/include
7141/usr/local/X11R5/include
7142/usr/local/X11R4/include
7143
7144/usr/local/include/X11
7145/usr/local/include/X11R6
7146/usr/local/include/X11R5
7147/usr/local/include/X11R4
7148
7149/usr/X386/include
7150/usr/x386/include
7151/usr/XFree86/include/X11
7152
7153/usr/include
7154/usr/local/include
7155/usr/unsupported/include
7156/usr/athena/include
7157/usr/local/x11r5/include
7158/usr/lpp/Xamples/include
7159
7160/usr/openwin/include
7161/usr/openwin/share/include'
7162
7163if test "$ac_x_includes" = no; then
7164 # Guess where to find include files, by looking for Xlib.h.
7165 # First, try using that file with no special directory specified.
7166 cat >conftest.$ac_ext <<_ACEOF
7167/* confdefs.h. */
7168_ACEOF
7169cat confdefs.h >>conftest.$ac_ext
7170cat >>conftest.$ac_ext <<_ACEOF
7171/* end confdefs.h. */
7172#include <X11/Xlib.h>
7173_ACEOF
7174if { (ac_try="$ac_cpp conftest.$ac_ext"
7175case "(($ac_try" in
7176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7177 *) ac_try_echo=$ac_try;;
7178esac
7179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7181 ac_status=$?
7182 grep -v '^ *+' conftest.er1 >conftest.err
7183 rm -f conftest.er1
7184 cat conftest.err >&5
7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); } >/dev/null; then
7187 if test -s conftest.err; then
7188 ac_cpp_err=$ac_c_preproc_warn_flag
7189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7190 else
7191 ac_cpp_err=
7192 fi
7193else
7194 ac_cpp_err=yes
7195fi
7196if test -z "$ac_cpp_err"; then
7197 # We can compile using X headers with no special include directory.
7198ac_x_includes=
7199else
7200 echo "$as_me: failed program was:" >&5
7201sed 's/^/| /' conftest.$ac_ext >&5
7202
7203 for ac_dir in $ac_x_header_dirs; do
7204 if test -r "$ac_dir/X11/Xlib.h"; then
7205 ac_x_includes=$ac_dir
7206 break
7207 fi
7208done
7209fi
7210
7211rm -f conftest.err conftest.$ac_ext
7212fi # $ac_x_includes = no
7213
7214if test "$ac_x_libraries" = no; then
7215 # Check for the libraries.
7216 # See if we find them without any special options.
7217 # Don't add to $LIBS permanently.
7218 ac_save_LIBS=$LIBS
7219 LIBS="-lX11 $LIBS"
7220 cat >conftest.$ac_ext <<_ACEOF
7221/* confdefs.h. */
7222_ACEOF
7223cat confdefs.h >>conftest.$ac_ext
7224cat >>conftest.$ac_ext <<_ACEOF
7225/* end confdefs.h. */
7226#include <X11/Xlib.h>
7227int
7228main ()
7229{
7230XrmInitialize ()
7231 ;
7232 return 0;
7233}
7234_ACEOF
7235rm -f conftest.$ac_objext conftest$ac_exeext
7236if { (ac_try="$ac_link"
7237case "(($ac_try" in
7238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7239 *) ac_try_echo=$ac_try;;
7240esac
7241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7242 (eval "$ac_link") 2>conftest.er1
7243 ac_status=$?
7244 grep -v '^ *+' conftest.er1 >conftest.err
7245 rm -f conftest.er1
7246 cat conftest.err >&5
7247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248 (exit $ac_status); } &&
7249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7250 { (case "(($ac_try" in
7251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7252 *) ac_try_echo=$ac_try;;
7253esac
7254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7255 (eval "$ac_try") 2>&5
7256 ac_status=$?
7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); }; } &&
7259 { ac_try='test -s conftest$ac_exeext'
7260 { (case "(($ac_try" in
7261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7262 *) ac_try_echo=$ac_try;;
7263esac
7264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7265 (eval "$ac_try") 2>&5
7266 ac_status=$?
7267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268 (exit $ac_status); }; }; then
7269 LIBS=$ac_save_LIBS
7270# We can link X programs with no special library path.
7271ac_x_libraries=
7272else
7273 echo "$as_me: failed program was:" >&5
7274sed 's/^/| /' conftest.$ac_ext >&5
7275
7276 LIBS=$ac_save_LIBS
7277for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7278do
7279 # Don't even attempt the hair of trying to link an X program!
7280 for ac_extension in a so sl; do
7281 if test -r "$ac_dir/libX11.$ac_extension"; then
7282 ac_x_libraries=$ac_dir
7283 break 2
7284 fi
7285 done
7286done
7287fi
7288
7289rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7290 conftest$ac_exeext conftest.$ac_ext
7291fi # $ac_x_libraries = no
7292
7293case $ac_x_includes,$ac_x_libraries in #(
7294 no,* | *,no | *\'*)
7295 # Didn't find X, or a directory has "'" in its name.
7296 ac_cv_have_x="have_x=no";; #(
7297 *)
7298 # Record where we found X for the cache.
7299 ac_cv_have_x="have_x=yes\
7300 ac_x_includes='$ac_x_includes'\
7301 ac_x_libraries='$ac_x_libraries'"
7302esac
7303fi
7304;; #(
7305 *) have_x=yes;;
7306 esac
7307 eval "$ac_cv_have_x"
7308fi # $with_x != no
7309
7310if test "$have_x" != yes; then
7311 { echo "$as_me:$LINENO: result: $have_x" >&5
7312echo "${ECHO_T}$have_x" >&6; }
7313 no_x=yes
7314else
7315 # If each of the values was on the command line, it overrides each guess.
7316 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7317 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7318 # Update the cache value to reflect the command line values.
7319 ac_cv_have_x="have_x=yes\
7320 ac_x_includes='$x_includes'\
7321 ac_x_libraries='$x_libraries'"
7322 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7323echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
7324fi
7325
7326if test "$no_x" = yes; then
7327 # Not all programs may use this symbol, but it does not hurt to define it.
7328
7329cat >>confdefs.h <<\_ACEOF
7330#define X_DISPLAY_MISSING 1
7331_ACEOF
7332
7333 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7334else
7335 if test -n "$x_includes"; then
7336 X_CFLAGS="$X_CFLAGS -I$x_includes"
7337 fi
7338
7339 # It would also be nice to do this for all -L options, not just this one.
7340 if test -n "$x_libraries"; then
7341 X_LIBS="$X_LIBS -L$x_libraries"
7342 # For Solaris; some versions of Sun CC require a space after -R and
7343 # others require no space. Words are not sufficient . . . .
7344 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7345echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
7346 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7347 ac_xsave_c_werror_flag=$ac_c_werror_flag
7348 ac_c_werror_flag=yes
7349 cat >conftest.$ac_ext <<_ACEOF
7350/* confdefs.h. */
7351_ACEOF
7352cat confdefs.h >>conftest.$ac_ext
7353cat >>conftest.$ac_ext <<_ACEOF
7354/* end confdefs.h. */
7355
7356int
7357main ()
7358{
7359
7360 ;
7361 return 0;
7362}
7363_ACEOF
7364rm -f conftest.$ac_objext conftest$ac_exeext
7365if { (ac_try="$ac_link"
7366case "(($ac_try" in
7367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7368 *) ac_try_echo=$ac_try;;
7369esac
7370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7371 (eval "$ac_link") 2>conftest.er1
7372 ac_status=$?
7373 grep -v '^ *+' conftest.er1 >conftest.err
7374 rm -f conftest.er1
7375 cat conftest.err >&5
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); } &&
7378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7379 { (case "(($ac_try" in
7380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7381 *) ac_try_echo=$ac_try;;
7382esac
7383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7384 (eval "$ac_try") 2>&5
7385 ac_status=$?
7386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387 (exit $ac_status); }; } &&
7388 { ac_try='test -s conftest$ac_exeext'
7389 { (case "(($ac_try" in
7390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7391 *) ac_try_echo=$ac_try;;
7392esac
7393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7394 (eval "$ac_try") 2>&5
7395 ac_status=$?
7396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397 (exit $ac_status); }; }; then
7398 { echo "$as_me:$LINENO: result: no" >&5
7399echo "${ECHO_T}no" >&6; }
7400 X_LIBS="$X_LIBS -R$x_libraries"
7401else
7402 echo "$as_me: failed program was:" >&5
7403sed 's/^/| /' conftest.$ac_ext >&5
7404
7405 LIBS="$ac_xsave_LIBS -R $x_libraries"
7406 cat >conftest.$ac_ext <<_ACEOF
7407/* confdefs.h. */
7408_ACEOF
7409cat confdefs.h >>conftest.$ac_ext
7410cat >>conftest.$ac_ext <<_ACEOF
7411/* end confdefs.h. */
7412
7413int
7414main ()
7415{
7416
7417 ;
7418 return 0;
7419}
7420_ACEOF
7421rm -f conftest.$ac_objext conftest$ac_exeext
7422if { (ac_try="$ac_link"
7423case "(($ac_try" in
7424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7425 *) ac_try_echo=$ac_try;;
7426esac
7427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7428 (eval "$ac_link") 2>conftest.er1
7429 ac_status=$?
7430 grep -v '^ *+' conftest.er1 >conftest.err
7431 rm -f conftest.er1
7432 cat conftest.err >&5
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); } &&
7435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7436 { (case "(($ac_try" in
7437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7438 *) ac_try_echo=$ac_try;;
7439esac
7440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7441 (eval "$ac_try") 2>&5
7442 ac_status=$?
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); }; } &&
7445 { ac_try='test -s conftest$ac_exeext'
7446 { (case "(($ac_try" in
7447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7448 *) ac_try_echo=$ac_try;;
7449esac
7450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7451 (eval "$ac_try") 2>&5
7452 ac_status=$?
7453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 (exit $ac_status); }; }; then
7455 { echo "$as_me:$LINENO: result: yes" >&5
7456echo "${ECHO_T}yes" >&6; }
7457 X_LIBS="$X_LIBS -R $x_libraries"
7458else
7459 echo "$as_me: failed program was:" >&5
7460sed 's/^/| /' conftest.$ac_ext >&5
7461
7462 { echo "$as_me:$LINENO: result: neither works" >&5
7463echo "${ECHO_T}neither works" >&6; }
7464fi
7465
7466rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7467 conftest$ac_exeext conftest.$ac_ext
7468fi
7469
7470rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7471 conftest$ac_exeext conftest.$ac_ext
7472 ac_c_werror_flag=$ac_xsave_c_werror_flag
7473 LIBS=$ac_xsave_LIBS
7474 fi
7475
7476 # Check for system-dependent libraries X programs must link with.
7477 # Do this before checking for the system-independent R6 libraries
7478 # (-lICE), since we may need -lsocket or whatever for X linking.
7479
7480 if test "$ISC" = yes; then
7481 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7482 else
7483 # Martyn Johnson says this is needed for Ultrix, if the X
7484 # libraries were built with DECnet support. And Karl Berry says
7485 # the Alpha needs dnet_stub (dnet does not exist).
7486 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7487 cat >conftest.$ac_ext <<_ACEOF
7488/* confdefs.h. */
7489_ACEOF
7490cat confdefs.h >>conftest.$ac_ext
7491cat >>conftest.$ac_ext <<_ACEOF
7492/* end confdefs.h. */
7493
7494/* Override any GCC internal prototype to avoid an error.
7495 Use char because int might match the return type of a GCC
7496 builtin and then its argument prototype would still apply. */
7497#ifdef __cplusplus
7498extern "C"
7499#endif
7500char XOpenDisplay ();
7501int
7502main ()
7503{
7504return XOpenDisplay ();
7505 ;
7506 return 0;
7507}
7508_ACEOF
7509rm -f conftest.$ac_objext conftest$ac_exeext
7510if { (ac_try="$ac_link"
7511case "(($ac_try" in
7512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7513 *) ac_try_echo=$ac_try;;
7514esac
7515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7516 (eval "$ac_link") 2>conftest.er1
7517 ac_status=$?
7518 grep -v '^ *+' conftest.er1 >conftest.err
7519 rm -f conftest.er1
7520 cat conftest.err >&5
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); } &&
7523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7524 { (case "(($ac_try" in
7525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7526 *) ac_try_echo=$ac_try;;
7527esac
7528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7529 (eval "$ac_try") 2>&5
7530 ac_status=$?
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); }; } &&
7533 { ac_try='test -s conftest$ac_exeext'
7534 { (case "(($ac_try" in
7535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7536 *) ac_try_echo=$ac_try;;
7537esac
7538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7539 (eval "$ac_try") 2>&5
7540 ac_status=$?
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); }; }; then
7543 :
7544else
7545 echo "$as_me: failed program was:" >&5
7546sed 's/^/| /' conftest.$ac_ext >&5
7547
7548 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7549echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
7550if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
7552else
7553 ac_check_lib_save_LIBS=$LIBS
7554LIBS="-ldnet $LIBS"
7555cat >conftest.$ac_ext <<_ACEOF
7556/* confdefs.h. */
7557_ACEOF
7558cat confdefs.h >>conftest.$ac_ext
7559cat >>conftest.$ac_ext <<_ACEOF
7560/* end confdefs.h. */
7561
7562/* Override any GCC internal prototype to avoid an error.
7563 Use char because int might match the return type of a GCC
7564 builtin and then its argument prototype would still apply. */
7565#ifdef __cplusplus
7566extern "C"
7567#endif
7568char dnet_ntoa ();
7569int
7570main ()
7571{
7572return dnet_ntoa ();
7573 ;
7574 return 0;
7575}
7576_ACEOF
7577rm -f conftest.$ac_objext conftest$ac_exeext
7578if { (ac_try="$ac_link"
7579case "(($ac_try" in
7580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7581 *) ac_try_echo=$ac_try;;
7582esac
7583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7584 (eval "$ac_link") 2>conftest.er1
7585 ac_status=$?
7586 grep -v '^ *+' conftest.er1 >conftest.err
7587 rm -f conftest.er1
7588 cat conftest.err >&5
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 (exit $ac_status); } &&
7591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7592 { (case "(($ac_try" in
7593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7594 *) ac_try_echo=$ac_try;;
7595esac
7596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7597 (eval "$ac_try") 2>&5
7598 ac_status=$?
7599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600 (exit $ac_status); }; } &&
7601 { ac_try='test -s conftest$ac_exeext'
7602 { (case "(($ac_try" in
7603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7604 *) ac_try_echo=$ac_try;;
7605esac
7606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7607 (eval "$ac_try") 2>&5
7608 ac_status=$?
7609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610 (exit $ac_status); }; }; then
7611 ac_cv_lib_dnet_dnet_ntoa=yes
7612else
7613 echo "$as_me: failed program was:" >&5
7614sed 's/^/| /' conftest.$ac_ext >&5
7615
7616 ac_cv_lib_dnet_dnet_ntoa=no
7617fi
7618
7619rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7620 conftest$ac_exeext conftest.$ac_ext
7621LIBS=$ac_check_lib_save_LIBS
7622fi
7623{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7624echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7625if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7626 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7627fi
7628
7629 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7630 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
7631echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
7632if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7633 echo $ECHO_N "(cached) $ECHO_C" >&6
7634else
7635 ac_check_lib_save_LIBS=$LIBS
7636LIBS="-ldnet_stub $LIBS"
7637cat >conftest.$ac_ext <<_ACEOF
7638/* confdefs.h. */
7639_ACEOF
7640cat confdefs.h >>conftest.$ac_ext
7641cat >>conftest.$ac_ext <<_ACEOF
7642/* end confdefs.h. */
7643
7644/* Override any GCC internal prototype to avoid an error.
7645 Use char because int might match the return type of a GCC
7646 builtin and then its argument prototype would still apply. */
7647#ifdef __cplusplus
7648extern "C"
7649#endif
7650char dnet_ntoa ();
7651int
7652main ()
7653{
7654return dnet_ntoa ();
7655 ;
7656 return 0;
7657}
7658_ACEOF
7659rm -f conftest.$ac_objext conftest$ac_exeext
7660if { (ac_try="$ac_link"
7661case "(($ac_try" in
7662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7663 *) ac_try_echo=$ac_try;;
7664esac
7665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7666 (eval "$ac_link") 2>conftest.er1
7667 ac_status=$?
7668 grep -v '^ *+' conftest.er1 >conftest.err
7669 rm -f conftest.er1
7670 cat conftest.err >&5
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); } &&
7673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7674 { (case "(($ac_try" in
7675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7676 *) ac_try_echo=$ac_try;;
7677esac
7678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7679 (eval "$ac_try") 2>&5
7680 ac_status=$?
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); }; } &&
7683 { ac_try='test -s conftest$ac_exeext'
7684 { (case "(($ac_try" in
7685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7686 *) ac_try_echo=$ac_try;;
7687esac
7688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7689 (eval "$ac_try") 2>&5
7690 ac_status=$?
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); }; }; then
7693 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7694else
7695 echo "$as_me: failed program was:" >&5
7696sed 's/^/| /' conftest.$ac_ext >&5
7697
7698 ac_cv_lib_dnet_stub_dnet_ntoa=no
7699fi
7700
7701rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7702 conftest$ac_exeext conftest.$ac_ext
7703LIBS=$ac_check_lib_save_LIBS
7704fi
7705{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7706echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7707if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7708 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7709fi
7710
7711 fi
7712fi
7713
7714rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7715 conftest$ac_exeext conftest.$ac_ext
7716 LIBS="$ac_xsave_LIBS"
7717
7718 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7719 # to get the SysV transport functions.
7720 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7721 # needs -lnsl.
7722 # The nsl library prevents programs from opening the X display
7723 # on Irix 5.2, according to T.E. Dickey.
7724 # The functions gethostbyname, getservbyname, and inet_addr are
7725 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7726 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
7727echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
7728if test "${ac_cv_func_gethostbyname+set}" = set; then
7729 echo $ECHO_N "(cached) $ECHO_C" >&6
7730else
7731 cat >conftest.$ac_ext <<_ACEOF
7732/* confdefs.h. */
7733_ACEOF
7734cat confdefs.h >>conftest.$ac_ext
7735cat >>conftest.$ac_ext <<_ACEOF
7736/* end confdefs.h. */
7737/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7739#define gethostbyname innocuous_gethostbyname
7740
7741/* System header to define __stub macros and hopefully few prototypes,
7742 which can conflict with char gethostbyname (); below.
7743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7744 <limits.h> exists even on freestanding compilers. */
7745
7746#ifdef __STDC__
7747# include <limits.h>
7748#else
7749# include <assert.h>
7750#endif
7751
7752#undef gethostbyname
7753
7754/* Override any GCC internal prototype to avoid an error.
7755 Use char because int might match the return type of a GCC
7756 builtin and then its argument prototype would still apply. */
7757#ifdef __cplusplus
7758extern "C"
7759#endif
7760char gethostbyname ();
7761/* The GNU C library defines this for functions which it implements
7762 to always fail with ENOSYS. Some functions are actually named
7763 something starting with __ and the normal name is an alias. */
7764#if defined __stub_gethostbyname || defined __stub___gethostbyname
7765choke me
7766#endif
7767
7768int
7769main ()
7770{
7771return gethostbyname ();
7772 ;
7773 return 0;
7774}
7775_ACEOF
7776rm -f conftest.$ac_objext conftest$ac_exeext
7777if { (ac_try="$ac_link"
7778case "(($ac_try" in
7779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7780 *) ac_try_echo=$ac_try;;
7781esac
7782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7783 (eval "$ac_link") 2>conftest.er1
7784 ac_status=$?
7785 grep -v '^ *+' conftest.er1 >conftest.err
7786 rm -f conftest.er1
7787 cat conftest.err >&5
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); } &&
7790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7791 { (case "(($ac_try" in
7792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7793 *) ac_try_echo=$ac_try;;
7794esac
7795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7796 (eval "$ac_try") 2>&5
7797 ac_status=$?
7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799 (exit $ac_status); }; } &&
7800 { ac_try='test -s conftest$ac_exeext'
7801 { (case "(($ac_try" in
7802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7803 *) ac_try_echo=$ac_try;;
7804esac
7805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7806 (eval "$ac_try") 2>&5
7807 ac_status=$?
7808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809 (exit $ac_status); }; }; then
7810 ac_cv_func_gethostbyname=yes
7811else
7812 echo "$as_me: failed program was:" >&5
7813sed 's/^/| /' conftest.$ac_ext >&5
7814
7815 ac_cv_func_gethostbyname=no
7816fi
7817
7818rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7819 conftest$ac_exeext conftest.$ac_ext
7820fi
7821{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7822echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
7823
7824 if test $ac_cv_func_gethostbyname = no; then
7825 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7826echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
7827if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7828 echo $ECHO_N "(cached) $ECHO_C" >&6
7829else
7830 ac_check_lib_save_LIBS=$LIBS
7831LIBS="-lnsl $LIBS"
7832cat >conftest.$ac_ext <<_ACEOF
7833/* confdefs.h. */
7834_ACEOF
7835cat confdefs.h >>conftest.$ac_ext
7836cat >>conftest.$ac_ext <<_ACEOF
7837/* end confdefs.h. */
7838
7839/* Override any GCC internal prototype to avoid an error.
7840 Use char because int might match the return type of a GCC
7841 builtin and then its argument prototype would still apply. */
7842#ifdef __cplusplus
7843extern "C"
7844#endif
7845char gethostbyname ();
7846int
7847main ()
7848{
7849return gethostbyname ();
7850 ;
7851 return 0;
7852}
7853_ACEOF
7854rm -f conftest.$ac_objext conftest$ac_exeext
7855if { (ac_try="$ac_link"
7856case "(($ac_try" in
7857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7858 *) ac_try_echo=$ac_try;;
7859esac
7860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7861 (eval "$ac_link") 2>conftest.er1
7862 ac_status=$?
7863 grep -v '^ *+' conftest.er1 >conftest.err
7864 rm -f conftest.er1
7865 cat conftest.err >&5
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); } &&
7868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7869 { (case "(($ac_try" in
7870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7871 *) ac_try_echo=$ac_try;;
7872esac
7873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7874 (eval "$ac_try") 2>&5
7875 ac_status=$?
7876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877 (exit $ac_status); }; } &&
7878 { ac_try='test -s conftest$ac_exeext'
7879 { (case "(($ac_try" in
7880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7881 *) ac_try_echo=$ac_try;;
7882esac
7883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7884 (eval "$ac_try") 2>&5
7885 ac_status=$?
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); }; }; then
7888 ac_cv_lib_nsl_gethostbyname=yes
7889else
7890 echo "$as_me: failed program was:" >&5
7891sed 's/^/| /' conftest.$ac_ext >&5
7892
7893 ac_cv_lib_nsl_gethostbyname=no
7894fi
7895
7896rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7897 conftest$ac_exeext conftest.$ac_ext
7898LIBS=$ac_check_lib_save_LIBS
7899fi
7900{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7901echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
7902if test $ac_cv_lib_nsl_gethostbyname = yes; then
7903 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7904fi
7905
7906 if test $ac_cv_lib_nsl_gethostbyname = no; then
7907 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7908echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
7909if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7910 echo $ECHO_N "(cached) $ECHO_C" >&6
7911else
7912 ac_check_lib_save_LIBS=$LIBS
7913LIBS="-lbsd $LIBS"
7914cat >conftest.$ac_ext <<_ACEOF
7915/* confdefs.h. */
7916_ACEOF
7917cat confdefs.h >>conftest.$ac_ext
7918cat >>conftest.$ac_ext <<_ACEOF
7919/* end confdefs.h. */
7920
7921/* Override any GCC internal prototype to avoid an error.
7922 Use char because int might match the return type of a GCC
7923 builtin and then its argument prototype would still apply. */
7924#ifdef __cplusplus
7925extern "C"
7926#endif
7927char gethostbyname ();
7928int
7929main ()
7930{
7931return gethostbyname ();
7932 ;
7933 return 0;
7934}
7935_ACEOF
7936rm -f conftest.$ac_objext conftest$ac_exeext
7937if { (ac_try="$ac_link"
7938case "(($ac_try" in
7939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7940 *) ac_try_echo=$ac_try;;
7941esac
7942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7943 (eval "$ac_link") 2>conftest.er1
7944 ac_status=$?
7945 grep -v '^ *+' conftest.er1 >conftest.err
7946 rm -f conftest.er1
7947 cat conftest.err >&5
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); } &&
7950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7951 { (case "(($ac_try" in
7952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7953 *) ac_try_echo=$ac_try;;
7954esac
7955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7956 (eval "$ac_try") 2>&5
7957 ac_status=$?
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); }; } &&
7960 { ac_try='test -s conftest$ac_exeext'
7961 { (case "(($ac_try" in
7962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7963 *) ac_try_echo=$ac_try;;
7964esac
7965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7966 (eval "$ac_try") 2>&5
7967 ac_status=$?
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); }; }; then
7970 ac_cv_lib_bsd_gethostbyname=yes
7971else
7972 echo "$as_me: failed program was:" >&5
7973sed 's/^/| /' conftest.$ac_ext >&5
7974
7975 ac_cv_lib_bsd_gethostbyname=no
7976fi
7977
7978rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7979 conftest$ac_exeext conftest.$ac_ext
7980LIBS=$ac_check_lib_save_LIBS
7981fi
7982{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7983echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
7984if test $ac_cv_lib_bsd_gethostbyname = yes; then
7985 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7986fi
7987
7988 fi
7989 fi
7990
7991 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7992 # socket/setsockopt and other routines are undefined under SCO ODT
7993 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7994 # on later versions), says Simon Leinen: it contains gethostby*
7995 # variants that don't use the name server (or something). -lsocket
7996 # must be given before -lnsl if both are needed. We assume that
7997 # if connect needs -lnsl, so does gethostbyname.
7998 { echo "$as_me:$LINENO: checking for connect" >&5
7999echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
8000if test "${ac_cv_func_connect+set}" = set; then
8001 echo $ECHO_N "(cached) $ECHO_C" >&6
8002else
8003 cat >conftest.$ac_ext <<_ACEOF
8004/* confdefs.h. */
8005_ACEOF
8006cat confdefs.h >>conftest.$ac_ext
8007cat >>conftest.$ac_ext <<_ACEOF
8008/* end confdefs.h. */
8009/* Define connect to an innocuous variant, in case <limits.h> declares connect.
8010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8011#define connect innocuous_connect
8012
8013/* System header to define __stub macros and hopefully few prototypes,
8014 which can conflict with char connect (); below.
8015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8016 <limits.h> exists even on freestanding compilers. */
8017
8018#ifdef __STDC__
8019# include <limits.h>
8020#else
8021# include <assert.h>
8022#endif
8023
8024#undef connect
8025
8026/* Override any GCC internal prototype to avoid an error.
8027 Use char because int might match the return type of a GCC
8028 builtin and then its argument prototype would still apply. */
8029#ifdef __cplusplus
8030extern "C"
8031#endif
8032char connect ();
8033/* The GNU C library defines this for functions which it implements
8034 to always fail with ENOSYS. Some functions are actually named
8035 something starting with __ and the normal name is an alias. */
8036#if defined __stub_connect || defined __stub___connect
8037choke me
8038#endif
8039
8040int
8041main ()
8042{
8043return connect ();
8044 ;
8045 return 0;
8046}
8047_ACEOF
8048rm -f conftest.$ac_objext conftest$ac_exeext
8049if { (ac_try="$ac_link"
8050case "(($ac_try" in
8051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8052 *) ac_try_echo=$ac_try;;
8053esac
8054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8055 (eval "$ac_link") 2>conftest.er1
8056 ac_status=$?
8057 grep -v '^ *+' conftest.er1 >conftest.err
8058 rm -f conftest.er1
8059 cat conftest.err >&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); } &&
8062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8063 { (case "(($ac_try" in
8064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8065 *) ac_try_echo=$ac_try;;
8066esac
8067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8068 (eval "$ac_try") 2>&5
8069 ac_status=$?
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); }; } &&
8072 { ac_try='test -s conftest$ac_exeext'
8073 { (case "(($ac_try" in
8074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8075 *) ac_try_echo=$ac_try;;
8076esac
8077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8078 (eval "$ac_try") 2>&5
8079 ac_status=$?
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); }; }; then
8082 ac_cv_func_connect=yes
8083else
8084 echo "$as_me: failed program was:" >&5
8085sed 's/^/| /' conftest.$ac_ext >&5
8086
8087 ac_cv_func_connect=no
8088fi
8089
8090rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8091 conftest$ac_exeext conftest.$ac_ext
8092fi
8093{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8094echo "${ECHO_T}$ac_cv_func_connect" >&6; }
8095
8096 if test $ac_cv_func_connect = no; then
8097 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8098echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
8099if test "${ac_cv_lib_socket_connect+set}" = set; then
8100 echo $ECHO_N "(cached) $ECHO_C" >&6
8101else
8102 ac_check_lib_save_LIBS=$LIBS
8103LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8104cat >conftest.$ac_ext <<_ACEOF
8105/* confdefs.h. */
8106_ACEOF
8107cat confdefs.h >>conftest.$ac_ext
8108cat >>conftest.$ac_ext <<_ACEOF
8109/* end confdefs.h. */
8110
8111/* Override any GCC internal prototype to avoid an error.
8112 Use char because int might match the return type of a GCC
8113 builtin and then its argument prototype would still apply. */
8114#ifdef __cplusplus
8115extern "C"
8116#endif
8117char connect ();
8118int
8119main ()
8120{
8121return connect ();
8122 ;
8123 return 0;
8124}
8125_ACEOF
8126rm -f conftest.$ac_objext conftest$ac_exeext
8127if { (ac_try="$ac_link"
8128case "(($ac_try" in
8129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8130 *) ac_try_echo=$ac_try;;
8131esac
8132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8133 (eval "$ac_link") 2>conftest.er1
8134 ac_status=$?
8135 grep -v '^ *+' conftest.er1 >conftest.err
8136 rm -f conftest.er1
8137 cat conftest.err >&5
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); } &&
8140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8141 { (case "(($ac_try" in
8142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8143 *) ac_try_echo=$ac_try;;
8144esac
8145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8146 (eval "$ac_try") 2>&5
8147 ac_status=$?
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); }; } &&
8150 { ac_try='test -s conftest$ac_exeext'
8151 { (case "(($ac_try" in
8152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8153 *) ac_try_echo=$ac_try;;
8154esac
8155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8156 (eval "$ac_try") 2>&5
8157 ac_status=$?
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); }; }; then
8160 ac_cv_lib_socket_connect=yes
8161else
8162 echo "$as_me: failed program was:" >&5
8163sed 's/^/| /' conftest.$ac_ext >&5
8164
8165 ac_cv_lib_socket_connect=no
8166fi
8167
8168rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8169 conftest$ac_exeext conftest.$ac_ext
8170LIBS=$ac_check_lib_save_LIBS
8171fi
8172{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8173echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
8174if test $ac_cv_lib_socket_connect = yes; then
8175 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8176fi
8177
8178 fi
8179
8180 # Guillermo Gomez says -lposix is necessary on A/UX.
8181 { echo "$as_me:$LINENO: checking for remove" >&5
8182echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
8183if test "${ac_cv_func_remove+set}" = set; then
8184 echo $ECHO_N "(cached) $ECHO_C" >&6
8185else
8186 cat >conftest.$ac_ext <<_ACEOF
8187/* confdefs.h. */
8188_ACEOF
8189cat confdefs.h >>conftest.$ac_ext
8190cat >>conftest.$ac_ext <<_ACEOF
8191/* end confdefs.h. */
8192/* Define remove to an innocuous variant, in case <limits.h> declares remove.
8193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8194#define remove innocuous_remove
8195
8196/* System header to define __stub macros and hopefully few prototypes,
8197 which can conflict with char remove (); below.
8198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8199 <limits.h> exists even on freestanding compilers. */
8200
8201#ifdef __STDC__
8202# include <limits.h>
8203#else
8204# include <assert.h>
8205#endif
8206
8207#undef remove
8208
8209/* Override any GCC internal prototype to avoid an error.
8210 Use char because int might match the return type of a GCC
8211 builtin and then its argument prototype would still apply. */
8212#ifdef __cplusplus
8213extern "C"
8214#endif
8215char remove ();
8216/* The GNU C library defines this for functions which it implements
8217 to always fail with ENOSYS. Some functions are actually named
8218 something starting with __ and the normal name is an alias. */
8219#if defined __stub_remove || defined __stub___remove
8220choke me
8221#endif
8222
8223int
8224main ()
8225{
8226return remove ();
8227 ;
8228 return 0;
8229}
8230_ACEOF
8231rm -f conftest.$ac_objext conftest$ac_exeext
8232if { (ac_try="$ac_link"
8233case "(($ac_try" in
8234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8235 *) ac_try_echo=$ac_try;;
8236esac
8237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8238 (eval "$ac_link") 2>conftest.er1
8239 ac_status=$?
8240 grep -v '^ *+' conftest.er1 >conftest.err
8241 rm -f conftest.er1
8242 cat conftest.err >&5
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); } &&
8245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8246 { (case "(($ac_try" in
8247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8248 *) ac_try_echo=$ac_try;;
8249esac
8250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8251 (eval "$ac_try") 2>&5
8252 ac_status=$?
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); }; } &&
8255 { ac_try='test -s conftest$ac_exeext'
8256 { (case "(($ac_try" in
8257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258 *) ac_try_echo=$ac_try;;
8259esac
8260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8261 (eval "$ac_try") 2>&5
8262 ac_status=$?
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); }; }; then
8265 ac_cv_func_remove=yes
8266else
8267 echo "$as_me: failed program was:" >&5
8268sed 's/^/| /' conftest.$ac_ext >&5
8269
8270 ac_cv_func_remove=no
8271fi
8272
8273rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8274 conftest$ac_exeext conftest.$ac_ext
8275fi
8276{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8277echo "${ECHO_T}$ac_cv_func_remove" >&6; }
8278
8279 if test $ac_cv_func_remove = no; then
8280 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8281echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
8282if test "${ac_cv_lib_posix_remove+set}" = set; then
8283 echo $ECHO_N "(cached) $ECHO_C" >&6
8284else
8285 ac_check_lib_save_LIBS=$LIBS
8286LIBS="-lposix $LIBS"
8287cat >conftest.$ac_ext <<_ACEOF
8288/* confdefs.h. */
8289_ACEOF
8290cat confdefs.h >>conftest.$ac_ext
8291cat >>conftest.$ac_ext <<_ACEOF
8292/* end confdefs.h. */
8293
8294/* Override any GCC internal prototype to avoid an error.
8295 Use char because int might match the return type of a GCC
8296 builtin and then its argument prototype would still apply. */
8297#ifdef __cplusplus
8298extern "C"
8299#endif
8300char remove ();
8301int
8302main ()
8303{
8304return remove ();
8305 ;
8306 return 0;
8307}
8308_ACEOF
8309rm -f conftest.$ac_objext conftest$ac_exeext
8310if { (ac_try="$ac_link"
8311case "(($ac_try" in
8312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8313 *) ac_try_echo=$ac_try;;
8314esac
8315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8316 (eval "$ac_link") 2>conftest.er1
8317 ac_status=$?
8318 grep -v '^ *+' conftest.er1 >conftest.err
8319 rm -f conftest.er1
8320 cat conftest.err >&5
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); } &&
8323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8324 { (case "(($ac_try" in
8325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8326 *) ac_try_echo=$ac_try;;
8327esac
8328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8329 (eval "$ac_try") 2>&5
8330 ac_status=$?
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); }; } &&
8333 { ac_try='test -s conftest$ac_exeext'
8334 { (case "(($ac_try" in
8335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8336 *) ac_try_echo=$ac_try;;
8337esac
8338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8339 (eval "$ac_try") 2>&5
8340 ac_status=$?
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); }; }; then
8343 ac_cv_lib_posix_remove=yes
8344else
8345 echo "$as_me: failed program was:" >&5
8346sed 's/^/| /' conftest.$ac_ext >&5
8347
8348 ac_cv_lib_posix_remove=no
8349fi
8350
8351rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8352 conftest$ac_exeext conftest.$ac_ext
8353LIBS=$ac_check_lib_save_LIBS
8354fi
8355{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8356echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
8357if test $ac_cv_lib_posix_remove = yes; then
8358 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8359fi
8360
8361 fi
8362
8363 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8364 { echo "$as_me:$LINENO: checking for shmat" >&5
8365echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
8366if test "${ac_cv_func_shmat+set}" = set; then
8367 echo $ECHO_N "(cached) $ECHO_C" >&6
8368else
8369 cat >conftest.$ac_ext <<_ACEOF
8370/* confdefs.h. */
8371_ACEOF
8372cat confdefs.h >>conftest.$ac_ext
8373cat >>conftest.$ac_ext <<_ACEOF
8374/* end confdefs.h. */
8375/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
8376 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8377#define shmat innocuous_shmat
8378
8379/* System header to define __stub macros and hopefully few prototypes,
8380 which can conflict with char shmat (); below.
8381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8382 <limits.h> exists even on freestanding compilers. */
8383
8384#ifdef __STDC__
8385# include <limits.h>
8386#else
8387# include <assert.h>
8388#endif
8389
8390#undef shmat
8391
8392/* Override any GCC internal prototype to avoid an error.
8393 Use char because int might match the return type of a GCC
8394 builtin and then its argument prototype would still apply. */
8395#ifdef __cplusplus
8396extern "C"
8397#endif
8398char shmat ();
8399/* The GNU C library defines this for functions which it implements
8400 to always fail with ENOSYS. Some functions are actually named
8401 something starting with __ and the normal name is an alias. */
8402#if defined __stub_shmat || defined __stub___shmat
8403choke me
8404#endif
8405
8406int
8407main ()
8408{
8409return shmat ();
8410 ;
8411 return 0;
8412}
8413_ACEOF
8414rm -f conftest.$ac_objext conftest$ac_exeext
8415if { (ac_try="$ac_link"
8416case "(($ac_try" in
8417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8418 *) ac_try_echo=$ac_try;;
8419esac
8420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8421 (eval "$ac_link") 2>conftest.er1
8422 ac_status=$?
8423 grep -v '^ *+' conftest.er1 >conftest.err
8424 rm -f conftest.er1
8425 cat conftest.err >&5
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); } &&
8428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8429 { (case "(($ac_try" in
8430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8431 *) ac_try_echo=$ac_try;;
8432esac
8433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8434 (eval "$ac_try") 2>&5
8435 ac_status=$?
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); }; } &&
8438 { ac_try='test -s conftest$ac_exeext'
8439 { (case "(($ac_try" in
8440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8441 *) ac_try_echo=$ac_try;;
8442esac
8443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8444 (eval "$ac_try") 2>&5
8445 ac_status=$?
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); }; }; then
8448 ac_cv_func_shmat=yes
8449else
8450 echo "$as_me: failed program was:" >&5
8451sed 's/^/| /' conftest.$ac_ext >&5
8452
8453 ac_cv_func_shmat=no
8454fi
8455
8456rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8457 conftest$ac_exeext conftest.$ac_ext
8458fi
8459{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8460echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
8461
8462 if test $ac_cv_func_shmat = no; then
8463 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8464echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
8465if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8466 echo $ECHO_N "(cached) $ECHO_C" >&6
8467else
8468 ac_check_lib_save_LIBS=$LIBS
8469LIBS="-lipc $LIBS"
8470cat >conftest.$ac_ext <<_ACEOF
8471/* confdefs.h. */
8472_ACEOF
8473cat confdefs.h >>conftest.$ac_ext
8474cat >>conftest.$ac_ext <<_ACEOF
8475/* end confdefs.h. */
8476
8477/* Override any GCC internal prototype to avoid an error.
8478 Use char because int might match the return type of a GCC
8479 builtin and then its argument prototype would still apply. */
8480#ifdef __cplusplus
8481extern "C"
8482#endif
8483char shmat ();
8484int
8485main ()
8486{
8487return shmat ();
8488 ;
8489 return 0;
8490}
8491_ACEOF
8492rm -f conftest.$ac_objext conftest$ac_exeext
8493if { (ac_try="$ac_link"
8494case "(($ac_try" in
8495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8496 *) ac_try_echo=$ac_try;;
8497esac
8498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8499 (eval "$ac_link") 2>conftest.er1
8500 ac_status=$?
8501 grep -v '^ *+' conftest.er1 >conftest.err
8502 rm -f conftest.er1
8503 cat conftest.err >&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); } &&
8506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8507 { (case "(($ac_try" in
8508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8509 *) ac_try_echo=$ac_try;;
8510esac
8511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8512 (eval "$ac_try") 2>&5
8513 ac_status=$?
8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); }; } &&
8516 { ac_try='test -s conftest$ac_exeext'
8517 { (case "(($ac_try" in
8518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8519 *) ac_try_echo=$ac_try;;
8520esac
8521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8522 (eval "$ac_try") 2>&5
8523 ac_status=$?
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); }; }; then
8526 ac_cv_lib_ipc_shmat=yes
8527else
8528 echo "$as_me: failed program was:" >&5
8529sed 's/^/| /' conftest.$ac_ext >&5
8530
8531 ac_cv_lib_ipc_shmat=no
8532fi
8533
8534rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8535 conftest$ac_exeext conftest.$ac_ext
8536LIBS=$ac_check_lib_save_LIBS
8537fi
8538{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8539echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
8540if test $ac_cv_lib_ipc_shmat = yes; then
8541 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8542fi
8543
8544 fi
8545 fi
8546
8547 # Check for libraries that X11R6 Xt/Xaw programs need.
8548 ac_save_LDFLAGS=$LDFLAGS
8549 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8550 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8551 # check for ICE first), but we must link in the order -lSM -lICE or
8552 # we get undefined symbols. So assume we have SM if we have ICE.
8553 # These have to be linked with before -lX11, unlike the other
8554 # libraries we check for below, so use a different variable.
8555 # John Interrante, Karl Berry
8556 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8557echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
8558if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8559 echo $ECHO_N "(cached) $ECHO_C" >&6
8560else
8561 ac_check_lib_save_LIBS=$LIBS
8562LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8563cat >conftest.$ac_ext <<_ACEOF
8564/* confdefs.h. */
8565_ACEOF
8566cat confdefs.h >>conftest.$ac_ext
8567cat >>conftest.$ac_ext <<_ACEOF
8568/* end confdefs.h. */
8569
8570/* Override any GCC internal prototype to avoid an error.
8571 Use char because int might match the return type of a GCC
8572 builtin and then its argument prototype would still apply. */
8573#ifdef __cplusplus
8574extern "C"
8575#endif
8576char IceConnectionNumber ();
8577int
8578main ()
8579{
8580return IceConnectionNumber ();
8581 ;
8582 return 0;
8583}
8584_ACEOF
8585rm -f conftest.$ac_objext conftest$ac_exeext
8586if { (ac_try="$ac_link"
8587case "(($ac_try" in
8588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8589 *) ac_try_echo=$ac_try;;
8590esac
8591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8592 (eval "$ac_link") 2>conftest.er1
8593 ac_status=$?
8594 grep -v '^ *+' conftest.er1 >conftest.err
8595 rm -f conftest.er1
8596 cat conftest.err >&5
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); } &&
8599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8600 { (case "(($ac_try" in
8601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8602 *) ac_try_echo=$ac_try;;
8603esac
8604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8605 (eval "$ac_try") 2>&5
8606 ac_status=$?
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); }; } &&
8609 { ac_try='test -s conftest$ac_exeext'
8610 { (case "(($ac_try" in
8611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8612 *) ac_try_echo=$ac_try;;
8613esac
8614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8615 (eval "$ac_try") 2>&5
8616 ac_status=$?
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); }; }; then
8619 ac_cv_lib_ICE_IceConnectionNumber=yes
8620else
8621 echo "$as_me: failed program was:" >&5
8622sed 's/^/| /' conftest.$ac_ext >&5
8623
8624 ac_cv_lib_ICE_IceConnectionNumber=no
8625fi
8626
8627rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8628 conftest$ac_exeext conftest.$ac_ext
8629LIBS=$ac_check_lib_save_LIBS
8630fi
8631{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8632echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
8633if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8634 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8635fi
8636
8637 LDFLAGS=$ac_save_LDFLAGS
8638
8639fi
8640
8641
8642ac_save_CPPFLAGS="$CPPFLAGS"
8643CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8644
8645ac_save_LIBS="$LIBS"
8646LIBS="$LIBS $X_LIBS"
8647
8648
8649
8650for ac_header in GL/gl.h GL/glu.h
8651do
8652as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8653{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8654echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8655if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8656 echo $ECHO_N "(cached) $ECHO_C" >&6
8657else
8658 cat >conftest.$ac_ext <<_ACEOF
8659/* confdefs.h. */
8660_ACEOF
8661cat confdefs.h >>conftest.$ac_ext
8662cat >>conftest.$ac_ext <<_ACEOF
8663/* end confdefs.h. */
8664#include <GL/gl.h>
8665
8666#include <$ac_header>
8667_ACEOF
8668rm -f conftest.$ac_objext
8669if { (ac_try="$ac_compile"
8670case "(($ac_try" in
8671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8672 *) ac_try_echo=$ac_try;;
8673esac
8674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8675 (eval "$ac_compile") 2>conftest.er1
8676 ac_status=$?
8677 grep -v '^ *+' conftest.er1 >conftest.err
8678 rm -f conftest.er1
8679 cat conftest.err >&5
8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); } &&
8682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8683 { (case "(($ac_try" in
8684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8685 *) ac_try_echo=$ac_try;;
8686esac
8687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8688 (eval "$ac_try") 2>&5
8689 ac_status=$?
8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); }; } &&
8692 { ac_try='test -s conftest.$ac_objext'
8693 { (case "(($ac_try" in
8694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8695 *) ac_try_echo=$ac_try;;
8696esac
8697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8698 (eval "$ac_try") 2>&5
8699 ac_status=$?
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); }; }; then
8702 eval "$as_ac_Header=yes"
8703else
8704 echo "$as_me: failed program was:" >&5
8705sed 's/^/| /' conftest.$ac_ext >&5
8706
8707 eval "$as_ac_Header=no"
8708fi
8709
8710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8711fi
8712ac_res=`eval echo '${'$as_ac_Header'}'`
8713 { echo "$as_me:$LINENO: result: $ac_res" >&5
8714echo "${ECHO_T}$ac_res" >&6; }
8715if test `eval echo '${'$as_ac_Header'}'` = yes; then
8716 cat >>confdefs.h <<_ACEOF
8717#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8718_ACEOF
8719
8720else
8721 { { echo "$as_me:$LINENO: error: some OpenGL headers missing" >&5
8722echo "$as_me: error: some OpenGL headers missing" >&2;}
8723 { (exit 1); exit 1; }; }
8724fi
8725
8726done
8727
8728
8729{ echo "$as_me:$LINENO: checking for glBegin in -lGL" >&5
8730echo $ECHO_N "checking for glBegin in -lGL... $ECHO_C" >&6; }
8731if test "${ac_cv_lib_GL_glBegin+set}" = set; then
8732 echo $ECHO_N "(cached) $ECHO_C" >&6
8733else
8734 ac_check_lib_save_LIBS=$LIBS
8735LIBS="-lGL $LIBS"
8736cat >conftest.$ac_ext <<_ACEOF
8737/* confdefs.h. */
8738_ACEOF
8739cat confdefs.h >>conftest.$ac_ext
8740cat >>conftest.$ac_ext <<_ACEOF
8741/* end confdefs.h. */
8742
8743/* Override any GCC internal prototype to avoid an error.
8744 Use char because int might match the return type of a GCC
8745 builtin and then its argument prototype would still apply. */
8746#ifdef __cplusplus
8747extern "C"
8748#endif
8749char glBegin ();
8750int
8751main ()
8752{
8753return glBegin ();
8754 ;
8755 return 0;
8756}
8757_ACEOF
8758rm -f conftest.$ac_objext conftest$ac_exeext
8759if { (ac_try="$ac_link"
8760case "(($ac_try" in
8761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8762 *) ac_try_echo=$ac_try;;
8763esac
8764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8765 (eval "$ac_link") 2>conftest.er1
8766 ac_status=$?
8767 grep -v '^ *+' conftest.er1 >conftest.err
8768 rm -f conftest.er1
8769 cat conftest.err >&5
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); } &&
8772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8773 { (case "(($ac_try" in
8774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8775 *) ac_try_echo=$ac_try;;
8776esac
8777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8778 (eval "$ac_try") 2>&5
8779 ac_status=$?
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); }; } &&
8782 { ac_try='test -s conftest$ac_exeext'
8783 { (case "(($ac_try" in
8784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8785 *) ac_try_echo=$ac_try;;
8786esac
8787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8788 (eval "$ac_try") 2>&5
8789 ac_status=$?
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); }; }; then
8792 ac_cv_lib_GL_glBegin=yes
8793else
8794 echo "$as_me: failed program was:" >&5
8795sed 's/^/| /' conftest.$ac_ext >&5
8796
8797 ac_cv_lib_GL_glBegin=no
8798fi
8799
8800rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8801 conftest$ac_exeext conftest.$ac_ext
8802LIBS=$ac_check_lib_save_LIBS
8803fi
8804{ echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glBegin" >&5
8805echo "${ECHO_T}$ac_cv_lib_GL_glBegin" >&6; }
8806if test $ac_cv_lib_GL_glBegin = yes; then
8807 have_gl=yes
8808else
8809 have_gl=no
8810fi
8811
8812{ echo "$as_me:$LINENO: checking for gluPerspective in -lGLU" >&5
8813echo $ECHO_N "checking for gluPerspective in -lGLU... $ECHO_C" >&6; }
8814if test "${ac_cv_lib_GLU_gluPerspective+set}" = set; then
8815 echo $ECHO_N "(cached) $ECHO_C" >&6
8816else
8817 ac_check_lib_save_LIBS=$LIBS
8818LIBS="-lGLU -lGL $GTK_LIBS $LIBS"
8819cat >conftest.$ac_ext <<_ACEOF
8820/* confdefs.h. */
8821_ACEOF
8822cat confdefs.h >>conftest.$ac_ext
8823cat >>conftest.$ac_ext <<_ACEOF
8824/* end confdefs.h. */
8825
8826/* Override any GCC internal prototype to avoid an error.
8827 Use char because int might match the return type of a GCC
8828 builtin and then its argument prototype would still apply. */
8829#ifdef __cplusplus
8830extern "C"
8831#endif
8832char gluPerspective ();
8833int
8834main ()
8835{
8836return gluPerspective ();
8837 ;
8838 return 0;
8839}
8840_ACEOF
8841rm -f conftest.$ac_objext conftest$ac_exeext
8842if { (ac_try="$ac_link"
8843case "(($ac_try" in
8844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8845 *) ac_try_echo=$ac_try;;
8846esac
8847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8848 (eval "$ac_link") 2>conftest.er1
8849 ac_status=$?
8850 grep -v '^ *+' conftest.er1 >conftest.err
8851 rm -f conftest.er1
8852 cat conftest.err >&5
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); } &&
8855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8856 { (case "(($ac_try" in
8857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8858 *) ac_try_echo=$ac_try;;
8859esac
8860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8861 (eval "$ac_try") 2>&5
8862 ac_status=$?
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); }; } &&
8865 { ac_try='test -s conftest$ac_exeext'
8866 { (case "(($ac_try" in
8867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8868 *) ac_try_echo=$ac_try;;
8869esac
8870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8871 (eval "$ac_try") 2>&5
8872 ac_status=$?
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); }; }; then
8875 ac_cv_lib_GLU_gluPerspective=yes
8876else
8877 echo "$as_me: failed program was:" >&5
8878sed 's/^/| /' conftest.$ac_ext >&5
8879
8880 ac_cv_lib_GLU_gluPerspective=no
8881fi
8882
8883rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8884 conftest$ac_exeext conftest.$ac_ext
8885LIBS=$ac_check_lib_save_LIBS
8886fi
8887{ echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluPerspective" >&5
8888echo "${ECHO_T}$ac_cv_lib_GLU_gluPerspective" >&6; }
8889if test $ac_cv_lib_GLU_gluPerspective = yes; then
8890 have_glu=yes
8891else
8892 have_glu=no
8893fi
8894
8895if test $have_gl = no || test $have_glu = no; then
8896 { { echo "$as_me:$LINENO: error: libgl or libglu missing" >&5
8897echo "$as_me: error: libgl or libglu missing" >&2;}
8898 { (exit 1); exit 1; }; }
8899else
8900 GL_LIBS="-lGL -lGLU $GTK_LIBS"
8901
8902fi
8903
8904# Check some UNIX headers
8905
8906
8907
8908for ac_header in dirent.h sys/stat.h unistd.h
8909do
8910as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8911{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8912echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8913if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8914 echo $ECHO_N "(cached) $ECHO_C" >&6
8915else
8916 cat >conftest.$ac_ext <<_ACEOF
8917/* confdefs.h. */
8918_ACEOF
8919cat confdefs.h >>conftest.$ac_ext
8920cat >>conftest.$ac_ext <<_ACEOF
8921/* end confdefs.h. */
8922#include <sys/types.h>
8923
8924#include <$ac_header>
8925_ACEOF
8926rm -f conftest.$ac_objext
8927if { (ac_try="$ac_compile"
8928case "(($ac_try" in
8929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8930 *) ac_try_echo=$ac_try;;
8931esac
8932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8933 (eval "$ac_compile") 2>conftest.er1
8934 ac_status=$?
8935 grep -v '^ *+' conftest.er1 >conftest.err
8936 rm -f conftest.er1
8937 cat conftest.err >&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); } &&
8940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8941 { (case "(($ac_try" in
8942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8943 *) ac_try_echo=$ac_try;;
8944esac
8945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8946 (eval "$ac_try") 2>&5
8947 ac_status=$?
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); }; } &&
8950 { ac_try='test -s conftest.$ac_objext'
8951 { (case "(($ac_try" in
8952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8953 *) ac_try_echo=$ac_try;;
8954esac
8955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8956 (eval "$ac_try") 2>&5
8957 ac_status=$?
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); }; }; then
8960 eval "$as_ac_Header=yes"
8961else
8962 echo "$as_me: failed program was:" >&5
8963sed 's/^/| /' conftest.$ac_ext >&5
8964
8965 eval "$as_ac_Header=no"
8966fi
8967
8968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8969fi
8970ac_res=`eval echo '${'$as_ac_Header'}'`
8971 { echo "$as_me:$LINENO: result: $ac_res" >&5
8972echo "${ECHO_T}$ac_res" >&6; }
8973if test `eval echo '${'$as_ac_Header'}'` = yes; then
8974 cat >>confdefs.h <<_ACEOF
8975#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8976_ACEOF
8977
8978else
8979 { { echo "$as_me:$LINENO: error: missing header file" >&5
8980echo "$as_me: error: missing header file" >&2;}
8981 { (exit 1); exit 1; }; }
8982fi
8983
8984done
8985
8986
8987# Look for snprintf (optional)
8988{ echo "$as_me:$LINENO: checking for snprintf" >&5
8989echo $ECHO_N "checking for snprintf... $ECHO_C" >&6; }
8990if test "${ac_cv_func_snprintf+set}" = set; then
8991 echo $ECHO_N "(cached) $ECHO_C" >&6
8992else
8993 cat >conftest.$ac_ext <<_ACEOF
8994/* confdefs.h. */
8995_ACEOF
8996cat confdefs.h >>conftest.$ac_ext
8997cat >>conftest.$ac_ext <<_ACEOF
8998/* end confdefs.h. */
8999/* Define snprintf to an innocuous variant, in case <limits.h> declares snprintf.
9000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9001#define snprintf innocuous_snprintf
9002
9003/* System header to define __stub macros and hopefully few prototypes,
9004 which can conflict with char snprintf (); below.
9005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9006 <limits.h> exists even on freestanding compilers. */
9007
9008#ifdef __STDC__
9009# include <limits.h>
9010#else
9011# include <assert.h>
9012#endif
9013
9014#undef snprintf
9015
9016/* Override any GCC internal prototype to avoid an error.
9017 Use char because int might match the return type of a GCC
9018 builtin and then its argument prototype would still apply. */
9019#ifdef __cplusplus
9020extern "C"
9021#endif
9022char snprintf ();
9023/* The GNU C library defines this for functions which it implements
9024 to always fail with ENOSYS. Some functions are actually named
9025 something starting with __ and the normal name is an alias. */
9026#if defined __stub_snprintf || defined __stub___snprintf
9027choke me
9028#endif
9029
9030int
9031main ()
9032{
9033return snprintf ();
9034 ;
9035 return 0;
9036}
9037_ACEOF
9038rm -f conftest.$ac_objext conftest$ac_exeext
9039if { (ac_try="$ac_link"
9040case "(($ac_try" in
9041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9042 *) ac_try_echo=$ac_try;;
9043esac
9044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9045 (eval "$ac_link") 2>conftest.er1
9046 ac_status=$?
9047 grep -v '^ *+' conftest.er1 >conftest.err
9048 rm -f conftest.er1
9049 cat conftest.err >&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); } &&
9052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9053 { (case "(($ac_try" in
9054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9055 *) ac_try_echo=$ac_try;;
9056esac
9057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9058 (eval "$ac_try") 2>&5
9059 ac_status=$?
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); }; } &&
9062 { ac_try='test -s conftest$ac_exeext'
9063 { (case "(($ac_try" in
9064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9065 *) ac_try_echo=$ac_try;;
9066esac
9067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9068 (eval "$ac_try") 2>&5
9069 ac_status=$?
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); }; }; then
9072 ac_cv_func_snprintf=yes
9073else
9074 echo "$as_me: failed program was:" >&5
9075sed 's/^/| /' conftest.$ac_ext >&5
9076
9077 ac_cv_func_snprintf=no
9078fi
9079
9080rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9081 conftest$ac_exeext conftest.$ac_ext
9082fi
9083{ echo "$as_me:$LINENO: result: $ac_cv_func_snprintf" >&5
9084echo "${ECHO_T}$ac_cv_func_snprintf" >&6; }
9085if test $ac_cv_func_snprintf = yes; then
9086
9087cat >>confdefs.h <<\_ACEOF
9088#define HAVE_SNPRINTF 1
9089_ACEOF
9090
9091fi
9092
9093
9094# Look for fstat (required)
9095{ echo "$as_me:$LINENO: checking for fstat" >&5
9096echo $ECHO_N "checking for fstat... $ECHO_C" >&6; }
9097if test "${ac_cv_func_fstat+set}" = set; then
9098 echo $ECHO_N "(cached) $ECHO_C" >&6
9099else
9100 cat >conftest.$ac_ext <<_ACEOF
9101/* confdefs.h. */
9102_ACEOF
9103cat confdefs.h >>conftest.$ac_ext
9104cat >>conftest.$ac_ext <<_ACEOF
9105/* end confdefs.h. */
9106/* Define fstat to an innocuous variant, in case <limits.h> declares fstat.
9107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9108#define fstat innocuous_fstat
9109
9110/* System header to define __stub macros and hopefully few prototypes,
9111 which can conflict with char fstat (); below.
9112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9113 <limits.h> exists even on freestanding compilers. */
9114
9115#ifdef __STDC__
9116# include <limits.h>
9117#else
9118# include <assert.h>
9119#endif
9120
9121#undef fstat
9122
9123/* Override any GCC internal prototype to avoid an error.
9124 Use char because int might match the return type of a GCC
9125 builtin and then its argument prototype would still apply. */
9126#ifdef __cplusplus
9127extern "C"
9128#endif
9129char fstat ();
9130/* The GNU C library defines this for functions which it implements
9131 to always fail with ENOSYS. Some functions are actually named
9132 something starting with __ and the normal name is an alias. */
9133#if defined __stub_fstat || defined __stub___fstat
9134choke me
9135#endif
9136
9137int
9138main ()
9139{
9140return fstat ();
9141 ;
9142 return 0;
9143}
9144_ACEOF
9145rm -f conftest.$ac_objext conftest$ac_exeext
9146if { (ac_try="$ac_link"
9147case "(($ac_try" in
9148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9149 *) ac_try_echo=$ac_try;;
9150esac
9151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9152 (eval "$ac_link") 2>conftest.er1
9153 ac_status=$?
9154 grep -v '^ *+' conftest.er1 >conftest.err
9155 rm -f conftest.er1
9156 cat conftest.err >&5
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); } &&
9159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9160 { (case "(($ac_try" in
9161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9162 *) ac_try_echo=$ac_try;;
9163esac
9164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9165 (eval "$ac_try") 2>&5
9166 ac_status=$?
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); }; } &&
9169 { ac_try='test -s conftest$ac_exeext'
9170 { (case "(($ac_try" in
9171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9172 *) ac_try_echo=$ac_try;;
9173esac
9174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9175 (eval "$ac_try") 2>&5
9176 ac_status=$?
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); }; }; then
9179 ac_cv_func_fstat=yes
9180else
9181 echo "$as_me: failed program was:" >&5
9182sed 's/^/| /' conftest.$ac_ext >&5
9183
9184 ac_cv_func_fstat=no
9185fi
9186
9187rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9188 conftest$ac_exeext conftest.$ac_ext
9189fi
9190{ echo "$as_me:$LINENO: result: $ac_cv_func_fstat" >&5
9191echo "${ECHO_T}$ac_cv_func_fstat" >&6; }
9192if test $ac_cv_func_fstat = yes; then
9193 have_fstat=yes
9194else
9195 have_fstat=no
9196fi
9197
9198if test $have_fstat = no; then
9199 { { echo "$as_me:$LINENO: error: fstat function not found" >&5
9200echo "$as_me: error: fstat function not found" >&2;}
9201 { (exit 1); exit 1; }; }
9202fi
9203
9204# Debug level (verbosity & optimization)
9205{ echo "$as_me:$LINENO: checking for debug level" >&5
9206echo $ECHO_N "checking for debug level... $ECHO_C" >&6; }
9207# Check whether --enable-debug was given.
9208if test "${enable_debug+set}" = set; then
9209 enableval=$enable_debug; if test "$enableval" = "yes" ; then DEBUG=1; else DEBUG=$enableval; fi
9210else
9211 DEBUG=0
9212fi
9213
9214{ echo "$as_me:$LINENO: result: $DEBUG" >&5
9215echo "${ECHO_T}$DEBUG" >&6; }
9216
9217
9218if test "$DEBUG" = "0"; then
9219 DBG_CFLAGS="-O2"
9220else
9221 DBG_CFLAGS="-g -DGLIB_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED"
9222fi
9223
9224
9225# Data & plugin directories
9226
9227 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9228 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9229 ac_define_dir=`eval echo $datadir/$PACKAGE`
9230 ac_define_dir=`eval echo $ac_define_dir`
9231
9232cat >>confdefs.h <<_ACEOF
9233#define DATA_DIR "$ac_define_dir"
9234_ACEOF
9235
9236
9237
9238# Create the files
9239ac_config_files="$ac_config_files Makefile m4/Makefile man/Makefile src/Makefile thumbnailer/Makefile pixmaps/Makefile glade/Makefile po/Makefile.in"
9240
9241cat >confcache <<\_ACEOF
9242# This file is a shell script that caches the results of configure
9243# tests run on this system so they can be shared between configure
9244# scripts and configure runs, see configure's option --config-cache.
9245# It is not useful on other systems. If it contains results you don't
9246# want to keep, you may remove or edit it.
9247#
9248# config.status only pays attention to the cache file if you give it
9249# the --recheck option to rerun configure.
9250#
9251# `ac_cv_env_foo' variables (set or unset) will be overridden when
9252# loading this file, other *unset* `ac_cv_foo' will be assigned the
9253# following values.
9254
9255_ACEOF
9256
9257# The following way of writing the cache mishandles newlines in values,
9258# but we know of no workaround that is simple, portable, and efficient.
9259# So, we kill variables containing newlines.
9260# Ultrix sh set writes to stderr and can't be redirected directly,
9261# and sets the high bit in the cache file unless we assign to the vars.
9262(
9263 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9264 eval ac_val=\$$ac_var
9265 case $ac_val in #(
9266 *${as_nl}*)
9267 case $ac_var in #(
9268 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
9269echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
9270 esac
9271 case $ac_var in #(
9272 _ | IFS | as_nl) ;; #(
9273 *) $as_unset $ac_var ;;
9274 esac ;;
9275 esac
9276 done
9277
9278 (set) 2>&1 |
9279 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9280 *${as_nl}ac_space=\ *)
9281 # `set' does not quote correctly, so add quotes (double-quote
9282 # substitution turns \\\\ into \\, and sed turns \\ into \).
9283 sed -n \
9284 "s/'/'\\\\''/g;
9285 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9286 ;; #(
9287 *)
9288 # `set' quotes correctly as required by POSIX, so do not add quotes.
9289 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9290 ;;
9291 esac |
9292 sort
9293) |
9294 sed '
9295 /^ac_cv_env_/b end
9296 t clear
9297 :clear
9298 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9299 t end
9300 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9301 :end' >>confcache
9302if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9303 if test -w "$cache_file"; then
9304 test "x$cache_file" != "x/dev/null" &&
9305 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
9306echo "$as_me: updating cache $cache_file" >&6;}
9307 cat confcache >$cache_file
9308 else
9309 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
9310echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9311 fi
9312fi
9313rm -f confcache
9314
9315test "x$prefix" = xNONE && prefix=$ac_default_prefix
9316# Let make expand exec_prefix.
9317test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9318
9319DEFS=-DHAVE_CONFIG_H
9320
9321ac_libobjs=
9322ac_ltlibobjs=
9323for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9324 # 1. Remove the extension, and $U if already installed.
9325 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9326 ac_i=`echo "$ac_i" | sed "$ac_script"`
9327 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9328 # will be set to the directory where LIBOBJS objects are built.
9329 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9330 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
9331done
9332LIBOBJS=$ac_libobjs
9333
9334LTLIBOBJS=$ac_ltlibobjs
9335
9336
9337if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9338 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9339Usually this means the macro was only invoked conditionally." >&5
9340echo "$as_me: error: conditional \"AMDEP\" was never defined.
9341Usually this means the macro was only invoked conditionally." >&2;}
9342 { (exit 1); exit 1; }; }
9343fi
9344if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9345 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9346Usually this means the macro was only invoked conditionally." >&5
9347echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9348Usually this means the macro was only invoked conditionally." >&2;}
9349 { (exit 1); exit 1; }; }
9350fi
9351
9352: ${CONFIG_STATUS=./config.status}
9353ac_clean_files_save=$ac_clean_files
9354ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9355{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9356echo "$as_me: creating $CONFIG_STATUS" >&6;}
9357cat >$CONFIG_STATUS <<_ACEOF
9358#! $SHELL
9359# Generated by $as_me.
9360# Run this file to recreate the current configuration.
9361# Compiler output produced by configure, useful for debugging
9362# configure, is in config.log if it exists.
9363
9364debug=false
9365ac_cs_recheck=false
9366ac_cs_silent=false
9367SHELL=\${CONFIG_SHELL-$SHELL}
9368_ACEOF
9369
9370cat >>$CONFIG_STATUS <<\_ACEOF
9371## --------------------- ##
9372## M4sh Initialization. ##
9373## --------------------- ##
9374
9375# Be Bourne compatible
9376if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9377 emulate sh
9378 NULLCMD=:
9379 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9380 # is contrary to our usage. Disable this feature.
9381 alias -g '${1+"$@"}'='"$@"'
9382 setopt NO_GLOB_SUBST
9383else
9384 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
9385fi
9386BIN_SH=xpg4; export BIN_SH # for Tru64
9387DUALCASE=1; export DUALCASE # for MKS sh
9388
9389
9390# PATH needs CR
9391# Avoid depending upon Character Ranges.
9392as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9393as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9394as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9395as_cr_digits='0123456789'
9396as_cr_alnum=$as_cr_Letters$as_cr_digits
9397
9398# The user is always right.
9399if test "${PATH_SEPARATOR+set}" != set; then
9400 echo "#! /bin/sh" >conf$$.sh
9401 echo "exit 0" >>conf$$.sh
9402 chmod +x conf$$.sh
9403 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9404 PATH_SEPARATOR=';'
9405 else
9406 PATH_SEPARATOR=:
9407 fi
9408 rm -f conf$$.sh
9409fi
9410
9411# Support unset when possible.
9412if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9413 as_unset=unset
9414else
9415 as_unset=false
9416fi
9417
9418
9419# IFS
9420# We need space, tab and new line, in precisely that order. Quoting is
9421# there to prevent editors from complaining about space-tab.
9422# (If _AS_PATH_WALK were called with IFS unset, it would disable word
9423# splitting by setting IFS to empty value.)
9424as_nl='
9425'
9426IFS=" "" $as_nl"
9427
9428# Find who we are. Look in the path if we contain no directory separator.
9429case $0 in
9430 *[\\/]* ) as_myself=$0 ;;
9431 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9432for as_dir in $PATH
9433do
9434 IFS=$as_save_IFS
9435 test -z "$as_dir" && as_dir=.
9436 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9437done
9438IFS=$as_save_IFS
9439
9440 ;;
9441esac
9442# We did not find ourselves, most probably we were run as `sh COMMAND'
9443# in which case we are not to be found in the path.
9444if test "x$as_myself" = x; then
9445 as_myself=$0
9446fi
9447if test ! -f "$as_myself"; then
9448 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9449 { (exit 1); exit 1; }
9450fi
9451
9452# Work around bugs in pre-3.0 UWIN ksh.
9453for as_var in ENV MAIL MAILPATH
9454do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9455done
9456PS1='$ '
9457PS2='> '
9458PS4='+ '
9459
9460# NLS nuisances.
9461for as_var in \
9462 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9463 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9464 LC_TELEPHONE LC_TIME
9465do
9466 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9467 eval $as_var=C; export $as_var
9468 else
9469 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9470 fi
9471done
9472
9473# Required to use basename.
9474if expr a : '\(a\)' >/dev/null 2>&1 &&
9475 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9476 as_expr=expr
9477else
9478 as_expr=false
9479fi
9480
9481if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9482 as_basename=basename
9483else
9484 as_basename=false
9485fi
9486
9487
9488# Name of the executable.
9489as_me=`$as_basename -- "$0" ||
9490$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9491 X"$0" : 'X\(//\)$' \| \
9492 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9493echo X/"$0" |
9494 sed '/^.*\/\([^/][^/]*\)\/*$/{
9495 s//\1/
9496 q
9497 }
9498 /^X\/\(\/\/\)$/{
9499 s//\1/
9500 q
9501 }
9502 /^X\/\(\/\).*/{
9503 s//\1/
9504 q
9505 }
9506 s/.*/./; q'`
9507
9508# CDPATH.
9509$as_unset CDPATH
9510
9511
9512
9513 as_lineno_1=$LINENO
9514 as_lineno_2=$LINENO
9515 test "x$as_lineno_1" != "x$as_lineno_2" &&
9516 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
9517
9518 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9519 # uniformly replaced by the line number. The first 'sed' inserts a
9520 # line-number line after each line using $LINENO; the second 'sed'
9521 # does the real work. The second script uses 'N' to pair each
9522 # line-number line with the line containing $LINENO, and appends
9523 # trailing '-' during substitution so that $LINENO is not a special
9524 # case at line end.
9525 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9526 # scripts with optimization help from Paolo Bonzini. Blame Lee
9527 # E. McMahon (1931-1989) for sed's syntax. :-)
9528 sed -n '
9529 p
9530 /[$]LINENO/=
9531 ' <$as_myself |
9532 sed '
9533 s/[$]LINENO.*/&-/
9534 t lineno
9535 b
9536 :lineno
9537 N
9538 :loop
9539 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
9540 t loop
9541 s/-\n.*//
9542 ' >$as_me.lineno &&
9543 chmod +x "$as_me.lineno" ||
9544 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
9545 { (exit 1); exit 1; }; }
9546
9547 # Don't try to exec as it changes $[0], causing all sort of problems
9548 # (the dirname of $[0] is not the place where we might find the
9549 # original and so on. Autoconf is especially sensitive to this).
9550 . "./$as_me.lineno"
9551 # Exit status is that of the last command.
9552 exit
9553}
9554
9555
9556if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9557 as_dirname=dirname
9558else
9559 as_dirname=false
9560fi
9561
9562ECHO_C= ECHO_N= ECHO_T=
9563case `echo -n x` in
9564-n*)
9565 case `echo 'x\c'` in
9566 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9567 *) ECHO_C='\c';;
9568 esac;;
9569*)
9570 ECHO_N='-n';;
9571esac
9572
9573if expr a : '\(a\)' >/dev/null 2>&1 &&
9574 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9575 as_expr=expr
9576else
9577 as_expr=false
9578fi
9579
9580rm -f conf$$ conf$$.exe conf$$.file
9581if test -d conf$$.dir; then
9582 rm -f conf$$.dir/conf$$.file
9583else
9584 rm -f conf$$.dir
9585 mkdir conf$$.dir
9586fi
9587echo >conf$$.file
9588if ln -s conf$$.file conf$$ 2>/dev/null; then
9589 as_ln_s='ln -s'
9590 # ... but there are two gotchas:
9591 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9592 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9593 # In both cases, we have to default to `cp -p'.
9594 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9595 as_ln_s='cp -p'
9596elif ln conf$$.file conf$$ 2>/dev/null; then
9597 as_ln_s=ln
9598else
9599 as_ln_s='cp -p'
9600fi
9601rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9602rmdir conf$$.dir 2>/dev/null
9603
9604if mkdir -p . 2>/dev/null; then
9605 as_mkdir_p=:
9606else
9607 test -d ./-p && rmdir ./-p
9608 as_mkdir_p=false
9609fi
9610
9611# Find out whether ``test -x'' works. Don't use a zero-byte file, as
9612# systems may use methods other than mode bits to determine executability.
9613cat >conf$$.file <<_ASEOF
9614#! /bin/sh
9615exit 0
9616_ASEOF
9617chmod +x conf$$.file
9618if test -x conf$$.file >/dev/null 2>&1; then
9619 as_executable_p="test -x"
9620else
9621 as_executable_p=:
9622fi
9623rm -f conf$$.file
9624
9625# Sed expression to map a string onto a valid CPP name.
9626as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9627
9628# Sed expression to map a string onto a valid variable name.
9629as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9630
9631
9632exec 6>&1
9633
9634# Save the log message, to keep $[0] and so on meaningful, and to
9635# report actual input values of CONFIG_FILES etc. instead of their
9636# values after options handling.
9637ac_log="
9638This file was extended by $as_me, which was
9639generated by GNU Autoconf 2.60a. Invocation command line was
9640
9641 CONFIG_FILES = $CONFIG_FILES
9642 CONFIG_HEADERS = $CONFIG_HEADERS
9643 CONFIG_LINKS = $CONFIG_LINKS
9644 CONFIG_COMMANDS = $CONFIG_COMMANDS
9645 $ $0 $@
9646
9647on `(hostname || uname -n) 2>/dev/null | sed 1q`
9648"
9649
9650_ACEOF
9651
9652cat >>$CONFIG_STATUS <<_ACEOF
9653# Files that config.status was made for.
9654config_files="$ac_config_files"
9655config_headers="$ac_config_headers"
9656config_commands="$ac_config_commands"
9657
9658_ACEOF
9659
9660cat >>$CONFIG_STATUS <<\_ACEOF
9661ac_cs_usage="\
9662\`$as_me' instantiates files from templates according to the
9663current configuration.
9664
9665Usage: $0 [OPTIONS] [FILE]...
9666
9667 -h, --help print this help, then exit
9668 -V, --version print version number and configuration settings, then exit
9669 -q, --quiet do not print progress messages
9670 -d, --debug don't remove temporary files
9671 --recheck update $as_me by reconfiguring in the same conditions
9672 --file=FILE[:TEMPLATE]
9673 instantiate the configuration file FILE
9674 --header=FILE[:TEMPLATE]
9675 instantiate the configuration header FILE
9676
9677Configuration files:
9678$config_files
9679
9680Configuration headers:
9681$config_headers
9682
9683Configuration commands:
9684$config_commands
9685
9686Report bugs to <bug-autoconf@gnu.org>."
9687
9688_ACEOF
9689cat >>$CONFIG_STATUS <<_ACEOF
9690ac_cs_version="\\
9691config.status
9692configured by $0, generated by GNU Autoconf 2.60a,
9693 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
9694
9695Copyright (C) 2006 Free Software Foundation, Inc.
9696This config.status script is free software; the Free Software Foundation
9697gives unlimited permission to copy, distribute and modify it."
9698
9699ac_pwd='$ac_pwd'
9700srcdir='$srcdir'
9701INSTALL='$INSTALL'
9702_ACEOF
9703
9704cat >>$CONFIG_STATUS <<\_ACEOF
9705# If no file are specified by the user, then we need to provide default
9706# value. By we need to know if files were specified by the user.
9707ac_need_defaults=:
9708while test $# != 0
9709do
9710 case $1 in
9711 --*=*)
9712 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9713 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9714 ac_shift=:
9715 ;;
9716 *)
9717 ac_option=$1
9718 ac_optarg=$2
9719 ac_shift=shift
9720 ;;
9721 esac
9722
9723 case $ac_option in
9724 # Handling of the options.
9725 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9726 ac_cs_recheck=: ;;
9727 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9728 echo "$ac_cs_version"; exit ;;
9729 --debug | --debu | --deb | --de | --d | -d )
9730 debug=: ;;
9731 --file | --fil | --fi | --f )
9732 $ac_shift
9733 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9734 ac_need_defaults=false;;
9735 --header | --heade | --head | --hea )
9736 $ac_shift
9737 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9738 ac_need_defaults=false;;
9739 --he | --h)
9740 # Conflict between --help and --header
9741 { echo "$as_me: error: ambiguous option: $1
9742Try \`$0 --help' for more information." >&2
9743 { (exit 1); exit 1; }; };;
9744 --help | --hel | -h )
9745 echo "$ac_cs_usage"; exit ;;
9746 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9747 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9748 ac_cs_silent=: ;;
9749
9750 # This is an error.
9751 -*) { echo "$as_me: error: unrecognized option: $1
9752Try \`$0 --help' for more information." >&2
9753 { (exit 1); exit 1; }; } ;;
9754
9755 *) ac_config_targets="$ac_config_targets $1"
9756 ac_need_defaults=false ;;
9757
9758 esac
9759 shift
9760done
9761
9762ac_configure_extra_args=
9763
9764if $ac_cs_silent; then
9765 exec 6>/dev/null
9766 ac_configure_extra_args="$ac_configure_extra_args --silent"
9767fi
9768
9769_ACEOF
9770cat >>$CONFIG_STATUS <<_ACEOF
9771if \$ac_cs_recheck; then
9772 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9773 CONFIG_SHELL=$SHELL
9774 export CONFIG_SHELL
9775 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9776fi
9777
9778_ACEOF
9779cat >>$CONFIG_STATUS <<\_ACEOF
9780exec 5>>config.log
9781{
9782 echo
9783 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9784## Running $as_me. ##
9785_ASBOX
9786 echo "$ac_log"
9787} >&5
9788
9789_ACEOF
9790cat >>$CONFIG_STATUS <<_ACEOF
9791#
9792# INIT-COMMANDS
9793#
9794AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9795
9796
9797_ACEOF
9798
9799cat >>$CONFIG_STATUS <<\_ACEOF
9800
9801# Handling of arguments.
9802for ac_config_target in $ac_config_targets
9803do
9804 case $ac_config_target in
9805 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9806 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9807 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
9808 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9809 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
9810 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
9811 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9812 "thumbnailer/Makefile") CONFIG_FILES="$CONFIG_FILES thumbnailer/Makefile" ;;
9813 "pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/Makefile" ;;
9814 "glade/Makefile") CONFIG_FILES="$CONFIG_FILES glade/Makefile" ;;
9815 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
9816
9817 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9818echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9819 { (exit 1); exit 1; }; };;
9820 esac
9821done
9822
9823
9824# If the user did not use the arguments to specify the items to instantiate,
9825# then the envvar interface is used. Set only those that are not.
9826# We use the long form for the default assignment because of an extremely
9827# bizarre bug on SunOS 4.1.3.
9828if $ac_need_defaults; then
9829 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9830 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9831 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9832fi
9833
9834# Have a temporary directory for convenience. Make it in the build tree
9835# simply because there is no reason against having it here, and in addition,
9836# creating and moving files from /tmp can sometimes cause problems.
9837# Hook for its removal unless debugging.
9838# Note that there is a small window in which the directory will not be cleaned:
9839# after its creation but before its name has been assigned to `$tmp'.
9840$debug ||
9841{
9842 tmp=
9843 trap 'exit_status=$?
9844 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9845' 0
9846 trap '{ (exit 1); exit 1; }' 1 2 13 15
9847}
9848# Create a (secure) tmp directory for tmp files.
9849
9850{
9851 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9852 test -n "$tmp" && test -d "$tmp"
9853} ||
9854{
9855 tmp=./conf$$-$RANDOM
9856 (umask 077 && mkdir "$tmp")
9857} ||
9858{
9859 echo "$me: cannot create a temporary directory in ." >&2
9860 { (exit 1); exit 1; }
9861}
9862
9863#
9864# Set up the sed scripts for CONFIG_FILES section.
9865#
9866
9867# No need to generate the scripts if there are no CONFIG_FILES.
9868# This happens for instance when ./config.status config.h
9869if test -n "$CONFIG_FILES"; then
9870
9871_ACEOF
9872
9873
9874
9875ac_delim='%!_!# '
9876for ac_last_try in false false false false false :; do
9877 cat >conf$$subs.sed <<_ACEOF
9878SHELL!$SHELL$ac_delim
9879PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
9880PACKAGE_NAME!$PACKAGE_NAME$ac_delim
9881PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
9882PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
9883PACKAGE_STRING!$PACKAGE_STRING$ac_delim
9884PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
9885exec_prefix!$exec_prefix$ac_delim
9886prefix!$prefix$ac_delim
9887program_transform_name!$program_transform_name$ac_delim
9888bindir!$bindir$ac_delim
9889sbindir!$sbindir$ac_delim
9890libexecdir!$libexecdir$ac_delim
9891datarootdir!$datarootdir$ac_delim
9892datadir!$datadir$ac_delim
9893sysconfdir!$sysconfdir$ac_delim
9894sharedstatedir!$sharedstatedir$ac_delim
9895localstatedir!$localstatedir$ac_delim
9896includedir!$includedir$ac_delim
9897oldincludedir!$oldincludedir$ac_delim
9898docdir!$docdir$ac_delim
9899infodir!$infodir$ac_delim
9900htmldir!$htmldir$ac_delim
9901dvidir!$dvidir$ac_delim
9902pdfdir!$pdfdir$ac_delim
9903psdir!$psdir$ac_delim
9904libdir!$libdir$ac_delim
9905localedir!$localedir$ac_delim
9906mandir!$mandir$ac_delim
9907DEFS!$DEFS$ac_delim
9908ECHO_C!$ECHO_C$ac_delim
9909ECHO_N!$ECHO_N$ac_delim
9910ECHO_T!$ECHO_T$ac_delim
9911LIBS!$LIBS$ac_delim
9912build_alias!$build_alias$ac_delim
9913host_alias!$host_alias$ac_delim
9914target_alias!$target_alias$ac_delim
9915INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
9916INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
9917INSTALL_DATA!$INSTALL_DATA$ac_delim
9918CYGPATH_W!$CYGPATH_W$ac_delim
9919PACKAGE!$PACKAGE$ac_delim
9920VERSION!$VERSION$ac_delim
9921ACLOCAL!$ACLOCAL$ac_delim
9922AUTOCONF!$AUTOCONF$ac_delim
9923AUTOMAKE!$AUTOMAKE$ac_delim
9924AUTOHEADER!$AUTOHEADER$ac_delim
9925MAKEINFO!$MAKEINFO$ac_delim
9926AMTAR!$AMTAR$ac_delim
9927install_sh!$install_sh$ac_delim
9928STRIP!$STRIP$ac_delim
9929INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
9930AWK!$AWK$ac_delim
9931SET_MAKE!$SET_MAKE$ac_delim
9932am__leading_dot!$am__leading_dot$ac_delim
9933CC!$CC$ac_delim
9934CFLAGS!$CFLAGS$ac_delim
9935LDFLAGS!$LDFLAGS$ac_delim
9936CPPFLAGS!$CPPFLAGS$ac_delim
9937ac_ct_CC!$ac_ct_CC$ac_delim
9938EXEEXT!$EXEEXT$ac_delim
9939OBJEXT!$OBJEXT$ac_delim
9940DEPDIR!$DEPDIR$ac_delim
9941am__include!$am__include$ac_delim
9942am__quote!$am__quote$ac_delim
9943AMDEP_TRUE!$AMDEP_TRUE$ac_delim
9944AMDEP_FALSE!$AMDEP_FALSE$ac_delim
9945AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
9946CCDEPMODE!$CCDEPMODE$ac_delim
9947am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
9948am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
9949CPP!$CPP$ac_delim
9950GREP!$GREP$ac_delim
9951EGREP!$EGREP$ac_delim
9952USE_NLS!$USE_NLS$ac_delim
9953MSGFMT!$MSGFMT$ac_delim
9954GMSGFMT!$GMSGFMT$ac_delim
9955XGETTEXT!$XGETTEXT$ac_delim
9956CATALOGS!$CATALOGS$ac_delim
9957CATOBJEXT!$CATOBJEXT$ac_delim
9958DATADIRNAME!$DATADIRNAME$ac_delim
9959GMOFILES!$GMOFILES$ac_delim
9960INSTOBJEXT!$INSTOBJEXT$ac_delim
9961INTLLIBS!$INTLLIBS$ac_delim
9962PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
9963PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
9964POFILES!$POFILES$ac_delim
9965POSUB!$POSUB$ac_delim
9966MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
9967GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
9968PKG_CONFIG!$PKG_CONFIG$ac_delim
9969GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
9970GLIB_LIBS!$GLIB_LIBS$ac_delim
9971GLIB_GENMARSHAL!$GLIB_GENMARSHAL$ac_delim
9972GOBJECT_QUERY!$GOBJECT_QUERY$ac_delim
9973GLIB_MKENUMS!$GLIB_MKENUMS$ac_delim
9974GTK_CFLAGS!$GTK_CFLAGS$ac_delim
9975_ACEOF
9976
9977 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
9978 break
9979 elif $ac_last_try; then
9980 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9981echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9982 { (exit 1); exit 1; }; }
9983 else
9984 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9985 fi
9986done
9987
9988ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9989if test -n "$ac_eof"; then
9990 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
9991 ac_eof=`expr $ac_eof + 1`
9992fi
9993
9994cat >>$CONFIG_STATUS <<_ACEOF
9995cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
9996/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9997_ACEOF
9998sed '
9999s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10000s/^/s,@/; s/!/@,|#_!!_#|/
10001:n
10002t n
10003s/'"$ac_delim"'$/,g/; t
10004s/$/\\/; p
10005N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10006' >>$CONFIG_STATUS <conf$$subs.sed
10007rm -f conf$$subs.sed
10008cat >>$CONFIG_STATUS <<_ACEOF
10009CEOF$ac_eof
10010_ACEOF
10011
10012
10013ac_delim='%!_!# '
10014for ac_last_try in false false false false false :; do
10015 cat >conf$$subs.sed <<_ACEOF
10016GTK_LIBS!$GTK_LIBS$ac_delim
10017LIBGLADE_CFLAGS!$LIBGLADE_CFLAGS$ac_delim
10018LIBGLADE_LIBS!$LIBGLADE_LIBS$ac_delim
10019GTKGLEXT_CFLAGS!$GTKGLEXT_CFLAGS$ac_delim
10020GTKGLEXT_LIBS!$GTKGLEXT_LIBS$ac_delim
10021LIBG3D_CFLAGS!$LIBG3D_CFLAGS$ac_delim
10022LIBG3D_LIBS!$LIBG3D_LIBS$ac_delim
10023XMKMF!$XMKMF$ac_delim
10024X_CFLAGS!$X_CFLAGS$ac_delim
10025X_PRE_LIBS!$X_PRE_LIBS$ac_delim
10026X_LIBS!$X_LIBS$ac_delim
10027X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
10028GL_LIBS!$GL_LIBS$ac_delim
10029DEBUG!$DEBUG$ac_delim
10030DBG_CFLAGS!$DBG_CFLAGS$ac_delim
10031LIBOBJS!$LIBOBJS$ac_delim
10032LTLIBOBJS!$LTLIBOBJS$ac_delim
10033_ACEOF
10034
10035 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 17; then
10036 break
10037 elif $ac_last_try; then
10038 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10039echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10040 { (exit 1); exit 1; }; }
10041 else
10042 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10043 fi
10044done
10045
10046ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10047if test -n "$ac_eof"; then
10048 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10049 ac_eof=`expr $ac_eof + 1`
10050fi
10051
10052cat >>$CONFIG_STATUS <<_ACEOF
10053cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
10054/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
10055_ACEOF
10056sed '
10057s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10058s/^/s,@/; s/!/@,|#_!!_#|/
10059:n
10060t n
10061s/'"$ac_delim"'$/,g/; t
10062s/$/\\/; p
10063N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10064' >>$CONFIG_STATUS <conf$$subs.sed
10065rm -f conf$$subs.sed
10066cat >>$CONFIG_STATUS <<_ACEOF
10067:end
10068s/|#_!!_#|//g
10069CEOF$ac_eof
10070_ACEOF
10071
10072
10073# VPATH may cause trouble with some makes, so we remove $(srcdir),
10074# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10075# trailing colons and then remove the whole line if VPATH becomes empty
10076# (actually we leave an empty line to preserve line numbers).
10077if test "x$srcdir" = x.; then
10078 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10079s/:*\$(srcdir):*/:/
10080s/:*\${srcdir}:*/:/
10081s/:*@srcdir@:*/:/
10082s/^\([^=]*=[ ]*\):*/\1/
10083s/:*$//
10084s/^[^=]*=[ ]*$//
10085}'
10086fi
10087
10088cat >>$CONFIG_STATUS <<\_ACEOF
10089fi # test -n "$CONFIG_FILES"
10090
10091
10092for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
10093do
10094 case $ac_tag in
10095 :[FHLC]) ac_mode=$ac_tag; continue;;
10096 esac
10097 case $ac_mode$ac_tag in
10098 :[FHL]*:*);;
10099 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
10100echo "$as_me: error: Invalid tag $ac_tag." >&2;}
10101 { (exit 1); exit 1; }; };;
10102 :[FH]-) ac_tag=-:-;;
10103 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10104 esac
10105 ac_save_IFS=$IFS
10106 IFS=:
10107 set x $ac_tag
10108 IFS=$ac_save_IFS
10109 shift
10110 ac_file=$1
10111 shift
10112
10113 case $ac_mode in
10114 :L) ac_source=$1;;
10115 :[FH])
10116 ac_file_inputs=
10117 for ac_f
10118 do
10119 case $ac_f in
10120 -) ac_f="$tmp/stdin";;
10121 *) # Look for the file first in the build tree, then in the source tree
10122 # (if the path is not absolute). The absolute path cannot be DOS-style,
10123 # because $ac_f cannot contain `:'.
10124 test -f "$ac_f" ||
10125 case $ac_f in
10126 [\\/$]*) false;;
10127 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10128 esac ||
10129 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10130echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10131 { (exit 1); exit 1; }; };;
10132 esac
10133 ac_file_inputs="$ac_file_inputs $ac_f"
10134 done
10135
10136 # Let's still pretend it is `configure' which instantiates (i.e., don't
10137 # use $as_me), people would be surprised to read:
10138 # /* config.h. Generated by config.status. */
10139 configure_input="Generated from "`IFS=:
10140 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
10141 if test x"$ac_file" != x-; then
10142 configure_input="$ac_file. $configure_input"
10143 { echo "$as_me:$LINENO: creating $ac_file" >&5
10144echo "$as_me: creating $ac_file" >&6;}
10145 fi
10146
10147 case $ac_tag in
10148 *:-:* | *:-) cat >"$tmp/stdin";;
10149 esac
10150 ;;
10151 esac
10152
10153 ac_dir=`$as_dirname -- "$ac_file" ||
10154$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10155 X"$ac_file" : 'X\(//\)[^/]' \| \
10156 X"$ac_file" : 'X\(//\)$' \| \
10157 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10158echo X"$ac_file" |
10159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10160 s//\1/
10161 q
10162 }
10163 /^X\(\/\/\)[^/].*/{
10164 s//\1/
10165 q
10166 }
10167 /^X\(\/\/\)$/{
10168 s//\1/
10169 q
10170 }
10171 /^X\(\/\).*/{
10172 s//\1/
10173 q
10174 }
10175 s/.*/./; q'`
10176 { as_dir="$ac_dir"
10177 case $as_dir in #(
10178 -*) as_dir=./$as_dir;;
10179 esac
10180 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10181 as_dirs=
10182 while :; do
10183 case $as_dir in #(
10184 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10185 *) as_qdir=$as_dir;;
10186 esac
10187 as_dirs="'$as_qdir' $as_dirs"
10188 as_dir=`$as_dirname -- "$as_dir" ||
10189$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10190 X"$as_dir" : 'X\(//\)[^/]' \| \
10191 X"$as_dir" : 'X\(//\)$' \| \
10192 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10193echo X"$as_dir" |
10194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10195 s//\1/
10196 q
10197 }
10198 /^X\(\/\/\)[^/].*/{
10199 s//\1/
10200 q
10201 }
10202 /^X\(\/\/\)$/{
10203 s//\1/
10204 q
10205 }
10206 /^X\(\/\).*/{
10207 s//\1/
10208 q
10209 }
10210 s/.*/./; q'`
10211 test -d "$as_dir" && break
10212 done
10213 test -z "$as_dirs" || eval "mkdir $as_dirs"
10214 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10215echo "$as_me: error: cannot create directory $as_dir" >&2;}
10216 { (exit 1); exit 1; }; }; }
10217 ac_builddir=.
10218
10219case "$ac_dir" in
10220.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10221*)
10222 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10223 # A ".." for each directory in $ac_dir_suffix.
10224 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
10225 case $ac_top_builddir_sub in
10226 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10227 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10228 esac ;;
10229esac
10230ac_abs_top_builddir=$ac_pwd
10231ac_abs_builddir=$ac_pwd$ac_dir_suffix
10232# for backward compatibility:
10233ac_top_builddir=$ac_top_build_prefix
10234
10235case $srcdir in
10236 .) # We are building in place.
10237 ac_srcdir=.
10238 ac_top_srcdir=$ac_top_builddir_sub
10239 ac_abs_top_srcdir=$ac_pwd ;;
10240 [\\/]* | ?:[\\/]* ) # Absolute name.
10241 ac_srcdir=$srcdir$ac_dir_suffix;
10242 ac_top_srcdir=$srcdir
10243 ac_abs_top_srcdir=$srcdir ;;
10244 *) # Relative name.
10245 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10246 ac_top_srcdir=$ac_top_build_prefix$srcdir
10247 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10248esac
10249ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10250
10251
10252 case $ac_mode in
10253 :F)
10254 #
10255 # CONFIG_FILE
10256 #
10257
10258 case $INSTALL in
10259 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10260 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10261 esac
10262_ACEOF
10263
10264cat >>$CONFIG_STATUS <<\_ACEOF
10265# If the template does not know about datarootdir, expand it.
10266# FIXME: This hack should be removed a few years after 2.60.
10267ac_datarootdir_hack=; ac_datarootdir_seen=
10268
10269case `sed -n '/datarootdir/ {
10270 p
10271 q
10272}
10273/@datadir@/p
10274/@docdir@/p
10275/@infodir@/p
10276/@localedir@/p
10277/@mandir@/p
10278' $ac_file_inputs` in
10279*datarootdir*) ac_datarootdir_seen=yes;;
10280*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10281 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10282echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10283_ACEOF
10284cat >>$CONFIG_STATUS <<_ACEOF
10285 ac_datarootdir_hack='
10286 s&@datadir@&$datadir&g
10287 s&@docdir@&$docdir&g
10288 s&@infodir@&$infodir&g
10289 s&@localedir@&$localedir&g
10290 s&@mandir@&$mandir&g
10291 s&\\\${datarootdir}&$datarootdir&g' ;;
10292esac
10293_ACEOF
10294
10295# Neutralize VPATH when `$srcdir' = `.'.
10296# Shell code in configure.ac might set extrasub.
10297# FIXME: do we really want to maintain this feature?
10298cat >>$CONFIG_STATUS <<_ACEOF
10299 sed "$ac_vpsub
10300$extrasub
10301_ACEOF
10302cat >>$CONFIG_STATUS <<\_ACEOF
10303:t
10304/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10305s&@configure_input@&$configure_input&;t t
10306s&@top_builddir@&$ac_top_builddir_sub&;t t
10307s&@srcdir@&$ac_srcdir&;t t
10308s&@abs_srcdir@&$ac_abs_srcdir&;t t
10309s&@top_srcdir@&$ac_top_srcdir&;t t
10310s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10311s&@builddir@&$ac_builddir&;t t
10312s&@abs_builddir@&$ac_abs_builddir&;t t
10313s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10314s&@INSTALL@&$ac_INSTALL&;t t
10315$ac_datarootdir_hack
10316" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
10317
10318test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10319 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10320 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10321 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10322which seems to be undefined. Please make sure it is defined." >&5
10323echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10324which seems to be undefined. Please make sure it is defined." >&2;}
10325
10326 rm -f "$tmp/stdin"
10327 case $ac_file in
10328 -) cat "$tmp/out"; rm -f "$tmp/out";;
10329 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
10330 esac
10331 ;;
10332 :H)
10333 #
10334 # CONFIG_HEADER
10335 #
10336_ACEOF
10337
10338# Transform confdefs.h into a sed script `conftest.defines', that
10339# substitutes the proper values into config.h.in to produce config.h.
10340rm -f conftest.defines conftest.tail
10341# First, append a space to every undef/define line, to ease matching.
10342echo 's/$/ /' >conftest.defines
10343# Then, protect against being on the right side of a sed subst, or in
10344# an unquoted here document, in config.status. If some macros were
10345# called several times there might be several #defines for the same
10346# symbol, which is useless. But do not sort them, since the last
10347# AC_DEFINE must be honored.
10348ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10349# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
10350# NAME is the cpp macro being defined, VALUE is the value it is being given.
10351# PARAMS is the parameter list in the macro definition--in most cases, it's
10352# just an empty string.
10353ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
10354ac_dB='\\)[ (].*,\\1define\\2'
10355ac_dC=' '
10356ac_dD=' ,'
10357
10358uniq confdefs.h |
10359 sed -n '
10360 t rset
10361 :rset
10362 s/^[ ]*#[ ]*define[ ][ ]*//
10363 t ok
10364 d
10365 :ok
10366 s/[\\&,]/\\&/g
10367 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
10368 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
10369 ' >>conftest.defines
10370
10371# Remove the space that was appended to ease matching.
10372# Then replace #undef with comments. This is necessary, for
10373# example, in the case of _POSIX_SOURCE, which is predefined and required
10374# on some systems where configure will not decide to define it.
10375# (The regexp can be short, since the line contains either #define or #undef.)
10376echo 's/ $//
10377s,^[ #]*u.*,/* & */,' >>conftest.defines
10378
10379# Break up conftest.defines:
10380ac_max_sed_lines=50
10381
10382# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
10383# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
10384# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
10385# et cetera.
10386ac_in='$ac_file_inputs'
10387ac_out='"$tmp/out1"'
10388ac_nxt='"$tmp/out2"'
10389
10390while :
10391do
10392 # Write a here document:
10393 cat >>$CONFIG_STATUS <<_ACEOF
10394 # First, check the format of the line:
10395 cat >"\$tmp/defines.sed" <<\\CEOF
10396/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
10397/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
10398b
10399:def
10400_ACEOF
10401 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
10402 echo 'CEOF
10403 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
10404 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
10405 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
10406 grep . conftest.tail >/dev/null || break
10407 rm -f conftest.defines
10408 mv conftest.tail conftest.defines
10409done
10410rm -f conftest.defines conftest.tail
10411
10412echo "ac_result=$ac_in" >>$CONFIG_STATUS
10413cat >>$CONFIG_STATUS <<\_ACEOF
10414 if test x"$ac_file" != x-; then
10415 echo "/* $configure_input */" >"$tmp/config.h"
10416 cat "$ac_result" >>"$tmp/config.h"
10417 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
10418 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10419echo "$as_me: $ac_file is unchanged" >&6;}
10420 else
10421 rm -f $ac_file
10422 mv "$tmp/config.h" $ac_file
10423 fi
10424 else
10425 echo "/* $configure_input */"
10426 cat "$ac_result"
10427 fi
10428 rm -f "$tmp/out12"
10429# Compute $ac_file's index in $config_headers.
10430_am_stamp_count=1
10431for _am_header in $config_headers :; do
10432 case $_am_header in
10433 $ac_file | $ac_file:* )
10434 break ;;
10435 * )
10436 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10437 esac
10438done
10439echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
10440$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10441 X$ac_file : 'X\(//\)[^/]' \| \
10442 X$ac_file : 'X\(//\)$' \| \
10443 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
10444echo X$ac_file |
10445 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10446 s//\1/
10447 q
10448 }
10449 /^X\(\/\/\)[^/].*/{
10450 s//\1/
10451 q
10452 }
10453 /^X\(\/\/\)$/{
10454 s//\1/
10455 q
10456 }
10457 /^X\(\/\).*/{
10458 s//\1/
10459 q
10460 }
10461 s/.*/./; q'`/stamp-h$_am_stamp_count
10462 ;;
10463
10464 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
10465echo "$as_me: executing $ac_file commands" >&6;}
10466 ;;
10467 esac
10468
10469
10470 case $ac_file$ac_mode in
10471 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10472 # Strip MF so we end up with the name of the file.
10473 mf=`echo "$mf" | sed -e 's/:.*$//'`
10474 # Check whether this is an Automake generated Makefile or not.
10475 # We used to match only the files named `Makefile.in', but
10476 # some people rename them; so instead we look at the file content.
10477 # Grep'ing the first line is not enough: some people post-process
10478 # each Makefile.in and add a new line on top of each file to say so.
10479 # So let's grep whole file.
10480 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10481 dirpart=`$as_dirname -- "$mf" ||
10482$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10483 X"$mf" : 'X\(//\)[^/]' \| \
10484 X"$mf" : 'X\(//\)$' \| \
10485 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10486echo X"$mf" |
10487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10488 s//\1/
10489 q
10490 }
10491 /^X\(\/\/\)[^/].*/{
10492 s//\1/
10493 q
10494 }
10495 /^X\(\/\/\)$/{
10496 s//\1/
10497 q
10498 }
10499 /^X\(\/\).*/{
10500 s//\1/
10501 q
10502 }
10503 s/.*/./; q'`
10504 else
10505 continue
10506 fi
10507 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
10508 # Extract the definition of DEP_FILES from the Makefile without
10509 # running `make'.
10510 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
10511 test -z "$DEPDIR" && continue
10512 # When using ansi2knr, U may be empty or an underscore; expand it
10513 U=`sed -n -e '/^U = / s///p' < "$mf"`
10514 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
10515 # We invoke sed twice because it is the simplest approach to
10516 # changing $(DEPDIR) to its actual value in the expansion.
10517 for file in `sed -n -e '
10518 /^DEP_FILES = .*\\\\$/ {
10519 s/^DEP_FILES = //
10520 :loop
10521 s/\\\\$//
10522 p
10523 n
10524 /\\\\$/ b loop
10525 p
10526 }
10527 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
10528 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10529 # Make sure the directory exists.
10530 test -f "$dirpart/$file" && continue
10531 fdir=`$as_dirname -- "$file" ||
10532$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10533 X"$file" : 'X\(//\)[^/]' \| \
10534 X"$file" : 'X\(//\)$' \| \
10535 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10536echo X"$file" |
10537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10538 s//\1/
10539 q
10540 }
10541 /^X\(\/\/\)[^/].*/{
10542 s//\1/
10543 q
10544 }
10545 /^X\(\/\/\)$/{
10546 s//\1/
10547 q
10548 }
10549 /^X\(\/\).*/{
10550 s//\1/
10551 q
10552 }
10553 s/.*/./; q'`
10554 { as_dir=$dirpart/$fdir
10555 case $as_dir in #(
10556 -*) as_dir=./$as_dir;;
10557 esac
10558 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10559 as_dirs=
10560 while :; do
10561 case $as_dir in #(
10562 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10563 *) as_qdir=$as_dir;;
10564 esac
10565 as_dirs="'$as_qdir' $as_dirs"
10566 as_dir=`$as_dirname -- "$as_dir" ||
10567$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10568 X"$as_dir" : 'X\(//\)[^/]' \| \
10569 X"$as_dir" : 'X\(//\)$' \| \
10570 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10571echo X"$as_dir" |
10572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10573 s//\1/
10574 q
10575 }
10576 /^X\(\/\/\)[^/].*/{
10577 s//\1/
10578 q
10579 }
10580 /^X\(\/\/\)$/{
10581 s//\1/
10582 q
10583 }
10584 /^X\(\/\).*/{
10585 s//\1/
10586 q
10587 }
10588 s/.*/./; q'`
10589 test -d "$as_dir" && break
10590 done
10591 test -z "$as_dirs" || eval "mkdir $as_dirs"
10592 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10593echo "$as_me: error: cannot create directory $as_dir" >&2;}
10594 { (exit 1); exit 1; }; }; }
10595 # echo "creating $dirpart/$file"
10596 echo '# dummy' > "$dirpart/$file"
10597 done
10598done
10599 ;;
10600 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
10601 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
10602 esac ;;
10603
10604 esac
10605done # for ac_tag
10606
10607
10608{ (exit 0); exit 0; }
10609_ACEOF
10610chmod +x $CONFIG_STATUS
10611ac_clean_files=$ac_clean_files_save
10612
10613
10614# configure is writing to config.log, and then calls config.status.
10615# config.status does its own redirection, appending to config.log.
10616# Unfortunately, on DOS this fails, as config.log is still kept open
10617# by configure, so config.status won't be able to write to it; its
10618# output is simply discarded. So we exec the FD to /dev/null,
10619# effectively closing config.log, so it can be properly (re)opened and
10620# appended to by config.status. When coming back to configure, we
10621# need to make the FD available again.
10622if test "$no_create" != yes; then
10623 ac_cs_success=:
10624 ac_config_status_args=
10625 test "$silent" = yes &&
10626 ac_config_status_args="$ac_config_status_args --quiet"
10627 exec 5>/dev/null
10628 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10629 exec 5>>config.log
10630 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10631 # would make configure fail if this is the last instruction.
10632 $ac_cs_success || { (exit 1); exit 1; }
10633fi
10634
10635
10636