2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="xpdf/xpdf.cc"
275 # Factoring default headers for most tests.
276 ac_includes_default
="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB EXE LIBPREFIX AR UP_DIR CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS EGREP Xpm_LIBS Xpm_CFLAGS Xext_LIBS Xext_CFLAGS Xp_LIBS Xp_CFLAGS Xt_LIBS Xt_CFLAGS Xm_LIBS Xm_CFLAGS Sgm_LIBS Sgm_CFLAGS t1_LIBS t1_CFLAGS freetype2_LIBS freetype2_CFLAGS libpaper_LIBS libpaper_CFLAGS X XPDF_TARGET LIBOBJS LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir
='${exec_prefix}/bin'
341 sbindir
='${exec_prefix}/sbin'
342 libexecdir
='${exec_prefix}/libexec'
343 datadir
='${prefix}/share'
344 sysconfdir
='${prefix}/etc'
345 sharedstatedir
='${prefix}/com'
346 localstatedir
='${prefix}/var'
347 libdir
='${exec_prefix}/lib'
348 includedir
='${prefix}/include'
349 oldincludedir
='/usr/include'
350 infodir
='${prefix}/info'
351 mandir
='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
374 -build |
--build |
--buil |
--bui |
--bu)
375 ac_prev
=build_alias
;;
376 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
377 build_alias
=$ac_optarg ;;
379 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
380 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
381 ac_prev
=cache_file
;;
382 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
383 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
384 cache_file
=$ac_optarg ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
393 datadir
=$ac_optarg ;;
395 -disable-* |
--disable-*)
396 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* |
--enable-*)
405 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
418 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
419 |
--exec |
--exe |
--ex)
420 ac_prev
=exec_prefix
;;
421 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
422 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
423 |
--exec=* |
--exe=* |
--ex=*)
424 exec_prefix
=$ac_optarg ;;
426 -gas |
--gas |
--ga |
--g)
427 # Obsolete; use --with-gas.
430 -help |
--help |
--hel |
--he |
-h)
432 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
433 ac_init_help
=recursive
;;
434 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
435 ac_init_help
=short
;;
437 -host |
--host |
--hos |
--ho)
438 ac_prev
=host_alias
;;
439 -host=* |
--host=* |
--hos=* |
--ho=*)
440 host_alias
=$ac_optarg ;;
442 -includedir |
--includedir |
--includedi |
--included |
--include \
443 |
--includ |
--inclu |
--incl |
--inc)
444 ac_prev
=includedir
;;
445 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
446 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
447 includedir
=$ac_optarg ;;
449 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
459 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
460 |
--libexe |
--libex |
--libe)
461 ac_prev
=libexecdir
;;
462 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
463 |
--libexe=* |
--libex=* |
--libe=*)
464 libexecdir
=$ac_optarg ;;
466 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
467 |
--localstate |
--localstat |
--localsta |
--localst \
468 |
--locals |
--local |
--loca |
--loc |
--lo)
469 ac_prev
=localstatedir
;;
470 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
471 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
472 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
473 localstatedir
=$ac_optarg ;;
475 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
492 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
493 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
494 |
--oldin |
--oldi |
--old |
--ol |
--o)
495 ac_prev
=oldincludedir
;;
496 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
497 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
498 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
499 oldincludedir
=$ac_optarg ;;
501 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
506 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
507 |
--program-pre |
--program-pr |
--program-p)
508 ac_prev
=program_prefix
;;
509 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
510 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
511 program_prefix
=$ac_optarg ;;
513 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
514 |
--program-suf |
--program-su |
--program-s)
515 ac_prev
=program_suffix
;;
516 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
517 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
518 program_suffix
=$ac_optarg ;;
520 -program-transform-name |
--program-transform-name \
521 |
--program-transform-nam |
--program-transform-na \
522 |
--program-transform-n |
--program-transform- \
523 |
--program-transform |
--program-transfor \
524 |
--program-transfo |
--program-transf \
525 |
--program-trans |
--program-tran \
526 |
--progr-tra |
--program-tr |
--program-t)
527 ac_prev
=program_transform_name
;;
528 -program-transform-name=* |
--program-transform-name=* \
529 |
--program-transform-nam=* |
--program-transform-na=* \
530 |
--program-transform-n=* |
--program-transform-=* \
531 |
--program-transform=* |
--program-transfor=* \
532 |
--program-transfo=* |
--program-transf=* \
533 |
--program-trans=* |
--program-tran=* \
534 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
535 program_transform_name
=$ac_optarg ;;
537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
538 |
-silent |
--silent |
--silen |
--sile |
--sil)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
568 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
569 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
570 ac_prev
=sysconfdir
;;
571 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
572 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
573 sysconfdir
=$ac_optarg ;;
575 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
576 ac_prev
=target_alias
;;
577 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
578 target_alias
=$ac_optarg ;;
580 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
587 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package
=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* |
--without-*)
600 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package
=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
613 |
--x-incl |
--x-inc |
--x-in |
--x-i)
614 ac_prev
=x_includes
;;
615 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
616 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
617 x_includes
=$ac_optarg ;;
619 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
620 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
621 ac_prev
=x_libraries
;;
622 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
623 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
624 x_libraries
=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var
in exec_prefix prefix
661 eval ac_val
=$
`echo $ac_var`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val
=$
`echo $ac_var`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x
; then
690 if test "x$build_alias" = x
; then
691 cross_compiling
=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
702 test "$silent" = yes && exec 6>/dev
/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted
=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir
=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted
=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CC_set
=${CC+set}
755 ac_cv_env_CC_set
=${CC+set}
756 ac_cv_env_CC_value
=$CC
757 ac_env_CFLAGS_set
=${CFLAGS+set}
758 ac_env_CFLAGS_value
=$CFLAGS
759 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value
=$CFLAGS
761 ac_env_LDFLAGS_set
=${LDFLAGS+set}
762 ac_env_LDFLAGS_value
=$LDFLAGS
763 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value
=$LDFLAGS
765 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value
=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_env_CXX_set
=${CXX+set}
770 ac_env_CXX_value
=$CXX
771 ac_cv_env_CXX_set
=${CXX+set}
772 ac_cv_env_CXX_value
=$CXX
773 ac_env_CXXFLAGS_set
=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value
=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set
=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value
=$CXXFLAGS
777 ac_env_CPP_set
=${CPP+set}
778 ac_env_CPP_value
=$CPP
779 ac_cv_env_CPP_set
=${CPP+set}
780 ac_cv_env_CPP_value
=$CPP
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
843 --x-includes=DIR X include files are
in DIR
844 --x-libraries=DIR X library files are
in DIR
848 if test -n "$ac_init_help"; then
853 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
854 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
855 --enable-a4-paper use A4 paper size instead of Letter
for
857 --enable-no-text-select do not allow text selection
858 --enable-opi include support
for OPI comments
859 --enable-multithreaded include support
for multithreading
860 --enable-exceptions use C
++ exceptions
861 --enable-wordlist include support
for building word lists
862 --enable-fixedpoint use fixed point
(instead of floating point
) arithmetic
863 --enable-cmyk include support
for CMYK rasterization
864 --disable-largefile omit support
for large files
867 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
868 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
869 --with-appdef-dir set app-defaults directory
870 --with-x use the X Window System
871 --with-Xpm-library=PATH use Xpm library
(pixmap library
- used only
for icon
)
872 --with-Xpm-includes=DIR
set directory
for Xpm headers
873 --with-Xext-library=PATH
874 use Xext library
(Motif library
)
875 --with-Xext-includes=DIR
876 set directory
for Xext headers
877 --with-Xp-library=PATH use Xp library
(Motif library
)
878 --with-Xp-includes=DIR
set directory
for Xp headers
879 --with-Xt-library=PATH use Xt library
(Motif library
)
880 --with-Xt-includes=DIR
set directory
for Xt headers
881 --with-Xm-library=PATH use Xm library
(Motif library
)
882 --with-Xm-includes=DIR
set directory
for Xm headers
883 --with-Sgm-library=PATH use Sgm library
(SGI Motif library
)
884 --with-Sgm-includes=DIR
set directory
for Sgm headers
885 --with-t1-library=PATH use t1 library
(Type
1 font rasterizer
)
886 --with-t1-includes=DIR
set directory
for t1 headers
887 --with-freetype2-library=PATH
888 use freetype2 library
(FreeType2 font rasterizer
- version
2.0.5+)
889 --with-freetype2-includes=DIR
890 set directory
for freetype2 headers
891 --with-libpaper-library=PATH
892 use libpaper library
(Debian libpaper
)
893 --with-libpaper-includes=DIR
894 set directory
for libpaper headers
896 Some influential environment variables
:
897 CC C compiler
command
898 CFLAGS C compiler flags
899 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
900 nonstandard directory
<lib dir
>
901 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
902 headers
in a nonstandard directory
<include dir
>
903 CXX C
++ compiler
command
904 CXXFLAGS C
++ compiler flags
907 Use these variables to override the choices made by
`configure' or to help
908 it to find libraries and programs with nonstandard names/locations.
913 if test "$ac_init_help" = "recursive"; then
914 # If there are subdirs, report their specific --help.
916 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
917 test -d $ac_dir || continue
920 if test "$ac_dir" != .; then
921 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
922 # A "../" for each directory in $ac_dir_suffix.
923 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
925 ac_dir_suffix= ac_top_builddir=
929 .) # No --srcdir option. We are building in place.
931 if test -z "$ac_top_builddir"; then
934 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
936 [\\/]* | ?:[\\/]* ) # Absolute path.
937 ac_srcdir=$srcdir$ac_dir_suffix;
938 ac_top_srcdir=$srcdir ;;
940 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
941 ac_top_srcdir=$ac_top_builddir$srcdir ;;
944 # Do not use `cd foo
&& pwd` to compute absolute paths, because
945 # the directories may not exist.
947 .) ac_abs_builddir="$ac_dir";;
950 .) ac_abs_builddir=`pwd`;;
951 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
952 *) ac_abs_builddir=`pwd`/"$ac_dir";;
955 case $ac_abs_builddir in
956 .) ac_abs_top_builddir=${ac_top_builddir}.;;
958 case ${ac_top_builddir}. in
959 .) ac_abs_top_builddir=$ac_abs_builddir;;
960 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
961 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
964 case $ac_abs_builddir in
965 .) ac_abs_srcdir=$ac_srcdir;;
968 .) ac_abs_srcdir=$ac_abs_builddir;;
969 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
970 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
973 case $ac_abs_builddir in
974 .) ac_abs_top_srcdir=$ac_top_srcdir;;
976 case $ac_top_srcdir in
977 .) ac_abs_top_srcdir=$ac_abs_builddir;;
978 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
979 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
984 # Check for guested configure; otherwise get Cygnus style configure.
985 if test -f $ac_srcdir/configure.gnu; then
987 $SHELL $ac_srcdir/configure.gnu --help=recursive
988 elif test -f $ac_srcdir/configure; then
990 $SHELL $ac_srcdir/configure --help=recursive
991 elif test -f $ac_srcdir/configure.ac ||
992 test -f $ac_srcdir/configure.in; then
996 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1002 test -n "$ac_init_help" && exit 0
1003 if $ac_init_version; then
1006 Copyright (C) 2003 Free Software Foundation, Inc.
1007 This configure script is free software; the Free Software Foundation
1008 gives unlimited permission to copy, distribute and modify it.
1014 This file contains any messages produced by compilers while
1015 running configure, to aid debugging if configure makes a mistake.
1017 It was created by $as_me, which was
1018 generated by GNU Autoconf 2.59. Invocation command line was
1029 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1030 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1031 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1032 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1033 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1035 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1036 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1038 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1039 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1040 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1041 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1042 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1043 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1044 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1052 test -z "$as_dir" && as_dir=.
1053 echo "PATH: $as_dir"
1068 # Keep a trace of the command line.
1069 # Strip out --no-create and --no-recursion so they do not pile up.
1070 # Strip out --silent because we don't want to record it for future runs.
1071 # Also quote any args containing shell meta-characters.
1072 # Make two passes to allow for proper duplicate-argument suppression.
1077 ac_must_keep_next=false
1083 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085 | -silent | --silent | --silen | --sile | --sil)
1087 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1088 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1091 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1093 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1094 if test $ac_must_keep_next = true; then
1095 ac_must_keep_next=false # Got value, back to normal.
1098 *=* | --config-cache | -C | -disable-* | --disable-* \
1099 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1100 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1101 | -with-* | --with-* | -without-* | --without-* | --x)
1102 case "$ac_configure_args0 " in
1103 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1106 -* ) ac_must_keep_next=true ;;
1109 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1110 # Get rid of the leading space.
1116 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1117 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1119 # When interrupted or exit'd, cleanup temporary files, and complete
1120 # config.log. We remove comments because anyway the quotes in there
1121 # would cause problems or look ugly.
1122 # WARNING: Be sure not to use single quotes in there, as some shells,
1123 # such as our DU 5.0 friend, will then `close
' the trap.
1124 trap 'exit_status
=$?
1125 # Save into config.log some information that might help in debugging.
1130 ## ---------------- ##
1131 ## Cache variables. ##
1132 ## ---------------- ##
1135 # The following way of writing the cache mishandles newlines in values,
1138 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1141 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1142 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1146 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1153 ## ----------------- ##
1154 ## Output variables. ##
1155 ## ----------------- ##
1158 for ac_var
in $ac_subst_vars
1160 eval ac_val
=$
`echo $ac_var`
1161 echo "$ac_var='"'"'$ac_val'"'"'"
1165 if test -n "$ac_subst_files"; then
1172 for ac_var
in $ac_subst_files
1174 eval ac_val
=$
`echo $ac_var`
1175 echo "$ac_var='"'"'$ac_val'"'"'"
1180 if test -s confdefs.h
; then
1187 sed "/^$/d" confdefs.h |
sort
1190 test "$ac_signal" != 0 &&
1191 echo "$as_me: caught signal $ac_signal"
1192 echo "$as_me: exit $exit_status"
1194 rm -f core
*.core
&&
1195 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1198 for ac_signal in 1 2 13 15; do
1199 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1203 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1204 rm -rf conftest* confdefs.h
1205 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1208 # Predefined preprocessor variables.
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_NAME "$PACKAGE_NAME"
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1225 cat >>confdefs.h <<_ACEOF
1226 #define PACKAGE_STRING "$PACKAGE_STRING"
1230 cat >>confdefs.h <<_ACEOF
1231 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1235 # Let the site file select an alternate cache file if it wants to.
1236 # Prefer explicitly selected file to automatically selected ones.
1237 if test -z "$CONFIG_SITE"; then
1238 if test "x$prefix" != xNONE; then
1239 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1241 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1244 for ac_site_file in $CONFIG_SITE; do
1245 if test -r "$ac_site_file"; then
1246 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1247 echo "$as_me: loading site script $ac_site_file" >&6;}
1248 sed 's
/^
/|
/' "$ac_site_file" >&5
1253 if test -r "$cache_file"; then
1254 # Some versions of bash will fail to source /dev/null (special
1255 # files actually), so we avoid doing that.
1256 if test -f "$cache_file"; then
1257 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1258 echo "$as_me: loading cache $cache_file" >&6;}
1260 [\\/]* | ?:[\\/]* ) . $cache_file;;
1261 *) . ./$cache_file;;
1265 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1266 echo "$as_me: creating cache $cache_file" >&6;}
1270 # Check that the precious variables saved in the cache have kept the same
1272 ac_cache_corrupted=false
1273 for ac_var in `(set) 2>&1 |
1274 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1275 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1276 eval ac_new_set=\$ac_env_${ac_var}_set
1277 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1278 eval ac_new_val="\$ac_env_${ac_var}_value"
1279 case $ac_old_set,$ac_new_set in
1281 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1282 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1283 ac_cache_corrupted=: ;;
1285 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1286 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1287 ac_cache_corrupted=: ;;
1290 if test "x$ac_old_val" != "x$ac_new_val"; then
1291 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1292 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1293 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1294 echo "$as_me: former value: $ac_old_val" >&2;}
1295 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1296 echo "$as_me: current value: $ac_new_val" >&2;}
1297 ac_cache_corrupted=:
1300 # Pass precious variables to config.status.
1301 if test "$ac_new_set" = set; then
1303 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1304 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1305 *) ac_arg=$ac_var=$ac_new_val ;;
1307 case " $ac_configure_args " in
1308 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1309 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1313 if $ac_cache_corrupted; then
1314 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1315 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1316 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1317 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1318 { (exit 1); exit 1; }; }
1322 ac_cpp='$CPP $CPPFLAGS'
1323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1324 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1345 ac_config_headers="$ac_config_headers aconf.h"
1348 # Check whether --enable-a4-paper or --disable-a4-paper was given.
1349 if test "${enable_a4_paper+set}" = set; then
1350 enableval="$enable_a4_paper"
1351 cat >>confdefs.h <<\_ACEOF
1356 # Check whether --enable-no-text-select or --disable-no-text-select was given.
1357 if test "${enable_no_text_select+set}" = set; then
1358 enableval="$enable_no_text_select"
1359 cat >>confdefs.h <<\_ACEOF
1360 #define NO_TEXT_SELECT 1
1364 # Check whether --enable-opi or --disable-opi was given.
1365 if test "${enable_opi+set}" = set; then
1366 enableval="$enable_opi"
1367 cat >>confdefs.h <<\_ACEOF
1368 #define OPI_SUPPORT 1
1372 # Check whether --enable-multithreaded or --disable-multithreaded was given.
1373 if test "${enable_multithreaded+set}" = set; then
1374 enableval="$enable_multithreaded"
1375 cat >>confdefs.h <<\_ACEOF
1376 #define MULTITHREADED 1
1380 # Check whether --enable-exceptions or --disable-exceptions was given.
1381 if test "${enable_exceptions+set}" = set; then
1382 enableval="$enable_exceptions"
1383 cat >>confdefs.h <<\_ACEOF
1384 #define USE_EXCEPTIONS 1
1388 # Check whether --enable-wordlist or --disable-wordlist was given.
1389 if test "${enable_wordlist+set}" = set; then
1390 enableval="$enable_wordlist"
1391 cat >>confdefs.h <<\_ACEOF
1392 #define TEXTOUT_WORD_LIST 1
1396 # Check whether --enable-fixedpoint or --disable-fixedpoint was given.
1397 if test "${enable_fixedpoint+set}" = set; then
1398 enableval="$enable_fixedpoint"
1399 cat >>confdefs.h <<\_ACEOF
1400 #define USE_FIXEDPOINT 1
1404 # Check whether --enable-cmyk or --disable-cmyk was given.
1405 if test "${enable_cmyk+set}" = set; then
1406 enableval="$enable_cmyk"
1407 cat >>confdefs.h <<\_ACEOF
1408 #define SPLASH_CMYK 1
1413 # Check whether --with-appdef-dir or --without-appdef-dir was given.
1414 if test "${with_appdef_dir+set}" = set; then
1415 withval="$with_appdef_dir"
1416 cat >>confdefs.h <<_ACEOF
1417 #define APPDEFDIR "$with_appdef_dir"
1422 if test "$sysconfdir" = '${prefix}/etc
'; then
1423 if test "x$prefix" = xNONE; then
1424 system_xpdfrc="$ac_default_prefix/etc/xpdfrc"
1426 system_xpdfrc="$prefix/etc/xpdfrc"
1429 system_xpdfrc="$sysconfdir/xpdfrc"
1431 cat >>confdefs.h <<_ACEOF
1432 #define SYSTEM_XPDFRC "$system_xpdfrc"
1437 ac_cpp='$CPP $CPPFLAGS'
1438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1439 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1441 if test -n "$ac_tool_prefix"; then
1442 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1443 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1444 echo "$as_me:$LINENO: checking for $ac_word" >&5
1445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1446 if test "${ac_cv_prog_CC+set}" = set; then
1447 echo $ECHO_N "(cached) $ECHO_C" >&6
1449 if test -n "$CC"; then
1450 ac_cv_prog_CC="$CC" # Let the user override the test.
1452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1456 test -z "$as_dir" && as_dir=.
1457 for ac_exec_ext in '' $ac_executable_extensions; do
1458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1459 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1469 if test -n "$CC"; then
1470 echo "$as_me:$LINENO: result: $CC" >&5
1471 echo "${ECHO_T}$CC" >&6
1473 echo "$as_me:$LINENO: result: no" >&5
1474 echo "${ECHO_T}no" >&6
1478 if test -z "$ac_cv_prog_CC"; then
1480 # Extract the first word of "gcc", so it can be a program name with args.
1481 set dummy gcc; ac_word=$2
1482 echo "$as_me:$LINENO: checking for $ac_word" >&5
1483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1484 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
1487 if test -n "$ac_ct_CC"; then
1488 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1494 test -z "$as_dir" && as_dir=.
1495 for ac_exec_ext in '' $ac_executable_extensions; do
1496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1497 ac_cv_prog_ac_ct_CC="gcc"
1498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1506 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1507 if test -n "$ac_ct_CC"; then
1508 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1509 echo "${ECHO_T}$ac_ct_CC" >&6
1511 echo "$as_me:$LINENO: result: no" >&5
1512 echo "${ECHO_T}no" >&6
1520 if test -z "$CC"; then
1521 if test -n "$ac_tool_prefix"; then
1522 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1523 set dummy ${ac_tool_prefix}cc; ac_word=$2
1524 echo "$as_me:$LINENO: 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.
1532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1536 test -z "$as_dir" && as_dir=.
1537 for ac_exec_ext in '' $ac_executable_extensions; do
1538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1539 ac_cv_prog_CC="${ac_tool_prefix}cc"
1540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1549 if test -n "$CC"; then
1550 echo "$as_me:$LINENO: result: $CC" >&5
1551 echo "${ECHO_T}$CC" >&6
1553 echo "$as_me:$LINENO: result: no" >&5
1554 echo "${ECHO_T}no" >&6
1558 if test -z "$ac_cv_prog_CC"; then
1560 # Extract the first word of "cc", so it can be a program name with args.
1561 set dummy cc; ac_word=$2
1562 echo "$as_me:$LINENO: checking for $ac_word" >&5
1563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1564 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1565 echo $ECHO_N "(cached) $ECHO_C" >&6
1567 if test -n "$ac_ct_CC"; then
1568 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1574 test -z "$as_dir" && as_dir=.
1575 for ac_exec_ext in '' $ac_executable_extensions; do
1576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1577 ac_cv_prog_ac_ct_CC="cc"
1578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1586 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1587 if test -n "$ac_ct_CC"; then
1588 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1589 echo "${ECHO_T}$ac_ct_CC" >&6
1591 echo "$as_me:$LINENO: result: no" >&5
1592 echo "${ECHO_T}no" >&6
1601 if test -z "$CC"; then
1602 # Extract the first word of "cc", so it can be a program name with args.
1603 set dummy cc; ac_word=$2
1604 echo "$as_me:$LINENO: checking for $ac_word" >&5
1605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1606 if test "${ac_cv_prog_CC+set}" = set; then
1607 echo $ECHO_N "(cached) $ECHO_C" >&6
1609 if test -n "$CC"; then
1610 ac_cv_prog_CC="$CC" # Let the user override the test.
1613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617 test -z "$as_dir" && as_dir=.
1618 for ac_exec_ext in '' $ac_executable_extensions; do
1619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1620 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1621 ac_prog_rejected=yes
1625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1631 if test $ac_prog_rejected = yes; then
1632 # We found a bogon in the path, so make sure we never use it.
1633 set dummy $ac_cv_prog_CC
1635 if test $# != 0; then
1636 # We chose a different compiler from the bogus one.
1637 # However, it has the same basename, so the bogon will be chosen
1638 # first if we set CC to just the basename; use the full file name.
1640 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1646 if test -n "$CC"; then
1647 echo "$as_me:$LINENO: result: $CC" >&5
1648 echo "${ECHO_T}$CC" >&6
1650 echo "$as_me:$LINENO: result: no" >&5
1651 echo "${ECHO_T}no" >&6
1655 if test -z "$CC"; then
1656 if test -n "$ac_tool_prefix"; then
1659 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1660 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1661 echo "$as_me:$LINENO: checking for $ac_word" >&5
1662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1663 if test "${ac_cv_prog_CC+set}" = set; then
1664 echo $ECHO_N "(cached) $ECHO_C" >&6
1666 if test -n "$CC"; then
1667 ac_cv_prog_CC="$CC" # Let the user override the test.
1669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1673 test -z "$as_dir" && as_dir=.
1674 for ac_exec_ext in '' $ac_executable_extensions; do
1675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1676 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1686 if test -n "$CC"; then
1687 echo "$as_me:$LINENO: result: $CC" >&5
1688 echo "${ECHO_T}$CC" >&6
1690 echo "$as_me:$LINENO: result: no" >&5
1691 echo "${ECHO_T}no" >&6
1694 test -n "$CC" && break
1697 if test -z "$CC"; then
1701 # Extract the first word of "$ac_prog", so it can be a program name with args.
1702 set dummy $ac_prog; ac_word=$2
1703 echo "$as_me:$LINENO: checking for $ac_word" >&5
1704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1705 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1706 echo $ECHO_N "(cached) $ECHO_C" >&6
1708 if test -n "$ac_ct_CC"; then
1709 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715 test -z "$as_dir" && as_dir=.
1716 for ac_exec_ext in '' $ac_executable_extensions; do
1717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1718 ac_cv_prog_ac_ct_CC="$ac_prog"
1719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1727 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1728 if test -n "$ac_ct_CC"; then
1729 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1730 echo "${ECHO_T}$ac_ct_CC" >&6
1732 echo "$as_me:$LINENO: result: no" >&5
1733 echo "${ECHO_T}no" >&6
1736 test -n "$ac_ct_CC" && break
1745 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1746 See \`config.log' for more details.
" >&5
1747 echo "$as_me: error
: no acceptable C compiler found
in \
$PATH
1748 See \
`config.log' for more details." >&2;}
1749 { (exit 1); exit 1; }; }
1751 # Provide some information about the compiler.
1752 echo "$as_me:$LINENO:" \
1753 "checking for C compiler version" >&5
1754 ac_compiler=`set X
$ac_compile; echo $2`
1755 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1756 (eval $ac_compiler --version </dev/null >&5) 2>&5
1758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1759 (exit $ac_status); }
1760 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1761 (eval $ac_compiler -v </dev/null >&5) 2>&5
1763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1764 (exit $ac_status); }
1765 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1766 (eval $ac_compiler -V </dev/null >&5) 2>&5
1768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1769 (exit $ac_status); }
1771 cat >conftest.$ac_ext <<_ACEOF
1774 cat confdefs.h >>conftest.$ac_ext
1775 cat >>conftest.$ac_ext <<_ACEOF
1776 /* end confdefs.h. */
1786 ac_clean_files_save=$ac_clean_files
1787 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1788 # Try to create an executable without -o first, disregard a.out.
1789 # It will help us diagnose broken compilers, and finding out an intuition
1791 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1792 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1793 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
1794 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1795 (eval $ac_link_default) 2>&5
1797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1798 (exit $ac_status); }; then
1799 # Find the output, starting from the most likely. This scheme is
1800 # not robust to junk in `.
', hence go to wildcards (a.*) only as a last
1803 # Be careful to initialize this variable, since it used to be cached.
1804 # Otherwise an old cache value of `no' led to
`EXEEXT = no' in a Makefile.
1806 # b.out is created by i960 compilers.
1807 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1809 test -f "$ac_file" || continue
1811 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1814 # This is the source file.
1817 # We found the default executable, but exeext='' is most
1821 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1822 # FIXME: I believe we export ac_cv_exeext for Libtool,
1823 # but it would be cool to find out if it's true. Does anybody
1824 # maintain Libtool? --akim.
1832 echo "$as_me: failed program was:" >&5
1833 sed 's/^/| /' conftest.$ac_ext >&5
1835 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1836 See \`config.log
' for more details." >&5
1837 echo "$as_me: error: C compiler cannot create executables
1838 See \`config.log' for more details.
" >&2;}
1839 { (exit 77); exit 77; }; }
1842 ac_exeext=$ac_cv_exeext
1843 echo "$as_me:$LINENO: result
: $ac_file" >&5
1844 echo "${ECHO_T}$ac_file" >&6
1846 # Check the compiler produces executables we can run. If not, either
1847 # the compiler is broken, or we cross compile.
1848 echo "$as_me:$LINENO: checking whether the C compiler works
" >&5
1849 echo $ECHO_N "checking whether the C compiler works...
$ECHO_C" >&6
1850 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1851 # If not cross compiling, check that we can run a simple program.
1852 if test "$cross_compiling" != yes; then
1853 if { ac_try='./$ac_file'
1854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1857 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
1858 (exit $ac_status); }; }; then
1861 if test "$cross_compiling" = maybe; then
1864 { { echo "$as_me:$LINENO: error
: cannot run C compiled programs.
1865 If you meant to cross compile
, use \
`--host'.
1866 See \`config.log
' for more details." >&5
1867 echo "$as_me: error: cannot run C compiled programs.
1868 If you meant to cross compile, use \`--host'.
1869 See \
`config.log' for more details." >&2;}
1870 { (exit 1); exit 1; }; }
1874 echo "$as_me:$LINENO: result: yes" >&5
1875 echo "${ECHO_T}yes" >&6
1877 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1878 ac_clean_files=$ac_clean_files_save
1879 # Check the compiler produces executables we can run. If not, either
1880 # the compiler is broken, or we cross compile.
1881 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1882 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1883 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1884 echo "${ECHO_T}$cross_compiling" >&6
1886 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1887 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1889 (eval $ac_link) 2>&5
1891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1892 (exit $ac_status); }; then
1893 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
1894 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
1895 # work properly (i.e., refer to `conftest.exe'), while it won't with
1897 for ac_file
in conftest.exe conftest conftest.
*; do
1898 test -f "$ac_file" ||
continue
1900 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1901 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1908 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1909 See \`config.log' for more details." >&5
1910 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1911 See \`config.log' for more details." >&2;}
1912 { (exit 1); exit 1; }; }
1915 rm -f conftest
$ac_cv_exeext
1916 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1917 echo "${ECHO_T}$ac_cv_exeext" >&6
1919 rm -f conftest.
$ac_ext
1920 EXEEXT
=$ac_cv_exeext
1922 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1923 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1924 if test "${ac_cv_objext+set}" = set; then
1925 echo $ECHO_N "(cached) $ECHO_C" >&6
1927 cat >conftest.
$ac_ext <<_ACEOF
1930 cat confdefs.h
>>conftest.
$ac_ext
1931 cat >>conftest.
$ac_ext <<_ACEOF
1932 /* end confdefs.h. */
1942 rm -f conftest.o conftest.obj
1943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1944 (eval $ac_compile) 2>&5
1946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947 (exit $ac_status); }; then
1948 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1950 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
1951 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1956 echo "$as_me: failed program was:" >&5
1957 sed 's/^/| /' conftest.
$ac_ext >&5
1959 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1960 See \`config.log' for more details." >&5
1961 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1962 See \`config.log' for more details." >&2;}
1963 { (exit 1); exit 1; }; }
1966 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1968 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1969 echo "${ECHO_T}$ac_cv_objext" >&6
1970 OBJEXT
=$ac_cv_objext
1972 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1973 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1974 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1977 cat >conftest.
$ac_ext <<_ACEOF
1980 cat confdefs.h
>>conftest.
$ac_ext
1981 cat >>conftest.
$ac_ext <<_ACEOF
1982 /* end confdefs.h. */
1995 rm -f conftest.
$ac_objext
1996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1997 (eval $ac_compile) 2>conftest.er1
1999 grep -v '^ *+' conftest.er1
>conftest.err
2001 cat conftest.err
>&5
2002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003 (exit $ac_status); } &&
2004 { ac_try
='test -z "$ac_c_werror_flag"
2005 || test ! -s conftest.err'
2006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010 (exit $ac_status); }; } &&
2011 { ac_try
='test -s conftest.$ac_objext'
2012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2016 (exit $ac_status); }; }; then
2019 echo "$as_me: failed program was:" >&5
2020 sed 's/^/| /' conftest.
$ac_ext >&5
2024 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2025 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2028 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2029 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2030 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2031 ac_test_CFLAGS
=${CFLAGS+set}
2032 ac_save_CFLAGS
=$CFLAGS
2034 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2035 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2036 if test "${ac_cv_prog_cc_g+set}" = set; then
2037 echo $ECHO_N "(cached) $ECHO_C" >&6
2039 cat >conftest.
$ac_ext <<_ACEOF
2042 cat confdefs.h
>>conftest.
$ac_ext
2043 cat >>conftest.
$ac_ext <<_ACEOF
2044 /* end confdefs.h. */
2054 rm -f conftest.
$ac_objext
2055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2056 (eval $ac_compile) 2>conftest.er1
2058 grep -v '^ *+' conftest.er1
>conftest.err
2060 cat conftest.err
>&5
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); } &&
2063 { ac_try
='test -z "$ac_c_werror_flag"
2064 || test ! -s conftest.err'
2065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069 (exit $ac_status); }; } &&
2070 { ac_try
='test -s conftest.$ac_objext'
2071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075 (exit $ac_status); }; }; then
2078 echo "$as_me: failed program was:" >&5
2079 sed 's/^/| /' conftest.
$ac_ext >&5
2083 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2085 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2086 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2087 if test "$ac_test_CFLAGS" = set; then
2088 CFLAGS
=$ac_save_CFLAGS
2089 elif test $ac_cv_prog_cc_g = yes; then
2090 if test "$GCC" = yes; then
2096 if test "$GCC" = yes; then
2102 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2103 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2104 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2107 ac_cv_prog_cc_stdc
=no
2109 cat >conftest.
$ac_ext <<_ACEOF
2112 cat confdefs.h
>>conftest.
$ac_ext
2113 cat >>conftest.
$ac_ext <<_ACEOF
2114 /* end confdefs.h. */
2117 #include <sys/types.h>
2118 #include <sys/stat.h>
2119 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2120 struct buf { int x; };
2121 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2122 static char *e (p, i)
2128 static char *f (char * (*g) (char **, int), char **p, ...)
2133 s = g (p, va_arg (v,int));
2138 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2139 function prototypes and stuff, but not '\xHH' hex character constants.
2140 These don't provoke an error unfortunately, instead are silently treated
2141 as 'x'. The following induces an error, until -std1 is added to get
2142 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2143 array size at least. It's necessary to write '\x00'==0 to get something
2144 that's true only with -std1. */
2145 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2147 int test (int i, double x);
2148 struct s1 {int (*f) (int a);};
2149 struct s2 {int (*f) (double a);};
2150 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2156 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2161 # Don't try gcc -ansi; that turns off useful extensions and
2162 # breaks some systems' header files.
2163 # AIX -qlanglvl=ansi
2164 # Ultrix and OSF/1 -std1
2165 # HP-UX 10.20 and later -Ae
2166 # HP-UX older versions -Aa -D_HPUX_SOURCE
2167 # SVR4 -Xc -D__EXTENSIONS__
2168 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2170 CC
="$ac_save_CC $ac_arg"
2171 rm -f conftest.
$ac_objext
2172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2173 (eval $ac_compile) 2>conftest.er1
2175 grep -v '^ *+' conftest.er1
>conftest.err
2177 cat conftest.err
>&5
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); } &&
2180 { ac_try
='test -z "$ac_c_werror_flag"
2181 || test ! -s conftest.err'
2182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; } &&
2187 { ac_try
='test -s conftest.$ac_objext'
2188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 (exit $ac_status); }; }; then
2193 ac_cv_prog_cc_stdc
=$ac_arg
2196 echo "$as_me: failed program was:" >&5
2197 sed 's/^/| /' conftest.
$ac_ext >&5
2200 rm -f conftest.err conftest.
$ac_objext
2202 rm -f conftest.
$ac_ext conftest.
$ac_objext
2207 case "x$ac_cv_prog_cc_stdc" in
2209 echo "$as_me:$LINENO: result: none needed" >&5
2210 echo "${ECHO_T}none needed" >&6 ;;
2212 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2213 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2214 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2217 # Some people use a C++ compiler to compile C. Since we use `exit',
2218 # in C++ we need to declare it. In case someone uses the same compiler
2219 # for both compiling C and C++ we need to have the C++ compiler decide
2220 # the declaration of exit, since it's the most demanding environment.
2221 cat >conftest.
$ac_ext <<_ACEOF
2226 rm -f conftest.
$ac_objext
2227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2228 (eval $ac_compile) 2>conftest.er1
2230 grep -v '^ *+' conftest.er1
>conftest.err
2232 cat conftest.err
>&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); } &&
2235 { ac_try
='test -z "$ac_c_werror_flag"
2236 || test ! -s conftest.err'
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; } &&
2242 { ac_try
='test -s conftest.$ac_objext'
2243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; }; then
2248 for ac_declaration
in \
2250 'extern "C" void std::exit (int) throw (); using std::exit;' \
2251 'extern "C" void std::exit (int); using std::exit;' \
2252 'extern "C" void exit (int) throw ();' \
2253 'extern "C" void exit (int);' \
2256 cat >conftest.
$ac_ext <<_ACEOF
2259 cat confdefs.h
>>conftest.
$ac_ext
2260 cat >>conftest.
$ac_ext <<_ACEOF
2261 /* end confdefs.h. */
2272 rm -f conftest.
$ac_objext
2273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2274 (eval $ac_compile) 2>conftest.er1
2276 grep -v '^ *+' conftest.er1
>conftest.err
2278 cat conftest.err
>&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); } &&
2281 { ac_try
='test -z "$ac_c_werror_flag"
2282 || test ! -s conftest.err'
2283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }; } &&
2288 { ac_try
='test -s conftest.$ac_objext'
2289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); }; }; then
2296 echo "$as_me: failed program was:" >&5
2297 sed 's/^/| /' conftest.
$ac_ext >&5
2301 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2302 cat >conftest.
$ac_ext <<_ACEOF
2305 cat confdefs.h
>>conftest.
$ac_ext
2306 cat >>conftest.
$ac_ext <<_ACEOF
2307 /* end confdefs.h. */
2317 rm -f conftest.
$ac_objext
2318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2319 (eval $ac_compile) 2>conftest.er1
2321 grep -v '^ *+' conftest.er1
>conftest.err
2323 cat conftest.err
>&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); } &&
2326 { ac_try
='test -z "$ac_c_werror_flag"
2327 || test ! -s conftest.err'
2328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; } &&
2333 { ac_try
='test -s conftest.$ac_objext'
2334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); }; }; then
2341 echo "$as_me: failed program was:" >&5
2342 sed 's/^/| /' conftest.
$ac_ext >&5
2345 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2348 if test -n "$ac_declaration"; then
2349 echo '#ifdef __cplusplus' >>confdefs.h
2350 echo $ac_declaration >>confdefs.h
2351 echo '#endif' >>confdefs.h
2355 echo "$as_me: failed program was:" >&5
2356 sed 's/^/| /' conftest.
$ac_ext >&5
2359 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2361 ac_cpp
='$CPP $CPPFLAGS'
2362 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2363 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2364 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2367 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2368 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2369 if test "${ac_cv_search_strerror+set}" = set; then
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
2372 ac_func_search_save_LIBS
=$LIBS
2373 ac_cv_search_strerror
=no
2374 cat >conftest.
$ac_ext <<_ACEOF
2377 cat confdefs.h
>>conftest.
$ac_ext
2378 cat >>conftest.
$ac_ext <<_ACEOF
2379 /* end confdefs.h. */
2381 /* Override any gcc2 internal prototype to avoid an error. */
2385 /* We use char because int might match the return type of a gcc2
2386 builtin and then its argument prototype would still apply. */
2396 rm -f conftest.
$ac_objext conftest
$ac_exeext
2397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2398 (eval $ac_link) 2>conftest.er1
2400 grep -v '^ *+' conftest.er1
>conftest.err
2402 cat conftest.err
>&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); } &&
2405 { ac_try
='test -z "$ac_c_werror_flag"
2406 || test ! -s conftest.err'
2407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; } &&
2412 { ac_try
='test -s conftest$ac_exeext'
2413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; }; then
2418 ac_cv_search_strerror
="none required"
2420 echo "$as_me: failed program was:" >&5
2421 sed 's/^/| /' conftest.
$ac_ext >&5
2424 rm -f conftest.err conftest.
$ac_objext \
2425 conftest
$ac_exeext conftest.
$ac_ext
2426 if test "$ac_cv_search_strerror" = no
; then
2427 for ac_lib
in cposix
; do
2428 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
2429 cat >conftest.
$ac_ext <<_ACEOF
2432 cat confdefs.h
>>conftest.
$ac_ext
2433 cat >>conftest.
$ac_ext <<_ACEOF
2434 /* end confdefs.h. */
2436 /* Override any gcc2 internal prototype to avoid an error. */
2440 /* We use char because int might match the return type of a gcc2
2441 builtin and then its argument prototype would still apply. */
2451 rm -f conftest.
$ac_objext conftest
$ac_exeext
2452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2453 (eval $ac_link) 2>conftest.er1
2455 grep -v '^ *+' conftest.er1
>conftest.err
2457 cat conftest.err
>&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); } &&
2460 { ac_try
='test -z "$ac_c_werror_flag"
2461 || test ! -s conftest.err'
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; } &&
2467 { ac_try
='test -s conftest$ac_exeext'
2468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; }; then
2473 ac_cv_search_strerror
="-l$ac_lib"
2476 echo "$as_me: failed program was:" >&5
2477 sed 's/^/| /' conftest.
$ac_ext >&5
2480 rm -f conftest.err conftest.
$ac_objext \
2481 conftest
$ac_exeext conftest.
$ac_ext
2484 LIBS
=$ac_func_search_save_LIBS
2486 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2487 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2488 if test "$ac_cv_search_strerror" != no
; then
2489 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
2494 #if test -z "$CXX" -a "$CC" = "gcc"; then
2498 ac_cpp
='$CXXCPP $CPPFLAGS'
2499 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2500 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2501 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2502 if test -n "$ac_tool_prefix"; then
2503 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2505 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2506 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2507 echo "$as_me:$LINENO: checking for $ac_word" >&5
2508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2509 if test "${ac_cv_prog_CXX+set}" = set; then
2510 echo $ECHO_N "(cached) $ECHO_C" >&6
2512 if test -n "$CXX"; then
2513 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
2515 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2519 test -z "$as_dir" && as_dir
=.
2520 for ac_exec_ext
in '' $ac_executable_extensions; do
2521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2522 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
2523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2532 if test -n "$CXX"; then
2533 echo "$as_me:$LINENO: result: $CXX" >&5
2534 echo "${ECHO_T}$CXX" >&6
2536 echo "$as_me:$LINENO: result: no" >&5
2537 echo "${ECHO_T}no" >&6
2540 test -n "$CXX" && break
2543 if test -z "$CXX"; then
2545 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2547 # Extract the first word of "$ac_prog", so it can be a program name with args.
2548 set dummy
$ac_prog; ac_word
=$2
2549 echo "$as_me:$LINENO: checking for $ac_word" >&5
2550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2551 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2552 echo $ECHO_N "(cached) $ECHO_C" >&6
2554 if test -n "$ac_ct_CXX"; then
2555 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
2557 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2561 test -z "$as_dir" && as_dir
=.
2562 for ac_exec_ext
in '' $ac_executable_extensions; do
2563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2564 ac_cv_prog_ac_ct_CXX
="$ac_prog"
2565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2573 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
2574 if test -n "$ac_ct_CXX"; then
2575 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2576 echo "${ECHO_T}$ac_ct_CXX" >&6
2578 echo "$as_me:$LINENO: result: no" >&5
2579 echo "${ECHO_T}no" >&6
2582 test -n "$ac_ct_CXX" && break
2584 test -n "$ac_ct_CXX" || ac_ct_CXX
="g++"
2590 # Provide some information about the compiler.
2591 echo "$as_me:$LINENO:" \
2592 "checking for C++ compiler version" >&5
2593 ac_compiler
=`set X $ac_compile; echo $2`
2594 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2595 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); }
2599 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2600 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); }
2604 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2605 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); }
2610 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2611 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2612 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2613 echo $ECHO_N "(cached) $ECHO_C" >&6
2615 cat >conftest.
$ac_ext <<_ACEOF
2618 cat confdefs.h
>>conftest.
$ac_ext
2619 cat >>conftest.
$ac_ext <<_ACEOF
2620 /* end confdefs.h. */
2633 rm -f conftest.
$ac_objext
2634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2635 (eval $ac_compile) 2>conftest.er1
2637 grep -v '^ *+' conftest.er1
>conftest.err
2639 cat conftest.err
>&5
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); } &&
2642 { ac_try
='test -z "$ac_cxx_werror_flag"
2643 || test ! -s conftest.err'
2644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; } &&
2649 { ac_try
='test -s conftest.$ac_objext'
2650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); }; }; then
2657 echo "$as_me: failed program was:" >&5
2658 sed 's/^/| /' conftest.
$ac_ext >&5
2662 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2663 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
2666 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2667 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2668 GXX
=`test $ac_compiler_gnu = yes && echo yes`
2669 ac_test_CXXFLAGS
=${CXXFLAGS+set}
2670 ac_save_CXXFLAGS
=$CXXFLAGS
2672 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2673 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2674 if test "${ac_cv_prog_cxx_g+set}" = set; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
2677 cat >conftest.
$ac_ext <<_ACEOF
2680 cat confdefs.h
>>conftest.
$ac_ext
2681 cat >>conftest.
$ac_ext <<_ACEOF
2682 /* end confdefs.h. */
2692 rm -f conftest.
$ac_objext
2693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2694 (eval $ac_compile) 2>conftest.er1
2696 grep -v '^ *+' conftest.er1
>conftest.err
2698 cat conftest.err
>&5
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); } &&
2701 { ac_try
='test -z "$ac_cxx_werror_flag"
2702 || test ! -s conftest.err'
2703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }; } &&
2708 { ac_try
='test -s conftest.$ac_objext'
2709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; }; then
2714 ac_cv_prog_cxx_g
=yes
2716 echo "$as_me: failed program was:" >&5
2717 sed 's/^/| /' conftest.
$ac_ext >&5
2721 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2723 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2724 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2725 if test "$ac_test_CXXFLAGS" = set; then
2726 CXXFLAGS
=$ac_save_CXXFLAGS
2727 elif test $ac_cv_prog_cxx_g = yes; then
2728 if test "$GXX" = yes; then
2734 if test "$GXX" = yes; then
2740 for ac_declaration
in \
2742 'extern "C" void std::exit (int) throw (); using std::exit;' \
2743 'extern "C" void std::exit (int); using std::exit;' \
2744 'extern "C" void exit (int) throw ();' \
2745 'extern "C" void exit (int);' \
2748 cat >conftest.
$ac_ext <<_ACEOF
2751 cat confdefs.h
>>conftest.
$ac_ext
2752 cat >>conftest.
$ac_ext <<_ACEOF
2753 /* end confdefs.h. */
2764 rm -f conftest.
$ac_objext
2765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2766 (eval $ac_compile) 2>conftest.er1
2768 grep -v '^ *+' conftest.er1
>conftest.err
2770 cat conftest.err
>&5
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); } &&
2773 { ac_try
='test -z "$ac_cxx_werror_flag"
2774 || test ! -s conftest.err'
2775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); }; } &&
2780 { ac_try
='test -s conftest.$ac_objext'
2781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); }; }; then
2788 echo "$as_me: failed program was:" >&5
2789 sed 's/^/| /' conftest.
$ac_ext >&5
2793 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2794 cat >conftest.
$ac_ext <<_ACEOF
2797 cat confdefs.h
>>conftest.
$ac_ext
2798 cat >>conftest.
$ac_ext <<_ACEOF
2799 /* end confdefs.h. */
2809 rm -f conftest.
$ac_objext
2810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2811 (eval $ac_compile) 2>conftest.er1
2813 grep -v '^ *+' conftest.er1
>conftest.err
2815 cat conftest.err
>&5
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); } &&
2818 { ac_try
='test -z "$ac_cxx_werror_flag"
2819 || test ! -s conftest.err'
2820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }; } &&
2825 { ac_try
='test -s conftest.$ac_objext'
2826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); }; }; then
2833 echo "$as_me: failed program was:" >&5
2834 sed 's/^/| /' conftest.
$ac_ext >&5
2837 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2840 if test -n "$ac_declaration"; then
2841 echo '#ifdef __cplusplus' >>confdefs.h
2842 echo $ac_declaration >>confdefs.h
2843 echo '#endif' >>confdefs.h
2847 ac_cpp
='$CPP $CPPFLAGS'
2848 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2849 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2850 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2853 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
2854 if test -f $ac_dir/install-sh
; then
2856 ac_install_sh
="$ac_aux_dir/install-sh -c"
2858 elif test -f $ac_dir/install.sh
; then
2860 ac_install_sh
="$ac_aux_dir/install.sh -c"
2862 elif test -f $ac_dir/shtool
; then
2864 ac_install_sh
="$ac_aux_dir/shtool install -c"
2868 if test -z "$ac_aux_dir"; then
2869 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2870 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2871 { (exit 1); exit 1; }; }
2873 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
2874 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
2875 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2877 # Find a good install program. We prefer a C program (faster),
2878 # so one script is as good as another. But avoid the broken or
2879 # incompatible versions:
2880 # SysV /etc/install, /usr/sbin/install
2881 # SunOS /usr/etc/install
2882 # IRIX /sbin/install
2884 # AmigaOS /C/install, which installs bootblocks on floppy discs
2885 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2886 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2887 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2888 # OS/2's system install, which has a completely different semantic
2889 # ./install, which can be erroneously created by make from ./install.sh.
2890 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2891 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2892 if test -z "$INSTALL"; then
2893 if test "${ac_cv_path_install+set}" = set; then
2894 echo $ECHO_N "(cached) $ECHO_C" >&6
2896 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2900 test -z "$as_dir" && as_dir
=.
2901 # Account for people who put trailing slashes in PATH elements.
2903 .
/ | .
// |
/cC
/* | \
2904 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2905 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2908 # OSF1 and SCO ODT 3.0 have their own names for install.
2909 # Don't use installbsd from OSF since it installs stuff as root
2911 for ac_prog
in ginstall scoinst
install; do
2912 for ac_exec_ext
in '' $ac_executable_extensions; do
2913 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2914 if test $ac_prog = install &&
2915 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2916 # AIX install. It has an incompatible calling convention.
2918 elif test $ac_prog = install &&
2919 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2920 # program-specific install script used by HP pwplus--don't use.
2923 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2935 if test "${ac_cv_path_install+set}" = set; then
2936 INSTALL
=$ac_cv_path_install
2938 # As a last resort, use the slow shell script. We don't cache a
2939 # path for INSTALL within a source directory, because that will
2940 # break other packages using the cache if that directory is
2941 # removed, or if the path is relative.
2942 INSTALL
=$ac_install_sh
2945 echo "$as_me:$LINENO: result: $INSTALL" >&5
2946 echo "${ECHO_T}$INSTALL" >&6
2948 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2949 # It thinks the first close brace ends the variable substitution.
2950 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2952 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2954 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2956 if test -n "$ac_tool_prefix"; then
2957 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2958 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2959 echo "$as_me:$LINENO: checking for $ac_word" >&5
2960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2961 if test "${ac_cv_prog_RANLIB+set}" = set; then
2962 echo $ECHO_N "(cached) $ECHO_C" >&6
2964 if test -n "$RANLIB"; then
2965 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2967 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2971 test -z "$as_dir" && as_dir
=.
2972 for ac_exec_ext
in '' $ac_executable_extensions; do
2973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2974 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2983 RANLIB
=$ac_cv_prog_RANLIB
2984 if test -n "$RANLIB"; then
2985 echo "$as_me:$LINENO: result: $RANLIB" >&5
2986 echo "${ECHO_T}$RANLIB" >&6
2988 echo "$as_me:$LINENO: result: no" >&5
2989 echo "${ECHO_T}no" >&6
2993 if test -z "$ac_cv_prog_RANLIB"; then
2994 ac_ct_RANLIB
=$RANLIB
2995 # Extract the first word of "ranlib", so it can be a program name with args.
2996 set dummy ranlib
; ac_word
=$2
2997 echo "$as_me:$LINENO: checking for $ac_word" >&5
2998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2999 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3002 if test -n "$ac_ct_RANLIB"; then
3003 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3005 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3009 test -z "$as_dir" && as_dir
=.
3010 for ac_exec_ext
in '' $ac_executable_extensions; do
3011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3012 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3019 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3022 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3023 if test -n "$ac_ct_RANLIB"; then
3024 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3025 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3027 echo "$as_me:$LINENO: result: no" >&5
3028 echo "${ECHO_T}no" >&6
3031 RANLIB
=$ac_ct_RANLIB
3033 RANLIB
="$ac_cv_prog_RANLIB"
3042 echo "$as_me:$LINENO: checking for OS/2 (with EMX)" >&5
3043 echo $ECHO_N "checking for OS/2 (with EMX)... $ECHO_C" >&6
3044 if test "${xpdf_cv_sys_os2+set}" = set; then
3045 echo $ECHO_N "(cached) $ECHO_C" >&6
3047 cat >conftest.
$ac_ext <<_ACEOF
3050 cat confdefs.h
>>conftest.
$ac_ext
3051 cat >>conftest.
$ac_ext <<_ACEOF
3052 /* end confdefs.h. */
3062 rm -f conftest.
$ac_objext
3063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3064 (eval $ac_compile) 2>conftest.er1
3066 grep -v '^ *+' conftest.er1
>conftest.err
3068 cat conftest.err
>&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } &&
3071 { ac_try
='test -z "$ac_c_werror_flag"
3072 || test ! -s conftest.err'
3073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; } &&
3078 { ac_try
='test -s conftest.$ac_objext'
3079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); }; }; then
3086 echo "$as_me: failed program was:" >&5
3087 sed 's/^/| /' conftest.
$ac_ext >&5
3091 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3093 echo "$as_me:$LINENO: result: $xpdf_cv_sys_os2" >&5
3094 echo "${ECHO_T}$xpdf_cv_sys_os2" >&6
3095 if test "$xpdf_cv_sys_os2" = yes; then
3101 echo "$as_me:$LINENO: checking for DOS (with DJGPP)" >&5
3102 echo $ECHO_N "checking for DOS (with DJGPP)... $ECHO_C" >&6
3103 if test "${xpdf_cv_sys_dos+set}" = set; then
3104 echo $ECHO_N "(cached) $ECHO_C" >&6
3106 cat >conftest.
$ac_ext <<_ACEOF
3109 cat confdefs.h
>>conftest.
$ac_ext
3110 cat >>conftest.
$ac_ext <<_ACEOF
3111 /* end confdefs.h. */
3121 rm -f conftest.
$ac_objext
3122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3123 (eval $ac_compile) 2>conftest.er1
3125 grep -v '^ *+' conftest.er1
>conftest.err
3127 cat conftest.err
>&5
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); } &&
3130 { ac_try
='test -z "$ac_c_werror_flag"
3131 || test ! -s conftest.err'
3132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }; } &&
3137 { ac_try
='test -s conftest.$ac_objext'
3138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }; }; then
3145 echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.
$ac_ext >&5
3150 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3152 echo "$as_me:$LINENO: result: $xpdf_cv_sys_dos" >&5
3153 echo "${ECHO_T}$xpdf_cv_sys_dos" >&6
3154 if test "$xpdf_cv_sys_dos" = yes; then
3167 ac_cpp
='$CPP $CPPFLAGS'
3168 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3169 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3170 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3171 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3172 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3173 # On Suns, sometimes $CPP names a directory.
3174 if test -n "$CPP" && test -d "$CPP"; then
3177 if test -z "$CPP"; then
3178 if test "${ac_cv_prog_CPP+set}" = set; then
3179 echo $ECHO_N "(cached) $ECHO_C" >&6
3181 # Double quotes because CPP needs to be expanded
3182 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3185 for ac_c_preproc_warn_flag
in '' yes
3187 # Use a header file that comes with gcc, so configuring glibc
3188 # with a fresh cross-compiler works.
3189 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3190 # <limits.h> exists even on freestanding compilers.
3191 # On the NeXT, cc -E runs the code through the compiler's parser,
3192 # not just through cpp. "Syntax error" is here to catch this case.
3193 cat >conftest.
$ac_ext <<_ACEOF
3196 cat confdefs.h
>>conftest.
$ac_ext
3197 cat >>conftest.
$ac_ext <<_ACEOF
3198 /* end confdefs.h. */
3200 # include <limits.h>
3202 # include <assert.h>
3206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3207 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3209 grep -v '^ *+' conftest.er1
>conftest.err
3211 cat conftest.err
>&5
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); } >/dev
/null
; then
3214 if test -s conftest.err
; then
3215 ac_cpp_err
=$ac_c_preproc_warn_flag
3216 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3223 if test -z "$ac_cpp_err"; then
3226 echo "$as_me: failed program was:" >&5
3227 sed 's/^/| /' conftest.
$ac_ext >&5
3229 # Broken: fails on valid input.
3232 rm -f conftest.err conftest.
$ac_ext
3234 # OK, works on sane cases. Now check whether non-existent headers
3235 # can be detected and how.
3236 cat >conftest.
$ac_ext <<_ACEOF
3239 cat confdefs.h
>>conftest.
$ac_ext
3240 cat >>conftest.
$ac_ext <<_ACEOF
3241 /* end confdefs.h. */
3242 #include <ac_nonexistent.h>
3244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3245 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3247 grep -v '^ *+' conftest.er1
>conftest.err
3249 cat conftest.err
>&5
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); } >/dev
/null
; then
3252 if test -s conftest.err
; then
3253 ac_cpp_err
=$ac_c_preproc_warn_flag
3254 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3261 if test -z "$ac_cpp_err"; then
3262 # Broken: success on invalid input.
3265 echo "$as_me: failed program was:" >&5
3266 sed 's/^/| /' conftest.
$ac_ext >&5
3268 # Passes both tests.
3272 rm -f conftest.err conftest.
$ac_ext
3275 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3276 rm -f conftest.err conftest.
$ac_ext
3277 if $ac_preproc_ok; then
3289 echo "$as_me:$LINENO: result: $CPP" >&5
3290 echo "${ECHO_T}$CPP" >&6
3292 for ac_c_preproc_warn_flag
in '' yes
3294 # Use a header file that comes with gcc, so configuring glibc
3295 # with a fresh cross-compiler works.
3296 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3297 # <limits.h> exists even on freestanding compilers.
3298 # On the NeXT, cc -E runs the code through the compiler's parser,
3299 # not just through cpp. "Syntax error" is here to catch this case.
3300 cat >conftest.
$ac_ext <<_ACEOF
3303 cat confdefs.h
>>conftest.
$ac_ext
3304 cat >>conftest.
$ac_ext <<_ACEOF
3305 /* end confdefs.h. */
3307 # include <limits.h>
3309 # include <assert.h>
3313 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3314 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3316 grep -v '^ *+' conftest.er1
>conftest.err
3318 cat conftest.err
>&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); } >/dev
/null
; then
3321 if test -s conftest.err
; then
3322 ac_cpp_err
=$ac_c_preproc_warn_flag
3323 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3330 if test -z "$ac_cpp_err"; then
3333 echo "$as_me: failed program was:" >&5
3334 sed 's/^/| /' conftest.
$ac_ext >&5
3336 # Broken: fails on valid input.
3339 rm -f conftest.err conftest.
$ac_ext
3341 # OK, works on sane cases. Now check whether non-existent headers
3342 # can be detected and how.
3343 cat >conftest.
$ac_ext <<_ACEOF
3346 cat confdefs.h
>>conftest.
$ac_ext
3347 cat >>conftest.
$ac_ext <<_ACEOF
3348 /* end confdefs.h. */
3349 #include <ac_nonexistent.h>
3351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3352 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3354 grep -v '^ *+' conftest.er1
>conftest.err
3356 cat conftest.err
>&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); } >/dev
/null
; then
3359 if test -s conftest.err
; then
3360 ac_cpp_err
=$ac_c_preproc_warn_flag
3361 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3368 if test -z "$ac_cpp_err"; then
3369 # Broken: success on invalid input.
3372 echo "$as_me: failed program was:" >&5
3373 sed 's/^/| /' conftest.
$ac_ext >&5
3375 # Passes both tests.
3379 rm -f conftest.err conftest.
$ac_ext
3382 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3383 rm -f conftest.err conftest.
$ac_ext
3384 if $ac_preproc_ok; then
3387 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3388 See \`config.log' for more details." >&5
3389 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3390 See \`config.log' for more details." >&2;}
3391 { (exit 1); exit 1; }; }
3395 ac_cpp
='$CPP $CPPFLAGS'
3396 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3397 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3398 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3401 echo "$as_me:$LINENO: checking for X" >&5
3402 echo $ECHO_N "checking for X... $ECHO_C" >&6
3405 # Check whether --with-x or --without-x was given.
3406 if test "${with_x+set}" = set; then
3410 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3411 if test "x$with_x" = xno
; then
3412 # The user explicitly disabled X.
3415 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
3416 # Both variables are already set.
3419 if test "${ac_cv_have_x+set}" = set; then
3420 echo $ECHO_N "(cached) $ECHO_C" >&6
3422 # One or both of the vars are not set, and there is no cached value.
3423 ac_x_includes
=no ac_x_libraries
=no
3425 if mkdir conftest.dir
; then
3427 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3428 cat >Imakefile
<<'_ACEOF'
3430 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3432 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
3433 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3434 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3435 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3436 for ac_extension
in a so sl
; do
3437 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
3438 test -f $ac_im_libdir/libX11.
$ac_extension; then
3439 ac_im_usrlibdir
=$ac_im_libdir; break
3442 # Screen out bogus values from the imake configuration. They are
3443 # bogus both because they are the default anyway, and because
3444 # using them would break gcc on systems where it needs fixed includes.
3445 case $ac_im_incroot in
3447 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
3449 case $ac_im_usrlibdir in
3451 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
3458 # Standard set of common directories for X headers.
3459 # Check X11 before X11Rn because it is often a symlink to the current release.
3471 /usr/local/X11/include
3472 /usr/local/X11R6/include
3473 /usr/local/X11R5/include
3474 /usr/local/X11R4/include
3476 /usr/local/include/X11
3477 /usr/local/include/X11R6
3478 /usr/local/include/X11R5
3479 /usr/local/include/X11R4
3483 /usr/XFree86/include/X11
3487 /usr/unsupported/include
3489 /usr/local/x11r5/include
3490 /usr/lpp/Xamples/include
3492 /usr/openwin/include
3493 /usr/openwin/share/include'
3495 if test "$ac_x_includes" = no
; then
3496 # Guess where to find include files, by looking for Intrinsic.h.
3497 # First, try using that file with no special directory specified.
3498 cat >conftest.
$ac_ext <<_ACEOF
3501 cat confdefs.h
>>conftest.
$ac_ext
3502 cat >>conftest.
$ac_ext <<_ACEOF
3503 /* end confdefs.h. */
3504 #include <X11/Intrinsic.h>
3506 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3507 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3509 grep -v '^ *+' conftest.er1
>conftest.err
3511 cat conftest.err
>&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); } >/dev
/null
; then
3514 if test -s conftest.err
; then
3515 ac_cpp_err
=$ac_c_preproc_warn_flag
3516 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3523 if test -z "$ac_cpp_err"; then
3524 # We can compile using X headers with no special include directory.
3527 echo "$as_me: failed program was:" >&5
3528 sed 's/^/| /' conftest.
$ac_ext >&5
3530 for ac_dir
in $ac_x_header_dirs; do
3531 if test -r "$ac_dir/X11/Intrinsic.h"; then
3532 ac_x_includes
=$ac_dir
3537 rm -f conftest.err conftest.
$ac_ext
3538 fi # $ac_x_includes = no
3540 if test "$ac_x_libraries" = no
; then
3541 # Check for the libraries.
3542 # See if we find them without any special options.
3543 # Don't add to $LIBS permanently.
3546 cat >conftest.
$ac_ext <<_ACEOF
3549 cat confdefs.h
>>conftest.
$ac_ext
3550 cat >>conftest.
$ac_ext <<_ACEOF
3551 /* end confdefs.h. */
3552 #include <X11/Intrinsic.h>
3561 rm -f conftest.
$ac_objext conftest
$ac_exeext
3562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3563 (eval $ac_link) 2>conftest.er1
3565 grep -v '^ *+' conftest.er1
>conftest.err
3567 cat conftest.err
>&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } &&
3570 { ac_try
='test -z "$ac_c_werror_flag"
3571 || test ! -s conftest.err'
3572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); }; } &&
3577 { ac_try
='test -s conftest$ac_exeext'
3578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); }; }; then
3584 # We can link X programs with no special library path.
3587 echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.
$ac_ext >&5
3591 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3593 # Don't even attempt the hair of trying to link an X program!
3594 for ac_extension
in a so sl
; do
3595 if test -r $ac_dir/libXt.
$ac_extension; then
3596 ac_x_libraries
=$ac_dir
3602 rm -f conftest.err conftest.
$ac_objext \
3603 conftest
$ac_exeext conftest.
$ac_ext
3604 fi # $ac_x_libraries = no
3606 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
3607 # Didn't find X anywhere. Cache the known absence of X.
3608 ac_cv_have_x
="have_x=no"
3610 # Record where we found X for the cache.
3611 ac_cv_have_x
="have_x=yes \
3612 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3617 eval "$ac_cv_have_x"
3620 if test "$have_x" != yes; then
3621 echo "$as_me:$LINENO: result: $have_x" >&5
3622 echo "${ECHO_T}$have_x" >&6
3625 # If each of the values was on the command line, it overrides each guess.
3626 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
3627 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
3628 # Update the cache value to reflect the command line values.
3629 ac_cv_have_x
="have_x=yes \
3630 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3631 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3632 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
3635 if test "$no_x" = yes; then
3636 # Not all programs may use this symbol, but it does not hurt to define it.
3638 cat >>confdefs.h
<<\_ACEOF
3639 #define X_DISPLAY_MISSING 1
3642 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
3644 if test -n "$x_includes"; then
3645 X_CFLAGS
="$X_CFLAGS -I$x_includes"
3648 # It would also be nice to do this for all -L options, not just this one.
3649 if test -n "$x_libraries"; then
3650 X_LIBS
="$X_LIBS -L$x_libraries"
3651 # For Solaris; some versions of Sun CC require a space after -R and
3652 # others require no space. Words are not sufficient . . . .
3653 case `(uname -sr) 2>/dev/null` in
3655 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3656 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3657 ac_xsave_LIBS
=$LIBS; LIBS
="$LIBS -R$x_libraries"
3658 cat >conftest.
$ac_ext <<_ACEOF
3661 cat confdefs.h
>>conftest.
$ac_ext
3662 cat >>conftest.
$ac_ext <<_ACEOF
3663 /* end confdefs.h. */
3673 rm -f conftest.
$ac_objext conftest
$ac_exeext
3674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3675 (eval $ac_link) 2>conftest.er1
3677 grep -v '^ *+' conftest.er1
>conftest.err
3679 cat conftest.err
>&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); } &&
3682 { ac_try
='test -z "$ac_c_werror_flag"
3683 || test ! -s conftest.err'
3684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); }; } &&
3689 { ac_try
='test -s conftest$ac_exeext'
3690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); }; }; then
3697 echo "$as_me: failed program was:" >&5
3698 sed 's/^/| /' conftest.
$ac_ext >&5
3702 rm -f conftest.err conftest.
$ac_objext \
3703 conftest
$ac_exeext conftest.
$ac_ext
3704 if test $ac_R_nospace = yes; then
3705 echo "$as_me:$LINENO: result: no" >&5
3706 echo "${ECHO_T}no" >&6
3707 X_LIBS
="$X_LIBS -R$x_libraries"
3709 LIBS
="$ac_xsave_LIBS -R $x_libraries"
3710 cat >conftest.
$ac_ext <<_ACEOF
3713 cat confdefs.h
>>conftest.
$ac_ext
3714 cat >>conftest.
$ac_ext <<_ACEOF
3715 /* end confdefs.h. */
3725 rm -f conftest.
$ac_objext conftest
$ac_exeext
3726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3727 (eval $ac_link) 2>conftest.er1
3729 grep -v '^ *+' conftest.er1
>conftest.err
3731 cat conftest.err
>&5
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); } &&
3734 { ac_try
='test -z "$ac_c_werror_flag"
3735 || test ! -s conftest.err'
3736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 (exit $ac_status); }; } &&
3741 { ac_try
='test -s conftest$ac_exeext'
3742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); }; }; then
3749 echo "$as_me: failed program was:" >&5
3750 sed 's/^/| /' conftest.
$ac_ext >&5
3754 rm -f conftest.err conftest.
$ac_objext \
3755 conftest
$ac_exeext conftest.
$ac_ext
3756 if test $ac_R_space = yes; then
3757 echo "$as_me:$LINENO: result: yes" >&5
3758 echo "${ECHO_T}yes" >&6
3759 X_LIBS
="$X_LIBS -R $x_libraries"
3761 echo "$as_me:$LINENO: result: neither works" >&5
3762 echo "${ECHO_T}neither works" >&6
3769 # Check for system-dependent libraries X programs must link with.
3770 # Do this before checking for the system-independent R6 libraries
3771 # (-lICE), since we may need -lsocket or whatever for X linking.
3773 if test "$ISC" = yes; then
3774 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
3776 # Martyn Johnson says this is needed for Ultrix, if the X
3777 # libraries were built with DECnet support. And Karl Berry says
3778 # the Alpha needs dnet_stub (dnet does not exist).
3779 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS $X_LIBS -lX11"
3780 cat >conftest.
$ac_ext <<_ACEOF
3783 cat confdefs.h
>>conftest.
$ac_ext
3784 cat >>conftest.
$ac_ext <<_ACEOF
3785 /* end confdefs.h. */
3787 /* Override any gcc2 internal prototype to avoid an error. */
3791 /* We use char because int might match the return type of a gcc2
3792 builtin and then its argument prototype would still apply. */
3793 char XOpenDisplay ();
3802 rm -f conftest.
$ac_objext conftest
$ac_exeext
3803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3804 (eval $ac_link) 2>conftest.er1
3806 grep -v '^ *+' conftest.er1
>conftest.err
3808 cat conftest.err
>&5
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); } &&
3811 { ac_try
='test -z "$ac_c_werror_flag"
3812 || test ! -s conftest.err'
3813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); }; } &&
3818 { ac_try
='test -s conftest$ac_exeext'
3819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 (exit $ac_status); }; }; then
3826 echo "$as_me: failed program was:" >&5
3827 sed 's/^/| /' conftest.
$ac_ext >&5
3829 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3830 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3831 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3832 echo $ECHO_N "(cached) $ECHO_C" >&6
3834 ac_check_lib_save_LIBS
=$LIBS
3836 cat >conftest.
$ac_ext <<_ACEOF
3839 cat confdefs.h
>>conftest.
$ac_ext
3840 cat >>conftest.
$ac_ext <<_ACEOF
3841 /* end confdefs.h. */
3843 /* Override any gcc2 internal prototype to avoid an error. */
3847 /* We use char because int might match the return type of a gcc2
3848 builtin and then its argument prototype would still apply. */
3858 rm -f conftest.
$ac_objext conftest
$ac_exeext
3859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3860 (eval $ac_link) 2>conftest.er1
3862 grep -v '^ *+' conftest.er1
>conftest.err
3864 cat conftest.err
>&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); } &&
3867 { ac_try
='test -z "$ac_c_werror_flag"
3868 || test ! -s conftest.err'
3869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); }; } &&
3874 { ac_try
='test -s conftest$ac_exeext'
3875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); }; }; then
3880 ac_cv_lib_dnet_dnet_ntoa
=yes
3882 echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.
$ac_ext >&5
3885 ac_cv_lib_dnet_dnet_ntoa
=no
3887 rm -f conftest.err conftest.
$ac_objext \
3888 conftest
$ac_exeext conftest.
$ac_ext
3889 LIBS
=$ac_check_lib_save_LIBS
3891 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3892 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3893 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3894 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
3897 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
3898 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3899 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3900 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3901 echo $ECHO_N "(cached) $ECHO_C" >&6
3903 ac_check_lib_save_LIBS
=$LIBS
3904 LIBS
="-ldnet_stub $LIBS"
3905 cat >conftest.
$ac_ext <<_ACEOF
3908 cat confdefs.h
>>conftest.
$ac_ext
3909 cat >>conftest.
$ac_ext <<_ACEOF
3910 /* end confdefs.h. */
3912 /* Override any gcc2 internal prototype to avoid an error. */
3916 /* We use char because int might match the return type of a gcc2
3917 builtin and then its argument prototype would still apply. */
3927 rm -f conftest.
$ac_objext conftest
$ac_exeext
3928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3929 (eval $ac_link) 2>conftest.er1
3931 grep -v '^ *+' conftest.er1
>conftest.err
3933 cat conftest.err
>&5
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); } &&
3936 { ac_try
='test -z "$ac_c_werror_flag"
3937 || test ! -s conftest.err'
3938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); }; } &&
3943 { ac_try
='test -s conftest$ac_exeext'
3944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); }; }; then
3949 ac_cv_lib_dnet_stub_dnet_ntoa
=yes
3951 echo "$as_me: failed program was:" >&5
3952 sed 's/^/| /' conftest.
$ac_ext >&5
3954 ac_cv_lib_dnet_stub_dnet_ntoa
=no
3956 rm -f conftest.err conftest.
$ac_objext \
3957 conftest
$ac_exeext conftest.
$ac_ext
3958 LIBS
=$ac_check_lib_save_LIBS
3960 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3961 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3962 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3963 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
3968 rm -f conftest.err conftest.
$ac_objext \
3969 conftest
$ac_exeext conftest.
$ac_ext
3970 LIBS
="$ac_xsave_LIBS"
3972 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3973 # to get the SysV transport functions.
3974 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3976 # The nsl library prevents programs from opening the X display
3977 # on Irix 5.2, according to T.E. Dickey.
3978 # The functions gethostbyname, getservbyname, and inet_addr are
3979 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3980 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3981 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3982 if test "${ac_cv_func_gethostbyname+set}" = set; then
3983 echo $ECHO_N "(cached) $ECHO_C" >&6
3985 cat >conftest.
$ac_ext <<_ACEOF
3988 cat confdefs.h
>>conftest.
$ac_ext
3989 cat >>conftest.
$ac_ext <<_ACEOF
3990 /* end confdefs.h. */
3991 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3993 #define gethostbyname innocuous_gethostbyname
3995 /* System header to define __stub macros and hopefully few prototypes,
3996 which can conflict with char gethostbyname (); below.
3997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3998 <limits.h> exists even on freestanding compilers. */
4001 # include <limits.h>
4003 # include <assert.h>
4006 #undef gethostbyname
4008 /* Override any gcc2 internal prototype to avoid an error. */
4013 /* We use char because int might match the return type of a gcc2
4014 builtin and then its argument prototype would still apply. */
4015 char gethostbyname ();
4016 /* The GNU C library defines this for functions which it implements
4017 to always fail with ENOSYS. Some functions are actually named
4018 something starting with __ and the normal name is an alias. */
4019 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4022 char (*f) () = gethostbyname;
4031 return f != gethostbyname;
4036 rm -f conftest.
$ac_objext conftest
$ac_exeext
4037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4038 (eval $ac_link) 2>conftest.er1
4040 grep -v '^ *+' conftest.er1
>conftest.err
4042 cat conftest.err
>&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } &&
4045 { ac_try
='test -z "$ac_c_werror_flag"
4046 || test ! -s conftest.err'
4047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }; } &&
4052 { ac_try
='test -s conftest$ac_exeext'
4053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); }; }; then
4058 ac_cv_func_gethostbyname
=yes
4060 echo "$as_me: failed program was:" >&5
4061 sed 's/^/| /' conftest.
$ac_ext >&5
4063 ac_cv_func_gethostbyname
=no
4065 rm -f conftest.err conftest.
$ac_objext \
4066 conftest
$ac_exeext conftest.
$ac_ext
4068 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4069 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4071 if test $ac_cv_func_gethostbyname = no
; then
4072 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4073 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4074 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4075 echo $ECHO_N "(cached) $ECHO_C" >&6
4077 ac_check_lib_save_LIBS
=$LIBS
4079 cat >conftest.
$ac_ext <<_ACEOF
4082 cat confdefs.h
>>conftest.
$ac_ext
4083 cat >>conftest.
$ac_ext <<_ACEOF
4084 /* end confdefs.h. */
4086 /* Override any gcc2 internal prototype to avoid an error. */
4090 /* We use char because int might match the return type of a gcc2
4091 builtin and then its argument prototype would still apply. */
4092 char gethostbyname ();
4101 rm -f conftest.
$ac_objext conftest
$ac_exeext
4102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4103 (eval $ac_link) 2>conftest.er1
4105 grep -v '^ *+' conftest.er1
>conftest.err
4107 cat conftest.err
>&5
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); } &&
4110 { ac_try
='test -z "$ac_c_werror_flag"
4111 || test ! -s conftest.err'
4112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); }; } &&
4117 { ac_try
='test -s conftest$ac_exeext'
4118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); }; }; then
4123 ac_cv_lib_nsl_gethostbyname
=yes
4125 echo "$as_me: failed program was:" >&5
4126 sed 's/^/| /' conftest.
$ac_ext >&5
4128 ac_cv_lib_nsl_gethostbyname
=no
4130 rm -f conftest.err conftest.
$ac_objext \
4131 conftest
$ac_exeext conftest.
$ac_ext
4132 LIBS
=$ac_check_lib_save_LIBS
4134 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4135 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4136 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4137 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
4140 if test $ac_cv_lib_nsl_gethostbyname = no
; then
4141 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4142 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
4143 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4144 echo $ECHO_N "(cached) $ECHO_C" >&6
4146 ac_check_lib_save_LIBS
=$LIBS
4148 cat >conftest.
$ac_ext <<_ACEOF
4151 cat confdefs.h
>>conftest.
$ac_ext
4152 cat >>conftest.
$ac_ext <<_ACEOF
4153 /* end confdefs.h. */
4155 /* Override any gcc2 internal prototype to avoid an error. */
4159 /* We use char because int might match the return type of a gcc2
4160 builtin and then its argument prototype would still apply. */
4161 char gethostbyname ();
4170 rm -f conftest.
$ac_objext conftest
$ac_exeext
4171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4172 (eval $ac_link) 2>conftest.er1
4174 grep -v '^ *+' conftest.er1
>conftest.err
4176 cat conftest.err
>&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); } &&
4179 { ac_try
='test -z "$ac_c_werror_flag"
4180 || test ! -s conftest.err'
4181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); }; } &&
4186 { ac_try
='test -s conftest$ac_exeext'
4187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); }; }; then
4192 ac_cv_lib_bsd_gethostbyname
=yes
4194 echo "$as_me: failed program was:" >&5
4195 sed 's/^/| /' conftest.
$ac_ext >&5
4197 ac_cv_lib_bsd_gethostbyname
=no
4199 rm -f conftest.err conftest.
$ac_objext \
4200 conftest
$ac_exeext conftest.
$ac_ext
4201 LIBS
=$ac_check_lib_save_LIBS
4203 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4204 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
4205 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4206 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
4212 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4213 # socket/setsockopt and other routines are undefined under SCO ODT
4214 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4215 # on later versions), says Simon Leinen: it contains gethostby*
4216 # variants that don't use the name server (or something). -lsocket
4217 # must be given before -lnsl if both are needed. We assume that
4218 # if connect needs -lnsl, so does gethostbyname.
4219 echo "$as_me:$LINENO: checking for connect" >&5
4220 echo $ECHO_N "checking for connect... $ECHO_C" >&6
4221 if test "${ac_cv_func_connect+set}" = set; then
4222 echo $ECHO_N "(cached) $ECHO_C" >&6
4224 cat >conftest.
$ac_ext <<_ACEOF
4227 cat confdefs.h
>>conftest.
$ac_ext
4228 cat >>conftest.
$ac_ext <<_ACEOF
4229 /* end confdefs.h. */
4230 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4232 #define connect innocuous_connect
4234 /* System header to define __stub macros and hopefully few prototypes,
4235 which can conflict with char connect (); below.
4236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4237 <limits.h> exists even on freestanding compilers. */
4240 # include <limits.h>
4242 # include <assert.h>
4247 /* Override any gcc2 internal prototype to avoid an error. */
4252 /* We use char because int might match the return type of a gcc2
4253 builtin and then its argument prototype would still apply. */
4255 /* The GNU C library defines this for functions which it implements
4256 to always fail with ENOSYS. Some functions are actually named
4257 something starting with __ and the normal name is an alias. */
4258 #if defined (__stub_connect) || defined (__stub___connect)
4261 char (*f) () = connect;
4270 return f != connect;
4275 rm -f conftest.
$ac_objext conftest
$ac_exeext
4276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4277 (eval $ac_link) 2>conftest.er1
4279 grep -v '^ *+' conftest.er1
>conftest.err
4281 cat conftest.err
>&5
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); } &&
4284 { ac_try
='test -z "$ac_c_werror_flag"
4285 || test ! -s conftest.err'
4286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); }; } &&
4291 { ac_try
='test -s conftest$ac_exeext'
4292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); }; }; then
4297 ac_cv_func_connect
=yes
4299 echo "$as_me: failed program was:" >&5
4300 sed 's/^/| /' conftest.
$ac_ext >&5
4302 ac_cv_func_connect
=no
4304 rm -f conftest.err conftest.
$ac_objext \
4305 conftest
$ac_exeext conftest.
$ac_ext
4307 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4308 echo "${ECHO_T}$ac_cv_func_connect" >&6
4310 if test $ac_cv_func_connect = no
; then
4311 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4312 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4313 if test "${ac_cv_lib_socket_connect+set}" = set; then
4314 echo $ECHO_N "(cached) $ECHO_C" >&6
4316 ac_check_lib_save_LIBS
=$LIBS
4317 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
4318 cat >conftest.
$ac_ext <<_ACEOF
4321 cat confdefs.h
>>conftest.
$ac_ext
4322 cat >>conftest.
$ac_ext <<_ACEOF
4323 /* end confdefs.h. */
4325 /* Override any gcc2 internal prototype to avoid an error. */
4329 /* We use char because int might match the return type of a gcc2
4330 builtin and then its argument prototype would still apply. */
4340 rm -f conftest.
$ac_objext conftest
$ac_exeext
4341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4342 (eval $ac_link) 2>conftest.er1
4344 grep -v '^ *+' conftest.er1
>conftest.err
4346 cat conftest.err
>&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); } &&
4349 { ac_try
='test -z "$ac_c_werror_flag"
4350 || test ! -s conftest.err'
4351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); }; } &&
4356 { ac_try
='test -s conftest$ac_exeext'
4357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); }; }; then
4362 ac_cv_lib_socket_connect
=yes
4364 echo "$as_me: failed program was:" >&5
4365 sed 's/^/| /' conftest.
$ac_ext >&5
4367 ac_cv_lib_socket_connect
=no
4369 rm -f conftest.err conftest.
$ac_objext \
4370 conftest
$ac_exeext conftest.
$ac_ext
4371 LIBS
=$ac_check_lib_save_LIBS
4373 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4374 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4375 if test $ac_cv_lib_socket_connect = yes; then
4376 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
4381 # Guillermo Gomez says -lposix is necessary on A/UX.
4382 echo "$as_me:$LINENO: checking for remove" >&5
4383 echo $ECHO_N "checking for remove... $ECHO_C" >&6
4384 if test "${ac_cv_func_remove+set}" = set; then
4385 echo $ECHO_N "(cached) $ECHO_C" >&6
4387 cat >conftest.
$ac_ext <<_ACEOF
4390 cat confdefs.h
>>conftest.
$ac_ext
4391 cat >>conftest.
$ac_ext <<_ACEOF
4392 /* end confdefs.h. */
4393 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4395 #define remove innocuous_remove
4397 /* System header to define __stub macros and hopefully few prototypes,
4398 which can conflict with char remove (); below.
4399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4400 <limits.h> exists even on freestanding compilers. */
4403 # include <limits.h>
4405 # include <assert.h>
4410 /* Override any gcc2 internal prototype to avoid an error. */
4415 /* We use char because int might match the return type of a gcc2
4416 builtin and then its argument prototype would still apply. */
4418 /* The GNU C library defines this for functions which it implements
4419 to always fail with ENOSYS. Some functions are actually named
4420 something starting with __ and the normal name is an alias. */
4421 #if defined (__stub_remove) || defined (__stub___remove)
4424 char (*f) () = remove;
4438 rm -f conftest.
$ac_objext conftest
$ac_exeext
4439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4440 (eval $ac_link) 2>conftest.er1
4442 grep -v '^ *+' conftest.er1
>conftest.err
4444 cat conftest.err
>&5
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); } &&
4447 { ac_try
='test -z "$ac_c_werror_flag"
4448 || test ! -s conftest.err'
4449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); }; } &&
4454 { ac_try
='test -s conftest$ac_exeext'
4455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); }; }; then
4460 ac_cv_func_remove
=yes
4462 echo "$as_me: failed program was:" >&5
4463 sed 's/^/| /' conftest.
$ac_ext >&5
4465 ac_cv_func_remove
=no
4467 rm -f conftest.err conftest.
$ac_objext \
4468 conftest
$ac_exeext conftest.
$ac_ext
4470 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4471 echo "${ECHO_T}$ac_cv_func_remove" >&6
4473 if test $ac_cv_func_remove = no
; then
4474 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4475 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4476 if test "${ac_cv_lib_posix_remove+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4479 ac_check_lib_save_LIBS
=$LIBS
4480 LIBS
="-lposix $LIBS"
4481 cat >conftest.
$ac_ext <<_ACEOF
4484 cat confdefs.h
>>conftest.
$ac_ext
4485 cat >>conftest.
$ac_ext <<_ACEOF
4486 /* end confdefs.h. */
4488 /* Override any gcc2 internal prototype to avoid an error. */
4492 /* We use char because int might match the return type of a gcc2
4493 builtin and then its argument prototype would still apply. */
4503 rm -f conftest.
$ac_objext conftest
$ac_exeext
4504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4505 (eval $ac_link) 2>conftest.er1
4507 grep -v '^ *+' conftest.er1
>conftest.err
4509 cat conftest.err
>&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); } &&
4512 { ac_try
='test -z "$ac_c_werror_flag"
4513 || test ! -s conftest.err'
4514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); }; } &&
4519 { ac_try
='test -s conftest$ac_exeext'
4520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); }; }; then
4525 ac_cv_lib_posix_remove
=yes
4527 echo "$as_me: failed program was:" >&5
4528 sed 's/^/| /' conftest.
$ac_ext >&5
4530 ac_cv_lib_posix_remove
=no
4532 rm -f conftest.err conftest.
$ac_objext \
4533 conftest
$ac_exeext conftest.
$ac_ext
4534 LIBS
=$ac_check_lib_save_LIBS
4536 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4537 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4538 if test $ac_cv_lib_posix_remove = yes; then
4539 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
4544 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4545 echo "$as_me:$LINENO: checking for shmat" >&5
4546 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4547 if test "${ac_cv_func_shmat+set}" = set; then
4548 echo $ECHO_N "(cached) $ECHO_C" >&6
4550 cat >conftest.
$ac_ext <<_ACEOF
4553 cat confdefs.h
>>conftest.
$ac_ext
4554 cat >>conftest.
$ac_ext <<_ACEOF
4555 /* end confdefs.h. */
4556 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4558 #define shmat innocuous_shmat
4560 /* System header to define __stub macros and hopefully few prototypes,
4561 which can conflict with char shmat (); below.
4562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4563 <limits.h> exists even on freestanding compilers. */
4566 # include <limits.h>
4568 # include <assert.h>
4573 /* Override any gcc2 internal prototype to avoid an error. */
4578 /* We use char because int might match the return type of a gcc2
4579 builtin and then its argument prototype would still apply. */
4581 /* The GNU C library defines this for functions which it implements
4582 to always fail with ENOSYS. Some functions are actually named
4583 something starting with __ and the normal name is an alias. */
4584 #if defined (__stub_shmat) || defined (__stub___shmat)
4587 char (*f) () = shmat;
4601 rm -f conftest.
$ac_objext conftest
$ac_exeext
4602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4603 (eval $ac_link) 2>conftest.er1
4605 grep -v '^ *+' conftest.er1
>conftest.err
4607 cat conftest.err
>&5
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); } &&
4610 { ac_try
='test -z "$ac_c_werror_flag"
4611 || test ! -s conftest.err'
4612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; } &&
4617 { ac_try
='test -s conftest$ac_exeext'
4618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); }; }; then
4623 ac_cv_func_shmat
=yes
4625 echo "$as_me: failed program was:" >&5
4626 sed 's/^/| /' conftest.
$ac_ext >&5
4630 rm -f conftest.err conftest.
$ac_objext \
4631 conftest
$ac_exeext conftest.
$ac_ext
4633 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4634 echo "${ECHO_T}$ac_cv_func_shmat" >&6
4636 if test $ac_cv_func_shmat = no
; then
4637 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4638 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4639 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4640 echo $ECHO_N "(cached) $ECHO_C" >&6
4642 ac_check_lib_save_LIBS
=$LIBS
4644 cat >conftest.
$ac_ext <<_ACEOF
4647 cat confdefs.h
>>conftest.
$ac_ext
4648 cat >>conftest.
$ac_ext <<_ACEOF
4649 /* end confdefs.h. */
4651 /* Override any gcc2 internal prototype to avoid an error. */
4655 /* We use char because int might match the return type of a gcc2
4656 builtin and then its argument prototype would still apply. */
4666 rm -f conftest.
$ac_objext conftest
$ac_exeext
4667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4668 (eval $ac_link) 2>conftest.er1
4670 grep -v '^ *+' conftest.er1
>conftest.err
4672 cat conftest.err
>&5
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); } &&
4675 { ac_try
='test -z "$ac_c_werror_flag"
4676 || test ! -s conftest.err'
4677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); }; } &&
4682 { ac_try
='test -s conftest$ac_exeext'
4683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); }; }; then
4688 ac_cv_lib_ipc_shmat
=yes
4690 echo "$as_me: failed program was:" >&5
4691 sed 's/^/| /' conftest.
$ac_ext >&5
4693 ac_cv_lib_ipc_shmat
=no
4695 rm -f conftest.err conftest.
$ac_objext \
4696 conftest
$ac_exeext conftest.
$ac_ext
4697 LIBS
=$ac_check_lib_save_LIBS
4699 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4700 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4701 if test $ac_cv_lib_ipc_shmat = yes; then
4702 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
4708 # Check for libraries that X11R6 Xt/Xaw programs need.
4709 ac_save_LDFLAGS
=$LDFLAGS
4710 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
4711 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4712 # check for ICE first), but we must link in the order -lSM -lICE or
4713 # we get undefined symbols. So assume we have SM if we have ICE.
4714 # These have to be linked with before -lX11, unlike the other
4715 # libraries we check for below, so use a different variable.
4716 # John Interrante, Karl Berry
4717 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4718 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4719 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4722 ac_check_lib_save_LIBS
=$LIBS
4723 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
4724 cat >conftest.
$ac_ext <<_ACEOF
4727 cat confdefs.h
>>conftest.
$ac_ext
4728 cat >>conftest.
$ac_ext <<_ACEOF
4729 /* end confdefs.h. */
4731 /* Override any gcc2 internal prototype to avoid an error. */
4735 /* We use char because int might match the return type of a gcc2
4736 builtin and then its argument prototype would still apply. */
4737 char IceConnectionNumber ();
4741 IceConnectionNumber ();
4746 rm -f conftest.
$ac_objext conftest
$ac_exeext
4747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4748 (eval $ac_link) 2>conftest.er1
4750 grep -v '^ *+' conftest.er1
>conftest.err
4752 cat conftest.err
>&5
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); } &&
4755 { ac_try
='test -z "$ac_c_werror_flag"
4756 || test ! -s conftest.err'
4757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); }; } &&
4762 { ac_try
='test -s conftest$ac_exeext'
4763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); }; }; then
4768 ac_cv_lib_ICE_IceConnectionNumber
=yes
4770 echo "$as_me: failed program was:" >&5
4771 sed 's/^/| /' conftest.
$ac_ext >&5
4773 ac_cv_lib_ICE_IceConnectionNumber
=no
4775 rm -f conftest.err conftest.
$ac_objext \
4776 conftest
$ac_exeext conftest.
$ac_ext
4777 LIBS
=$ac_check_lib_save_LIBS
4779 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4780 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4781 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4782 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
4785 LDFLAGS
=$ac_save_LDFLAGS
4795 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
4796 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4797 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4798 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4800 echo $ECHO_N "(cached) $ECHO_C" >&6
4802 cat >conftest.
$ac_ext <<_ACEOF
4805 cat confdefs.h
>>conftest.
$ac_ext
4806 cat >>conftest.
$ac_ext <<_ACEOF
4807 /* end confdefs.h. */
4808 #include <sys/types.h>
4820 rm -f conftest.
$ac_objext
4821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4822 (eval $ac_compile) 2>conftest.er1
4824 grep -v '^ *+' conftest.er1
>conftest.err
4826 cat conftest.err
>&5
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); } &&
4829 { ac_try
='test -z "$ac_c_werror_flag"
4830 || test ! -s conftest.err'
4831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); }; } &&
4836 { ac_try
='test -s conftest.$ac_objext'
4837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); }; }; then
4842 eval "$as_ac_Header=yes"
4844 echo "$as_me: failed program was:" >&5
4845 sed 's/^/| /' conftest.
$ac_ext >&5
4847 eval "$as_ac_Header=no"
4849 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4852 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4854 cat >>confdefs.h
<<_ACEOF
4855 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4858 ac_header_dirent
=$ac_hdr; break
4862 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4863 if test $ac_header_dirent = dirent.h
; then
4864 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4865 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4866 if test "${ac_cv_search_opendir+set}" = set; then
4867 echo $ECHO_N "(cached) $ECHO_C" >&6
4869 ac_func_search_save_LIBS
=$LIBS
4870 ac_cv_search_opendir
=no
4871 cat >conftest.
$ac_ext <<_ACEOF
4874 cat confdefs.h
>>conftest.
$ac_ext
4875 cat >>conftest.
$ac_ext <<_ACEOF
4876 /* end confdefs.h. */
4878 /* Override any gcc2 internal prototype to avoid an error. */
4882 /* We use char because int might match the return type of a gcc2
4883 builtin and then its argument prototype would still apply. */
4893 rm -f conftest.
$ac_objext conftest
$ac_exeext
4894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4895 (eval $ac_link) 2>conftest.er1
4897 grep -v '^ *+' conftest.er1
>conftest.err
4899 cat conftest.err
>&5
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); } &&
4902 { ac_try
='test -z "$ac_c_werror_flag"
4903 || test ! -s conftest.err'
4904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); }; } &&
4909 { ac_try
='test -s conftest$ac_exeext'
4910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); }; }; then
4915 ac_cv_search_opendir
="none required"
4917 echo "$as_me: failed program was:" >&5
4918 sed 's/^/| /' conftest.
$ac_ext >&5
4921 rm -f conftest.err conftest.
$ac_objext \
4922 conftest
$ac_exeext conftest.
$ac_ext
4923 if test "$ac_cv_search_opendir" = no
; then
4924 for ac_lib
in dir
; do
4925 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4926 cat >conftest.
$ac_ext <<_ACEOF
4929 cat confdefs.h
>>conftest.
$ac_ext
4930 cat >>conftest.
$ac_ext <<_ACEOF
4931 /* end confdefs.h. */
4933 /* Override any gcc2 internal prototype to avoid an error. */
4937 /* We use char because int might match the return type of a gcc2
4938 builtin and then its argument prototype would still apply. */
4948 rm -f conftest.
$ac_objext conftest
$ac_exeext
4949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4950 (eval $ac_link) 2>conftest.er1
4952 grep -v '^ *+' conftest.er1
>conftest.err
4954 cat conftest.err
>&5
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); } &&
4957 { ac_try
='test -z "$ac_c_werror_flag"
4958 || test ! -s conftest.err'
4959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); }; } &&
4964 { ac_try
='test -s conftest$ac_exeext'
4965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); }; }; then
4970 ac_cv_search_opendir
="-l$ac_lib"
4973 echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.
$ac_ext >&5
4977 rm -f conftest.err conftest.
$ac_objext \
4978 conftest
$ac_exeext conftest.
$ac_ext
4981 LIBS
=$ac_func_search_save_LIBS
4983 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4984 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4985 if test "$ac_cv_search_opendir" != no
; then
4986 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
4991 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4992 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4993 if test "${ac_cv_search_opendir+set}" = set; then
4994 echo $ECHO_N "(cached) $ECHO_C" >&6
4996 ac_func_search_save_LIBS
=$LIBS
4997 ac_cv_search_opendir
=no
4998 cat >conftest.
$ac_ext <<_ACEOF
5001 cat confdefs.h
>>conftest.
$ac_ext
5002 cat >>conftest.
$ac_ext <<_ACEOF
5003 /* end confdefs.h. */
5005 /* Override any gcc2 internal prototype to avoid an error. */
5009 /* We use char because int might match the return type of a gcc2
5010 builtin and then its argument prototype would still apply. */
5020 rm -f conftest.
$ac_objext conftest
$ac_exeext
5021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5022 (eval $ac_link) 2>conftest.er1
5024 grep -v '^ *+' conftest.er1
>conftest.err
5026 cat conftest.err
>&5
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); } &&
5029 { ac_try
='test -z "$ac_c_werror_flag"
5030 || test ! -s conftest.err'
5031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); }; } &&
5036 { ac_try
='test -s conftest$ac_exeext'
5037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); }; }; then
5042 ac_cv_search_opendir
="none required"
5044 echo "$as_me: failed program was:" >&5
5045 sed 's/^/| /' conftest.
$ac_ext >&5
5048 rm -f conftest.err conftest.
$ac_objext \
5049 conftest
$ac_exeext conftest.
$ac_ext
5050 if test "$ac_cv_search_opendir" = no
; then
5052 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5053 cat >conftest.
$ac_ext <<_ACEOF
5056 cat confdefs.h
>>conftest.
$ac_ext
5057 cat >>conftest.
$ac_ext <<_ACEOF
5058 /* end confdefs.h. */
5060 /* Override any gcc2 internal prototype to avoid an error. */
5064 /* We use char because int might match the return type of a gcc2
5065 builtin and then its argument prototype would still apply. */
5075 rm -f conftest.
$ac_objext conftest
$ac_exeext
5076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5077 (eval $ac_link) 2>conftest.er1
5079 grep -v '^ *+' conftest.er1
>conftest.err
5081 cat conftest.err
>&5
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); } &&
5084 { ac_try
='test -z "$ac_c_werror_flag"
5085 || test ! -s conftest.err'
5086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); }; } &&
5091 { ac_try
='test -s conftest$ac_exeext'
5092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); }; }; then
5097 ac_cv_search_opendir
="-l$ac_lib"
5100 echo "$as_me: failed program was:" >&5
5101 sed 's/^/| /' conftest.
$ac_ext >&5
5104 rm -f conftest.err conftest.
$ac_objext \
5105 conftest
$ac_exeext conftest.
$ac_ext
5108 LIBS
=$ac_func_search_save_LIBS
5110 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5111 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5112 if test "$ac_cv_search_opendir" != no
; then
5113 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
5121 ac_cpp
='$CXXCPP $CPPFLAGS'
5122 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5123 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5124 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5128 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5129 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5130 if test "${ac_cv_func_gethostbyname+set}" = set; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5133 cat >conftest.
$ac_ext <<_ACEOF
5136 cat confdefs.h
>>conftest.
$ac_ext
5137 cat >>conftest.
$ac_ext <<_ACEOF
5138 /* end confdefs.h. */
5139 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5141 #define gethostbyname innocuous_gethostbyname
5143 /* System header to define __stub macros and hopefully few prototypes,
5144 which can conflict with char gethostbyname (); below.
5145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5146 <limits.h> exists even on freestanding compilers. */
5149 # include <limits.h>
5151 # include <assert.h>
5154 #undef gethostbyname
5156 /* Override any gcc2 internal prototype to avoid an error. */
5161 /* We use char because int might match the return type of a gcc2
5162 builtin and then its argument prototype would still apply. */
5163 char gethostbyname ();
5164 /* The GNU C library defines this for functions which it implements
5165 to always fail with ENOSYS. Some functions are actually named
5166 something starting with __ and the normal name is an alias. */
5167 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5170 char (*f) () = gethostbyname;
5179 return f != gethostbyname;
5184 rm -f conftest.
$ac_objext conftest
$ac_exeext
5185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5186 (eval $ac_link) 2>conftest.er1
5188 grep -v '^ *+' conftest.er1
>conftest.err
5190 cat conftest.err
>&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } &&
5193 { ac_try
='test -z "$ac_cxx_werror_flag"
5194 || test ! -s conftest.err'
5195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); }; } &&
5200 { ac_try
='test -s conftest$ac_exeext'
5201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); }; }; then
5206 ac_cv_func_gethostbyname
=yes
5208 echo "$as_me: failed program was:" >&5
5209 sed 's/^/| /' conftest.
$ac_ext >&5
5211 ac_cv_func_gethostbyname
=no
5213 rm -f conftest.err conftest.
$ac_objext \
5214 conftest
$ac_exeext conftest.
$ac_ext
5216 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5217 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5219 if test $ac_cv_func_gethostbyname = no
; then
5220 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5221 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5222 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5225 ac_check_lib_save_LIBS
=$LIBS
5227 cat >conftest.
$ac_ext <<_ACEOF
5230 cat confdefs.h
>>conftest.
$ac_ext
5231 cat >>conftest.
$ac_ext <<_ACEOF
5232 /* end confdefs.h. */
5234 /* Override any gcc2 internal prototype to avoid an error. */
5238 /* We use char because int might match the return type of a gcc2
5239 builtin and then its argument prototype would still apply. */
5240 char gethostbyname ();
5249 rm -f conftest.
$ac_objext conftest
$ac_exeext
5250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5251 (eval $ac_link) 2>conftest.er1
5253 grep -v '^ *+' conftest.er1
>conftest.err
5255 cat conftest.err
>&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); } &&
5258 { ac_try
='test -z "$ac_cxx_werror_flag"
5259 || test ! -s conftest.err'
5260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); }; } &&
5265 { ac_try
='test -s conftest$ac_exeext'
5266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); }; }; then
5271 ac_cv_lib_bsd_gethostbyname
=yes
5273 echo "$as_me: failed program was:" >&5
5274 sed 's/^/| /' conftest.
$ac_ext >&5
5276 ac_cv_lib_bsd_gethostbyname
=no
5278 rm -f conftest.err conftest.
$ac_objext \
5279 conftest
$ac_exeext conftest.
$ac_ext
5280 LIBS
=$ac_check_lib_save_LIBS
5282 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5283 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
5284 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5285 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
5290 echo "$as_me:$LINENO: checking select() and fd_set in sys/select.h and sys/bsdtypes.h" >&5
5291 echo $ECHO_N "checking select() and fd_set in sys/select.h and sys/bsdtypes.h... $ECHO_C" >&6
5292 cat >conftest.
$ac_ext <<_ACEOF
5295 cat confdefs.h
>>conftest.
$ac_ext
5296 cat >>conftest.
$ac_ext <<_ACEOF
5297 /* end confdefs.h. */
5301 #include <sys/types.h>
5306 select(0, NULL, NULL, NULL, NULL);
5311 rm -f conftest.
$ac_objext
5312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5313 (eval $ac_compile) 2>conftest.er1
5315 grep -v '^ *+' conftest.er1
>conftest.err
5317 cat conftest.err
>&5
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); } &&
5320 { ac_try
='test -z "$ac_cxx_werror_flag"
5321 || test ! -s conftest.err'
5322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326 (exit $ac_status); }; } &&
5327 { ac_try
='test -s conftest.$ac_objext'
5328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); }; }; then
5335 echo "$as_me: failed program was:" >&5
5336 sed 's/^/| /' conftest.
$ac_ext >&5
5340 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5341 if test $xpdf_ok = yes; then
5342 echo "$as_me:$LINENO: result: not needed" >&5
5343 echo "${ECHO_T}not needed" >&6
5345 cat >conftest.
$ac_ext <<_ACEOF
5348 cat confdefs.h
>>conftest.
$ac_ext
5349 cat >>conftest.
$ac_ext <<_ACEOF
5350 /* end confdefs.h. */
5354 #include <sys/types.h>
5355 #include <sys/select.h>
5360 select(0, NULL, NULL, NULL, NULL);
5365 rm -f conftest.
$ac_objext
5366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5367 (eval $ac_compile) 2>conftest.er1
5369 grep -v '^ *+' conftest.er1
>conftest.err
5371 cat conftest.err
>&5
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); } &&
5374 { ac_try
='test -z "$ac_cxx_werror_flag"
5375 || test ! -s conftest.err'
5376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); }; } &&
5381 { ac_try
='test -s conftest.$ac_objext'
5382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); }; }; then
5389 echo "$as_me: failed program was:" >&5
5390 sed 's/^/| /' conftest.
$ac_ext >&5
5394 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5395 if test $xpdf_ok = yes; then
5396 cat >>confdefs.h
<<\_ACEOF
5397 #define HAVE_SYS_SELECT_H 1
5400 echo "$as_me:$LINENO: result: need sys/select.h" >&5
5401 echo "${ECHO_T}need sys/select.h" >&6
5403 cat >conftest.
$ac_ext <<_ACEOF
5406 cat confdefs.h
>>conftest.
$ac_ext
5407 cat >>conftest.
$ac_ext <<_ACEOF
5408 /* end confdefs.h. */
5412 #include <sys/types.h>
5413 #include <sys/bsdtypes.h>
5418 select(0, NULL, NULL, NULL, NULL);
5423 rm -f conftest.
$ac_objext
5424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5425 (eval $ac_compile) 2>conftest.er1
5427 grep -v '^ *+' conftest.er1
>conftest.err
5429 cat conftest.err
>&5
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); } &&
5432 { ac_try
='test -z "$ac_cxx_werror_flag"
5433 || test ! -s conftest.err'
5434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); }; } &&
5439 { ac_try
='test -s conftest.$ac_objext'
5440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); }; }; then
5447 echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.
$ac_ext >&5
5452 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5453 if test $xpdf_ok = yes; then
5454 cat >>confdefs.h
<<\_ACEOF
5455 #define HAVE_SYS_BSDTYPES_H 1
5458 echo "$as_me:$LINENO: result: need sys/bsdtypes.h" >&5
5459 echo "${ECHO_T}need sys/bsdtypes.h" >&6
5461 echo "$as_me:$LINENO: result: problem" >&5
5462 echo "${ECHO_T}problem" >&6
5467 echo "$as_me:$LINENO: checking FD_ZERO and strings.h or bstring.h" >&5
5468 echo $ECHO_N "checking FD_ZERO and strings.h or bstring.h... $ECHO_C" >&6
5469 cat >conftest.
$ac_ext <<_ACEOF
5472 cat confdefs.h
>>conftest.
$ac_ext
5473 cat >>conftest.
$ac_ext <<_ACEOF
5474 /* end confdefs.h. */
5476 #include <sys/types.h>
5477 #ifdef HAVE_SYS_SELECT_H
5478 #include <sys/select.h>
5483 fd_set fds; FD_ZERO(&fds);
5488 rm -f conftest.
$ac_objext
5489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5490 (eval $ac_compile) 2>conftest.er1
5492 grep -v '^ *+' conftest.er1
>conftest.err
5494 cat conftest.err
>&5
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); } &&
5497 { ac_try
='test -z "$ac_cxx_werror_flag"
5498 || test ! -s conftest.err'
5499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); }; } &&
5504 { ac_try
='test -s conftest.$ac_objext'
5505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); }; }; then
5512 echo "$as_me: failed program was:" >&5
5513 sed 's/^/| /' conftest.
$ac_ext >&5
5517 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5518 if test $xpdf_ok = yes; then
5519 echo "$as_me:$LINENO: result: not needed" >&5
5520 echo "${ECHO_T}not needed" >&6
5522 cat >conftest.
$ac_ext <<_ACEOF
5525 cat confdefs.h
>>conftest.
$ac_ext
5526 cat >>conftest.
$ac_ext <<_ACEOF
5527 /* end confdefs.h. */
5529 #include <sys/types.h>
5530 #include <strings.h>
5531 #ifdef HAVE_SYS_SELECT_H
5532 #include <sys/select.h>
5537 fd_set fds; FD_ZERO(&fds);
5542 rm -f conftest.
$ac_objext
5543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5544 (eval $ac_compile) 2>conftest.er1
5546 grep -v '^ *+' conftest.er1
>conftest.err
5548 cat conftest.err
>&5
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); } &&
5551 { ac_try
='test -z "$ac_cxx_werror_flag"
5552 || test ! -s conftest.err'
5553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); }; } &&
5558 { ac_try
='test -s conftest.$ac_objext'
5559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); }; }; then
5566 echo "$as_me: failed program was:" >&5
5567 sed 's/^/| /' conftest.
$ac_ext >&5
5571 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5572 if test $xpdf_ok = yes; then
5573 cat >>confdefs.h
<<\_ACEOF
5574 #define HAVE_STRINGS_H 1
5577 echo "$as_me:$LINENO: result: need strings.h" >&5
5578 echo "${ECHO_T}need strings.h" >&6
5580 cat >conftest.
$ac_ext <<_ACEOF
5583 cat confdefs.h
>>conftest.
$ac_ext
5584 cat >>conftest.
$ac_ext <<_ACEOF
5585 /* end confdefs.h. */
5587 #include <sys/types.h>
5588 #include <bstring.h>
5589 #ifdef HAVE_SYS_SELECT_H
5590 #include <sys/select.h>
5595 fd_set fds; FD_ZERO(&fds);
5600 rm -f conftest.
$ac_objext
5601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5602 (eval $ac_compile) 2>conftest.er1
5604 grep -v '^ *+' conftest.er1
>conftest.err
5606 cat conftest.err
>&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } &&
5609 { ac_try
='test -z "$ac_cxx_werror_flag"
5610 || test ! -s conftest.err'
5611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; } &&
5616 { ac_try
='test -s conftest.$ac_objext'
5617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); }; }; then
5624 echo "$as_me: failed program was:" >&5
5625 sed 's/^/| /' conftest.
$ac_ext >&5
5629 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5630 if test $xpdf_ok = yes; then
5631 cat >>confdefs.h
<<\_ACEOF
5632 #define HAVE_BSTRING_H 1
5635 echo "$as_me:$LINENO: result: need bstring.h" >&5
5636 echo "${ECHO_T}need bstring.h" >&6
5638 echo "$as_me:$LINENO: result: problem" >&5
5639 echo "${ECHO_T}problem" >&6
5645 for ac_func
in rewinddir
5647 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5648 echo "$as_me:$LINENO: checking for $ac_func" >&5
5649 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5650 if eval "test \"\${$as_ac_var+set}\" = set"; then
5651 echo $ECHO_N "(cached) $ECHO_C" >&6
5653 cat >conftest.
$ac_ext <<_ACEOF
5656 cat confdefs.h
>>conftest.
$ac_ext
5657 cat >>conftest.
$ac_ext <<_ACEOF
5658 /* end confdefs.h. */
5659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5661 #define $ac_func innocuous_$ac_func
5663 /* System header to define __stub macros and hopefully few prototypes,
5664 which can conflict with char $ac_func (); below.
5665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5666 <limits.h> exists even on freestanding compilers. */
5669 # include <limits.h>
5671 # include <assert.h>
5676 /* Override any gcc2 internal prototype to avoid an error. */
5681 /* We use char because int might match the return type of a gcc2
5682 builtin and then its argument prototype would still apply. */
5684 /* The GNU C library defines this for functions which it implements
5685 to always fail with ENOSYS. Some functions are actually named
5686 something starting with __ and the normal name is an alias. */
5687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5690 char (*f) () = $ac_func;
5699 return f != $ac_func;
5704 rm -f conftest.
$ac_objext conftest
$ac_exeext
5705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5706 (eval $ac_link) 2>conftest.er1
5708 grep -v '^ *+' conftest.er1
>conftest.err
5710 cat conftest.err
>&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); } &&
5713 { ac_try
='test -z "$ac_cxx_werror_flag"
5714 || test ! -s conftest.err'
5715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); }; } &&
5720 { ac_try
='test -s conftest$ac_exeext'
5721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; }; then
5726 eval "$as_ac_var=yes"
5728 echo "$as_me: failed program was:" >&5
5729 sed 's/^/| /' conftest.
$ac_ext >&5
5731 eval "$as_ac_var=no"
5733 rm -f conftest.err conftest.
$ac_objext \
5734 conftest
$ac_exeext conftest.
$ac_ext
5736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5737 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5738 if test `eval echo '${'$as_ac_var'}'` = yes; then
5739 cat >>confdefs.h
<<_ACEOF
5740 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5746 if test $ac_cv_func_rewinddir = no
; then
5748 echo "$as_me:$LINENO: checking for rewinddir in -lcposix" >&5
5749 echo $ECHO_N "checking for rewinddir in -lcposix... $ECHO_C" >&6
5750 if test "${ac_cv_lib_cposix_rewinddir+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5753 ac_check_lib_save_LIBS
=$LIBS
5754 LIBS
="-lcposix $LIBS"
5755 cat >conftest.
$ac_ext <<_ACEOF
5758 cat confdefs.h
>>conftest.
$ac_ext
5759 cat >>conftest.
$ac_ext <<_ACEOF
5760 /* end confdefs.h. */
5762 /* Override any gcc2 internal prototype to avoid an error. */
5766 /* We use char because int might match the return type of a gcc2
5767 builtin and then its argument prototype would still apply. */
5777 rm -f conftest.
$ac_objext conftest
$ac_exeext
5778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5779 (eval $ac_link) 2>conftest.er1
5781 grep -v '^ *+' conftest.er1
>conftest.err
5783 cat conftest.err
>&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); } &&
5786 { ac_try
='test -z "$ac_cxx_werror_flag"
5787 || test ! -s conftest.err'
5788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); }; } &&
5793 { ac_try
='test -s conftest$ac_exeext'
5794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }; }; then
5799 ac_cv_lib_cposix_rewinddir
=yes
5801 echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.
$ac_ext >&5
5804 ac_cv_lib_cposix_rewinddir
=no
5806 rm -f conftest.err conftest.
$ac_objext \
5807 conftest
$ac_exeext conftest.
$ac_ext
5808 LIBS
=$ac_check_lib_save_LIBS
5810 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_rewinddir" >&5
5811 echo "${ECHO_T}$ac_cv_lib_cposix_rewinddir" >&6
5812 if test $ac_cv_lib_cposix_rewinddir = yes; then
5813 cat >>confdefs.h
<<_ACEOF
5814 #define HAVE_LIBCPOSIX 1
5817 LIBS
="-lcposix $LIBS"
5824 for ac_func
in popen
5826 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5827 echo "$as_me:$LINENO: checking for $ac_func" >&5
5828 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5829 if eval "test \"\${$as_ac_var+set}\" = set"; then
5830 echo $ECHO_N "(cached) $ECHO_C" >&6
5832 cat >conftest.
$ac_ext <<_ACEOF
5835 cat confdefs.h
>>conftest.
$ac_ext
5836 cat >>conftest.
$ac_ext <<_ACEOF
5837 /* end confdefs.h. */
5838 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5840 #define $ac_func innocuous_$ac_func
5842 /* System header to define __stub macros and hopefully few prototypes,
5843 which can conflict with char $ac_func (); below.
5844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5845 <limits.h> exists even on freestanding compilers. */
5848 # include <limits.h>
5850 # include <assert.h>
5855 /* Override any gcc2 internal prototype to avoid an error. */
5860 /* We use char because int might match the return type of a gcc2
5861 builtin and then its argument prototype would still apply. */
5863 /* The GNU C library defines this for functions which it implements
5864 to always fail with ENOSYS. Some functions are actually named
5865 something starting with __ and the normal name is an alias. */
5866 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5869 char (*f) () = $ac_func;
5878 return f != $ac_func;
5883 rm -f conftest.
$ac_objext conftest
$ac_exeext
5884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5885 (eval $ac_link) 2>conftest.er1
5887 grep -v '^ *+' conftest.er1
>conftest.err
5889 cat conftest.err
>&5
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); } &&
5892 { ac_try
='test -z "$ac_cxx_werror_flag"
5893 || test ! -s conftest.err'
5894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); }; } &&
5899 { ac_try
='test -s conftest$ac_exeext'
5900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); }; }; then
5905 eval "$as_ac_var=yes"
5907 echo "$as_me: failed program was:" >&5
5908 sed 's/^/| /' conftest.
$ac_ext >&5
5910 eval "$as_ac_var=no"
5912 rm -f conftest.err conftest.
$ac_objext \
5913 conftest
$ac_exeext conftest.
$ac_ext
5915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5916 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5917 if test `eval echo '${'$as_ac_var'}'` = yes; then
5918 cat >>confdefs.h
<<_ACEOF
5919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5925 echo "$as_me:$LINENO: checking for mkstemp" >&5
5926 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
5927 if test "${xpdf_cv_func_mkstemp+set}" = set; then
5928 echo $ECHO_N "(cached) $ECHO_C" >&6
5930 cat >conftest.
$ac_ext <<_ACEOF
5933 cat confdefs.h
>>conftest.
$ac_ext
5934 cat >>conftest.
$ac_ext <<_ACEOF
5935 /* end confdefs.h. */
5946 rm -f conftest.
$ac_objext conftest
$ac_exeext
5947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5948 (eval $ac_link) 2>conftest.er1
5950 grep -v '^ *+' conftest.er1
>conftest.err
5952 cat conftest.err
>&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); } &&
5955 { ac_try
='test -z "$ac_cxx_werror_flag"
5956 || test ! -s conftest.err'
5957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); }; } &&
5962 { ac_try
='test -s conftest$ac_exeext'
5963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; }; then
5968 xpdf_cv_func_mkstemp
=yes
5970 echo "$as_me: failed program was:" >&5
5971 sed 's/^/| /' conftest.
$ac_ext >&5
5973 xpdf_cv_func_mkstemp
=no
5975 rm -f conftest.err conftest.
$ac_objext \
5976 conftest
$ac_exeext conftest.
$ac_ext
5978 echo "$as_me:$LINENO: result: $xpdf_cv_func_mkstemp" >&5
5979 echo "${ECHO_T}$xpdf_cv_func_mkstemp" >&6
5980 if test "$xpdf_cv_func_mkstemp" = yes; then
5981 cat >>confdefs.h
<<\_ACEOF
5982 #define HAVE_MKSTEMP 1
5986 echo "$as_me:$LINENO: checking for mkstemps" >&5
5987 echo $ECHO_N "checking for mkstemps... $ECHO_C" >&6
5988 if test "${xpdf_cv_func_mkstemps+set}" = set; then
5989 echo $ECHO_N "(cached) $ECHO_C" >&6
5991 cat >conftest.
$ac_ext <<_ACEOF
5994 cat confdefs.h
>>conftest.
$ac_ext
5995 cat >>conftest.
$ac_ext <<_ACEOF
5996 /* end confdefs.h. */
6007 rm -f conftest.
$ac_objext conftest
$ac_exeext
6008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6009 (eval $ac_link) 2>conftest.er1
6011 grep -v '^ *+' conftest.er1
>conftest.err
6013 cat conftest.err
>&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); } &&
6016 { ac_try
='test -z "$ac_cxx_werror_flag"
6017 || test ! -s conftest.err'
6018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); }; } &&
6023 { ac_try
='test -s conftest$ac_exeext'
6024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; }; then
6029 xpdf_cv_func_mkstemps
=yes
6031 echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.
$ac_ext >&5
6034 xpdf_cv_func_mkstemps
=no
6036 rm -f conftest.err conftest.
$ac_objext \
6037 conftest
$ac_exeext conftest.
$ac_ext
6039 echo "$as_me:$LINENO: result: $xpdf_cv_func_mkstemps" >&5
6040 echo "${ECHO_T}$xpdf_cv_func_mkstemps" >&6
6041 if test "$xpdf_cv_func_mkstemps" = yes; then
6042 cat >>confdefs.h
<<\_ACEOF
6043 #define HAVE_MKSTEMPS 1
6048 echo "$as_me:$LINENO: checking whether select takes fd_set arguments" >&5
6049 echo $ECHO_N "checking whether select takes fd_set arguments... $ECHO_C" >&6
6050 if test "${xpdf_cv_func_select_arg+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6053 cat >conftest.
$ac_ext <<_ACEOF
6056 cat confdefs.h
>>conftest.
$ac_ext
6057 cat >>conftest.
$ac_ext <<_ACEOF
6058 /* end confdefs.h. */
6059 #include <sys/types.h>
6060 #include <sys/time.h>
6062 #ifdef HAVE_SYS_SELECT_H
6063 #include <sys/select.h>
6069 select(1, &fds, &fds, &fds, 0);
6074 rm -f conftest.
$ac_objext
6075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6076 (eval $ac_compile) 2>conftest.er1
6078 grep -v '^ *+' conftest.er1
>conftest.err
6080 cat conftest.err
>&5
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); } &&
6083 { ac_try
='test -z "$ac_cxx_werror_flag"
6084 || test ! -s conftest.err'
6085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }; } &&
6090 { ac_try
='test -s conftest.$ac_objext'
6091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); }; }; then
6096 xpdf_cv_func_select_arg
=yes
6098 echo "$as_me: failed program was:" >&5
6099 sed 's/^/| /' conftest.
$ac_ext >&5
6101 xpdf_cv_func_select_arg
=no
6103 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6105 echo "$as_me:$LINENO: result: $xpdf_cv_func_select_arg" >&5
6106 echo "${ECHO_T}$xpdf_cv_func_select_arg" >&6
6107 if test "$xpdf_cv_func_select_arg" != yes; then
6108 cat >>confdefs.h
<<\_ACEOF
6109 #define SELECT_TAKES_INT 1
6115 ac_cpp
='$CPP $CPPFLAGS'
6116 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6117 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6118 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6121 # Check whether --enable-largefile or --disable-largefile was given.
6122 if test "${enable_largefile+set}" = set; then
6123 enableval
="$enable_largefile"
6126 if test "$enable_largefile" != no
; then
6128 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
6129 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
6130 if test "${ac_cv_sys_largefile_CC+set}" = set; then
6131 echo $ECHO_N "(cached) $ECHO_C" >&6
6133 ac_cv_sys_largefile_CC
=no
6134 if test "$GCC" != yes; then
6137 # IRIX 6.2 and later do not support large files by default,
6138 # so use the C compiler's -n32 option if that helps.
6139 cat >conftest.
$ac_ext <<_ACEOF
6142 cat confdefs.h
>>conftest.
$ac_ext
6143 cat >>conftest.
$ac_ext <<_ACEOF
6144 /* end confdefs.h. */
6145 #include <sys/types.h>
6146 /* Check that off_t can represent 2**63 - 1 correctly.
6147 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6148 since some C++ compilers masquerading as C compilers
6149 incorrectly reject 9223372036854775807. */
6150 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6151 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6152 && LARGE_OFF_T % 2147483647 == 1)
6162 rm -f conftest.
$ac_objext
6163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6164 (eval $ac_compile) 2>conftest.er1
6166 grep -v '^ *+' conftest.er1
>conftest.err
6168 cat conftest.err
>&5
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); } &&
6171 { ac_try
='test -z "$ac_c_werror_flag"
6172 || test ! -s conftest.err'
6173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); }; } &&
6178 { ac_try
='test -s conftest.$ac_objext'
6179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); }; }; then
6186 echo "$as_me: failed program was:" >&5
6187 sed 's/^/| /' conftest.
$ac_ext >&5
6190 rm -f conftest.err conftest.
$ac_objext
6192 rm -f conftest.
$ac_objext
6193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6194 (eval $ac_compile) 2>conftest.er1
6196 grep -v '^ *+' conftest.er1
>conftest.err
6198 cat conftest.err
>&5
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); } &&
6201 { ac_try
='test -z "$ac_c_werror_flag"
6202 || test ! -s conftest.err'
6203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); }; } &&
6208 { ac_try
='test -s conftest.$ac_objext'
6209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); }; }; then
6214 ac_cv_sys_largefile_CC
=' -n32'; break
6216 echo "$as_me: failed program was:" >&5
6217 sed 's/^/| /' conftest.
$ac_ext >&5
6220 rm -f conftest.err conftest.
$ac_objext
6224 rm -f conftest.
$ac_ext
6227 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
6228 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
6229 if test "$ac_cv_sys_largefile_CC" != no
; then
6230 CC
=$CC$ac_cv_sys_largefile_CC
6233 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6234 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
6235 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6236 echo $ECHO_N "(cached) $ECHO_C" >&6
6239 ac_cv_sys_file_offset_bits
=no
6240 cat >conftest.
$ac_ext <<_ACEOF
6243 cat confdefs.h
>>conftest.
$ac_ext
6244 cat >>conftest.
$ac_ext <<_ACEOF
6245 /* end confdefs.h. */
6246 #include <sys/types.h>
6247 /* Check that off_t can represent 2**63 - 1 correctly.
6248 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6249 since some C++ compilers masquerading as C compilers
6250 incorrectly reject 9223372036854775807. */
6251 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6252 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6253 && LARGE_OFF_T % 2147483647 == 1)
6263 rm -f conftest.
$ac_objext
6264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6265 (eval $ac_compile) 2>conftest.er1
6267 grep -v '^ *+' conftest.er1
>conftest.err
6269 cat conftest.err
>&5
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); } &&
6272 { ac_try
='test -z "$ac_c_werror_flag"
6273 || test ! -s conftest.err'
6274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); }; } &&
6279 { ac_try
='test -s conftest.$ac_objext'
6280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); }; }; then
6287 echo "$as_me: failed program was:" >&5
6288 sed 's/^/| /' conftest.
$ac_ext >&5
6291 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6292 cat >conftest.
$ac_ext <<_ACEOF
6295 cat confdefs.h
>>conftest.
$ac_ext
6296 cat >>conftest.
$ac_ext <<_ACEOF
6297 /* end confdefs.h. */
6298 #define _FILE_OFFSET_BITS 64
6299 #include <sys/types.h>
6300 /* Check that off_t can represent 2**63 - 1 correctly.
6301 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6302 since some C++ compilers masquerading as C compilers
6303 incorrectly reject 9223372036854775807. */
6304 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6305 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6306 && LARGE_OFF_T % 2147483647 == 1)
6316 rm -f conftest.
$ac_objext
6317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6318 (eval $ac_compile) 2>conftest.er1
6320 grep -v '^ *+' conftest.er1
>conftest.err
6322 cat conftest.err
>&5
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); } &&
6325 { ac_try
='test -z "$ac_c_werror_flag"
6326 || test ! -s conftest.err'
6327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); }; } &&
6332 { ac_try
='test -s conftest.$ac_objext'
6333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); }; }; then
6338 ac_cv_sys_file_offset_bits
=64; break
6340 echo "$as_me: failed program was:" >&5
6341 sed 's/^/| /' conftest.
$ac_ext >&5
6344 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6348 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6349 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
6350 if test "$ac_cv_sys_file_offset_bits" != no
; then
6352 cat >>confdefs.h
<<_ACEOF
6353 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6358 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6359 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
6360 if test "${ac_cv_sys_large_files+set}" = set; then
6361 echo $ECHO_N "(cached) $ECHO_C" >&6
6364 ac_cv_sys_large_files
=no
6365 cat >conftest.
$ac_ext <<_ACEOF
6368 cat confdefs.h
>>conftest.
$ac_ext
6369 cat >>conftest.
$ac_ext <<_ACEOF
6370 /* end confdefs.h. */
6371 #include <sys/types.h>
6372 /* Check that off_t can represent 2**63 - 1 correctly.
6373 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6374 since some C++ compilers masquerading as C compilers
6375 incorrectly reject 9223372036854775807. */
6376 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6377 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6378 && LARGE_OFF_T % 2147483647 == 1)
6388 rm -f conftest.
$ac_objext
6389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6390 (eval $ac_compile) 2>conftest.er1
6392 grep -v '^ *+' conftest.er1
>conftest.err
6394 cat conftest.err
>&5
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); } &&
6397 { ac_try
='test -z "$ac_c_werror_flag"
6398 || test ! -s conftest.err'
6399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; } &&
6404 { ac_try
='test -s conftest.$ac_objext'
6405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); }; }; then
6412 echo "$as_me: failed program was:" >&5
6413 sed 's/^/| /' conftest.
$ac_ext >&5
6416 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6417 cat >conftest.
$ac_ext <<_ACEOF
6420 cat confdefs.h
>>conftest.
$ac_ext
6421 cat >>conftest.
$ac_ext <<_ACEOF
6422 /* end confdefs.h. */
6423 #define _LARGE_FILES 1
6424 #include <sys/types.h>
6425 /* Check that off_t can represent 2**63 - 1 correctly.
6426 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6427 since some C++ compilers masquerading as C compilers
6428 incorrectly reject 9223372036854775807. */
6429 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6430 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6431 && LARGE_OFF_T % 2147483647 == 1)
6441 rm -f conftest.
$ac_objext
6442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6443 (eval $ac_compile) 2>conftest.er1
6445 grep -v '^ *+' conftest.er1
>conftest.err
6447 cat conftest.err
>&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); } &&
6450 { ac_try
='test -z "$ac_c_werror_flag"
6451 || test ! -s conftest.err'
6452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); }; } &&
6457 { ac_try
='test -s conftest.$ac_objext'
6458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); }; }; then
6463 ac_cv_sys_large_files
=1; break
6465 echo "$as_me: failed program was:" >&5
6466 sed 's/^/| /' conftest.
$ac_ext >&5
6469 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6473 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6474 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
6475 if test "$ac_cv_sys_large_files" != no
; then
6477 cat >>confdefs.h
<<_ACEOF
6478 #define _LARGE_FILES $ac_cv_sys_large_files
6485 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
6486 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
6487 if test "${ac_cv_sys_largefile_source+set}" = set; then
6488 echo $ECHO_N "(cached) $ECHO_C" >&6
6491 ac_cv_sys_largefile_source
=no
6492 cat >conftest.
$ac_ext <<_ACEOF
6495 cat confdefs.h
>>conftest.
$ac_ext
6496 cat >>conftest.
$ac_ext <<_ACEOF
6497 /* end confdefs.h. */
6507 rm -f conftest.
$ac_objext
6508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6509 (eval $ac_compile) 2>conftest.er1
6511 grep -v '^ *+' conftest.er1
>conftest.err
6513 cat conftest.err
>&5
6514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515 (exit $ac_status); } &&
6516 { ac_try
='test -z "$ac_c_werror_flag"
6517 || test ! -s conftest.err'
6518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); }; } &&
6523 { ac_try
='test -s conftest.$ac_objext'
6524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); }; }; then
6531 echo "$as_me: failed program was:" >&5
6532 sed 's/^/| /' conftest.
$ac_ext >&5
6535 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6536 cat >conftest.
$ac_ext <<_ACEOF
6539 cat confdefs.h
>>conftest.
$ac_ext
6540 cat >>conftest.
$ac_ext <<_ACEOF
6541 /* end confdefs.h. */
6542 #define _LARGEFILE_SOURCE 1
6552 rm -f conftest.
$ac_objext
6553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6554 (eval $ac_compile) 2>conftest.er1
6556 grep -v '^ *+' conftest.er1
>conftest.err
6558 cat conftest.err
>&5
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); } &&
6561 { ac_try
='test -z "$ac_c_werror_flag"
6562 || test ! -s conftest.err'
6563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); }; } &&
6568 { ac_try
='test -s conftest.$ac_objext'
6569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); }; }; then
6574 ac_cv_sys_largefile_source
=1; break
6576 echo "$as_me: failed program was:" >&5
6577 sed 's/^/| /' conftest.
$ac_ext >&5
6580 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6584 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
6585 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
6586 if test "$ac_cv_sys_largefile_source" != no
; then
6588 cat >>confdefs.h
<<_ACEOF
6589 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
6595 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
6596 # in glibc 2.1.3, but that breaks too many other things.
6597 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
6598 echo "$as_me:$LINENO: checking for fseeko" >&5
6599 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
6600 if test "${ac_cv_func_fseeko+set}" = set; then
6601 echo $ECHO_N "(cached) $ECHO_C" >&6
6603 cat >conftest.
$ac_ext <<_ACEOF
6606 cat confdefs.h
>>conftest.
$ac_ext
6607 cat >>conftest.
$ac_ext <<_ACEOF
6608 /* end confdefs.h. */
6613 return fseeko && fseeko (stdin, 0, 0);
6618 rm -f conftest.
$ac_objext conftest
$ac_exeext
6619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6620 (eval $ac_link) 2>conftest.er1
6622 grep -v '^ *+' conftest.er1
>conftest.err
6624 cat conftest.err
>&5
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); } &&
6627 { ac_try
='test -z "$ac_c_werror_flag"
6628 || test ! -s conftest.err'
6629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); }; } &&
6634 { ac_try
='test -s conftest$ac_exeext'
6635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); }; }; then
6640 ac_cv_func_fseeko
=yes
6642 echo "$as_me: failed program was:" >&5
6643 sed 's/^/| /' conftest.
$ac_ext >&5
6645 ac_cv_func_fseeko
=no
6647 rm -f conftest.err conftest.
$ac_objext \
6648 conftest
$ac_exeext conftest.
$ac_ext
6650 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
6651 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
6652 if test $ac_cv_func_fseeko = yes; then
6654 cat >>confdefs.h
<<\_ACEOF
6655 #define HAVE_FSEEKO 1
6661 for ac_func
in fseek64
6663 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6664 echo "$as_me:$LINENO: checking for $ac_func" >&5
6665 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6666 if eval "test \"\${$as_ac_var+set}\" = set"; then
6667 echo $ECHO_N "(cached) $ECHO_C" >&6
6669 cat >conftest.
$ac_ext <<_ACEOF
6672 cat confdefs.h
>>conftest.
$ac_ext
6673 cat >>conftest.
$ac_ext <<_ACEOF
6674 /* end confdefs.h. */
6675 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6677 #define $ac_func innocuous_$ac_func
6679 /* System header to define __stub macros and hopefully few prototypes,
6680 which can conflict with char $ac_func (); below.
6681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6682 <limits.h> exists even on freestanding compilers. */
6685 # include <limits.h>
6687 # include <assert.h>
6692 /* Override any gcc2 internal prototype to avoid an error. */
6697 /* We use char because int might match the return type of a gcc2
6698 builtin and then its argument prototype would still apply. */
6700 /* The GNU C library defines this for functions which it implements
6701 to always fail with ENOSYS. Some functions are actually named
6702 something starting with __ and the normal name is an alias. */
6703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6706 char (*f) () = $ac_func;
6715 return f != $ac_func;
6720 rm -f conftest.
$ac_objext conftest
$ac_exeext
6721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6722 (eval $ac_link) 2>conftest.er1
6724 grep -v '^ *+' conftest.er1
>conftest.err
6726 cat conftest.err
>&5
6727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728 (exit $ac_status); } &&
6729 { ac_try
='test -z "$ac_c_werror_flag"
6730 || test ! -s conftest.err'
6731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); }; } &&
6736 { ac_try
='test -s conftest$ac_exeext'
6737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); }; }; then
6742 eval "$as_ac_var=yes"
6744 echo "$as_me: failed program was:" >&5
6745 sed 's/^/| /' conftest.
$ac_ext >&5
6747 eval "$as_ac_var=no"
6749 rm -f conftest.err conftest.
$ac_objext \
6750 conftest
$ac_exeext conftest.
$ac_ext
6752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6753 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6754 if test `eval echo '${'$as_ac_var'}'` = yes; then
6755 cat >>confdefs.h
<<_ACEOF
6756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6758 xpdf_cv_func_fseek64
=yes
6760 xpdf_cv_func_fseek64
=no
6765 for ac_func
in ftell64
6767 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6768 echo "$as_me:$LINENO: checking for $ac_func" >&5
6769 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6770 if eval "test \"\${$as_ac_var+set}\" = set"; then
6771 echo $ECHO_N "(cached) $ECHO_C" >&6
6773 cat >conftest.
$ac_ext <<_ACEOF
6776 cat confdefs.h
>>conftest.
$ac_ext
6777 cat >>conftest.
$ac_ext <<_ACEOF
6778 /* end confdefs.h. */
6779 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6781 #define $ac_func innocuous_$ac_func
6783 /* System header to define __stub macros and hopefully few prototypes,
6784 which can conflict with char $ac_func (); below.
6785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6786 <limits.h> exists even on freestanding compilers. */
6789 # include <limits.h>
6791 # include <assert.h>
6796 /* Override any gcc2 internal prototype to avoid an error. */
6801 /* We use char because int might match the return type of a gcc2
6802 builtin and then its argument prototype would still apply. */
6804 /* The GNU C library defines this for functions which it implements
6805 to always fail with ENOSYS. Some functions are actually named
6806 something starting with __ and the normal name is an alias. */
6807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6810 char (*f) () = $ac_func;
6819 return f != $ac_func;
6824 rm -f conftest.
$ac_objext conftest
$ac_exeext
6825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6826 (eval $ac_link) 2>conftest.er1
6828 grep -v '^ *+' conftest.er1
>conftest.err
6830 cat conftest.err
>&5
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); } &&
6833 { ac_try
='test -z "$ac_c_werror_flag"
6834 || test ! -s conftest.err'
6835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); }; } &&
6840 { ac_try
='test -s conftest$ac_exeext'
6841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); }; }; then
6846 eval "$as_ac_var=yes"
6848 echo "$as_me: failed program was:" >&5
6849 sed 's/^/| /' conftest.
$ac_ext >&5
6851 eval "$as_ac_var=no"
6853 rm -f conftest.err conftest.
$ac_objext \
6854 conftest
$ac_exeext conftest.
$ac_ext
6856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6857 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6858 if test `eval echo '${'$as_ac_var'}'` = yes; then
6859 cat >>confdefs.h
<<_ACEOF
6860 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6862 xpdf_cv_func_ftell64
=yes
6864 xpdf_cv_func_ftell64
=no
6868 if test "$xpdf_cv_func_fseek64" = yes -a "$xpdf_cv_func_ftell64" = yes; then
6869 cat >>confdefs.h
<<\_ACEOF
6870 #define HAVE_FSEEK64 1
6875 if test -z "$no_x"; then
6876 echo "$as_me:$LINENO: checking for egrep" >&5
6877 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6878 if test "${ac_cv_prog_egrep+set}" = set; then
6879 echo $ECHO_N "(cached) $ECHO_C" >&6
6881 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
6882 then ac_cv_prog_egrep
='grep -E'
6883 else ac_cv_prog_egrep
='egrep'
6886 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6887 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6888 EGREP
=$ac_cv_prog_egrep
6891 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6892 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6893 if test "${ac_cv_header_stdc+set}" = set; then
6894 echo $ECHO_N "(cached) $ECHO_C" >&6
6896 cat >conftest.
$ac_ext <<_ACEOF
6899 cat confdefs.h
>>conftest.
$ac_ext
6900 cat >>conftest.
$ac_ext <<_ACEOF
6901 /* end confdefs.h. */
6915 rm -f conftest.
$ac_objext
6916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6917 (eval $ac_compile) 2>conftest.er1
6919 grep -v '^ *+' conftest.er1
>conftest.err
6921 cat conftest.err
>&5
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); } &&
6924 { ac_try
='test -z "$ac_c_werror_flag"
6925 || test ! -s conftest.err'
6926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930 (exit $ac_status); }; } &&
6931 { ac_try
='test -s conftest.$ac_objext'
6932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6936 (exit $ac_status); }; }; then
6937 ac_cv_header_stdc
=yes
6939 echo "$as_me: failed program was:" >&5
6940 sed 's/^/| /' conftest.
$ac_ext >&5
6942 ac_cv_header_stdc
=no
6944 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6946 if test $ac_cv_header_stdc = yes; then
6947 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6948 cat >conftest.
$ac_ext <<_ACEOF
6951 cat confdefs.h
>>conftest.
$ac_ext
6952 cat >>conftest.
$ac_ext <<_ACEOF
6953 /* end confdefs.h. */
6957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6958 $EGREP "memchr" >/dev
/null
2>&1; then
6961 ac_cv_header_stdc
=no
6967 if test $ac_cv_header_stdc = yes; then
6968 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6969 cat >conftest.
$ac_ext <<_ACEOF
6972 cat confdefs.h
>>conftest.
$ac_ext
6973 cat >>conftest.
$ac_ext <<_ACEOF
6974 /* end confdefs.h. */
6978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6979 $EGREP "free" >/dev
/null
2>&1; then
6982 ac_cv_header_stdc
=no
6988 if test $ac_cv_header_stdc = yes; then
6989 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6990 if test "$cross_compiling" = yes; then
6993 cat >conftest.
$ac_ext <<_ACEOF
6996 cat confdefs.h
>>conftest.
$ac_ext
6997 cat >>conftest.
$ac_ext <<_ACEOF
6998 /* end confdefs.h. */
7000 #if ((' ' & 0x0FF) == 0x020)
7001 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7002 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7004 # define ISLOWER(c) \
7005 (('a' <= (c) && (c) <= 'i') \
7006 || ('j' <= (c) && (c) <= 'r') \
7007 || ('s' <= (c) && (c) <= 'z'))
7008 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7011 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7016 for (i = 0; i < 256; i++)
7017 if (XOR (islower (i), ISLOWER (i))
7018 || toupper (i) != TOUPPER (i))
7023 rm -f conftest
$ac_exeext
7024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7025 (eval $ac_link) 2>&5
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); }; }; then
7036 echo "$as_me: program exited with status $ac_status" >&5
7037 echo "$as_me: failed program was:" >&5
7038 sed 's/^/| /' conftest.
$ac_ext >&5
7041 ac_cv_header_stdc
=no
7043 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7047 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7048 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7049 if test $ac_cv_header_stdc = yes; then
7051 cat >>confdefs.h
<<\_ACEOF
7052 #define STDC_HEADERS 1
7057 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7067 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7068 inttypes.h stdint.h unistd.h
7070 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7071 echo "$as_me:$LINENO: checking for $ac_header" >&5
7072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7076 cat >conftest.
$ac_ext <<_ACEOF
7079 cat confdefs.h
>>conftest.
$ac_ext
7080 cat >>conftest.
$ac_ext <<_ACEOF
7081 /* end confdefs.h. */
7082 $ac_includes_default
7084 #include <$ac_header>
7086 rm -f conftest.
$ac_objext
7087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7088 (eval $ac_compile) 2>conftest.er1
7090 grep -v '^ *+' conftest.er1
>conftest.err
7092 cat conftest.err
>&5
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); } &&
7095 { ac_try
='test -z "$ac_c_werror_flag"
7096 || test ! -s conftest.err'
7097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101 (exit $ac_status); }; } &&
7102 { ac_try
='test -s conftest.$ac_objext'
7103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107 (exit $ac_status); }; }; then
7108 eval "$as_ac_Header=yes"
7110 echo "$as_me: failed program was:" >&5
7111 sed 's/^/| /' conftest.
$ac_ext >&5
7113 eval "$as_ac_Header=no"
7115 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7118 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7120 cat >>confdefs.h
<<_ACEOF
7121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7147 # Check whether --with-Xpm-library or --without-Xpm-library was given.
7148 if test "${with_Xpm_library+set}" = set; then
7149 withval
="$with_Xpm_library"
7150 smr_cv_with_Xpm_library
=$withval
7153 echo "$as_me:$LINENO: checking whether to use Xpm library" >&5
7154 echo $ECHO_N "checking whether to use Xpm library... $ECHO_C" >&6
7155 if test "${smr_cv_with_Xpm_library+set}" = set; then
7156 echo $ECHO_N "(cached) $ECHO_C" >&6
7158 smr_cv_with_Xpm_library
=maybe
7160 echo "$as_me:$LINENO: result: $smr_cv_with_Xpm_library" >&5
7161 echo "${ECHO_T}$smr_cv_with_Xpm_library" >&6
7164 case x
"$smr_cv_with_Xpm_library" in
7167 with_Xpm
=$smr_cv_with_Xpm_library
7174 if test -f "$smr_cv_with_Xpm_library"; then
7175 Xpm_LIBS
=$smr_cv_with_Xpm_library
7176 elif test -d "$smr_cv_with_Xpm_library"; then
7177 Xpm_LIBS
="-L$smr_cv_with_Xpm_library -lXpm"
7179 { { echo "$as_me:$LINENO: error: argument must be boolean, file, or directory" >&5
7180 echo "$as_me: error: argument must be boolean, file, or directory" >&2;}
7181 { (exit 1); exit 1; }; }
7193 if test ! x
"$with_Xpm" = xno
; then
7195 # If we got this far, then the user didn't explicitly ask not to use
7205 # Check whether --with-Xpm-includes or --without-Xpm-includes was given.
7206 if test "${with_Xpm_includes+set}" = set; then
7207 withval
="$with_Xpm_includes"
7208 smr_cv_with_Xpm_includes
=$withval
7211 echo "$as_me:$LINENO: checking where to find the Xpm header files" >&5
7212 echo $ECHO_N "checking where to find the Xpm header files... $ECHO_C" >&6
7213 if test "${smr_cv_with_Xpm_includes+set}" = set; then
7214 echo $ECHO_N "(cached) $ECHO_C" >&6
7216 smr_cv_with_Xpm_includes
=
7218 echo "$as_me:$LINENO: result: $smr_cv_with_Xpm_includes" >&5
7219 echo "${ECHO_T}$smr_cv_with_Xpm_includes" >&6
7221 if test ! x
"$smr_cv_with_Xpm_includes" = x
; then
7222 if test -d "$smr_cv_with_Xpm_includes"; then
7223 Xpm_CFLAGS
="-I$smr_cv_with_Xpm_includes"
7225 { { echo "$as_me:$LINENO: error: argument must be a directory" >&5
7226 echo "$as_me: error: argument must be a directory" >&2;}
7227 { (exit 1); exit 1; }; }
7233 smr_test_CPPFLAGS
="${CPPFLAGS+set}"
7234 smr_save_CPPFLAGS
="$CPPFLAGS"
7235 CPPFLAGS
="$CPPFLAGS $Xpm_CFLAGS $X_CFLAGS"
7238 for ac_header
in X11
/xpm.h
7240 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7242 echo "$as_me:$LINENO: checking for $ac_header" >&5
7243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7245 echo $ECHO_N "(cached) $ECHO_C" >&6
7247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7248 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7250 # Is the header compilable?
7251 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7252 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7253 cat >conftest.
$ac_ext <<_ACEOF
7256 cat confdefs.h
>>conftest.
$ac_ext
7257 cat >>conftest.
$ac_ext <<_ACEOF
7258 /* end confdefs.h. */
7259 $ac_includes_default
7260 #include <$ac_header>
7262 rm -f conftest.
$ac_objext
7263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7264 (eval $ac_compile) 2>conftest.er1
7266 grep -v '^ *+' conftest.er1
>conftest.err
7268 cat conftest.err
>&5
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); } &&
7271 { ac_try
='test -z "$ac_c_werror_flag"
7272 || test ! -s conftest.err'
7273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); }; } &&
7278 { ac_try
='test -s conftest.$ac_objext'
7279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); }; }; then
7284 ac_header_compiler
=yes
7286 echo "$as_me: failed program was:" >&5
7287 sed 's/^/| /' conftest.
$ac_ext >&5
7289 ac_header_compiler
=no
7291 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7292 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7293 echo "${ECHO_T}$ac_header_compiler" >&6
7295 # Is the header present?
7296 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7297 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7298 cat >conftest.
$ac_ext <<_ACEOF
7301 cat confdefs.h
>>conftest.
$ac_ext
7302 cat >>conftest.
$ac_ext <<_ACEOF
7303 /* end confdefs.h. */
7304 #include <$ac_header>
7306 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7307 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7309 grep -v '^ *+' conftest.er1
>conftest.err
7311 cat conftest.err
>&5
7312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313 (exit $ac_status); } >/dev
/null
; then
7314 if test -s conftest.err
; then
7315 ac_cpp_err
=$ac_c_preproc_warn_flag
7316 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7323 if test -z "$ac_cpp_err"; then
7324 ac_header_preproc
=yes
7326 echo "$as_me: failed program was:" >&5
7327 sed 's/^/| /' conftest.
$ac_ext >&5
7329 ac_header_preproc
=no
7331 rm -f conftest.err conftest.
$ac_ext
7332 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7333 echo "${ECHO_T}$ac_header_preproc" >&6
7335 # So? What about this header?
7336 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7338 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7339 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7341 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7342 ac_header_preproc
=yes
7345 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7346 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7347 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7348 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7349 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7350 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7351 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7352 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7354 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7355 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7356 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7359 ## ------------------------------------------ ##
7360 ## Report this to the AC_PACKAGE_NAME lists. ##
7361 ## ------------------------------------------ ##
7364 sed "s/^/$as_me: WARNING: /" >&2
7367 echo "$as_me:$LINENO: checking for $ac_header" >&5
7368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7370 echo $ECHO_N "(cached) $ECHO_C" >&6
7372 eval "$as_ac_Header=\$ac_header_preproc"
7374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7379 cat >>confdefs.h
<<_ACEOF
7380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7382 smr_have_Xpm_header
=yes
7384 smr_have_Xpm_header
=no
7390 if test x
"$smr_test_CPPFLAGS" = xset
; then
7391 CPPFLAGS
=$smr_save_CPPFLAGS
7402 # We need only look for the library if the header has been found
7403 # (or no header is needed).
7404 if test $smr_have_Xpm_header != no
; then
7406 echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
7407 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
7408 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
7409 echo $ECHO_N "(cached) $ECHO_C" >&6
7411 ac_check_lib_save_LIBS
=$LIBS
7412 LIBS
="-lXpm $Xpm_CFLAGS $X_CFLAGS $Xpm_LIBS $X_LIBS $X_PRE_LIBS $X_EXTRA_LIBS -lX11 $LIBS"
7413 cat >conftest.
$ac_ext <<_ACEOF
7416 cat confdefs.h
>>conftest.
$ac_ext
7417 cat >>conftest.
$ac_ext <<_ACEOF
7418 /* end confdefs.h. */
7420 /* Override any gcc2 internal prototype to avoid an error. */
7424 /* We use char because int might match the return type of a gcc2
7425 builtin and then its argument prototype would still apply. */
7426 char XpmCreatePixmapFromData ();
7430 XpmCreatePixmapFromData ();
7435 rm -f conftest.
$ac_objext conftest
$ac_exeext
7436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7437 (eval $ac_link) 2>conftest.er1
7439 grep -v '^ *+' conftest.er1
>conftest.err
7441 cat conftest.err
>&5
7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); } &&
7444 { ac_try
='test -z "$ac_c_werror_flag"
7445 || test ! -s conftest.err'
7446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); }; } &&
7451 { ac_try
='test -s conftest$ac_exeext'
7452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); }; }; then
7457 ac_cv_lib_Xpm_XpmCreatePixmapFromData
=yes
7459 echo "$as_me: failed program was:" >&5
7460 sed 's/^/| /' conftest.
$ac_ext >&5
7462 ac_cv_lib_Xpm_XpmCreatePixmapFromData
=no
7464 rm -f conftest.err conftest.
$ac_objext \
7465 conftest
$ac_exeext conftest.
$ac_ext
7466 LIBS
=$ac_check_lib_save_LIBS
7468 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
7469 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
7470 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
7471 smr_have_Xpm_library
=yes
7473 smr_have_Xpm_library
=no
7478 if test x
"$smr_have_Xpm_library" = xyes
; then
7479 echo "$as_me:$LINENO: result: using Xpm library" >&5
7480 echo "${ECHO_T}using Xpm library" >&6
7485 if test x
"$with_Xpm" = xmaybe
; then
7486 echo "$as_me:$LINENO: result: not using Xpm library" >&5
7487 echo "${ECHO_T}not using Xpm library" >&6
7489 { echo "$as_me:$LINENO: WARNING: requested Xpm library not found!" >&5
7490 echo "$as_me: WARNING: requested Xpm library not found!" >&2;}
7509 if test -z "$no_x"; then
7528 # Check whether --with-Xext-library or --without-Xext-library was given.
7529 if test "${with_Xext_library+set}" = set; then
7530 withval
="$with_Xext_library"
7531 smr_cv_with_Xext_library
=$withval
7534 echo "$as_me:$LINENO: checking whether to use Xext library" >&5
7535 echo $ECHO_N "checking whether to use Xext library... $ECHO_C" >&6
7536 if test "${smr_cv_with_Xext_library+set}" = set; then
7537 echo $ECHO_N "(cached) $ECHO_C" >&6
7539 smr_cv_with_Xext_library
=maybe
7541 echo "$as_me:$LINENO: result: $smr_cv_with_Xext_library" >&5
7542 echo "${ECHO_T}$smr_cv_with_Xext_library" >&6
7545 case x
"$smr_cv_with_Xext_library" in
7548 with_Xext
=$smr_cv_with_Xext_library
7555 if test -f "$smr_cv_with_Xext_library"; then
7556 Xext_LIBS
=$smr_cv_with_Xext_library
7557 elif test -d "$smr_cv_with_Xext_library"; then
7558 Xext_LIBS
="-L$smr_cv_with_Xext_library -lXext"
7560 { { echo "$as_me:$LINENO: error: argument must be boolean, file, or directory" >&5
7561 echo "$as_me: error: argument must be boolean, file, or directory" >&2;}
7562 { (exit 1); exit 1; }; }
7574 if test ! x
"$with_Xext" = xno
; then
7576 # If we got this far, then the user didn't explicitly ask not to use
7586 # Check whether --with-Xext-includes or --without-Xext-includes was given.
7587 if test "${with_Xext_includes+set}" = set; then
7588 withval
="$with_Xext_includes"
7589 smr_cv_with_Xext_includes
=$withval
7592 echo "$as_me:$LINENO: checking where to find the Xext header files" >&5
7593 echo $ECHO_N "checking where to find the Xext header files... $ECHO_C" >&6
7594 if test "${smr_cv_with_Xext_includes+set}" = set; then
7595 echo $ECHO_N "(cached) $ECHO_C" >&6
7597 smr_cv_with_Xext_includes
=
7599 echo "$as_me:$LINENO: result: $smr_cv_with_Xext_includes" >&5
7600 echo "${ECHO_T}$smr_cv_with_Xext_includes" >&6
7602 if test ! x
"$smr_cv_with_Xext_includes" = x
; then
7603 if test -d "$smr_cv_with_Xext_includes"; then
7604 Xext_CFLAGS
="-I$smr_cv_with_Xext_includes"
7606 { { echo "$as_me:$LINENO: error: argument must be a directory" >&5
7607 echo "$as_me: error: argument must be a directory" >&2;}
7608 { (exit 1); exit 1; }; }
7614 smr_test_CPPFLAGS
="${CPPFLAGS+set}"
7615 smr_save_CPPFLAGS
="$CPPFLAGS"
7616 CPPFLAGS
="$CPPFLAGS $Xext_CFLAGS $X_CFLAGS"
7619 for ac_header
in X11
/Xlib.h
7621 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7622 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7623 echo "$as_me:$LINENO: checking for $ac_header" >&5
7624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7626 echo $ECHO_N "(cached) $ECHO_C" >&6
7628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7631 # Is the header compilable?
7632 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7633 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7634 cat >conftest.
$ac_ext <<_ACEOF
7637 cat confdefs.h
>>conftest.
$ac_ext
7638 cat >>conftest.
$ac_ext <<_ACEOF
7639 /* end confdefs.h. */
7640 $ac_includes_default
7641 #include <$ac_header>
7643 rm -f conftest.
$ac_objext
7644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7645 (eval $ac_compile) 2>conftest.er1
7647 grep -v '^ *+' conftest.er1
>conftest.err
7649 cat conftest.err
>&5
7650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); } &&
7652 { ac_try
='test -z "$ac_c_werror_flag"
7653 || test ! -s conftest.err'
7654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); }; } &&
7659 { ac_try
='test -s conftest.$ac_objext'
7660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); }; }; then
7665 ac_header_compiler
=yes
7667 echo "$as_me: failed program was:" >&5
7668 sed 's/^/| /' conftest.
$ac_ext >&5
7670 ac_header_compiler
=no
7672 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7673 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7674 echo "${ECHO_T}$ac_header_compiler" >&6
7676 # Is the header present?
7677 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7678 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7679 cat >conftest.
$ac_ext <<_ACEOF
7682 cat confdefs.h
>>conftest.
$ac_ext
7683 cat >>conftest.
$ac_ext <<_ACEOF
7684 /* end confdefs.h. */
7685 #include <$ac_header>
7687 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7688 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7690 grep -v '^ *+' conftest.er1
>conftest.err
7692 cat conftest.err
>&5
7693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694 (exit $ac_status); } >/dev
/null
; then
7695 if test -s conftest.err
; then
7696 ac_cpp_err
=$ac_c_preproc_warn_flag
7697 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7704 if test -z "$ac_cpp_err"; then
7705 ac_header_preproc
=yes
7707 echo "$as_me: failed program was:" >&5
7708 sed 's/^/| /' conftest.
$ac_ext >&5
7710 ac_header_preproc
=no
7712 rm -f conftest.err conftest.
$ac_ext
7713 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7714 echo "${ECHO_T}$ac_header_preproc" >&6
7716 # So? What about this header?
7717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7719 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7720 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7722 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7723 ac_header_preproc
=yes
7726 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7727 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7728 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7729 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7730 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7731 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7732 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7733 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7736 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7737 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7740 ## ------------------------------------------ ##
7741 ## Report this to the AC_PACKAGE_NAME lists. ##
7742 ## ------------------------------------------ ##
7745 sed "s/^/$as_me: WARNING: /" >&2
7748 echo "$as_me:$LINENO: checking for $ac_header" >&5
7749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7751 echo $ECHO_N "(cached) $ECHO_C" >&6
7753 eval "$as_ac_Header=\$ac_header_preproc"
7755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7756 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7760 cat >>confdefs.h
<<_ACEOF
7761 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7763 smr_have_Xext_header
=yes
7765 smr_have_Xext_header
=no
7771 if test x
"$smr_test_CPPFLAGS" = xset
; then
7772 CPPFLAGS
=$smr_save_CPPFLAGS
7783 # We need only look for the library if the header has been found
7784 # (or no header is needed).
7785 if test $smr_have_Xext_header != no
; then
7787 echo "$as_me:$LINENO: checking for XextAddDisplay in -lXext" >&5
7788 echo $ECHO_N "checking for XextAddDisplay in -lXext... $ECHO_C" >&6
7789 if test "${ac_cv_lib_Xext_XextAddDisplay+set}" = set; then
7790 echo $ECHO_N "(cached) $ECHO_C" >&6
7792 ac_check_lib_save_LIBS
=$LIBS
7793 LIBS
="-lXext $Xext_CFLAGS $X_CFLAGS $Xext_LIBS $X_LIBS $X_PRE_LIBS $X_EXTRA_LIBS -lX11 $LIBS"
7794 cat >conftest.
$ac_ext <<_ACEOF
7797 cat confdefs.h
>>conftest.
$ac_ext
7798 cat >>conftest.
$ac_ext <<_ACEOF
7799 /* end confdefs.h. */
7801 /* Override any gcc2 internal prototype to avoid an error. */
7805 /* We use char because int might match the return type of a gcc2
7806 builtin and then its argument prototype would still apply. */
7807 char XextAddDisplay ();
7816 rm -f conftest.
$ac_objext conftest
$ac_exeext
7817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7818 (eval $ac_link) 2>conftest.er1
7820 grep -v '^ *+' conftest.er1
>conftest.err
7822 cat conftest.err
>&5
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); } &&
7825 { ac_try
='test -z "$ac_c_werror_flag"
7826 || test ! -s conftest.err'
7827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); }; } &&
7832 { ac_try
='test -s conftest$ac_exeext'
7833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); }; }; then
7838 ac_cv_lib_Xext_XextAddDisplay
=yes
7840 echo "$as_me: failed program was:" >&5
7841 sed 's/^/| /' conftest.
$ac_ext >&5
7843 ac_cv_lib_Xext_XextAddDisplay
=no
7845 rm -f conftest.err conftest.
$ac_objext \
7846 conftest
$ac_exeext conftest.
$ac_ext
7847 LIBS
=$ac_check_lib_save_LIBS
7849 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XextAddDisplay" >&5
7850 echo "${ECHO_T}$ac_cv_lib_Xext_XextAddDisplay" >&6
7851 if test $ac_cv_lib_Xext_XextAddDisplay = yes; then
7852 smr_have_Xext_library
=yes
7854 smr_have_Xext_library
=no
7859 if test x
"$smr_have_Xext_library" = xyes
; then
7860 echo "$as_me:$LINENO: result: using Xext library" >&5
7861 echo "${ECHO_T}using Xext library" >&6
7866 if test x
"$with_Xext" = xmaybe
; then
7867 echo "$as_me:$LINENO: result: not using Xext library" >&5
7868 echo "${ECHO_T}not using Xext library" >&6
7870 { echo "$as_me:$LINENO: WARNING: requested Xext library not found!" >&5
7871 echo "$as_me: WARNING: requested Xext library not found!" >&2;}
7906 # Check whether --with-Xp-library or --without-Xp-library was given.
7907 if test "${with_Xp_library+set}" = set; then
7908 withval
="$with_Xp_library"
7909 smr_cv_with_Xp_library
=$withval
7912 echo "$as_me:$LINENO: checking whether to use Xp library" >&5
7913 echo $ECHO_N "checking whether to use Xp library... $ECHO_C" >&6
7914 if test "${smr_cv_with_Xp_library+set}" = set; then
7915 echo $ECHO_N "(cached) $ECHO_C" >&6
7917 smr_cv_with_Xp_library
=maybe
7919 echo "$as_me:$LINENO: result: $smr_cv_with_Xp_library" >&5
7920 echo "${ECHO_T}$smr_cv_with_Xp_library" >&6
7923 case x
"$smr_cv_with_Xp_library" in
7926 with_Xp
=$smr_cv_with_Xp_library
7933 if test -f "$smr_cv_with_Xp_library"; then
7934 Xp_LIBS
=$smr_cv_with_Xp_library
7935 elif test -d "$smr_cv_with_Xp_library"; then
7936 Xp_LIBS
="-L$smr_cv_with_Xp_library -lXp"
7938 { { echo "$as_me:$LINENO: error: argument must be boolean, file, or directory" >&5
7939 echo "$as_me: error: argument must be boolean, file, or directory" >&2;}
7940 { (exit 1); exit 1; }; }
7952 if test ! x
"$with_Xp" = xno
; then
7954 # If we got this far, then the user didn't explicitly ask not to use
7964 # Check whether --with-Xp-includes or --without-Xp-includes was given.
7965 if test "${with_Xp_includes+set}" = set; then
7966 withval
="$with_Xp_includes"
7967 smr_cv_with_Xp_includes
=$withval
7970 echo "$as_me:$LINENO: checking where to find the Xp header files" >&5
7971 echo $ECHO_N "checking where to find the Xp header files... $ECHO_C" >&6
7972 if test "${smr_cv_with_Xp_includes+set}" = set; then
7973 echo $ECHO_N "(cached) $ECHO_C" >&6
7975 smr_cv_with_Xp_includes
=
7977 echo "$as_me:$LINENO: result: $smr_cv_with_Xp_includes" >&5
7978 echo "${ECHO_T}$smr_cv_with_Xp_includes" >&6
7980 if test ! x
"$smr_cv_with_Xp_includes" = x
; then
7981 if test -d "$smr_cv_with_Xp_includes"; then
7982 Xp_CFLAGS
="-I$smr_cv_with_Xp_includes"
7984 { { echo "$as_me:$LINENO: error: argument must be a directory" >&5
7985 echo "$as_me: error: argument must be a directory" >&2;}
7986 { (exit 1); exit 1; }; }
7992 smr_test_CPPFLAGS
="${CPPFLAGS+set}"
7993 smr_save_CPPFLAGS
="$CPPFLAGS"
7994 CPPFLAGS
="$CPPFLAGS $Xp_CFLAGS $X_CFLAGS"
7997 for ac_header
in X11
/extensions
/Print.h
7999 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8001 echo "$as_me:$LINENO: checking for $ac_header" >&5
8002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8004 echo $ECHO_N "(cached) $ECHO_C" >&6
8006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8007 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8009 # Is the header compilable?
8010 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8011 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8012 cat >conftest.
$ac_ext <<_ACEOF
8015 cat confdefs.h
>>conftest.
$ac_ext
8016 cat >>conftest.
$ac_ext <<_ACEOF
8017 /* end confdefs.h. */
8018 $ac_includes_default
8019 #include <$ac_header>
8021 rm -f conftest.
$ac_objext
8022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8023 (eval $ac_compile) 2>conftest.er1
8025 grep -v '^ *+' conftest.er1
>conftest.err
8027 cat conftest.err
>&5
8028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); } &&
8030 { ac_try
='test -z "$ac_c_werror_flag"
8031 || test ! -s conftest.err'
8032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); }; } &&
8037 { ac_try
='test -s conftest.$ac_objext'
8038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); }; }; then
8043 ac_header_compiler
=yes
8045 echo "$as_me: failed program was:" >&5
8046 sed 's/^/| /' conftest.
$ac_ext >&5
8048 ac_header_compiler
=no
8050 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8051 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8052 echo "${ECHO_T}$ac_header_compiler" >&6
8054 # Is the header present?
8055 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8056 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8057 cat >conftest.
$ac_ext <<_ACEOF
8060 cat confdefs.h
>>conftest.
$ac_ext
8061 cat >>conftest.
$ac_ext <<_ACEOF
8062 /* end confdefs.h. */
8063 #include <$ac_header>
8065 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8066 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8068 grep -v '^ *+' conftest.er1
>conftest.err
8070 cat conftest.err
>&5
8071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 (exit $ac_status); } >/dev
/null
; then
8073 if test -s conftest.err
; then
8074 ac_cpp_err
=$ac_c_preproc_warn_flag
8075 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8082 if test -z "$ac_cpp_err"; then
8083 ac_header_preproc
=yes
8085 echo "$as_me: failed program was:" >&5
8086 sed 's/^/| /' conftest.
$ac_ext >&5
8088 ac_header_preproc
=no
8090 rm -f conftest.err conftest.
$ac_ext
8091 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8092 echo "${ECHO_T}$ac_header_preproc" >&6
8094 # So? What about this header?
8095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8097 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8098 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8100 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8101 ac_header_preproc
=yes
8104 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8105 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8106 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8107 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8108 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8109 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8110 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8111 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8114 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8115 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8118 ## ------------------------------------------ ##
8119 ## Report this to the AC_PACKAGE_NAME lists. ##
8120 ## ------------------------------------------ ##
8123 sed "s/^/$as_me: WARNING: /" >&2
8126 echo "$as_me:$LINENO: checking for $ac_header" >&5
8127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8129 echo $ECHO_N "(cached) $ECHO_C" >&6
8131 eval "$as_ac_Header=\$ac_header_preproc"
8133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8134 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8137 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8138 cat >>confdefs.h
<<_ACEOF
8139 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8141 smr_have_Xp_header
=yes
8143 smr_have_Xp_header
=no
8149 if test x
"$smr_test_CPPFLAGS" = xset
; then
8150 CPPFLAGS
=$smr_save_CPPFLAGS
8161 # We need only look for the library if the header has been found
8162 # (or no header is needed).
8163 if test $smr_have_Xp_header != no
; then
8165 echo "$as_me:$LINENO: checking for XpStartPage in -lXp" >&5
8166 echo $ECHO_N "checking for XpStartPage in -lXp... $ECHO_C" >&6
8167 if test "${ac_cv_lib_Xp_XpStartPage+set}" = set; then
8168 echo $ECHO_N "(cached) $ECHO_C" >&6
8170 ac_check_lib_save_LIBS
=$LIBS
8171 LIBS
="-lXp $Xp_CFLAGS $X_CFLAGS $Xp_LIBS $X_LIBS $X_PRE_LIBS $Xext_LIBS $X_EXTRA_LIBS -lX11 $LIBS"
8172 cat >conftest.
$ac_ext <<_ACEOF
8175 cat confdefs.h
>>conftest.
$ac_ext
8176 cat >>conftest.
$ac_ext <<_ACEOF
8177 /* end confdefs.h. */
8179 /* Override any gcc2 internal prototype to avoid an error. */
8183 /* We use char because int might match the return type of a gcc2
8184 builtin and then its argument prototype would still apply. */
8185 char XpStartPage ();
8194 rm -f conftest.
$ac_objext conftest
$ac_exeext
8195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8196 (eval $ac_link) 2>conftest.er1
8198 grep -v '^ *+' conftest.er1
>conftest.err
8200 cat conftest.err
>&5
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); } &&
8203 { ac_try
='test -z "$ac_c_werror_flag"
8204 || test ! -s conftest.err'
8205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); }; } &&
8210 { ac_try
='test -s conftest$ac_exeext'
8211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); }; }; then
8216 ac_cv_lib_Xp_XpStartPage
=yes
8218 echo "$as_me: failed program was:" >&5
8219 sed 's/^/| /' conftest.
$ac_ext >&5
8221 ac_cv_lib_Xp_XpStartPage
=no
8223 rm -f conftest.err conftest.
$ac_objext \
8224 conftest
$ac_exeext conftest.
$ac_ext
8225 LIBS
=$ac_check_lib_save_LIBS
8227 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpStartPage" >&5
8228 echo "${ECHO_T}$ac_cv_lib_Xp_XpStartPage" >&6
8229 if test $ac_cv_lib_Xp_XpStartPage = yes; then
8230 smr_have_Xp_library
=yes
8232 smr_have_Xp_library
=no
8237 if test x
"$smr_have_Xp_library" = xyes
; then
8238 echo "$as_me:$LINENO: result: using Xp library" >&5
8239 echo "${ECHO_T}using Xp library" >&6
8244 if test x
"$with_Xp" = xmaybe
; then
8245 echo "$as_me:$LINENO: result: not using Xp library" >&5
8246 echo "${ECHO_T}not using Xp library" >&6
8248 { echo "$as_me:$LINENO: WARNING: requested Xp library not found!" >&5
8249 echo "$as_me: WARNING: requested Xp library not found!" >&2;}
8284 # Check whether --with-Xt-library or --without-Xt-library was given.
8285 if test "${with_Xt_library+set}" = set; then
8286 withval
="$with_Xt_library"
8287 smr_cv_with_Xt_library
=$withval
8290 echo "$as_me:$LINENO: checking whether to use Xt library" >&5
8291 echo $ECHO_N "checking whether to use Xt library... $ECHO_C" >&6
8292 if test "${smr_cv_with_Xt_library+set}" = set; then
8293 echo $ECHO_N "(cached) $ECHO_C" >&6
8295 smr_cv_with_Xt_library
=maybe
8297 echo "$as_me:$LINENO: result: $smr_cv_with_Xt_library" >&5
8298 echo "${ECHO_T}$smr_cv_with_Xt_library" >&6
8301 case x
"$smr_cv_with_Xt_library" in
8304 with_Xt
=$smr_cv_with_Xt_library
8311 if test -f "$smr_cv_with_Xt_library"; then
8312 Xt_LIBS
=$smr_cv_with_Xt_library
8313 elif test -d "$smr_cv_with_Xt_library"; then
8314 Xt_LIBS
="-L$smr_cv_with_Xt_library -lXt"
8316 { { echo "$as_me:$LINENO: error: argument must be boolean, file, or directory" >&5
8317 echo "$as_me: error: argument must be boolean, file, or directory" >&2;}
8318 { (exit 1); exit 1; }; }
8330 if test ! x
"$with_Xt" = xno
; then
8332 # If we got this far, then the user didn't explicitly ask not to use
8342 # Check whether --with-Xt-includes or --without-Xt-includes was given.
8343 if test "${with_Xt_includes+set}" = set; then
8344 withval
="$with_Xt_includes"
8345 smr_cv_with_Xt_includes
=$withval
8348 echo "$as_me:$LINENO: checking where to find the Xt header files" >&5
8349 echo $ECHO_N "checking where to find the Xt header files... $ECHO_C" >&6
8350 if test "${smr_cv_with_Xt_includes+set}" = set; then
8351 echo $ECHO_N "(cached) $ECHO_C" >&6
8353 smr_cv_with_Xt_includes
=
8355 echo "$as_me:$LINENO: result: $smr_cv_with_Xt_includes" >&5
8356 echo "${ECHO_T}$smr_cv_with_Xt_includes" >&6
8358 if test ! x
"$smr_cv_with_Xt_includes" = x
; then
8359 if test -d "$smr_cv_with_Xt_includes"; then
8360 Xt_CFLAGS
="-I$smr_cv_with_Xt_includes"
8362 { { echo "$as_me:$LINENO: error: argument must be a directory" >&5
8363 echo "$as_me: error: argument must be a directory" >&2;}
8364 { (exit 1); exit 1; }; }
8370 smr_test_CPPFLAGS
="${CPPFLAGS+set}"
8371 smr_save_CPPFLAGS
="$CPPFLAGS"
8372 CPPFLAGS
="$CPPFLAGS $Xt_CFLAGS $X_CFLAGS"
8375 for ac_header
in X11
/Intrinsic.h
8377 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8379 echo "$as_me:$LINENO: checking for $ac_header" >&5
8380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8382 echo $ECHO_N "(cached) $ECHO_C" >&6
8384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8387 # Is the header compilable?
8388 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8389 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8390 cat >conftest.
$ac_ext <<_ACEOF
8393 cat confdefs.h
>>conftest.
$ac_ext
8394 cat >>conftest.
$ac_ext <<_ACEOF
8395 /* end confdefs.h. */
8396 $ac_includes_default
8397 #include <$ac_header>
8399 rm -f conftest.
$ac_objext
8400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8401 (eval $ac_compile) 2>conftest.er1
8403 grep -v '^ *+' conftest.er1
>conftest.err
8405 cat conftest.err
>&5
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); } &&
8408 { ac_try
='test -z "$ac_c_werror_flag"
8409 || test ! -s conftest.err'
8410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); }; } &&
8415 { ac_try
='test -s conftest.$ac_objext'
8416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); }; }; then
8421 ac_header_compiler
=yes
8423 echo "$as_me: failed program was:" >&5
8424 sed 's/^/| /' conftest.
$ac_ext >&5
8426 ac_header_compiler
=no
8428 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8429 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8430 echo "${ECHO_T}$ac_header_compiler" >&6
8432 # Is the header present?
8433 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8434 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8435 cat >conftest.
$ac_ext <<_ACEOF
8438 cat confdefs.h
>>conftest.
$ac_ext
8439 cat >>conftest.
$ac_ext <<_ACEOF
8440 /* end confdefs.h. */
8441 #include <$ac_header>
8443 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8444 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8446 grep -v '^ *+' conftest.er1
>conftest.err
8448 cat conftest.err
>&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); } >/dev
/null
; then
8451 if test -s conftest.err
; then
8452 ac_cpp_err
=$ac_c_preproc_warn_flag
8453 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8460 if test -z "$ac_cpp_err"; then
8461 ac_header_preproc
=yes
8463 echo "$as_me: failed program was:" >&5
8464 sed 's/^/| /' conftest.
$ac_ext >&5
8466 ac_header_preproc
=no
8468 rm -f conftest.err conftest.
$ac_ext
8469 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8470 echo "${ECHO_T}$ac_header_preproc" >&6
8472 # So? What about this header?
8473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8475 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8476 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8478 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8479 ac_header_preproc
=yes
8482 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8483 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8484 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8485 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8486 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8487 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8488 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8489 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8492 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8493 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8496 ## ------------------------------------------ ##
8497 ## Report this to the AC_PACKAGE_NAME lists. ##
8498 ## ------------------------------------------ ##
8501 sed "s/^/$as_me: WARNING: /" >&2
8504 echo "$as_me:$LINENO: checking for $ac_header" >&5
8505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8507 echo $ECHO_N "(cached) $ECHO_C" >&6
8509 eval "$as_ac_Header=\$ac_header_preproc"
8511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8516 cat >>confdefs.h
<<_ACEOF
8517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8519 smr_have_Xt_header
=yes
8521 smr_have_Xt_header
=no
8527 if test x
"$smr_test_CPPFLAGS" = xset
; then
8528 CPPFLAGS
=$smr_save_CPPFLAGS
8539 # We need only look for the library if the header has been found
8540 # (or no header is needed).
8541 if test $smr_have_Xt_header != no
; then
8543 echo "$as_me:$LINENO: checking for XtAppInitialize in -lXt" >&5
8544 echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6
8545 if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then
8546 echo $ECHO_N "(cached) $ECHO_C" >&6
8548 ac_check_lib_save_LIBS
=$LIBS
8549 LIBS
="-lXt $Xt_CFLAGS $X_CFLAGS $Xt_LIBS $X_LIBS $X_PRE_LIBS $X_EXTRA_LIBS -lX11 $LIBS"
8550 cat >conftest.
$ac_ext <<_ACEOF
8553 cat confdefs.h
>>conftest.
$ac_ext
8554 cat >>conftest.
$ac_ext <<_ACEOF
8555 /* end confdefs.h. */
8557 /* Override any gcc2 internal prototype to avoid an error. */
8561 /* We use char because int might match the return type of a gcc2
8562 builtin and then its argument prototype would still apply. */
8563 char XtAppInitialize ();
8572 rm -f conftest.
$ac_objext conftest
$ac_exeext
8573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8574 (eval $ac_link) 2>conftest.er1
8576 grep -v '^ *+' conftest.er1
>conftest.err
8578 cat conftest.err
>&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); } &&
8581 { ac_try
='test -z "$ac_c_werror_flag"
8582 || test ! -s conftest.err'
8583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); }; } &&
8588 { ac_try
='test -s conftest$ac_exeext'
8589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); }; }; then
8594 ac_cv_lib_Xt_XtAppInitialize
=yes
8596 echo "$as_me: failed program was:" >&5
8597 sed 's/^/| /' conftest.
$ac_ext >&5
8599 ac_cv_lib_Xt_XtAppInitialize
=no
8601 rm -f conftest.err conftest.
$ac_objext \
8602 conftest
$ac_exeext conftest.
$ac_ext
8603 LIBS
=$ac_check_lib_save_LIBS
8605 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtAppInitialize" >&5
8606 echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6
8607 if test $ac_cv_lib_Xt_XtAppInitialize = yes; then
8608 smr_have_Xt_library
=yes
8610 smr_have_Xt_library
=no
8615 if test x
"$smr_have_Xt_library" = xyes
; then
8616 echo "$as_me:$LINENO: result: using Xt library" >&5
8617 echo "${ECHO_T}using Xt library" >&6
8622 if test x
"$with_Xt" = xmaybe
; then
8623 echo "$as_me:$LINENO: result: not using Xt library" >&5
8624 echo "${ECHO_T}not using Xt library" >&6
8626 { echo "$as_me:$LINENO: WARNING: requested Xt library not found!" >&5
8627 echo "$as_me: WARNING: requested Xt library not found!" >&2;}
8662 # Check whether --with-Xm-library or --without-Xm-library was given.
8663 if test "${with_Xm_library+set}" = set; then
8664 withval
="$with_Xm_library"
8665 smr_cv_with_Xm_library
=$withval
8668 echo "$as_me:$LINENO: checking whether to use Xm library" >&5
8669 echo $ECHO_N "checking whether to use Xm library... $ECHO_C" >&6
8670 if test "${smr_cv_with_Xm_library+set}" = set; then
8671 echo $ECHO_N "(cached) $ECHO_C" >&6
8673 smr_cv_with_Xm_library
=maybe
8675 echo "$as_me:$LINENO: result: $smr_cv_with_Xm_library" >&5
8676 echo "${ECHO_T}$smr_cv_with_Xm_library" >&6
8679 case x
"$smr_cv_with_Xm_library" in
8682 with_Xm
=$smr_cv_with_Xm_library
8689 if test -f "$smr_cv_with_Xm_library"; then
8690 Xm_LIBS
=$smr_cv_with_Xm_library
8691 elif test -d "$smr_cv_with_Xm_library"; then
8692 Xm_LIBS
="-L$smr_cv_with_Xm_library -lXm"
8694 { { echo "$as_me:$LINENO: error: argument must be boolean, file, or directory" >&5
8695 echo "$as_me: error: argument must be boolean, file, or directory" >&2;}
8696 { (exit 1); exit 1; }; }
8708 if test ! x
"$with_Xm" = xno
; then
8710 # If we got this far, then the user didn't explicitly ask not to use
8720 # Check whether --with-Xm-includes or --without-Xm-includes was given.
8721 if test "${with_Xm_includes+set}" = set; then
8722 withval
="$with_Xm_includes"
8723 smr_cv_with_Xm_includes
=$withval
8726 echo "$as_me:$LINENO: checking where to find the Xm header files" >&5
8727 echo $ECHO_N "checking where to find the Xm header files... $ECHO_C" >&6
8728 if test "${smr_cv_with_Xm_includes+set}" = set; then
8729 echo $ECHO_N "(cached) $ECHO_C" >&6
8731 smr_cv_with_Xm_includes
=
8733 echo "$as_me:$LINENO: result: $smr_cv_with_Xm_includes" >&5
8734 echo "${ECHO_T}$smr_cv_with_Xm_includes" >&6
8736 if test ! x
"$smr_cv_with_Xm_includes" = x
; then
8737 if test -d "$smr_cv_with_Xm_includes"; then
8738 Xm_CFLAGS
="-I$smr_cv_with_Xm_includes"
8740 { { echo "$as_me:$LINENO: error: argument must be a directory" >&5
8741 echo "$as_me: error: argument must be a directory" >&2;}
8742 { (exit 1); exit 1; }; }
8748 smr_test_CPPFLAGS
="${CPPFLAGS+set}"
8749 smr_save_CPPFLAGS
="$CPPFLAGS"
8750 CPPFLAGS
="$CPPFLAGS $Xm_CFLAGS $X_CFLAGS"
8753 for ac_header
in Xm
/XmAll.h
8755 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8757 echo "$as_me:$LINENO: checking for $ac_header" >&5
8758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8760 echo $ECHO_N "(cached) $ECHO_C" >&6
8762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8765 # Is the header compilable?
8766 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8767 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8768 cat >conftest.
$ac_ext <<_ACEOF
8771 cat confdefs.h
>>conftest.
$ac_ext
8772 cat >>conftest.
$ac_ext <<_ACEOF
8773 /* end confdefs.h. */
8774 $ac_includes_default
8775 #include <$ac_header>
8777 rm -f conftest.
$ac_objext
8778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8779 (eval $ac_compile) 2>conftest.er1
8781 grep -v '^ *+' conftest.er1
>conftest.err
8783 cat conftest.err
>&5
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); } &&
8786 { ac_try
='test -z "$ac_c_werror_flag"
8787 || test ! -s conftest.err'
8788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); }; } &&
8793 { ac_try
='test -s conftest.$ac_objext'
8794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 (exit $ac_status); }; }; then
8799 ac_header_compiler
=yes
8801 echo "$as_me: failed program was:" >&5
8802 sed 's/^/| /' conftest.
$ac_ext >&5
8804 ac_header_compiler
=no
8806 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8807 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8808 echo "${ECHO_T}$ac_header_compiler" >&6
8810 # Is the header present?
8811 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8812 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8813 cat >conftest.
$ac_ext <<_ACEOF
8816 cat confdefs.h
>>conftest.
$ac_ext
8817 cat >>conftest.
$ac_ext <<_ACEOF
8818 /* end confdefs.h. */
8819 #include <$ac_header>
8821 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8822 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8824 grep -v '^ *+' conftest.er1
>conftest.err
8826 cat conftest.err
>&5
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); } >/dev
/null
; then
8829 if test -s conftest.err
; then
8830 ac_cpp_err
=$ac_c_preproc_warn_flag
8831 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8838 if test -z "$ac_cpp_err"; then
8839 ac_header_preproc
=yes
8841 echo "$as_me: failed program was:" >&5
8842 sed 's/^/| /' conftest.
$ac_ext >&5
8844 ac_header_preproc
=no
8846 rm -f conftest.err conftest.
$ac_ext
8847 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8848 echo "${ECHO_T}$ac_header_preproc" >&6
8850 # So? What about this header?
8851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8853 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8854 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8856 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8857 ac_header_preproc
=yes
8860 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8861 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8862 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8863 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8864 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8865 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8866 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8867 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8869 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8870 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8871 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8874 ## ------------------------------------------ ##
8875 ## Report this to the AC_PACKAGE_NAME lists. ##
8876 ## ------------------------------------------ ##
8879 sed "s/^/$as_me: WARNING: /" >&2
8882 echo "$as_me:$LINENO: checking for $ac_header" >&5
8883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8885 echo $ECHO_N "(cached) $ECHO_C" >&6
8887 eval "$as_ac_Header=\$ac_header_preproc"
8889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8890 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8894 cat >>confdefs.h
<<_ACEOF
8895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8897 smr_have_Xm_header
=yes
8899 smr_have_Xm_header
=no
8905 if test x
"$smr_test_CPPFLAGS" = xset
; then
8906 CPPFLAGS
=$smr_save_CPPFLAGS
8917 # We need only look for the library if the header has been found
8918 # (or no header is needed).
8919 if test $smr_have_Xm_header != no
; then
8921 echo "$as_me:$LINENO: checking for XmCreateForm in -lXm" >&5
8922 echo $ECHO_N "checking for XmCreateForm in -lXm... $ECHO_C" >&6
8923 if test "${ac_cv_lib_Xm_XmCreateForm+set}" = set; then
8924 echo $ECHO_N "(cached) $ECHO_C" >&6
8926 ac_check_lib_save_LIBS
=$LIBS
8927 LIBS
="-lXm $Xm_CFLAGS $X_CFLAGS $Xm_LIBS $Xt_LIBS $X_LIBS $X_PRE_LIBS $Xp_LIBS $Xext_LIBS $X_EXTRA_LIBS -lX11 $LIBS"
8928 cat >conftest.
$ac_ext <<_ACEOF
8931 cat confdefs.h
>>conftest.
$ac_ext
8932 cat >>conftest.
$ac_ext <<_ACEOF
8933 /* end confdefs.h. */
8935 /* Override any gcc2 internal prototype to avoid an error. */
8939 /* We use char because int might match the return type of a gcc2
8940 builtin and then its argument prototype would still apply. */
8941 char XmCreateForm ();
8950 rm -f conftest.
$ac_objext conftest
$ac_exeext
8951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8952 (eval $ac_link) 2>conftest.er1
8954 grep -v '^ *+' conftest.er1
>conftest.err
8956 cat conftest.err
>&5
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); } &&
8959 { ac_try
='test -z "$ac_c_werror_flag"
8960 || test ! -s conftest.err'
8961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); }; } &&
8966 { ac_try
='test -s conftest$ac_exeext'
8967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); }; }; then
8972 ac_cv_lib_Xm_XmCreateForm
=yes
8974 echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.
$ac_ext >&5
8977 ac_cv_lib_Xm_XmCreateForm
=no
8979 rm -f conftest.err conftest.
$ac_objext \
8980 conftest
$ac_exeext conftest.
$ac_ext
8981 LIBS
=$ac_check_lib_save_LIBS
8983 echo "$as_me:$LINENO: result: $ac_cv_lib_Xm_XmCreateForm" >&5
8984 echo "${ECHO_T}$ac_cv_lib_Xm_XmCreateForm" >&6
8985 if test $ac_cv_lib_Xm_XmCreateForm = yes; then
8986 smr_have_Xm_library
=yes
8988 smr_have_Xm_library
=no
8993 if test x
"$smr_have_Xm_library" = xyes
; then
8994 echo "$as_me:$LINENO: result: using Xm library" >&5
8995 echo "${ECHO_T}using Xm library" >&6
9000 if test x
"$with_Xm" = xmaybe
; then
9001 echo "$as_me:$LINENO: result: not using Xm library" >&5
9002 echo "${ECHO_T}not using Xm library" >&6
9004 { echo "$as_me:$LINENO: WARNING: requested Xm library not found!" >&5
9005 echo "$as_me: WARNING: requested Xm library not found!" >&2;}
9040 # Check whether --with-Sgm-library or --without-Sgm-library was given.
9041 if test "${with_Sgm_library+set}" = set; then
9042 withval
="$with_Sgm_library"
9043 smr_cv_with_Sgm_library
=$withval
9046 echo "$as_me:$LINENO: checking whether to use Sgm library" >&5
9047 echo $ECHO_N "checking whether to use Sgm library... $ECHO_C" >&6
9048 if test "${smr_cv_with_Sgm_library+set}" = set; then
9049 echo $ECHO_N "(cached) $ECHO_C" >&6
9051 smr_cv_with_Sgm_library
=maybe
9053 echo "$as_me:$LINENO: result: $smr_cv_with_Sgm_library" >&5
9054 echo "${ECHO_T}$smr_cv_with_Sgm_library" >&6
9057 case x
"$smr_cv_with_Sgm_library" in
9060 with_Sgm
=$smr_cv_with_Sgm_library
9067 if test -f "$smr_cv_with_Sgm_library"; then
9068 Sgm_LIBS
=$smr_cv_with_Sgm_library
9069 elif test -d "$smr_cv_with_Sgm_library"; then
9070 Sgm_LIBS
="-L$smr_cv_with_Sgm_library -lSgm"
9072 { { echo "$as_me:$LINENO: error: argument must be boolean, file, or directory" >&5
9073 echo "$as_me: error: argument must be boolean, file, or directory" >&2;}
9074 { (exit 1); exit 1; }; }
9086 if test ! x
"$with_Sgm" = xno
; then
9088 # If we got this far, then the user didn't explicitly ask not to use
9098 # Check whether --with-Sgm-includes or --without-Sgm-includes was given.
9099 if test "${with_Sgm_includes+set}" = set; then
9100 withval
="$with_Sgm_includes"
9101 smr_cv_with_Sgm_includes
=$withval
9104 echo "$as_me:$LINENO: checking where to find the Sgm header files" >&5
9105 echo $ECHO_N "checking where to find the Sgm header files... $ECHO_C" >&6
9106 if test "${smr_cv_with_Sgm_includes+set}" = set; then
9107 echo $ECHO_N "(cached) $ECHO_C" >&6
9109 smr_cv_with_Sgm_includes
=
9111 echo "$as_me:$LINENO: result: $smr_cv_with_Sgm_includes" >&5
9112 echo "${ECHO_T}$smr_cv_with_Sgm_includes" >&6
9114 if test ! x
"$smr_cv_with_Sgm_includes" = x
; then
9115 if test -d "$smr_cv_with_Sgm_includes"; then
9116 Sgm_CFLAGS
="-I$smr_cv_with_Sgm_includes"
9118 { { echo "$as_me:$LINENO: error: argument must be a directory" >&5
9119 echo "$as_me: error: argument must be a directory" >&2;}
9120 { (exit 1); exit 1; }; }
9126 smr_test_CPPFLAGS
="${CPPFLAGS+set}"
9127 smr_save_CPPFLAGS
="$CPPFLAGS"
9128 CPPFLAGS
="$CPPFLAGS $Sgm_CFLAGS $X_CFLAGS"
9131 for ac_header
in Sgm
/HPanedW.h
9133 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9135 echo "$as_me:$LINENO: checking for $ac_header" >&5
9136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9138 echo $ECHO_N "(cached) $ECHO_C" >&6
9140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9143 # Is the header compilable?
9144 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9145 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9146 cat >conftest.
$ac_ext <<_ACEOF
9149 cat confdefs.h
>>conftest.
$ac_ext
9150 cat >>conftest.
$ac_ext <<_ACEOF
9151 /* end confdefs.h. */
9152 $ac_includes_default
9153 #include <$ac_header>
9155 rm -f conftest.
$ac_objext
9156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9157 (eval $ac_compile) 2>conftest.er1
9159 grep -v '^ *+' conftest.er1
>conftest.err
9161 cat conftest.err
>&5
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); } &&
9164 { ac_try
='test -z "$ac_c_werror_flag"
9165 || test ! -s conftest.err'
9166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); }; } &&
9171 { ac_try
='test -s conftest.$ac_objext'
9172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176 (exit $ac_status); }; }; then
9177 ac_header_compiler
=yes
9179 echo "$as_me: failed program was:" >&5
9180 sed 's/^/| /' conftest.
$ac_ext >&5
9182 ac_header_compiler
=no
9184 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9185 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9186 echo "${ECHO_T}$ac_header_compiler" >&6
9188 # Is the header present?
9189 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9190 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9191 cat >conftest.
$ac_ext <<_ACEOF
9194 cat confdefs.h
>>conftest.
$ac_ext
9195 cat >>conftest.
$ac_ext <<_ACEOF
9196 /* end confdefs.h. */
9197 #include <$ac_header>
9199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9200 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9202 grep -v '^ *+' conftest.er1
>conftest.err
9204 cat conftest.err
>&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); } >/dev
/null
; then
9207 if test -s conftest.err
; then
9208 ac_cpp_err
=$ac_c_preproc_warn_flag
9209 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9216 if test -z "$ac_cpp_err"; then
9217 ac_header_preproc
=yes
9219 echo "$as_me: failed program was:" >&5
9220 sed 's/^/| /' conftest.
$ac_ext >&5
9222 ac_header_preproc
=no
9224 rm -f conftest.err conftest.
$ac_ext
9225 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9226 echo "${ECHO_T}$ac_header_preproc" >&6
9228 # So? What about this header?
9229 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9231 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9232 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9234 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9235 ac_header_preproc
=yes
9238 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9239 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9240 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9241 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9242 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9243 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9244 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9245 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9247 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9248 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9249 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9252 ## ------------------------------------------ ##
9253 ## Report this to the AC_PACKAGE_NAME lists. ##
9254 ## ------------------------------------------ ##
9257 sed "s/^/$as_me: WARNING: /" >&2
9260 echo "$as_me:$LINENO: checking for $ac_header" >&5
9261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9263 echo $ECHO_N "(cached) $ECHO_C" >&6
9265 eval "$as_ac_Header=\$ac_header_preproc"
9267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9268 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9271 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9272 cat >>confdefs.h
<<_ACEOF
9273 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9275 smr_have_Sgm_header
=yes
9277 smr_have_Sgm_header
=no
9283 if test x
"$smr_test_CPPFLAGS" = xset
; then
9284 CPPFLAGS
=$smr_save_CPPFLAGS
9295 # We need only look for the library if the header has been found
9296 # (or no header is needed).
9297 if test $smr_have_Sgm_header != no
; then
9299 echo "$as_me:$LINENO: checking for SgCreateHorzPanedWindow in -lSgm" >&5
9300 echo $ECHO_N "checking for SgCreateHorzPanedWindow in -lSgm... $ECHO_C" >&6
9301 if test "${ac_cv_lib_Sgm_SgCreateHorzPanedWindow+set}" = set; then
9302 echo $ECHO_N "(cached) $ECHO_C" >&6
9304 ac_check_lib_save_LIBS
=$LIBS
9305 LIBS
="-lSgm $Sgm_CFLAGS $X_CFLAGS $Sgm_LIBS $Xm_LIBS $Xt_LIBS $X_LIBS $X_PRE_LIBS $Xp_LIBS $Xext_LIBS $X_EXTRA_LIBS -lX11 $LIBS"
9306 cat >conftest.
$ac_ext <<_ACEOF
9309 cat confdefs.h
>>conftest.
$ac_ext
9310 cat >>conftest.
$ac_ext <<_ACEOF
9311 /* end confdefs.h. */
9313 /* Override any gcc2 internal prototype to avoid an error. */
9317 /* We use char because int might match the return type of a gcc2
9318 builtin and then its argument prototype would still apply. */
9319 char SgCreateHorzPanedWindow ();
9323 SgCreateHorzPanedWindow ();
9328 rm -f conftest.
$ac_objext conftest
$ac_exeext
9329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9330 (eval $ac_link) 2>conftest.er1
9332 grep -v '^ *+' conftest.er1
>conftest.err
9334 cat conftest.err
>&5
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); } &&
9337 { ac_try
='test -z "$ac_c_werror_flag"
9338 || test ! -s conftest.err'
9339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); }; } &&
9344 { ac_try
='test -s conftest$ac_exeext'
9345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); }; }; then
9350 ac_cv_lib_Sgm_SgCreateHorzPanedWindow
=yes
9352 echo "$as_me: failed program was:" >&5
9353 sed 's/^/| /' conftest.
$ac_ext >&5
9355 ac_cv_lib_Sgm_SgCreateHorzPanedWindow
=no
9357 rm -f conftest.err conftest.
$ac_objext \
9358 conftest
$ac_exeext conftest.
$ac_ext
9359 LIBS
=$ac_check_lib_save_LIBS
9361 echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateHorzPanedWindow" >&5
9362 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateHorzPanedWindow" >&6
9363 if test $ac_cv_lib_Sgm_SgCreateHorzPanedWindow = yes; then
9364 smr_have_Sgm_library
=yes
9366 smr_have_Sgm_library
=no
9371 if test x
"$smr_have_Sgm_library" = xyes
; then
9372 echo "$as_me:$LINENO: result: using Sgm library" >&5
9373 echo "${ECHO_T}using Sgm library" >&6
9378 if test x
"$with_Sgm" = xmaybe
; then
9379 echo "$as_me:$LINENO: result: not using Sgm library" >&5
9380 echo "${ECHO_T}not using Sgm library" >&6
9382 { echo "$as_me:$LINENO: WARNING: requested Sgm library not found!" >&5
9383 echo "$as_me: WARNING: requested Sgm library not found!" >&2;}
9401 if test "x$smr_have_Xt_library" = xyes
; then
9402 echo "$as_me:$LINENO: checking for XtAppSetExitFlag in -lXt" >&5
9403 echo $ECHO_N "checking for XtAppSetExitFlag in -lXt... $ECHO_C" >&6
9404 if test "${ac_cv_lib_Xt_XtAppSetExitFlag+set}" = set; then
9405 echo $ECHO_N "(cached) $ECHO_C" >&6
9407 ac_check_lib_save_LIBS
=$LIBS
9408 LIBS
="-lXt $Xt_LIBS $X_LIBS $X_PRE_LIBS $Xp_LIBS $Xext_LIBS $X_EXTRA_LIBS -lX11 $LIBS"
9409 cat >conftest.
$ac_ext <<_ACEOF
9412 cat confdefs.h
>>conftest.
$ac_ext
9413 cat >>conftest.
$ac_ext <<_ACEOF
9414 /* end confdefs.h. */
9416 /* Override any gcc2 internal prototype to avoid an error. */
9420 /* We use char because int might match the return type of a gcc2
9421 builtin and then its argument prototype would still apply. */
9422 char XtAppSetExitFlag ();
9426 XtAppSetExitFlag ();
9431 rm -f conftest.
$ac_objext conftest
$ac_exeext
9432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9433 (eval $ac_link) 2>conftest.er1
9435 grep -v '^ *+' conftest.er1
>conftest.err
9437 cat conftest.err
>&5
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); } &&
9440 { ac_try
='test -z "$ac_c_werror_flag"
9441 || test ! -s conftest.err'
9442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); }; } &&
9447 { ac_try
='test -s conftest$ac_exeext'
9448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); }; }; then
9453 ac_cv_lib_Xt_XtAppSetExitFlag
=yes
9455 echo "$as_me: failed program was:" >&5
9456 sed 's/^/| /' conftest.
$ac_ext >&5
9458 ac_cv_lib_Xt_XtAppSetExitFlag
=no
9460 rm -f conftest.err conftest.
$ac_objext \
9461 conftest
$ac_exeext conftest.
$ac_ext
9462 LIBS
=$ac_check_lib_save_LIBS
9464 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtAppSetExitFlag" >&5
9465 echo "${ECHO_T}$ac_cv_lib_Xt_XtAppSetExitFlag" >&6
9466 if test $ac_cv_lib_Xt_XtAppSetExitFlag = yes; then
9467 cat >>confdefs.h
<<\_ACEOF
9468 #define HAVE_XTAPPSETEXITFLAG 1
9494 # Check whether --with-t1-library or --without-t1-library was given.
9495 if test "${with_t1_library+set}" = set; then
9496 withval
="$with_t1_library"
9497 smr_cv_with_t1_library
=$withval
9500 echo "$as_me:$LINENO: checking whether to use t1 library" >&5
9501 echo $ECHO_N "checking whether to use t1 library... $ECHO_C" >&6
9502 if test "${smr_cv_with_t1_library+set}" = set; then
9503 echo $ECHO_N "(cached) $ECHO_C" >&6
9505 smr_cv_with_t1_library
=maybe
9507 echo "$as_me:$LINENO: result: $smr_cv_with_t1_library" >&5
9508 echo "${ECHO_T}$smr_cv_with_t1_library" >&6
9511 case x
"$smr_cv_with_t1_library" in
9514 with_t1
=$smr_cv_with_t1_library
9521 if test -f "$smr_cv_with_t1_library"; then
9522 t1_LIBS
=$smr_cv_with_t1_library
9523 elif test -d "$smr_cv_with_t1_library"; then
9524 t1_LIBS
="-L$smr_cv_with_t1_library -lt1"
9526 { { echo "$as_me:$LINENO: error: argument must be boolean, file, or directory" >&5
9527 echo "$as_me: error: argument must be boolean, file, or directory" >&2;}
9528 { (exit 1); exit 1; }; }
9540 if test ! x
"$with_t1" = xno
; then
9542 # If we got this far, then the user didn't explicitly ask not to use
9552 # Check whether --with-t1-includes or --without-t1-includes was given.
9553 if test "${with_t1_includes+set}" = set; then
9554 withval
="$with_t1_includes"
9555 smr_cv_with_t1_includes
=$withval
9558 echo "$as_me:$LINENO: checking where to find the t1 header files" >&5
9559 echo $ECHO_N "checking where to find the t1 header files... $ECHO_C" >&6
9560 if test "${smr_cv_with_t1_includes+set}" = set; then
9561 echo $ECHO_N "(cached) $ECHO_C" >&6
9563 smr_cv_with_t1_includes
=
9565 echo "$as_me:$LINENO: result: $smr_cv_with_t1_includes" >&5
9566 echo "${ECHO_T}$smr_cv_with_t1_includes" >&6
9568 if test ! x
"$smr_cv_with_t1_includes" = x
; then
9569 if test -d "$smr_cv_with_t1_includes"; then
9570 t1_CFLAGS
="-I$smr_cv_with_t1_includes"
9572 { { echo "$as_me:$LINENO: error: argument must be a directory" >&5
9573 echo "$as_me: error: argument must be a directory" >&2;}
9574 { (exit 1); exit 1; }; }
9580 smr_test_CPPFLAGS
="${CPPFLAGS+set}"
9581 smr_save_CPPFLAGS
="$CPPFLAGS"
9582 CPPFLAGS
="$CPPFLAGS $t1_CFLAGS $X_CFLAGS"
9585 for ac_header
in t1lib.h
9587 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9589 echo "$as_me:$LINENO: checking for $ac_header" >&5
9590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9592 echo $ECHO_N "(cached) $ECHO_C" >&6
9594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9597 # Is the header compilable?
9598 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9599 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9600 cat >conftest.
$ac_ext <<_ACEOF
9603 cat confdefs.h
>>conftest.
$ac_ext
9604 cat >>conftest.
$ac_ext <<_ACEOF
9605 /* end confdefs.h. */
9606 $ac_includes_default
9607 #include <$ac_header>
9609 rm -f conftest.
$ac_objext
9610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9611 (eval $ac_compile) 2>conftest.er1
9613 grep -v '^ *+' conftest.er1
>conftest.err
9615 cat conftest.err
>&5
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); } &&
9618 { ac_try
='test -z "$ac_c_werror_flag"
9619 || test ! -s conftest.err'
9620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); }; } &&
9625 { ac_try
='test -s conftest.$ac_objext'
9626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); }; }; then
9631 ac_header_compiler
=yes
9633 echo "$as_me: failed program was:" >&5
9634 sed 's/^/| /' conftest.
$ac_ext >&5
9636 ac_header_compiler
=no
9638 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9639 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9640 echo "${ECHO_T}$ac_header_compiler" >&6
9642 # Is the header present?
9643 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9644 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9645 cat >conftest.
$ac_ext <<_ACEOF
9648 cat confdefs.h
>>conftest.
$ac_ext
9649 cat >>conftest.
$ac_ext <<_ACEOF
9650 /* end confdefs.h. */
9651 #include <$ac_header>
9653 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9654 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9656 grep -v '^ *+' conftest.er1
>conftest.err
9658 cat conftest.err
>&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); } >/dev
/null
; then
9661 if test -s conftest.err
; then
9662 ac_cpp_err
=$ac_c_preproc_warn_flag
9663 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9670 if test -z "$ac_cpp_err"; then
9671 ac_header_preproc
=yes
9673 echo "$as_me: failed program was:" >&5
9674 sed 's/^/| /' conftest.
$ac_ext >&5
9676 ac_header_preproc
=no
9678 rm -f conftest.err conftest.
$ac_ext
9679 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9680 echo "${ECHO_T}$ac_header_preproc" >&6
9682 # So? What about this header?
9683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9685 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9686 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9688 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9689 ac_header_preproc
=yes
9692 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9693 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9694 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9695 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9696 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9697 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9698 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9699 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9702 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9703 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9706 ## ------------------------------------------ ##
9707 ## Report this to the AC_PACKAGE_NAME lists. ##
9708 ## ------------------------------------------ ##
9711 sed "s/^/$as_me: WARNING: /" >&2
9714 echo "$as_me:$LINENO: checking for $ac_header" >&5
9715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9717 echo $ECHO_N "(cached) $ECHO_C" >&6
9719 eval "$as_ac_Header=\$ac_header_preproc"
9721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9722 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9726 cat >>confdefs.h
<<_ACEOF
9727 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9729 smr_have_t1_header
=yes
9731 smr_have_t1_header
=no
9737 if test x
"$smr_test_CPPFLAGS" = xset
; then
9738 CPPFLAGS
=$smr_save_CPPFLAGS
9749 # We need only look for the library if the header has been found
9750 # (or no header is needed).
9751 if test $smr_have_t1_header != no
; then
9753 echo "$as_me:$LINENO: checking for T1_InitLib in -lt1" >&5
9754 echo $ECHO_N "checking for T1_InitLib in -lt1... $ECHO_C" >&6
9755 if test "${ac_cv_lib_t1_T1_InitLib+set}" = set; then
9756 echo $ECHO_N "(cached) $ECHO_C" >&6
9758 ac_check_lib_save_LIBS
=$LIBS
9759 LIBS
="-lt1 $t1_CFLAGS $X_CFLAGS $t1_LIBS -lm $LIBS"
9760 cat >conftest.
$ac_ext <<_ACEOF
9763 cat confdefs.h
>>conftest.
$ac_ext
9764 cat >>conftest.
$ac_ext <<_ACEOF
9765 /* end confdefs.h. */
9767 /* Override any gcc2 internal prototype to avoid an error. */
9771 /* We use char because int might match the return type of a gcc2
9772 builtin and then its argument prototype would still apply. */
9782 rm -f conftest.
$ac_objext conftest
$ac_exeext
9783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9784 (eval $ac_link) 2>conftest.er1
9786 grep -v '^ *+' conftest.er1
>conftest.err
9788 cat conftest.err
>&5
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); } &&
9791 { ac_try
='test -z "$ac_c_werror_flag"
9792 || test ! -s conftest.err'
9793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); }; } &&
9798 { ac_try
='test -s conftest$ac_exeext'
9799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); }; }; then
9804 ac_cv_lib_t1_T1_InitLib
=yes
9806 echo "$as_me: failed program was:" >&5
9807 sed 's/^/| /' conftest.
$ac_ext >&5
9809 ac_cv_lib_t1_T1_InitLib
=no
9811 rm -f conftest.err conftest.
$ac_objext \
9812 conftest
$ac_exeext conftest.
$ac_ext
9813 LIBS
=$ac_check_lib_save_LIBS
9815 echo "$as_me:$LINENO: result: $ac_cv_lib_t1_T1_InitLib" >&5
9816 echo "${ECHO_T}$ac_cv_lib_t1_T1_InitLib" >&6
9817 if test $ac_cv_lib_t1_T1_InitLib = yes; then
9818 smr_have_t1_library
=yes
9820 smr_have_t1_library
=no
9825 if test x
"$smr_have_t1_library" = xyes
; then
9826 echo "$as_me:$LINENO: result: using t1 library" >&5
9827 echo "${ECHO_T}using t1 library" >&6
9832 if test x
"$with_t1" = xmaybe
; then
9833 echo "$as_me:$LINENO: result: not using t1 library" >&5
9834 echo "${ECHO_T}not using t1 library" >&6
9836 { echo "$as_me:$LINENO: WARNING: requested t1 library not found!" >&5
9837 echo "$as_me: WARNING: requested t1 library not found!" >&2;}
9873 # Check whether --with-freetype2-library or --without-freetype2-library was given.
9874 if test "${with_freetype2_library+set}" = set; then
9875 withval
="$with_freetype2_library"
9876 smr_cv_with_freetype2_library
=$withval
9879 echo "$as_me:$LINENO: checking whether to use freetype2 library" >&5
9880 echo $ECHO_N "checking whether to use freetype2 library... $ECHO_C" >&6
9881 if test "${smr_cv_with_freetype2_library+set}" = set; then
9882 echo $ECHO_N "(cached) $ECHO_C" >&6
9884 smr_cv_with_freetype2_library
=maybe
9886 echo "$as_me:$LINENO: result: $smr_cv_with_freetype2_library" >&5
9887 echo "${ECHO_T}$smr_cv_with_freetype2_library" >&6
9890 case x
"$smr_cv_with_freetype2_library" in
9892 freetype2_LIBS
="-lfreetype"
9893 with_freetype2
=$smr_cv_with_freetype2_library
9900 if test -f "$smr_cv_with_freetype2_library"; then
9901 freetype2_LIBS
=$smr_cv_with_freetype2_library
9902 elif test -d "$smr_cv_with_freetype2_library"; then
9903 freetype2_LIBS
="-L$smr_cv_with_freetype2_library -lfreetype"
9905 { { echo "$as_me:$LINENO: error: argument must be boolean, file, or directory" >&5
9906 echo "$as_me: error: argument must be boolean, file, or directory" >&2;}
9907 { (exit 1); exit 1; }; }
9919 if test ! x
"$with_freetype2" = xno
; then
9921 # If we got this far, then the user didn't explicitly ask not to use
9931 # Check whether --with-freetype2-includes or --without-freetype2-includes was given.
9932 if test "${with_freetype2_includes+set}" = set; then
9933 withval
="$with_freetype2_includes"
9934 smr_cv_with_freetype2_includes
=$withval
9937 echo "$as_me:$LINENO: checking where to find the freetype2 header files" >&5
9938 echo $ECHO_N "checking where to find the freetype2 header files... $ECHO_C" >&6
9939 if test "${smr_cv_with_freetype2_includes+set}" = set; then
9940 echo $ECHO_N "(cached) $ECHO_C" >&6
9942 smr_cv_with_freetype2_includes
=
9944 echo "$as_me:$LINENO: result: $smr_cv_with_freetype2_includes" >&5
9945 echo "${ECHO_T}$smr_cv_with_freetype2_includes" >&6
9947 if test ! x
"$smr_cv_with_freetype2_includes" = x
; then
9948 if test -d "$smr_cv_with_freetype2_includes"; then
9949 freetype2_CFLAGS
="-I$smr_cv_with_freetype2_includes"
9951 { { echo "$as_me:$LINENO: error: argument must be a directory" >&5
9952 echo "$as_me: error: argument must be a directory" >&2;}
9953 { (exit 1); exit 1; }; }
9959 smr_test_CPPFLAGS
="${CPPFLAGS+set}"
9960 smr_save_CPPFLAGS
="$CPPFLAGS"
9961 CPPFLAGS
="$CPPFLAGS $freetype2_CFLAGS "
9964 for ac_header
in ft2build.h
9966 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9968 echo "$as_me:$LINENO: checking for $ac_header" >&5
9969 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9971 echo $ECHO_N "(cached) $ECHO_C" >&6
9973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9976 # Is the header compilable?
9977 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9978 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9979 cat >conftest.
$ac_ext <<_ACEOF
9982 cat confdefs.h
>>conftest.
$ac_ext
9983 cat >>conftest.
$ac_ext <<_ACEOF
9984 /* end confdefs.h. */
9985 $ac_includes_default
9986 #include <$ac_header>
9988 rm -f conftest.
$ac_objext
9989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9990 (eval $ac_compile) 2>conftest.er1
9992 grep -v '^ *+' conftest.er1
>conftest.err
9994 cat conftest.err
>&5
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); } &&
9997 { ac_try
='test -z "$ac_c_werror_flag"
9998 || test ! -s conftest.err'
9999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10000 (eval $ac_try) 2>&5
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); }; } &&
10004 { ac_try
='test -s conftest.$ac_objext'
10005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10006 (eval $ac_try) 2>&5
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); }; }; then
10010 ac_header_compiler
=yes
10012 echo "$as_me: failed program was:" >&5
10013 sed 's/^/| /' conftest.
$ac_ext >&5
10015 ac_header_compiler
=no
10017 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10018 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10019 echo "${ECHO_T}$ac_header_compiler" >&6
10021 # Is the header present?
10022 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10023 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10024 cat >conftest.
$ac_ext <<_ACEOF
10027 cat confdefs.h
>>conftest.
$ac_ext
10028 cat >>conftest.
$ac_ext <<_ACEOF
10029 /* end confdefs.h. */
10030 #include <$ac_header>
10032 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10033 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10035 grep -v '^ *+' conftest.er1
>conftest.err
10037 cat conftest.err
>&5
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); } >/dev
/null
; then
10040 if test -s conftest.err
; then
10041 ac_cpp_err
=$ac_c_preproc_warn_flag
10042 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10049 if test -z "$ac_cpp_err"; then
10050 ac_header_preproc
=yes
10052 echo "$as_me: failed program was:" >&5
10053 sed 's/^/| /' conftest.
$ac_ext >&5
10055 ac_header_preproc
=no
10057 rm -f conftest.err conftest.
$ac_ext
10058 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10059 echo "${ECHO_T}$ac_header_preproc" >&6
10061 # So? What about this header?
10062 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10064 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10065 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10067 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10068 ac_header_preproc
=yes
10071 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10072 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10073 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10074 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10075 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10076 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10077 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10078 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10080 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10081 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10082 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10085 ## ------------------------------------------ ##
10086 ## Report this to the AC_PACKAGE_NAME lists. ##
10087 ## ------------------------------------------ ##
10090 sed "s/^/$as_me: WARNING: /" >&2
10093 echo "$as_me:$LINENO: checking for $ac_header" >&5
10094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10096 echo $ECHO_N "(cached) $ECHO_C" >&6
10098 eval "$as_ac_Header=\$ac_header_preproc"
10100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10101 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10104 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10105 cat >>confdefs.h
<<_ACEOF
10106 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10108 smr_have_freetype2_header
=yes
10110 smr_have_freetype2_header
=no
10116 if test x
"$smr_test_CPPFLAGS" = xset
; then
10117 CPPFLAGS
=$smr_save_CPPFLAGS
10128 # We need only look for the library if the header has been found
10129 # (or no header is needed).
10130 if test $smr_have_freetype2_header != no
; then
10132 echo "$as_me:$LINENO: checking for FT_Get_Name_Index in -lfreetype" >&5
10133 echo $ECHO_N "checking for FT_Get_Name_Index in -lfreetype... $ECHO_C" >&6
10134 if test "${ac_cv_lib_freetype_FT_Get_Name_Index+set}" = set; then
10135 echo $ECHO_N "(cached) $ECHO_C" >&6
10137 ac_check_lib_save_LIBS
=$LIBS
10138 LIBS
="-lfreetype $freetype2_CFLAGS $freetype2_LIBS -lm $LIBS"
10139 cat >conftest.
$ac_ext <<_ACEOF
10142 cat confdefs.h
>>conftest.
$ac_ext
10143 cat >>conftest.
$ac_ext <<_ACEOF
10144 /* end confdefs.h. */
10146 /* Override any gcc2 internal prototype to avoid an error. */
10150 /* We use char because int might match the return type of a gcc2
10151 builtin and then its argument prototype would still apply. */
10152 char FT_Get_Name_Index ();
10156 FT_Get_Name_Index ();
10161 rm -f conftest.
$ac_objext conftest
$ac_exeext
10162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10163 (eval $ac_link) 2>conftest.er1
10165 grep -v '^ *+' conftest.er1
>conftest.err
10167 cat conftest.err
>&5
10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); } &&
10170 { ac_try
='test -z "$ac_c_werror_flag"
10171 || test ! -s conftest.err'
10172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10173 (eval $ac_try) 2>&5
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); }; } &&
10177 { ac_try
='test -s conftest$ac_exeext'
10178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10179 (eval $ac_try) 2>&5
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); }; }; then
10183 ac_cv_lib_freetype_FT_Get_Name_Index
=yes
10185 echo "$as_me: failed program was:" >&5
10186 sed 's/^/| /' conftest.
$ac_ext >&5
10188 ac_cv_lib_freetype_FT_Get_Name_Index
=no
10190 rm -f conftest.err conftest.
$ac_objext \
10191 conftest
$ac_exeext conftest.
$ac_ext
10192 LIBS
=$ac_check_lib_save_LIBS
10194 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Get_Name_Index" >&5
10195 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Get_Name_Index" >&6
10196 if test $ac_cv_lib_freetype_FT_Get_Name_Index = yes; then
10197 smr_have_freetype2_library
=yes
10199 smr_have_freetype2_library
=no
10204 if test x
"$smr_have_freetype2_library" = xyes
; then
10205 echo "$as_me:$LINENO: result: using freetype2 library" >&5
10206 echo "${ECHO_T}using freetype2 library" >&6
10211 if test x
"$with_freetype2" = xmaybe
; then
10212 echo "$as_me:$LINENO: result: not using freetype2 library" >&5
10213 echo "${ECHO_T}not using freetype2 library" >&6
10215 { echo "$as_me:$LINENO: WARNING: requested freetype2 library not found!" >&5
10216 echo "$as_me: WARNING: requested freetype2 library not found!" >&2;}
10233 if test "x$smr_have_freetype2_library" = xyes
; then
10234 cat >>confdefs.h
<<\_ACEOF
10235 #define HAVE_FREETYPE_FREETYPE_H 1
10238 cat >>confdefs.h
<<\_ACEOF
10239 #define HAVE_SPLASH 1
10262 # Check whether --with-libpaper-library or --without-libpaper-library was given.
10263 if test "${with_libpaper_library+set}" = set; then
10264 withval
="$with_libpaper_library"
10265 smr_cv_with_libpaper_library
=$withval
10268 echo "$as_me:$LINENO: checking whether to use libpaper library" >&5
10269 echo $ECHO_N "checking whether to use libpaper library... $ECHO_C" >&6
10270 if test "${smr_cv_with_libpaper_library+set}" = set; then
10271 echo $ECHO_N "(cached) $ECHO_C" >&6
10273 smr_cv_with_libpaper_library
=maybe
10275 echo "$as_me:$LINENO: result: $smr_cv_with_libpaper_library" >&5
10276 echo "${ECHO_T}$smr_cv_with_libpaper_library" >&6
10279 case x
"$smr_cv_with_libpaper_library" in
10281 libpaper_LIBS
="-lpaper"
10282 with_libpaper
=$smr_cv_with_libpaper_library
10289 if test -f "$smr_cv_with_libpaper_library"; then
10290 libpaper_LIBS
=$smr_cv_with_libpaper_library
10291 elif test -d "$smr_cv_with_libpaper_library"; then
10292 libpaper_LIBS
="-L$smr_cv_with_libpaper_library -lpaper"
10294 { { echo "$as_me:$LINENO: error: argument must be boolean, file, or directory" >&5
10295 echo "$as_me: error: argument must be boolean, file, or directory" >&2;}
10296 { (exit 1); exit 1; }; }
10308 if test ! x
"$with_libpaper" = xno
; then
10310 # If we got this far, then the user didn't explicitly ask not to use
10320 # Check whether --with-libpaper-includes or --without-libpaper-includes was given.
10321 if test "${with_libpaper_includes+set}" = set; then
10322 withval
="$with_libpaper_includes"
10323 smr_cv_with_libpaper_includes
=$withval
10326 echo "$as_me:$LINENO: checking where to find the libpaper header files" >&5
10327 echo $ECHO_N "checking where to find the libpaper header files... $ECHO_C" >&6
10328 if test "${smr_cv_with_libpaper_includes+set}" = set; then
10329 echo $ECHO_N "(cached) $ECHO_C" >&6
10331 smr_cv_with_libpaper_includes
=
10333 echo "$as_me:$LINENO: result: $smr_cv_with_libpaper_includes" >&5
10334 echo "${ECHO_T}$smr_cv_with_libpaper_includes" >&6
10336 if test ! x
"$smr_cv_with_libpaper_includes" = x
; then
10337 if test -d "$smr_cv_with_libpaper_includes"; then
10338 libpaper_CFLAGS
="-I$smr_cv_with_libpaper_includes"
10340 { { echo "$as_me:$LINENO: error: argument must be a directory" >&5
10341 echo "$as_me: error: argument must be a directory" >&2;}
10342 { (exit 1); exit 1; }; }
10348 smr_test_CPPFLAGS
="${CPPFLAGS+set}"
10349 smr_save_CPPFLAGS
="$CPPFLAGS"
10350 CPPFLAGS
="$CPPFLAGS $libpaper_CFLAGS "
10353 for ac_header
in paper.h
10355 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10357 echo "$as_me:$LINENO: checking for $ac_header" >&5
10358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10360 echo $ECHO_N "(cached) $ECHO_C" >&6
10362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10363 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10365 # Is the header compilable?
10366 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10367 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10368 cat >conftest.
$ac_ext <<_ACEOF
10371 cat confdefs.h
>>conftest.
$ac_ext
10372 cat >>conftest.
$ac_ext <<_ACEOF
10373 /* end confdefs.h. */
10374 $ac_includes_default
10375 #include <$ac_header>
10377 rm -f conftest.
$ac_objext
10378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10379 (eval $ac_compile) 2>conftest.er1
10381 grep -v '^ *+' conftest.er1
>conftest.err
10383 cat conftest.err
>&5
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); } &&
10386 { ac_try
='test -z "$ac_c_werror_flag"
10387 || test ! -s conftest.err'
10388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10389 (eval $ac_try) 2>&5
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); }; } &&
10393 { ac_try
='test -s conftest.$ac_objext'
10394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10395 (eval $ac_try) 2>&5
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); }; }; then
10399 ac_header_compiler
=yes
10401 echo "$as_me: failed program was:" >&5
10402 sed 's/^/| /' conftest.
$ac_ext >&5
10404 ac_header_compiler
=no
10406 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10407 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10408 echo "${ECHO_T}$ac_header_compiler" >&6
10410 # Is the header present?
10411 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10412 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10413 cat >conftest.
$ac_ext <<_ACEOF
10416 cat confdefs.h
>>conftest.
$ac_ext
10417 cat >>conftest.
$ac_ext <<_ACEOF
10418 /* end confdefs.h. */
10419 #include <$ac_header>
10421 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10422 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10424 grep -v '^ *+' conftest.er1
>conftest.err
10426 cat conftest.err
>&5
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); } >/dev
/null
; then
10429 if test -s conftest.err
; then
10430 ac_cpp_err
=$ac_c_preproc_warn_flag
10431 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10438 if test -z "$ac_cpp_err"; then
10439 ac_header_preproc
=yes
10441 echo "$as_me: failed program was:" >&5
10442 sed 's/^/| /' conftest.
$ac_ext >&5
10444 ac_header_preproc
=no
10446 rm -f conftest.err conftest.
$ac_ext
10447 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10448 echo "${ECHO_T}$ac_header_preproc" >&6
10450 # So? What about this header?
10451 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10453 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10454 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10456 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10457 ac_header_preproc
=yes
10460 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10461 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10462 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10463 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10464 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10465 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10466 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10467 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10469 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10470 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10471 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10474 ## ------------------------------------------ ##
10475 ## Report this to the AC_PACKAGE_NAME lists. ##
10476 ## ------------------------------------------ ##
10479 sed "s/^/$as_me: WARNING: /" >&2
10482 echo "$as_me:$LINENO: checking for $ac_header" >&5
10483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10485 echo $ECHO_N "(cached) $ECHO_C" >&6
10487 eval "$as_ac_Header=\$ac_header_preproc"
10489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10490 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10493 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10494 cat >>confdefs.h
<<_ACEOF
10495 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10497 smr_have_libpaper_header
=yes
10499 smr_have_libpaper_header
=no
10505 if test x
"$smr_test_CPPFLAGS" = xset
; then
10506 CPPFLAGS
=$smr_save_CPPFLAGS
10517 # We need only look for the library if the header has been found
10518 # (or no header is needed).
10519 if test $smr_have_libpaper_header != no
; then
10521 echo "$as_me:$LINENO: checking for paperinit in -lpaper" >&5
10522 echo $ECHO_N "checking for paperinit in -lpaper... $ECHO_C" >&6
10523 if test "${ac_cv_lib_paper_paperinit+set}" = set; then
10524 echo $ECHO_N "(cached) $ECHO_C" >&6
10526 ac_check_lib_save_LIBS
=$LIBS
10527 LIBS
="-lpaper $libpaper_CFLAGS $libpaper_LIBS $LIBS"
10528 cat >conftest.
$ac_ext <<_ACEOF
10531 cat confdefs.h
>>conftest.
$ac_ext
10532 cat >>conftest.
$ac_ext <<_ACEOF
10533 /* end confdefs.h. */
10535 /* Override any gcc2 internal prototype to avoid an error. */
10539 /* We use char because int might match the return type of a gcc2
10540 builtin and then its argument prototype would still apply. */
10550 rm -f conftest.
$ac_objext conftest
$ac_exeext
10551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10552 (eval $ac_link) 2>conftest.er1
10554 grep -v '^ *+' conftest.er1
>conftest.err
10556 cat conftest.err
>&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); } &&
10559 { ac_try
='test -z "$ac_c_werror_flag"
10560 || test ! -s conftest.err'
10561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10562 (eval $ac_try) 2>&5
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); }; } &&
10566 { ac_try
='test -s conftest$ac_exeext'
10567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10568 (eval $ac_try) 2>&5
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); }; }; then
10572 ac_cv_lib_paper_paperinit
=yes
10574 echo "$as_me: failed program was:" >&5
10575 sed 's/^/| /' conftest.
$ac_ext >&5
10577 ac_cv_lib_paper_paperinit
=no
10579 rm -f conftest.err conftest.
$ac_objext \
10580 conftest
$ac_exeext conftest.
$ac_ext
10581 LIBS
=$ac_check_lib_save_LIBS
10583 echo "$as_me:$LINENO: result: $ac_cv_lib_paper_paperinit" >&5
10584 echo "${ECHO_T}$ac_cv_lib_paper_paperinit" >&6
10585 if test $ac_cv_lib_paper_paperinit = yes; then
10586 smr_have_libpaper_library
=yes
10588 smr_have_libpaper_library
=no
10593 if test x
"$smr_have_libpaper_library" = xyes
; then
10594 echo "$as_me:$LINENO: result: using libpaper library" >&5
10595 echo "${ECHO_T}using libpaper library" >&6
10600 if test x
"$with_libpaper" = xmaybe
; then
10601 echo "$as_me:$LINENO: result: not using libpaper library" >&5
10602 echo "${ECHO_T}not using libpaper library" >&6
10604 { echo "$as_me:$LINENO: WARNING: requested libpaper library not found!" >&5
10605 echo "$as_me: WARNING: requested libpaper library not found!" >&2;}
10623 if test -n "$no_x" -o "x$smr_have_Xm_library" != xyes
-o "x$smr_have_freetype2_library" != xyes
; then
10625 XPDF_TARGET
="all-no-x"
10633 ac_config_files
="$ac_config_files Makefile goo/Makefile fofi/Makefile splash/Makefile xpdf/Makefile"
10634 cat >confcache
<<\_ACEOF
10635 # This file is a shell script that caches the results of configure
10636 # tests run on this system so they can be shared between configure
10637 # scripts and configure runs, see configure's option --config-cache.
10638 # It is not useful on other systems. If it contains results you don't
10639 # want to keep, you may remove or edit it.
10641 # config.status only pays attention to the cache file if you give it
10642 # the --recheck option to rerun configure.
10644 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10645 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10646 # following values.
10650 # The following way of writing the cache mishandles newlines in values,
10651 # but we know of no workaround that is simple, portable, and efficient.
10652 # So, don't put newlines in cache variables' values.
10653 # Ultrix sh set writes to stderr and can't be redirected directly,
10654 # and sets the high bit in the cache file unless we assign to the vars.
10657 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10659 # `set' does not quote correctly, so add quotes (double-quote
10660 # substitution turns \\\\ into \\, and sed turns \\ into \).
10663 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10666 # `set' quotes correctly as required by POSIX, so do not add quotes.
10668 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10675 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10677 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10679 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
10680 if test -w $cache_file; then
10681 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10682 cat confcache
>$cache_file
10684 echo "not updating unwritable cache $cache_file"
10689 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10690 # Let make expand exec_prefix.
10691 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10693 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10694 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10695 # trailing colons and then remove the whole line if VPATH becomes empty
10696 # (actually we leave an empty line to preserve line numbers).
10697 if test "x$srcdir" = x.
; then
10698 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
10699 s/:*\$(srcdir):*/:/;
10700 s/:*\${srcdir}:*/:/;
10702 s/^\([^=]*=[ ]*\):*/\1/;
10708 DEFS
=-DHAVE_CONFIG_H
10712 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10713 # 1. Remove the extension, and $U if already installed.
10714 ac_i
=`echo "$ac_i" |
10715 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10717 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
10718 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
10720 LIBOBJS
=$ac_libobjs
10722 LTLIBOBJS
=$ac_ltlibobjs
10726 : ${CONFIG_STATUS=./config.status}
10727 ac_clean_files_save
=$ac_clean_files
10728 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10729 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10730 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10731 cat >$CONFIG_STATUS <<_ACEOF
10733 # Generated by $as_me.
10734 # Run this file to recreate the current configuration.
10735 # Compiler output produced by configure, useful for debugging
10736 # configure, is in config.log if it exists.
10739 ac_cs_recheck=false
10741 SHELL=\${CONFIG_SHELL-$SHELL}
10744 cat >>$CONFIG_STATUS <<\_ACEOF
10745 ## --------------------- ##
10746 ## M4sh Initialization. ##
10747 ## --------------------- ##
10749 # Be Bourne compatible
10750 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
10753 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10754 # is contrary to our usage. Disable this feature.
10755 alias -g '${1+"$@"}'='"$@"'
10756 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
10759 DUALCASE
=1; export DUALCASE
# for MKS sh
10761 # Support unset when possible.
10762 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
10769 # Work around bugs in pre-3.0 UWIN ksh.
10770 $as_unset ENV MAIL MAILPATH
10777 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10778 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10779 LC_TELEPHONE LC_TIME
10781 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10782 eval $as_var=C
; export $as_var
10788 # Required to use basename.
10789 if expr a
: '\(a\)' >/dev
/null
2>&1; then
10795 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
10796 as_basename
=basename
10802 # Name of the executable.
10803 as_me
=`$as_basename "$0" ||
10804 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10805 X"$0" : 'X\(//\)$' \| \
10806 X"$0" : 'X\(/\)$' \| \
10807 . : '\(.\)' 2>/dev/null ||
10809 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10810 /^X\/\(\/\/\)$/{ s//\1/; q; }
10811 /^X\/\(\/\).*/{ s//\1/; q; }
10815 # PATH needs CR, and LINENO needs CR and PATH.
10816 # Avoid depending upon Character Ranges.
10817 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10818 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10819 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10820 as_cr_digits
='0123456789'
10821 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10823 # The user is always right.
10824 if test "${PATH_SEPARATOR+set}" != set; then
10825 echo "#! /bin/sh" >conf$$.sh
10826 echo "exit 0" >>conf$$.sh
10828 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10837 as_lineno_1
=$LINENO
10838 as_lineno_2
=$LINENO
10839 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
10840 test "x$as_lineno_1" != "x$as_lineno_2" &&
10841 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
10842 # Find who we are. Look in the path if we contain no path at all
10845 *[\\/]* ) as_myself
=$0 ;;
10846 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10847 for as_dir
in $PATH
10850 test -z "$as_dir" && as_dir
=.
10851 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
10856 # We did not find ourselves, most probably we were run as `sh COMMAND'
10857 # in which case we are not to be found in the path.
10858 if test "x$as_myself" = x
; then
10861 if test ! -f "$as_myself"; then
10862 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10863 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10864 { (exit 1); exit 1; }; }
10866 case $CONFIG_SHELL in
10868 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10869 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
10872 test -z "$as_dir" && as_dir
=.
10873 for as_base
in sh bash ksh sh5
; do
10876 if ("$as_dir/$as_base" -c '
10877 as_lineno_1=$LINENO
10878 as_lineno_2=$LINENO
10879 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10880 test "x$as_lineno_1" != "x$as_lineno_2" &&
10881 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
10882 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
10883 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
10884 CONFIG_SHELL
=$as_dir/$as_base
10885 export CONFIG_SHELL
10886 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10894 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10895 # uniformly replaced by the line number. The first 'sed' inserts a
10896 # line-number line before each line; the second 'sed' does the real
10897 # work. The second script uses 'N' to pair each line-number line
10898 # with the numbered line, and appends trailing '-' during
10899 # substitution so that $LINENO is not a special case at line end.
10900 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10901 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10902 sed '=' <$as_myself |
10907 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10910 s,^['$as_cr_digits']*\n,,
10911 ' >$as_me.lineno
&&
10912 chmod +x
$as_me.lineno ||
10913 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10914 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10915 { (exit 1); exit 1; }; }
10917 # Don't try to exec as it changes $[0], causing all sort of problems
10918 # (the dirname of $[0] is not the place where we might find the
10919 # original and so on. Autoconf is especially sensible to this).
10921 # Exit status is that of the last command.
10926 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10927 *c
*,-n*) ECHO_N
= ECHO_C
='
10929 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
10930 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
10933 if expr a
: '\(a\)' >/dev
/null
2>&1; then
10939 rm -f conf$$ conf$$.exe conf$$.
file
10941 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10942 # We could just check for DJGPP; but this test a) works b) is more generic
10943 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10944 if test -f conf$$.exe
; then
10945 # Don't use ln at all; we don't have any links
10950 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10955 rm -f conf$$ conf$$.exe conf$$.
file
10957 if mkdir
-p .
2>/dev
/null
; then
10960 test -d .
/-p && rmdir .
/-p
10964 as_executable_p
="test -f"
10966 # Sed expression to map a string onto a valid CPP name.
10967 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10969 # Sed expression to map a string onto a valid variable name.
10970 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10974 # We need space, tab and new line, in precisely that order.
10984 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10985 # report actual input values of CONFIG_FILES etc. instead of their
10986 # values after options handling. Logging --version etc. is OK.
10990 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10991 ## Running $as_me. ##
10996 This file was extended by $as_me, which was
10997 generated by GNU Autoconf 2.59. Invocation command line was
10999 CONFIG_FILES = $CONFIG_FILES
11000 CONFIG_HEADERS = $CONFIG_HEADERS
11001 CONFIG_LINKS = $CONFIG_LINKS
11002 CONFIG_COMMANDS = $CONFIG_COMMANDS
11006 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11010 # Files that config.status was made for.
11011 if test -n "$ac_config_files"; then
11012 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11015 if test -n "$ac_config_headers"; then
11016 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11019 if test -n "$ac_config_links"; then
11020 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11023 if test -n "$ac_config_commands"; then
11024 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11027 cat >>$CONFIG_STATUS <<\_ACEOF
11030 \`$as_me' instantiates files from templates according to the
11031 current configuration.
11033 Usage: $0 [OPTIONS] [FILE]...
11035 -h, --help print this help, then exit
11036 -V, --version print version number, then exit
11037 -q, --quiet do not print progress messages
11038 -d, --debug don't remove temporary files
11039 --recheck update $as_me by reconfiguring in the same conditions
11040 --file=FILE[:TEMPLATE]
11041 instantiate the configuration file FILE
11042 --header=FILE[:TEMPLATE]
11043 instantiate the configuration header FILE
11045 Configuration files:
11048 Configuration headers:
11051 Report bugs to <bug-autoconf@gnu.org>."
11054 cat >>$CONFIG_STATUS <<_ACEOF
11057 configured by $0, generated by GNU Autoconf 2.59,
11058 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11060 Copyright (C) 2003 Free Software Foundation, Inc.
11061 This config.status script is free software; the Free Software Foundation
11062 gives unlimited permission to copy, distribute and modify it."
11067 cat >>$CONFIG_STATUS <<\_ACEOF
11068 # If no file are specified by the user, then we need to provide default
11069 # value. By we need to know if files were specified by the user.
11075 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
11076 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
11084 *) # This is not an option, so the user has probably given explicit
11087 ac_need_defaults
=false
;;
11091 # Handling of the options.
11093 cat >>$CONFIG_STATUS <<\_ACEOF
11094 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
11096 --version |
--vers* |
-V )
11097 echo "$ac_cs_version"; exit 0 ;;
11099 # Conflict between --help and --header
11100 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11101 Try \`$0 --help' for more information." >&5
11102 echo "$as_me: error: ambiguous option: $1
11103 Try \`$0 --help' for more information." >&2;}
11104 { (exit 1); exit 1; }; };;
11105 --help |
--hel |
-h )
11106 echo "$ac_cs_usage"; exit 0 ;;
11107 --debug |
--d* |
-d )
11109 --file |
--fil |
--fi |
--f )
11111 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
11112 ac_need_defaults
=false
;;
11113 --header |
--heade |
--head |
--hea )
11115 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
11116 ac_need_defaults
=false
;;
11117 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
11118 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
11121 # This is an error.
11122 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11123 Try \`$0 --help' for more information." >&5
11124 echo "$as_me: error: unrecognized option: $1
11125 Try \`$0 --help' for more information." >&2;}
11126 { (exit 1); exit 1; }; } ;;
11128 *) ac_config_targets
="$ac_config_targets $1" ;;
11134 ac_configure_extra_args
=
11136 if $ac_cs_silent; then
11138 ac_configure_extra_args
="$ac_configure_extra_args --silent"
11142 cat >>$CONFIG_STATUS <<_ACEOF
11143 if \$ac_cs_recheck; then
11144 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11145 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11154 cat >>$CONFIG_STATUS <<\_ACEOF
11155 for ac_config_target
in $ac_config_targets
11157 case "$ac_config_target" in
11158 # Handling of arguments.
11159 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
11160 "goo/Makefile" ) CONFIG_FILES
="$CONFIG_FILES goo/Makefile" ;;
11161 "fofi/Makefile" ) CONFIG_FILES
="$CONFIG_FILES fofi/Makefile" ;;
11162 "splash/Makefile" ) CONFIG_FILES
="$CONFIG_FILES splash/Makefile" ;;
11163 "xpdf/Makefile" ) CONFIG_FILES
="$CONFIG_FILES xpdf/Makefile" ;;
11164 "aconf.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS aconf.h" ;;
11165 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11166 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11167 { (exit 1); exit 1; }; };;
11171 # If the user did not use the arguments to specify the items to instantiate,
11172 # then the envvar interface is used. Set only those that are not.
11173 # We use the long form for the default assignment because of an extremely
11174 # bizarre bug on SunOS 4.1.3.
11175 if $ac_need_defaults; then
11176 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
11177 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
11180 # Have a temporary directory for convenience. Make it in the build tree
11181 # simply because there is no reason to put it here, and in addition,
11182 # creating and moving files from /tmp can sometimes cause problems.
11183 # Create a temporary directory, and hook for its removal unless debugging.
11186 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11187 trap '{ (exit 1); exit 1; }' 1 2 13 15
11190 # Create a (secure) tmp directory for tmp files.
11193 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11194 test -n "$tmp" && test -d "$tmp"
11197 tmp
=.
/confstat$$
-$RANDOM
11198 (umask 077 && mkdir
$tmp)
11201 echo "$me: cannot create a temporary directory in ." >&2
11202 { (exit 1); exit 1; }
11207 cat >>$CONFIG_STATUS <<_ACEOF
11210 # CONFIG_FILES section.
11213 # No need to generate the scripts if there are no CONFIG_FILES.
11214 # This happens for instance when ./config.status config.h
11215 if test -n "\$CONFIG_FILES"; then
11216 # Protect against being on the right side of a sed subst in config.status.
11217 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11218 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11219 s,@SHELL@,$SHELL,;t t
11220 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11221 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11222 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11223 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11224 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11225 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11226 s,@exec_prefix@,$exec_prefix,;t t
11227 s,@prefix@,$prefix,;t t
11228 s,@program_transform_name@,$program_transform_name,;t t
11229 s,@bindir@,$bindir,;t t
11230 s,@sbindir@,$sbindir,;t t
11231 s,@libexecdir@,$libexecdir,;t t
11232 s,@datadir@,$datadir,;t t
11233 s,@sysconfdir@,$sysconfdir,;t t
11234 s,@sharedstatedir@,$sharedstatedir,;t t
11235 s,@localstatedir@,$localstatedir,;t t
11236 s,@libdir@,$libdir,;t t
11237 s,@includedir@,$includedir,;t t
11238 s,@oldincludedir@,$oldincludedir,;t t
11239 s,@infodir@,$infodir,;t t
11240 s,@mandir@,$mandir,;t t
11241 s,@build_alias@,$build_alias,;t t
11242 s,@host_alias@,$host_alias,;t t
11243 s,@target_alias@,$target_alias,;t t
11244 s,@DEFS@,$DEFS,;t t
11245 s,@ECHO_C@,$ECHO_C,;t t
11246 s,@ECHO_N@,$ECHO_N,;t t
11247 s,@ECHO_T@,$ECHO_T,;t t
11248 s,@LIBS@,$LIBS,;t t
11250 s,@CFLAGS@,$CFLAGS,;t t
11251 s,@LDFLAGS@,$LDFLAGS,;t t
11252 s,@CPPFLAGS@,$CPPFLAGS,;t t
11253 s,@ac_ct_CC@,$ac_ct_CC,;t t
11254 s,@EXEEXT@,$EXEEXT,;t t
11255 s,@OBJEXT@,$OBJEXT,;t t
11257 s,@CXXFLAGS@,$CXXFLAGS,;t t
11258 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
11259 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11260 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11261 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11262 s,@RANLIB@,$RANLIB,;t t
11263 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11265 s,@LIBPREFIX@,$LIBPREFIX,;t t
11267 s,@UP_DIR@,$UP_DIR,;t t
11269 s,@X_CFLAGS@,$X_CFLAGS,;t t
11270 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
11271 s,@X_LIBS@,$X_LIBS,;t t
11272 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
11273 s,@EGREP@,$EGREP,;t t
11274 s,@Xpm_LIBS@,$Xpm_LIBS,;t t
11275 s,@Xpm_CFLAGS@,$Xpm_CFLAGS,;t t
11276 s,@Xext_LIBS@,$Xext_LIBS,;t t
11277 s,@Xext_CFLAGS@,$Xext_CFLAGS,;t t
11278 s,@Xp_LIBS@,$Xp_LIBS,;t t
11279 s,@Xp_CFLAGS@,$Xp_CFLAGS,;t t
11280 s,@Xt_LIBS@,$Xt_LIBS,;t t
11281 s,@Xt_CFLAGS@,$Xt_CFLAGS,;t t
11282 s,@Xm_LIBS@,$Xm_LIBS,;t t
11283 s,@Xm_CFLAGS@,$Xm_CFLAGS,;t t
11284 s,@Sgm_LIBS@,$Sgm_LIBS,;t t
11285 s,@Sgm_CFLAGS@,$Sgm_CFLAGS,;t t
11286 s,@t1_LIBS@,$t1_LIBS,;t t
11287 s,@t1_CFLAGS@,$t1_CFLAGS,;t t
11288 s,@freetype2_LIBS@,$freetype2_LIBS,;t t
11289 s,@freetype2_CFLAGS@,$freetype2_CFLAGS,;t t
11290 s,@libpaper_LIBS@,$libpaper_LIBS,;t t
11291 s,@libpaper_CFLAGS@,$libpaper_CFLAGS,;t t
11293 s,@XPDF_TARGET@,$XPDF_TARGET,;t t
11294 s,@LIBOBJS@,$LIBOBJS,;t t
11295 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11300 cat >>$CONFIG_STATUS <<\_ACEOF
11301 # Split the substitutions into bite-sized pieces for seds with
11302 # small command number limits, like on Digital OSF/1 and HP-UX.
11303 ac_max_sed_lines
=48
11304 ac_sed_frag
=1 # Number of current file.
11305 ac_beg
=1 # First line for current file.
11306 ac_end
=$ac_max_sed_lines # Line after last line for current file.
11309 while $ac_more_lines; do
11310 if test $ac_beg -gt 1; then
11311 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
11313 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
11315 if test ! -s $tmp/subs.frag
; then
11316 ac_more_lines
=false
11318 # The purpose of the label and of the branching condition is to
11319 # speed up the sed processing (if there are no `@' at all, there
11320 # is no need to browse any of the substitutions).
11321 # These are the two extra sed commands mentioned above.
11323 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
11324 if test -z "$ac_sed_cmds"; then
11325 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
11327 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11329 ac_sed_frag
=`expr $ac_sed_frag + 1`
11331 ac_end
=`expr $ac_end + $ac_max_sed_lines`
11334 if test -z "$ac_sed_cmds"; then
11337 fi # test -n "$CONFIG_FILES"
11340 cat >>$CONFIG_STATUS <<\_ACEOF
11341 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
11342 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11344 - |
*:- |
*:-:* ) # input from stdin
11346 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
11347 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
11348 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
11349 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
11350 * ) ac_file_in
=$ac_file.
in ;;
11353 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11354 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
11355 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11356 X"$ac_file" : 'X\(//\)[^/]' \| \
11357 X"$ac_file" : 'X\(//\)$' \| \
11358 X"$ac_file" : 'X\(/\)' \| \
11359 . : '\(.\)' 2>/dev/null ||
11361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11362 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11363 /^X\(\/\/\)$/{ s//\1/; q; }
11364 /^X\(\/\).*/{ s//\1/; q; }
11366 { if $as_mkdir_p; then
11371 while test ! -d "$as_dir"; do
11372 as_dirs
="$as_dir $as_dirs"
11373 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
11374 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11375 X"$as_dir" : 'X\(//\)[^/]' \| \
11376 X"$as_dir" : 'X\(//\)$' \| \
11377 X"$as_dir" : 'X\(/\)' \| \
11378 . : '\(.\)' 2>/dev/null ||
11380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11381 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11382 /^X\(\/\/\)$/{ s//\1/; q; }
11383 /^X\(\/\).*/{ s//\1/; q; }
11386 test ! -n "$as_dirs" || mkdir
$as_dirs
11387 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11388 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11389 { (exit 1); exit 1; }; }; }
11393 if test "$ac_dir" != .
; then
11394 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11395 # A "../" for each directory in $ac_dir_suffix.
11396 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11398 ac_dir_suffix
= ac_top_builddir
=
11402 .
) # No --srcdir option. We are building in place.
11404 if test -z "$ac_top_builddir"; then
11407 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
11409 [\\/]* | ?
:[\\/]* ) # Absolute path.
11410 ac_srcdir
=$srcdir$ac_dir_suffix;
11411 ac_top_srcdir
=$srcdir ;;
11412 *) # Relative path.
11413 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
11414 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
11417 # Do not use `cd foo && pwd` to compute absolute paths, because
11418 # the directories may not exist.
11420 .
) ac_abs_builddir
="$ac_dir";;
11423 .
) ac_abs_builddir
=`pwd`;;
11424 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
11425 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
11428 case $ac_abs_builddir in
11429 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
11431 case ${ac_top_builddir}.
in
11432 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
11433 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
11434 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
11437 case $ac_abs_builddir in
11438 .
) ac_abs_srcdir
=$ac_srcdir;;
11441 .
) ac_abs_srcdir
=$ac_abs_builddir;;
11442 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
11443 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
11446 case $ac_abs_builddir in
11447 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
11449 case $ac_top_srcdir in
11450 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
11451 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
11452 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
11458 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
11459 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
11462 if test x
"$ac_file" != x-
; then
11463 { echo "$as_me:$LINENO: creating $ac_file" >&5
11464 echo "$as_me: creating $ac_file" >&6;}
11467 # Let's still pretend it is `configure' which instantiates (i.e., don't
11468 # use $as_me), people would be surprised to read:
11469 # /* config.h. Generated by config.status. */
11470 if test x
"$ac_file" = x-
; then
11473 configure_input
="$ac_file. "
11475 configure_input
=$configure_input"Generated from `echo $ac_file_in |
11476 sed 's,.*/,,'` by configure."
11478 # First look for the input files in the build tree, otherwise in the
11480 ac_file_inputs
=`IFS=:
11481 for f in $ac_file_in; do
11483 -) echo $tmp/stdin ;;
11485 # Absolute (can't be DOS-style, as IFS=:)
11486 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11487 echo "$as_me: error: cannot find input file: $f" >&2;}
11488 { (exit 1); exit 1; }; }
11491 if test -f "$f"; then
11494 elif test -f "$srcdir/$f"; then
11499 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11500 echo "$as_me: error: cannot find input file: $f" >&2;}
11501 { (exit 1); exit 1; }; }
11504 done` ||
{ (exit 1); exit 1; }
11506 cat >>$CONFIG_STATUS <<_ACEOF
11510 cat >>$CONFIG_STATUS <<\_ACEOF
11512 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11513 s
,@configure_input@
,$configure_input,;t t
11514 s
,@srcdir@
,$ac_srcdir,;t t
11515 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
11516 s
,@top_srcdir@
,$ac_top_srcdir,;t t
11517 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
11518 s
,@builddir@
,$ac_builddir,;t t
11519 s
,@abs_builddir@
,$ac_abs_builddir,;t t
11520 s
,@top_builddir@
,$ac_top_builddir,;t t
11521 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
11522 s
,@INSTALL@
,$ac_INSTALL,;t t
11523 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11525 if test x"$ac_file" != x-; then
11526 mv $tmp/out $ac_file
11534 cat >>$CONFIG_STATUS <<\_ACEOF
11537 # CONFIG_HEADER section.
11540 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
11541 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11543 # ac_d sets the value in "#define NAME VALUE" lines.
11544 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11545 ac_dB
='[ ].*$,\1#\2'
11548 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11549 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11550 ac_uB
='$,\1#\2define\3'
11554 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
11555 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11557 - |
*:- |
*:-:* ) # input from stdin
11559 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
11560 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
11561 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
11562 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
11563 * ) ac_file_in
=$ac_file.
in ;;
11566 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
11567 echo "$as_me: creating $ac_file" >&6;}
11569 # First look for the input files in the build tree, otherwise in the
11571 ac_file_inputs
=`IFS=:
11572 for f in $ac_file_in; do
11574 -) echo $tmp/stdin ;;
11576 # Absolute (can't be DOS-style, as IFS=:)
11577 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11578 echo "$as_me: error: cannot find input file: $f" >&2;}
11579 { (exit 1); exit 1; }; }
11580 # Do quote $f, to prevent DOS paths from being IFS'd.
11583 if test -f "$f"; then
11586 elif test -f "$srcdir/$f"; then
11591 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11592 echo "$as_me: error: cannot find input file: $f" >&2;}
11593 { (exit 1); exit 1; }; }
11596 done` ||
{ (exit 1); exit 1; }
11597 # Remove the trailing spaces.
11598 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11602 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11603 # `conftest.undefs', that substitutes the proper values into
11604 # config.h.in to produce config.h. The first handles `#define'
11605 # templates, and the second `#undef' templates.
11606 # And first: Protect against being on the right side of a sed subst in
11607 # config.status. Protect against being in an unquoted here document
11608 # in config.status.
11609 rm -f conftest.defines conftest.undefs
11610 # Using a here document instead of a string reduces the quoting nightmare.
11611 # Putting comments in sed scripts is not portable.
11613 # `end' is used to avoid that the second main sed command (meant for
11614 # 0-ary CPP macros) applies to n-ary macro definitions.
11615 # See the Autoconf documentation for `clear'.
11616 cat >confdef2sed.
sed <<\_ACEOF
11621 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11623 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11626 # If some macros were called several times there might be several times
11627 # the same #defines, which is useless. Nevertheless, we may not want to
11628 # sort them, since we want the *last* AC-DEFINE to be honored.
11629 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11630 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11631 rm -f confdef2sed.sed
11633 # This sed command replaces #undef with comments. This is necessary, for
11634 # example, in the case of _POSIX_SOURCE, which is predefined and required
11635 # on some systems where configure will not decide to define it.
11636 cat >>conftest.undefs <<\_ACEOF
11637 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11640 # Break up conftest.defines because some shells have a limit on the size
11641 # of here documents, and old seds have small limits too (100 cmds).
11642 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11643 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11644 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11645 echo ' :' >>$CONFIG_STATUS
11646 rm -f conftest.tail
11647 while grep . conftest.defines >/dev/null
11649 # Write a limited-size here document to $tmp/defines.sed.
11650 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11651 # Speed up: don't consider the non `#define' lines.
11652 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11653 # Work around the forget-to-reset-the-flag bug.
11654 echo 't clr' >>$CONFIG_STATUS
11655 echo ': clr' >>$CONFIG_STATUS
11656 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
11658 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11660 mv $tmp/out $tmp/in
11662 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
11663 rm -f conftest.defines
11664 mv conftest.
tail conftest.defines
11666 rm -f conftest.defines
11667 echo ' fi # grep' >>$CONFIG_STATUS
11668 echo >>$CONFIG_STATUS
11670 # Break up conftest.undefs because some shells have a limit on the size
11671 # of here documents, and old seds have small limits too (100 cmds).
11672 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11673 rm -f conftest.
tail
11674 while grep . conftest.undefs
>/dev
/null
11676 # Write a limited-size here document to $tmp/undefs.sed.
11677 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11678 # Speed up: don't consider the non
`#undef'
11679 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11680 # Work around the forget-to-reset-the-flag bug.
11681 echo 't clr' >>$CONFIG_STATUS
11682 echo ': clr' >>$CONFIG_STATUS
11683 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11685 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11687 mv $tmp/out $tmp/in
11689 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11690 rm -f conftest.undefs
11691 mv conftest.tail conftest.undefs
11693 rm -f conftest.undefs
11695 cat >>$CONFIG_STATUS <<\_ACEOF
11696 # Let's still pretend it is `configure
' which instantiates (i.e., don't
11697 # use $as_me), people would be surprised to read:
11698 # /* config.h. Generated by config.status. */
11699 if test x
"$ac_file" = x-
; then
11700 echo "/* Generated by configure. */" >$tmp/config.h
11702 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11704 cat $tmp/in >>$tmp/config.h
11706 if test x
"$ac_file" != x-
; then
11707 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
11708 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11709 echo "$as_me: $ac_file is unchanged" >&6;}
11711 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
11712 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11713 X"$ac_file" : 'X\(//\)[^/]' \| \
11714 X"$ac_file" : 'X\(//\)$' \| \
11715 X"$ac_file" : 'X\(/\)' \| \
11716 . : '\(.\)' 2>/dev/null ||
11718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11720 /^X\(\/\/\)$/{ s//\1/; q; }
11721 /^X\(\/\).*/{ s//\1/; q; }
11723 { if $as_mkdir_p; then
11728 while test ! -d "$as_dir"; do
11729 as_dirs
="$as_dir $as_dirs"
11730 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
11731 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11732 X"$as_dir" : 'X\(//\)[^/]' \| \
11733 X"$as_dir" : 'X\(//\)$' \| \
11734 X"$as_dir" : 'X\(/\)' \| \
11735 . : '\(.\)' 2>/dev/null ||
11737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11738 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11739 /^X\(\/\/\)$/{ s//\1/; q; }
11740 /^X\(\/\).*/{ s//\1/; q; }
11743 test ! -n "$as_dirs" || mkdir
$as_dirs
11744 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11745 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11746 { (exit 1); exit 1; }; }; }
11749 mv $tmp/config.h
$ac_file
11753 rm -f $tmp/config.h
11758 cat >>$CONFIG_STATUS <<\_ACEOF
11760 { (exit 0); exit 0; }
11762 chmod +x
$CONFIG_STATUS
11763 ac_clean_files
=$ac_clean_files_save
11766 # configure is writing to config.log, and then calls config.status.
11767 # config.status does its own redirection, appending to config.log.
11768 # Unfortunately, on DOS this fails, as config.log is still kept open
11769 # by configure, so config.status won't be able to write to it; its
11770 # output is simply discarded. So we exec the FD to /dev/null,
11771 # effectively closing config.log, so it can be properly (re)opened and
11772 # appended to by config.status. When coming back to configure, we
11773 # need to make the FD available again.
11774 if test "$no_create" != yes; then
11776 ac_config_status_args
=
11777 test "$silent" = yes &&
11778 ac_config_status_args
="$ac_config_status_args --quiet"
11780 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
11782 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11783 # would make configure fail if this is the last instruction.
11784 $ac_cs_success ||
{ (exit 1); exit 1; }
11788 if test -n "$no_x" -o "x$smr_have_Xm_library" != xyes
-o "x$smr_have_freetype2_library" != xyes
; then
11789 if test -n "$no_x"; then
11790 { echo "$as_me:$LINENO: WARNING: Couldn't find X" >&5
11791 echo "$as_me: WARNING: Couldn't find X" >&2;};
11793 if test "x$smr_have_Xm_library" != xyes
; then
11794 { echo "$as_me:$LINENO: WARNING: Couldn't find Motif" >&5
11795 echo "$as_me: WARNING: Couldn't find Motif" >&2;};
11797 if test "x$smr_have_freetype2_library" != xyes
; then
11798 { echo "$as_me:$LINENO: WARNING: Couldn't find FreeType" >&5
11799 echo "$as_me: WARNING: Couldn't find FreeType" >&2;};
11801 { echo "$as_me:$LINENO: WARNING: -- You will be able to compile pdftops, pdftotext,
11802 pdfinfo, pdffonts, and pdfimages, but not xpdf or pdftoppm" >&5
11803 echo "$as_me: WARNING: -- You will be able to compile pdftops, pdftotext,
11804 pdfinfo, pdffonts, and pdfimages, but not xpdf or pdftoppm" >&2;}