2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # 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.
10 # Avoid depending upon Character Ranges.
11 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
12 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
14 as_cr_digits
='0123456789'
15 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20 # Sed expression to map a string onto a valid CPP name.
21 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
27 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
31 # Name of the executable.
32 as_me
=`echo "$0" |sed 's,.*[\\/],,'`
34 if expr a
: '\(a\)' >/dev
/null
2>&1; then
40 rm -f conf$$ conf$$.exe conf$$.
file
42 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
43 # We could just check for DJGPP; but this test a) works b) is more generic
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 if test -f conf$$.exe
; then
46 # Don't use ln at all; we don't have any links
51 elif ln conf$$.
file conf$$
2>/dev
/null
; then
56 rm -f conf$$ conf$$.exe conf$$.
file
58 as_executable_p
="test -f"
60 # Support unset when possible.
61 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
68 $as_unset LANG ||
test "${LANG+set}" != set ||
{ LANG
=C
; export LANG
; }
69 $as_unset LC_ALL ||
test "${LC_ALL+set}" != set ||
{ LC_ALL
=C
; export LC_ALL
; }
70 $as_unset LC_TIME ||
test "${LC_TIME+set}" != set ||
{ LC_TIME
=C
; export LC_TIME
; }
71 $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set ||
{ LC_CTYPE
=C
; export LC_CTYPE
; }
72 $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set ||
{ LANGUAGE
=C
; export LANGUAGE
; }
73 $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set ||
{ LC_COLLATE
=C
; export LC_COLLATE
; }
74 $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set ||
{ LC_NUMERIC
=C
; export LC_NUMERIC
; }
75 $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set ||
{ LC_MESSAGES
=C
; export LC_MESSAGES
; }
78 # We need space, tab and new line, in precisely that order.
84 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=:; export CDPATH
; }
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88 # so uname gets run too.
89 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
96 ac_default_prefix
=/usr
/local
100 SHELL
=${CONFIG_SHELL-/bin/sh}
102 # Maximum number of lines to put in a shell here document.
103 # This variable seems obsolete. It should probably be removed, and
104 # only ac_max_sed_lines should be used.
105 : ${ac_max_here_lines=38}
107 ac_unique_file
="src/gliv.c"
108 # Factoring default headers for most tests.
109 ac_includes_default
="\
112 # include <sys/types.h>
115 # include <sys/stat.h>
126 # if !STDC_HEADERS && HAVE_MEMORY_H
132 # include <strings.h>
135 # include <inttypes.h>
145 # Initialize some variables set by options.
147 ac_init_version
=false
148 # The variables have the same names as the options, with
149 # dashes changed to underlines.
157 program_transform_name
=s
,x
,x
,
165 # Installation directory options.
166 # These are left unexpanded so users can "make install exec_prefix=/foo"
167 # and all the variables that are supposed to be based on exec_prefix
168 # by default will actually change.
169 # Use braces instead of parens because sh, perl, etc. also accept them.
170 bindir
='${exec_prefix}/bin'
171 sbindir
='${exec_prefix}/sbin'
172 libexecdir
='${exec_prefix}/libexec'
173 datadir
='${prefix}/share'
174 sysconfdir
='${prefix}/etc'
175 sharedstatedir
='${prefix}/com'
176 localstatedir
='${prefix}/var'
177 libdir
='${exec_prefix}/lib'
178 includedir
='${prefix}/include'
179 oldincludedir
='/usr/include'
180 infodir
='${prefix}/info'
181 mandir
='${prefix}/man'
183 # Identity of this package.
193 # If the previous option needs an argument, assign it.
194 if test -n "$ac_prev"; then
195 eval "$ac_prev=\$ac_option"
200 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
202 # Accept the important Cygnus configure options, so we can diagnose typos.
206 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
208 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
211 -build |
--build |
--buil |
--bui |
--bu)
212 ac_prev
=build_alias
;;
213 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
214 build_alias
=$ac_optarg ;;
216 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
217 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
218 ac_prev
=cache_file
;;
219 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
220 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
221 cache_file
=$ac_optarg ;;
224 cache_file
=config.cache
;;
226 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
228 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
230 datadir
=$ac_optarg ;;
232 -disable-* |
--disable-*)
233 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
234 # Reject names that are not valid shell variable names.
235 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
236 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
237 { (exit 1); exit 1; }; }
238 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
239 eval "enable_$ac_feature=no" ;;
241 -enable-* |
--enable-*)
242 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
243 # Reject names that are not valid shell variable names.
244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246 { (exit 1); exit 1; }; }
247 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
249 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252 eval "enable_$ac_feature='$ac_optarg'" ;;
254 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
255 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
256 |
--exec |
--exe |
--ex)
257 ac_prev
=exec_prefix
;;
258 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
259 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
260 |
--exec=* |
--exe=* |
--ex=*)
261 exec_prefix
=$ac_optarg ;;
263 -gas |
--gas |
--ga |
--g)
264 # Obsolete; use --with-gas.
267 -help |
--help |
--hel |
--he |
-h)
269 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
270 ac_init_help
=recursive
;;
271 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
272 ac_init_help
=short
;;
274 -host |
--host |
--hos |
--ho)
275 ac_prev
=host_alias
;;
276 -host=* |
--host=* |
--hos=* |
--ho=*)
277 host_alias
=$ac_optarg ;;
279 -includedir |
--includedir |
--includedi |
--included |
--include \
280 |
--includ |
--inclu |
--incl |
--inc)
281 ac_prev
=includedir
;;
282 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
283 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
284 includedir
=$ac_optarg ;;
286 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
288 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
289 infodir
=$ac_optarg ;;
291 -libdir |
--libdir |
--libdi |
--libd)
293 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
296 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
297 |
--libexe |
--libex |
--libe)
298 ac_prev
=libexecdir
;;
299 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
300 |
--libexe=* |
--libex=* |
--libe=*)
301 libexecdir
=$ac_optarg ;;
303 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
304 |
--localstate |
--localstat |
--localsta |
--localst \
305 |
--locals |
--local |
--loca |
--loc |
--lo)
306 ac_prev
=localstatedir
;;
307 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
308 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
309 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
310 localstatedir
=$ac_optarg ;;
312 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
314 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
318 # Obsolete; use --without-fp.
321 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
325 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
326 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
329 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
330 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
331 |
--oldin |
--oldi |
--old |
--ol |
--o)
332 ac_prev
=oldincludedir
;;
333 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
334 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
335 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
336 oldincludedir
=$ac_optarg ;;
338 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
340 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
343 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
344 |
--program-pre |
--program-pr |
--program-p)
345 ac_prev
=program_prefix
;;
346 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
347 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
348 program_prefix
=$ac_optarg ;;
350 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
351 |
--program-suf |
--program-su |
--program-s)
352 ac_prev
=program_suffix
;;
353 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
354 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
355 program_suffix
=$ac_optarg ;;
357 -program-transform-name |
--program-transform-name \
358 |
--program-transform-nam |
--program-transform-na \
359 |
--program-transform-n |
--program-transform- \
360 |
--program-transform |
--program-transfor \
361 |
--program-transfo |
--program-transf \
362 |
--program-trans |
--program-tran \
363 |
--progr-tra |
--program-tr |
--program-t)
364 ac_prev
=program_transform_name
;;
365 -program-transform-name=* |
--program-transform-name=* \
366 |
--program-transform-nam=* |
--program-transform-na=* \
367 |
--program-transform-n=* |
--program-transform-=* \
368 |
--program-transform=* |
--program-transfor=* \
369 |
--program-transfo=* |
--program-transf=* \
370 |
--program-trans=* |
--program-tran=* \
371 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
372 program_transform_name
=$ac_optarg ;;
374 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
375 |
-silent |
--silent |
--silen |
--sile |
--sil)
378 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
380 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
382 sbindir
=$ac_optarg ;;
384 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
385 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
386 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
388 ac_prev
=sharedstatedir
;;
389 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
390 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
391 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
393 sharedstatedir
=$ac_optarg ;;
395 -site |
--site |
--sit)
397 -site=* |
--site=* |
--sit=*)
400 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
402 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
405 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
406 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
407 ac_prev
=sysconfdir
;;
408 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
409 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
410 sysconfdir
=$ac_optarg ;;
412 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
413 ac_prev
=target_alias
;;
414 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
415 target_alias
=$ac_optarg ;;
417 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
420 -version |
--version |
--versio |
--versi |
--vers |
-V)
424 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
425 # Reject names that are not valid shell variable names.
426 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
427 { echo "$as_me: error: invalid package name: $ac_package" >&2
428 { (exit 1); exit 1; }; }
429 ac_package
=`echo $ac_package| sed 's/-/_/g'`
431 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
434 eval "with_$ac_package='$ac_optarg'" ;;
436 -without-* |
--without-*)
437 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
438 # Reject names that are not valid shell variable names.
439 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
440 { echo "$as_me: error: invalid package name: $ac_package" >&2
441 { (exit 1); exit 1; }; }
442 ac_package
=`echo $ac_package | sed 's/-/_/g'`
443 eval "with_$ac_package=no" ;;
446 # Obsolete; use --with-x.
449 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
450 |
--x-incl |
--x-inc |
--x-in |
--x-i)
451 ac_prev
=x_includes
;;
452 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
453 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
454 x_includes
=$ac_optarg ;;
456 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
457 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
458 ac_prev
=x_libraries
;;
459 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
460 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
461 x_libraries
=$ac_optarg ;;
463 -*) { echo "$as_me: error: unrecognized option: $ac_option
464 Try \`$0 --help' for more information." >&2
465 { (exit 1); exit 1; }; }
469 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
470 # Reject names that are not valid shell variable names.
471 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
472 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
473 { (exit 1); exit 1; }; }
474 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
475 eval "$ac_envvar='$ac_optarg'"
479 # FIXME: should be removed in autoconf 3.0.
480 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
481 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
482 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
483 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
489 if test -n "$ac_prev"; then
490 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
491 { echo "$as_me: error: missing argument to $ac_option" >&2
492 { (exit 1); exit 1; }; }
495 # Be sure to have absolute paths.
496 for ac_var
in exec_prefix prefix
498 eval ac_val
=$
`echo $ac_var`
500 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
501 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
502 { (exit 1); exit 1; }; };;
506 # Be sure to have absolute paths.
507 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
508 localstatedir libdir includedir oldincludedir infodir mandir
510 eval ac_val
=$
`echo $ac_var`
512 [\\/$
]* | ?
:[\\/]* ) ;;
513 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
514 { (exit 1); exit 1; }; };;
518 # There might be people who depend on the old broken behavior: `$host'
519 # used to hold the argument of --host etc.
524 # FIXME: should be removed in autoconf 3.0.
525 if test "x$host_alias" != x
; then
526 if test "x$build_alias" = x
; then
527 cross_compiling
=maybe
528 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
529 If a cross compiler is detected then cross compile mode will be used." >&2
530 elif test "x$build_alias" != "x$host_alias"; then
536 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
538 test "$silent" = yes && exec 6>/dev
/null
540 # Find the source files, if location was not specified.
541 if test -z "$srcdir"; then
542 ac_srcdir_defaulted
=yes
543 # Try the directory containing this script, then its parent.
545 ac_confdir
=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
546 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
548 if test ! -r $srcdir/$ac_unique_file; then
552 ac_srcdir_defaulted
=no
554 if test ! -r $srcdir/$ac_unique_file; then
555 if test "$ac_srcdir_defaulted" = yes; then
556 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
557 { (exit 1); exit 1; }; }
559 { echo "$as_me: error: cannot find sources in $srcdir" >&2
560 { (exit 1); exit 1; }; }
563 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
564 ac_env_build_alias_set
=${build_alias+set}
565 ac_env_build_alias_value
=$build_alias
566 ac_cv_env_build_alias_set
=${build_alias+set}
567 ac_cv_env_build_alias_value
=$build_alias
568 ac_env_host_alias_set
=${host_alias+set}
569 ac_env_host_alias_value
=$host_alias
570 ac_cv_env_host_alias_set
=${host_alias+set}
571 ac_cv_env_host_alias_value
=$host_alias
572 ac_env_target_alias_set
=${target_alias+set}
573 ac_env_target_alias_value
=$target_alias
574 ac_cv_env_target_alias_set
=${target_alias+set}
575 ac_cv_env_target_alias_value
=$target_alias
576 ac_env_CC_set
=${CC+set}
578 ac_cv_env_CC_set
=${CC+set}
579 ac_cv_env_CC_value
=$CC
580 ac_env_CFLAGS_set
=${CFLAGS+set}
581 ac_env_CFLAGS_value
=$CFLAGS
582 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
583 ac_cv_env_CFLAGS_value
=$CFLAGS
584 ac_env_LDFLAGS_set
=${LDFLAGS+set}
585 ac_env_LDFLAGS_value
=$LDFLAGS
586 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
587 ac_cv_env_LDFLAGS_value
=$LDFLAGS
588 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
589 ac_env_CPPFLAGS_value
=$CPPFLAGS
590 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
591 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
592 ac_env_CPP_set
=${CPP+set}
593 ac_env_CPP_value
=$CPP
594 ac_cv_env_CPP_set
=${CPP+set}
595 ac_cv_env_CPP_value
=$CPP
598 # Report the --help message.
600 if test "$ac_init_help" = "long"; then
601 # Omit some internal or obsolete options to make the list less imposing.
602 # This message is too long to be a string in the A/UX 3.1 sh.
604 \`configure' configures this package to adapt to many kinds of systems.
606 Usage: $0 [OPTION]... [VAR=VALUE]...
608 To assign environment variables (e.g., CC, CFLAGS...), specify them as
609 VAR=VALUE. See below for descriptions of some of the useful variables.
611 Defaults for the options are specified in brackets.
614 -h, --help display this help and exit
615 --help=short display options specific to this package
616 --help=recursive display the short help of all the included packages
617 -V, --version display version information and exit
618 -q, --quiet, --silent do not print \`checking...' messages
619 --cache-file=FILE cache test results in FILE [disabled]
620 -C, --config-cache alias for \`--cache-file=config.cache'
621 -n, --no-create do not create output files
622 --srcdir=DIR find the sources in DIR [configure dir or \`..']
627 Installation directories:
628 --prefix=PREFIX install architecture-independent files in PREFIX
630 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
633 By default, \`make install' will install all the files in
634 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
635 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
636 for instance \`--prefix=\$HOME'.
638 For better control, use the options below.
640 Fine tuning of the installation directories:
641 --bindir=DIR user executables [EPREFIX/bin]
642 --sbindir=DIR system admin executables [EPREFIX/sbin]
643 --libexecdir=DIR program executables [EPREFIX/libexec]
644 --datadir=DIR read-only architecture-independent data [PREFIX/share]
645 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
646 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
647 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
648 --libdir=DIR object code libraries [EPREFIX/lib]
649 --includedir=DIR C header files [PREFIX/include]
650 --oldincludedir=DIR C header files for non-gcc [/usr/include]
651 --infodir=DIR info documentation [PREFIX/info]
652 --mandir=DIR man documentation [PREFIX/man]
658 --program-prefix=PREFIX prepend PREFIX to installed program names
659 --program-suffix=SUFFIX append SUFFIX to installed program names
660 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
663 --x-includes=DIR X include files are
in DIR
664 --x-libraries=DIR X library files are
in DIR
667 --build=BUILD configure
for building on BUILD
[guessed
]
668 --host=HOST build programs to run on HOST
[BUILD
]
672 if test -n "$ac_init_help"; then
677 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
678 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
679 --disable-dependency-tracking Speeds up one-time builds
680 --enable-dependency-tracking Do not reject slow dependency extractors
681 --disable-gtk2 Use gtk1 even
if gtk2 is found
682 --disable-gtktest Do not try to compile and run a
test GTK
+ program
683 --disable-gtktest Do not try to compile and run a
test GTK program
684 --disable-gdk_pixbuftest Do not try to compile and run a
test GDK_PIXBUF program
685 --disable-magick Do not use ImageMagick even
if found
686 --disable-nls do not use Native Language Support
689 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
690 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
691 --with-x use the X Window System
692 --with-gtk-prefix=PFX Prefix where GTK is installed
(optional
)
693 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed
(optional
)
694 --with-gdk-pixbuf-prefix=PFX Prefix where GDK_PIXBUF is installed
(optional
)
695 --with-gdk-pixbuf-exec-prefix=PFX Exec prefix where GDK_PIXBUF is installed
(optional
)
696 --with-gtkgl-prefix=DIR prefix where GtkGLArea is installed
697 --with-gnu-ld assume the C compiler uses GNU ld default
=no
698 --with-libiconv-prefix=DIR search
for libiconv
in DIR
/include and DIR
/lib
699 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
700 --with-included-gettext use the GNU gettext library included here
701 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
702 --without-libintl-prefix don't search
for libintl
in includedir and libdir
704 Some influential environment variables
:
705 CC C compiler
command
706 CFLAGS C compiler flags
707 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
708 nonstandard directory
<lib dir
>
709 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
710 headers
in a nonstandard directory
<include dir
>
713 Use these variables to override the choices made by
`configure' or to help
714 it to find libraries and programs with nonstandard names/locations.
719 if test "$ac_init_help" = "recursive"; then
720 # If there are subdirs, report their specific --help.
722 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
724 # A "../" for each directory in /$ac_subdir.
725 ac_dots=`echo $ac_subdir |
726 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
729 .) # No --srcdir option. We are building in place.
730 ac_sub_srcdir=$srcdir ;;
731 [\\/]* | ?:[\\/]* ) # Absolute path.
732 ac_sub_srcdir=$srcdir/$ac_subdir ;;
734 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
737 # Check for guested configure; otherwise get Cygnus style configure.
738 if test -f $ac_sub_srcdir/configure.gnu; then
740 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
741 elif test -f $ac_sub_srcdir/configure; then
743 $SHELL $ac_sub_srcdir/configure --help=recursive
744 elif test -f $ac_sub_srcdir/configure.ac ||
745 test -f $ac_sub_srcdir/configure.in; then
749 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
755 test -n "$ac_init_help" && exit 0
756 if $ac_init_version; then
759 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
760 Free Software Foundation, Inc.
761 This configure script is free software; the Free Software Foundation
762 gives unlimited permission to copy, distribute and modify it.
768 This file contains any messages produced by compilers while
769 running configure, to aid debugging if configure makes a mistake.
771 It was created by $as_me, which was
772 generated by GNU Autoconf 2.52. Invocation command line was
783 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
784 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
785 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
786 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
787 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
789 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
790 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
792 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
793 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
794 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
795 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
796 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
797 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
798 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
812 # Keep a trace of the command line.
813 # Strip out --no-create and --no-recursion so they do not pile up.
814 # Also quote any args containing shell meta-characters.
820 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
821 | --no-cr | --no-c) ;;
822 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
823 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
824 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
825 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"`
826 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
828 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
831 # Get rid of the leading space.
834 # When interrupted or exit'd, cleanup temporary files, and complete
835 # config.log. We remove comments because anyway the quotes in there
836 # would cause problems or look ugly.
838 # Save into config.log some information that might help in debugging.
840 echo "## ----------------- ##" >&5
841 echo "## Cache variables. ##" >&5
842 echo "## ----------------- ##" >&5
844 # The following way of writing the cache mishandles newlines in values,
847 case `(ac_space
='"'"' '"'"'; set |
grep ac_space
) 2>&1` in
850 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
851 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
855 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
859 sed "/^$/d" confdefs.h >conftest.log
860 if test -s conftest.log; then
862 echo "## ------------ ##" >&5
863 echo "## confdefs.h. ##" >&5
864 echo "## ------------ ##" >&5
869 test "$ac_signal" != 0 &&
870 echo "$as_me: caught signal $ac_signal" >&5
871 echo "$as_me: exit $exit_status" >&5
872 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
875 for ac_signal in 1 2 13 15; do
876 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
880 # confdefs.h avoids OS command line length limits that DEFS can exceed.
881 rm -rf conftest* confdefs.h
882 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
885 # Let the site file select an alternate cache file if it wants to.
886 # Prefer explicitly selected file to automatically selected ones.
887 if test -z "$CONFIG_SITE"; then
888 if test "x$prefix" != xNONE; then
889 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
891 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
894 for ac_site_file in $CONFIG_SITE; do
895 if test -r "$ac_site_file"; then
896 { echo "$as_me:896: loading site script $ac_site_file" >&5
897 echo "$as_me: loading site script $ac_site_file" >&6;}
898 cat "$ac_site_file" >&5
903 if test -r "$cache_file"; then
904 # Some versions of bash will fail to source /dev/null (special
905 # files actually), so we avoid doing that.
906 if test -f "$cache_file"; then
907 { echo "$as_me:907: loading cache $cache_file" >&5
908 echo "$as_me: loading cache $cache_file" >&6;}
910 [\\/]* | ?:[\\/]* ) . $cache_file;;
915 { echo "$as_me:915: creating cache $cache_file" >&5
916 echo "$as_me: creating cache $cache_file" >&6;}
920 # Check that the precious variables saved in the cache have kept the same
922 ac_cache_corrupted=false
923 for ac_var in `(set) 2>&1 |
924 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
925 eval ac_old_set=\$ac_cv_env_${ac_var}_set
926 eval ac_new_set=\$ac_env_${ac_var}_set
927 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
928 eval ac_new_val="\$ac_env_${ac_var}_value"
929 case $ac_old_set,$ac_new_set in
931 { echo "$as_me:931: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
932 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
933 ac_cache_corrupted=: ;;
935 { echo "$as_me:935: error: \`$ac_var' was not
set in the previous run
" >&5
936 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
937 ac_cache_corrupted=: ;;
940 if test "x$ac_old_val" != "x$ac_new_val"; then
941 { echo "$as_me:941: error: \`$ac_var' has changed since the previous run:" >&5
942 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
943 { echo "$as_me:943: former value
: $ac_old_val" >&5
944 echo "$as_me: former value
: $ac_old_val" >&2;}
945 { echo "$as_me:945: current value
: $ac_new_val" >&5
946 echo "$as_me: current value
: $ac_new_val" >&2;}
950 # Pass precious variables to config.status. It doesn't matter if
951 # we pass some twice (in addition to the command line arguments).
952 if test "$ac_new_set" = set; then
954 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
955 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"`
956 ac_configure_args="$ac_configure_args '$ac_arg'"
958 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
963 if $ac_cache_corrupted; then
964 { echo "$as_me:964: error
: changes
in the environment can compromise the build
" >&5
965 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
966 { { echo "$as_me:966: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
967 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
968 { (exit 1); exit 1; }; }
972 ac_cpp='$CPP $CPPFLAGS'
973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
977 case `echo "testing\c"; echo 1,2,3`,`echo -n testing
; echo 1,2,3` in
978 *c*,-n*) ECHO_N= ECHO_C='
980 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
981 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
983 echo "#! $SHELL" >conftest.sh
984 echo "exit 0" >>conftest.sh
986 if { (echo "$as_me:986: PATH=\".;.\"; conftest.sh") >&5
987 (PATH=".;."; conftest.sh) 2>&5
989 echo "$as_me:989: \$? = $ac_status" >&5
990 (exit $ac_status); }; then
991 ac_path_separator=';'
995 PATH_SEPARATOR="$ac_path_separator"
999 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1000 if test -f $ac_dir/install-sh; then
1002 ac_install_sh="$ac_aux_dir/install-sh -c"
1004 elif test -f $ac_dir/install.sh; then
1006 ac_install_sh="$ac_aux_dir/install.sh -c"
1008 elif test -f $ac_dir/shtool; then
1010 ac_install_sh="$ac_aux_dir/shtool install -c"
1014 if test -z "$ac_aux_dir"; then
1015 { { echo "$as_me:1015: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1016 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1017 { (exit 1); exit 1; }; }
1019 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1020 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1021 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1023 # Make sure we can run config.sub.
1024 $ac_config_sub sun4 >/dev/null 2>&1 ||
1025 { { echo "$as_me:1025: error: cannot run $ac_config_sub" >&5
1026 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1027 { (exit 1); exit 1; }; }
1029 echo "$as_me:1029: checking build system type" >&5
1030 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1031 if test "${ac_cv_build+set}" = set; then
1032 echo $ECHO_N "(cached) $ECHO_C" >&6
1034 ac_cv_build_alias=$build_alias
1035 test -z "$ac_cv_build_alias" &&
1036 ac_cv_build_alias=`$ac_config_guess`
1037 test -z "$ac_cv_build_alias" &&
1038 { { echo "$as_me:1038: error: cannot guess build type; you must specify one" >&5
1039 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1040 { (exit 1); exit 1; }; }
1041 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1042 { { echo "$as_me:1042: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1043 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1044 { (exit 1); exit 1; }; }
1047 echo "$as_me:1047: result: $ac_cv_build" >&5
1048 echo "${ECHO_T}$ac_cv_build" >&6
1050 build_cpu=`echo $ac_cv_build |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1051 build_vendor=`echo $ac_cv_build |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1052 build_os=`echo $ac_cv_build |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1054 echo "$as_me:1054: checking host system type" >&5
1055 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1056 if test "${ac_cv_host+set}" = set; then
1057 echo $ECHO_N "(cached) $ECHO_C" >&6
1059 ac_cv_host_alias=$host_alias
1060 test -z "$ac_cv_host_alias" &&
1061 ac_cv_host_alias=$ac_cv_build_alias
1062 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1063 { { echo "$as_me:1063: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1064 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1065 { (exit 1); exit 1; }; }
1068 echo "$as_me:1068: result: $ac_cv_host" >&5
1069 echo "${ECHO_T}$ac_cv_host" >&6
1071 host_cpu=`echo $ac_cv_host |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1072 host_vendor=`echo $ac_cv_host |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1073 host_os=`echo $ac_cv_host |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1076 # Find a good install program. We prefer a C program (faster),
1077 # so one script is as good as another. But avoid the broken or
1078 # incompatible versions:
1079 # SysV /etc/install, /usr/sbin/install
1080 # SunOS /usr/etc/install
1081 # IRIX /sbin/install
1083 # AmigaOS /C/install, which installs bootblocks on floppy discs
1084 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1085 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1086 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1087 # ./install, which can be erroneously created by make from ./install.sh.
1088 echo "$as_me:1088: checking for a BSD compatible install" >&5
1089 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1090 if test -z "$INSTALL"; then
1091 if test "${ac_cv_path_install+set}" = set; then
1092 echo $ECHO_N "(cached) $ECHO_C" >&6
1094 ac_save_IFS=$IFS; IFS=$ac_path_separator
1095 for ac_dir in $PATH; do
1097 # Account for people who put trailing slashes in PATH elements.
1099 / | ./ | .// | /cC/* \
1100 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1103 # OSF1 and SCO ODT 3.0 have their own names for install.
1104 # Don't use installbsd from OSF since it installs stuff as root
1106 for ac_prog in ginstall scoinst install; do
1107 if $as_executable_p "$ac_dir/$ac_prog"; then
1108 if test $ac_prog = install &&
1109 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1110 # AIX install. It has an incompatible calling convention.
1112 elif test $ac_prog = install &&
1113 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1114 # program-specific install script used by HP pwplus--don't use.
1117 ac_cv_path_install="$ac_dir/$ac_prog -c"
1127 if test "${ac_cv_path_install+set}" = set; then
1128 INSTALL=$ac_cv_path_install
1130 # As a last resort, use the slow shell script. We don't cache a
1131 # path for INSTALL within a source directory, because that will
1132 # break other packages using the cache if that directory is
1133 # removed, or if the path is relative.
1134 INSTALL=$ac_install_sh
1137 echo "$as_me:1137: result: $INSTALL" >&5
1138 echo "${ECHO_T}$INSTALL" >&6
1140 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1141 # It thinks the first close brace ends the variable substitution.
1142 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1144 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1146 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1148 echo "$as_me:1148: checking whether build environment is sane" >&5
1149 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1152 echo timestamp > conftest.file
1153 # Do `set' in a subshell so we don't clobber the current shell
's
1154 # arguments. Must try -L first in case configure is actually a
1155 # symlink; some systems play weird games with the mod time of symlinks
1156 # (eg FreeBSD returns the mod time of the symlink's containing
1159 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1160 if test "$*" = "X"; then
1162 set X
`ls -t $srcdir/configure conftest.file`
1165 if test "$*" != "X $srcdir/configure conftest.file" \
1166 && test "$*" != "X conftest.file $srcdir/configure"; then
1168 # If neither matched, then we have a broken ls. This can happen
1169 # if, for instance, CONFIG_SHELL is bash and it inherits a
1170 # broken ls alias from the environment. This has actually
1171 # happened. Such a system could not be considered "sane".
1172 { { echo "$as_me:1172: error: ls -t appears to fail. Make sure there is not a broken
1173 alias in your environment" >&5
1174 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1175 alias in your environment" >&2;}
1176 { (exit 1); exit 1; }; }
1179 test "$2" = conftest.
file
1185 { { echo "$as_me:1185: error: newly created file is older than distributed files!
1186 Check your system clock" >&5
1187 echo "$as_me: error: newly created file is older than distributed files!
1188 Check your system clock" >&2;}
1189 { (exit 1); exit 1; }; }
1191 echo "$as_me:1191: result: yes" >&5
1192 echo "${ECHO_T}yes" >&6
1193 test "$program_prefix" != NONE
&&
1194 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1195 # Use a double $ so make ignores it.
1196 test "$program_suffix" != NONE
&&
1197 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1198 # Double any \ or $. echo might interpret backslashes.
1199 # By default was `s,x,x', remove it if useless.
1200 cat <<\_ACEOF
>conftest.
sed
1201 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1203 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1206 # expand $ac_aux_dir to an absolute path
1207 am_aux_dir
=`CDPATH=:; cd $ac_aux_dir && pwd`
1209 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
1210 # Use eval to expand $SHELL
1211 if eval "$MISSING --run true"; then
1212 am_missing_run
="$MISSING --run "
1216 { echo "$as_me:1216: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1217 echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1220 for ac_prog
in mawk gawk nawk
awk
1222 # Extract the first word of "$ac_prog", so it can be a program name with args.
1223 set dummy
$ac_prog; ac_word
=$2
1224 echo "$as_me:1224: checking for $ac_word" >&5
1225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1226 if test "${ac_cv_prog_AWK+set}" = set; then
1227 echo $ECHO_N "(cached) $ECHO_C" >&6
1229 if test -n "$AWK"; then
1230 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1232 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1234 for ac_dir
in $ac_dummy; do
1236 test -z "$ac_dir" && ac_dir
=.
1237 $as_executable_p "$ac_dir/$ac_word" ||
continue
1238 ac_cv_prog_AWK
="$ac_prog"
1239 echo "$as_me:1239: found $ac_dir/$ac_word" >&5
1246 if test -n "$AWK"; then
1247 echo "$as_me:1247: result: $AWK" >&5
1248 echo "${ECHO_T}$AWK" >&6
1250 echo "$as_me:1250: result: no" >&5
1251 echo "${ECHO_T}no" >&6
1254 test -n "$AWK" && break
1257 echo "$as_me:1257: checking whether ${MAKE-make} sets \${MAKE}" >&5
1258 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1259 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
1260 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1261 echo $ECHO_N "(cached) $ECHO_C" >&6
1263 cat >conftest.
make <<\EOF
1265 @
echo 'ac_maketemp="${MAKE}"'
1267 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1268 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1269 if test -n "$ac_maketemp"; then
1270 eval ac_cv_prog_make_
${ac_make}_set
=yes
1272 eval ac_cv_prog_make_
${ac_make}_set
=no
1276 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1277 echo "$as_me:1277: result: yes" >&5
1278 echo "${ECHO_T}yes" >&6
1281 echo "$as_me:1281: result: no" >&5
1282 echo "${ECHO_T}no" >&6
1283 SET_MAKE
="MAKE=${MAKE-make}"
1286 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1287 if test "${enable_dependency_tracking+set}" = set; then
1288 enableval
="$enable_dependency_tracking"
1291 if test "x$enable_dependency_tracking" != xno
; then
1292 am_depcomp
="$ac_aux_dir/depcomp"
1296 if test "x$enable_dependency_tracking" != xno; then
1304 rm -f .deps
2>/dev
/null
1305 mkdir .deps
2>/dev
/null
1306 if test -d .deps
; then
1309 # MS-DOS does not allow filenames that begin with a dot.
1312 rmdir .deps
2>/dev
/null
1314 # test to see if srcdir already configured
1315 if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
1316 test -f $srcdir/config.status
; then
1317 { { echo "$as_me:1317: error: source directory already configured; run \"make distclean\" there first" >&5
1318 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1319 { (exit 1); exit 1; }; }
1322 # Define the identity of the package.
1326 cat >>confdefs.h
<<EOF
1327 #define PACKAGE "$PACKAGE"
1330 cat >>confdefs.h
<<EOF
1331 #define VERSION "$VERSION"
1334 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
1335 # the ones we care about.
1337 # Autoconf 2.50 always computes EXEEXT. However we need to be
1338 # compatible with 2.13, for now. So we always define EXEEXT, but we
1341 # Similar for OBJEXT -- only we only use OBJEXT if the user actually
1342 # requests that it be used. This is a bit dumb.
1345 # Some tools Automake needs.
1347 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal"}
1349 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1351 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake"}
1353 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
1355 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
1357 AMTAR
=${AMTAR-"${am_missing_run}tar"}
1359 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
1361 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
1363 # We need awk for the "check" target. The system "awk" is bad on
1366 ac_config_headers
="$ac_config_headers config.h"
1369 ac_cpp
='$CPP $CPPFLAGS'
1370 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1371 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1372 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1373 if test -n "$ac_tool_prefix"; then
1374 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1375 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1376 echo "$as_me:1376: checking for $ac_word" >&5
1377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1378 if test "${ac_cv_prog_CC+set}" = set; then
1379 echo $ECHO_N "(cached) $ECHO_C" >&6
1381 if test -n "$CC"; then
1382 ac_cv_prog_CC
="$CC" # Let the user override the test.
1384 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1386 for ac_dir
in $ac_dummy; do
1388 test -z "$ac_dir" && ac_dir
=.
1389 $as_executable_p "$ac_dir/$ac_word" ||
continue
1390 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1391 echo "$as_me:1391: found $ac_dir/$ac_word" >&5
1398 if test -n "$CC"; then
1399 echo "$as_me:1399: result: $CC" >&5
1400 echo "${ECHO_T}$CC" >&6
1402 echo "$as_me:1402: result: no" >&5
1403 echo "${ECHO_T}no" >&6
1407 if test -z "$ac_cv_prog_CC"; then
1409 # Extract the first word of "gcc", so it can be a program name with args.
1410 set dummy gcc
; ac_word
=$2
1411 echo "$as_me:1411: checking for $ac_word" >&5
1412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1413 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1414 echo $ECHO_N "(cached) $ECHO_C" >&6
1416 if test -n "$ac_ct_CC"; then
1417 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1419 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1421 for ac_dir
in $ac_dummy; do
1423 test -z "$ac_dir" && ac_dir
=.
1424 $as_executable_p "$ac_dir/$ac_word" ||
continue
1425 ac_cv_prog_ac_ct_CC
="gcc"
1426 echo "$as_me:1426: found $ac_dir/$ac_word" >&5
1432 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1433 if test -n "$ac_ct_CC"; then
1434 echo "$as_me:1434: result: $ac_ct_CC" >&5
1435 echo "${ECHO_T}$ac_ct_CC" >&6
1437 echo "$as_me:1437: result: no" >&5
1438 echo "${ECHO_T}no" >&6
1446 if test -z "$CC"; then
1447 if test -n "$ac_tool_prefix"; then
1448 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1449 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1450 echo "$as_me:1450: checking for $ac_word" >&5
1451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1452 if test "${ac_cv_prog_CC+set}" = set; then
1453 echo $ECHO_N "(cached) $ECHO_C" >&6
1455 if test -n "$CC"; then
1456 ac_cv_prog_CC
="$CC" # Let the user override the test.
1458 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1460 for ac_dir
in $ac_dummy; do
1462 test -z "$ac_dir" && ac_dir
=.
1463 $as_executable_p "$ac_dir/$ac_word" ||
continue
1464 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1465 echo "$as_me:1465: found $ac_dir/$ac_word" >&5
1472 if test -n "$CC"; then
1473 echo "$as_me:1473: result: $CC" >&5
1474 echo "${ECHO_T}$CC" >&6
1476 echo "$as_me:1476: result: no" >&5
1477 echo "${ECHO_T}no" >&6
1481 if test -z "$ac_cv_prog_CC"; then
1483 # Extract the first word of "cc", so it can be a program name with args.
1484 set dummy cc
; ac_word
=$2
1485 echo "$as_me:1485: checking for $ac_word" >&5
1486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1487 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1488 echo $ECHO_N "(cached) $ECHO_C" >&6
1490 if test -n "$ac_ct_CC"; then
1491 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1493 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1495 for ac_dir
in $ac_dummy; do
1497 test -z "$ac_dir" && ac_dir
=.
1498 $as_executable_p "$ac_dir/$ac_word" ||
continue
1499 ac_cv_prog_ac_ct_CC
="cc"
1500 echo "$as_me:1500: found $ac_dir/$ac_word" >&5
1506 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1507 if test -n "$ac_ct_CC"; then
1508 echo "$as_me:1508: result: $ac_ct_CC" >&5
1509 echo "${ECHO_T}$ac_ct_CC" >&6
1511 echo "$as_me:1511: result: no" >&5
1512 echo "${ECHO_T}no" >&6
1521 if test -z "$CC"; then
1522 # Extract the first word of "cc", so it can be a program name with args.
1523 set dummy cc
; ac_word
=$2
1524 echo "$as_me:1524: checking for $ac_word" >&5
1525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1526 if test "${ac_cv_prog_CC+set}" = set; then
1527 echo $ECHO_N "(cached) $ECHO_C" >&6
1529 if test -n "$CC"; then
1530 ac_cv_prog_CC
="$CC" # Let the user override the test.
1533 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1535 for ac_dir
in $ac_dummy; do
1537 test -z "$ac_dir" && ac_dir
=.
1538 $as_executable_p "$ac_dir/$ac_word" ||
continue
1539 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1540 ac_prog_rejected
=yes
1544 echo "$as_me:1544: found $ac_dir/$ac_word" >&5
1548 if test $ac_prog_rejected = yes; then
1549 # We found a bogon in the path, so make sure we never use it.
1550 set dummy
$ac_cv_prog_CC
1552 if test $# != 0; then
1553 # We chose a different compiler from the bogus one.
1554 # However, it has the same basename, so the bogon will be chosen
1555 # first if we set CC to just the basename; use the full file name.
1557 set dummy
"$ac_dir/$ac_word" ${1+"$@"}
1565 if test -n "$CC"; then
1566 echo "$as_me:1566: result: $CC" >&5
1567 echo "${ECHO_T}$CC" >&6
1569 echo "$as_me:1569: result: no" >&5
1570 echo "${ECHO_T}no" >&6
1574 if test -z "$CC"; then
1575 if test -n "$ac_tool_prefix"; then
1578 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1579 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1580 echo "$as_me:1580: checking for $ac_word" >&5
1581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1582 if test "${ac_cv_prog_CC+set}" = set; then
1583 echo $ECHO_N "(cached) $ECHO_C" >&6
1585 if test -n "$CC"; then
1586 ac_cv_prog_CC
="$CC" # Let the user override the test.
1588 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1590 for ac_dir
in $ac_dummy; do
1592 test -z "$ac_dir" && ac_dir
=.
1593 $as_executable_p "$ac_dir/$ac_word" ||
continue
1594 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1595 echo "$as_me:1595: found $ac_dir/$ac_word" >&5
1602 if test -n "$CC"; then
1603 echo "$as_me:1603: result: $CC" >&5
1604 echo "${ECHO_T}$CC" >&6
1606 echo "$as_me:1606: result: no" >&5
1607 echo "${ECHO_T}no" >&6
1610 test -n "$CC" && break
1613 if test -z "$CC"; then
1617 # Extract the first word of "$ac_prog", so it can be a program name with args.
1618 set dummy
$ac_prog; ac_word
=$2
1619 echo "$as_me:1619: checking for $ac_word" >&5
1620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1621 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1622 echo $ECHO_N "(cached) $ECHO_C" >&6
1624 if test -n "$ac_ct_CC"; then
1625 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1627 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1629 for ac_dir
in $ac_dummy; do
1631 test -z "$ac_dir" && ac_dir
=.
1632 $as_executable_p "$ac_dir/$ac_word" ||
continue
1633 ac_cv_prog_ac_ct_CC
="$ac_prog"
1634 echo "$as_me:1634: found $ac_dir/$ac_word" >&5
1640 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1641 if test -n "$ac_ct_CC"; then
1642 echo "$as_me:1642: result: $ac_ct_CC" >&5
1643 echo "${ECHO_T}$ac_ct_CC" >&6
1645 echo "$as_me:1645: result: no" >&5
1646 echo "${ECHO_T}no" >&6
1649 test -n "$ac_ct_CC" && break
1657 test -z "$CC" && { { echo "$as_me:1657: error: no acceptable cc found in \$PATH" >&5
1658 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1659 { (exit 1); exit 1; }; }
1661 # Provide some information about the compiler.
1662 echo "$as_me:1662:" \
1663 "checking for C compiler version" >&5
1664 ac_compiler
=`set X $ac_compile; echo $2`
1665 { (eval echo "$as_me:1665: \"$ac_compiler --version </dev/null >&5\"") >&5
1666 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1668 echo "$as_me:1668: \$? = $ac_status" >&5
1669 (exit $ac_status); }
1670 { (eval echo "$as_me:1670: \"$ac_compiler -v </dev/null >&5\"") >&5
1671 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1673 echo "$as_me:1673: \$? = $ac_status" >&5
1674 (exit $ac_status); }
1675 { (eval echo "$as_me:1675: \"$ac_compiler -V </dev/null >&5\"") >&5
1676 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1678 echo "$as_me:1678: \$? = $ac_status" >&5
1679 (exit $ac_status); }
1681 cat >conftest.
$ac_ext <<_ACEOF
1682 #line 1682 "configure"
1683 #include "confdefs.h"
1693 ac_clean_files_save
=$ac_clean_files
1694 ac_clean_files
="$ac_clean_files a.out a.exe"
1695 # Try to create an executable without -o first, disregard a.out.
1696 # It will help us diagnose broken compilers, and finding out an intuition
1698 echo "$as_me:1698: checking for C compiler default output" >&5
1699 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1700 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1701 if { (eval echo "$as_me:1701: \"$ac_link_default\"") >&5
1702 (eval $ac_link_default) 2>&5
1704 echo "$as_me:1704: \$? = $ac_status" >&5
1705 (exit $ac_status); }; then
1706 # Find the output, starting from the most likely. This scheme is
1707 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1709 for ac_file
in `ls a.exe conftest.exe 2>/dev/null;
1710 ls a.out conftest 2>/dev/null;
1711 ls a.* conftest.* 2>/dev/null`; do
1713 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
1714 a.out
) # We found the default executable, but exeext='' is most
1717 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1718 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1725 echo "$as_me: failed program was:" >&5
1726 cat conftest.
$ac_ext >&5
1727 { { echo "$as_me:1727: error: C compiler cannot create executables" >&5
1728 echo "$as_me: error: C compiler cannot create executables" >&2;}
1729 { (exit 77); exit 77; }; }
1732 ac_exeext
=$ac_cv_exeext
1733 echo "$as_me:1733: result: $ac_file" >&5
1734 echo "${ECHO_T}$ac_file" >&6
1736 # Check the compiler produces executables we can run. If not, either
1737 # the compiler is broken, or we cross compile.
1738 echo "$as_me:1738: checking whether the C compiler works" >&5
1739 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1740 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1741 # If not cross compiling, check that we can run a simple program.
1742 if test "$cross_compiling" != yes; then
1743 if { ac_try
='./$ac_file'
1744 { (eval echo "$as_me:1744: \"$ac_try\"") >&5
1747 echo "$as_me:1747: \$? = $ac_status" >&5
1748 (exit $ac_status); }; }; then
1751 if test "$cross_compiling" = maybe
; then
1754 { { echo "$as_me:1754: error: cannot run C compiled programs.
1755 If you meant to cross compile, use \`--host'." >&5
1756 echo "$as_me: error: cannot run C compiled programs.
1757 If you meant to cross compile, use \`--host'." >&2;}
1758 { (exit 1); exit 1; }; }
1762 echo "$as_me:1762: result: yes" >&5
1763 echo "${ECHO_T}yes" >&6
1765 rm -f a.out a.exe conftest
$ac_cv_exeext
1766 ac_clean_files
=$ac_clean_files_save
1767 # Check the compiler produces executables we can run. If not, either
1768 # the compiler is broken, or we cross compile.
1769 echo "$as_me:1769: checking whether we are cross compiling" >&5
1770 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1771 echo "$as_me:1771: result: $cross_compiling" >&5
1772 echo "${ECHO_T}$cross_compiling" >&6
1774 echo "$as_me:1774: checking for executable suffix" >&5
1775 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1776 if { (eval echo "$as_me:1776: \"$ac_link\"") >&5
1777 (eval $ac_link) 2>&5
1779 echo "$as_me:1779: \$? = $ac_status" >&5
1780 (exit $ac_status); }; then
1781 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1782 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1783 # work properly (i.e., refer to `conftest.exe'), while it won't with
1785 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1787 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
1788 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1795 { { echo "$as_me:1795: error: cannot compute EXEEXT: cannot compile and link" >&5
1796 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1797 { (exit 1); exit 1; }; }
1800 rm -f conftest
$ac_cv_exeext
1801 echo "$as_me:1801: result: $ac_cv_exeext" >&5
1802 echo "${ECHO_T}$ac_cv_exeext" >&6
1804 rm -f conftest.
$ac_ext
1805 EXEEXT
=$ac_cv_exeext
1807 echo "$as_me:1807: checking for object suffix" >&5
1808 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1809 if test "${ac_cv_objext+set}" = set; then
1810 echo $ECHO_N "(cached) $ECHO_C" >&6
1812 cat >conftest.
$ac_ext <<_ACEOF
1813 #line 1813 "configure"
1814 #include "confdefs.h"
1824 rm -f conftest.o conftest.obj
1825 if { (eval echo "$as_me:1825: \"$ac_compile\"") >&5
1826 (eval $ac_compile) 2>&5
1828 echo "$as_me:1828: \$? = $ac_status" >&5
1829 (exit $ac_status); }; then
1830 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1832 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
1833 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1838 echo "$as_me: failed program was:" >&5
1839 cat conftest.
$ac_ext >&5
1840 { { echo "$as_me:1840: error: cannot compute OBJEXT: cannot compile" >&5
1841 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1842 { (exit 1); exit 1; }; }
1845 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1847 echo "$as_me:1847: result: $ac_cv_objext" >&5
1848 echo "${ECHO_T}$ac_cv_objext" >&6
1849 OBJEXT
=$ac_cv_objext
1851 echo "$as_me:1851: checking whether we are using the GNU C compiler" >&5
1852 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1853 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1854 echo $ECHO_N "(cached) $ECHO_C" >&6
1856 cat >conftest.
$ac_ext <<_ACEOF
1857 #line 1857 "configure"
1858 #include "confdefs.h"
1871 rm -f conftest.
$ac_objext
1872 if { (eval echo "$as_me:1872: \"$ac_compile\"") >&5
1873 (eval $ac_compile) 2>&5
1875 echo "$as_me:1875: \$? = $ac_status" >&5
1876 (exit $ac_status); } &&
1877 { ac_try
='test -s conftest.$ac_objext'
1878 { (eval echo "$as_me:1878: \"$ac_try\"") >&5
1881 echo "$as_me:1881: \$? = $ac_status" >&5
1882 (exit $ac_status); }; }; then
1885 echo "$as_me: failed program was:" >&5
1886 cat conftest.
$ac_ext >&5
1889 rm -f conftest.
$ac_objext conftest.
$ac_ext
1890 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
1893 echo "$as_me:1893: result: $ac_cv_c_compiler_gnu" >&5
1894 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1895 GCC
=`test $ac_compiler_gnu = yes && echo yes`
1896 ac_test_CFLAGS
=${CFLAGS+set}
1897 ac_save_CFLAGS
=$CFLAGS
1899 echo "$as_me:1899: checking whether $CC accepts -g" >&5
1900 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1901 if test "${ac_cv_prog_cc_g+set}" = set; then
1902 echo $ECHO_N "(cached) $ECHO_C" >&6
1904 cat >conftest.
$ac_ext <<_ACEOF
1905 #line 1905 "configure"
1906 #include "confdefs.h"
1916 rm -f conftest.
$ac_objext
1917 if { (eval echo "$as_me:1917: \"$ac_compile\"") >&5
1918 (eval $ac_compile) 2>&5
1920 echo "$as_me:1920: \$? = $ac_status" >&5
1921 (exit $ac_status); } &&
1922 { ac_try
='test -s conftest.$ac_objext'
1923 { (eval echo "$as_me:1923: \"$ac_try\"") >&5
1926 echo "$as_me:1926: \$? = $ac_status" >&5
1927 (exit $ac_status); }; }; then
1930 echo "$as_me: failed program was:" >&5
1931 cat conftest.
$ac_ext >&5
1934 rm -f conftest.
$ac_objext conftest.
$ac_ext
1936 echo "$as_me:1936: result: $ac_cv_prog_cc_g" >&5
1937 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1938 if test "$ac_test_CFLAGS" = set; then
1939 CFLAGS
=$ac_save_CFLAGS
1940 elif test $ac_cv_prog_cc_g = yes; then
1941 if test "$GCC" = yes; then
1947 if test "$GCC" = yes; then
1953 # Some people use a C++ compiler to compile C. Since we use `exit',
1954 # in C++ we need to declare it. In case someone uses the same compiler
1955 # for both compiling C and C++ we need to have the C++ compiler decide
1956 # the declaration of exit, since it's the most demanding environment.
1957 cat >conftest.
$ac_ext <<_ACEOF
1962 rm -f conftest.
$ac_objext
1963 if { (eval echo "$as_me:1963: \"$ac_compile\"") >&5
1964 (eval $ac_compile) 2>&5
1966 echo "$as_me:1966: \$? = $ac_status" >&5
1967 (exit $ac_status); } &&
1968 { ac_try
='test -s conftest.$ac_objext'
1969 { (eval echo "$as_me:1969: \"$ac_try\"") >&5
1972 echo "$as_me:1972: \$? = $ac_status" >&5
1973 (exit $ac_status); }; }; then
1974 for ac_declaration
in \
1976 '#include <stdlib.h>' \
1977 'extern "C" void std::exit (int) throw (); using std::exit;' \
1978 'extern "C" void std::exit (int); using std::exit;' \
1979 'extern "C" void exit (int) throw ();' \
1980 'extern "C" void exit (int);' \
1983 cat >conftest.
$ac_ext <<_ACEOF
1984 #line 1984 "configure"
1985 #include "confdefs.h"
1996 rm -f conftest.
$ac_objext
1997 if { (eval echo "$as_me:1997: \"$ac_compile\"") >&5
1998 (eval $ac_compile) 2>&5
2000 echo "$as_me:2000: \$? = $ac_status" >&5
2001 (exit $ac_status); } &&
2002 { ac_try
='test -s conftest.$ac_objext'
2003 { (eval echo "$as_me:2003: \"$ac_try\"") >&5
2006 echo "$as_me:2006: \$? = $ac_status" >&5
2007 (exit $ac_status); }; }; then
2010 echo "$as_me: failed program was:" >&5
2011 cat conftest.
$ac_ext >&5
2014 rm -f conftest.
$ac_objext conftest.
$ac_ext
2015 cat >conftest.
$ac_ext <<_ACEOF
2016 #line 2016 "configure"
2017 #include "confdefs.h"
2027 rm -f conftest.
$ac_objext
2028 if { (eval echo "$as_me:2028: \"$ac_compile\"") >&5
2029 (eval $ac_compile) 2>&5
2031 echo "$as_me:2031: \$? = $ac_status" >&5
2032 (exit $ac_status); } &&
2033 { ac_try
='test -s conftest.$ac_objext'
2034 { (eval echo "$as_me:2034: \"$ac_try\"") >&5
2037 echo "$as_me:2037: \$? = $ac_status" >&5
2038 (exit $ac_status); }; }; then
2041 echo "$as_me: failed program was:" >&5
2042 cat conftest.
$ac_ext >&5
2044 rm -f conftest.
$ac_objext conftest.
$ac_ext
2047 if test -n "$ac_declaration"; then
2048 echo '#ifdef __cplusplus' >>confdefs.h
2049 echo $ac_declaration >>confdefs.h
2050 echo '#endif' >>confdefs.h
2054 echo "$as_me: failed program was:" >&5
2055 cat conftest.
$ac_ext >&5
2057 rm -f conftest.
$ac_objext conftest.
$ac_ext
2059 ac_cpp
='$CPP $CPPFLAGS'
2060 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2061 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2062 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2064 ac_config_commands
="$ac_config_commands default-1"
2066 am_make
=${MAKE-make}
2067 cat > confinc
<< 'END'
2071 # If we don't find an include directive, just comment out the code.
2072 echo "$as_me:2072: checking for style of include used by $am_make" >&5
2073 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2077 # First try GNU make style include.
2078 echo "include confinc" > confmf
2079 # We grep out `Entering directory' and `Leaving directory'
2080 # messages which can occur if `w' ends up in MAKEFLAGS.
2081 # In particular we don't look at `^make:' because GNU make might
2082 # be invoked under some other name (usually "gmake"), in which
2083 # case it prints its new name instead of `make'.
2084 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2089 # Now try BSD make style include.
2090 if test "$am__include" = "#"; then
2091 echo '.include "confinc"' > confmf
2092 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2093 am__include
=.include
2099 echo "$as_me:2099: result: $_am_result" >&5
2100 echo "${ECHO_T}$_am_result" >&6
2101 rm -f confinc confmf
2103 depcc
="$CC" am_compiler_list
=
2105 echo "$as_me:2105: checking dependency style of $depcc" >&5
2106 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2107 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2108 echo $ECHO_N "(cached) $ECHO_C" >&6
2110 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2111 # We make a subdir and do the tests there. Otherwise we can end up
2112 # making bogus files that we don't know about and never remove. For
2113 # instance it was reported that on HP-UX the gcc test will end up
2114 # making a dummy file named `D' -- because `-MD' means `put the output
2117 # Copy depcomp to subdir because otherwise we won't find it if we're
2118 # using a relative directory.
2119 cp "$am_depcomp" conftest.dir
2122 am_cv_CC_dependencies_compiler_type
=none
2123 if test "$am_compiler_list" = ""; then
2124 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2126 for depmode
in $am_compiler_list; do
2127 # We need to recreate these files for each test, as the compiler may
2128 # overwrite some of them when testing with obscure command lines.
2129 # This happens at least with the AIX C compiler.
2130 echo '#include "conftest.h"' > conftest.c
2131 echo 'int i;' > conftest.h
2132 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2136 # after this tag, mechanisms are not by side-effect, so they'll
2137 # only be used when explicitly requested
2138 if test "x$enable_dependency_tracking" = xyes
; then
2146 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2147 # mode. It turns out that the SunPro C++ compiler does not properly
2148 # handle `-M -o', and we need to detect this.
2149 if depmode
=$depmode \
2150 source=conftest.c object
=conftest.o \
2151 depfile
=conftest.Po tmpdepfile
=conftest.TPo \
2152 $SHELL .
/depcomp
$depcc -c conftest.c
-o conftest.o
>/dev
/null
2>&1 &&
2153 grep conftest.h conftest.Po
> /dev
/null
2>&1 &&
2154 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
2155 am_cv_CC_dependencies_compiler_type
=$depmode
2163 am_cv_CC_dependencies_compiler_type
=none
2167 echo "$as_me:2167: result: $am_cv_CC_dependencies_compiler_type" >&5
2168 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2169 CCDEPMODE
="depmode=$am_cv_CC_dependencies_compiler_type"
2171 if test -n "$ac_tool_prefix"; then
2172 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2173 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2174 echo "$as_me:2174: checking for $ac_word" >&5
2175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2176 if test "${ac_cv_prog_RANLIB+set}" = set; then
2177 echo $ECHO_N "(cached) $ECHO_C" >&6
2179 if test -n "$RANLIB"; then
2180 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2182 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2184 for ac_dir
in $ac_dummy; do
2186 test -z "$ac_dir" && ac_dir
=.
2187 $as_executable_p "$ac_dir/$ac_word" ||
continue
2188 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2189 echo "$as_me:2189: found $ac_dir/$ac_word" >&5
2195 RANLIB
=$ac_cv_prog_RANLIB
2196 if test -n "$RANLIB"; then
2197 echo "$as_me:2197: result: $RANLIB" >&5
2198 echo "${ECHO_T}$RANLIB" >&6
2200 echo "$as_me:2200: result: no" >&5
2201 echo "${ECHO_T}no" >&6
2205 if test -z "$ac_cv_prog_RANLIB"; then
2206 ac_ct_RANLIB
=$RANLIB
2207 # Extract the first word of "ranlib", so it can be a program name with args.
2208 set dummy ranlib
; ac_word
=$2
2209 echo "$as_me:2209: checking for $ac_word" >&5
2210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2211 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2212 echo $ECHO_N "(cached) $ECHO_C" >&6
2214 if test -n "$ac_ct_RANLIB"; then
2215 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
2217 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2219 for ac_dir
in $ac_dummy; do
2221 test -z "$ac_dir" && ac_dir
=.
2222 $as_executable_p "$ac_dir/$ac_word" ||
continue
2223 ac_cv_prog_ac_ct_RANLIB
="ranlib"
2224 echo "$as_me:2224: found $ac_dir/$ac_word" >&5
2228 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
2231 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
2232 if test -n "$ac_ct_RANLIB"; then
2233 echo "$as_me:2233: result: $ac_ct_RANLIB" >&5
2234 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2236 echo "$as_me:2236: result: no" >&5
2237 echo "${ECHO_T}no" >&6
2240 RANLIB
=$ac_ct_RANLIB
2242 RANLIB
="$ac_cv_prog_RANLIB"
2245 if test "x$GCC" = "xyes"; then
2246 if test "x$ac_test_CFLAGS" = "x"; then
2247 CFLAGS
="-Wall -pipe -O3 -fomit-frame-pointer -ffast-math"
2251 echo "$as_me:2251: checking for atan2 in -lm" >&5
2252 echo $ECHO_N "checking for atan2 in -lm... $ECHO_C" >&6
2253 if test "${ac_cv_lib_m_atan2+set}" = set; then
2254 echo $ECHO_N "(cached) $ECHO_C" >&6
2256 ac_check_lib_save_LIBS
=$LIBS
2258 cat >conftest.
$ac_ext <<_ACEOF
2259 #line 2259 "configure"
2260 #include "confdefs.h"
2262 /* Override any gcc2 internal prototype to avoid an error. */
2266 /* We use char because int might match the return type of a gcc2
2267 builtin and then its argument prototype would still apply. */
2277 rm -f conftest.
$ac_objext conftest
$ac_exeext
2278 if { (eval echo "$as_me:2278: \"$ac_link\"") >&5
2279 (eval $ac_link) 2>&5
2281 echo "$as_me:2281: \$? = $ac_status" >&5
2282 (exit $ac_status); } &&
2283 { ac_try
='test -s conftest$ac_exeext'
2284 { (eval echo "$as_me:2284: \"$ac_try\"") >&5
2287 echo "$as_me:2287: \$? = $ac_status" >&5
2288 (exit $ac_status); }; }; then
2289 ac_cv_lib_m_atan2
=yes
2291 echo "$as_me: failed program was:" >&5
2292 cat conftest.
$ac_ext >&5
2293 ac_cv_lib_m_atan2
=no
2295 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
2296 LIBS
=$ac_check_lib_save_LIBS
2298 echo "$as_me:2298: result: $ac_cv_lib_m_atan2" >&5
2299 echo "${ECHO_T}$ac_cv_lib_m_atan2" >&6
2300 if test $ac_cv_lib_m_atan2 = yes; then
2302 LDFLAGS
="-lm $LDFLAGS"
2306 { { echo "$as_me:2306: error: Cannot use -lm" >&5
2307 echo "$as_me: error: Cannot use -lm" >&2;}
2308 { (exit 1); exit 1; }; }
2312 echo "$as_me:2312: checking for ftw" >&5
2313 echo $ECHO_N "checking for ftw... $ECHO_C" >&6
2314 if test "${ac_cv_func_ftw+set}" = set; then
2315 echo $ECHO_N "(cached) $ECHO_C" >&6
2317 cat >conftest.
$ac_ext <<_ACEOF
2318 #line 2318 "configure"
2319 #include "confdefs.h"
2320 /* System header to define __stub macros and hopefully few prototypes,
2321 which can conflict with char ftw (); below. */
2323 /* Override any gcc2 internal prototype to avoid an error. */
2327 /* We use char because int might match the return type of a gcc2
2328 builtin and then its argument prototype would still apply. */
2335 /* The GNU C library defines this for functions which it implements
2336 to always fail with ENOSYS. Some functions are actually named
2337 something starting with __ and the normal name is an alias. */
2338 #if defined (__stub_ftw) || defined (__stub___ftw)
2348 rm -f conftest.
$ac_objext conftest
$ac_exeext
2349 if { (eval echo "$as_me:2349: \"$ac_link\"") >&5
2350 (eval $ac_link) 2>&5
2352 echo "$as_me:2352: \$? = $ac_status" >&5
2353 (exit $ac_status); } &&
2354 { ac_try
='test -s conftest$ac_exeext'
2355 { (eval echo "$as_me:2355: \"$ac_try\"") >&5
2358 echo "$as_me:2358: \$? = $ac_status" >&5
2359 (exit $ac_status); }; }; then
2362 echo "$as_me: failed program was:" >&5
2363 cat conftest.
$ac_ext >&5
2366 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
2368 echo "$as_me:2368: result: $ac_cv_func_ftw" >&5
2369 echo "${ECHO_T}$ac_cv_func_ftw" >&6
2370 if test $ac_cv_func_ftw = yes; then
2372 cat >>confdefs.h
<<\EOF
2384 if test "$have_ftw" = "yes"; then
2392 CFLAGS
="$CFLAGS -D_GNU_SOURCE"
2393 echo "$as_me:2393: checking for getline" >&5
2394 echo $ECHO_N "checking for getline... $ECHO_C" >&6
2395 if test "${ac_cv_func_getline+set}" = set; then
2396 echo $ECHO_N "(cached) $ECHO_C" >&6
2398 cat >conftest.
$ac_ext <<_ACEOF
2399 #line 2399 "configure"
2400 #include "confdefs.h"
2401 /* System header to define __stub macros and hopefully few prototypes,
2402 which can conflict with char getline (); below. */
2404 /* Override any gcc2 internal prototype to avoid an error. */
2408 /* We use char because int might match the return type of a gcc2
2409 builtin and then its argument prototype would still apply. */
2416 /* The GNU C library defines this for functions which it implements
2417 to always fail with ENOSYS. Some functions are actually named
2418 something starting with __ and the normal name is an alias. */
2419 #if defined (__stub_getline) || defined (__stub___getline)
2429 rm -f conftest.
$ac_objext conftest
$ac_exeext
2430 if { (eval echo "$as_me:2430: \"$ac_link\"") >&5
2431 (eval $ac_link) 2>&5
2433 echo "$as_me:2433: \$? = $ac_status" >&5
2434 (exit $ac_status); } &&
2435 { ac_try
='test -s conftest$ac_exeext'
2436 { (eval echo "$as_me:2436: \"$ac_try\"") >&5
2439 echo "$as_me:2439: \$? = $ac_status" >&5
2440 (exit $ac_status); }; }; then
2441 ac_cv_func_getline
=yes
2443 echo "$as_me: failed program was:" >&5
2444 cat conftest.
$ac_ext >&5
2445 ac_cv_func_getline
=no
2447 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
2449 echo "$as_me:2449: result: $ac_cv_func_getline" >&5
2450 echo "${ECHO_T}$ac_cv_func_getline" >&6
2451 if test $ac_cv_func_getline = yes; then
2453 cat >>confdefs.h
<<\EOF
2454 #define HAVE_GETLINE
2465 if test "$have_getline" = "yes"; then
2473 echo "$as_me:2473: checking for bsearch" >&5
2474 echo $ECHO_N "checking for bsearch... $ECHO_C" >&6
2475 if test "${ac_cv_func_bsearch+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2478 cat >conftest.
$ac_ext <<_ACEOF
2479 #line 2479 "configure"
2480 #include "confdefs.h"
2481 /* System header to define __stub macros and hopefully few prototypes,
2482 which can conflict with char bsearch (); below. */
2484 /* Override any gcc2 internal prototype to avoid an error. */
2488 /* We use char because int might match the return type of a gcc2
2489 builtin and then its argument prototype would still apply. */
2496 /* The GNU C library defines this for functions which it implements
2497 to always fail with ENOSYS. Some functions are actually named
2498 something starting with __ and the normal name is an alias. */
2499 #if defined (__stub_bsearch) || defined (__stub___bsearch)
2509 rm -f conftest.
$ac_objext conftest
$ac_exeext
2510 if { (eval echo "$as_me:2510: \"$ac_link\"") >&5
2511 (eval $ac_link) 2>&5
2513 echo "$as_me:2513: \$? = $ac_status" >&5
2514 (exit $ac_status); } &&
2515 { ac_try
='test -s conftest$ac_exeext'
2516 { (eval echo "$as_me:2516: \"$ac_try\"") >&5
2519 echo "$as_me:2519: \$? = $ac_status" >&5
2520 (exit $ac_status); }; }; then
2521 ac_cv_func_bsearch
=yes
2523 echo "$as_me: failed program was:" >&5
2524 cat conftest.
$ac_ext >&5
2525 ac_cv_func_bsearch
=no
2527 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
2529 echo "$as_me:2529: result: $ac_cv_func_bsearch" >&5
2530 echo "${ECHO_T}$ac_cv_func_bsearch" >&6
2531 if test $ac_cv_func_bsearch = yes; then
2533 cat >>confdefs.h
<<\EOF
2534 #define HAVE_BSEARCH
2545 if test "$have_bsearch" = "yes"; then
2553 echo "$as_me:2553: checking for getopt_long" >&5
2554 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
2555 if test "${ac_cv_func_getopt_long+set}" = set; then
2556 echo $ECHO_N "(cached) $ECHO_C" >&6
2558 cat >conftest.
$ac_ext <<_ACEOF
2559 #line 2559 "configure"
2560 #include "confdefs.h"
2561 /* System header to define __stub macros and hopefully few prototypes,
2562 which can conflict with char getopt_long (); below. */
2564 /* Override any gcc2 internal prototype to avoid an error. */
2568 /* We use char because int might match the return type of a gcc2
2569 builtin and then its argument prototype would still apply. */
2570 char getopt_long ();
2576 /* The GNU C library defines this for functions which it implements
2577 to always fail with ENOSYS. Some functions are actually named
2578 something starting with __ and the normal name is an alias. */
2579 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
2589 rm -f conftest.
$ac_objext conftest
$ac_exeext
2590 if { (eval echo "$as_me:2590: \"$ac_link\"") >&5
2591 (eval $ac_link) 2>&5
2593 echo "$as_me:2593: \$? = $ac_status" >&5
2594 (exit $ac_status); } &&
2595 { ac_try
='test -s conftest$ac_exeext'
2596 { (eval echo "$as_me:2596: \"$ac_try\"") >&5
2599 echo "$as_me:2599: \$? = $ac_status" >&5
2600 (exit $ac_status); }; }; then
2601 ac_cv_func_getopt_long
=yes
2603 echo "$as_me: failed program was:" >&5
2604 cat conftest.
$ac_ext >&5
2605 ac_cv_func_getopt_long
=no
2607 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
2609 echo "$as_me:2609: result: $ac_cv_func_getopt_long" >&5
2610 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
2611 if test $ac_cv_func_getopt_long = yes; then
2613 cat >>confdefs.h
<<\EOF
2614 #define HAVE_GETOPT_LONG
2617 have_getopt_long
="yes"
2621 have_getopt_long
=="no"
2625 if test "$have_getopt_long" = "yes"; then
2627 GETOPT_LONG_FALSE
='#'
2629 GETOPT_LONG_TRUE
='#'
2633 if test "$have_ftw" = "no" ||
2634 test "$have_getline" = "no" ||
2635 test "$have_bsearch" = "no" ||
2636 test "$have_getopt_long" = "no"; then
2637 NEED_REPLACEMENTS_TRUE
=
2638 NEED_REPLACEMENTS_FALSE
='#'
2640 NEED_REPLACEMENTS_TRUE
='#'
2641 NEED_REPLACEMENTS_FALSE
=
2645 ac_cpp
='$CPP $CPPFLAGS'
2646 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2647 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2648 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2649 echo "$as_me:2649: checking how to run the C preprocessor" >&5
2650 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2651 # On Suns, sometimes $CPP names a directory.
2652 if test -n "$CPP" && test -d "$CPP"; then
2655 if test -z "$CPP"; then
2656 if test "${ac_cv_prog_CPP+set}" = set; then
2657 echo $ECHO_N "(cached) $ECHO_C" >&6
2659 # Double quotes because CPP needs to be expanded
2660 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2663 for ac_c_preproc_warn_flag
in '' yes
2665 # Use a header file that comes with gcc, so configuring glibc
2666 # with a fresh cross-compiler works.
2667 # On the NeXT, cc -E runs the code through the compiler's parser,
2668 # not just through cpp. "Syntax error" is here to catch this case.
2669 cat >conftest.
$ac_ext <<_ACEOF
2670 #line 2670 "configure"
2671 #include "confdefs.h"
2675 if { (eval echo "$as_me:2675: \"$ac_cpp conftest.$ac_ext\"") >&5
2676 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2678 egrep -v '^ *\+' conftest.er1
>conftest.err
2680 cat conftest.err
>&5
2681 echo "$as_me:2681: \$? = $ac_status" >&5
2682 (exit $ac_status); } >/dev
/null
; then
2683 if test -s conftest.err
; then
2684 ac_cpp_err
=$ac_c_preproc_warn_flag
2691 if test -z "$ac_cpp_err"; then
2694 echo "$as_me: failed program was:" >&5
2695 cat conftest.
$ac_ext >&5
2696 # Broken: fails on valid input.
2699 rm -f conftest.err conftest.
$ac_ext
2701 # OK, works on sane cases. Now check whether non-existent headers
2702 # can be detected and how.
2703 cat >conftest.
$ac_ext <<_ACEOF
2704 #line 2704 "configure"
2705 #include "confdefs.h"
2706 #include <ac_nonexistent.h>
2708 if { (eval echo "$as_me:2708: \"$ac_cpp conftest.$ac_ext\"") >&5
2709 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2711 egrep -v '^ *\+' conftest.er1
>conftest.err
2713 cat conftest.err
>&5
2714 echo "$as_me:2714: \$? = $ac_status" >&5
2715 (exit $ac_status); } >/dev
/null
; then
2716 if test -s conftest.err
; then
2717 ac_cpp_err
=$ac_c_preproc_warn_flag
2724 if test -z "$ac_cpp_err"; then
2725 # Broken: success on invalid input.
2728 echo "$as_me: failed program was:" >&5
2729 cat conftest.
$ac_ext >&5
2730 # Passes both tests.
2734 rm -f conftest.err conftest.
$ac_ext
2737 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2738 rm -f conftest.err conftest.
$ac_ext
2739 if $ac_preproc_ok; then
2751 echo "$as_me:2751: result: $CPP" >&5
2752 echo "${ECHO_T}$CPP" >&6
2754 for ac_c_preproc_warn_flag
in '' yes
2756 # Use a header file that comes with gcc, so configuring glibc
2757 # with a fresh cross-compiler works.
2758 # On the NeXT, cc -E runs the code through the compiler's parser,
2759 # not just through cpp. "Syntax error" is here to catch this case.
2760 cat >conftest.
$ac_ext <<_ACEOF
2761 #line 2761 "configure"
2762 #include "confdefs.h"
2766 if { (eval echo "$as_me:2766: \"$ac_cpp conftest.$ac_ext\"") >&5
2767 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2769 egrep -v '^ *\+' conftest.er1
>conftest.err
2771 cat conftest.err
>&5
2772 echo "$as_me:2772: \$? = $ac_status" >&5
2773 (exit $ac_status); } >/dev
/null
; then
2774 if test -s conftest.err
; then
2775 ac_cpp_err
=$ac_c_preproc_warn_flag
2782 if test -z "$ac_cpp_err"; then
2785 echo "$as_me: failed program was:" >&5
2786 cat conftest.
$ac_ext >&5
2787 # Broken: fails on valid input.
2790 rm -f conftest.err conftest.
$ac_ext
2792 # OK, works on sane cases. Now check whether non-existent headers
2793 # can be detected and how.
2794 cat >conftest.
$ac_ext <<_ACEOF
2795 #line 2795 "configure"
2796 #include "confdefs.h"
2797 #include <ac_nonexistent.h>
2799 if { (eval echo "$as_me:2799: \"$ac_cpp conftest.$ac_ext\"") >&5
2800 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2802 egrep -v '^ *\+' conftest.er1
>conftest.err
2804 cat conftest.err
>&5
2805 echo "$as_me:2805: \$? = $ac_status" >&5
2806 (exit $ac_status); } >/dev
/null
; then
2807 if test -s conftest.err
; then
2808 ac_cpp_err
=$ac_c_preproc_warn_flag
2815 if test -z "$ac_cpp_err"; then
2816 # Broken: success on invalid input.
2819 echo "$as_me: failed program was:" >&5
2820 cat conftest.
$ac_ext >&5
2821 # Passes both tests.
2825 rm -f conftest.err conftest.
$ac_ext
2828 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2829 rm -f conftest.err conftest.
$ac_ext
2830 if $ac_preproc_ok; then
2833 { { echo "$as_me:2833: error: C preprocessor \"$CPP\" fails sanity check" >&5
2834 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2835 { (exit 1); exit 1; }; }
2839 ac_cpp
='$CPP $CPPFLAGS'
2840 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2841 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2842 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2844 echo "$as_me:2844: checking for X" >&5
2845 echo $ECHO_N "checking for X... $ECHO_C" >&6
2847 # Check whether --with-x or --without-x was given.
2848 if test "${with_x+set}" = set; then
2852 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2853 if test "x$with_x" = xno
; then
2854 # The user explicitly disabled X.
2857 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
2858 # Both variables are already set.
2861 if test "${ac_cv_have_x+set}" = set; then
2862 echo $ECHO_N "(cached) $ECHO_C" >&6
2864 # One or both of the vars are not set, and there is no cached value.
2865 ac_x_includes
=no ac_x_libraries
=no
2867 if mkdir conftest.dir
; then
2869 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2870 cat >Imakefile
<<'EOF'
2872 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2874 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
2875 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2876 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2877 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2878 for ac_extension
in a so sl
; do
2879 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
2880 test -f $ac_im_libdir/libX11.
$ac_extension; then
2881 ac_im_usrlibdir
=$ac_im_libdir; break
2884 # Screen out bogus values from the imake configuration. They are
2885 # bogus both because they are the default anyway, and because
2886 # using them would break gcc on systems where it needs fixed includes.
2887 case $ac_im_incroot in
2889 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
2891 case $ac_im_usrlibdir in
2893 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
2900 # Standard set of common directories for X headers.
2901 # Check X11 before X11Rn because it is often a symlink to the current release.
2913 /usr/local/X11/include
2914 /usr/local/X11R6/include
2915 /usr/local/X11R5/include
2916 /usr/local/X11R4/include
2918 /usr/local/include/X11
2919 /usr/local/include/X11R6
2920 /usr/local/include/X11R5
2921 /usr/local/include/X11R4
2925 /usr/XFree86/include/X11
2929 /usr/unsupported/include
2931 /usr/local/x11r5/include
2932 /usr/lpp/Xamples/include
2934 /usr/openwin/include
2935 /usr/openwin/share/include'
2937 if test "$ac_x_includes" = no
; then
2938 # Guess where to find include files, by looking for Intrinsic.h.
2939 # First, try using that file with no special directory specified.
2940 cat >conftest.
$ac_ext <<_ACEOF
2941 #line 2941 "configure"
2942 #include "confdefs.h"
2943 #include <X11/Intrinsic.h>
2945 if { (eval echo "$as_me:2945: \"$ac_cpp conftest.$ac_ext\"") >&5
2946 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2948 egrep -v '^ *\+' conftest.er1
>conftest.err
2950 cat conftest.err
>&5
2951 echo "$as_me:2951: \$? = $ac_status" >&5
2952 (exit $ac_status); } >/dev
/null
; then
2953 if test -s conftest.err
; then
2954 ac_cpp_err
=$ac_c_preproc_warn_flag
2961 if test -z "$ac_cpp_err"; then
2962 # We can compile using X headers with no special include directory.
2965 echo "$as_me: failed program was:" >&5
2966 cat conftest.
$ac_ext >&5
2967 for ac_dir
in $ac_x_header_dirs; do
2968 if test -r "$ac_dir/X11/Intrinsic.h"; then
2969 ac_x_includes
=$ac_dir
2974 rm -f conftest.err conftest.
$ac_ext
2975 fi # $ac_x_includes = no
2977 if test "$ac_x_libraries" = no
; then
2978 # Check for the libraries.
2979 # See if we find them without any special options.
2980 # Don't add to $LIBS permanently.
2983 cat >conftest.
$ac_ext <<_ACEOF
2984 #line 2984 "configure"
2985 #include "confdefs.h"
2986 #include <X11/Intrinsic.h>
2995 rm -f conftest.
$ac_objext conftest
$ac_exeext
2996 if { (eval echo "$as_me:2996: \"$ac_link\"") >&5
2997 (eval $ac_link) 2>&5
2999 echo "$as_me:2999: \$? = $ac_status" >&5
3000 (exit $ac_status); } &&
3001 { ac_try
='test -s conftest$ac_exeext'
3002 { (eval echo "$as_me:3002: \"$ac_try\"") >&5
3005 echo "$as_me:3005: \$? = $ac_status" >&5
3006 (exit $ac_status); }; }; then
3008 # We can link X programs with no special library path.
3011 echo "$as_me: failed program was:" >&5
3012 cat conftest.
$ac_ext >&5
3014 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3016 # Don't even attempt the hair of trying to link an X program!
3017 for ac_extension
in a so sl
; do
3018 if test -r $ac_dir/libXt.
$ac_extension; then
3019 ac_x_libraries
=$ac_dir
3025 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3026 fi # $ac_x_libraries = no
3028 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
3029 # Didn't find X anywhere. Cache the known absence of X.
3030 ac_cv_have_x
="have_x=no"
3032 # Record where we found X for the cache.
3033 ac_cv_have_x
="have_x=yes \
3034 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3039 eval "$ac_cv_have_x"
3042 if test "$have_x" != yes; then
3043 echo "$as_me:3043: result: $have_x" >&5
3044 echo "${ECHO_T}$have_x" >&6
3047 # If each of the values was on the command line, it overrides each guess.
3048 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
3049 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
3050 # Update the cache value to reflect the command line values.
3051 ac_cv_have_x
="have_x=yes \
3052 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3053 echo "$as_me:3053: result: libraries $x_libraries, headers $x_includes" >&5
3054 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
3057 if test "$no_x" = yes; then
3058 # Not all programs may use this symbol, but it does not hurt to define it.
3060 cat >>confdefs.h
<<\EOF
3061 #define X_DISPLAY_MISSING 1
3064 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
3066 if test -n "$x_includes"; then
3067 X_CFLAGS
="$X_CFLAGS -I$x_includes"
3070 # It would also be nice to do this for all -L options, not just this one.
3071 if test -n "$x_libraries"; then
3072 X_LIBS
="$X_LIBS -L$x_libraries"
3073 # For Solaris; some versions of Sun CC require a space after -R and
3074 # others require no space. Words are not sufficient . . . .
3075 case `(uname -sr) 2>/dev/null` in
3077 echo "$as_me:3077: checking whether -R must be followed by a space" >&5
3078 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3079 ac_xsave_LIBS
=$LIBS; LIBS
="$LIBS -R$x_libraries"
3080 cat >conftest.
$ac_ext <<_ACEOF
3081 #line 3081 "configure"
3082 #include "confdefs.h"
3092 rm -f conftest.
$ac_objext conftest
$ac_exeext
3093 if { (eval echo "$as_me:3093: \"$ac_link\"") >&5
3094 (eval $ac_link) 2>&5
3096 echo "$as_me:3096: \$? = $ac_status" >&5
3097 (exit $ac_status); } &&
3098 { ac_try
='test -s conftest$ac_exeext'
3099 { (eval echo "$as_me:3099: \"$ac_try\"") >&5
3102 echo "$as_me:3102: \$? = $ac_status" >&5
3103 (exit $ac_status); }; }; then
3106 echo "$as_me: failed program was:" >&5
3107 cat conftest.
$ac_ext >&5
3110 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3111 if test $ac_R_nospace = yes; then
3112 echo "$as_me:3112: result: no" >&5
3113 echo "${ECHO_T}no" >&6
3114 X_LIBS
="$X_LIBS -R$x_libraries"
3116 LIBS
="$ac_xsave_LIBS -R $x_libraries"
3117 cat >conftest.
$ac_ext <<_ACEOF
3118 #line 3118 "configure"
3119 #include "confdefs.h"
3129 rm -f conftest.
$ac_objext conftest
$ac_exeext
3130 if { (eval echo "$as_me:3130: \"$ac_link\"") >&5
3131 (eval $ac_link) 2>&5
3133 echo "$as_me:3133: \$? = $ac_status" >&5
3134 (exit $ac_status); } &&
3135 { ac_try
='test -s conftest$ac_exeext'
3136 { (eval echo "$as_me:3136: \"$ac_try\"") >&5
3139 echo "$as_me:3139: \$? = $ac_status" >&5
3140 (exit $ac_status); }; }; then
3143 echo "$as_me: failed program was:" >&5
3144 cat conftest.
$ac_ext >&5
3147 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3148 if test $ac_R_space = yes; then
3149 echo "$as_me:3149: result: yes" >&5
3150 echo "${ECHO_T}yes" >&6
3151 X_LIBS
="$X_LIBS -R $x_libraries"
3153 echo "$as_me:3153: result: neither works" >&5
3154 echo "${ECHO_T}neither works" >&6
3161 # Check for system-dependent libraries X programs must link with.
3162 # Do this before checking for the system-independent R6 libraries
3163 # (-lICE), since we may need -lsocket or whatever for X linking.
3165 if test "$ISC" = yes; then
3166 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
3168 # Martyn Johnson says this is needed for Ultrix, if the X
3169 # libraries were built with DECnet support. And Karl Berry says
3170 # the Alpha needs dnet_stub (dnet does not exist).
3171 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS $X_LIBS -lX11"
3172 cat >conftest.
$ac_ext <<_ACEOF
3173 #line 3173 "configure"
3174 #include "confdefs.h"
3176 /* Override any gcc2 internal prototype to avoid an error. */
3180 /* We use char because int might match the return type of a gcc2
3181 builtin and then its argument prototype would still apply. */
3182 char XOpenDisplay ();
3191 rm -f conftest.
$ac_objext conftest
$ac_exeext
3192 if { (eval echo "$as_me:3192: \"$ac_link\"") >&5
3193 (eval $ac_link) 2>&5
3195 echo "$as_me:3195: \$? = $ac_status" >&5
3196 (exit $ac_status); } &&
3197 { ac_try
='test -s conftest$ac_exeext'
3198 { (eval echo "$as_me:3198: \"$ac_try\"") >&5
3201 echo "$as_me:3201: \$? = $ac_status" >&5
3202 (exit $ac_status); }; }; then
3205 echo "$as_me: failed program was:" >&5
3206 cat conftest.
$ac_ext >&5
3207 echo "$as_me:3207: checking for dnet_ntoa in -ldnet" >&5
3208 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3209 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3210 echo $ECHO_N "(cached) $ECHO_C" >&6
3212 ac_check_lib_save_LIBS
=$LIBS
3214 cat >conftest.
$ac_ext <<_ACEOF
3215 #line 3215 "configure"
3216 #include "confdefs.h"
3218 /* Override any gcc2 internal prototype to avoid an error. */
3222 /* We use char because int might match the return type of a gcc2
3223 builtin and then its argument prototype would still apply. */
3233 rm -f conftest.
$ac_objext conftest
$ac_exeext
3234 if { (eval echo "$as_me:3234: \"$ac_link\"") >&5
3235 (eval $ac_link) 2>&5
3237 echo "$as_me:3237: \$? = $ac_status" >&5
3238 (exit $ac_status); } &&
3239 { ac_try
='test -s conftest$ac_exeext'
3240 { (eval echo "$as_me:3240: \"$ac_try\"") >&5
3243 echo "$as_me:3243: \$? = $ac_status" >&5
3244 (exit $ac_status); }; }; then
3245 ac_cv_lib_dnet_dnet_ntoa
=yes
3247 echo "$as_me: failed program was:" >&5
3248 cat conftest.
$ac_ext >&5
3249 ac_cv_lib_dnet_dnet_ntoa
=no
3251 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3252 LIBS
=$ac_check_lib_save_LIBS
3254 echo "$as_me:3254: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3255 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3256 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3257 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
3260 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
3261 echo "$as_me:3261: checking for dnet_ntoa in -ldnet_stub" >&5
3262 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3263 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3264 echo $ECHO_N "(cached) $ECHO_C" >&6
3266 ac_check_lib_save_LIBS
=$LIBS
3267 LIBS
="-ldnet_stub $LIBS"
3268 cat >conftest.
$ac_ext <<_ACEOF
3269 #line 3269 "configure"
3270 #include "confdefs.h"
3272 /* Override any gcc2 internal prototype to avoid an error. */
3276 /* We use char because int might match the return type of a gcc2
3277 builtin and then its argument prototype would still apply. */
3287 rm -f conftest.
$ac_objext conftest
$ac_exeext
3288 if { (eval echo "$as_me:3288: \"$ac_link\"") >&5
3289 (eval $ac_link) 2>&5
3291 echo "$as_me:3291: \$? = $ac_status" >&5
3292 (exit $ac_status); } &&
3293 { ac_try
='test -s conftest$ac_exeext'
3294 { (eval echo "$as_me:3294: \"$ac_try\"") >&5
3297 echo "$as_me:3297: \$? = $ac_status" >&5
3298 (exit $ac_status); }; }; then
3299 ac_cv_lib_dnet_stub_dnet_ntoa
=yes
3301 echo "$as_me: failed program was:" >&5
3302 cat conftest.
$ac_ext >&5
3303 ac_cv_lib_dnet_stub_dnet_ntoa
=no
3305 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3306 LIBS
=$ac_check_lib_save_LIBS
3308 echo "$as_me:3308: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3309 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3310 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3311 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
3316 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3317 LIBS
="$ac_xsave_LIBS"
3319 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3320 # to get the SysV transport functions.
3321 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3323 # The nsl library prevents programs from opening the X display
3324 # on Irix 5.2, according to T.E. Dickey.
3325 # The functions gethostbyname, getservbyname, and inet_addr are
3326 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3327 echo "$as_me:3327: checking for gethostbyname" >&5
3328 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3329 if test "${ac_cv_func_gethostbyname+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3332 cat >conftest.
$ac_ext <<_ACEOF
3333 #line 3333 "configure"
3334 #include "confdefs.h"
3335 /* System header to define __stub macros and hopefully few prototypes,
3336 which can conflict with char gethostbyname (); below. */
3338 /* Override any gcc2 internal prototype to avoid an error. */
3342 /* We use char because int might match the return type of a gcc2
3343 builtin and then its argument prototype would still apply. */
3344 char gethostbyname ();
3350 /* The GNU C library defines this for functions which it implements
3351 to always fail with ENOSYS. Some functions are actually named
3352 something starting with __ and the normal name is an alias. */
3353 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3363 rm -f conftest.
$ac_objext conftest
$ac_exeext
3364 if { (eval echo "$as_me:3364: \"$ac_link\"") >&5
3365 (eval $ac_link) 2>&5
3367 echo "$as_me:3367: \$? = $ac_status" >&5
3368 (exit $ac_status); } &&
3369 { ac_try
='test -s conftest$ac_exeext'
3370 { (eval echo "$as_me:3370: \"$ac_try\"") >&5
3373 echo "$as_me:3373: \$? = $ac_status" >&5
3374 (exit $ac_status); }; }; then
3375 ac_cv_func_gethostbyname
=yes
3377 echo "$as_me: failed program was:" >&5
3378 cat conftest.
$ac_ext >&5
3379 ac_cv_func_gethostbyname
=no
3381 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3383 echo "$as_me:3383: result: $ac_cv_func_gethostbyname" >&5
3384 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3386 if test $ac_cv_func_gethostbyname = no
; then
3387 echo "$as_me:3387: checking for gethostbyname in -lnsl" >&5
3388 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3389 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3390 echo $ECHO_N "(cached) $ECHO_C" >&6
3392 ac_check_lib_save_LIBS
=$LIBS
3394 cat >conftest.
$ac_ext <<_ACEOF
3395 #line 3395 "configure"
3396 #include "confdefs.h"
3398 /* Override any gcc2 internal prototype to avoid an error. */
3402 /* We use char because int might match the return type of a gcc2
3403 builtin and then its argument prototype would still apply. */
3404 char gethostbyname ();
3413 rm -f conftest.
$ac_objext conftest
$ac_exeext
3414 if { (eval echo "$as_me:3414: \"$ac_link\"") >&5
3415 (eval $ac_link) 2>&5
3417 echo "$as_me:3417: \$? = $ac_status" >&5
3418 (exit $ac_status); } &&
3419 { ac_try
='test -s conftest$ac_exeext'
3420 { (eval echo "$as_me:3420: \"$ac_try\"") >&5
3423 echo "$as_me:3423: \$? = $ac_status" >&5
3424 (exit $ac_status); }; }; then
3425 ac_cv_lib_nsl_gethostbyname
=yes
3427 echo "$as_me: failed program was:" >&5
3428 cat conftest.
$ac_ext >&5
3429 ac_cv_lib_nsl_gethostbyname
=no
3431 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3432 LIBS
=$ac_check_lib_save_LIBS
3434 echo "$as_me:3434: result: $ac_cv_lib_nsl_gethostbyname" >&5
3435 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3436 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3437 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
3440 if test $ac_cv_lib_nsl_gethostbyname = no
; then
3441 echo "$as_me:3441: checking for gethostbyname in -lbsd" >&5
3442 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3443 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3446 ac_check_lib_save_LIBS
=$LIBS
3448 cat >conftest.
$ac_ext <<_ACEOF
3449 #line 3449 "configure"
3450 #include "confdefs.h"
3452 /* Override any gcc2 internal prototype to avoid an error. */
3456 /* We use char because int might match the return type of a gcc2
3457 builtin and then its argument prototype would still apply. */
3458 char gethostbyname ();
3467 rm -f conftest.
$ac_objext conftest
$ac_exeext
3468 if { (eval echo "$as_me:3468: \"$ac_link\"") >&5
3469 (eval $ac_link) 2>&5
3471 echo "$as_me:3471: \$? = $ac_status" >&5
3472 (exit $ac_status); } &&
3473 { ac_try
='test -s conftest$ac_exeext'
3474 { (eval echo "$as_me:3474: \"$ac_try\"") >&5
3477 echo "$as_me:3477: \$? = $ac_status" >&5
3478 (exit $ac_status); }; }; then
3479 ac_cv_lib_bsd_gethostbyname
=yes
3481 echo "$as_me: failed program was:" >&5
3482 cat conftest.
$ac_ext >&5
3483 ac_cv_lib_bsd_gethostbyname
=no
3485 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3486 LIBS
=$ac_check_lib_save_LIBS
3488 echo "$as_me:3488: result: $ac_cv_lib_bsd_gethostbyname" >&5
3489 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3490 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3491 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
3497 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3498 # socket/setsockopt and other routines are undefined under SCO ODT
3499 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3500 # on later versions), says Simon Leinen: it contains gethostby*
3501 # variants that don't use the nameserver (or something). -lsocket
3502 # must be given before -lnsl if both are needed. We assume that
3503 # if connect needs -lnsl, so does gethostbyname.
3504 echo "$as_me:3504: checking for connect" >&5
3505 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3506 if test "${ac_cv_func_connect+set}" = set; then
3507 echo $ECHO_N "(cached) $ECHO_C" >&6
3509 cat >conftest.
$ac_ext <<_ACEOF
3510 #line 3510 "configure"
3511 #include "confdefs.h"
3512 /* System header to define __stub macros and hopefully few prototypes,
3513 which can conflict with char connect (); below. */
3515 /* Override any gcc2 internal prototype to avoid an error. */
3519 /* We use char because int might match the return type of a gcc2
3520 builtin and then its argument prototype would still apply. */
3527 /* The GNU C library defines this for functions which it implements
3528 to always fail with ENOSYS. Some functions are actually named
3529 something starting with __ and the normal name is an alias. */
3530 #if defined (__stub_connect) || defined (__stub___connect)
3540 rm -f conftest.
$ac_objext conftest
$ac_exeext
3541 if { (eval echo "$as_me:3541: \"$ac_link\"") >&5
3542 (eval $ac_link) 2>&5
3544 echo "$as_me:3544: \$? = $ac_status" >&5
3545 (exit $ac_status); } &&
3546 { ac_try
='test -s conftest$ac_exeext'
3547 { (eval echo "$as_me:3547: \"$ac_try\"") >&5
3550 echo "$as_me:3550: \$? = $ac_status" >&5
3551 (exit $ac_status); }; }; then
3552 ac_cv_func_connect
=yes
3554 echo "$as_me: failed program was:" >&5
3555 cat conftest.
$ac_ext >&5
3556 ac_cv_func_connect
=no
3558 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3560 echo "$as_me:3560: result: $ac_cv_func_connect" >&5
3561 echo "${ECHO_T}$ac_cv_func_connect" >&6
3563 if test $ac_cv_func_connect = no
; then
3564 echo "$as_me:3564: checking for connect in -lsocket" >&5
3565 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3566 if test "${ac_cv_lib_socket_connect+set}" = set; then
3567 echo $ECHO_N "(cached) $ECHO_C" >&6
3569 ac_check_lib_save_LIBS
=$LIBS
3570 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
3571 cat >conftest.
$ac_ext <<_ACEOF
3572 #line 3572 "configure"
3573 #include "confdefs.h"
3575 /* Override any gcc2 internal prototype to avoid an error. */
3579 /* We use char because int might match the return type of a gcc2
3580 builtin and then its argument prototype would still apply. */
3590 rm -f conftest.
$ac_objext conftest
$ac_exeext
3591 if { (eval echo "$as_me:3591: \"$ac_link\"") >&5
3592 (eval $ac_link) 2>&5
3594 echo "$as_me:3594: \$? = $ac_status" >&5
3595 (exit $ac_status); } &&
3596 { ac_try
='test -s conftest$ac_exeext'
3597 { (eval echo "$as_me:3597: \"$ac_try\"") >&5
3600 echo "$as_me:3600: \$? = $ac_status" >&5
3601 (exit $ac_status); }; }; then
3602 ac_cv_lib_socket_connect
=yes
3604 echo "$as_me: failed program was:" >&5
3605 cat conftest.
$ac_ext >&5
3606 ac_cv_lib_socket_connect
=no
3608 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3609 LIBS
=$ac_check_lib_save_LIBS
3611 echo "$as_me:3611: result: $ac_cv_lib_socket_connect" >&5
3612 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3613 if test $ac_cv_lib_socket_connect = yes; then
3614 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
3619 # Guillermo Gomez says -lposix is necessary on A/UX.
3620 echo "$as_me:3620: checking for remove" >&5
3621 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3622 if test "${ac_cv_func_remove+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3625 cat >conftest.
$ac_ext <<_ACEOF
3626 #line 3626 "configure"
3627 #include "confdefs.h"
3628 /* System header to define __stub macros and hopefully few prototypes,
3629 which can conflict with char remove (); below. */
3631 /* Override any gcc2 internal prototype to avoid an error. */
3635 /* We use char because int might match the return type of a gcc2
3636 builtin and then its argument prototype would still apply. */
3643 /* The GNU C library defines this for functions which it implements
3644 to always fail with ENOSYS. Some functions are actually named
3645 something starting with __ and the normal name is an alias. */
3646 #if defined (__stub_remove) || defined (__stub___remove)
3656 rm -f conftest.
$ac_objext conftest
$ac_exeext
3657 if { (eval echo "$as_me:3657: \"$ac_link\"") >&5
3658 (eval $ac_link) 2>&5
3660 echo "$as_me:3660: \$? = $ac_status" >&5
3661 (exit $ac_status); } &&
3662 { ac_try
='test -s conftest$ac_exeext'
3663 { (eval echo "$as_me:3663: \"$ac_try\"") >&5
3666 echo "$as_me:3666: \$? = $ac_status" >&5
3667 (exit $ac_status); }; }; then
3668 ac_cv_func_remove
=yes
3670 echo "$as_me: failed program was:" >&5
3671 cat conftest.
$ac_ext >&5
3672 ac_cv_func_remove
=no
3674 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3676 echo "$as_me:3676: result: $ac_cv_func_remove" >&5
3677 echo "${ECHO_T}$ac_cv_func_remove" >&6
3679 if test $ac_cv_func_remove = no
; then
3680 echo "$as_me:3680: checking for remove in -lposix" >&5
3681 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3682 if test "${ac_cv_lib_posix_remove+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3685 ac_check_lib_save_LIBS
=$LIBS
3686 LIBS
="-lposix $LIBS"
3687 cat >conftest.
$ac_ext <<_ACEOF
3688 #line 3688 "configure"
3689 #include "confdefs.h"
3691 /* Override any gcc2 internal prototype to avoid an error. */
3695 /* We use char because int might match the return type of a gcc2
3696 builtin and then its argument prototype would still apply. */
3706 rm -f conftest.
$ac_objext conftest
$ac_exeext
3707 if { (eval echo "$as_me:3707: \"$ac_link\"") >&5
3708 (eval $ac_link) 2>&5
3710 echo "$as_me:3710: \$? = $ac_status" >&5
3711 (exit $ac_status); } &&
3712 { ac_try
='test -s conftest$ac_exeext'
3713 { (eval echo "$as_me:3713: \"$ac_try\"") >&5
3716 echo "$as_me:3716: \$? = $ac_status" >&5
3717 (exit $ac_status); }; }; then
3718 ac_cv_lib_posix_remove
=yes
3720 echo "$as_me: failed program was:" >&5
3721 cat conftest.
$ac_ext >&5
3722 ac_cv_lib_posix_remove
=no
3724 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3725 LIBS
=$ac_check_lib_save_LIBS
3727 echo "$as_me:3727: result: $ac_cv_lib_posix_remove" >&5
3728 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3729 if test $ac_cv_lib_posix_remove = yes; then
3730 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
3735 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3736 echo "$as_me:3736: checking for shmat" >&5
3737 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3738 if test "${ac_cv_func_shmat+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3741 cat >conftest.
$ac_ext <<_ACEOF
3742 #line 3742 "configure"
3743 #include "confdefs.h"
3744 /* System header to define __stub macros and hopefully few prototypes,
3745 which can conflict with char shmat (); below. */
3747 /* Override any gcc2 internal prototype to avoid an error. */
3751 /* We use char because int might match the return type of a gcc2
3752 builtin and then its argument prototype would still apply. */
3759 /* The GNU C library defines this for functions which it implements
3760 to always fail with ENOSYS. Some functions are actually named
3761 something starting with __ and the normal name is an alias. */
3762 #if defined (__stub_shmat) || defined (__stub___shmat)
3772 rm -f conftest.
$ac_objext conftest
$ac_exeext
3773 if { (eval echo "$as_me:3773: \"$ac_link\"") >&5
3774 (eval $ac_link) 2>&5
3776 echo "$as_me:3776: \$? = $ac_status" >&5
3777 (exit $ac_status); } &&
3778 { ac_try
='test -s conftest$ac_exeext'
3779 { (eval echo "$as_me:3779: \"$ac_try\"") >&5
3782 echo "$as_me:3782: \$? = $ac_status" >&5
3783 (exit $ac_status); }; }; then
3784 ac_cv_func_shmat
=yes
3786 echo "$as_me: failed program was:" >&5
3787 cat conftest.
$ac_ext >&5
3790 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3792 echo "$as_me:3792: result: $ac_cv_func_shmat" >&5
3793 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3795 if test $ac_cv_func_shmat = no
; then
3796 echo "$as_me:3796: checking for shmat in -lipc" >&5
3797 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3798 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3801 ac_check_lib_save_LIBS
=$LIBS
3803 cat >conftest.
$ac_ext <<_ACEOF
3804 #line 3804 "configure"
3805 #include "confdefs.h"
3807 /* Override any gcc2 internal prototype to avoid an error. */
3811 /* We use char because int might match the return type of a gcc2
3812 builtin and then its argument prototype would still apply. */
3822 rm -f conftest.
$ac_objext conftest
$ac_exeext
3823 if { (eval echo "$as_me:3823: \"$ac_link\"") >&5
3824 (eval $ac_link) 2>&5
3826 echo "$as_me:3826: \$? = $ac_status" >&5
3827 (exit $ac_status); } &&
3828 { ac_try
='test -s conftest$ac_exeext'
3829 { (eval echo "$as_me:3829: \"$ac_try\"") >&5
3832 echo "$as_me:3832: \$? = $ac_status" >&5
3833 (exit $ac_status); }; }; then
3834 ac_cv_lib_ipc_shmat
=yes
3836 echo "$as_me: failed program was:" >&5
3837 cat conftest.
$ac_ext >&5
3838 ac_cv_lib_ipc_shmat
=no
3840 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3841 LIBS
=$ac_check_lib_save_LIBS
3843 echo "$as_me:3843: result: $ac_cv_lib_ipc_shmat" >&5
3844 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3845 if test $ac_cv_lib_ipc_shmat = yes; then
3846 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
3852 # Check for libraries that X11R6 Xt/Xaw programs need.
3853 ac_save_LDFLAGS
=$LDFLAGS
3854 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
3855 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3856 # check for ICE first), but we must link in the order -lSM -lICE or
3857 # we get undefined symbols. So assume we have SM if we have ICE.
3858 # These have to be linked with before -lX11, unlike the other
3859 # libraries we check for below, so use a different variable.
3860 # John Interrante, Karl Berry
3861 echo "$as_me:3861: checking for IceConnectionNumber in -lICE" >&5
3862 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3863 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3864 echo $ECHO_N "(cached) $ECHO_C" >&6
3866 ac_check_lib_save_LIBS
=$LIBS
3867 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
3868 cat >conftest.
$ac_ext <<_ACEOF
3869 #line 3869 "configure"
3870 #include "confdefs.h"
3872 /* Override any gcc2 internal prototype to avoid an error. */
3876 /* We use char because int might match the return type of a gcc2
3877 builtin and then its argument prototype would still apply. */
3878 char IceConnectionNumber ();
3882 IceConnectionNumber ();
3887 rm -f conftest.
$ac_objext conftest
$ac_exeext
3888 if { (eval echo "$as_me:3888: \"$ac_link\"") >&5
3889 (eval $ac_link) 2>&5
3891 echo "$as_me:3891: \$? = $ac_status" >&5
3892 (exit $ac_status); } &&
3893 { ac_try
='test -s conftest$ac_exeext'
3894 { (eval echo "$as_me:3894: \"$ac_try\"") >&5
3897 echo "$as_me:3897: \$? = $ac_status" >&5
3898 (exit $ac_status); }; }; then
3899 ac_cv_lib_ICE_IceConnectionNumber
=yes
3901 echo "$as_me: failed program was:" >&5
3902 cat conftest.
$ac_ext >&5
3903 ac_cv_lib_ICE_IceConnectionNumber
=no
3905 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3906 LIBS
=$ac_check_lib_save_LIBS
3908 echo "$as_me:3908: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3909 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3910 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3911 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
3914 LDFLAGS
=$ac_save_LDFLAGS
3918 CFLAGS
="-I$x_includes $X_CFLAGS $CFLAGS"
3919 LDFLAGS
="-L$x_libraries $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS $LDFLAGS"
3921 echo "$as_me:3921: checking for glBegin in -lGL" >&5
3922 echo $ECHO_N "checking for glBegin in -lGL... $ECHO_C" >&6
3923 if test "${ac_cv_lib_GL_glBegin+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 ac_check_lib_save_LIBS
=$LIBS
3928 cat >conftest.
$ac_ext <<_ACEOF
3929 #line 3929 "configure"
3930 #include "confdefs.h"
3932 /* Override any gcc2 internal prototype to avoid an error. */
3936 /* We use char because int might match the return type of a gcc2
3937 builtin and then its argument prototype would still apply. */
3947 rm -f conftest.
$ac_objext conftest
$ac_exeext
3948 if { (eval echo "$as_me:3948: \"$ac_link\"") >&5
3949 (eval $ac_link) 2>&5
3951 echo "$as_me:3951: \$? = $ac_status" >&5
3952 (exit $ac_status); } &&
3953 { ac_try
='test -s conftest$ac_exeext'
3954 { (eval echo "$as_me:3954: \"$ac_try\"") >&5
3957 echo "$as_me:3957: \$? = $ac_status" >&5
3958 (exit $ac_status); }; }; then
3959 ac_cv_lib_GL_glBegin
=yes
3961 echo "$as_me: failed program was:" >&5
3962 cat conftest.
$ac_ext >&5
3963 ac_cv_lib_GL_glBegin
=no
3965 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3966 LIBS
=$ac_check_lib_save_LIBS
3968 echo "$as_me:3968: result: $ac_cv_lib_GL_glBegin" >&5
3969 echo "${ECHO_T}$ac_cv_lib_GL_glBegin" >&6
3970 if test $ac_cv_lib_GL_glBegin = yes; then
3971 LDFLAGS
="-lGL $LDFLAGS"
3976 if test "x$ogl" = "xno"; then
3977 { echo "$as_me:3977: Maybe libGL requires libpthread..." >&5
3978 echo "$as_me: Maybe libGL requires libpthread..." >&6;}
3979 unset ac_cv_lib_GL_glBegin
3980 echo "$as_me:3980: checking for glBegin in -lGL" >&5
3981 echo $ECHO_N "checking for glBegin in -lGL... $ECHO_C" >&6
3982 if test "${ac_cv_lib_GL_glBegin+set}" = set; then
3983 echo $ECHO_N "(cached) $ECHO_C" >&6
3985 ac_check_lib_save_LIBS
=$LIBS
3986 LIBS
="-lGL -lpthread $LIBS"
3987 cat >conftest.
$ac_ext <<_ACEOF
3988 #line 3988 "configure"
3989 #include "confdefs.h"
3991 /* Override any gcc2 internal prototype to avoid an error. */
3995 /* We use char because int might match the return type of a gcc2
3996 builtin and then its argument prototype would still apply. */
4006 rm -f conftest.
$ac_objext conftest
$ac_exeext
4007 if { (eval echo "$as_me:4007: \"$ac_link\"") >&5
4008 (eval $ac_link) 2>&5
4010 echo "$as_me:4010: \$? = $ac_status" >&5
4011 (exit $ac_status); } &&
4012 { ac_try
='test -s conftest$ac_exeext'
4013 { (eval echo "$as_me:4013: \"$ac_try\"") >&5
4016 echo "$as_me:4016: \$? = $ac_status" >&5
4017 (exit $ac_status); }; }; then
4018 ac_cv_lib_GL_glBegin
=yes
4020 echo "$as_me: failed program was:" >&5
4021 cat conftest.
$ac_ext >&5
4022 ac_cv_lib_GL_glBegin
=no
4024 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4025 LIBS
=$ac_check_lib_save_LIBS
4027 echo "$as_me:4027: result: $ac_cv_lib_GL_glBegin" >&5
4028 echo "${ECHO_T}$ac_cv_lib_GL_glBegin" >&6
4029 if test $ac_cv_lib_GL_glBegin = yes; then
4030 LDFLAGS
="-lpthread -lGL $LDFLAGS"
4032 { { echo "$as_me:4032: error: Cannot use -lGL" >&5
4033 echo "$as_me: error: Cannot use -lGL" >&2;}
4034 { (exit 1); exit 1; }; }
4039 # Check whether --enable-gtk2 or --disable-gtk2 was given.
4040 if test "${enable_gtk2+set}" = set; then
4041 enableval
="$enable_gtk2"
4047 # Check whether --enable-gtktest or --disable-gtktest was given.
4048 if test "${enable_gtktest+set}" = set; then
4049 enableval
="$enable_gtktest"
4055 pkg_config_args
=gtk
+-2.0
4060 pkg_config_args
="$pkg_config_args gthread-2.0"
4067 # Extract the first word of "pkg-config", so it can be a program name with args.
4068 set dummy pkg-config
; ac_word
=$2
4069 echo "$as_me:4069: checking for $ac_word" >&5
4070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4071 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4076 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
4079 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
4081 for ac_dir
in $ac_dummy; do
4083 test -z "$ac_dir" && ac_dir
=.
4084 if $as_executable_p "$ac_dir/$ac_word"; then
4085 ac_cv_path_PKG_CONFIG
="$ac_dir/$ac_word"
4086 echo "$as_me:4086: found $ac_dir/$ac_word" >&5
4091 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
4095 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
4097 if test -n "$PKG_CONFIG"; then
4098 echo "$as_me:4098: result: $PKG_CONFIG" >&5
4099 echo "${ECHO_T}$PKG_CONFIG" >&6
4101 echo "$as_me:4101: result: no" >&5
4102 echo "${ECHO_T}no" >&6
4105 if test x
$PKG_CONFIG != xno
; then
4106 if pkg-config
--atleast-pkgconfig-version 0.7 ; then
4109 echo *** pkg-config too old
; version
0.7 or better required.
4117 min_gtk_version
=1.3.13
4118 echo "$as_me:4118: checking for GTK+ - version >= $min_gtk_version" >&5
4119 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
4121 if test x
$PKG_CONFIG != xno
; then
4122 ## don't try to run the test against uninstalled libtool libs
4123 if $PKG_CONFIG --uninstalled $pkg_config_args; then
4124 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
4128 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
4135 if test x
"$no_gtk" = x
; then
4136 GTK_CFLAGS
=`$PKG_CONFIG $pkg_config_args --cflags`
4137 GTK_LIBS
=`$PKG_CONFIG $pkg_config_args --libs`
4138 gtk_config_major_version
=`$PKG_CONFIG --modversion gtk+-2.0 | \
4139 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
4140 gtk_config_minor_version
=`$PKG_CONFIG --modversion gtk+-2.0 | \
4141 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
4142 gtk_config_micro_version
=`$PKG_CONFIG --modversion gtk+-2.0 | \
4143 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
4144 if test "x$enable_gtktest" = "xyes" ; then
4145 ac_save_CFLAGS
="$CFLAGS"
4146 ac_save_LIBS
="$LIBS"
4147 CFLAGS
="$CFLAGS $GTK_CFLAGS"
4148 LIBS
="$GTK_LIBS $LIBS"
4150 if test "$cross_compiling" = yes; then
4151 echo $ac_n "cross compiling; assumed OK... $ac_c"
4153 cat >conftest.
$ac_ext <<_ACEOF
4154 #line 4154 "configure"
4155 #include "confdefs.h"
4157 #include <gtk/gtk.h>
4164 int major, minor, micro;
4167 system ("touch conf.gtktest");
4169 /* HP/UX 9 (%@#!) writes to sscanf strings */
4170 tmp_version = g_strdup("$min_gtk_version");
4171 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
4172 printf("%s, bad version string\n", "$min_gtk_version");
4176 if ((gtk_major_version != $gtk_config_major_version) ||
4177 (gtk_minor_version != $gtk_config_minor_version) ||
4178 (gtk_micro_version != $gtk_config_micro_version))
4180 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
4181 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
4182 gtk_major_version, gtk_minor_version, gtk_micro_version);
4183 printf ("*** was found! If pkg-config was correct, then it is best\n");
4184 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
4185 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
4186 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
4187 printf("*** required on your system.\n");
4188 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
4189 printf("*** to point to the correct configuration files\n");
4191 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
4192 (gtk_minor_version != GTK_MINOR_VERSION) ||
4193 (gtk_micro_version != GTK_MICRO_VERSION))
4195 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
4196 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
4197 printf("*** library (version %d.%d.%d)\n",
4198 gtk_major_version, gtk_minor_version, gtk_micro_version);
4202 if ((gtk_major_version > major) ||
4203 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
4204 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
4210 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
4211 gtk_major_version, gtk_minor_version, gtk_micro_version);
4212 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
4213 major, minor, micro);
4214 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
4216 printf("*** If you have already installed a sufficiently new version, this error\n");
4217 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
4218 printf("*** being found. The easiest way to fix this is to remove the old version\n");
4219 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
4220 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
4221 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
4222 printf("*** so that the correct libraries are found at run-time))\n");
4229 rm -f conftest
$ac_exeext
4230 if { (eval echo "$as_me:4230: \"$ac_link\"") >&5
4231 (eval $ac_link) 2>&5
4233 echo "$as_me:4233: \$? = $ac_status" >&5
4234 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4235 { (eval echo "$as_me:4235: \"$ac_try\"") >&5
4238 echo "$as_me:4238: \$? = $ac_status" >&5
4239 (exit $ac_status); }; }; then
4242 echo "$as_me: program exited with status $ac_status" >&5
4243 echo "$as_me: failed program was:" >&5
4244 cat conftest.
$ac_ext >&5
4247 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4249 CFLAGS
="$ac_save_CFLAGS"
4250 LIBS
="$ac_save_LIBS"
4253 if test "x$no_gtk" = x
; then
4254 echo "$as_me:4254: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
4255 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
4257 GTK2_CFLAGS
="$GTK_CFLAGS"
4258 GTK2_LIBS
="$GTK_LIBS"
4259 GTK2_VERSION
="`$PKG_CONFIG --modversion gtk+-2.0`"
4262 echo "$as_me:4262: result: no" >&5
4263 echo "${ECHO_T}no" >&6
4264 if test "$PKG_CONFIG" = "no" ; then
4265 echo "*** A new enough version of pkg-config was not found."
4266 echo "*** See http://pkgconfig.sourceforge.net"
4268 if test -f conf.gtktest
; then
4271 echo "*** Could not run GTK+ test program, checking why..."
4272 CFLAGS
="$CFLAGS $GTK_CFLAGS"
4273 LIBS
="$LIBS $GTK_LIBS"
4274 cat >conftest.
$ac_ext <<_ACEOF
4275 #line 4275 "configure"
4276 #include "confdefs.h"
4278 #include <gtk/gtk.h>
4284 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
4289 rm -f conftest.
$ac_objext conftest
$ac_exeext
4290 if { (eval echo "$as_me:4290: \"$ac_link\"") >&5
4291 (eval $ac_link) 2>&5
4293 echo "$as_me:4293: \$? = $ac_status" >&5
4294 (exit $ac_status); } &&
4295 { ac_try
='test -s conftest$ac_exeext'
4296 { (eval echo "$as_me:4296: \"$ac_try\"") >&5
4299 echo "$as_me:4299: \$? = $ac_status" >&5
4300 (exit $ac_status); }; }; then
4301 echo "*** The test program compiled, but did not run. This usually means"
4302 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
4303 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
4304 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
4305 echo "*** to the installed location Also, make sure you have run ldconfig if that"
4306 echo "*** is required on your system"
4308 echo "*** If you have an old version installed, it is best to remove it, although"
4309 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
4311 echo "$as_me: failed program was:" >&5
4312 cat conftest.
$ac_ext >&5
4313 echo "*** The test program failed to compile or link. See the file config.log for the"
4314 echo "*** exact error that occured. This usually means GTK+ was incorrectly installed"
4315 echo "*** or that you have moved GTK+ since it was installed. In the latter case, you"
4316 echo "*** may want to edit the pkg-config script: $PKG_CONFIG"
4318 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4319 CFLAGS
="$ac_save_CFLAGS"
4320 LIBS
="$ac_save_LIBS"
4327 { echo "$as_me:4327: **************************************************" >&5
4328 echo "$as_me: **************************************************" >&6;}
4329 { echo "$as_me:4329: * *" >&5
4330 echo "$as_me: * *" >&6;}
4331 { echo "$as_me:4331: * If you are not using the development version *" >&5
4332 echo "$as_me: * If you are not using the development version *" >&6;}
4333 { echo "$as_me:4333: * of GTK+, you can ignore these warnings *" >&5
4334 echo "$as_me: * of GTK+, you can ignore these warnings *" >&6;}
4335 { echo "$as_me:4335: * *" >&5
4336 echo "$as_me: * *" >&6;}
4337 { echo "$as_me:4337: **************************************************" >&5
4338 echo "$as_me: **************************************************" >&6;}
4344 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
4345 if test "${with_gtk_prefix+set}" = set; then
4346 withval
="$with_gtk_prefix"
4347 gtk_config_prefix
="$withval"
4349 gtk_config_prefix
=""
4352 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
4353 if test "${with_gtk_exec_prefix+set}" = set; then
4354 withval
="$with_gtk_exec_prefix"
4355 gtk_config_exec_prefix
="$withval"
4357 gtk_config_exec_prefix
=""
4359 # Check whether --enable-gtktest or --disable-gtktest was given.
4360 if test "${enable_gtktest+set}" = set; then
4361 enableval
="$enable_gtktest"
4371 gtk_config_args
="$gtk_config_args gthread"
4376 if test x
$gtk_config_exec_prefix != x
; then
4377 gtk_config_args
="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
4378 if test x
${GTK_CONFIG+set} != xset
; then
4379 GTK_CONFIG
=$gtk_config_exec_prefix/bin
/gtk-config
4382 if test x
$gtk_config_prefix != x
; then
4383 gtk_config_args
="$gtk_config_args --prefix=$gtk_config_prefix"
4384 if test x
${GTK_CONFIG+set} != xset
; then
4385 GTK_CONFIG
=$gtk_config_prefix/bin
/gtk-config
4389 # Extract the first word of "gtk-config", so it can be a program name with args.
4390 set dummy gtk-config
; ac_word
=$2
4391 echo "$as_me:4391: checking for $ac_word" >&5
4392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4393 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4398 ac_cv_path_GTK_CONFIG
="$GTK_CONFIG" # Let the user override the test with a path.
4401 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
4403 for ac_dir
in $ac_dummy; do
4405 test -z "$ac_dir" && ac_dir
=.
4406 if $as_executable_p "$ac_dir/$ac_word"; then
4407 ac_cv_path_GTK_CONFIG
="$ac_dir/$ac_word"
4408 echo "$as_me:4408: found $ac_dir/$ac_word" >&5
4413 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG
="no"
4417 GTK_CONFIG
=$ac_cv_path_GTK_CONFIG
4419 if test -n "$GTK_CONFIG"; then
4420 echo "$as_me:4420: result: $GTK_CONFIG" >&5
4421 echo "${ECHO_T}$GTK_CONFIG" >&6
4423 echo "$as_me:4423: result: no" >&5
4424 echo "${ECHO_T}no" >&6
4427 min_gtk_version
=1.2.0
4428 echo "$as_me:4428: checking for GTK - version >= $min_gtk_version" >&5
4429 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
4431 if test "$GTK_CONFIG" = "no" ; then
4434 GTK_CFLAGS
=`$GTK_CONFIG $gtk_config_args --cflags`
4435 GTK_LIBS
=`$GTK_CONFIG $gtk_config_args --libs`
4436 gtk_config_major_version
=`$GTK_CONFIG $gtk_config_args --version | \
4437 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
4438 gtk_config_minor_version
=`$GTK_CONFIG $gtk_config_args --version | \
4439 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
4440 gtk_config_micro_version
=`$GTK_CONFIG $gtk_config_args --version | \
4441 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
4442 if test "x$enable_gtktest" = "xyes" ; then
4443 ac_save_CFLAGS
="$CFLAGS"
4444 ac_save_LIBS
="$LIBS"
4445 CFLAGS
="$CFLAGS $GTK_CFLAGS"
4446 LIBS
="$GTK_LIBS $LIBS"
4448 if test "$cross_compiling" = yes; then
4449 echo $ac_n "cross compiling; assumed OK... $ac_c"
4451 cat >conftest.
$ac_ext <<_ACEOF
4452 #line 4452 "configure"
4453 #include "confdefs.h"
4455 #include <gtk/gtk.h>
4462 int major, minor, micro;
4465 system ("touch conf.gtktest");
4467 /* HP/UX 9 (%@#!) writes to sscanf strings */
4468 tmp_version = g_strdup("$min_gtk_version");
4469 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
4470 printf("%s, bad version string\n", "$min_gtk_version");
4474 if ((gtk_major_version != $gtk_config_major_version) ||
4475 (gtk_minor_version != $gtk_config_minor_version) ||
4476 (gtk_micro_version != $gtk_config_micro_version))
4478 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
4479 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
4480 gtk_major_version, gtk_minor_version, gtk_micro_version);
4481 printf ("*** was found! If gtk-config was correct, then it is best\n");
4482 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
4483 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
4484 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
4485 printf("*** required on your system.\n");
4486 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
4487 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
4488 printf("*** before re-running configure\n");
4490 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
4491 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
4492 (gtk_minor_version != GTK_MINOR_VERSION) ||
4493 (gtk_micro_version != GTK_MICRO_VERSION))
4495 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
4496 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
4497 printf("*** library (version %d.%d.%d)\n",
4498 gtk_major_version, gtk_minor_version, gtk_micro_version);
4500 #endif /* defined (GTK_MAJOR_VERSION) ... */
4503 if ((gtk_major_version > major) ||
4504 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
4505 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
4511 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
4512 gtk_major_version, gtk_minor_version, gtk_micro_version);
4513 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
4514 major, minor, micro);
4515 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
4517 printf("*** If you have already installed a sufficiently new version, this error\n");
4518 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
4519 printf("*** being found. The easiest way to fix this is to remove the old version\n");
4520 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
4521 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
4522 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
4523 printf("*** so that the correct libraries are found at run-time))\n");
4530 rm -f conftest
$ac_exeext
4531 if { (eval echo "$as_me:4531: \"$ac_link\"") >&5
4532 (eval $ac_link) 2>&5
4534 echo "$as_me:4534: \$? = $ac_status" >&5
4535 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4536 { (eval echo "$as_me:4536: \"$ac_try\"") >&5
4539 echo "$as_me:4539: \$? = $ac_status" >&5
4540 (exit $ac_status); }; }; then
4543 echo "$as_me: program exited with status $ac_status" >&5
4544 echo "$as_me: failed program was:" >&5
4545 cat conftest.
$ac_ext >&5
4548 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4550 CFLAGS
="$ac_save_CFLAGS"
4551 LIBS
="$ac_save_LIBS"
4554 if test "x$no_gtk" = x
; then
4555 echo "$as_me:4555: result: yes" >&5
4556 echo "${ECHO_T}yes" >&6
4558 GTK12_CFLAGS
="$GTK_CFLAGS"
4559 GTK12_LIBS
="$GTK_LIBS"
4561 GTK12_VERSION
="`$GTK_CONFIG $gtk_config_args --version`"
4564 echo "$as_me:4564: result: no" >&5
4565 echo "${ECHO_T}no" >&6
4566 if test "$GTK_CONFIG" = "no" ; then
4567 echo "*** The gtk-config script installed by GTK could not be found"
4568 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
4569 echo "*** your path, or set the GTK_CONFIG environment variable to the"
4570 echo "*** full path to gtk-config."
4572 if test -f conf.gtktest
; then
4575 echo "*** Could not run GTK test program, checking why..."
4576 CFLAGS
="$CFLAGS $GTK_CFLAGS"
4577 LIBS
="$LIBS $GTK_LIBS"
4578 cat >conftest.
$ac_ext <<_ACEOF
4579 #line 4579 "configure"
4580 #include "confdefs.h"
4582 #include <gtk/gtk.h>
4588 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
4593 rm -f conftest.
$ac_objext conftest
$ac_exeext
4594 if { (eval echo "$as_me:4594: \"$ac_link\"") >&5
4595 (eval $ac_link) 2>&5
4597 echo "$as_me:4597: \$? = $ac_status" >&5
4598 (exit $ac_status); } &&
4599 { ac_try
='test -s conftest$ac_exeext'
4600 { (eval echo "$as_me:4600: \"$ac_try\"") >&5
4603 echo "$as_me:4603: \$? = $ac_status" >&5
4604 (exit $ac_status); }; }; then
4605 echo "*** The test program compiled, but did not run. This usually means"
4606 echo "*** that the run-time linker is not finding GTK or finding the wrong"
4607 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
4608 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
4609 echo "*** to the installed location Also, make sure you have run ldconfig if that"
4610 echo "*** is required on your system"
4612 echo "*** If you have an old version installed, it is best to remove it, although"
4613 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
4615 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
4616 echo "*** came with the system with the command"
4618 echo "*** rpm --erase --nodeps gtk gtk-devel"
4620 echo "$as_me: failed program was:" >&5
4621 cat conftest.
$ac_ext >&5
4622 echo "*** The test program failed to compile or link. See the file config.log for the"
4623 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
4624 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
4625 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
4627 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4628 CFLAGS
="$ac_save_CFLAGS"
4629 LIBS
="$ac_save_LIBS"
4641 if test "$gtk2" = "yes"; then
4642 GTK_CFLAGS
="$GTK2_CFLAGS -DGTK2"
4643 GTK_LIBS
="$GTK2_LIBS"
4644 GTK_VERSION
="$GTK2_VERSION"
4645 elif test "$gtk12" = "yes"; then
4646 GTK_CFLAGS
="$GTK12_CFLAGS"
4647 GTK_LIBS
="$GTK12_LIBS"
4648 GTK_VERSION
="$GTK12_VERSION"
4650 { { echo "$as_me:4650: error: Cannot use GTK" >&5
4651 echo "$as_me: error: Cannot use GTK" >&2;}
4652 { (exit 1); exit 1; }; }
4655 if test "$gtk2" = "yes"; then
4663 # Check whether --with-gdk-pixbuf-prefix or --without-gdk-pixbuf-prefix was given.
4664 if test "${with_gdk_pixbuf_prefix+set}" = set; then
4665 withval
="$with_gdk_pixbuf_prefix"
4666 gdk_pixbuf_prefix
="$withval"
4668 gdk_pixbuf_prefix
=""
4671 # Check whether --with-gdk-pixbuf-exec-prefix or --without-gdk-pixbuf-exec-prefix was given.
4672 if test "${with_gdk_pixbuf_exec_prefix+set}" = set; then
4673 withval
="$with_gdk_pixbuf_exec_prefix"
4674 gdk_pixbuf_exec_prefix
="$withval"
4676 gdk_pixbuf_exec_prefix
=""
4678 # Check whether --enable-gdk_pixbuftest or --disable-gdk_pixbuftest was given.
4679 if test "${enable_gdk_pixbuftest+set}" = set; then
4680 enableval
="$enable_gdk_pixbuftest"
4683 enable_gdk_pixbuftest
=yes
4686 if test x
$gdk_pixbuf_exec_prefix != x
; then
4687 gdk_pixbuf_args
="$gdk_pixbuf_args --exec-prefix=$gdk_pixbuf_exec_prefix"
4688 if test x
${GDK_PIXBUF_CONFIG+set} = xset
; then
4689 GDK_PIXBUF_CONFIG
=$gdk_pixbuf_exec_prefix/gdk-pixbuf-config
4692 if test x
$gdk_pixbuf_prefix != x
; then
4693 gdk_pixbuf_args
="$gdk_pixbuf_args --prefix=$gdk_pixbuf_prefix"
4694 if test x
${GDK_PIXBUF_CONFIG+set} = xset
; then
4695 GDK_PIXBUF_CONFIG
=$gdk_pixbuf_prefix/bin
/gdk-pixbuf-config
4699 # Extract the first word of "gdk-pixbuf-config", so it can be a program name with args.
4700 set dummy gdk-pixbuf-config
; ac_word
=$2
4701 echo "$as_me:4701: checking for $ac_word" >&5
4702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4703 if test "${ac_cv_path_GDK_PIXBUF_CONFIG+set}" = set; then
4704 echo $ECHO_N "(cached) $ECHO_C" >&6
4706 case $GDK_PIXBUF_CONFIG in
4708 ac_cv_path_GDK_PIXBUF_CONFIG
="$GDK_PIXBUF_CONFIG" # Let the user override the test with a path.
4711 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
4713 for ac_dir
in $ac_dummy; do
4715 test -z "$ac_dir" && ac_dir
=.
4716 if $as_executable_p "$ac_dir/$ac_word"; then
4717 ac_cv_path_GDK_PIXBUF_CONFIG
="$ac_dir/$ac_word"
4718 echo "$as_me:4718: found $ac_dir/$ac_word" >&5
4723 test -z "$ac_cv_path_GDK_PIXBUF_CONFIG" && ac_cv_path_GDK_PIXBUF_CONFIG
="no"
4727 GDK_PIXBUF_CONFIG
=$ac_cv_path_GDK_PIXBUF_CONFIG
4729 if test -n "$GDK_PIXBUF_CONFIG"; then
4730 echo "$as_me:4730: result: $GDK_PIXBUF_CONFIG" >&5
4731 echo "${ECHO_T}$GDK_PIXBUF_CONFIG" >&6
4733 echo "$as_me:4733: result: no" >&5
4734 echo "${ECHO_T}no" >&6
4737 min_gdk_pixbuf_version
=0.2.5
4738 echo "$as_me:4738: checking for GDK_PIXBUF - version >= $min_gdk_pixbuf_version" >&5
4739 echo $ECHO_N "checking for GDK_PIXBUF - version >= $min_gdk_pixbuf_version... $ECHO_C" >&6
4741 if test "$GDK_PIXBUF_CONFIG" = "no" ; then
4744 GDK_PIXBUF_CFLAGS
=`$GDK_PIXBUF_CONFIG $gdk_pixbufconf_args --cflags`
4745 GDK_PIXBUF_LIBS
=`$GDK_PIXBUF_CONFIG $gdk_pixbufconf_args --libs`
4747 gdk_pixbuf_major_version
=`$GDK_PIXBUF_CONFIG $gdk_pixbuf_args --version | \
4748 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
4749 gdk_pixbuf_minor_version
=`$GDK_PIXBUF_CONFIG $gdk_pixbuf_args --version | \
4750 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
4751 gdk_pixbuf_micro_version
=`$GDK_PIXBUF_CONFIG $gdk_pixbuf_config_args --version | \
4752 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
4753 if test "x$enable_gdk_pixbuftest" = "xyes" ; then
4754 ac_save_CFLAGS
="$CFLAGS"
4755 ac_save_LIBS
="$LIBS"
4756 CFLAGS
="$CFLAGS $GDK_PIXBUF_CFLAGS"
4757 LIBS
="$LIBS $GDK_PIXBUF_LIBS"
4758 rm -f conf.gdk_pixbuftest
4759 if test "$cross_compiling" = yes; then
4760 echo $ac_n "cross compiling; assumed OK... $ac_c"
4762 cat >conftest.
$ac_ext <<_ACEOF
4763 #line 4763 "configure"
4764 #include "confdefs.h"
4769 #include <gdk-pixbuf/gdk-pixbuf.h>
4772 my_strdup (char *str)
4778 new_str = malloc ((strlen (str) + 1) * sizeof(char));
4779 strcpy (new_str, str);
4789 int major, minor, micro;
4792 system ("touch conf.gdk_pixbuftest");
4794 /* HP/UX 9 (%@#!) writes to sscanf strings */
4795 tmp_version = my_strdup("$min_gdk_pixbuf_version");
4796 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
4797 printf("%s, bad version string\n", "$min_gdk_pixbuf_version");
4801 if (($gdk_pixbuf_major_version > major) ||
4802 (($gdk_pixbuf_major_version == major) && ($gdk_pixbuf_minor_version > minor)) ||
4803 (($gdk_pixbuf_major_version == major) && ($gdk_pixbuf_minor_version == minor) && ($gdk_pixbuf_micro_version >= micro)))
4809 printf("\n*** 'gdk-pixbuf-config --version' returned %d.%d.%d, but the minimum version\n", $gdk_pixbuf_major_version, $gdk_pixbuf_minor_version, $gdk_pixbuf_micro_version);
4810 printf("*** of GDK_PIXBUF required is %d.%d.%d. If gdk-pixbuf-config is correct, then it is\n", major, minor, micro);
4811 printf("*** best to upgrade to the required version.\n");
4812 printf("*** If gdk-pixbuf-config was wrong, set the environment variable GDK_PIXBUF_CONFIG\n");
4813 printf("*** to point to the correct copy of gdk-pixbuf-config, and remove the file\n");
4814 printf("*** config.cache before re-running configure\n");
4820 rm -f conftest
$ac_exeext
4821 if { (eval echo "$as_me:4821: \"$ac_link\"") >&5
4822 (eval $ac_link) 2>&5
4824 echo "$as_me:4824: \$? = $ac_status" >&5
4825 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4826 { (eval echo "$as_me:4826: \"$ac_try\"") >&5
4829 echo "$as_me:4829: \$? = $ac_status" >&5
4830 (exit $ac_status); }; }; then
4833 echo "$as_me: program exited with status $ac_status" >&5
4834 echo "$as_me: failed program was:" >&5
4835 cat conftest.
$ac_ext >&5
4838 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4840 CFLAGS
="$ac_save_CFLAGS"
4841 LIBS
="$ac_save_LIBS"
4844 if test "x$no_gdk_pixbuf" = x
; then
4845 echo "$as_me:4845: result: yes" >&5
4846 echo "${ECHO_T}yes" >&6
4848 if test "$gtk2" = "no"; then
4849 CFLAGS
="$CFLAGS $GDK_PIXBUF_CFLAGS"
4850 LDFLAGS
="$LDFLAGS $GDK_PIXBUF_LIBS"
4854 echo "$as_me:4854: result: no" >&5
4855 echo "${ECHO_T}no" >&6
4856 if test "$GDK_PIXBUF_CONFIG" = "no" ; then
4857 echo "*** The gdk-pixbuf-config script installed by GDK_PIXBUF could not be found"
4858 echo "*** If GDK_PIXBUF was installed in PREFIX, make sure PREFIX/bin is in"
4859 echo "*** your path, or set the GDK_PIXBUF_CONFIG environment variable to the"
4860 echo "*** full path to gdk-pixbuf-config."
4862 if test -f conf.gdk_pixbuftest
; then
4865 echo "*** Could not run GDK_PIXBUF test program, checking why..."
4866 CFLAGS
="$CFLAGS $GDK_PIXBUF_CFLAGS"
4867 LIBS
="$LIBS $GDK_PIXBUF_LIBS"
4868 cat >conftest.
$ac_ext <<_ACEOF
4869 #line 4869 "configure"
4870 #include "confdefs.h"
4873 #include <gdk-pixbuf/gdk-pixbuf.h>
4883 rm -f conftest.
$ac_objext conftest
$ac_exeext
4884 if { (eval echo "$as_me:4884: \"$ac_link\"") >&5
4885 (eval $ac_link) 2>&5
4887 echo "$as_me:4887: \$? = $ac_status" >&5
4888 (exit $ac_status); } &&
4889 { ac_try
='test -s conftest$ac_exeext'
4890 { (eval echo "$as_me:4890: \"$ac_try\"") >&5
4893 echo "$as_me:4893: \$? = $ac_status" >&5
4894 (exit $ac_status); }; }; then
4895 echo "*** The test program compiled, but did not run. This usually means"
4896 echo "*** that the run-time linker is not finding GDK_PIXBUF or finding the wrong"
4897 echo "*** version of GDK_PIXBUF. If it is not finding GDK_PIXBUF, you'll need to set your"
4898 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
4899 echo "*** to the installed location Also, make sure you have run ldconfig if that"
4900 echo "*** is required on your system"
4902 echo "*** If you have an old version installed, it is best to remove it, although"
4903 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
4905 echo "$as_me: failed program was:" >&5
4906 cat conftest.
$ac_ext >&5
4907 echo "*** The test program failed to compile or link. See the file config.log for the"
4908 echo "*** exact error that occured. This usually means GDK_PIXBUF was incorrectly installed"
4909 echo "*** or that you have moved GDK_PIXBUF since it was installed. In the latter case, you"
4910 echo "*** may want to edit the gdk-pixbuf-config script: $GDK_PIXBUF_CONFIG"
4912 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4913 CFLAGS
="$ac_save_CFLAGS"
4914 LIBS
="$ac_save_LIBS"
4917 GDK_PIXBUF_CFLAGS
=""
4920 if test "$gtk2" = "no"; then
4921 { { echo "$as_me:4921: error: Cannot use gdk-pixbuf" >&5
4922 echo "$as_me: error: Cannot use gdk-pixbuf" >&2;}
4923 { (exit 1); exit 1; }; }
4928 rm -f conf.gdk_pixbuftest
4930 # Check whether --with-gtkgl-prefix or --without-gtkgl-prefix was given.
4931 if test "${with_gtkgl_prefix+set}" = set; then
4932 withval
="$with_gtkgl_prefix"
4935 if test -n "${with_gtkgl_pefix}"; then
4936 gtkgl__Idir
="-I${with_gtkgl_prefix}/include"
4937 gtkgl__Ldir
="-L${with_gtkgl_prefix}/lib"
4944 ac_cpp
='$CPP $CPPFLAGS'
4945 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4946 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4947 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4949 echo "$as_me:4949: checking for gdk_gl_query in -lgtkgl" >&5
4950 echo $ECHO_N "checking for gdk_gl_query in -lgtkgl... $ECHO_C" >&6
4951 if test "${ac_cv_lib_gtkgl_gdk_gl_query+set}" = set; then
4952 echo $ECHO_N "(cached) $ECHO_C" >&6
4954 ac_check_lib_save_LIBS
=$LIBS
4955 LIBS
="-lgtkgl ${gtkgl__Ldir}
4957 cat >conftest.
$ac_ext <<_ACEOF
4958 #line 4958 "configure"
4959 #include "confdefs.h"
4961 /* Override any gcc2 internal prototype to avoid an error. */
4965 /* We use char because int might match the return type of a gcc2
4966 builtin and then its argument prototype would still apply. */
4967 char gdk_gl_query ();
4976 rm -f conftest.
$ac_objext conftest
$ac_exeext
4977 if { (eval echo "$as_me:4977: \"$ac_link\"") >&5
4978 (eval $ac_link) 2>&5
4980 echo "$as_me:4980: \$? = $ac_status" >&5
4981 (exit $ac_status); } &&
4982 { ac_try
='test -s conftest$ac_exeext'
4983 { (eval echo "$as_me:4983: \"$ac_try\"") >&5
4986 echo "$as_me:4986: \$? = $ac_status" >&5
4987 (exit $ac_status); }; }; then
4988 ac_cv_lib_gtkgl_gdk_gl_query
=yes
4990 echo "$as_me: failed program was:" >&5
4991 cat conftest.
$ac_ext >&5
4992 ac_cv_lib_gtkgl_gdk_gl_query
=no
4994 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4995 LIBS
=$ac_check_lib_save_LIBS
4997 echo "$as_me:4997: result: $ac_cv_lib_gtkgl_gdk_gl_query" >&5
4998 echo "${ECHO_T}$ac_cv_lib_gtkgl_gdk_gl_query" >&6
4999 if test $ac_cv_lib_gtkgl_gdk_gl_query = yes; then
5001 ac_save_CPPFLAGS
="${CPPFLAGS}"
5002 CPPFLAGS
="${CPPFLAGS} ${GTK_CFLAGS} ${gtkgl__Idir}"
5003 echo "$as_me:5003: checking for gtkgl/gtkglarea.h" >&5
5004 echo $ECHO_N "checking for gtkgl/gtkglarea.h... $ECHO_C" >&6
5005 if test "${ac_cv_header_gtkgl_gtkglarea_h+set}" = set; then
5006 echo $ECHO_N "(cached) $ECHO_C" >&6
5008 cat >conftest.
$ac_ext <<_ACEOF
5009 #line 5009 "configure"
5010 #include "confdefs.h"
5011 #include <gtkgl/gtkglarea.h>
5013 if { (eval echo "$as_me:5013: \"$ac_cpp conftest.$ac_ext\"") >&5
5014 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5016 egrep -v '^ *\+' conftest.er1
>conftest.err
5018 cat conftest.err
>&5
5019 echo "$as_me:5019: \$? = $ac_status" >&5
5020 (exit $ac_status); } >/dev
/null
; then
5021 if test -s conftest.err
; then
5022 ac_cpp_err
=$ac_c_preproc_warn_flag
5029 if test -z "$ac_cpp_err"; then
5030 ac_cv_header_gtkgl_gtkglarea_h
=yes
5032 echo "$as_me: failed program was:" >&5
5033 cat conftest.
$ac_ext >&5
5034 ac_cv_header_gtkgl_gtkglarea_h
=no
5036 rm -f conftest.err conftest.
$ac_ext
5038 echo "$as_me:5038: result: $ac_cv_header_gtkgl_gtkglarea_h" >&5
5039 echo "${ECHO_T}$ac_cv_header_gtkgl_gtkglarea_h" >&6
5040 if test $ac_cv_header_gtkgl_gtkglarea_h = yes; then
5043 GTKGL_CFLAGS
="${GTK_CFLAGS} ${gtkgl__Idir}"
5044 GTKGL_LIBS
="${gtkgl__Ldir} -lgtkgl"
5051 CPPGLAGS
="${ac_save_CPPFLAGS}"
5058 ac_cpp
='$CPP $CPPFLAGS'
5059 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5060 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5061 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5063 if test "X${have_gtkgl}" = Xyes
; then
5065 CFLAGS
="$CFLAGS $GTKGL_CFLAGS"
5066 LDFLAGS
="$LDFLAGS $GTK_LIBS $GTKGL_LIBS"
5070 { { echo "$as_me:5070: error: Cannot use GtkGLArea" >&5
5071 echo "$as_me: error: Cannot use GtkGLArea" >&2;}
5072 { (exit 1); exit 1; }; }
5076 # Check whether --enable-magick or --disable-magick was given.
5077 if test "${enable_magick+set}" = set; then
5078 enableval
="$enable_magick"
5084 if test "$magick" = "yes"; then
5085 # Extract the first word of "Magick-config", so it can be a program name with args.
5086 set dummy Magick-config
; ac_word
=$2
5087 echo "$as_me:5087: checking for $ac_word" >&5
5088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5089 if test "${ac_cv_path_MAGICK_CONFIG+set}" = set; then
5090 echo $ECHO_N "(cached) $ECHO_C" >&6
5092 case $MAGICK_CONFIG in
5094 ac_cv_path_MAGICK_CONFIG
="$MAGICK_CONFIG" # Let the user override the test with a path.
5097 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
5099 for ac_dir
in $ac_dummy; do
5101 test -z "$ac_dir" && ac_dir
=.
5102 if $as_executable_p "$ac_dir/$ac_word"; then
5103 ac_cv_path_MAGICK_CONFIG
="$ac_dir/$ac_word"
5104 echo "$as_me:5104: found $ac_dir/$ac_word" >&5
5112 MAGICK_CONFIG
=$ac_cv_path_MAGICK_CONFIG
5114 if test -n "$MAGICK_CONFIG"; then
5115 echo "$as_me:5115: result: $MAGICK_CONFIG" >&5
5116 echo "${ECHO_T}$MAGICK_CONFIG" >&6
5118 echo "$as_me:5118: result: no" >&5
5119 echo "${ECHO_T}no" >&6
5122 if test -n "$MAGICK_CONFIG"
5123 then CONVERT
=`dirname "$MAGICK_CONFIG"`/convert
5124 CONVERT_VERSION
="`$CONVERT | head -n1 | cut -d' ' -f3`"
5125 MAGICK_CONFIG_VERSION
="`$MAGICK_CONFIG --version`"
5126 { echo "$as_me:5126: Magic-config --version : $MAGICK_CONFIG_VERSION" >&5
5127 echo "$as_me: Magic-config --version : $MAGICK_CONFIG_VERSION" >&6;}
5128 { echo "$as_me:5128: convert --version : $CONVERT_VERSION" >&5
5129 echo "$as_me: convert --version : $CONVERT_VERSION" >&6;}
5131 cat >>confdefs.h
<<EOF
5132 #define MAGICK_CONVERT "$CONVERT"
5135 MONTAGE
=`dirname "$MAGICK_CONFIG"`/montage
5137 cat >>confdefs.h
<<EOF
5138 #define MAGICK_MONTAGE "$MONTAGE"
5141 MAGICK_STRING
="and ImageMagick $CONVERT_VERSION"
5148 if test "x$MAGICK_STRING" = "x"; then MAGICK_STRING
="and not ImageMagick"; fi
5150 if test "$have_magick" = "yes"; then
5152 HAVE_MAGICK_FALSE
='#'
5154 HAVE_MAGICK_TRUE
='#'
5158 ALL_LINGUAS
=$
(echo po
/*.po |
sed 's/\.po//g' |
sed 's/po\///g')
5161 if test -n "$ac_aux_dir"; then
5162 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
5164 if test -z "$MKINSTALLDIRS"; then
5165 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
5168 # Extract the first word of "msgfmt", so it can be a program name with args.
5169 set dummy msgfmt
; ac_word
=$2
5170 echo "$as_me:5170: checking for $ac_word" >&5
5171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5172 if test "${ac_cv_path_MSGFMT+set}" = set; then
5173 echo $ECHO_N "(cached) $ECHO_C" >&6
5177 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
5180 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5181 for ac_dir
in $PATH; do
5182 test -z "$ac_dir" && ac_dir
=.
5183 if test -f $ac_dir/$ac_word; then
5184 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
5185 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
5186 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
5192 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
5196 MSGFMT
="$ac_cv_path_MSGFMT"
5197 if test "$MSGFMT" != ":"; then
5198 echo "$as_me:5198: result: $MSGFMT" >&5
5199 echo "${ECHO_T}$MSGFMT" >&6
5201 echo "$as_me:5201: result: no" >&5
5202 echo "${ECHO_T}no" >&6
5205 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5206 set dummy gmsgfmt
; ac_word
=$2
5207 echo "$as_me:5207: checking for $ac_word" >&5
5208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5209 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5214 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
5217 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
5219 for ac_dir
in $ac_dummy; do
5221 test -z "$ac_dir" && ac_dir
=.
5222 if $as_executable_p "$ac_dir/$ac_word"; then
5223 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
5224 echo "$as_me:5224: found $ac_dir/$ac_word" >&5
5229 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
5233 GMSGFMT
=$ac_cv_path_GMSGFMT
5235 if test -n "$GMSGFMT"; then
5236 echo "$as_me:5236: result: $GMSGFMT" >&5
5237 echo "${ECHO_T}$GMSGFMT" >&6
5239 echo "$as_me:5239: result: no" >&5
5240 echo "${ECHO_T}no" >&6
5243 # Extract the first word of "xgettext", so it can be a program name with args.
5244 set dummy xgettext
; ac_word
=$2
5245 echo "$as_me:5245: checking for $ac_word" >&5
5246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5247 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5248 echo $ECHO_N "(cached) $ECHO_C" >&6
5252 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
5255 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5256 for ac_dir
in $PATH; do
5257 test -z "$ac_dir" && ac_dir
=.
5258 if test -f $ac_dir/$ac_word; then
5259 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev
/null
>/dev
/null
2>&1 &&
5260 (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
5261 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
5267 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
5271 XGETTEXT
="$ac_cv_path_XGETTEXT"
5272 if test "$XGETTEXT" != ":"; then
5273 echo "$as_me:5273: result: $XGETTEXT" >&5
5274 echo "${ECHO_T}$XGETTEXT" >&6
5276 echo "$as_me:5276: result: no" >&5
5277 echo "${ECHO_T}no" >&6
5282 # Extract the first word of "msgmerge", so it can be a program name with args.
5283 set dummy msgmerge
; ac_word
=$2
5284 echo "$as_me:5284: checking for $ac_word" >&5
5285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5286 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5291 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
5294 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5295 for ac_dir
in $PATH; do
5296 test -z "$ac_dir" && ac_dir
=.
5297 if test -f $ac_dir/$ac_word; then
5298 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
5299 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word"
5305 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
5309 MSGMERGE
="$ac_cv_path_MSGMERGE"
5310 if test "$MSGMERGE" != ":"; then
5311 echo "$as_me:5311: result: $MSGMERGE" >&5
5312 echo "${ECHO_T}$MSGMERGE" >&6
5314 echo "$as_me:5314: result: no" >&5
5315 echo "${ECHO_T}no" >&6
5318 if test "$GMSGFMT" != ":"; then
5319 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
5320 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
5323 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5324 echo "$as_me:5324: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5325 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5330 if test "$XGETTEXT" != ":"; then
5331 if $XGETTEXT --omit-header --copyright-holder= /dev
/null
>/dev
/null
2>&1 &&
5332 (if $XGETTEXT --omit-header --copyright-holder= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
5335 echo "$as_me:5335: result: found xgettext program is not GNU xgettext; ignore it" >&5
5336 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5342 ac_config_commands
="$ac_config_commands default-2"
5344 echo "$as_me:5344: checking for strerror in -lcposix" >&5
5345 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
5346 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
5347 echo $ECHO_N "(cached) $ECHO_C" >&6
5349 ac_check_lib_save_LIBS
=$LIBS
5350 LIBS
="-lcposix $LIBS"
5351 cat >conftest.
$ac_ext <<_ACEOF
5352 #line 5352 "configure"
5353 #include "confdefs.h"
5355 /* Override any gcc2 internal prototype to avoid an error. */
5359 /* We use char because int might match the return type of a gcc2
5360 builtin and then its argument prototype would still apply. */
5370 rm -f conftest.
$ac_objext conftest
$ac_exeext
5371 if { (eval echo "$as_me:5371: \"$ac_link\"") >&5
5372 (eval $ac_link) 2>&5
5374 echo "$as_me:5374: \$? = $ac_status" >&5
5375 (exit $ac_status); } &&
5376 { ac_try
='test -s conftest$ac_exeext'
5377 { (eval echo "$as_me:5377: \"$ac_try\"") >&5
5380 echo "$as_me:5380: \$? = $ac_status" >&5
5381 (exit $ac_status); }; }; then
5382 ac_cv_lib_cposix_strerror
=yes
5384 echo "$as_me: failed program was:" >&5
5385 cat conftest.
$ac_ext >&5
5386 ac_cv_lib_cposix_strerror
=no
5388 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5389 LIBS
=$ac_check_lib_save_LIBS
5391 echo "$as_me:5391: result: $ac_cv_lib_cposix_strerror" >&5
5392 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
5393 if test $ac_cv_lib_cposix_strerror = yes; then
5394 LIBS
="$LIBS -lcposix"
5397 echo "$as_me:5397: checking for ANSI C header files" >&5
5398 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5399 if test "${ac_cv_header_stdc+set}" = set; then
5400 echo $ECHO_N "(cached) $ECHO_C" >&6
5402 cat >conftest.
$ac_ext <<_ACEOF
5403 #line 5403 "configure"
5404 #include "confdefs.h"
5411 if { (eval echo "$as_me:5411: \"$ac_cpp conftest.$ac_ext\"") >&5
5412 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5414 egrep -v '^ *\+' conftest.er1
>conftest.err
5416 cat conftest.err
>&5
5417 echo "$as_me:5417: \$? = $ac_status" >&5
5418 (exit $ac_status); } >/dev
/null
; then
5419 if test -s conftest.err
; then
5420 ac_cpp_err
=$ac_c_preproc_warn_flag
5427 if test -z "$ac_cpp_err"; then
5428 ac_cv_header_stdc
=yes
5430 echo "$as_me: failed program was:" >&5
5431 cat conftest.
$ac_ext >&5
5432 ac_cv_header_stdc
=no
5434 rm -f conftest.err conftest.
$ac_ext
5436 if test $ac_cv_header_stdc = yes; then
5437 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5438 cat >conftest.
$ac_ext <<_ACEOF
5439 #line 5439 "configure"
5440 #include "confdefs.h"
5444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5445 egrep "memchr" >/dev
/null
2>&1; then
5448 ac_cv_header_stdc
=no
5454 if test $ac_cv_header_stdc = yes; then
5455 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5456 cat >conftest.
$ac_ext <<_ACEOF
5457 #line 5457 "configure"
5458 #include "confdefs.h"
5462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5463 egrep "free" >/dev
/null
2>&1; then
5466 ac_cv_header_stdc
=no
5472 if test $ac_cv_header_stdc = yes; then
5473 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5474 if test "$cross_compiling" = yes; then
5477 cat >conftest.
$ac_ext <<_ACEOF
5478 #line 5478 "configure"
5479 #include "confdefs.h"
5481 #if ((' ' & 0x0FF) == 0x020)
5482 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5483 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5485 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5486 || ('j' <= (c) && (c) <= 'r') \
5487 || ('s' <= (c) && (c) <= 'z'))
5488 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5491 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5496 for (i = 0; i < 256; i++)
5497 if (XOR (islower (i), ISLOWER (i))
5498 || toupper (i) != TOUPPER (i))
5503 rm -f conftest
$ac_exeext
5504 if { (eval echo "$as_me:5504: \"$ac_link\"") >&5
5505 (eval $ac_link) 2>&5
5507 echo "$as_me:5507: \$? = $ac_status" >&5
5508 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5509 { (eval echo "$as_me:5509: \"$ac_try\"") >&5
5512 echo "$as_me:5512: \$? = $ac_status" >&5
5513 (exit $ac_status); }; }; then
5516 echo "$as_me: program exited with status $ac_status" >&5
5517 echo "$as_me: failed program was:" >&5
5518 cat conftest.
$ac_ext >&5
5519 ac_cv_header_stdc
=no
5521 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5525 echo "$as_me:5525: result: $ac_cv_header_stdc" >&5
5526 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5527 if test $ac_cv_header_stdc = yes; then
5529 cat >>confdefs.h
<<\EOF
5530 #define STDC_HEADERS 1
5535 echo "$as_me:5535: checking for $CC option to accept ANSI C" >&5
5536 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5537 if test "${ac_cv_prog_cc_stdc+set}" = set; then
5538 echo $ECHO_N "(cached) $ECHO_C" >&6
5540 ac_cv_prog_cc_stdc
=no
5542 cat >conftest.
$ac_ext <<_ACEOF
5543 #line 5543 "configure"
5544 #include "confdefs.h"
5547 #include <sys/types.h>
5548 #include <sys/stat.h>
5549 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5550 struct buf { int x; };
5551 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5552 static char *e (p, i)
5558 static char *f (char * (*g) (char **, int), char **p, ...)
5563 s = g (p, va_arg (v,int));
5567 int test (int i, double x);
5568 struct s1 {int (*f) (int a);};
5569 struct s2 {int (*f) (double a);};
5570 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5576 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5581 # Don't try gcc -ansi; that turns off useful extensions and
5582 # breaks some systems' header files.
5583 # AIX -qlanglvl=ansi
5584 # Ultrix and OSF/1 -std1
5585 # HP-UX 10.20 and later -Ae
5586 # HP-UX older versions -Aa -D_HPUX_SOURCE
5587 # SVR4 -Xc -D__EXTENSIONS__
5588 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5590 CC
="$ac_save_CC $ac_arg"
5591 rm -f conftest.
$ac_objext
5592 if { (eval echo "$as_me:5592: \"$ac_compile\"") >&5
5593 (eval $ac_compile) 2>&5
5595 echo "$as_me:5595: \$? = $ac_status" >&5
5596 (exit $ac_status); } &&
5597 { ac_try
='test -s conftest.$ac_objext'
5598 { (eval echo "$as_me:5598: \"$ac_try\"") >&5
5601 echo "$as_me:5601: \$? = $ac_status" >&5
5602 (exit $ac_status); }; }; then
5603 ac_cv_prog_cc_stdc
=$ac_arg
5606 echo "$as_me: failed program was:" >&5
5607 cat conftest.
$ac_ext >&5
5609 rm -f conftest.
$ac_objext
5611 rm -f conftest.
$ac_ext conftest.
$ac_objext
5616 case "x$ac_cv_prog_cc_stdc" in
5618 echo "$as_me:5618: result: none needed" >&5
5619 echo "${ECHO_T}none needed" >&6 ;;
5621 echo "$as_me:5621: result: $ac_cv_prog_cc_stdc" >&5
5622 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5623 CC
="$CC $ac_cv_prog_cc_stdc" ;;
5626 echo "$as_me:5626: checking for an ANSI C-conforming const" >&5
5627 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5628 if test "${ac_cv_c_const+set}" = set; then
5629 echo $ECHO_N "(cached) $ECHO_C" >&6
5631 cat >conftest.
$ac_ext <<_ACEOF
5632 #line 5632 "configure"
5633 #include "confdefs.h"
5638 /* FIXME: Include the comments suggested by Paul. */
5640 /* Ultrix mips cc rejects this. */
5641 typedef int charset[2];
5643 /* SunOS 4.1.1 cc rejects this. */
5644 char const *const *ccp;
5646 /* NEC SVR4.0.2 mips cc rejects this. */
5647 struct point {int x, y;};
5648 static struct point const zero = {0,0};
5649 /* AIX XL C 1.02.0.0 rejects this.
5650 It does not let you subtract one const X* pointer from another in
5651 an arm of an if-expression whose if-part is not a constant
5653 const char *g = "string";
5654 ccp = &g + (g ? g-g : 0);
5655 /* HPUX 7.0 cc rejects these. */
5658 ccp = (char const *const *) p;
5659 { /* SCO 3.2v4 cc rejects this. */
5661 char const *s = 0 ? (char *) 0 : (char const *) 0;
5665 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5667 const int *foo = &x[0];
5670 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5671 typedef const int *iptr;
5675 { /* AIX XL C 1.02.0.0 rejects this saying
5676 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5677 struct s { int j; const int *ap[3]; };
5678 struct s *b; b->j = 5;
5680 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5689 rm -f conftest.
$ac_objext
5690 if { (eval echo "$as_me:5690: \"$ac_compile\"") >&5
5691 (eval $ac_compile) 2>&5
5693 echo "$as_me:5693: \$? = $ac_status" >&5
5694 (exit $ac_status); } &&
5695 { ac_try
='test -s conftest.$ac_objext'
5696 { (eval echo "$as_me:5696: \"$ac_try\"") >&5
5699 echo "$as_me:5699: \$? = $ac_status" >&5
5700 (exit $ac_status); }; }; then
5703 echo "$as_me: failed program was:" >&5
5704 cat conftest.
$ac_ext >&5
5707 rm -f conftest.
$ac_objext conftest.
$ac_ext
5709 echo "$as_me:5709: result: $ac_cv_c_const" >&5
5710 echo "${ECHO_T}$ac_cv_c_const" >&6
5711 if test $ac_cv_c_const = no
; then
5713 cat >>confdefs.h
<<\EOF
5719 echo "$as_me:5719: checking for inline" >&5
5720 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5721 if test "${ac_cv_c_inline+set}" = set; then
5722 echo $ECHO_N "(cached) $ECHO_C" >&6
5725 for ac_kw
in inline __inline__ __inline
; do
5726 cat >conftest.
$ac_ext <<_ACEOF
5727 #line 5727 "configure"
5728 #include "confdefs.h"
5730 static $ac_kw int static_foo () {return 0; }
5731 $ac_kw int foo () {return 0; }
5735 rm -f conftest.
$ac_objext
5736 if { (eval echo "$as_me:5736: \"$ac_compile\"") >&5
5737 (eval $ac_compile) 2>&5
5739 echo "$as_me:5739: \$? = $ac_status" >&5
5740 (exit $ac_status); } &&
5741 { ac_try
='test -s conftest.$ac_objext'
5742 { (eval echo "$as_me:5742: \"$ac_try\"") >&5
5745 echo "$as_me:5745: \$? = $ac_status" >&5
5746 (exit $ac_status); }; }; then
5747 ac_cv_c_inline
=$ac_kw; break
5749 echo "$as_me: failed program was:" >&5
5750 cat conftest.
$ac_ext >&5
5752 rm -f conftest.
$ac_objext conftest.
$ac_ext
5756 echo "$as_me:5756: result: $ac_cv_c_inline" >&5
5757 echo "${ECHO_T}$ac_cv_c_inline" >&6
5758 case $ac_cv_c_inline in
5761 cat >>confdefs.h
<<\EOF
5765 *) cat >>confdefs.h
<<EOF
5766 #define inline $ac_cv_c_inline
5771 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5773 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5774 inttypes.h stdint.h unistd.h
5776 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5777 echo "$as_me:5777: checking for $ac_header" >&5
5778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5780 echo $ECHO_N "(cached) $ECHO_C" >&6
5782 cat >conftest.
$ac_ext <<_ACEOF
5783 #line 5783 "configure"
5784 #include "confdefs.h"
5785 $ac_includes_default
5786 #include <$ac_header>
5788 rm -f conftest.
$ac_objext
5789 if { (eval echo "$as_me:5789: \"$ac_compile\"") >&5
5790 (eval $ac_compile) 2>&5
5792 echo "$as_me:5792: \$? = $ac_status" >&5
5793 (exit $ac_status); } &&
5794 { ac_try
='test -s conftest.$ac_objext'
5795 { (eval echo "$as_me:5795: \"$ac_try\"") >&5
5798 echo "$as_me:5798: \$? = $ac_status" >&5
5799 (exit $ac_status); }; }; then
5800 eval "$as_ac_Header=yes"
5802 echo "$as_me: failed program was:" >&5
5803 cat conftest.
$ac_ext >&5
5804 eval "$as_ac_Header=no"
5806 rm -f conftest.
$ac_objext conftest.
$ac_ext
5808 echo "$as_me:5808: result: `eval echo '${'$as_ac_Header'}'`" >&5
5809 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5811 cat >>confdefs.h
<<EOF
5812 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5818 echo "$as_me:5818: checking for off_t" >&5
5819 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5820 if test "${ac_cv_type_off_t+set}" = set; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5823 cat >conftest.
$ac_ext <<_ACEOF
5824 #line 5824 "configure"
5825 #include "confdefs.h"
5826 $ac_includes_default
5838 rm -f conftest.
$ac_objext
5839 if { (eval echo "$as_me:5839: \"$ac_compile\"") >&5
5840 (eval $ac_compile) 2>&5
5842 echo "$as_me:5842: \$? = $ac_status" >&5
5843 (exit $ac_status); } &&
5844 { ac_try
='test -s conftest.$ac_objext'
5845 { (eval echo "$as_me:5845: \"$ac_try\"") >&5
5848 echo "$as_me:5848: \$? = $ac_status" >&5
5849 (exit $ac_status); }; }; then
5850 ac_cv_type_off_t
=yes
5852 echo "$as_me: failed program was:" >&5
5853 cat conftest.
$ac_ext >&5
5856 rm -f conftest.
$ac_objext conftest.
$ac_ext
5858 echo "$as_me:5858: result: $ac_cv_type_off_t" >&5
5859 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5860 if test $ac_cv_type_off_t = yes; then
5864 cat >>confdefs.h
<<EOF
5870 echo "$as_me:5870: checking for size_t" >&5
5871 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5872 if test "${ac_cv_type_size_t+set}" = set; then
5873 echo $ECHO_N "(cached) $ECHO_C" >&6
5875 cat >conftest.
$ac_ext <<_ACEOF
5876 #line 5876 "configure"
5877 #include "confdefs.h"
5878 $ac_includes_default
5884 if (sizeof (size_t))
5890 rm -f conftest.
$ac_objext
5891 if { (eval echo "$as_me:5891: \"$ac_compile\"") >&5
5892 (eval $ac_compile) 2>&5
5894 echo "$as_me:5894: \$? = $ac_status" >&5
5895 (exit $ac_status); } &&
5896 { ac_try
='test -s conftest.$ac_objext'
5897 { (eval echo "$as_me:5897: \"$ac_try\"") >&5
5900 echo "$as_me:5900: \$? = $ac_status" >&5
5901 (exit $ac_status); }; }; then
5902 ac_cv_type_size_t
=yes
5904 echo "$as_me: failed program was:" >&5
5905 cat conftest.
$ac_ext >&5
5906 ac_cv_type_size_t
=no
5908 rm -f conftest.
$ac_objext conftest.
$ac_ext
5910 echo "$as_me:5910: result: $ac_cv_type_size_t" >&5
5911 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5912 if test $ac_cv_type_size_t = yes; then
5916 cat >>confdefs.h
<<EOF
5917 #define size_t unsigned
5922 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5923 # for constant arguments. Useless!
5924 echo "$as_me:5924: checking for working alloca.h" >&5
5925 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5926 if test "${ac_cv_working_alloca_h+set}" = set; then
5927 echo $ECHO_N "(cached) $ECHO_C" >&6
5929 cat >conftest.
$ac_ext <<_ACEOF
5930 #line 5930 "configure"
5931 #include "confdefs.h"
5936 char *p = (char *) alloca (2 * sizeof (int));
5941 rm -f conftest.
$ac_objext conftest
$ac_exeext
5942 if { (eval echo "$as_me:5942: \"$ac_link\"") >&5
5943 (eval $ac_link) 2>&5
5945 echo "$as_me:5945: \$? = $ac_status" >&5
5946 (exit $ac_status); } &&
5947 { ac_try
='test -s conftest$ac_exeext'
5948 { (eval echo "$as_me:5948: \"$ac_try\"") >&5
5951 echo "$as_me:5951: \$? = $ac_status" >&5
5952 (exit $ac_status); }; }; then
5953 ac_cv_working_alloca_h
=yes
5955 echo "$as_me: failed program was:" >&5
5956 cat conftest.
$ac_ext >&5
5957 ac_cv_working_alloca_h
=no
5959 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5961 echo "$as_me:5961: result: $ac_cv_working_alloca_h" >&5
5962 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5963 if test $ac_cv_working_alloca_h = yes; then
5965 cat >>confdefs.h
<<\EOF
5966 #define HAVE_ALLOCA_H 1
5971 echo "$as_me:5971: checking for alloca" >&5
5972 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5973 if test "${ac_cv_func_alloca_works+set}" = set; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
5976 cat >conftest.
$ac_ext <<_ACEOF
5977 #line 5977 "configure"
5978 #include "confdefs.h"
5980 # define alloca __builtin_alloca
5983 # include <malloc.h>
5984 # define alloca _alloca
5987 # include <alloca.h>
5992 # ifndef alloca /* predefined by HP cc +Olibcalls */
6003 char *p = (char *) alloca (1);
6008 rm -f conftest.
$ac_objext conftest
$ac_exeext
6009 if { (eval echo "$as_me:6009: \"$ac_link\"") >&5
6010 (eval $ac_link) 2>&5
6012 echo "$as_me:6012: \$? = $ac_status" >&5
6013 (exit $ac_status); } &&
6014 { ac_try
='test -s conftest$ac_exeext'
6015 { (eval echo "$as_me:6015: \"$ac_try\"") >&5
6018 echo "$as_me:6018: \$? = $ac_status" >&5
6019 (exit $ac_status); }; }; then
6020 ac_cv_func_alloca_works
=yes
6022 echo "$as_me: failed program was:" >&5
6023 cat conftest.
$ac_ext >&5
6024 ac_cv_func_alloca_works
=no
6026 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6028 echo "$as_me:6028: result: $ac_cv_func_alloca_works" >&5
6029 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6031 if test $ac_cv_func_alloca_works = yes; then
6033 cat >>confdefs.h
<<\EOF
6034 #define HAVE_ALLOCA 1
6038 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6039 # that cause trouble. Some versions do not even contain alloca or
6040 # contain a buggy version. If you still want to use their alloca,
6041 # use ar to extract alloca.o from them instead of compiling alloca.c.
6043 ALLOCA
=alloca.
$ac_objext
6045 cat >>confdefs.h
<<\EOF
6049 echo "$as_me:6049: checking whether \`alloca.c' needs Cray hooks" >&5
6050 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6051 if test "${ac_cv_os_cray+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
6054 cat >conftest.
$ac_ext <<_ACEOF
6055 #line 6055 "configure"
6056 #include "confdefs.h"
6057 #if defined(CRAY) && ! defined(CRAY2)
6064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6065 egrep "webecray" >/dev
/null
2>&1; then
6073 echo "$as_me:6073: result: $ac_cv_os_cray" >&5
6074 echo "${ECHO_T}$ac_cv_os_cray" >&6
6075 if test $ac_cv_os_cray = yes; then
6076 for ac_func
in _getb67 GETB67 getb67
; do
6077 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6078 echo "$as_me:6078: checking for $ac_func" >&5
6079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6080 if eval "test \"\${$as_ac_var+set}\" = set"; then
6081 echo $ECHO_N "(cached) $ECHO_C" >&6
6083 cat >conftest.
$ac_ext <<_ACEOF
6084 #line 6084 "configure"
6085 #include "confdefs.h"
6086 /* System header to define __stub macros and hopefully few prototypes,
6087 which can conflict with char $ac_func (); below. */
6089 /* Override any gcc2 internal prototype to avoid an error. */
6093 /* We use char because int might match the return type of a gcc2
6094 builtin and then its argument prototype would still apply. */
6101 /* The GNU C library defines this for functions which it implements
6102 to always fail with ENOSYS. Some functions are actually named
6103 something starting with __ and the normal name is an alias. */
6104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6114 rm -f conftest.
$ac_objext conftest
$ac_exeext
6115 if { (eval echo "$as_me:6115: \"$ac_link\"") >&5
6116 (eval $ac_link) 2>&5
6118 echo "$as_me:6118: \$? = $ac_status" >&5
6119 (exit $ac_status); } &&
6120 { ac_try
='test -s conftest$ac_exeext'
6121 { (eval echo "$as_me:6121: \"$ac_try\"") >&5
6124 echo "$as_me:6124: \$? = $ac_status" >&5
6125 (exit $ac_status); }; }; then
6126 eval "$as_ac_var=yes"
6128 echo "$as_me: failed program was:" >&5
6129 cat conftest.
$ac_ext >&5
6130 eval "$as_ac_var=no"
6132 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6134 echo "$as_me:6134: result: `eval echo '${'$as_ac_var'}'`" >&5
6135 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6136 if test `eval echo '${'$as_ac_var'}'` = yes; then
6138 cat >>confdefs.h
<<EOF
6139 #define CRAY_STACKSEG_END $ac_func
6148 echo "$as_me:6148: checking stack direction for C alloca" >&5
6149 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6150 if test "${ac_cv_c_stack_direction+set}" = set; then
6151 echo $ECHO_N "(cached) $ECHO_C" >&6
6153 if test "$cross_compiling" = yes; then
6154 ac_cv_c_stack_direction
=0
6156 cat >conftest.
$ac_ext <<_ACEOF
6157 #line 6157 "configure"
6158 #include "confdefs.h"
6160 find_stack_direction ()
6162 static char *addr = 0;
6167 return find_stack_direction ();
6170 return (&dummy > addr) ? 1 : -1;
6176 exit (find_stack_direction () < 0);
6179 rm -f conftest
$ac_exeext
6180 if { (eval echo "$as_me:6180: \"$ac_link\"") >&5
6181 (eval $ac_link) 2>&5
6183 echo "$as_me:6183: \$? = $ac_status" >&5
6184 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6185 { (eval echo "$as_me:6185: \"$ac_try\"") >&5
6188 echo "$as_me:6188: \$? = $ac_status" >&5
6189 (exit $ac_status); }; }; then
6190 ac_cv_c_stack_direction
=1
6192 echo "$as_me: program exited with status $ac_status" >&5
6193 echo "$as_me: failed program was:" >&5
6194 cat conftest.
$ac_ext >&5
6195 ac_cv_c_stack_direction
=-1
6197 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6200 echo "$as_me:6200: result: $ac_cv_c_stack_direction" >&5
6201 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6203 cat >>confdefs.h
<<EOF
6204 #define STACK_DIRECTION $ac_cv_c_stack_direction
6209 for ac_header
in stdlib.h unistd.h
6211 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6212 echo "$as_me:6212: checking for $ac_header" >&5
6213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6214 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
6217 cat >conftest.
$ac_ext <<_ACEOF
6218 #line 6218 "configure"
6219 #include "confdefs.h"
6220 #include <$ac_header>
6222 if { (eval echo "$as_me:6222: \"$ac_cpp conftest.$ac_ext\"") >&5
6223 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6225 egrep -v '^ *\+' conftest.er1
>conftest.err
6227 cat conftest.err
>&5
6228 echo "$as_me:6228: \$? = $ac_status" >&5
6229 (exit $ac_status); } >/dev
/null
; then
6230 if test -s conftest.err
; then
6231 ac_cpp_err
=$ac_c_preproc_warn_flag
6238 if test -z "$ac_cpp_err"; then
6239 eval "$as_ac_Header=yes"
6241 echo "$as_me: failed program was:" >&5
6242 cat conftest.
$ac_ext >&5
6243 eval "$as_ac_Header=no"
6245 rm -f conftest.err conftest.
$ac_ext
6247 echo "$as_me:6247: result: `eval echo '${'$as_ac_Header'}'`" >&5
6248 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6249 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6250 cat >>confdefs.h
<<EOF
6251 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6257 for ac_func
in getpagesize
6259 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6260 echo "$as_me:6260: checking for $ac_func" >&5
6261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6262 if eval "test \"\${$as_ac_var+set}\" = set"; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
6265 cat >conftest.
$ac_ext <<_ACEOF
6266 #line 6266 "configure"
6267 #include "confdefs.h"
6268 /* System header to define __stub macros and hopefully few prototypes,
6269 which can conflict with char $ac_func (); below. */
6271 /* Override any gcc2 internal prototype to avoid an error. */
6275 /* We use char because int might match the return type of a gcc2
6276 builtin and then its argument prototype would still apply. */
6283 /* The GNU C library defines this for functions which it implements
6284 to always fail with ENOSYS. Some functions are actually named
6285 something starting with __ and the normal name is an alias. */
6286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6296 rm -f conftest.
$ac_objext conftest
$ac_exeext
6297 if { (eval echo "$as_me:6297: \"$ac_link\"") >&5
6298 (eval $ac_link) 2>&5
6300 echo "$as_me:6300: \$? = $ac_status" >&5
6301 (exit $ac_status); } &&
6302 { ac_try
='test -s conftest$ac_exeext'
6303 { (eval echo "$as_me:6303: \"$ac_try\"") >&5
6306 echo "$as_me:6306: \$? = $ac_status" >&5
6307 (exit $ac_status); }; }; then
6308 eval "$as_ac_var=yes"
6310 echo "$as_me: failed program was:" >&5
6311 cat conftest.
$ac_ext >&5
6312 eval "$as_ac_var=no"
6314 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6316 echo "$as_me:6316: result: `eval echo '${'$as_ac_var'}'`" >&5
6317 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6318 if test `eval echo '${'$as_ac_var'}'` = yes; then
6319 cat >>confdefs.h
<<EOF
6320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6326 echo "$as_me:6326: checking for working mmap" >&5
6327 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6328 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6329 echo $ECHO_N "(cached) $ECHO_C" >&6
6331 if test "$cross_compiling" = yes; then
6332 ac_cv_func_mmap_fixed_mapped
=no
6334 cat >conftest.
$ac_ext <<_ACEOF
6335 #line 6335 "configure"
6336 #include "confdefs.h"
6337 $ac_includes_default
6338 /* Thanks to Mike Haertel and Jim Avera for this test.
6339 Here is a matrix of mmap possibilities:
6340 mmap private not fixed
6341 mmap private fixed at somewhere currently unmapped
6342 mmap private fixed at somewhere already mapped
6343 mmap shared not fixed
6344 mmap shared fixed at somewhere currently unmapped
6345 mmap shared fixed at somewhere already mapped
6346 For private mappings, we should verify that changes cannot be read()
6347 back from the file, nor mmap's back from the file at a different
6348 address. (There have been systems where private was not correctly
6349 implemented like the infamous i386 svr4.0, and systems where the
6350 VM page cache was not coherent with the file system buffer cache
6351 like early versions of FreeBSD and possibly contemporary NetBSD.)
6352 For shared mappings, we should conversely verify that changes get
6353 propogated back to all the places they're supposed to be.
6355 Grep wants private fixed already mapped.
6356 The main things grep needs to know about mmap are:
6357 * does it exist and is it safe to write into the mmap'd area
6358 * how to use it (BSD variants) */
6361 #include <sys/mman.h>
6363 #if !STDC_HEADERS && !HAVE_STDLIB_H
6367 /* This mess was copied from the GNU getpagesize.h. */
6368 #if !HAVE_GETPAGESIZE
6369 /* Assume that all systems that can run configure have sys/param.h. */
6370 # if !HAVE_SYS_PARAM_H
6371 # define HAVE_SYS_PARAM_H 1
6374 # ifdef _SC_PAGESIZE
6375 # define getpagesize() sysconf(_SC_PAGESIZE)
6376 # else /* no _SC_PAGESIZE */
6377 # if HAVE_SYS_PARAM_H
6378 # include <sys/param.h>
6379 # ifdef EXEC_PAGESIZE
6380 # define getpagesize() EXEC_PAGESIZE
6381 # else /* no EXEC_PAGESIZE */
6383 # define getpagesize() NBPG * CLSIZE
6386 # endif /* no CLSIZE */
6387 # else /* no NBPG */
6389 # define getpagesize() NBPC
6390 # else /* no NBPC */
6392 # define getpagesize() PAGESIZE
6393 # endif /* PAGESIZE */
6394 # endif /* no NBPC */
6395 # endif /* no NBPG */
6396 # endif /* no EXEC_PAGESIZE */
6397 # else /* no HAVE_SYS_PARAM_H */
6398 # define getpagesize() 8192 /* punt totally */
6399 # endif /* no HAVE_SYS_PARAM_H */
6400 # endif /* no _SC_PAGESIZE */
6402 #endif /* no HAVE_GETPAGESIZE */
6407 char *data, *data2, *data3;
6411 pagesize = getpagesize ();
6413 /* First, make a file with some known garbage in it. */
6414 data = (char *) malloc (pagesize);
6417 for (i = 0; i < pagesize; ++i)
6418 *(data + i) = rand ();
6420 fd = creat ("conftest.mmap", 0600);
6423 if (write (fd, data, pagesize) != pagesize)
6427 /* Next, try to mmap the file at a fixed address which already has
6428 something else allocated at it. If we can, also make sure that
6429 we see the same garbage. */
6430 fd = open ("conftest.mmap", O_RDWR);
6433 data2 = (char *) malloc (2 * pagesize);
6436 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6437 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6438 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6440 for (i = 0; i < pagesize; ++i)
6441 if (*(data + i) != *(data2 + i))
6444 /* Finally, make sure that changes to the mapped area do not
6445 percolate back to the file as seen by read(). (This is a bug on
6446 some variants of i386 svr4.0.) */
6447 for (i = 0; i < pagesize; ++i)
6448 *(data2 + i) = *(data2 + i) + 1;
6449 data3 = (char *) malloc (pagesize);
6452 if (read (fd, data3, pagesize) != pagesize)
6454 for (i = 0; i < pagesize; ++i)
6455 if (*(data + i) != *(data3 + i))
6461 rm -f conftest
$ac_exeext
6462 if { (eval echo "$as_me:6462: \"$ac_link\"") >&5
6463 (eval $ac_link) 2>&5
6465 echo "$as_me:6465: \$? = $ac_status" >&5
6466 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6467 { (eval echo "$as_me:6467: \"$ac_try\"") >&5
6470 echo "$as_me:6470: \$? = $ac_status" >&5
6471 (exit $ac_status); }; }; then
6472 ac_cv_func_mmap_fixed_mapped
=yes
6474 echo "$as_me: program exited with status $ac_status" >&5
6475 echo "$as_me: failed program was:" >&5
6476 cat conftest.
$ac_ext >&5
6477 ac_cv_func_mmap_fixed_mapped
=no
6479 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6482 echo "$as_me:6482: result: $ac_cv_func_mmap_fixed_mapped" >&5
6483 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6484 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6486 cat >>confdefs.h
<<\EOF
6493 echo "$as_me:6493: checking whether we are using the GNU C Library 2.1 or newer" >&5
6494 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
6495 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6496 echo $ECHO_N "(cached) $ECHO_C" >&6
6498 cat >conftest.
$ac_ext <<_ACEOF
6499 #line 6499 "configure"
6500 #include "confdefs.h"
6502 #include <features.h>
6503 #ifdef __GNU_LIBRARY__
6504 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6511 egrep "Lucky GNU user" >/dev
/null
2>&1; then
6512 ac_cv_gnu_library_2_1
=yes
6514 ac_cv_gnu_library_2_1
=no
6519 echo "$as_me:6519: result: $ac_cv_gnu_library_2_1" >&5
6520 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
6522 GLIBC21
="$ac_cv_gnu_library_2_1"
6524 if test "X$prefix" = "XNONE"; then
6525 acl_final_prefix
="$ac_default_prefix"
6527 acl_final_prefix
="$prefix"
6529 if test "X$exec_prefix" = "XNONE"; then
6530 acl_final_exec_prefix
='${prefix}'
6532 acl_final_exec_prefix
="$exec_prefix"
6534 acl_save_prefix
="$prefix"
6535 prefix
="$acl_final_prefix"
6536 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
6537 prefix
="$acl_save_prefix"
6539 # Check whether --with-gnu-ld or --without-gnu-ld was given.
6540 if test "${with_gnu_ld+set}" = set; then
6541 withval
="$with_gnu_ld"
6542 test "$withval" = no || with_gnu_ld
=yes
6547 if test "$GCC" = yes; then
6548 # Check if gcc -print-prog-name=ld gives a path.
6549 echo "$as_me:6549: checking for ld used by GCC" >&5
6550 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
6553 # gcc leaves a trailing carriage return which upsets mingw
6554 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6556 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6559 # Accept absolute paths.
6560 [\\/]* |
[A-Za-z
]:[\\/]*)
6561 re_direlt
='/[^/][^/]*/\.\./'
6562 # Canonicalize the path of ld
6563 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
6564 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
6565 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
6567 test -z "$LD" && LD
="$ac_prog"
6570 # If it fails, then pretend we aren't using GCC.
6574 # If it is relative, then search for the first ld in PATH.
6578 elif test "$with_gnu_ld" = yes; then
6579 echo "$as_me:6579: checking for GNU ld" >&5
6580 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6582 echo "$as_me:6582: checking for non-GNU ld" >&5
6583 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6585 if test "${acl_cv_path_LD+set}" = set; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
6588 if test -z "$LD"; then
6589 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6590 for ac_dir
in $PATH; do
6591 test -z "$ac_dir" && ac_dir
=.
6592 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6593 acl_cv_path_LD
="$ac_dir/$ac_prog"
6594 # Check to see if the program is GNU ld. I'd rather use --version,
6595 # but apparently some GNU ld's only accept -v.
6596 # Break only if it was the GNU/non-GNU ld that we prefer.
6597 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
6598 test "$with_gnu_ld" != no
&& break
6600 test "$with_gnu_ld" != yes && break
6606 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
6610 LD
="$acl_cv_path_LD"
6611 if test -n "$LD"; then
6612 echo "$as_me:6612: result: $LD" >&5
6613 echo "${ECHO_T}$LD" >&6
6615 echo "$as_me:6615: result: no" >&5
6616 echo "${ECHO_T}no" >&6
6618 test -z "$LD" && { { echo "$as_me:6618: error: no acceptable ld found in \$PATH" >&5
6619 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6620 { (exit 1); exit 1; }; }
6621 echo "$as_me:6621: checking if the linker ($LD) is GNU ld" >&5
6622 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6623 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6624 echo $ECHO_N "(cached) $ECHO_C" >&6
6626 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6627 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
6628 acl_cv_prog_gnu_ld
=yes
6630 acl_cv_prog_gnu_ld
=no
6633 echo "$as_me:6633: result: $acl_cv_prog_gnu_ld" >&5
6634 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
6635 with_gnu_ld
=$acl_cv_prog_gnu_ld
6637 echo "$as_me:6637: checking for shared library run path origin" >&5
6638 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
6639 if test "${acl_cv_rpath+set}" = set; then
6640 echo $ECHO_N "(cached) $ECHO_C" >&6
6643 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
6644 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6650 echo "$as_me:6650: result: $acl_cv_rpath" >&5
6651 echo "${ECHO_T}$acl_cv_rpath" >&6
6653 libext
="$acl_cv_libext"
6654 shlibext
="$acl_cv_shlibext"
6655 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
6656 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
6657 hardcode_direct
="$acl_cv_hardcode_direct"
6658 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
6659 sys_lib_search_path_spec
="$acl_cv_sys_lib_search_path_spec"
6660 sys_lib_dlsearch_path_spec
="$acl_cv_sys_lib_dlsearch_path_spec"
6664 acl_save_prefix
="$prefix"
6665 prefix
="$acl_final_prefix"
6666 acl_save_exec_prefix
="$exec_prefix"
6667 exec_prefix
="$acl_final_exec_prefix"
6669 eval additional_includedir
=\"$includedir\"
6670 eval additional_libdir
=\"$libdir\"
6672 exec_prefix
="$acl_save_exec_prefix"
6673 prefix
="$acl_save_prefix"
6675 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
6676 if test "${with_libiconv_prefix+set}" = set; then
6677 withval
="$with_libiconv_prefix"
6679 if test "X$withval" = "Xno"; then
6682 if test "X$withval" = "X"; then
6684 acl_save_prefix
="$prefix"
6685 prefix
="$acl_final_prefix"
6686 acl_save_exec_prefix
="$exec_prefix"
6687 exec_prefix
="$acl_final_exec_prefix"
6689 eval additional_includedir
=\"$includedir\"
6690 eval additional_libdir
=\"$libdir\"
6692 exec_prefix
="$acl_save_exec_prefix"
6693 prefix
="$acl_save_prefix"
6696 additional_includedir
="$withval/include"
6697 additional_libdir
="$withval/lib"
6707 names_already_handled
=
6708 names_next_round
='iconv '
6709 while test -n "$names_next_round"; do
6710 names_this_round
="$names_next_round"
6712 for name
in $names_this_round; do
6714 for n
in $names_already_handled; do
6715 if test "$n" = "$name"; then
6720 if test -z "$already_handled"; then
6721 names_already_handled
="$names_already_handled $name"
6722 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6723 eval value
=\"\
$HAVE_LIB$uppername\"
6724 if test -n "$value"; then
6725 if test "$value" = yes; then
6726 eval value
=\"\
$LIB$uppername\"
6727 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
6728 eval value
=\"\
$LTLIB$uppername\"
6729 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
6738 if test $use_additional = yes; then
6739 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6740 found_dir
="$additional_libdir"
6741 found_so
="$additional_libdir/lib$name.$shlibext"
6742 if test -f "$additional_libdir/lib$name.la"; then
6743 found_la
="$additional_libdir/lib$name.la"
6746 if test -f "$additional_libdir/lib$name.$libext"; then
6747 found_dir
="$additional_libdir"
6748 found_a
="$additional_libdir/lib$name.$libext"
6749 if test -f "$additional_libdir/lib$name.la"; then
6750 found_la
="$additional_libdir/lib$name.la"
6755 if test "X$found_dir" = "X"; then
6756 for x
in $LDFLAGS $LTLIBICONV; do
6758 acl_save_prefix
="$prefix"
6759 prefix
="$acl_final_prefix"
6760 acl_save_exec_prefix
="$exec_prefix"
6761 exec_prefix
="$acl_final_exec_prefix"
6763 exec_prefix
="$acl_save_exec_prefix"
6764 prefix
="$acl_save_prefix"
6768 dir
=`echo "X$x" | sed -e 's/^X-L//'`
6769 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6771 found_so
="$dir/lib$name.$shlibext"
6772 if test -f "$dir/lib$name.la"; then
6773 found_la
="$dir/lib$name.la"
6776 if test -f "$dir/lib$name.$libext"; then
6778 found_a
="$dir/lib$name.$libext"
6779 if test -f "$dir/lib$name.la"; then
6780 found_la
="$dir/lib$name.la"
6786 if test "X$found_dir" != "X"; then
6791 if test "X$found_dir" != "X"; then
6792 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6793 if test "X$found_so" != "X"; then
6794 if test "X$found_dir" = "X/usr/lib"; then
6795 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
6798 for x
in $ltrpathdirs; do
6799 if test "X$x" = "X$found_dir"; then
6804 if test -z "$haveit"; then
6805 ltrpathdirs
="$ltrpathdirs $found_dir"
6807 if test "$hardcode_direct" = yes; then
6808 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
6810 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
6811 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
6813 for x
in $rpathdirs; do
6814 if test "X$x" = "X$found_dir"; then
6819 if test -z "$haveit"; then
6820 rpathdirs
="$rpathdirs $found_dir"
6824 for x
in $LDFLAGS $LIBICONV; do
6826 acl_save_prefix
="$prefix"
6827 prefix
="$acl_final_prefix"
6828 acl_save_exec_prefix
="$exec_prefix"
6829 exec_prefix
="$acl_final_exec_prefix"
6831 exec_prefix
="$acl_save_exec_prefix"
6832 prefix
="$acl_save_prefix"
6834 if test "X$x" = "X-L$found_dir"; then
6839 if test -z "$haveit"; then
6840 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6842 if test "$hardcode_minus_L" != no
; then
6843 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
6845 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
6851 if test "X$found_a" != "X"; then
6852 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
6854 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6857 additional_includedir
=
6858 case "$found_dir" in
6860 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6861 additional_includedir
="$basedir/include"
6864 if test "X$additional_includedir" != "X"; then
6865 if test "X$additional_includedir" != "X/usr/include"; then
6867 if test "X$additional_includedir" = "X/usr/local/include"; then
6868 if test -n "$GCC"; then
6870 linux
*) haveit
=yes;;
6874 if test -z "$haveit"; then
6875 for x
in $CPPFLAGS $INCICONV; do
6877 acl_save_prefix
="$prefix"
6878 prefix
="$acl_final_prefix"
6879 acl_save_exec_prefix
="$exec_prefix"
6880 exec_prefix
="$acl_final_exec_prefix"
6882 exec_prefix
="$acl_save_exec_prefix"
6883 prefix
="$acl_save_prefix"
6885 if test "X$x" = "X-I$additional_includedir"; then
6890 if test -z "$haveit"; then
6891 if test -d "$additional_includedir"; then
6892 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6898 if test -n "$found_la"; then
6899 save_libdir
="$libdir"
6901 */* |
*\\*) .
"$found_la" ;;
6902 *) .
"./$found_la" ;;
6904 libdir
="$save_libdir"
6905 for dep
in $dependency_libs; do
6908 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
6909 if test "X$additional_libdir" != "X/usr/lib"; then
6911 if test "X$additional_libdir" = "X/usr/local/lib"; then
6912 if test -n "$GCC"; then
6914 linux
*) haveit
=yes;;
6918 if test -z "$haveit"; then
6920 for x
in $LDFLAGS $LIBICONV; do
6922 acl_save_prefix
="$prefix"
6923 prefix
="$acl_final_prefix"
6924 acl_save_exec_prefix
="$exec_prefix"
6925 exec_prefix
="$acl_final_exec_prefix"
6927 exec_prefix
="$acl_save_exec_prefix"
6928 prefix
="$acl_save_prefix"
6930 if test "X$x" = "X-L$additional_libdir"; then
6935 if test -z "$haveit"; then
6936 if test -d "$additional_libdir"; then
6937 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6941 for x
in $LDFLAGS $LTLIBICONV; do
6943 acl_save_prefix
="$prefix"
6944 prefix
="$acl_final_prefix"
6945 acl_save_exec_prefix
="$exec_prefix"
6946 exec_prefix
="$acl_final_exec_prefix"
6948 exec_prefix
="$acl_save_exec_prefix"
6949 prefix
="$acl_save_prefix"
6951 if test "X$x" = "X-L$additional_libdir"; then
6956 if test -z "$haveit"; then
6957 if test -d "$additional_libdir"; then
6958 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6965 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6968 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6971 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
6972 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6978 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
6979 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6985 if test "X$rpathdirs" != "X"; then
6986 if test -n "$hardcode_libdir_separator"; then
6988 for found_dir
in $rpathdirs; do
6989 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6991 acl_save_libdir
="$libdir"
6993 eval flag
=\"$hardcode_libdir_flag_spec\"
6994 libdir
="$acl_save_libdir"
6995 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
6997 for found_dir
in $rpathdirs; do
6998 acl_save_libdir
="$libdir"
7000 eval flag
=\"$hardcode_libdir_flag_spec\"
7001 libdir
="$acl_save_libdir"
7002 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
7006 if test "X$ltrpathdirs" != "X"; then
7007 for found_dir
in $ltrpathdirs; do
7008 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7012 am_save_CPPFLAGS
="$CPPFLAGS"
7014 for element
in $INCICONV; do
7016 for x
in $CPPFLAGS; do
7018 acl_save_prefix
="$prefix"
7019 prefix
="$acl_final_prefix"
7020 acl_save_exec_prefix
="$exec_prefix"
7021 exec_prefix
="$acl_final_exec_prefix"
7023 exec_prefix
="$acl_save_exec_prefix"
7024 prefix
="$acl_save_prefix"
7026 if test "X$x" = "X$element"; then
7031 if test -z "$haveit"; then
7032 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
7036 echo "$as_me:7036: checking for iconv" >&5
7037 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7038 if test "${am_cv_func_iconv+set}" = set; then
7039 echo $ECHO_N "(cached) $ECHO_C" >&6
7042 am_cv_func_iconv
="no, consider installing GNU libiconv"
7044 cat >conftest.
$ac_ext <<_ACEOF
7045 #line 7045 "configure"
7046 #include "confdefs.h"
7052 iconv_t cd = iconv_open("","");
7053 iconv(cd,NULL,NULL,NULL,NULL);
7059 rm -f conftest.
$ac_objext conftest
$ac_exeext
7060 if { (eval echo "$as_me:7060: \"$ac_link\"") >&5
7061 (eval $ac_link) 2>&5
7063 echo "$as_me:7063: \$? = $ac_status" >&5
7064 (exit $ac_status); } &&
7065 { ac_try
='test -s conftest$ac_exeext'
7066 { (eval echo "$as_me:7066: \"$ac_try\"") >&5
7069 echo "$as_me:7069: \$? = $ac_status" >&5
7070 (exit $ac_status); }; }; then
7071 am_cv_func_iconv
=yes
7073 echo "$as_me: failed program was:" >&5
7074 cat conftest.
$ac_ext >&5
7076 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7077 if test "$am_cv_func_iconv" != yes; then
7078 am_save_LIBS
="$LIBS"
7079 LIBS
="$LIBS $LIBICONV"
7080 cat >conftest.
$ac_ext <<_ACEOF
7081 #line 7081 "configure"
7082 #include "confdefs.h"
7088 iconv_t cd = iconv_open("","");
7089 iconv(cd,NULL,NULL,NULL,NULL);
7095 rm -f conftest.
$ac_objext conftest
$ac_exeext
7096 if { (eval echo "$as_me:7096: \"$ac_link\"") >&5
7097 (eval $ac_link) 2>&5
7099 echo "$as_me:7099: \$? = $ac_status" >&5
7100 (exit $ac_status); } &&
7101 { ac_try
='test -s conftest$ac_exeext'
7102 { (eval echo "$as_me:7102: \"$ac_try\"") >&5
7105 echo "$as_me:7105: \$? = $ac_status" >&5
7106 (exit $ac_status); }; }; then
7108 am_cv_func_iconv
=yes
7110 echo "$as_me: failed program was:" >&5
7111 cat conftest.
$ac_ext >&5
7113 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7114 LIBS
="$am_save_LIBS"
7118 echo "$as_me:7118: result: $am_cv_func_iconv" >&5
7119 echo "${ECHO_T}$am_cv_func_iconv" >&6
7120 if test "$am_cv_func_iconv" = yes; then
7122 cat >>confdefs.h
<<\EOF
7123 #define HAVE_ICONV 1
7127 if test "$am_cv_lib_iconv" = yes; then
7128 echo "$as_me:7128: checking how to link with libiconv" >&5
7129 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
7130 echo "$as_me:7130: result: $LIBICONV" >&5
7131 echo "${ECHO_T}$LIBICONV" >&6
7133 CPPFLAGS
="$am_save_CPPFLAGS"
7138 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
7139 stdlib.h string.h unistd.h sys
/param.h
7141 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7142 echo "$as_me:7142: checking for $ac_header" >&5
7143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
7147 cat >conftest.
$ac_ext <<_ACEOF
7148 #line 7148 "configure"
7149 #include "confdefs.h"
7150 #include <$ac_header>
7152 if { (eval echo "$as_me:7152: \"$ac_cpp conftest.$ac_ext\"") >&5
7153 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7155 egrep -v '^ *\+' conftest.er1
>conftest.err
7157 cat conftest.err
>&5
7158 echo "$as_me:7158: \$? = $ac_status" >&5
7159 (exit $ac_status); } >/dev
/null
; then
7160 if test -s conftest.err
; then
7161 ac_cpp_err
=$ac_c_preproc_warn_flag
7168 if test -z "$ac_cpp_err"; then
7169 eval "$as_ac_Header=yes"
7171 echo "$as_me: failed program was:" >&5
7172 cat conftest.
$ac_ext >&5
7173 eval "$as_ac_Header=no"
7175 rm -f conftest.err conftest.
$ac_ext
7177 echo "$as_me:7177: result: `eval echo '${'$as_ac_Header'}'`" >&5
7178 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7180 cat >>confdefs.h
<<EOF
7181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7187 for ac_func
in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
7188 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
7189 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
7191 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7192 echo "$as_me:7192: checking for $ac_func" >&5
7193 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7194 if eval "test \"\${$as_ac_var+set}\" = set"; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
7197 cat >conftest.
$ac_ext <<_ACEOF
7198 #line 7198 "configure"
7199 #include "confdefs.h"
7200 /* System header to define __stub macros and hopefully few prototypes,
7201 which can conflict with char $ac_func (); below. */
7203 /* Override any gcc2 internal prototype to avoid an error. */
7207 /* We use char because int might match the return type of a gcc2
7208 builtin and then its argument prototype would still apply. */
7215 /* The GNU C library defines this for functions which it implements
7216 to always fail with ENOSYS. Some functions are actually named
7217 something starting with __ and the normal name is an alias. */
7218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7228 rm -f conftest.
$ac_objext conftest
$ac_exeext
7229 if { (eval echo "$as_me:7229: \"$ac_link\"") >&5
7230 (eval $ac_link) 2>&5
7232 echo "$as_me:7232: \$? = $ac_status" >&5
7233 (exit $ac_status); } &&
7234 { ac_try
='test -s conftest$ac_exeext'
7235 { (eval echo "$as_me:7235: \"$ac_try\"") >&5
7238 echo "$as_me:7238: \$? = $ac_status" >&5
7239 (exit $ac_status); }; }; then
7240 eval "$as_ac_var=yes"
7242 echo "$as_me: failed program was:" >&5
7243 cat conftest.
$ac_ext >&5
7244 eval "$as_ac_var=no"
7246 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7248 echo "$as_me:7248: result: `eval echo '${'$as_ac_var'}'`" >&5
7249 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7250 if test `eval echo '${'$as_ac_var'}'` = yes; then
7251 cat >>confdefs.h
<<EOF
7252 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7258 if test "$am_cv_func_iconv" = yes; then
7259 echo "$as_me:7259: checking for iconv declaration" >&5
7260 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
7261 if test "${am_cv_proto_iconv+set}" = set; then
7262 echo $ECHO_N "(cached) $ECHO_C" >&6
7265 cat >conftest.
$ac_ext <<_ACEOF
7266 #line 7266 "configure"
7267 #include "confdefs.h"
7275 #if defined(__STDC__) || defined(__cplusplus)
7276 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7289 rm -f conftest.
$ac_objext
7290 if { (eval echo "$as_me:7290: \"$ac_compile\"") >&5
7291 (eval $ac_compile) 2>&5
7293 echo "$as_me:7293: \$? = $ac_status" >&5
7294 (exit $ac_status); } &&
7295 { ac_try
='test -s conftest.$ac_objext'
7296 { (eval echo "$as_me:7296: \"$ac_try\"") >&5
7299 echo "$as_me:7299: \$? = $ac_status" >&5
7300 (exit $ac_status); }; }; then
7301 am_cv_proto_iconv_arg1
=""
7303 echo "$as_me: failed program was:" >&5
7304 cat conftest.
$ac_ext >&5
7305 am_cv_proto_iconv_arg1
="const"
7307 rm -f conftest.
$ac_objext conftest.
$ac_ext
7308 am_cv_proto_iconv
="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
7311 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7312 echo "$as_me:7312: result: ${ac_t:-
7313 }$am_cv_proto_iconv" >&5
7314 echo "${ECHO_T}${ac_t:-
7315 }$am_cv_proto_iconv" >&6
7317 cat >>confdefs.h
<<EOF
7318 #define ICONV_CONST $am_cv_proto_iconv_arg1
7323 echo "$as_me:7323: checking for nl_langinfo and CODESET" >&5
7324 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
7325 if test "${am_cv_langinfo_codeset+set}" = set; then
7326 echo $ECHO_N "(cached) $ECHO_C" >&6
7328 cat >conftest.
$ac_ext <<_ACEOF
7329 #line 7329 "configure"
7330 #include "confdefs.h"
7331 #include <langinfo.h>
7335 char* cs = nl_langinfo(CODESET);
7340 rm -f conftest.
$ac_objext conftest
$ac_exeext
7341 if { (eval echo "$as_me:7341: \"$ac_link\"") >&5
7342 (eval $ac_link) 2>&5
7344 echo "$as_me:7344: \$? = $ac_status" >&5
7345 (exit $ac_status); } &&
7346 { ac_try
='test -s conftest$ac_exeext'
7347 { (eval echo "$as_me:7347: \"$ac_try\"") >&5
7350 echo "$as_me:7350: \$? = $ac_status" >&5
7351 (exit $ac_status); }; }; then
7352 am_cv_langinfo_codeset
=yes
7354 echo "$as_me: failed program was:" >&5
7355 cat conftest.
$ac_ext >&5
7356 am_cv_langinfo_codeset
=no
7358 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7361 echo "$as_me:7361: result: $am_cv_langinfo_codeset" >&5
7362 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
7363 if test $am_cv_langinfo_codeset = yes; then
7365 cat >>confdefs.h
<<\EOF
7366 #define HAVE_LANGINFO_CODESET 1
7371 if test $ac_cv_header_locale_h = yes; then
7372 echo "$as_me:7372: checking for LC_MESSAGES" >&5
7373 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7374 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7375 echo $ECHO_N "(cached) $ECHO_C" >&6
7377 cat >conftest.
$ac_ext <<_ACEOF
7378 #line 7378 "configure"
7379 #include "confdefs.h"
7389 rm -f conftest.
$ac_objext conftest
$ac_exeext
7390 if { (eval echo "$as_me:7390: \"$ac_link\"") >&5
7391 (eval $ac_link) 2>&5
7393 echo "$as_me:7393: \$? = $ac_status" >&5
7394 (exit $ac_status); } &&
7395 { ac_try
='test -s conftest$ac_exeext'
7396 { (eval echo "$as_me:7396: \"$ac_try\"") >&5
7399 echo "$as_me:7399: \$? = $ac_status" >&5
7400 (exit $ac_status); }; }; then
7401 am_cv_val_LC_MESSAGES
=yes
7403 echo "$as_me: failed program was:" >&5
7404 cat conftest.
$ac_ext >&5
7405 am_cv_val_LC_MESSAGES
=no
7407 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7409 echo "$as_me:7409: result: $am_cv_val_LC_MESSAGES" >&5
7410 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7411 if test $am_cv_val_LC_MESSAGES = yes; then
7413 cat >>confdefs.h
<<\EOF
7414 #define HAVE_LC_MESSAGES 1
7420 for ac_prog
in bison
7422 # Extract the first word of "$ac_prog", so it can be a program name with args.
7423 set dummy
$ac_prog; ac_word
=$2
7424 echo "$as_me:7424: checking for $ac_word" >&5
7425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7426 if test "${ac_cv_prog_INTLBISON+set}" = set; then
7427 echo $ECHO_N "(cached) $ECHO_C" >&6
7429 if test -n "$INTLBISON"; then
7430 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
7432 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
7434 for ac_dir
in $ac_dummy; do
7436 test -z "$ac_dir" && ac_dir
=.
7437 $as_executable_p "$ac_dir/$ac_word" ||
continue
7438 ac_cv_prog_INTLBISON
="$ac_prog"
7439 echo "$as_me:7439: found $ac_dir/$ac_word" >&5
7445 INTLBISON
=$ac_cv_prog_INTLBISON
7446 if test -n "$INTLBISON"; then
7447 echo "$as_me:7447: result: $INTLBISON" >&5
7448 echo "${ECHO_T}$INTLBISON" >&6
7450 echo "$as_me:7450: result: no" >&5
7451 echo "${ECHO_T}no" >&6
7454 test -n "$INTLBISON" && break
7457 if test -z "$INTLBISON"; then
7460 echo "$as_me:7460: checking version of bison" >&5
7461 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
7462 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
7463 case $ac_prog_version in
7464 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
7465 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
7466 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
7467 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
7469 echo "$as_me:7469: result: $ac_prog_version" >&5
7470 echo "${ECHO_T}$ac_prog_version" >&6
7472 if test $ac_verc_fail = yes; then
7476 echo "$as_me:7476: checking whether NLS is requested" >&5
7477 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7478 # Check whether --enable-nls or --disable-nls was given.
7479 if test "${enable_nls+set}" = set; then
7480 enableval
="$enable_nls"
7485 echo "$as_me:7485: result: $USE_NLS" >&5
7486 echo "${ECHO_T}$USE_NLS" >&6
7488 BUILD_INCLUDED_LIBINTL
=no
7489 USE_INCLUDED_LIBINTL
=no
7495 if test "$USE_NLS" = "yes"; then
7496 gt_use_preinstalled_gnugettext
=no
7498 echo "$as_me:7498: checking whether included gettext is requested" >&5
7499 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7501 # Check whether --with-included-gettext or --without-included-gettext was given.
7502 if test "${with_included_gettext+set}" = set; then
7503 withval
="$with_included_gettext"
7504 nls_cv_force_use_gnu_gettext
=$withval
7506 nls_cv_force_use_gnu_gettext
=no
7508 echo "$as_me:7508: result: $nls_cv_force_use_gnu_gettext" >&5
7509 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7511 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
7512 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7514 echo "$as_me:7514: checking for GNU gettext in libc" >&5
7515 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
7516 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7519 cat >conftest.
$ac_ext <<_ACEOF
7520 #line 7520 "configure"
7521 #include "confdefs.h"
7522 #include <libintl.h>
7523 extern int _nl_msg_cat_cntr;
7527 bindtextdomain ("", "");
7528 return (int) gettext ("") + _nl_msg_cat_cntr
7533 rm -f conftest.
$ac_objext conftest
$ac_exeext
7534 if { (eval echo "$as_me:7534: \"$ac_link\"") >&5
7535 (eval $ac_link) 2>&5
7537 echo "$as_me:7537: \$? = $ac_status" >&5
7538 (exit $ac_status); } &&
7539 { ac_try
='test -s conftest$ac_exeext'
7540 { (eval echo "$as_me:7540: \"$ac_try\"") >&5
7543 echo "$as_me:7543: \$? = $ac_status" >&5
7544 (exit $ac_status); }; }; then
7545 gt_cv_func_gnugettext1_libc
=yes
7547 echo "$as_me: failed program was:" >&5
7548 cat conftest.
$ac_ext >&5
7549 gt_cv_func_gnugettext1_libc
=no
7551 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7553 echo "$as_me:7553: result: $gt_cv_func_gnugettext1_libc" >&5
7554 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
7556 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
7560 acl_save_prefix
="$prefix"
7561 prefix
="$acl_final_prefix"
7562 acl_save_exec_prefix
="$exec_prefix"
7563 exec_prefix
="$acl_final_exec_prefix"
7565 eval additional_includedir
=\"$includedir\"
7566 eval additional_libdir
=\"$libdir\"
7568 exec_prefix
="$acl_save_exec_prefix"
7569 prefix
="$acl_save_prefix"
7571 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
7572 if test "${with_libintl_prefix+set}" = set; then
7573 withval
="$with_libintl_prefix"
7575 if test "X$withval" = "Xno"; then
7578 if test "X$withval" = "X"; then
7580 acl_save_prefix
="$prefix"
7581 prefix
="$acl_final_prefix"
7582 acl_save_exec_prefix
="$exec_prefix"
7583 exec_prefix
="$acl_final_exec_prefix"
7585 eval additional_includedir
=\"$includedir\"
7586 eval additional_libdir
=\"$libdir\"
7588 exec_prefix
="$acl_save_exec_prefix"
7589 prefix
="$acl_save_prefix"
7592 additional_includedir
="$withval/include"
7593 additional_libdir
="$withval/lib"
7603 names_already_handled
=
7604 names_next_round
='intl '
7605 while test -n "$names_next_round"; do
7606 names_this_round
="$names_next_round"
7608 for name
in $names_this_round; do
7610 for n
in $names_already_handled; do
7611 if test "$n" = "$name"; then
7616 if test -z "$already_handled"; then
7617 names_already_handled
="$names_already_handled $name"
7618 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7619 eval value
=\"\
$HAVE_LIB$uppername\"
7620 if test -n "$value"; then
7621 if test "$value" = yes; then
7622 eval value
=\"\
$LIB$uppername\"
7623 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
7624 eval value
=\"\
$LTLIB$uppername\"
7625 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
7634 if test $use_additional = yes; then
7635 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7636 found_dir
="$additional_libdir"
7637 found_so
="$additional_libdir/lib$name.$shlibext"
7638 if test -f "$additional_libdir/lib$name.la"; then
7639 found_la
="$additional_libdir/lib$name.la"
7642 if test -f "$additional_libdir/lib$name.$libext"; then
7643 found_dir
="$additional_libdir"
7644 found_a
="$additional_libdir/lib$name.$libext"
7645 if test -f "$additional_libdir/lib$name.la"; then
7646 found_la
="$additional_libdir/lib$name.la"
7651 if test "X$found_dir" = "X"; then
7652 for x
in $LDFLAGS $LTLIBINTL; do
7654 acl_save_prefix
="$prefix"
7655 prefix
="$acl_final_prefix"
7656 acl_save_exec_prefix
="$exec_prefix"
7657 exec_prefix
="$acl_final_exec_prefix"
7659 exec_prefix
="$acl_save_exec_prefix"
7660 prefix
="$acl_save_prefix"
7664 dir
=`echo "X$x" | sed -e 's/^X-L//'`
7665 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7667 found_so
="$dir/lib$name.$shlibext"
7668 if test -f "$dir/lib$name.la"; then
7669 found_la
="$dir/lib$name.la"
7672 if test -f "$dir/lib$name.$libext"; then
7674 found_a
="$dir/lib$name.$libext"
7675 if test -f "$dir/lib$name.la"; then
7676 found_la
="$dir/lib$name.la"
7682 if test "X$found_dir" != "X"; then
7687 if test "X$found_dir" != "X"; then
7688 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7689 if test "X$found_so" != "X"; then
7690 if test "X$found_dir" = "X/usr/lib"; then
7691 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
7694 for x
in $ltrpathdirs; do
7695 if test "X$x" = "X$found_dir"; then
7700 if test -z "$haveit"; then
7701 ltrpathdirs
="$ltrpathdirs $found_dir"
7703 if test "$hardcode_direct" = yes; then
7704 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
7706 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
7707 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
7709 for x
in $rpathdirs; do
7710 if test "X$x" = "X$found_dir"; then
7715 if test -z "$haveit"; then
7716 rpathdirs
="$rpathdirs $found_dir"
7720 for x
in $LDFLAGS $LIBINTL; do
7722 acl_save_prefix
="$prefix"
7723 prefix
="$acl_final_prefix"
7724 acl_save_exec_prefix
="$exec_prefix"
7725 exec_prefix
="$acl_final_exec_prefix"
7727 exec_prefix
="$acl_save_exec_prefix"
7728 prefix
="$acl_save_prefix"
7730 if test "X$x" = "X-L$found_dir"; then
7735 if test -z "$haveit"; then
7736 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7738 if test "$hardcode_minus_L" != no
; then
7739 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
7741 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
7747 if test "X$found_a" != "X"; then
7748 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
7750 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7753 additional_includedir
=
7754 case "$found_dir" in
7756 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7757 additional_includedir
="$basedir/include"
7760 if test "X$additional_includedir" != "X"; then
7761 if test "X$additional_includedir" != "X/usr/include"; then
7763 if test "X$additional_includedir" = "X/usr/local/include"; then
7764 if test -n "$GCC"; then
7766 linux
*) haveit
=yes;;
7770 if test -z "$haveit"; then
7771 for x
in $CPPFLAGS $INCINTL; do
7773 acl_save_prefix
="$prefix"
7774 prefix
="$acl_final_prefix"
7775 acl_save_exec_prefix
="$exec_prefix"
7776 exec_prefix
="$acl_final_exec_prefix"
7778 exec_prefix
="$acl_save_exec_prefix"
7779 prefix
="$acl_save_prefix"
7781 if test "X$x" = "X-I$additional_includedir"; then
7786 if test -z "$haveit"; then
7787 if test -d "$additional_includedir"; then
7788 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7794 if test -n "$found_la"; then
7795 save_libdir
="$libdir"
7797 */* |
*\\*) .
"$found_la" ;;
7798 *) .
"./$found_la" ;;
7800 libdir
="$save_libdir"
7801 for dep
in $dependency_libs; do
7804 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
7805 if test "X$additional_libdir" != "X/usr/lib"; then
7807 if test "X$additional_libdir" = "X/usr/local/lib"; then
7808 if test -n "$GCC"; then
7810 linux
*) haveit
=yes;;
7814 if test -z "$haveit"; then
7816 for x
in $LDFLAGS $LIBINTL; do
7818 acl_save_prefix
="$prefix"
7819 prefix
="$acl_final_prefix"
7820 acl_save_exec_prefix
="$exec_prefix"
7821 exec_prefix
="$acl_final_exec_prefix"
7823 exec_prefix
="$acl_save_exec_prefix"
7824 prefix
="$acl_save_prefix"
7826 if test "X$x" = "X-L$additional_libdir"; then
7831 if test -z "$haveit"; then
7832 if test -d "$additional_libdir"; then
7833 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7837 for x
in $LDFLAGS $LTLIBINTL; do
7839 acl_save_prefix
="$prefix"
7840 prefix
="$acl_final_prefix"
7841 acl_save_exec_prefix
="$exec_prefix"
7842 exec_prefix
="$acl_final_exec_prefix"
7844 exec_prefix
="$acl_save_exec_prefix"
7845 prefix
="$acl_save_prefix"
7847 if test "X$x" = "X-L$additional_libdir"; then
7852 if test -z "$haveit"; then
7853 if test -d "$additional_libdir"; then
7854 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7861 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7864 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7867 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
7868 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7874 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
7875 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7881 if test "X$rpathdirs" != "X"; then
7882 if test -n "$hardcode_libdir_separator"; then
7884 for found_dir
in $rpathdirs; do
7885 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7887 acl_save_libdir
="$libdir"
7889 eval flag
=\"$hardcode_libdir_flag_spec\"
7890 libdir
="$acl_save_libdir"
7891 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
7893 for found_dir
in $rpathdirs; do
7894 acl_save_libdir
="$libdir"
7896 eval flag
=\"$hardcode_libdir_flag_spec\"
7897 libdir
="$acl_save_libdir"
7898 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
7902 if test "X$ltrpathdirs" != "X"; then
7903 for found_dir
in $ltrpathdirs; do
7904 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7908 echo "$as_me:7908: checking for GNU gettext in libintl" >&5
7909 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
7910 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7911 echo $ECHO_N "(cached) $ECHO_C" >&6
7913 gt_save_CPPFLAGS
="$CPPFLAGS"
7914 CPPFLAGS
="$CPPFLAGS $INCINTL"
7915 gt_save_LIBS
="$LIBS"
7916 LIBS
="$LIBS $LIBINTL"
7917 cat >conftest.
$ac_ext <<_ACEOF
7918 #line 7918 "configure"
7919 #include "confdefs.h"
7920 #include <libintl.h>
7921 extern int _nl_msg_cat_cntr;
7925 bindtextdomain ("", "");
7926 return (int) gettext ("") + _nl_msg_cat_cntr
7931 rm -f conftest.
$ac_objext conftest
$ac_exeext
7932 if { (eval echo "$as_me:7932: \"$ac_link\"") >&5
7933 (eval $ac_link) 2>&5
7935 echo "$as_me:7935: \$? = $ac_status" >&5
7936 (exit $ac_status); } &&
7937 { ac_try
='test -s conftest$ac_exeext'
7938 { (eval echo "$as_me:7938: \"$ac_try\"") >&5
7941 echo "$as_me:7941: \$? = $ac_status" >&5
7942 (exit $ac_status); }; }; then
7943 gt_cv_func_gnugettext1_libintl
=yes
7945 echo "$as_me: failed program was:" >&5
7946 cat conftest.
$ac_ext >&5
7947 gt_cv_func_gnugettext1_libintl
=no
7949 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7950 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7951 LIBS
="$LIBS $LIBICONV"
7952 cat >conftest.
$ac_ext <<_ACEOF
7953 #line 7953 "configure"
7954 #include "confdefs.h"
7955 #include <libintl.h>
7956 extern int _nl_msg_cat_cntr;
7960 bindtextdomain ("", "");
7961 return (int) gettext ("") + _nl_msg_cat_cntr
7966 rm -f conftest.
$ac_objext conftest
$ac_exeext
7967 if { (eval echo "$as_me:7967: \"$ac_link\"") >&5
7968 (eval $ac_link) 2>&5
7970 echo "$as_me:7970: \$? = $ac_status" >&5
7971 (exit $ac_status); } &&
7972 { ac_try
='test -s conftest$ac_exeext'
7973 { (eval echo "$as_me:7973: \"$ac_try\"") >&5
7976 echo "$as_me:7976: \$? = $ac_status" >&5
7977 (exit $ac_status); }; }; then
7978 LIBINTL
="$LIBINTL $LIBICONV"
7979 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
7980 gt_cv_func_gnugettext1_libintl
=yes
7983 echo "$as_me: failed program was:" >&5
7984 cat conftest.
$ac_ext >&5
7986 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7988 CPPFLAGS
="$gt_save_CPPFLAGS"
7989 LIBS
="$gt_save_LIBS"
7991 echo "$as_me:7991: result: $gt_cv_func_gnugettext1_libintl" >&5
7992 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
7995 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7996 ||
{ test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7997 && test "$PACKAGE" != gettext; }; then
7998 gt_use_preinstalled_gnugettext
=yes
8001 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
8002 nls_cv_use_gnu_gettext
=yes
8006 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8007 INTLOBJS
="\$(GETTOBJS)"
8008 BUILD_INCLUDED_LIBINTL
=yes
8009 USE_INCLUDED_LIBINTL
=yes
8010 LIBINTL
="\${top_builddir}/intl/libintl.a $LIBICONV"
8011 LTLIBINTL
="\${top_builddir}/intl/libintl.a $LTLIBICONV"
8012 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
8015 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8016 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
8020 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8021 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
8023 cat >>confdefs.h
<<\EOF
8024 #define ENABLE_NLS 1
8032 if test "$USE_NLS" = "yes"; then
8034 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8035 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
8036 echo "$as_me:8036: checking how to link with libintl" >&5
8037 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
8038 echo "$as_me:8038: result: $LIBINTL" >&5
8039 echo "${ECHO_T}$LIBINTL" >&6
8041 for element
in $INCINTL; do
8043 for x
in $CPPFLAGS; do
8045 acl_save_prefix
="$prefix"
8046 prefix
="$acl_final_prefix"
8047 acl_save_exec_prefix
="$exec_prefix"
8048 exec_prefix
="$acl_final_exec_prefix"
8050 exec_prefix
="$acl_save_exec_prefix"
8051 prefix
="$acl_save_prefix"
8053 if test "X$x" = "X$element"; then
8058 if test -z "$haveit"; then
8059 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8065 cat >>confdefs.h
<<\EOF
8066 #define HAVE_GETTEXT 1
8069 cat >>confdefs.h
<<\EOF
8070 #define HAVE_DCGETTEXT 1
8078 if test "$PACKAGE" = gettext; then
8079 BUILD_INCLUDED_LIBINTL
=yes
8083 nls_cv_header_libgt
=
8091 INTL_LIBTOOL_SUFFIX_PREFIX
=
8095 LDFLAGS
="$LDFLAGS $INTLLIBS"
8096 CFLAGS
="$CFLAGS -I../intl"
8098 ac_config_files
="$ac_config_files Makefile lib/Makefile intl/Makefile po/Makefile.in tools/Makefile src/Makefile gliv.list gliv.spec"
8099 cat >confcache
<<\_ACEOF
8100 # This file is a shell script that caches the results of configure
8101 # tests run on this system so they can be shared between configure
8102 # scripts and configure runs, see configure's option --config-cache.
8103 # It is not useful on other systems. If it contains results you don't
8104 # want to keep, you may remove or edit it.
8106 # config.status only pays attention to the cache file if you give it
8107 # the --recheck option to rerun configure.
8109 # `ac_cv_env_foo' variables (set or unset) will be overriden when
8110 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8115 # The following way of writing the cache mishandles newlines in values,
8116 # but we know of no workaround that is simple, portable, and efficient.
8117 # So, don't put newlines in cache variables' values.
8118 # Ultrix sh set writes to stderr and can't be redirected directly,
8119 # and sets the high bit in the cache file unless we assign to the vars.
8122 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8124 # `set' does not quote correctly, so add quotes (double-quote
8125 # substitution turns \\\\ into \\, and sed turns \\ into \).
8128 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8131 # `set' quotes correctly as required by POSIX, so do not add quotes.
8133 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8140 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8142 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8144 if cmp -s $cache_file confcache
; then :; else
8145 if test -w $cache_file; then
8146 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8147 cat confcache
>$cache_file
8149 echo "not updating unwritable cache $cache_file"
8154 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8155 # Let make expand exec_prefix.
8156 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8158 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8159 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8160 # trailing colons and then remove the whole line if VPATH becomes empty
8161 # (actually we leave an empty line to preserve line numbers).
8162 if test "x$srcdir" = x.
; then
8163 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
8164 s/:*\$(srcdir):*/:/;
8165 s/:*\${srcdir}:*/:/;
8167 s/^\([^=]*=[ ]*\):*/\1/;
8173 DEFS
=-DHAVE_CONFIG_H
8175 : ${CONFIG_STATUS=./config.status}
8176 ac_clean_files_save
=$ac_clean_files
8177 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8178 { echo "$as_me:8178: creating $CONFIG_STATUS" >&5
8179 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8180 cat >$CONFIG_STATUS <<_ACEOF
8182 # Generated automatically by configure.
8183 # Run this file to recreate the current configuration.
8184 # Compiler output produced by configure, useful for debugging
8185 # configure, is in config.log if it exists.
8188 SHELL=\${CONFIG_SHELL-$SHELL}
8189 ac_cs_invocation="\$0 \$@"
8193 cat >>$CONFIG_STATUS <<\_ACEOF
8194 # Be Bourne compatible
8195 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
8198 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
8202 # Name of the executable.
8203 as_me
=`echo "$0" |sed 's,.*[\\/],,'`
8205 if expr a
: '\(a\)' >/dev
/null
2>&1; then
8211 rm -f conf$$ conf$$.exe conf$$.
file
8213 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8214 # We could just check for DJGPP; but this test a) works b) is more generic
8215 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8216 if test -f conf$$.exe
; then
8217 # Don't use ln at all; we don't have any links
8222 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8227 rm -f conf$$ conf$$.exe conf$$.
file
8229 as_executable_p
="test -f"
8231 # Support unset when possible.
8232 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
8239 $as_unset LANG ||
test "${LANG+set}" != set ||
{ LANG
=C
; export LANG
; }
8240 $as_unset LC_ALL ||
test "${LC_ALL+set}" != set ||
{ LC_ALL
=C
; export LC_ALL
; }
8241 $as_unset LC_TIME ||
test "${LC_TIME+set}" != set ||
{ LC_TIME
=C
; export LC_TIME
; }
8242 $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set ||
{ LC_CTYPE
=C
; export LC_CTYPE
; }
8243 $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set ||
{ LANGUAGE
=C
; export LANGUAGE
; }
8244 $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set ||
{ LC_COLLATE
=C
; export LC_COLLATE
; }
8245 $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set ||
{ LC_NUMERIC
=C
; export LC_NUMERIC
; }
8246 $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set ||
{ LC_MESSAGES
=C
; export LC_MESSAGES
; }
8249 # We need space, tab and new line, in precisely that order.
8255 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=:; export CDPATH
; }
8261 # Files that config.status was made for.
8262 if test -n "$ac_config_files"; then
8263 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8266 if test -n "$ac_config_headers"; then
8267 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8270 if test -n "$ac_config_links"; then
8271 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8274 if test -n "$ac_config_commands"; then
8275 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8278 cat >>$CONFIG_STATUS <<\EOF
8281 \`$as_me' instantiates files from templates according to the
8282 current configuration.
8284 Usage: $0 [OPTIONS] [FILE]...
8286 -h, --help print this help, then exit
8287 -V, --version print version number, then exit
8288 -d, --debug don't remove temporary files
8289 --recheck update $as_me by reconfiguring in the same conditions
8290 --file=FILE[:TEMPLATE]
8291 instantiate the configuration file FILE
8292 --header=FILE[:TEMPLATE]
8293 instantiate the configuration header FILE
8295 Configuration files:
8298 Configuration headers:
8301 Configuration commands:
8304 Report bugs to <bug-autoconf@gnu.org>."
8307 cat >>$CONFIG_STATUS <<EOF
8310 configured by $0, generated by GNU Autoconf 2.52,
8311 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8313 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8314 Free Software Foundation, Inc.
8315 This config.status script is free software; the Free Software Foundation
8316 gives unlimited permission to copy, distribute and modify it."
8321 cat >>$CONFIG_STATUS <<\EOF
8322 # If no file are specified by the user, then we need to provide default
8323 # value. By we need to know if files were specified by the user.
8329 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
8330 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
8332 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
8336 *) # This is not an option, so the user has probably given explicit
8338 ac_need_defaults
=false
;;
8342 # Handling of the options.
8344 cat >>$CONFIG_STATUS <<EOF
8345 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8346 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
8347 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
8349 cat >>$CONFIG_STATUS <<\EOF
8350 --version |
--vers* |
-V )
8351 echo "$ac_cs_version"; exit 0 ;;
8353 # Conflict between --help and --header
8354 { { echo "$as_me:8354: error: ambiguous option: $1
8355 Try \`$0 --help' for more information." >&5
8356 echo "$as_me: error: ambiguous option: $1
8357 Try \`$0 --help' for more information." >&2;}
8358 { (exit 1); exit 1; }; };;
8359 --help |
--hel |
-h )
8360 echo "$ac_cs_usage"; exit 0 ;;
8361 --debug |
--d* |
-d )
8363 --file |
--fil |
--fi |
--f )
8365 CONFIG_FILES
="$CONFIG_FILES $1"
8366 ac_need_defaults
=false
;;
8367 --header |
--heade |
--head |
--hea )
8369 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
8370 ac_need_defaults
=false
;;
8373 -*) { { echo "$as_me:8373: error: unrecognized option: $1
8374 Try \`$0 --help' for more information." >&5
8375 echo "$as_me: error: unrecognized option: $1
8376 Try \`$0 --help' for more information." >&2;}
8377 { (exit 1); exit 1; }; } ;;
8379 *) ac_config_targets
="$ac_config_targets $1" ;;
8388 ## ----------------------- ##
8389 ## Running config.status. ##
8390 ## ----------------------- ##
8392 This file was extended by $as_me 2.52, executed with
8393 CONFIG_FILES = $CONFIG_FILES
8394 CONFIG_HEADERS = $CONFIG_HEADERS
8395 CONFIG_LINKS = $CONFIG_LINKS
8396 CONFIG_COMMANDS = $CONFIG_COMMANDS
8398 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8403 cat >>$CONFIG_STATUS <<EOF
8405 # INIT-COMMANDS section.
8408 AMDEP_TRUE="$AMDEP_TRUE"
8409 ac_aux_dir="$ac_aux_dir"
8410 # Capture the value of obsolete $ALL_LINGUAS because we need it to compute
8411 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
8413 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
8414 # Capture the value of LINGUAS because we need it to compute CATALOGS.
8415 LINGUAS="${LINGUAS-%UNSET%}"
8419 cat >>$CONFIG_STATUS <<\EOF
8420 for ac_config_target
in $ac_config_targets
8422 case "$ac_config_target" in
8423 # Handling of arguments.
8424 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8425 "lib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
8426 "intl/Makefile" ) CONFIG_FILES
="$CONFIG_FILES intl/Makefile" ;;
8427 "po/Makefile.in" ) CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
8428 "tools/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tools/Makefile" ;;
8429 "src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
8430 "gliv.list" ) CONFIG_FILES
="$CONFIG_FILES gliv.list" ;;
8431 "gliv.spec" ) CONFIG_FILES
="$CONFIG_FILES gliv.spec" ;;
8432 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
8433 "default-2" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-2" ;;
8434 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
8435 *) { { echo "$as_me:8435: error: invalid argument: $ac_config_target" >&5
8436 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8437 { (exit 1); exit 1; }; };;
8441 # If the user did not use the arguments to specify the items to instantiate,
8442 # then the envvar interface is used. Set only those that are not.
8443 # We use the long form for the default assignment because of an extremely
8444 # bizarre bug on SunOS 4.1.3.
8445 if $ac_need_defaults; then
8446 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8447 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8448 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8451 # Create a temporary directory, and hook for its removal unless debugging.
8454 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8455 trap '{ (exit 1); exit 1; }' 1 2 13 15
8458 # Create a (secure) tmp directory for tmp files.
8461 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
8462 test -n "$tmp" && test -d "$tmp"
8465 tmp
=$TMPDIR/cs$$
-$RANDOM
8466 (umask 077 && mkdir
$tmp)
8469 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
8470 { (exit 1); exit 1; }
8475 cat >>$CONFIG_STATUS <<EOF
8478 # CONFIG_FILES section.
8481 # No need to generate the scripts if there are no CONFIG_FILES.
8482 # This happens for instance when ./config.status config.h
8483 if test -n "\$CONFIG_FILES"; then
8484 # Protect against being on the right side of a sed subst in config.status.
8485 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8486 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8487 s,@SHELL@,$SHELL,;t t
8488 s,@exec_prefix@,$exec_prefix,;t t
8489 s,@prefix@,$prefix,;t t
8490 s,@program_transform_name@,$program_transform_name,;t t
8491 s,@bindir@,$bindir,;t t
8492 s,@sbindir@,$sbindir,;t t
8493 s,@libexecdir@,$libexecdir,;t t
8494 s,@datadir@,$datadir,;t t
8495 s,@sysconfdir@,$sysconfdir,;t t
8496 s,@sharedstatedir@,$sharedstatedir,;t t
8497 s,@localstatedir@,$localstatedir,;t t
8498 s,@libdir@,$libdir,;t t
8499 s,@includedir@,$includedir,;t t
8500 s,@oldincludedir@,$oldincludedir,;t t
8501 s,@infodir@,$infodir,;t t
8502 s,@mandir@,$mandir,;t t
8503 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8504 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8505 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8506 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8507 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8508 s,@build_alias@,$build_alias,;t t
8509 s,@host_alias@,$host_alias,;t t
8510 s,@target_alias@,$target_alias,;t t
8511 s,@ECHO_C@,$ECHO_C,;t t
8512 s,@ECHO_N@,$ECHO_N,;t t
8513 s,@ECHO_T@,$ECHO_T,;t t
8514 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8517 s,@build@,$build,;t t
8518 s,@build_cpu@,$build_cpu,;t t
8519 s,@build_vendor@,$build_vendor,;t t
8520 s,@build_os@,$build_os,;t t
8522 s,@host_cpu@,$host_cpu,;t t
8523 s,@host_vendor@,$host_vendor,;t t
8524 s,@host_os@,$host_os,;t t
8525 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8526 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8527 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8528 s,@PACKAGE@,$PACKAGE,;t t
8529 s,@VERSION@,$VERSION,;t t
8530 s,@EXEEXT@,$EXEEXT,;t t
8531 s,@OBJEXT@,$OBJEXT,;t t
8532 s,@ACLOCAL@,$ACLOCAL,;t t
8533 s,@AUTOCONF@,$AUTOCONF,;t t
8534 s,@AUTOMAKE@,$AUTOMAKE,;t t
8535 s,@AUTOHEADER@,$AUTOHEADER,;t t
8536 s,@MAKEINFO@,$MAKEINFO,;t t
8537 s,@AMTAR@,$AMTAR,;t t
8538 s,@install_sh@,$install_sh,;t t
8539 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
8541 s,@SET_MAKE@,$SET_MAKE,;t t
8542 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
8543 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
8544 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
8545 s,@DEPDIR@,$DEPDIR,;t t
8547 s,@CFLAGS@,$CFLAGS,;t t
8548 s,@LDFLAGS@,$LDFLAGS,;t t
8549 s,@CPPFLAGS@,$CPPFLAGS,;t t
8550 s,@ac_ct_CC@,$ac_ct_CC,;t t
8551 s,@am__include@,$am__include,;t t
8552 s,@am__quote@,$am__quote,;t t
8553 s,@CCDEPMODE@,$CCDEPMODE,;t t
8554 s,@RANLIB@,$RANLIB,;t t
8555 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8556 s,@FTW_TRUE@,$FTW_TRUE,;t t
8557 s,@FTW_FALSE@,$FTW_FALSE,;t t
8558 s,@GETLINE_TRUE@,$GETLINE_TRUE,;t t
8559 s,@GETLINE_FALSE@,$GETLINE_FALSE,;t t
8560 s,@BSEARCH_TRUE@,$BSEARCH_TRUE,;t t
8561 s,@BSEARCH_FALSE@,$BSEARCH_FALSE,;t t
8562 s,@GETOPT_LONG_TRUE@,$GETOPT_LONG_TRUE,;t t
8563 s,@GETOPT_LONG_FALSE@,$GETOPT_LONG_FALSE,;t t
8564 s,@NEED_REPLACEMENTS_TRUE@,$NEED_REPLACEMENTS_TRUE,;t t
8565 s,@NEED_REPLACEMENTS_FALSE@,$NEED_REPLACEMENTS_FALSE,;t t
8567 s,@X_CFLAGS@,$X_CFLAGS,;t t
8568 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
8569 s,@X_LIBS@,$X_LIBS,;t t
8570 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
8571 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
8572 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
8573 s,@GTK_LIBS@,$GTK_LIBS,;t t
8574 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
8575 s,@GTK2_TRUE@,$GTK2_TRUE,;t t
8576 s,@GTK2_FALSE@,$GTK2_FALSE,;t t
8577 s,@GDK_PIXBUF_CONFIG@,$GDK_PIXBUF_CONFIG,;t t
8578 s,@GDK_PIXBUF_CFLAGS@,$GDK_PIXBUF_CFLAGS,;t t
8579 s,@GDK_PIXBUF_LIBS@,$GDK_PIXBUF_LIBS,;t t
8580 s,@GTKGL_CFLAGS@,$GTKGL_CFLAGS,;t t
8581 s,@GTKGL_LIBS@,$GTKGL_LIBS,;t t
8582 s,@MAGICK_CONFIG@,$MAGICK_CONFIG,;t t
8583 s,@HAVE_MAGICK_TRUE@,$HAVE_MAGICK_TRUE,;t t
8584 s,@HAVE_MAGICK_FALSE@,$HAVE_MAGICK_FALSE,;t t
8585 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
8586 s,@MSGFMT@,$MSGFMT,;t t
8587 s,@GMSGFMT@,$GMSGFMT,;t t
8588 s,@XGETTEXT@,$XGETTEXT,;t t
8589 s,@MSGMERGE@,$MSGMERGE,;t t
8590 s,@ALLOCA@,$ALLOCA,;t t
8591 s,@GLIBC21@,$GLIBC21,;t t
8592 s,@LIBICONV@,$LIBICONV,;t t
8593 s,@LTLIBICONV@,$LTLIBICONV,;t t
8594 s,@INTLBISON@,$INTLBISON,;t t
8595 s,@USE_NLS@,$USE_NLS,;t t
8596 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
8597 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
8598 s,@CATOBJEXT@,$CATOBJEXT,;t t
8599 s,@INTLOBJS@,$INTLOBJS,;t t
8600 s,@DATADIRNAME@,$DATADIRNAME,;t t
8601 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
8602 s,@GENCAT@,$GENCAT,;t t
8603 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
8604 s,@INTLLIBS@,$INTLLIBS,;t t
8605 s,@LIBINTL@,$LIBINTL,;t t
8606 s,@LTLIBINTL@,$LTLIBINTL,;t t
8607 s,@POSUB@,$POSUB,;t t
8612 cat >>$CONFIG_STATUS <<\EOF
8613 # Split the substitutions into bite-sized pieces for seds with
8614 # small command number limits, like on Digital OSF/1 and HP-UX.
8616 ac_sed_frag
=1 # Number of current file.
8617 ac_beg
=1 # First line for current file.
8618 ac_end
=$ac_max_sed_lines # Line after last line for current file.
8621 while $ac_more_lines; do
8622 if test $ac_beg -gt 1; then
8623 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
8625 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
8627 if test ! -s $tmp/subs.frag
; then
8630 # The purpose of the label and of the branching condition is to
8631 # speed up the sed processing (if there are no `@' at all, there
8632 # is no need to browse any of the substitutions).
8633 # These are the two extra sed commands mentioned above.
8635 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
8636 if test -z "$ac_sed_cmds"; then
8637 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
8639 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8641 ac_sed_frag
=`expr $ac_sed_frag + 1`
8643 ac_end
=`expr $ac_end + $ac_max_sed_lines`
8646 if test -z "$ac_sed_cmds"; then
8649 fi # test -n "$CONFIG_FILES"
8652 cat >>$CONFIG_STATUS <<\EOF
8653 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
8654 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8656 - |
*:- |
*:-:* ) # input from stdin
8658 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8659 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8660 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8661 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8662 * ) ac_file_in
=$ac_file.
in ;;
8665 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8666 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8667 X"$ac_file" : 'X\(//\)[^/]' \| \
8668 X"$ac_file" : 'X\(//\)$' \| \
8669 X"$ac_file" : 'X\(/\)' \| \
8670 . : '\(.\)' 2>/dev/null ||
8672 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8673 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8674 /^X\(\/\/\)$/{ s//\1/; q; }
8675 /^X\(\/\).*/{ s//\1/; q; }
8677 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
8679 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
8683 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8684 case $as_mkdir_dir in
8685 # Skip DOS drivespec
8686 ?
:) as_incr_dir
=$as_mkdir_dir ;;
8688 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
8689 test -d "$as_incr_dir" || mkdir
"$as_incr_dir"
8694 ac_dir_suffix
="/`echo $ac_dir|sed 's,^\./,,'`"
8695 # A "../" for each directory in $ac_dir_suffix.
8696 ac_dots
=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
8698 ac_dir_suffix
= ac_dots
=
8703 if test -z "$ac_dots"; then
8706 ac_top_srcdir
=`echo $ac_dots | sed 's,/$,,'`
8709 ac_srcdir
=$srcdir$ac_dir_suffix;
8710 ac_top_srcdir
=$srcdir ;;
8712 ac_srcdir
=$ac_dots$srcdir$ac_dir_suffix
8713 ac_top_srcdir
=$ac_dots$srcdir ;;
8717 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8718 *) ac_INSTALL
=$ac_dots$INSTALL ;;
8721 if test x
"$ac_file" != x-
; then
8722 { echo "$as_me:8722: creating $ac_file" >&5
8723 echo "$as_me: creating $ac_file" >&6;}
8726 # Let's still pretend it is `configure' which instantiates (i.e., don't
8727 # use $as_me), people would be surprised to read:
8728 # /* config.h. Generated automatically by config.status. */
8729 configure_input
="Generated automatically from `echo $ac_file_in |
8730 sed 's,.*/,,'` by configure."
8732 # First look for the input files in the build tree, otherwise in the
8734 ac_file_inputs
=`IFS=:
8735 for f in $ac_file_in; do
8737 -) echo $tmp/stdin ;;
8739 # Absolute (can't be DOS-style, as IFS=:)
8740 test -f "$f" || { { echo "$as_me:8740: error: cannot find input file: $f" >&5
8741 echo "$as_me: error: cannot find input file: $f" >&2;}
8742 { (exit 1); exit 1; }; }
8745 if test -f "$f"; then
8748 elif test -f "$srcdir/$f"; then
8753 { { echo "$as_me:8753: error: cannot find input file: $f" >&5
8754 echo "$as_me: error: cannot find input file: $f" >&2;}
8755 { (exit 1); exit 1; }; }
8758 done` ||
{ (exit 1); exit 1; }
8760 cat >>$CONFIG_STATUS <<EOF
8764 cat >>$CONFIG_STATUS <<\EOF
8766 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8767 s
,@configure_input@
,$configure_input,;t t
8768 s
,@srcdir@
,$ac_srcdir,;t t
8769 s
,@top_srcdir@
,$ac_top_srcdir,;t t
8770 s
,@INSTALL@
,$ac_INSTALL,;t t
8771 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8773 if test x"$ac_file" != x-; then
8774 mv $tmp/out $ac_file
8782 cat >>$CONFIG_STATUS <<\EOF
8785 # CONFIG_HEADER section.
8788 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
8789 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8791 # ac_d sets the value in "#define NAME VALUE" lines.
8792 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8793 ac_dB
='[ ].*$,\1#\2'
8796 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8797 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8798 ac_uB
='$,\1#\2define\3'
8802 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
8803 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8805 - |
*:- |
*:-:* ) # input from stdin
8807 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8808 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8809 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8810 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8811 * ) ac_file_in
=$ac_file.
in ;;
8814 test x
"$ac_file" != x-
&& { echo "$as_me:8814: creating $ac_file" >&5
8815 echo "$as_me: creating $ac_file" >&6;}
8817 # First look for the input files in the build tree, otherwise in the
8819 ac_file_inputs
=`IFS=:
8820 for f in $ac_file_in; do
8822 -) echo $tmp/stdin ;;
8824 # Absolute (can't be DOS-style, as IFS=:)
8825 test -f "$f" || { { echo "$as_me:8825: error: cannot find input file: $f" >&5
8826 echo "$as_me: error: cannot find input file: $f" >&2;}
8827 { (exit 1); exit 1; }; }
8830 if test -f "$f"; then
8833 elif test -f "$srcdir/$f"; then
8838 { { echo "$as_me:8838: error: cannot find input file: $f" >&5
8839 echo "$as_me: error: cannot find input file: $f" >&2;}
8840 { (exit 1); exit 1; }; }
8843 done` ||
{ (exit 1); exit 1; }
8844 # Remove the trailing spaces.
8845 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8849 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8850 # `conftest.undefs', that substitutes the proper values into
8851 # config.h.in to produce config.h. The first handles `#define'
8852 # templates, and the second `#undef' templates.
8853 # And first: Protect against being on the right side of a sed subst in
8854 # config.status. Protect against being in an unquoted here document
8856 rm -f conftest.defines conftest.undefs
8857 # Using a here document instead of a string reduces the quoting nightmare.
8858 # Putting comments in sed scripts is not portable.
8860 # `end' is used to avoid that the second main sed command (meant for
8861 # 0-ary CPP macros) applies to n-ary macro definitions.
8862 # See the Autoconf documentation for `clear'.
8863 cat >confdef2sed.
sed <<\EOF
8868 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
8870 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8873 # If some macros were called several times there might be several times
8874 # the same #defines, which is useless. Nevertheless, we may not want to
8875 # sort them, since we want the *last* AC-DEFINE to be honored.
8876 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8877 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8878 rm -f confdef2sed.sed
8880 # This sed command replaces #undef with comments. This is necessary, for
8881 # example, in the case of _POSIX_SOURCE, which is predefined and required
8882 # on some systems where configure will not decide to define it.
8883 cat >>conftest.undefs <<\EOF
8884 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8887 # Break up conftest.defines because some shells have a limit on the size
8888 # of here documents, and old seds have small limits too (100 cmds).
8889 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8890 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8891 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8892 echo ' :' >>$CONFIG_STATUS
8894 while grep . conftest.defines >/dev/null
8896 # Write a limited-size here document to $tmp/defines.sed.
8897 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8898 # Speed up: don't consider the non `#define' lines.
8899 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8900 # Work around the forget-to-reset-the-flag bug.
8901 echo 't clr' >>$CONFIG_STATUS
8902 echo ': clr' >>$CONFIG_STATUS
8903 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
8905 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8909 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
8910 rm -f conftest.defines
8911 mv conftest.
tail conftest.defines
8913 rm -f conftest.defines
8914 echo ' fi # egrep' >>$CONFIG_STATUS
8915 echo >>$CONFIG_STATUS
8917 # Break up conftest.undefs because some shells have a limit on the size
8918 # of here documents, and old seds have small limits too (100 cmds).
8919 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8921 while grep . conftest.undefs
>/dev
/null
8923 # Write a limited-size here document to $tmp/undefs.sed.
8924 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8925 # Speed up: don't consider the non
`#undef'
8926 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8927 # Work around the forget-to-reset-the-flag bug.
8928 echo 't clr' >>$CONFIG_STATUS
8929 echo ': clr' >>$CONFIG_STATUS
8930 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8932 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8936 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8937 rm -f conftest.undefs
8938 mv conftest.tail conftest.undefs
8940 rm -f conftest.undefs
8942 cat >>$CONFIG_STATUS <<\EOF
8943 # Let's still pretend it is `configure
' which instantiates (i.e., don't
8944 # use $as_me), people would be surprised to read:
8945 # /* config.h. Generated automatically by config.status. */
8946 if test x
"$ac_file" = x-
; then
8947 echo "/* Generated automatically by configure. */" >$tmp/config.h
8949 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
8951 cat $tmp/in >>$tmp/config.h
8953 if test x
"$ac_file" != x-
; then
8954 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
8955 { echo "$as_me:8955: $ac_file is unchanged" >&5
8956 echo "$as_me: $ac_file is unchanged" >&6;}
8958 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8959 X"$ac_file" : 'X\(//\)[^/]' \| \
8960 X"$ac_file" : 'X\(//\)$' \| \
8961 X"$ac_file" : 'X\(/\)' \| \
8962 . : '\(.\)' 2>/dev/null ||
8964 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8965 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8966 /^X\(\/\/\)$/{ s//\1/; q; }
8967 /^X\(\/\).*/{ s//\1/; q; }
8969 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
8971 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
8975 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8976 case $as_mkdir_dir in
8977 # Skip DOS drivespec
8978 ?
:) as_incr_dir
=$as_mkdir_dir ;;
8980 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
8981 test -d "$as_incr_dir" || mkdir
"$as_incr_dir"
8988 mv $tmp/config.h
$ac_file
8994 # Run the commands associated with the file.
8996 config.h
) # update the timestamp
8997 echo timestamp
>"./stamp-h1"
9002 cat >>$CONFIG_STATUS <<\EOF
9005 # CONFIG_COMMANDS section.
9007 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
9008 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
9009 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9013 test x
"$AMDEP_TRUE" != x
"" ||
9014 for mf
in $CONFIG_FILES; do
9016 Makefile
) dirpart
=.
;;
9017 */Makefile
) dirpart
=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
9020 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev
/null ||
continue
9021 # Extract the definition of DEP_FILES from the Makefile without
9023 DEPDIR
=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
9024 test -z "$DEPDIR" && continue
9025 # When using ansi2knr, U may be empty or an underscore; expand it
9026 U
=`sed -n -e '/^U = / s///p' < "$mf"`
9027 test -d "$dirpart/$DEPDIR" || mkdir
"$dirpart/$DEPDIR"
9028 # We invoke sed twice because it is the simplest approach to
9029 # changing $(DEPDIR) to its actual value in the expansion.
9030 for file in `sed -n -e '
9031 /^DEP_FILES = .*\\\\$/ {
9040 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
9041 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9042 # Make sure the directory exists.
9043 test -f "$dirpart/$file" && continue
9044 fdir
=`echo "$file" | sed -e 's|/[^/]*$||'`
9045 $ac_aux_dir/mkinstalldirs
"$dirpart/$fdir" > /dev
/null
2>&1
9046 # echo "creating $dirpart/$file"
9047 echo '# dummy' > "$dirpart/$file"
9052 for ac_file
in $CONFIG_FILES; do
9053 # Support "outfile[:infile[:infile...]]"
9055 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9057 # PO directories have a Makefile.in generated from Makefile.in.in.
9058 case "$ac_file" in */Makefile.
in)
9059 # Adjust a relative srcdir.
9060 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9061 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
9062 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9063 # In autoconf-2.13 it is called $ac_given_srcdir.
9064 # In autoconf-2.50 it is called $srcdir.
9065 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
9066 case "$ac_given_srcdir" in
9067 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
9068 /*) top_srcdir
="$ac_given_srcdir" ;;
9069 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9071 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9072 rm -f "$ac_dir/POTFILES"
9073 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
9074 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
9075 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
9076 # on $ac_dir but don't depend on user-specified configuration
9078 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
9079 # The LINGUAS file contains the set of available languages.
9080 if test -n "$ALL_LINGUAS"; then
9081 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
9083 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
9084 # Hide the ALL_LINGUAS assigment from automake.
9085 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
9087 case "$ac_given_srcdir" in
9089 *) srcdirpre
='$(srcdir)/' ;;
9095 for lang
in $ALL_LINGUAS; do
9096 POFILES
="$POFILES $srcdirpre$lang.po"
9097 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
9098 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
9099 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
9101 # CATALOGS depends on both $ac_dir and the user's LINGUAS
9102 # environment variable.
9104 if test -n "$ALL_LINGUAS"; then
9105 for presentlang
in $ALL_LINGUAS; do
9107 if test "%UNSET%" != "$LINGUAS"; then
9108 desiredlanguages
="$LINGUAS"
9110 desiredlanguages
="$ALL_LINGUAS"
9112 for desiredlang
in $desiredlanguages; do
9113 # Use the presentlang catalog if desiredlang is
9114 # a. equal to presentlang, or
9115 # b. a variant of presentlang (because in this case,
9116 # presentlang can be used as a fallback for messages
9117 # which are not translated in the desiredlang catalog).
9118 case "$desiredlang" in
9119 "$presentlang"*) useit
=yes;;
9122 if test $useit = yes; then
9123 INST_LINGUAS
="$INST_LINGUAS $presentlang"
9128 if test -n "$INST_LINGUAS"; then
9129 for lang
in $INST_LINGUAS; do
9130 CATALOGS
="$CATALOGS $lang.gmo"
9133 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
9134 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9135 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
9136 if test -f "$f"; then
9138 *.orig |
*.bak |
*~
) ;;
9139 *) cat "$f" >> "$ac_dir/Makefile" ;;
9151 cat >>$CONFIG_STATUS <<\EOF
9153 { (exit 0); exit 0; }
9155 chmod +x
$CONFIG_STATUS
9156 ac_clean_files
=$ac_clean_files_save
9158 # configure is writing to config.log, and then calls config.status.
9159 # config.status does its own redirection, appending to config.log.
9160 # Unfortunately, on DOS this fails, as config.log is still kept open
9161 # by configure, so config.status won't be able to write to it; its
9162 # output is simply discarded. So we exec the FD to /dev/null,
9163 # effectively closing config.log, so it can be properly (re)opened and
9164 # appended to by config.status. When coming back to configure, we
9165 # need to make the FD available again.
9166 if test "$no_create" != yes; then
9169 $SHELL $CONFIG_STATUS || ac_cs_success
=false
9171 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9172 # would make configure fail if this is the last instruction.
9173 $ac_cs_success ||
{ (exit 1); exit 1; }
9177 echo "Using GTK+ $GTK_VERSION $MAGICK_STRING"
9179 if test "$gtk2" = "yes"
9180 then echo "Hope you have a gtkglarea compiled with GTK+-$GTK_VERSION"
9181 echo "and you know what you are doing"