3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-kanji multibyte character support (kanji, Korean etc.)"
17 --with-nlsdir=PATH specify where the locale stuff should go "
19 --with-x use the X Window System"
21 --disable-shape disable shaped window extension support"
23 --disable-shm disable usage of MIT-SHM extension"
25 --with-gfx-libs pass compiler flags to look for gfx libraries"
27 --with-gfx-incs pass compiler flags to look for gfx header files"
29 --disable-xpm disable use of XPM pixmaps through libXpm"
31 --disable-jpeg disable JPEG support through libjpeg"
33 --disable-gif disable GIF support through libgif or libungif"
35 --disable-tiff disable use of TIFF images through libtiff"
37 --enable-debug enable debugging "
39 --enable-sound enable sound support "
41 --with-pixmapdir=PATH specify where pixmaps are located [DATADIR/pixmaps]"
43 --with-appspath=PATH specify the path of the GNUstep applications directory "
45 --enable-single-icon use single application icon per WM_INSTANCE+WM_CLASS
48 # Initialize some variables set by options.
49 # The variables have the same names as the options, with
50 # dashes changed to underlines.
52 cache_file
=.
/config.cache
61 program_transform_name
=s
,x
,x
,
69 bindir
='${exec_prefix}/bin'
70 sbindir
='${exec_prefix}/sbin'
71 libexecdir
='${exec_prefix}/libexec'
72 datadir
='${prefix}/share'
73 sysconfdir
='${prefix}/etc'
74 sharedstatedir
='${prefix}/com'
75 localstatedir
='${prefix}/var'
76 libdir
='${exec_prefix}/lib'
77 includedir
='${prefix}/include'
78 oldincludedir
='/usr/include'
79 infodir
='${prefix}/info'
80 mandir
='${prefix}/man'
82 # Initialize some other variables.
85 # Maximum number of lines to put in a shell here document.
92 # If the previous option needs an argument, assign it.
93 if test -n "$ac_prev"; then
94 eval "$ac_prev=\$ac_option"
100 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
104 # Accept the important Cygnus configure options, so we can diagnose typos.
108 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
110 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
111 bindir
="$ac_optarg" ;;
113 -build |
--build |
--buil |
--bui |
--bu)
115 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
116 build
="$ac_optarg" ;;
118 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
119 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
120 ac_prev
=cache_file
;;
121 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
122 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
123 cache_file
="$ac_optarg" ;;
125 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
127 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
129 datadir
="$ac_optarg" ;;
131 -disable-* |
--disable-*)
132 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
133 # Reject names that are not valid shell variable names.
134 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
135 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
137 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
138 eval "enable_${ac_feature}=no" ;;
140 -enable-* |
--enable-*)
141 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
142 # Reject names that are not valid shell variable names.
143 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
144 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
146 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
151 eval "enable_${ac_feature}='$ac_optarg'" ;;
153 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
154 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
155 |
--exec |
--exe |
--ex)
156 ac_prev
=exec_prefix
;;
157 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
158 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
159 |
--exec=* |
--exe=* |
--ex=*)
160 exec_prefix
="$ac_optarg" ;;
162 -gas |
--gas |
--ga |
--g)
163 # Obsolete; use --with-gas.
166 -help |
--help |
--hel |
--he)
167 # Omit some internal or obsolete options to make the list less imposing.
168 # This message is too long to be a string in the A/UX 3.1 sh.
170 Usage: configure [options] [host]
171 Options: [defaults in brackets after descriptions]
173 --cache-file=FILE cache test results in FILE
174 --help print this message
175 --no-create do not create output files
176 --quiet, --silent do not print \`checking...' messages
177 --version print the version of autoconf that created configure
178 Directory and file names:
179 --prefix=PREFIX install architecture-independent files in PREFIX
181 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
183 --bindir=DIR user executables in DIR [EPREFIX/bin]
184 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
185 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
186 --datadir=DIR read-only architecture-independent data in DIR
188 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
189 --sharedstatedir=DIR modifiable architecture-independent data in DIR
191 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
192 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
193 --includedir=DIR C header files in DIR [PREFIX/include]
194 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
195 --infodir=DIR info documentation in DIR [PREFIX/info]
196 --mandir=DIR man documentation in DIR [PREFIX/man]
197 --srcdir=DIR find the sources in DIR [configure dir or ..]
198 --program-prefix=PREFIX prepend PREFIX to installed program names
199 --program-suffix=SUFFIX append SUFFIX to installed program names
200 --program-transform-name=PROGRAM
201 run sed PROGRAM on installed program names
205 --build=BUILD configure for building on BUILD [BUILD=HOST]
206 --host=HOST configure for HOST [guessed]
207 --target=TARGET configure for TARGET [TARGET=HOST]
208 Features and packages:
209 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
210 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
211 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
212 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
213 --x-includes=DIR X include files are in DIR
214 --x-libraries=DIR X library files are in DIR
216 if test -n "$ac_help"; then
217 echo "--enable and --with options recognized:$ac_help"
221 -host |
--host |
--hos |
--ho)
223 -host=* |
--host=* |
--hos=* |
--ho=*)
226 -includedir |
--includedir |
--includedi |
--included |
--include \
227 |
--includ |
--inclu |
--incl |
--inc)
228 ac_prev
=includedir
;;
229 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
230 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
231 includedir
="$ac_optarg" ;;
233 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
235 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
236 infodir
="$ac_optarg" ;;
238 -libdir |
--libdir |
--libdi |
--libd)
240 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
241 libdir
="$ac_optarg" ;;
243 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
244 |
--libexe |
--libex |
--libe)
245 ac_prev
=libexecdir
;;
246 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
247 |
--libexe=* |
--libex=* |
--libe=*)
248 libexecdir
="$ac_optarg" ;;
250 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
251 |
--localstate |
--localstat |
--localsta |
--localst \
252 |
--locals |
--local |
--loca |
--loc |
--lo)
253 ac_prev
=localstatedir
;;
254 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
255 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
256 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
257 localstatedir
="$ac_optarg" ;;
259 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
261 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
262 mandir
="$ac_optarg" ;;
265 # Obsolete; use --without-fp.
268 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
272 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
273 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
276 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
277 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
278 |
--oldin |
--oldi |
--old |
--ol |
--o)
279 ac_prev
=oldincludedir
;;
280 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
281 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
282 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
283 oldincludedir
="$ac_optarg" ;;
285 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
287 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
288 prefix
="$ac_optarg" ;;
290 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
291 |
--program-pre |
--program-pr |
--program-p)
292 ac_prev
=program_prefix
;;
293 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
294 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
295 program_prefix
="$ac_optarg" ;;
297 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
298 |
--program-suf |
--program-su |
--program-s)
299 ac_prev
=program_suffix
;;
300 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
301 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
302 program_suffix
="$ac_optarg" ;;
304 -program-transform-name |
--program-transform-name \
305 |
--program-transform-nam |
--program-transform-na \
306 |
--program-transform-n |
--program-transform- \
307 |
--program-transform |
--program-transfor \
308 |
--program-transfo |
--program-transf \
309 |
--program-trans |
--program-tran \
310 |
--progr-tra |
--program-tr |
--program-t)
311 ac_prev
=program_transform_name
;;
312 -program-transform-name=* |
--program-transform-name=* \
313 |
--program-transform-nam=* |
--program-transform-na=* \
314 |
--program-transform-n=* |
--program-transform-=* \
315 |
--program-transform=* |
--program-transfor=* \
316 |
--program-transfo=* |
--program-transf=* \
317 |
--program-trans=* |
--program-tran=* \
318 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
319 program_transform_name
="$ac_optarg" ;;
321 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
322 |
-silent |
--silent |
--silen |
--sile |
--sil)
325 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
327 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
329 sbindir
="$ac_optarg" ;;
331 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
332 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
333 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
335 ac_prev
=sharedstatedir
;;
336 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
337 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
338 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
340 sharedstatedir
="$ac_optarg" ;;
342 -site |
--site |
--sit)
344 -site=* |
--site=* |
--sit=*)
347 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
349 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
350 srcdir
="$ac_optarg" ;;
352 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
353 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
354 ac_prev
=sysconfdir
;;
355 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
356 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
357 sysconfdir
="$ac_optarg" ;;
359 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
361 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
362 target
="$ac_optarg" ;;
364 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
367 -version |
--version |
--versio |
--versi |
--vers)
368 echo "configure generated by autoconf version 2.12"
372 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
373 # Reject names that are not valid shell variable names.
374 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
375 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
377 ac_package
=`echo $ac_package| sed 's/-/_/g'`
382 eval "with_${ac_package}='$ac_optarg'" ;;
384 -without-* |
--without-*)
385 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
386 # Reject names that are not valid shell variable names.
387 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
388 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
390 ac_package
=`echo $ac_package| sed 's/-/_/g'`
391 eval "with_${ac_package}=no" ;;
394 # Obsolete; use --with-x.
397 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
398 |
--x-incl |
--x-inc |
--x-in |
--x-i)
399 ac_prev
=x_includes
;;
400 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
401 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
402 x_includes
="$ac_optarg" ;;
404 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
405 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
406 ac_prev
=x_libraries
;;
407 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
408 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
409 x_libraries
="$ac_optarg" ;;
411 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
415 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
416 echo "configure: warning: $ac_option: invalid host type" 1>&2
418 if test "x$nonopt" != xNONE
; then
419 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
427 if test -n "$ac_prev"; then
428 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
431 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
433 # File descriptor usage:
436 # 2 errors and warnings
437 # 3 some systems may open it to /dev/tty
438 # 4 used on the Kubota Titan
439 # 6 checking for... messages and results
440 # 5 compiler messages saved in config.log
441 if test "$silent" = yes; then
449 This file contains any messages produced by compilers while
450 running configure, to aid debugging if configure makes a mistake.
453 # Strip out --no-create and --no-recursion so they do not pile up.
454 # Also quote any args containing shell metacharacters.
459 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
460 |
--no-cr |
--no-c) ;;
461 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
462 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
463 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
464 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
465 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
470 # Only set these to C if already set. These must not be set unconditionally
471 # because not all systems understand e.g. LANG=C (notably SCO).
472 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
473 # Non-C LC_CTYPE values break the ctype check.
474 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
475 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
476 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
477 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
479 # confdefs.h avoids OS command line length limits that DEFS can exceed.
480 rm -rf conftest
* confdefs.h
481 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
484 # A filename unique to this package, relative to the directory that
485 # configure is in, which we can look for to find out if srcdir is correct.
486 ac_unique_file
=src
/WindowMaker.h
488 # Find the source files, if location was not specified.
489 if test -z "$srcdir"; then
490 ac_srcdir_defaulted
=yes
491 # Try the directory containing this script, then its parent.
493 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
494 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
496 if test ! -r $srcdir/$ac_unique_file; then
500 ac_srcdir_defaulted
=no
502 if test ! -r $srcdir/$ac_unique_file; then
503 if test "$ac_srcdir_defaulted" = yes; then
504 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
506 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
509 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
511 # Prefer explicitly selected file to automatically selected ones.
512 if test -z "$CONFIG_SITE"; then
513 if test "x$prefix" != xNONE
; then
514 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
516 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
519 for ac_site_file
in $CONFIG_SITE; do
520 if test -r "$ac_site_file"; then
521 echo "loading site script $ac_site_file"
526 if test -r "$cache_file"; then
527 echo "loading cache $cache_file"
530 echo "creating cache $cache_file"
535 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
536 ac_cpp
='$CPP $CPPFLAGS'
537 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
538 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
539 cross_compiling
=$ac_cv_prog_cc_cross
541 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
542 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
543 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
550 ac_n
= ac_c
='\c' ac_t
=
556 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
557 if test -f $ac_dir/install-sh
; then
559 ac_install_sh
="$ac_aux_dir/install-sh -c"
561 elif test -f $ac_dir/install.sh
; then
563 ac_install_sh
="$ac_aux_dir/install.sh -c"
567 if test -z "$ac_aux_dir"; then
568 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
570 ac_config_guess
=$ac_aux_dir/config.guess
571 ac_config_sub
=$ac_aux_dir/config.sub
572 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
574 # Find a good install program. We prefer a C program (faster),
575 # so one script is as good as another. But avoid the broken or
576 # incompatible versions:
577 # SysV /etc/install, /usr/sbin/install
578 # SunOS /usr/etc/install
581 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
582 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
583 # ./install, which can be erroneously created by make from ./install.sh.
584 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
585 echo "configure:586: checking for a BSD compatible install" >&5
586 if test -z "$INSTALL"; then
587 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
588 echo $ac_n "(cached) $ac_c" 1>&6
590 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
591 for ac_dir
in $PATH; do
592 # Account for people who put trailing slashes in PATH elements.
594 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
596 # OSF1 and SCO ODT 3.0 have their own names for install.
597 for ac_prog
in ginstall installbsd scoinst
install; do
598 if test -f $ac_dir/$ac_prog; then
599 if test $ac_prog = install &&
600 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
601 # AIX install. It has an incompatible calling convention.
602 # OSF/1 installbsd also uses dspmsg, but is usable.
605 ac_cv_path_install
="$ac_dir/$ac_prog -c"
616 if test "${ac_cv_path_install+set}" = set; then
617 INSTALL
="$ac_cv_path_install"
619 # As a last resort, use the slow shell script. We don't cache a
620 # path for INSTALL within a source directory, because that will
621 # break other packages using the cache if that directory is
622 # removed, or if the path is relative.
623 INSTALL
="$ac_install_sh"
626 echo "$ac_t""$INSTALL" 1>&6
628 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
629 # It thinks the first close brace ends the variable substitution.
630 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
632 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
635 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
637 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
638 echo "configure:639: checking whether build environment is sane" >&5
641 echo timestamp
> conftestfile
642 # Do `set' in a subshell so we don't clobber the current shell's
643 # arguments. Must try -L first in case configure is actually a
644 # symlink; some systems play weird games with the mod time of symlinks
645 # (eg FreeBSD returns the mod time of the symlink's containing
648 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
649 if test "$*" = "X"; then
651 set X
`ls -t $srcdir/configure conftestfile`
653 if test "$*" != "X $srcdir/configure conftestfile" \
654 && test "$*" != "X conftestfile $srcdir/configure"; then
656 # If neither matched, then we have a broken ls. This can happen
657 # if, for instance, CONFIG_SHELL is bash and it inherits a
658 # broken ls alias from the environment. This has actually
659 # happened. Such a system could not be considered "sane".
660 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
661 alias in your environment" 1>&2; exit 1; }
664 test "$2" = conftestfile
670 { echo "configure: error: newly created file is older than distributed files!
671 Check your system clock" 1>&2; exit 1; }
674 echo "$ac_t""yes" 1>&6
675 if test "$program_transform_name" = s
,x
,x
,; then
676 program_transform_name
=
678 # Double any \ or $. echo might interpret backslashes.
679 cat <<\EOF_SED
> conftestsed
680 s
,\\,\\\\,g
; s
,\$
,$$
,g
682 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
685 test "$program_prefix" != NONE
&&
686 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
687 # Use a double $ so make ignores it.
688 test "$program_suffix" != NONE
&&
689 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
691 # sed with no file args requires a program.
692 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
694 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
695 echo "configure:696: checking whether ${MAKE-make} sets \${MAKE}" >&5
696 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
697 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
698 echo $ac_n "(cached) $ac_c" 1>&6
700 cat > conftestmake
<<\EOF
702 @
echo 'ac_maketemp="${MAKE}"'
704 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
705 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
706 if test -n "$ac_maketemp"; then
707 eval ac_cv_prog_make_
${ac_make}_set
=yes
709 eval ac_cv_prog_make_
${ac_make}_set
=no
713 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
714 echo "$ac_t""yes" 1>&6
717 echo "$ac_t""no" 1>&6
718 SET_MAKE
="MAKE=${MAKE-make}"
726 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
727 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
729 cat >> confdefs.h
<<EOF
730 #define PACKAGE "$PACKAGE"
733 cat >> confdefs.h
<<EOF
734 #define VERSION "$VERSION"
739 missing_dir
=`cd $ac_aux_dir && pwd`
740 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
741 echo "configure:742: checking for working aclocal" >&5
742 # Run test in a subshell; some versions of sh will print an error if
743 # an executable is not found, even if stderr is redirected.
744 # Redirect stdin to placate older versions of autoconf. Sigh.
745 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
747 echo "$ac_t""found" 1>&6
749 ACLOCAL
="$missing_dir/missing aclocal"
750 echo "$ac_t""missing" 1>&6
753 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
754 echo "configure:755: checking for working autoconf" >&5
755 # Run test in a subshell; some versions of sh will print an error if
756 # an executable is not found, even if stderr is redirected.
757 # Redirect stdin to placate older versions of autoconf. Sigh.
758 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
760 echo "$ac_t""found" 1>&6
762 AUTOCONF
="$missing_dir/missing autoconf"
763 echo "$ac_t""missing" 1>&6
766 echo $ac_n "checking for working automake""... $ac_c" 1>&6
767 echo "configure:768: checking for working automake" >&5
768 # Run test in a subshell; some versions of sh will print an error if
769 # an executable is not found, even if stderr is redirected.
770 # Redirect stdin to placate older versions of autoconf. Sigh.
771 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
773 echo "$ac_t""found" 1>&6
775 AUTOMAKE
="$missing_dir/missing automake"
776 echo "$ac_t""missing" 1>&6
779 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
780 echo "configure:781: checking for working autoheader" >&5
781 # Run test in a subshell; some versions of sh will print an error if
782 # an executable is not found, even if stderr is redirected.
783 # Redirect stdin to placate older versions of autoconf. Sigh.
784 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
785 AUTOHEADER
=autoheader
786 echo "$ac_t""found" 1>&6
788 AUTOHEADER
="$missing_dir/missing autoheader"
789 echo "$ac_t""missing" 1>&6
792 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
793 echo "configure:794: checking for working makeinfo" >&5
794 # Run test in a subshell; some versions of sh will print an error if
795 # an executable is not found, even if stderr is redirected.
796 # Redirect stdin to placate older versions of autoconf. Sigh.
797 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
799 echo "$ac_t""found" 1>&6
801 MAKEINFO
="$missing_dir/missing makeinfo"
802 echo "$ac_t""missing" 1>&6
813 subdirs
="libPropList"
823 # Make sure we can run config.sub.
824 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
825 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
828 echo $ac_n "checking host system type""... $ac_c" 1>&6
829 echo "configure:830: checking host system type" >&5
832 case "$host_alias" in
836 if host_alias
=`$ac_config_guess`; then :
837 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
839 *) host_alias
=$nonopt ;;
843 host=`$ac_config_sub $host_alias`
844 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
845 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
846 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
847 echo "$ac_t""$host" 1>&6
851 # Extract the first word of "gcc", so it can be a program name with args.
852 set dummy gcc
; ac_word
=$2
853 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
854 echo "configure:855: checking for $ac_word" >&5
855 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
856 echo $ac_n "(cached) $ac_c" 1>&6
858 if test -n "$CC"; then
859 ac_cv_prog_CC
="$CC" # Let the user override the test.
861 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
862 for ac_dir
in $PATH; do
863 test -z "$ac_dir" && ac_dir
=.
864 if test -f $ac_dir/$ac_word; then
873 if test -n "$CC"; then
874 echo "$ac_t""$CC" 1>&6
876 echo "$ac_t""no" 1>&6
879 if test -z "$CC"; then
880 # Extract the first word of "cc", so it can be a program name with args.
881 set dummy cc
; ac_word
=$2
882 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
883 echo "configure:884: checking for $ac_word" >&5
884 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
885 echo $ac_n "(cached) $ac_c" 1>&6
887 if test -n "$CC"; then
888 ac_cv_prog_CC
="$CC" # Let the user override the test.
890 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
892 for ac_dir
in $PATH; do
893 test -z "$ac_dir" && ac_dir
=.
894 if test -f $ac_dir/$ac_word; then
895 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
904 if test $ac_prog_rejected = yes; then
905 # We found a bogon in the path, so make sure we never use it.
906 set dummy
$ac_cv_prog_CC
908 if test $# -gt 0; then
909 # We chose a different compiler from the bogus one.
910 # However, it has the same basename, so the bogon will be chosen
911 # first if we set CC to just the basename; use the full file name.
913 set dummy
"$ac_dir/$ac_word" "$@"
921 if test -n "$CC"; then
922 echo "$ac_t""$CC" 1>&6
924 echo "$ac_t""no" 1>&6
927 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
930 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
931 echo "configure:932: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
934 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
935 ac_cpp
='$CPP $CPPFLAGS'
936 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
937 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
938 cross_compiling
=$ac_cv_prog_cc_cross
940 cat > conftest.
$ac_ext <<EOF
941 #line 942 "configure"
942 #include "confdefs.h"
945 if { (eval echo configure
:946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
946 ac_cv_prog_cc_works
=yes
947 # If we can't run a trivial program, we are probably using a cross compiler.
948 if (.
/conftest
; exit) 2>/dev
/null
; then
949 ac_cv_prog_cc_cross
=no
951 ac_cv_prog_cc_cross
=yes
954 echo "configure: failed program was:" >&5
955 cat conftest.
$ac_ext >&5
956 ac_cv_prog_cc_works
=no
960 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
961 if test $ac_cv_prog_cc_works = no
; then
962 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
964 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
965 echo "configure:966: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
966 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
967 cross_compiling
=$ac_cv_prog_cc_cross
969 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
970 echo "configure:971: checking whether we are using GNU C" >&5
971 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
972 echo $ac_n "(cached) $ac_c" 1>&6
974 cat > conftest.c
<<EOF
979 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
986 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
988 if test $ac_cv_prog_gcc = yes; then
990 ac_test_CFLAGS
="${CFLAGS+set}"
991 ac_save_CFLAGS
="$CFLAGS"
993 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
994 echo "configure:995: checking whether ${CC-cc} accepts -g" >&5
995 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
996 echo $ac_n "(cached) $ac_c" 1>&6
998 echo 'void f(){}' > conftest.c
999 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1008 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1009 if test "$ac_test_CFLAGS" = set; then
1010 CFLAGS
="$ac_save_CFLAGS"
1011 elif test $ac_cv_prog_cc_g = yes; then
1018 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1021 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1022 echo "configure:1023: checking for POSIXized ISC" >&5
1023 if test -d /etc
/conf
/kconfig.d
&&
1024 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1026 echo "$ac_t""yes" 1>&6
1027 ISC
=yes # If later tests want to check for ISC.
1028 cat >> confdefs.h
<<\EOF
1029 #define _POSIX_SOURCE 1
1032 if test "$GCC" = yes; then
1038 echo "$ac_t""no" 1>&6
1042 # Extract the first word of "gcc", so it can be a program name with args.
1043 set dummy gcc
; ac_word
=$2
1044 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1045 echo "configure:1046: checking for $ac_word" >&5
1046 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1047 echo $ac_n "(cached) $ac_c" 1>&6
1049 if test -n "$CC"; then
1050 ac_cv_prog_CC
="$CC" # Let the user override the test.
1052 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1053 for ac_dir
in $PATH; do
1054 test -z "$ac_dir" && ac_dir
=.
1055 if test -f $ac_dir/$ac_word; then
1064 if test -n "$CC"; then
1065 echo "$ac_t""$CC" 1>&6
1067 echo "$ac_t""no" 1>&6
1070 if test -z "$CC"; then
1071 # Extract the first word of "cc", so it can be a program name with args.
1072 set dummy cc
; ac_word
=$2
1073 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1074 echo "configure:1075: checking for $ac_word" >&5
1075 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1076 echo $ac_n "(cached) $ac_c" 1>&6
1078 if test -n "$CC"; then
1079 ac_cv_prog_CC
="$CC" # Let the user override the test.
1081 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1083 for ac_dir
in $PATH; do
1084 test -z "$ac_dir" && ac_dir
=.
1085 if test -f $ac_dir/$ac_word; then
1086 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1087 ac_prog_rejected
=yes
1095 if test $ac_prog_rejected = yes; then
1096 # We found a bogon in the path, so make sure we never use it.
1097 set dummy
$ac_cv_prog_CC
1099 if test $# -gt 0; then
1100 # We chose a different compiler from the bogus one.
1101 # However, it has the same basename, so the bogon will be chosen
1102 # first if we set CC to just the basename; use the full file name.
1104 set dummy
"$ac_dir/$ac_word" "$@"
1112 if test -n "$CC"; then
1113 echo "$ac_t""$CC" 1>&6
1115 echo "$ac_t""no" 1>&6
1118 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1121 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1122 echo "configure:1123: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1125 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1126 ac_cpp
='$CPP $CPPFLAGS'
1127 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1128 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1129 cross_compiling
=$ac_cv_prog_cc_cross
1131 cat > conftest.
$ac_ext <<EOF
1132 #line 1133 "configure"
1133 #include "confdefs.h"
1136 if { (eval echo configure
:1137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1137 ac_cv_prog_cc_works
=yes
1138 # If we can't run a trivial program, we are probably using a cross compiler.
1139 if (.
/conftest
; exit) 2>/dev
/null
; then
1140 ac_cv_prog_cc_cross
=no
1142 ac_cv_prog_cc_cross
=yes
1145 echo "configure: failed program was:" >&5
1146 cat conftest.
$ac_ext >&5
1147 ac_cv_prog_cc_works
=no
1151 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1152 if test $ac_cv_prog_cc_works = no
; then
1153 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1155 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1156 echo "configure:1157: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1157 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1158 cross_compiling
=$ac_cv_prog_cc_cross
1160 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1161 echo "configure:1162: checking whether we are using GNU C" >&5
1162 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1163 echo $ac_n "(cached) $ac_c" 1>&6
1165 cat > conftest.c
<<EOF
1170 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1177 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1179 if test $ac_cv_prog_gcc = yes; then
1181 ac_test_CFLAGS
="${CFLAGS+set}"
1182 ac_save_CFLAGS
="$CFLAGS"
1184 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1185 echo "configure:1186: checking whether ${CC-cc} accepts -g" >&5
1186 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1187 echo $ac_n "(cached) $ac_c" 1>&6
1189 echo 'void f(){}' > conftest.c
1190 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1199 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1200 if test "$ac_test_CFLAGS" = set; then
1201 CFLAGS
="$ac_save_CFLAGS"
1202 elif test $ac_cv_prog_cc_g = yes; then
1209 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1212 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1213 echo "configure:1214: checking whether ${MAKE-make} sets \${MAKE}" >&5
1214 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1215 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1216 echo $ac_n "(cached) $ac_c" 1>&6
1218 cat > conftestmake
<<\EOF
1220 @
echo 'ac_maketemp="${MAKE}"'
1222 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1223 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1224 if test -n "$ac_maketemp"; then
1225 eval ac_cv_prog_make_
${ac_make}_set
=yes
1227 eval ac_cv_prog_make_
${ac_make}_set
=no
1231 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1232 echo "$ac_t""yes" 1>&6
1235 echo "$ac_t""no" 1>&6
1236 SET_MAKE
="MAKE=${MAKE-make}"
1239 # Extract the first word of "ranlib", so it can be a program name with args.
1240 set dummy ranlib
; ac_word
=$2
1241 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1242 echo "configure:1243: checking for $ac_word" >&5
1243 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1244 echo $ac_n "(cached) $ac_c" 1>&6
1246 if test -n "$RANLIB"; then
1247 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1249 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1250 for ac_dir
in $PATH; do
1251 test -z "$ac_dir" && ac_dir
=.
1252 if test -f $ac_dir/$ac_word; then
1253 ac_cv_prog_RANLIB
="ranlib"
1258 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1261 RANLIB
="$ac_cv_prog_RANLIB"
1262 if test -n "$RANLIB"; then
1263 echo "$ac_t""$RANLIB" 1>&6
1265 echo "$ac_t""no" 1>&6
1268 # Find a good install program. We prefer a C program (faster),
1269 # so one script is as good as another. But avoid the broken or
1270 # incompatible versions:
1271 # SysV /etc/install, /usr/sbin/install
1272 # SunOS /usr/etc/install
1273 # IRIX /sbin/install
1275 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1276 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1277 # ./install, which can be erroneously created by make from ./install.sh.
1278 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1279 echo "configure:1280: checking for a BSD compatible install" >&5
1280 if test -z "$INSTALL"; then
1281 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1282 echo $ac_n "(cached) $ac_c" 1>&6
1284 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1285 for ac_dir
in $PATH; do
1286 # Account for people who put trailing slashes in PATH elements.
1288 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1290 # OSF1 and SCO ODT 3.0 have their own names for install.
1291 for ac_prog
in ginstall installbsd scoinst
install; do
1292 if test -f $ac_dir/$ac_prog; then
1293 if test $ac_prog = install &&
1294 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1295 # AIX install. It has an incompatible calling convention.
1296 # OSF/1 installbsd also uses dspmsg, but is usable.
1299 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1310 if test "${ac_cv_path_install+set}" = set; then
1311 INSTALL
="$ac_cv_path_install"
1313 # As a last resort, use the slow shell script. We don't cache a
1314 # path for INSTALL within a source directory, because that will
1315 # break other packages using the cache if that directory is
1316 # removed, or if the path is relative.
1317 INSTALL
="$ac_install_sh"
1320 echo "$ac_t""$INSTALL" 1>&6
1322 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1323 # It thinks the first close brace ends the variable substitution.
1324 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1326 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1328 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1329 echo "configure:1330: checking whether ln -s works" >&5
1330 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1331 echo $ac_n "(cached) $ac_c" 1>&6
1334 if ln -s X conftestdata
2>/dev
/null
1337 ac_cv_prog_LN_S
="ln -s"
1342 LN_S
="$ac_cv_prog_LN_S"
1343 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1344 echo "$ac_t""yes" 1>&6
1346 echo "$ac_t""no" 1>&6
1349 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1350 echo "configure:1351: checking how to run the C preprocessor" >&5
1351 # On Suns, sometimes $CPP names a directory.
1352 if test -n "$CPP" && test -d "$CPP"; then
1355 if test -z "$CPP"; then
1356 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1357 echo $ac_n "(cached) $ac_c" 1>&6
1359 # This must be in double quotes, not single quotes, because CPP may get
1360 # substituted into the Makefile and "${CC-cc}" will confuse make.
1362 # On the NeXT, cc -E runs the code through the compiler's parser,
1363 # not just through cpp.
1364 cat > conftest.
$ac_ext <<EOF
1365 #line 1366 "configure"
1366 #include "confdefs.h"
1370 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1371 { (eval echo configure
:1372: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1372 ac_err
=`grep -v '^ *+' conftest.out`
1373 if test -z "$ac_err"; then
1377 echo "configure: failed program was:" >&5
1378 cat conftest.
$ac_ext >&5
1380 CPP
="${CC-cc} -E -traditional-cpp"
1381 cat > conftest.
$ac_ext <<EOF
1382 #line 1383 "configure"
1383 #include "confdefs.h"
1387 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1388 { (eval echo configure
:1389: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1389 ac_err
=`grep -v '^ *+' conftest.out`
1390 if test -z "$ac_err"; then
1394 echo "configure: failed program was:" >&5
1395 cat conftest.
$ac_ext >&5
1402 ac_cv_prog_CPP
="$CPP"
1404 CPP
="$ac_cv_prog_CPP"
1406 ac_cv_prog_CPP
="$CPP"
1408 echo "$ac_t""$CPP" 1>&6
1410 if test $ac_cv_prog_gcc = yes; then
1411 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1412 echo "configure:1413: checking whether ${CC-cc} needs -traditional" >&5
1413 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1414 echo $ac_n "(cached) $ac_c" 1>&6
1416 ac_pattern
="Autoconf.*'x'"
1417 cat > conftest.
$ac_ext <<EOF
1418 #line 1419 "configure"
1419 #include "confdefs.h"
1423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1424 egrep "$ac_pattern" >/dev
/null
2>&1; then
1426 ac_cv_prog_gcc_traditional
=yes
1429 ac_cv_prog_gcc_traditional
=no
1434 if test $ac_cv_prog_gcc_traditional = no
; then
1435 cat > conftest.
$ac_ext <<EOF
1436 #line 1437 "configure"
1437 #include "confdefs.h"
1441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1442 egrep "$ac_pattern" >/dev
/null
2>&1; then
1444 ac_cv_prog_gcc_traditional
=yes
1451 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1452 if test $ac_cv_prog_gcc_traditional = yes; then
1453 CC
="$CC -traditional"
1459 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1460 echo "configure:1461: checking return type of signal handlers" >&5
1461 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1462 echo $ac_n "(cached) $ac_c" 1>&6
1464 cat > conftest.
$ac_ext <<EOF
1465 #line 1466 "configure"
1466 #include "confdefs.h"
1467 #include <sys/types.h>
1473 extern "C" void (*signal (int, void (*)(int)))(int);
1475 void (*signal ()) ();
1482 if { (eval echo configure
:1483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1484 ac_cv_type_signal
=void
1486 echo "configure: failed program was:" >&5
1487 cat conftest.
$ac_ext >&5
1489 ac_cv_type_signal
=int
1494 echo "$ac_t""$ac_cv_type_signal" 1>&6
1495 cat >> confdefs.h
<<EOF
1496 #define RETSIGTYPE $ac_cv_type_signal
1500 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1501 echo "configure:1502: checking for vprintf" >&5
1502 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1503 echo $ac_n "(cached) $ac_c" 1>&6
1505 cat > conftest.
$ac_ext <<EOF
1506 #line 1507 "configure"
1507 #include "confdefs.h"
1508 /* System header to define __stub macros and hopefully few prototypes,
1509 which can conflict with char vprintf(); below. */
1511 /* Override any gcc2 internal prototype to avoid an error. */
1512 /* We use char because int might match the return type of a gcc2
1513 builtin and then its argument prototype would still apply. */
1518 /* The GNU C library defines this for functions which it implements
1519 to always fail with ENOSYS. Some functions are actually named
1520 something starting with __ and the normal name is an alias. */
1521 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1529 if { (eval echo configure
:1530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1531 eval "ac_cv_func_vprintf=yes"
1533 echo "configure: failed program was:" >&5
1534 cat conftest.
$ac_ext >&5
1536 eval "ac_cv_func_vprintf=no"
1541 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1542 echo "$ac_t""yes" 1>&6
1543 cat >> confdefs.h
<<\EOF
1544 #define HAVE_VPRINTF 1
1548 echo "$ac_t""no" 1>&6
1551 if test "$ac_cv_func_vprintf" != yes; then
1552 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1553 echo "configure:1554: checking for _doprnt" >&5
1554 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1555 echo $ac_n "(cached) $ac_c" 1>&6
1557 cat > conftest.
$ac_ext <<EOF
1558 #line 1559 "configure"
1559 #include "confdefs.h"
1560 /* System header to define __stub macros and hopefully few prototypes,
1561 which can conflict with char _doprnt(); below. */
1563 /* Override any gcc2 internal prototype to avoid an error. */
1564 /* We use char because int might match the return type of a gcc2
1565 builtin and then its argument prototype would still apply. */
1570 /* The GNU C library defines this for functions which it implements
1571 to always fail with ENOSYS. Some functions are actually named
1572 something starting with __ and the normal name is an alias. */
1573 #if defined (__stub__doprnt) || defined (__stub____doprnt)
1581 if { (eval echo configure
:1582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1583 eval "ac_cv_func__doprnt=yes"
1585 echo "configure: failed program was:" >&5
1586 cat conftest.
$ac_ext >&5
1588 eval "ac_cv_func__doprnt=no"
1593 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1594 echo "$ac_t""yes" 1>&6
1595 cat >> confdefs.h
<<\EOF
1596 #define HAVE_DOPRNT 1
1600 echo "$ac_t""no" 1>&6
1605 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1606 # for constant arguments. Useless!
1607 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1608 echo "configure:1609: checking for working alloca.h" >&5
1609 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1610 echo $ac_n "(cached) $ac_c" 1>&6
1612 cat > conftest.
$ac_ext <<EOF
1613 #line 1614 "configure"
1614 #include "confdefs.h"
1617 char *p = alloca(2 * sizeof(int));
1620 if { (eval echo configure
:1621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1622 ac_cv_header_alloca_h
=yes
1624 echo "configure: failed program was:" >&5
1625 cat conftest.
$ac_ext >&5
1627 ac_cv_header_alloca_h
=no
1632 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1633 if test $ac_cv_header_alloca_h = yes; then
1634 cat >> confdefs.h
<<\EOF
1635 #define HAVE_ALLOCA_H 1
1640 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1641 echo "configure:1642: checking for alloca" >&5
1642 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1643 echo $ac_n "(cached) $ac_c" 1>&6
1645 cat > conftest.
$ac_ext <<EOF
1646 #line 1647 "configure"
1647 #include "confdefs.h"
1650 # define alloca __builtin_alloca
1653 # include <alloca.h>
1658 # ifndef alloca /* predefined by HP cc +Olibcalls */
1666 char *p = (char *) alloca(1);
1669 if { (eval echo configure
:1670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1671 ac_cv_func_alloca_works
=yes
1673 echo "configure: failed program was:" >&5
1674 cat conftest.
$ac_ext >&5
1676 ac_cv_func_alloca_works
=no
1681 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1682 if test $ac_cv_func_alloca_works = yes; then
1683 cat >> confdefs.h
<<\EOF
1684 #define HAVE_ALLOCA 1
1689 if test $ac_cv_func_alloca_works = no
; then
1690 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1691 # that cause trouble. Some versions do not even contain alloca or
1692 # contain a buggy version. If you still want to use their alloca,
1693 # use ar to extract alloca.o from them instead of compiling alloca.c.
1695 cat >> confdefs.h
<<\EOF
1700 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1701 echo "configure:1702: checking whether alloca needs Cray hooks" >&5
1702 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1703 echo $ac_n "(cached) $ac_c" 1>&6
1705 cat > conftest.
$ac_ext <<EOF
1706 #line 1707 "configure"
1707 #include "confdefs.h"
1708 #if defined(CRAY) && ! defined(CRAY2)
1715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1716 egrep "webecray" >/dev
/null
2>&1; then
1727 echo "$ac_t""$ac_cv_os_cray" 1>&6
1728 if test $ac_cv_os_cray = yes; then
1729 for ac_func
in _getb67 GETB67 getb67
; do
1730 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1731 echo "configure:1732: checking for $ac_func" >&5
1732 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1733 echo $ac_n "(cached) $ac_c" 1>&6
1735 cat > conftest.
$ac_ext <<EOF
1736 #line 1737 "configure"
1737 #include "confdefs.h"
1738 /* System header to define __stub macros and hopefully few prototypes,
1739 which can conflict with char $ac_func(); below. */
1741 /* Override any gcc2 internal prototype to avoid an error. */
1742 /* We use char because int might match the return type of a gcc2
1743 builtin and then its argument prototype would still apply. */
1748 /* The GNU C library defines this for functions which it implements
1749 to always fail with ENOSYS. Some functions are actually named
1750 something starting with __ and the normal name is an alias. */
1751 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1759 if { (eval echo configure
:1760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1761 eval "ac_cv_func_$ac_func=yes"
1763 echo "configure: failed program was:" >&5
1764 cat conftest.
$ac_ext >&5
1766 eval "ac_cv_func_$ac_func=no"
1771 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1772 echo "$ac_t""yes" 1>&6
1773 cat >> confdefs.h
<<EOF
1774 #define CRAY_STACKSEG_END $ac_func
1779 echo "$ac_t""no" 1>&6
1785 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1786 echo "configure:1787: checking stack direction for C alloca" >&5
1787 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1788 echo $ac_n "(cached) $ac_c" 1>&6
1790 if test "$cross_compiling" = yes; then
1791 ac_cv_c_stack_direction
=0
1793 cat > conftest.
$ac_ext <<EOF
1794 #line 1795 "configure"
1795 #include "confdefs.h"
1796 find_stack_direction ()
1798 static char *addr = 0;
1803 return find_stack_direction ();
1806 return (&dummy > addr) ? 1 : -1;
1810 exit (find_stack_direction() < 0);
1813 if { (eval echo configure
:1814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1815 ac_cv_c_stack_direction
=1
1817 echo "configure: failed program was:" >&5
1818 cat conftest.
$ac_ext >&5
1820 ac_cv_c_stack_direction
=-1
1827 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1828 cat >> confdefs.h
<<EOF
1829 #define STACK_DIRECTION $ac_cv_c_stack_direction
1834 for ac_func
in gethostname gettimeofday
select poll strerror strncasecmp setpgid
1836 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1837 echo "configure:1838: checking for $ac_func" >&5
1838 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1839 echo $ac_n "(cached) $ac_c" 1>&6
1841 cat > conftest.
$ac_ext <<EOF
1842 #line 1843 "configure"
1843 #include "confdefs.h"
1844 /* System header to define __stub macros and hopefully few prototypes,
1845 which can conflict with char $ac_func(); below. */
1847 /* Override any gcc2 internal prototype to avoid an error. */
1848 /* We use char because int might match the return type of a gcc2
1849 builtin and then its argument prototype would still apply. */
1854 /* The GNU C library defines this for functions which it implements
1855 to always fail with ENOSYS. Some functions are actually named
1856 something starting with __ and the normal name is an alias. */
1857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1865 if { (eval echo configure
:1866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1867 eval "ac_cv_func_$ac_func=yes"
1869 echo "configure: failed program was:" >&5
1870 cat conftest.
$ac_ext >&5
1872 eval "ac_cv_func_$ac_func=no"
1877 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1878 echo "$ac_t""yes" 1>&6
1879 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1880 cat >> confdefs.h
<<EOF
1881 #define $ac_tr_func 1
1885 echo "$ac_t""no" 1>&6
1891 # Extract the first word of "cpp", so it can be a program name with args.
1892 set dummy cpp
; ac_word
=$2
1893 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1894 echo "configure:1895: checking for $ac_word" >&5
1895 if eval "test \"`echo '$''{'ac_cv_path_CPP_PATH'+set}'`\" = set"; then
1896 echo $ac_n "(cached) $ac_c" 1>&6
1900 ac_cv_path_CPP_PATH
="$CPP_PATH" # Let the user override the test with a path.
1903 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1904 for ac_dir
in /lib
:/usr
/bin
:/bin
:/usr
/lib
:/usr
/ccs
/lib
:$PATH$ac_dummy; do
1905 test -z "$ac_dir" && ac_dir
=.
1906 if test -f $ac_dir/$ac_word; then
1907 ac_cv_path_CPP_PATH
="$ac_dir/$ac_word"
1912 test -z "$ac_cv_path_CPP_PATH" && ac_cv_path_CPP_PATH
="notfound"
1916 CPP_PATH
="$ac_cv_path_CPP_PATH"
1917 if test -n "$CPP_PATH"; then
1918 echo "$ac_t""$CPP_PATH" 1>&6
1920 echo "$ac_t""no" 1>&6
1924 if test "$CPP_PATH" = "/usr/ccs/lib/cpp" -o "$CPP_PATH" = "notfound" ; then
1925 if test "$GCC" = "yes"; then
1926 CPP_PATH
="gcc -E -x c"
1928 if test "$CPP_PATH" = "/usr/ccs/lib/cpp"; then
1929 CPP_PATH
="$CPP_PATH -B"
1931 echo "cpp, the C preprocessor was not found in your system."
1932 echo "Create a symbolic link from it to /lib/cpp and rerun configure"
1937 cat >> confdefs.h
<<EOF
1938 #define CPP_PATH "$CPP_PATH"
1950 echo $ac_n "checking for gettext""... $ac_c" 1>&6
1951 echo "configure:1952: checking for gettext" >&5
1952 if eval "test \"`echo '$''{'ac_cv_func_gettext'+set}'`\" = set"; then
1953 echo $ac_n "(cached) $ac_c" 1>&6
1955 cat > conftest.
$ac_ext <<EOF
1956 #line 1957 "configure"
1957 #include "confdefs.h"
1958 /* System header to define __stub macros and hopefully few prototypes,
1959 which can conflict with char gettext(); below. */
1961 /* Override any gcc2 internal prototype to avoid an error. */
1962 /* We use char because int might match the return type of a gcc2
1963 builtin and then its argument prototype would still apply. */
1968 /* The GNU C library defines this for functions which it implements
1969 to always fail with ENOSYS. Some functions are actually named
1970 something starting with __ and the normal name is an alias. */
1971 #if defined (__stub_gettext) || defined (__stub___gettext)
1979 if { (eval echo configure
:1980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1981 eval "ac_cv_func_gettext=yes"
1983 echo "configure: failed program was:" >&5
1984 cat conftest.
$ac_ext >&5
1986 eval "ac_cv_func_gettext=no"
1991 if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
1992 echo "$ac_t""yes" 1>&6
1995 echo "$ac_t""no" 1>&6
1996 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
1997 echo "configure:1998: checking for gettext in -lintl" >&5
1998 ac_lib_var
=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
1999 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2000 echo $ac_n "(cached) $ac_c" 1>&6
2002 ac_save_LIBS
="$LIBS"
2004 cat > conftest.
$ac_ext <<EOF
2005 #line 2006 "configure"
2006 #include "confdefs.h"
2007 /* Override any gcc2 internal prototype to avoid an error. */
2008 /* We use char because int might match the return type of a gcc2
2009 builtin and then its argument prototype would still apply. */
2016 if { (eval echo configure
:2017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2018 eval "ac_cv_lib_$ac_lib_var=yes"
2020 echo "configure: failed program was:" >&5
2021 cat conftest.
$ac_ext >&5
2023 eval "ac_cv_lib_$ac_lib_var=no"
2026 LIBS
="$ac_save_LIBS"
2029 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2030 echo "$ac_t""yes" 1>&6
2031 INTLIBS
="-lintl" HAVEGETTEXT
="yes"
2033 echo "$ac_t""no" 1>&6
2040 # Extract the first word of "xgettext", so it can be a program name with args.
2041 set dummy xgettext
; ac_word
=$2
2042 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2043 echo "configure:2044: checking for $ac_word" >&5
2044 if eval "test \"`echo '$''{'ac_cv_prog_XGETTEXT'+set}'`\" = set"; then
2045 echo $ac_n "(cached) $ac_c" 1>&6
2047 if test -n "$XGETTEXT"; then
2048 ac_cv_prog_XGETTEXT
="$XGETTEXT" # Let the user override the test.
2050 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2051 for ac_dir
in $PATH; do
2052 test -z "$ac_dir" && ac_dir
=.
2053 if test -f $ac_dir/$ac_word; then
2054 ac_cv_prog_XGETTEXT
="xgettext"
2061 XGETTEXT
="$ac_cv_prog_XGETTEXT"
2062 if test -n "$XGETTEXT"; then
2063 echo "$ac_t""$XGETTEXT" 1>&6
2065 echo "$ac_t""no" 1>&6
2069 if test "$XGETTEXT" != ""; then
2070 if $XGETTEXT --help 2>&1 |
grep illegal
>/dev
/null
; then
2071 echo "xgettext isn't GNU version"
2076 if test "$LINGUAS" != ""; then
2077 if test "$XGETTEXT" != "" -a "$HAVEGETTEXT" != ""; then
2080 # if test "$LINGUAS" = ""; then
2081 # ling=` (cd src/po; /bin/ls *.po) `
2082 # for l in $ling; do
2083 # lcode=`basename $l .po`
2084 # LINGUAS="$LINGUAS $lcode"
2087 echo "xgettext and gettext() exist; will build i18n support for $LINGUAS"
2092 echo "xgettext and libintl.a don't both exist; will not build i18n support"
2103 supported_locales
="cs de es fr gl it ja ko nl no pt ru se tr fi hr el pl ro"
2104 supported_wprefs_locales
="pt hr fr ko ja"
2106 for lang
in $LINGUAS; do
2108 for l
in $supported_locales; do
2109 if test "$l" = "$lang"; then
2114 if test "$ok" = 1; then
2115 MOFILES
="$MOFILES $lang.mo"
2117 echo "Locale $lang is not supported."
2120 for l
in $supported_wprefs_locales; do
2121 if test "$l" = "$lang"; then
2126 if test "$ok" = 1; then
2127 WPMOFILES
="$WPMOFILES $lang.mo"
2133 # Check whether --enable-kanji or --disable-kanji was given.
2134 if test "${enable_kanji+set}" = set; then
2135 enableval
="$enable_kanji"
2142 if test "$enable_kanji" = yes; then
2143 I18N_MB
="#define I18N_MB"
2146 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
2147 echo "configure:2148: checking for setlocale in -lxpg4" >&5
2148 ac_lib_var
=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
2149 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2150 echo $ac_n "(cached) $ac_c" 1>&6
2152 ac_save_LIBS
="$LIBS"
2154 cat > conftest.
$ac_ext <<EOF
2155 #line 2156 "configure"
2156 #include "confdefs.h"
2157 /* Override any gcc2 internal prototype to avoid an error. */
2158 /* We use char because int might match the return type of a gcc2
2159 builtin and then its argument prototype would still apply. */
2166 if { (eval echo configure
:2167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2168 eval "ac_cv_lib_$ac_lib_var=yes"
2170 echo "configure: failed program was:" >&5
2171 cat conftest.
$ac_ext >&5
2173 eval "ac_cv_lib_$ac_lib_var=no"
2176 LIBS
="$ac_save_LIBS"
2179 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2180 echo "$ac_t""yes" 1>&6
2183 echo "$ac_t""no" 1>&6
2190 I18N_MB
="#undef I18N_MB"
2195 # Check whether --with-nlsdir or --without-nlsdir was given.
2196 if test "${with_nlsdir+set}" = set; then
2197 withval
="$with_nlsdir"
2202 if test "x$NLSDIR" = "x"; then
2203 if test "x$with_nlsdir" != "x"; then
2206 NLSDIR
="/usr/lib/locale"
2219 # If we find X, set shell vars x_includes and x_libraries to the
2220 # paths, otherwise set no_x=yes.
2221 # Uses ac_ vars as temps to allow command line to override cache and checks.
2222 # --without-x overrides everything else, but does not touch the cache.
2223 echo $ac_n "checking for X""... $ac_c" 1>&6
2224 echo "configure:2225: checking for X" >&5
2226 # Check whether --with-x or --without-x was given.
2227 if test "${with_x+set}" = set; then
2232 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2233 if test "x$with_x" = xno
; then
2234 # The user explicitly disabled X.
2237 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
2238 # Both variables are already set.
2241 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
2242 echo $ac_n "(cached) $ac_c" 1>&6
2244 # One or both of the vars are not set, and there is no cached value.
2245 ac_x_includes
=NO ac_x_libraries
=NO
2247 if mkdir conftestdir
; then
2249 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2250 cat > Imakefile
<<'EOF'
2252 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2254 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
2255 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2256 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2257 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2258 for ac_extension
in a so sl
; do
2259 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
2260 test -f $ac_im_libdir/libX11.
$ac_extension; then
2261 ac_im_usrlibdir
=$ac_im_libdir; break
2264 # Screen out bogus values from the imake configuration. They are
2265 # bogus both because they are the default anyway, and because
2266 # using them would break gcc on systems where it needs fixed includes.
2267 case "$ac_im_incroot" in
2269 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
2271 case "$ac_im_usrlibdir" in
2273 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
2280 if test "$ac_x_includes" = NO
; then
2281 # Guess where to find include files, by looking for this one X11 .h file.
2282 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
2284 # First, try using that file with no special directory specified.
2285 cat > conftest.
$ac_ext <<EOF
2286 #line 2287 "configure"
2287 #include "confdefs.h"
2288 #include <$x_direct_test_include>
2290 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2291 { (eval echo configure
:2292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2292 ac_err
=`grep -v '^ *+' conftest.out`
2293 if test -z "$ac_err"; then
2295 # We can compile using X headers with no special include directory.
2299 echo "configure: failed program was:" >&5
2300 cat conftest.
$ac_ext >&5
2302 # Look for the header file in a standard set of common directories.
2303 # Check X11 before X11Rn because it is often a symlink to the current release.
2306 /usr
/X11R
6/include \
2307 /usr
/X11R
5/include \
2308 /usr
/X11R
4/include \
2311 /usr
/include
/X11R6 \
2312 /usr
/include
/X11R5 \
2313 /usr
/include
/X11R4 \
2315 /usr
/local
/X11
/include \
2316 /usr
/local
/X11R
6/include \
2317 /usr
/local
/X11R
5/include \
2318 /usr
/local
/X11R
4/include \
2320 /usr
/local
/include
/X11 \
2321 /usr
/local
/include
/X11R6 \
2322 /usr
/local
/include
/X11R5 \
2323 /usr
/local
/include
/X11R4 \
2327 /usr
/XFree86
/include
/X11 \
2330 /usr
/local
/include \
2331 /usr
/unsupported
/include \
2332 /usr
/athena
/include \
2333 /usr
/local
/x11r
5/include \
2334 /usr
/lpp
/Xamples
/include \
2336 /usr
/openwin
/include \
2337 /usr
/openwin
/share
/include \
2340 if test -r "$ac_dir/$x_direct_test_include"; then
2341 ac_x_includes
=$ac_dir
2347 fi # $ac_x_includes = NO
2349 if test "$ac_x_libraries" = NO
; then
2350 # Check for the libraries.
2352 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
2353 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
2355 # See if we find them without any special options.
2356 # Don't add to $LIBS permanently.
2357 ac_save_LIBS
="$LIBS"
2358 LIBS
="-l$x_direct_test_library $LIBS"
2359 cat > conftest.
$ac_ext <<EOF
2360 #line 2361 "configure"
2361 #include "confdefs.h"
2364 ${x_direct_test_function}()
2367 if { (eval echo configure
:2368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2369 LIBS
="$ac_save_LIBS"
2370 # We can link X programs with no special library path.
2373 echo "configure: failed program was:" >&5
2374 cat conftest.
$ac_ext >&5
2376 LIBS
="$ac_save_LIBS"
2377 # First see if replacing the include by lib works.
2378 # Check X11 before X11Rn because it is often a symlink to the current release.
2379 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
2390 /usr
/local
/X11
/lib \
2391 /usr
/local
/X11R
6/lib \
2392 /usr
/local
/X11R
5/lib \
2393 /usr
/local
/X11R
4/lib \
2395 /usr
/local
/lib
/X11 \
2396 /usr
/local
/lib
/X11R6 \
2397 /usr
/local
/lib
/X11R5 \
2398 /usr
/local
/lib
/X11R4 \
2402 /usr
/XFree86
/lib
/X11 \
2406 /usr
/unsupported
/lib \
2408 /usr
/local
/x11r
5/lib \
2409 /usr
/lpp
/Xamples
/lib \
2413 /usr
/openwin
/share
/lib \
2416 for ac_extension
in a so sl
; do
2417 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
2418 ac_x_libraries
=$ac_dir
2425 fi # $ac_x_libraries = NO
2427 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
2428 # Didn't find X anywhere. Cache the known absence of X.
2429 ac_cv_have_x
="have_x=no"
2431 # Record where we found X for the cache.
2432 ac_cv_have_x
="have_x=yes \
2433 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2437 eval "$ac_cv_have_x"
2440 if test "$have_x" != yes; then
2441 echo "$ac_t""$have_x" 1>&6
2444 # If each of the values was on the command line, it overrides each guess.
2445 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
2446 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
2447 # Update the cache value to reflect the command line values.
2448 ac_cv_have_x
="have_x=yes \
2449 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2450 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
2453 if test "$no_x" = yes; then
2454 # Not all programs may use this symbol, but it does not hurt to define it.
2455 cat >> confdefs.h
<<\EOF
2456 #define X_DISPLAY_MISSING 1
2459 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
2461 if test -n "$x_includes"; then
2462 X_CFLAGS
="$X_CFLAGS -I$x_includes"
2465 # It would also be nice to do this for all -L options, not just this one.
2466 if test -n "$x_libraries"; then
2467 X_LIBS
="$X_LIBS -L$x_libraries"
2468 # For Solaris; some versions of Sun CC require a space after -R and
2469 # others require no space. Words are not sufficient . . . .
2470 case "`(uname -sr) 2>/dev/null`" in
2472 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
2473 echo "configure:2474: checking whether -R must be followed by a space" >&5
2474 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
2475 cat > conftest.
$ac_ext <<EOF
2476 #line 2477 "configure"
2477 #include "confdefs.h"
2483 if { (eval echo configure
:2484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2487 echo "configure: failed program was:" >&5
2488 cat conftest.
$ac_ext >&5
2493 if test $ac_R_nospace = yes; then
2494 echo "$ac_t""no" 1>&6
2495 X_LIBS
="$X_LIBS -R$x_libraries"
2497 LIBS
="$ac_xsave_LIBS -R $x_libraries"
2498 cat > conftest.
$ac_ext <<EOF
2499 #line 2500 "configure"
2500 #include "confdefs.h"
2506 if { (eval echo configure
:2507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2510 echo "configure: failed program was:" >&5
2511 cat conftest.
$ac_ext >&5
2516 if test $ac_R_space = yes; then
2517 echo "$ac_t""yes" 1>&6
2518 X_LIBS
="$X_LIBS -R $x_libraries"
2520 echo "$ac_t""neither works" 1>&6
2523 LIBS
="$ac_xsave_LIBS"
2527 # Check for system-dependent libraries X programs must link with.
2528 # Do this before checking for the system-independent R6 libraries
2529 # (-lICE), since we may need -lsocket or whatever for X linking.
2531 if test "$ISC" = yes; then
2532 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
2534 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
2535 # libraries were built with DECnet support. And karl@cs.umb.edu says
2536 # the Alpha needs dnet_stub (dnet does not exist).
2537 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
2538 echo "configure:2539: checking for dnet_ntoa in -ldnet" >&5
2539 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2540 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2541 echo $ac_n "(cached) $ac_c" 1>&6
2543 ac_save_LIBS
="$LIBS"
2545 cat > conftest.
$ac_ext <<EOF
2546 #line 2547 "configure"
2547 #include "confdefs.h"
2548 /* Override any gcc2 internal prototype to avoid an error. */
2549 /* We use char because int might match the return type of a gcc2
2550 builtin and then its argument prototype would still apply. */
2557 if { (eval echo configure
:2558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2559 eval "ac_cv_lib_$ac_lib_var=yes"
2561 echo "configure: failed program was:" >&5
2562 cat conftest.
$ac_ext >&5
2564 eval "ac_cv_lib_$ac_lib_var=no"
2567 LIBS
="$ac_save_LIBS"
2570 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2571 echo "$ac_t""yes" 1>&6
2572 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
2574 echo "$ac_t""no" 1>&6
2577 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
2578 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
2579 echo "configure:2580: checking for dnet_ntoa in -ldnet_stub" >&5
2580 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2581 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2582 echo $ac_n "(cached) $ac_c" 1>&6
2584 ac_save_LIBS
="$LIBS"
2585 LIBS
="-ldnet_stub $LIBS"
2586 cat > conftest.
$ac_ext <<EOF
2587 #line 2588 "configure"
2588 #include "confdefs.h"
2589 /* Override any gcc2 internal prototype to avoid an error. */
2590 /* We use char because int might match the return type of a gcc2
2591 builtin and then its argument prototype would still apply. */
2598 if { (eval echo configure
:2599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2600 eval "ac_cv_lib_$ac_lib_var=yes"
2602 echo "configure: failed program was:" >&5
2603 cat conftest.
$ac_ext >&5
2605 eval "ac_cv_lib_$ac_lib_var=no"
2608 LIBS
="$ac_save_LIBS"
2611 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2612 echo "$ac_t""yes" 1>&6
2613 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
2615 echo "$ac_t""no" 1>&6
2620 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2621 # to get the SysV transport functions.
2622 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
2624 # The nsl library prevents programs from opening the X display
2625 # on Irix 5.2, according to dickey@clark.net.
2626 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2627 echo "configure:2628: checking for gethostbyname" >&5
2628 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2629 echo $ac_n "(cached) $ac_c" 1>&6
2631 cat > conftest.
$ac_ext <<EOF
2632 #line 2633 "configure"
2633 #include "confdefs.h"
2634 /* System header to define __stub macros and hopefully few prototypes,
2635 which can conflict with char gethostbyname(); below. */
2637 /* Override any gcc2 internal prototype to avoid an error. */
2638 /* We use char because int might match the return type of a gcc2
2639 builtin and then its argument prototype would still apply. */
2640 char gethostbyname();
2644 /* The GNU C library defines this for functions which it implements
2645 to always fail with ENOSYS. Some functions are actually named
2646 something starting with __ and the normal name is an alias. */
2647 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2655 if { (eval echo configure
:2656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2657 eval "ac_cv_func_gethostbyname=yes"
2659 echo "configure: failed program was:" >&5
2660 cat conftest.
$ac_ext >&5
2662 eval "ac_cv_func_gethostbyname=no"
2667 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2668 echo "$ac_t""yes" 1>&6
2671 echo "$ac_t""no" 1>&6
2674 if test $ac_cv_func_gethostbyname = no
; then
2675 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2676 echo "configure:2677: checking for gethostbyname in -lnsl" >&5
2677 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2678 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2679 echo $ac_n "(cached) $ac_c" 1>&6
2681 ac_save_LIBS
="$LIBS"
2683 cat > conftest.
$ac_ext <<EOF
2684 #line 2685 "configure"
2685 #include "confdefs.h"
2686 /* Override any gcc2 internal prototype to avoid an error. */
2687 /* We use char because int might match the return type of a gcc2
2688 builtin and then its argument prototype would still apply. */
2689 char gethostbyname();
2695 if { (eval echo configure
:2696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2697 eval "ac_cv_lib_$ac_lib_var=yes"
2699 echo "configure: failed program was:" >&5
2700 cat conftest.
$ac_ext >&5
2702 eval "ac_cv_lib_$ac_lib_var=no"
2705 LIBS
="$ac_save_LIBS"
2708 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2709 echo "$ac_t""yes" 1>&6
2710 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
2712 echo "$ac_t""no" 1>&6
2717 # lieder@skyler.mavd.honeywell.com says without -lsocket,
2718 # socket/setsockopt and other routines are undefined under SCO ODT
2719 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
2720 # on later versions), says simon@lia.di.epfl.ch: it contains
2721 # gethostby* variants that don't use the nameserver (or something).
2722 # -lsocket must be given before -lnsl if both are needed.
2723 # We assume that if connect needs -lnsl, so does gethostbyname.
2724 echo $ac_n "checking for connect""... $ac_c" 1>&6
2725 echo "configure:2726: checking for connect" >&5
2726 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2727 echo $ac_n "(cached) $ac_c" 1>&6
2729 cat > conftest.
$ac_ext <<EOF
2730 #line 2731 "configure"
2731 #include "confdefs.h"
2732 /* System header to define __stub macros and hopefully few prototypes,
2733 which can conflict with char connect(); below. */
2735 /* Override any gcc2 internal prototype to avoid an error. */
2736 /* We use char because int might match the return type of a gcc2
2737 builtin and then its argument prototype would still apply. */
2742 /* The GNU C library defines this for functions which it implements
2743 to always fail with ENOSYS. Some functions are actually named
2744 something starting with __ and the normal name is an alias. */
2745 #if defined (__stub_connect) || defined (__stub___connect)
2753 if { (eval echo configure
:2754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2755 eval "ac_cv_func_connect=yes"
2757 echo "configure: failed program was:" >&5
2758 cat conftest.
$ac_ext >&5
2760 eval "ac_cv_func_connect=no"
2765 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2766 echo "$ac_t""yes" 1>&6
2769 echo "$ac_t""no" 1>&6
2772 if test $ac_cv_func_connect = no
; then
2773 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2774 echo "configure:2775: checking for connect in -lsocket" >&5
2775 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2776 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2777 echo $ac_n "(cached) $ac_c" 1>&6
2779 ac_save_LIBS
="$LIBS"
2780 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
2781 cat > conftest.
$ac_ext <<EOF
2782 #line 2783 "configure"
2783 #include "confdefs.h"
2784 /* Override any gcc2 internal prototype to avoid an error. */
2785 /* We use char because int might match the return type of a gcc2
2786 builtin and then its argument prototype would still apply. */
2793 if { (eval echo configure
:2794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2795 eval "ac_cv_lib_$ac_lib_var=yes"
2797 echo "configure: failed program was:" >&5
2798 cat conftest.
$ac_ext >&5
2800 eval "ac_cv_lib_$ac_lib_var=no"
2803 LIBS
="$ac_save_LIBS"
2806 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2807 echo "$ac_t""yes" 1>&6
2808 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
2810 echo "$ac_t""no" 1>&6
2815 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2816 echo $ac_n "checking for remove""... $ac_c" 1>&6
2817 echo "configure:2818: checking for remove" >&5
2818 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2819 echo $ac_n "(cached) $ac_c" 1>&6
2821 cat > conftest.
$ac_ext <<EOF
2822 #line 2823 "configure"
2823 #include "confdefs.h"
2824 /* System header to define __stub macros and hopefully few prototypes,
2825 which can conflict with char remove(); below. */
2827 /* Override any gcc2 internal prototype to avoid an error. */
2828 /* We use char because int might match the return type of a gcc2
2829 builtin and then its argument prototype would still apply. */
2834 /* The GNU C library defines this for functions which it implements
2835 to always fail with ENOSYS. Some functions are actually named
2836 something starting with __ and the normal name is an alias. */
2837 #if defined (__stub_remove) || defined (__stub___remove)
2845 if { (eval echo configure
:2846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2847 eval "ac_cv_func_remove=yes"
2849 echo "configure: failed program was:" >&5
2850 cat conftest.
$ac_ext >&5
2852 eval "ac_cv_func_remove=no"
2857 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2858 echo "$ac_t""yes" 1>&6
2861 echo "$ac_t""no" 1>&6
2864 if test $ac_cv_func_remove = no
; then
2865 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2866 echo "configure:2867: checking for remove in -lposix" >&5
2867 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2868 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2869 echo $ac_n "(cached) $ac_c" 1>&6
2871 ac_save_LIBS
="$LIBS"
2872 LIBS
="-lposix $LIBS"
2873 cat > conftest.
$ac_ext <<EOF
2874 #line 2875 "configure"
2875 #include "confdefs.h"
2876 /* Override any gcc2 internal prototype to avoid an error. */
2877 /* We use char because int might match the return type of a gcc2
2878 builtin and then its argument prototype would still apply. */
2885 if { (eval echo configure
:2886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2887 eval "ac_cv_lib_$ac_lib_var=yes"
2889 echo "configure: failed program was:" >&5
2890 cat conftest.
$ac_ext >&5
2892 eval "ac_cv_lib_$ac_lib_var=no"
2895 LIBS
="$ac_save_LIBS"
2898 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2899 echo "$ac_t""yes" 1>&6
2900 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
2902 echo "$ac_t""no" 1>&6
2907 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2908 echo $ac_n "checking for shmat""... $ac_c" 1>&6
2909 echo "configure:2910: checking for shmat" >&5
2910 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2911 echo $ac_n "(cached) $ac_c" 1>&6
2913 cat > conftest.
$ac_ext <<EOF
2914 #line 2915 "configure"
2915 #include "confdefs.h"
2916 /* System header to define __stub macros and hopefully few prototypes,
2917 which can conflict with char shmat(); below. */
2919 /* Override any gcc2 internal prototype to avoid an error. */
2920 /* We use char because int might match the return type of a gcc2
2921 builtin and then its argument prototype would still apply. */
2926 /* The GNU C library defines this for functions which it implements
2927 to always fail with ENOSYS. Some functions are actually named
2928 something starting with __ and the normal name is an alias. */
2929 #if defined (__stub_shmat) || defined (__stub___shmat)
2937 if { (eval echo configure
:2938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2939 eval "ac_cv_func_shmat=yes"
2941 echo "configure: failed program was:" >&5
2942 cat conftest.
$ac_ext >&5
2944 eval "ac_cv_func_shmat=no"
2949 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2950 echo "$ac_t""yes" 1>&6
2953 echo "$ac_t""no" 1>&6
2956 if test $ac_cv_func_shmat = no
; then
2957 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2958 echo "configure:2959: checking for shmat in -lipc" >&5
2959 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2960 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2961 echo $ac_n "(cached) $ac_c" 1>&6
2963 ac_save_LIBS
="$LIBS"
2965 cat > conftest.
$ac_ext <<EOF
2966 #line 2967 "configure"
2967 #include "confdefs.h"
2968 /* Override any gcc2 internal prototype to avoid an error. */
2969 /* We use char because int might match the return type of a gcc2
2970 builtin and then its argument prototype would still apply. */
2977 if { (eval echo configure
:2978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2979 eval "ac_cv_lib_$ac_lib_var=yes"
2981 echo "configure: failed program was:" >&5
2982 cat conftest.
$ac_ext >&5
2984 eval "ac_cv_lib_$ac_lib_var=no"
2987 LIBS
="$ac_save_LIBS"
2990 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2991 echo "$ac_t""yes" 1>&6
2992 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
2994 echo "$ac_t""no" 1>&6
3000 # Check for libraries that X11R6 Xt/Xaw programs need.
3001 ac_save_LDFLAGS
="$LDFLAGS"
3002 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
3003 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3004 # check for ICE first), but we must link in the order -lSM -lICE or
3005 # we get undefined symbols. So assume we have SM if we have ICE.
3006 # These have to be linked with before -lX11, unlike the other
3007 # libraries we check for below, so use a different variable.
3008 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
3009 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
3010 echo "configure:3011: checking for IceConnectionNumber in -lICE" >&5
3011 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
3012 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3013 echo $ac_n "(cached) $ac_c" 1>&6
3015 ac_save_LIBS
="$LIBS"
3017 cat > conftest.
$ac_ext <<EOF
3018 #line 3019 "configure"
3019 #include "confdefs.h"
3020 /* Override any gcc2 internal prototype to avoid an error. */
3021 /* We use char because int might match the return type of a gcc2
3022 builtin and then its argument prototype would still apply. */
3023 char IceConnectionNumber();
3026 IceConnectionNumber()
3029 if { (eval echo configure
:3030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3031 eval "ac_cv_lib_$ac_lib_var=yes"
3033 echo "configure: failed program was:" >&5
3034 cat conftest.
$ac_ext >&5
3036 eval "ac_cv_lib_$ac_lib_var=no"
3039 LIBS
="$ac_save_LIBS"
3042 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3043 echo "$ac_t""yes" 1>&6
3044 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
3046 echo "$ac_t""no" 1>&6
3049 LDFLAGS
="$ac_save_LDFLAGS"
3058 XLIBS
="$X_EXTRA_LIBS -lX11"
3060 echo $ac_n "checking for _Xsetlocale in -lX11""... $ac_c" 1>&6
3061 echo "configure:3062: checking for _Xsetlocale in -lX11" >&5
3062 ac_lib_var
=`echo X11'_'_Xsetlocale | sed 'y%./+-%__p_%'`
3063 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3064 echo $ac_n "(cached) $ac_c" 1>&6
3066 ac_save_LIBS
="$LIBS"
3067 LIBS
="-lX11 $XLFLAGS $XLIBS $LIBS"
3068 cat > conftest.
$ac_ext <<EOF
3069 #line 3070 "configure"
3070 #include "confdefs.h"
3071 /* Override any gcc2 internal prototype to avoid an error. */
3072 /* We use char because int might match the return type of a gcc2
3073 builtin and then its argument prototype would still apply. */
3080 if { (eval echo configure
:3081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3082 eval "ac_cv_lib_$ac_lib_var=yes"
3084 echo "configure: failed program was:" >&5
3085 cat conftest.
$ac_ext >&5
3087 eval "ac_cv_lib_$ac_lib_var=no"
3090 LIBS
="$ac_save_LIBS"
3093 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3094 echo "$ac_t""yes" 1>&6
3095 X_LOCALE
="-DX_LOCALE"
3097 echo "$ac_t""no" 1>&6
3104 # Check whether --enable-shape or --disable-shape was given.
3105 if test "${enable_shape+set}" = set; then
3106 enableval
="$enable_shape"
3115 if test "$shape" = yes; then
3116 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
3117 echo "configure:3118: checking for XShapeSelectInput in -lXext" >&5
3118 ac_lib_var
=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
3119 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3120 echo $ac_n "(cached) $ac_c" 1>&6
3122 ac_save_LIBS
="$LIBS"
3123 LIBS
="-lXext $XLFLAGS $XLIBS $LIBS"
3124 cat > conftest.
$ac_ext <<EOF
3125 #line 3126 "configure"
3126 #include "confdefs.h"
3127 /* Override any gcc2 internal prototype to avoid an error. */
3128 /* We use char because int might match the return type of a gcc2
3129 builtin and then its argument prototype would still apply. */
3130 char XShapeSelectInput();
3136 if { (eval echo configure
:3137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3138 eval "ac_cv_lib_$ac_lib_var=yes"
3140 echo "configure: failed program was:" >&5
3141 cat conftest.
$ac_ext >&5
3143 eval "ac_cv_lib_$ac_lib_var=no"
3146 LIBS
="$ac_save_LIBS"
3149 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3150 echo "$ac_t""yes" 1>&6
3151 XLIBS
="-lXext $XLIBS"
3152 added_xext
=yes SHAPE
=-DSHAPE
3154 echo "$ac_t""no" 1>&6
3164 # Check whether --enable-shm or --disable-shm was given.
3165 if test "${enable_shm+set}" = set; then
3166 enableval
="$enable_shm"
3173 if test "$shm" = yes; then
3174 echo $ac_n "checking for XShmAttach in -lXext""... $ac_c" 1>&6
3175 echo "configure:3176: checking for XShmAttach in -lXext" >&5
3176 ac_lib_var
=`echo Xext'_'XShmAttach | sed 'y%./+-%__p_%'`
3177 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3178 echo $ac_n "(cached) $ac_c" 1>&6
3180 ac_save_LIBS
="$LIBS"
3181 LIBS
="-lXext $XLFLAGS $XLIBS $LIBS"
3182 cat > conftest.
$ac_ext <<EOF
3183 #line 3184 "configure"
3184 #include "confdefs.h"
3185 /* Override any gcc2 internal prototype to avoid an error. */
3186 /* We use char because int might match the return type of a gcc2
3187 builtin and then its argument prototype would still apply. */
3194 if { (eval echo configure
:3195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3196 eval "ac_cv_lib_$ac_lib_var=yes"
3198 echo "configure: failed program was:" >&5
3199 cat conftest.
$ac_ext >&5
3201 eval "ac_cv_lib_$ac_lib_var=no"
3204 LIBS
="$ac_save_LIBS"
3207 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3208 echo "$ac_t""yes" 1>&6
3211 echo "$ac_t""no" 1>&6
3216 if test "$ok" = yes; then
3217 echo $ac_n "checking for shmget""... $ac_c" 1>&6
3218 echo "configure:3219: checking for shmget" >&5
3219 if eval "test \"`echo '$''{'ac_cv_func_shmget'+set}'`\" = set"; then
3220 echo $ac_n "(cached) $ac_c" 1>&6
3222 cat > conftest.
$ac_ext <<EOF
3223 #line 3224 "configure"
3224 #include "confdefs.h"
3225 /* System header to define __stub macros and hopefully few prototypes,
3226 which can conflict with char shmget(); below. */
3228 /* Override any gcc2 internal prototype to avoid an error. */
3229 /* We use char because int might match the return type of a gcc2
3230 builtin and then its argument prototype would still apply. */
3235 /* The GNU C library defines this for functions which it implements
3236 to always fail with ENOSYS. Some functions are actually named
3237 something starting with __ and the normal name is an alias. */
3238 #if defined (__stub_shmget) || defined (__stub___shmget)
3246 if { (eval echo configure
:3247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3248 eval "ac_cv_func_shmget=yes"
3250 echo "configure: failed program was:" >&5
3251 cat conftest.
$ac_ext >&5
3253 eval "ac_cv_func_shmget=no"
3258 if eval "test \"`echo '$ac_cv_func_'shmget`\" = yes"; then
3259 echo "$ac_t""yes" 1>&6
3262 echo "$ac_t""no" 1>&6
3268 if test "$ok" = yes; then
3269 if test "$added_xext" = no
; then
3270 XLIBS
="-lXext $XLIBS"
3280 # Check whether --with-gfx-libs or --without-gfx-libs was given.
3281 if test "${with_gfx_libs+set}" = set; then
3282 withval
="$with_gfx_libs"
3283 GFXLIBS
="$withval" GFX_LIB_PATH
=$withval
3285 GFXLIBS
="" GFX_LIB_PATH
=""
3289 # Check whether --with-gfx-incs or --without-gfx-incs was given.
3290 if test "${with_gfx_incs+set}" = set; then
3291 withval
="$with_gfx_incs"
3292 GFXFLAGS
="$withval" GFX_INC_PATH
=$withval
3294 GFXFLAGS
="" GFX_INC_PATH
=""
3302 # Check whether --enable-xpm or --disable-xpm was given.
3303 if test "${enable_xpm+set}" = set; then
3304 enableval
="$enable_xpm"
3311 if test "$xpm" = yes; then
3312 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
3313 echo "configure:3314: checking for XpmCreatePixmapFromData in -lXpm" >&5
3314 ac_lib_var
=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
3315 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3316 echo $ac_n "(cached) $ac_c" 1>&6
3318 ac_save_LIBS
="$LIBS"
3319 LIBS
="-lXpm $GFX_INC_PATH $GFX_LIB_PATH $XLFLAGS $XLIBS $LIBS"
3320 cat > conftest.
$ac_ext <<EOF
3321 #line 3322 "configure"
3322 #include "confdefs.h"
3323 /* Override any gcc2 internal prototype to avoid an error. */
3324 /* We use char because int might match the return type of a gcc2
3325 builtin and then its argument prototype would still apply. */
3326 char XpmCreatePixmapFromData();
3329 XpmCreatePixmapFromData()
3332 if { (eval echo configure
:3333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3334 eval "ac_cv_lib_$ac_lib_var=yes"
3336 echo "configure: failed program was:" >&5
3337 cat conftest.
$ac_ext >&5
3339 eval "ac_cv_lib_$ac_lib_var=no"
3342 LIBS
="$ac_save_LIBS"
3345 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3346 echo "$ac_t""yes" 1>&6
3349 echo "$ac_t""no" 1>&6
3354 if test "$my_libok" = yes; then
3355 my_old_cppflags
=$CPPFLAGS
3356 CPPFLAGS
="$CPPFLAGS $GFX_INC_PATH $XCFLAGS"
3357 ac_safe
=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
3358 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
3359 echo "configure:3360: checking for X11/xpm.h" >&5
3360 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3361 echo $ac_n "(cached) $ac_c" 1>&6
3363 cat > conftest.
$ac_ext <<EOF
3364 #line 3365 "configure"
3365 #include "confdefs.h"
3366 #include <X11/xpm.h>
3368 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3369 { (eval echo configure
:3370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3370 ac_err
=`grep -v '^ *+' conftest.out`
3371 if test -z "$ac_err"; then
3373 eval "ac_cv_header_$ac_safe=yes"
3376 echo "configure: failed program was:" >&5
3377 cat conftest.
$ac_ext >&5
3379 eval "ac_cv_header_$ac_safe=no"
3383 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3384 echo "$ac_t""yes" 1>&6
3385 GFXFLAGS
="$GFXFLAGS -DUSE_XPM" GFXLIBS
="$GFXLIBS -lXpm"
3388 echo "$ac_t""no" 1>&6
3389 supported_gfx
="XPM (builtin)"
3392 CPPFLAGS
=$my_old_cppflags
3406 echo $ac_n "checking for gzread in -lz""... $ac_c" 1>&6
3407 echo "configure:3408: checking for gzread in -lz" >&5
3408 ac_lib_var
=`echo z'_'gzread | sed 'y%./+-%__p_%'`
3409 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3410 echo $ac_n "(cached) $ac_c" 1>&6
3412 ac_save_LIBS
="$LIBS"
3413 LIBS
="-lz $GFX_INC_PATH $GFX_LIB_PATH $XLFLAGS $LIBS"
3414 cat > conftest.
$ac_ext <<EOF
3415 #line 3416 "configure"
3416 #include "confdefs.h"
3417 /* Override any gcc2 internal prototype to avoid an error. */
3418 /* We use char because int might match the return type of a gcc2
3419 builtin and then its argument prototype would still apply. */
3426 if { (eval echo configure
:3427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3428 eval "ac_cv_lib_$ac_lib_var=yes"
3430 echo "configure: failed program was:" >&5
3431 cat conftest.
$ac_ext >&5
3433 eval "ac_cv_lib_$ac_lib_var=no"
3436 LIBS
="$ac_save_LIBS"
3439 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3440 echo "$ac_t""yes" 1>&6
3443 echo "$ac_t""no" 1>&6
3450 # assume libz is present...
3452 #[ --disable-png disable PNG support through libpng],
3453 # png=$enableval, png=yes)
3456 if test "$png" = yes -a "$zlib" = yes ; then
3457 echo $ac_n "checking for png_get_valid in -lpng""... $ac_c" 1>&6
3458 echo "configure:3459: checking for png_get_valid in -lpng" >&5
3459 ac_lib_var
=`echo png'_'png_get_valid | sed 'y%./+-%__p_%'`
3460 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3461 echo $ac_n "(cached) $ac_c" 1>&6
3463 ac_save_LIBS
="$LIBS"
3464 LIBS
="-lpng $GFX_INC_PATH $GFX_LIB_PATH $XLFLAGS -lz -lm $LIBS"
3465 cat > conftest.
$ac_ext <<EOF
3466 #line 3467 "configure"
3467 #include "confdefs.h"
3468 /* Override any gcc2 internal prototype to avoid an error. */
3469 /* We use char because int might match the return type of a gcc2
3470 builtin and then its argument prototype would still apply. */
3471 char png_get_valid();
3477 if { (eval echo configure
:3478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3479 eval "ac_cv_lib_$ac_lib_var=yes"
3481 echo "configure: failed program was:" >&5
3482 cat conftest.
$ac_ext >&5
3484 eval "ac_cv_lib_$ac_lib_var=no"
3487 LIBS
="$ac_save_LIBS"
3490 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3491 echo "$ac_t""yes" 1>&6
3494 echo "$ac_t""no" 1>&6
3499 if test "$my_libok" = yes; then
3500 my_old_cppflags
=$CPPFLAGS
3501 CPPFLAGS
="$CPPFLAGS $GFX_INC_PATH"
3502 ac_safe
=`echo "png.h" | sed 'y%./+-%__p_%'`
3503 echo $ac_n "checking for png.h""... $ac_c" 1>&6
3504 echo "configure:3505: checking for png.h" >&5
3505 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3506 echo $ac_n "(cached) $ac_c" 1>&6
3508 cat > conftest.
$ac_ext <<EOF
3509 #line 3510 "configure"
3510 #include "confdefs.h"
3513 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3514 { (eval echo configure
:3515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3515 ac_err
=`grep -v '^ *+' conftest.out`
3516 if test -z "$ac_err"; then
3518 eval "ac_cv_header_$ac_safe=yes"
3521 echo "configure: failed program was:" >&5
3522 cat conftest.
$ac_ext >&5
3524 eval "ac_cv_header_$ac_safe=no"
3528 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3529 echo "$ac_t""yes" 1>&6
3530 GFXLIBS
="$GFXLIBS -lpng -lz" GFXFLAGS
="$GFXFLAGS -DUSE_PNG"
3531 supported_gfx
="$supported_gfx PNG"
3533 echo "$ac_t""no" 1>&6
3536 CPPFLAGS
=$my_old_cppflags
3542 # Check whether --enable-jpeg or --disable-jpeg was given.
3543 if test "${enable_jpeg+set}" = set; then
3544 enableval
="$enable_jpeg"
3551 if test "$jpeg" = yes; then
3552 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
3553 echo "configure:3554: checking for jpeg_destroy_compress in -ljpeg" >&5
3554 ac_lib_var
=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
3555 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3556 echo $ac_n "(cached) $ac_c" 1>&6
3558 ac_save_LIBS
="$LIBS"
3559 LIBS
="-ljpeg $GFX_INC_PATH $GFX_LIB_PATH $XLFLAGS $LIBS"
3560 cat > conftest.
$ac_ext <<EOF
3561 #line 3562 "configure"
3562 #include "confdefs.h"
3563 /* Override any gcc2 internal prototype to avoid an error. */
3564 /* We use char because int might match the return type of a gcc2
3565 builtin and then its argument prototype would still apply. */
3566 char jpeg_destroy_compress();
3569 jpeg_destroy_compress()
3572 if { (eval echo configure
:3573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3574 eval "ac_cv_lib_$ac_lib_var=yes"
3576 echo "configure: failed program was:" >&5
3577 cat conftest.
$ac_ext >&5
3579 eval "ac_cv_lib_$ac_lib_var=no"
3582 LIBS
="$ac_save_LIBS"
3585 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3586 echo "$ac_t""yes" 1>&6
3589 echo "$ac_t""no" 1>&6
3594 if test "$my_libok" = yes; then
3595 my_old_cppflags
=$CPPFLAGS
3596 CPPFLAGS
="$CPPFLAGS $GFX_INC_PATH"
3597 cat > conftest.
$ac_ext <<EOF
3598 #line 3599 "configure"
3599 #include "confdefs.h"
3602 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3603 { (eval echo configure
:3604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3604 ac_err
=`grep -v '^ *+' conftest.out`
3605 if test -z "$ac_err"; then
3607 GFXLIBS
="$GFXLIBS -ljpeg" GFXFLAGS
="$GFXFLAGS -DUSE_JPEG"
3608 supported_gfx
="$supported_gfx JPEG"
3611 echo "configure: failed program was:" >&5
3612 cat conftest.
$ac_ext >&5
3615 CPPFLAGS
=$my_old_cppflags
3621 # Check whether --enable-gif or --disable-gif was given.
3622 if test "${enable_gif+set}" = set; then
3623 enableval
="$enable_gif"
3630 if test "$gif" = yes; then
3632 echo $ac_n "checking for DGifOpenFileName in -lungif""... $ac_c" 1>&6
3633 echo "configure:3634: checking for DGifOpenFileName in -lungif" >&5
3634 ac_lib_var
=`echo ungif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
3635 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3636 echo $ac_n "(cached) $ac_c" 1>&6
3638 ac_save_LIBS
="$LIBS"
3639 LIBS
="-lungif $GFX_INC_PATH $GFX_LIB_PATH $XLFLAGS $LIBS"
3640 cat > conftest.
$ac_ext <<EOF
3641 #line 3642 "configure"
3642 #include "confdefs.h"
3643 /* Override any gcc2 internal prototype to avoid an error. */
3644 /* We use char because int might match the return type of a gcc2
3645 builtin and then its argument prototype would still apply. */
3646 char DGifOpenFileName();
3652 if { (eval echo configure
:3653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3654 eval "ac_cv_lib_$ac_lib_var=yes"
3656 echo "configure: failed program was:" >&5
3657 cat conftest.
$ac_ext >&5
3659 eval "ac_cv_lib_$ac_lib_var=no"
3662 LIBS
="$ac_save_LIBS"
3665 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3666 echo "$ac_t""yes" 1>&6
3667 my_libok
=yes my_libname
=ungif
3669 echo "$ac_t""no" 1>&6
3670 retry
=yes my_libok
=no
3673 if test "$retry" = yes; then
3674 echo $ac_n "checking for DGifOpenFileName in -lgif""... $ac_c" 1>&6
3675 echo "configure:3676: checking for DGifOpenFileName in -lgif" >&5
3676 ac_lib_var
=`echo gif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
3677 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3678 echo $ac_n "(cached) $ac_c" 1>&6
3680 ac_save_LIBS
="$LIBS"
3681 LIBS
="-lgif $GFX_INC_PATH $GFX_LIB_PATH $XLFLAGS $LIBS"
3682 cat > conftest.
$ac_ext <<EOF
3683 #line 3684 "configure"
3684 #include "confdefs.h"
3685 /* Override any gcc2 internal prototype to avoid an error. */
3686 /* We use char because int might match the return type of a gcc2
3687 builtin and then its argument prototype would still apply. */
3688 char DGifOpenFileName();
3694 if { (eval echo configure
:3695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3696 eval "ac_cv_lib_$ac_lib_var=yes"
3698 echo "configure: failed program was:" >&5
3699 cat conftest.
$ac_ext >&5
3701 eval "ac_cv_lib_$ac_lib_var=no"
3704 LIBS
="$ac_save_LIBS"
3707 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3708 echo "$ac_t""yes" 1>&6
3709 my_libok
=yes my_libname
=gif
3711 echo "$ac_t""no" 1>&6
3717 if test "$my_libok" = yes; then
3718 my_old_cppflags
=$CPPFLAGS
3719 CPPFLAGS
="$CPPFLAGS $GFX_INC_PATH"
3720 ac_safe
=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
3721 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
3722 echo "configure:3723: checking for gif_lib.h" >&5
3723 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3724 echo $ac_n "(cached) $ac_c" 1>&6
3726 cat > conftest.
$ac_ext <<EOF
3727 #line 3728 "configure"
3728 #include "confdefs.h"
3729 #include <gif_lib.h>
3731 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3732 { (eval echo configure
:3733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3733 ac_err
=`grep -v '^ *+' conftest.out`
3734 if test -z "$ac_err"; then
3736 eval "ac_cv_header_$ac_safe=yes"
3739 echo "configure: failed program was:" >&5
3740 cat conftest.
$ac_ext >&5
3742 eval "ac_cv_header_$ac_safe=no"
3746 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3747 echo "$ac_t""yes" 1>&6
3748 GFXLIBS
="$GFXLIBS -l$my_libname" GFXFLAGS
="$GFXFLAGS -DUSE_GIF"
3749 supported_gfx
="$supported_gfx GIF"
3751 echo "$ac_t""no" 1>&6
3754 CPPFLAGS
=$my_old_cppflags
3760 # Check whether --enable-tiff or --disable-tiff was given.
3761 if test "${enable_tiff+set}" = set; then
3762 enableval
="$enable_tiff"
3770 # TIFF can optionally have JPEG and/or zlib support. Must find out
3771 # when they are supported so that correct library flags are passed during
3772 # detection and linkage
3775 # By default use xpm icons if tiff is not found.
3779 if test "$tif" = yes; then
3781 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
3782 echo "configure:3783: checking for TIFFGetVersion in -ltiff" >&5
3783 ac_lib_var
=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
3784 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3785 echo $ac_n "(cached) $ac_c" 1>&6
3787 ac_save_LIBS
="$LIBS"
3788 LIBS
="-ltiff $GFX_INC_PATH $GFX_LIB_PATH $XLFLAGS $XLIBS $GFXLIBS -lm $LIBS"
3789 cat > conftest.
$ac_ext <<EOF
3790 #line 3791 "configure"
3791 #include "confdefs.h"
3792 /* Override any gcc2 internal prototype to avoid an error. */
3793 /* We use char because int might match the return type of a gcc2
3794 builtin and then its argument prototype would still apply. */
3795 char TIFFGetVersion();
3801 if { (eval echo configure
:3802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3803 eval "ac_cv_lib_$ac_lib_var=yes"
3805 echo "configure: failed program was:" >&5
3806 cat conftest.
$ac_ext >&5
3808 eval "ac_cv_lib_$ac_lib_var=no"
3811 LIBS
="$ac_save_LIBS"
3814 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3815 echo "$ac_t""yes" 1>&6
3816 my_libok
=yes my_libname
="-ltiff"
3818 echo "$ac_t""no" 1>&6
3822 if test "$my_libok" = no
; then
3823 if test "$zlib" = "yes"; then
3824 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
3825 echo "configure:3826: checking for TIFFGetVersion in -ltiff" >&5
3826 ac_lib_var
=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
3827 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3828 echo $ac_n "(cached) $ac_c" 1>&6
3830 ac_save_LIBS
="$LIBS"
3831 LIBS
="-ltiff $GFX_INC_PATH $GFX_LIB_PATH $XLFLAGS $XLIBS $GFXLIBS -lz -lm $LIBS"
3832 cat > conftest.
$ac_ext <<EOF
3833 #line 3834 "configure"
3834 #include "confdefs.h"
3835 /* Override any gcc2 internal prototype to avoid an error. */
3836 /* We use char because int might match the return type of a gcc2
3837 builtin and then its argument prototype would still apply. */
3838 char TIFFGetVersion();
3844 if { (eval echo configure
:3845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3846 eval "ac_cv_lib_$ac_lib_var=yes"
3848 echo "configure: failed program was:" >&5
3849 cat conftest.
$ac_ext >&5
3851 eval "ac_cv_lib_$ac_lib_var=no"
3854 LIBS
="$ac_save_LIBS"
3857 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3858 echo "$ac_t""yes" 1>&6
3859 my_libok
=yes my_libname
="-ltiff -lz"
3861 echo "$ac_t""no" 1>&6
3868 if test "$my_libok" = no
; then
3869 echo $ac_n "checking for TIFFGetVersion in -ltiff34""... $ac_c" 1>&6
3870 echo "configure:3871: checking for TIFFGetVersion in -ltiff34" >&5
3871 ac_lib_var
=`echo tiff34'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
3872 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3873 echo $ac_n "(cached) $ac_c" 1>&6
3875 ac_save_LIBS
="$LIBS"
3876 LIBS
="-ltiff34 $GFX_INC_PATH $GFX_LIB_PATH $XLFLAGS $XLIBS $GFXLIBS -lm $LIBS"
3877 cat > conftest.
$ac_ext <<EOF
3878 #line 3879 "configure"
3879 #include "confdefs.h"
3880 /* Override any gcc2 internal prototype to avoid an error. */
3881 /* We use char because int might match the return type of a gcc2
3882 builtin and then its argument prototype would still apply. */
3883 char TIFFGetVersion();
3889 if { (eval echo configure
:3890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3891 eval "ac_cv_lib_$ac_lib_var=yes"
3893 echo "configure: failed program was:" >&5
3894 cat conftest.
$ac_ext >&5
3896 eval "ac_cv_lib_$ac_lib_var=no"
3899 LIBS
="$ac_save_LIBS"
3902 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3903 echo "$ac_t""yes" 1>&6
3904 my_libok
=yes my_libname
="-ltiff34"
3906 echo "$ac_t""no" 1>&6
3912 if test "$my_libok" = yes; then
3913 my_old_cppflags
=$CPPFLAGS
3914 CPPFLAGS
="$CPPFLAGS $GFX_INC_PATH"
3915 ac_safe
=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
3916 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
3917 echo "configure:3918: checking for tiffio.h" >&5
3918 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3919 echo $ac_n "(cached) $ac_c" 1>&6
3921 cat > conftest.
$ac_ext <<EOF
3922 #line 3923 "configure"
3923 #include "confdefs.h"
3926 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3927 { (eval echo configure
:3928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3928 ac_err
=`grep -v '^ *+' conftest.out`
3929 if test -z "$ac_err"; then
3931 eval "ac_cv_header_$ac_safe=yes"
3934 echo "configure: failed program was:" >&5
3935 cat conftest.
$ac_ext >&5
3937 eval "ac_cv_header_$ac_safe=no"
3941 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3942 echo "$ac_t""yes" 1>&6
3943 GFXFLAGS
="$GFXFLAGS -DUSE_TIFF" GFXLIBS
="$my_libname $GFXLIBS"
3944 ICONEXT
="tiff" supported_gfx
="$supported_gfx TIFF"
3946 echo "$ac_t""no" 1>&6
3949 CPPFLAGS
=$my_old_cppflags
3963 #LIBPL_LIBS="-L${top_builddir}/libPropList -lPropList"
3964 #LIBPL_INC_PATH="-I${top_srcdir}/libPropList"
3967 #PLPATH=`pwd`/libPropList
3969 #if test -f $PLPATH/libPropList.a; then
3970 # echo "using bundled libPropList, already compiled."
3972 # LIBPL_LIBS="-L$PLPATH -lPropList"
3973 # LIBPL_INC_PATH="-I$PLPATH"
3975 # AC_CHECK_LIB(PropList, PLGetString,
3976 # [LIBPL_LIBS=-lPropList LIBPL_INC_PATH="" needtobuild=no],
3977 # [LIBPL_LIBS="-L$PLPATH -lPropList"
3978 # LIBPL_INC_PATH="-I$PLPATH"
3983 #if test "$needtobuild" = yes; then
3984 # if test -f libPropList/libPropList.a; then
3985 # echo "using included libPropList"
3987 # echo "********** WARNING *************"
3988 # echo "libPropList is not installed in your system."
3989 # echo "You need to build it before building Window Maker (if you already"
3990 # echo "did that, remove config.cache and rerun configure)."
3991 # echo "Please read the INSTALL file for detailed instructions."
3992 # echo "Press <Return> to continue configuring Window Maker or"
3993 # echo "type b and <Return> to build it now."
3995 # if test "$foo" = b; then
3997 # echo "Building libPropList..."
3999 # if test ! -d libPropList; then
4000 # gzip -d -c libPropList.tar.gz | tar xf -
4003 # if (cd libPropList; ./configure); then
4004 # if (cd libPropList; make); then
4008 # if test "$ok" = no; then
4009 # echo "********** WARNING **********"
4010 # echo "An error occurred while building libPropList"
4011 # echo "Please build it manually."
4012 # echo "Press <Return> to continue."
4016 # echo "resuming Window Maker configuration..."
4022 #AC_SUBST(LIBPL_LIBS)
4023 #AC_SUBST(LIBPL_INC_PATH)
4026 # Check whether --enable-debug or --disable-debug was given.
4027 if test "${enable_debug+set}" = set; then
4028 enableval
="$enable_debug"
4035 if test "$enable_debug" = yes; then
4037 # Efence makes things too slow. Add it by hand in the Makefiles
4038 # if it is really needed.
4039 # AC_CHECK_LIB(efence, malloc, LIBS="$LIBS -lefence")
4044 # Check whether --enable-sound or --disable-sound was given.
4045 if test "${enable_sound+set}" = set; then
4046 enableval
="$enable_sound"
4052 if test "$enable_sound" = yes; then
4053 SOUND
="#define WMSOUND"
4055 SOUND
="#undef WMSOUND"
4060 # AC_PREFIX_PROGRAM(wmaker)
4062 if test "${prefix}" = "NONE"; then
4065 if test "${exec_prefix}" = "NONE"; then
4066 exec_prefix
="${prefix}"
4069 # Check whether --with-pixmapdir or --without-pixmapdir was given.
4070 if test "${with_pixmapdir+set}" = set; then
4071 withval
="$with_pixmapdir"
4076 if test "x$with_pixmapdir" != "x"; then
4077 pixmapdir
=$with_pixmapdir
4079 pixmapdir
="${datadir}/pixmaps"
4088 # Check whether --with-appspath or --without-appspath was given.
4089 if test "${with_appspath+set}" = set; then
4090 withval
="$with_appspath"
4095 if test "x$appspath" = "x"; then
4096 gnustepdir
="${prefix}/GNUstep"
4098 if test "x$GNUSTEP_LOCAL_ROOT" != "x" ; then
4099 gnustepdir
=`echo "$GNUSTEP_LOCAL_ROOT" | sed -e "s%${prefix}%\${prefix}%"`
4102 appspath
=$gnustepdir/Apps
4105 wprefsdir
=$appspath/WPrefs.app
4110 # Check whether --enable-single-icon or --disable-single-icon was given.
4111 if test "${enable_single_icon+set}" = set; then
4112 enableval
="$enable_single_icon"
4113 if test "$enableval" = yes; then
4114 REDUCE_APPICONS
="#define REDUCE_APPICONS"
4116 REDUCE_APPICONS
="#undef REDUCE_APPICONS"
4119 REDUCE_APPICONS
="#undef REDUCE_APPICONS"
4125 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4126 echo "configure:4127: checking for sys/wait.h that is POSIX.1 compatible" >&5
4127 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
4128 echo $ac_n "(cached) $ac_c" 1>&6
4130 cat > conftest.
$ac_ext <<EOF
4131 #line 4132 "configure"
4132 #include "confdefs.h"
4133 #include <sys/types.h>
4134 #include <sys/wait.h>
4136 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4139 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4144 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4147 if { (eval echo configure
:4148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4149 ac_cv_header_sys_wait_h
=yes
4151 echo "configure: failed program was:" >&5
4152 cat conftest.
$ac_ext >&5
4154 ac_cv_header_sys_wait_h
=no
4159 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4160 if test $ac_cv_header_sys_wait_h = yes; then
4161 cat >> confdefs.h
<<\EOF
4162 #define HAVE_SYS_WAIT_H 1
4167 for ac_hdr
in fcntl.h limits.h sys
/ioctl.h sys
/time.h sys
/types.h libintl.h sys
/select.h
4169 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4170 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4171 echo "configure:4172: checking for $ac_hdr" >&5
4172 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4173 echo $ac_n "(cached) $ac_c" 1>&6
4175 cat > conftest.
$ac_ext <<EOF
4176 #line 4177 "configure"
4177 #include "confdefs.h"
4180 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4181 { (eval echo configure
:4182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4182 ac_err
=`grep -v '^ *+' conftest.out`
4183 if test -z "$ac_err"; then
4185 eval "ac_cv_header_$ac_safe=yes"
4188 echo "configure: failed program was:" >&5
4189 cat conftest.
$ac_ext >&5
4191 eval "ac_cv_header_$ac_safe=no"
4195 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4196 echo "$ac_t""yes" 1>&6
4197 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4198 cat >> confdefs.h
<<EOF
4199 #define $ac_tr_hdr 1
4203 echo "$ac_t""no" 1>&6
4210 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
4211 echo "configure:4212: checking for sys_siglist declaration in signal.h or unistd.h" >&5
4212 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
4213 echo $ac_n "(cached) $ac_c" 1>&6
4215 cat > conftest.
$ac_ext <<EOF
4216 #line 4217 "configure"
4217 #include "confdefs.h"
4218 #include <sys/types.h>
4220 /* NetBSD declares sys_siglist in unistd.h. */
4221 #ifdef HAVE_UNISTD_H
4225 char *msg = *(sys_siglist + 1);
4228 if { (eval echo configure
:4229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4230 ac_cv_decl_sys_siglist
=yes
4232 echo "configure: failed program was:" >&5
4233 cat conftest.
$ac_ext >&5
4235 ac_cv_decl_sys_siglist
=no
4240 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
4241 if test $ac_cv_decl_sys_siglist = yes; then
4242 cat >> confdefs.h
<<\EOF
4243 #define SYS_SIGLIST_DECLARED 1
4248 echo $ac_n "checking for working const""... $ac_c" 1>&6
4249 echo "configure:4250: checking for working const" >&5
4250 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4251 echo $ac_n "(cached) $ac_c" 1>&6
4253 cat > conftest.
$ac_ext <<EOF
4254 #line 4255 "configure"
4255 #include "confdefs.h"
4259 /* Ultrix mips cc rejects this. */
4260 typedef int charset[2]; const charset x;
4261 /* SunOS 4.1.1 cc rejects this. */
4262 char const *const *ccp;
4264 /* NEC SVR4.0.2 mips cc rejects this. */
4265 struct point {int x, y;};
4266 static struct point const zero = {0,0};
4267 /* AIX XL C 1.02.0.0 rejects this.
4268 It does not let you subtract one const X* pointer from another in an arm
4269 of an if-expression whose if-part is not a constant expression */
4270 const char *g = "string";
4271 ccp = &g + (g ? g-g : 0);
4272 /* HPUX 7.0 cc rejects these. */
4275 ccp = (char const *const *) p;
4276 { /* SCO 3.2v4 cc rejects this. */
4278 char const *s = 0 ? (char *) 0 : (char const *) 0;
4282 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4284 const int *foo = &x[0];
4287 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4288 typedef const int *iptr;
4292 { /* AIX XL C 1.02.0.0 rejects this saying
4293 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4294 struct s { int j; const int *ap[3]; };
4295 struct s *b; b->j = 5;
4297 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4303 if { (eval echo configure
:4304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4307 echo "configure: failed program was:" >&5
4308 cat conftest.
$ac_ext >&5
4315 echo "$ac_t""$ac_cv_c_const" 1>&6
4316 if test $ac_cv_c_const = no
; then
4317 cat >> confdefs.h
<<\EOF
4323 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4324 echo "configure:4325: checking for ANSI C header files" >&5
4325 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4326 echo $ac_n "(cached) $ac_c" 1>&6
4328 cat > conftest.
$ac_ext <<EOF
4329 #line 4330 "configure"
4330 #include "confdefs.h"
4336 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4337 { (eval echo configure
:4338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4338 ac_err
=`grep -v '^ *+' conftest.out`
4339 if test -z "$ac_err"; then
4341 ac_cv_header_stdc
=yes
4344 echo "configure: failed program was:" >&5
4345 cat conftest.
$ac_ext >&5
4347 ac_cv_header_stdc
=no
4351 if test $ac_cv_header_stdc = yes; then
4352 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4353 cat > conftest.
$ac_ext <<EOF
4354 #line 4355 "configure"
4355 #include "confdefs.h"
4358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4359 egrep "memchr" >/dev
/null
2>&1; then
4363 ac_cv_header_stdc
=no
4369 if test $ac_cv_header_stdc = yes; then
4370 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4371 cat > conftest.
$ac_ext <<EOF
4372 #line 4373 "configure"
4373 #include "confdefs.h"
4376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4377 egrep "free" >/dev
/null
2>&1; then
4381 ac_cv_header_stdc
=no
4387 if test $ac_cv_header_stdc = yes; then
4388 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4389 if test "$cross_compiling" = yes; then
4392 cat > conftest.
$ac_ext <<EOF
4393 #line 4394 "configure"
4394 #include "confdefs.h"
4396 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4397 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4398 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4399 int main () { int i; for (i = 0; i < 256; i++)
4400 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4404 if { (eval echo configure
:4405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4408 echo "configure: failed program was:" >&5
4409 cat conftest.
$ac_ext >&5
4411 ac_cv_header_stdc
=no
4419 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4420 if test $ac_cv_header_stdc = yes; then
4421 cat >> confdefs.h
<<\EOF
4422 #define STDC_HEADERS 1
4427 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4428 echo "configure:4429: checking for size_t" >&5
4429 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4430 echo $ac_n "(cached) $ac_c" 1>&6
4432 cat > conftest.
$ac_ext <<EOF
4433 #line 4434 "configure"
4434 #include "confdefs.h"
4435 #include <sys/types.h>
4441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4442 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
4444 ac_cv_type_size_t
=yes
4447 ac_cv_type_size_t
=no
4452 echo "$ac_t""$ac_cv_type_size_t" 1>&6
4453 if test $ac_cv_type_size_t = no
; then
4454 cat >> confdefs.h
<<\EOF
4455 #define size_t unsigned
4460 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
4461 echo "configure:4462: checking for pid_t" >&5
4462 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
4463 echo $ac_n "(cached) $ac_c" 1>&6
4465 cat > conftest.
$ac_ext <<EOF
4466 #line 4467 "configure"
4467 #include "confdefs.h"
4468 #include <sys/types.h>
4474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4475 egrep "pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
4477 ac_cv_type_pid_t
=yes
4485 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
4486 if test $ac_cv_type_pid_t = no
; then
4487 cat >> confdefs.h
<<\EOF
4493 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4494 echo "configure:4495: checking whether time.h and sys/time.h may both be included" >&5
4495 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4496 echo $ac_n "(cached) $ac_c" 1>&6
4498 cat > conftest.
$ac_ext <<EOF
4499 #line 4500 "configure"
4500 #include "confdefs.h"
4501 #include <sys/types.h>
4502 #include <sys/time.h>
4508 if { (eval echo configure
:4509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4510 ac_cv_header_time
=yes
4512 echo "configure: failed program was:" >&5
4513 cat conftest.
$ac_ext >&5
4515 ac_cv_header_time
=no
4520 echo "$ac_t""$ac_cv_header_time" 1>&6
4521 if test $ac_cv_header_time = yes; then
4522 cat >> confdefs.h
<<\EOF
4523 #define TIME_WITH_SYS_TIME 1
4530 if test "$GCC" = "yes"; then
4532 # for i in $CFLAGS; do
4533 # if test "$i" != "-g" ; then
4534 # ceflagues="$ceflagues $i"
4537 # CFLAGS="$ceflagues -Wall -Wno-implicit-int -finline-functions"
4538 CFLAGS
="$CFLAGS -Wall -Wno-implicit-int -Wcast-align"
4544 #AC_ARG_ENABLE(shared,
4545 #[ --enable-shared build libraries as shared ], enable_shared=yes,
4548 if test "$enable_shared" = yes; then
4549 if test "$GCC" = yes; then
4551 LDSHARED
='$CC -shared'
4553 # find system name and corresponding cc options
4554 case `(uname -sr || echo unknown) 2>/dev/null` in
4556 _CFLAGS
="-fast -xcg89 -KPIC -R."
4562 _CFLAGS
="-ansi -rpath ."
4563 LDSHARED
='$CC -shared';;
4565 _CFLAGS
="-dy -KPIC "
4566 LDSHARED
='$CC -dy -KPIC -G';;
4570 SHAREDLIBS
='libz.sl';;
4573 LDSHARED
='$CC -shared';;
4577 echo $ac_n "checking for shared library support""... $ac_c" 1>&6
4578 echo "configure:4579: checking for shared library support" >&5
4582 int hello() { printf("hello\n"); }
4586 # we must test in two steps (cc then ld), required at least on SunOS 4.x
4587 if test "`($CC -c $_CFLAGS $test.c) 2>&1`" = "" &&
4588 test "`($LDSHARED -o $test.so $test.o) 2>&1`" = ""; then
4589 CFLAGS
="$CFLAGS $_CFLAGS"
4590 WRASTERLIB
='libwraster.so.$(WRASTER_VER)'
4591 WINGSLIB
='libWINGs.so.$(WINGS_VER)'
4592 echo "$ac_t""yes, building shared" 1>&6
4595 WRASTERLIB
='libwraster.a'
4596 WINGSLIB
='libWINGs.a'
4597 echo "$ac_t""no, building static" 1>&6
4599 rm -f $test.co
$test.so
4602 #AC_SUBST(WRASTER_VER)
4603 #AC_SUBST(WINGS_VER)
4604 #AC_SUBST(WRASTERLIB)
4605 # AC_SUBST(WINGSLIB)
4606 # AC_SUBST(LDSHARED)
4613 cat > confcache
<<\EOF
4614 # This file is a shell script that caches the results of configure
4615 # tests run on this system so they can be shared between configure
4616 # scripts and configure runs. It is not useful on other systems.
4617 # If it contains results you don't want to keep, you may remove or edit it.
4619 # By default, configure uses ./config.cache as the cache file,
4620 # creating it if it does not exist already. You can give configure
4621 # the --cache-file=FILE option to use a different cache file; that is
4622 # what configure does when it calls configure scripts in
4623 # subdirectories, so they share the cache.
4624 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4625 # config.status only pays attention to the cache file if you give it the
4626 # --recheck option to rerun configure.
4629 # The following way of writing the cache mishandles newlines in values,
4630 # but we know of no workaround that is simple, portable, and efficient.
4631 # So, don't put newlines in cache variables' values.
4632 # Ultrix sh set writes to stderr and can't be redirected directly,
4633 # and sets the high bit in the cache file unless we assign to the vars.
4635 case `(ac_space=' '; set) 2>&1` in
4637 # `set' does not quote correctly, so add quotes (double-quote substitution
4638 # turns \\\\ into \\, and sed turns \\ into \).
4640 -e "s/'/'\\\\''/g" \
4641 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4644 # `set' quotes correctly as required by POSIX, so do not add quotes.
4645 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4648 if cmp -s $cache_file confcache
; then
4651 if test -w $cache_file; then
4652 echo "updating cache $cache_file"
4653 cat confcache
> $cache_file
4655 echo "not updating unwritable cache $cache_file"
4660 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4662 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4663 # Let make expand exec_prefix.
4664 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4666 # Any assignment to VPATH causes Sun make to only execute
4667 # the first set of double-colon rules, so remove it if not needed.
4668 # If there is a colon in the path, we need to keep it.
4669 if test "x$srcdir" = x.
; then
4670 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4673 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4675 DEFS
=-DHAVE_CONFIG_H
4677 # Without the "./", some shells look in PATH for config.status.
4678 : ${CONFIG_STATUS=./config.status}
4680 echo creating
$CONFIG_STATUS
4681 rm -f $CONFIG_STATUS
4682 cat > $CONFIG_STATUS <<EOF
4684 # Generated automatically by configure.
4685 # Run this file to recreate the current configuration.
4686 # This directory was configured as follows,
4687 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4689 # $0 $ac_configure_args
4691 # Compiler output produced by configure, useful for debugging
4692 # configure, is in ./config.log if it exists.
4694 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4697 case "\$ac_option" in
4698 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4699 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4700 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4701 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4702 echo "$CONFIG_STATUS generated by autoconf version 2.12"
4704 -help | --help | --hel | --he | --h)
4705 echo "\$ac_cs_usage"; exit 0 ;;
4706 *) echo "\$ac_cs_usage"; exit 1 ;;
4710 ac_given_srcdir=$srcdir
4711 ac_given_INSTALL="$INSTALL"
4713 trap 'rm -fr `echo "Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
4714 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
4715 wrlib/Makefile doc/Makefile WindowMaker/Makefile \
4716 WindowMaker/Defaults/Makefile WindowMaker/Styles/Makefile \
4717 WindowMaker/Themes/Makefile WindowMaker/Backgrounds/Makefile \
4718 WindowMaker/Pixmaps/Makefile WindowMaker/Icons/Makefile \
4719 WindowMaker/IconSets/Makefile \
4720 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
4721 WPrefs.app/po/Makefile src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4723 cat >> $CONFIG_STATUS <<EOF
4725 # Protect against being on the right side of a sed subst in config.status.
4726 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4727 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4730 s%@CFLAGS@%$CFLAGS%g
4731 s%@CPPFLAGS@%$CPPFLAGS%g
4732 s%@CXXFLAGS@%$CXXFLAGS%g
4734 s%@LDFLAGS@%$LDFLAGS%g
4736 s%@exec_prefix@%$exec_prefix%g
4737 s%@prefix@%$prefix%g
4738 s%@program_transform_name@%$program_transform_name%g
4739 s%@bindir@%$bindir%g
4740 s%@sbindir@%$sbindir%g
4741 s%@libexecdir@%$libexecdir%g
4742 s%@datadir@%$datadir%g
4743 s%@sysconfdir@%$sysconfdir%g
4744 s%@sharedstatedir@%$sharedstatedir%g
4745 s%@localstatedir@%$localstatedir%g
4746 s%@libdir@%$libdir%g
4747 s%@includedir@%$includedir%g
4748 s%@oldincludedir@%$oldincludedir%g
4749 s%@infodir@%$infodir%g
4750 s%@mandir@%$mandir%g
4751 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4752 s%@INSTALL_DATA@%$INSTALL_DATA%g
4753 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4754 s%@PACKAGE@%$PACKAGE%g
4755 s%@VERSION@%$VERSION%g
4756 s%@ACLOCAL@%$ACLOCAL%g
4757 s%@AUTOCONF@%$AUTOCONF%g
4758 s%@AUTOMAKE@%$AUTOMAKE%g
4759 s%@AUTOHEADER@%$AUTOHEADER%g
4760 s%@MAKEINFO@%$MAKEINFO%g
4761 s%@SET_MAKE@%$SET_MAKE%g
4762 s%@subdirs@%$subdirs%g
4764 s%@host_alias@%$host_alias%g
4765 s%@host_cpu@%$host_cpu%g
4766 s%@host_vendor@%$host_vendor%g
4767 s%@host_os@%$host_os%g
4769 s%@RANLIB@%$RANLIB%g
4772 s%@ALLOCA@%$ALLOCA%g
4773 s%@CPP_PATH@%$CPP_PATH%g
4774 s%@XGETTEXT@%$XGETTEXT%g
4775 s%@I18N_MB@%$I18N_MB%g
4777 s%@INTLIBS@%$INTLIBS%g
4778 s%@NLSDIR@%$NLSDIR%g
4779 s%@MOFILES@%$MOFILES%g
4780 s%@WPMOFILES@%$WPMOFILES%g
4781 s%@X_CFLAGS@%$X_CFLAGS%g
4782 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
4783 s%@X_LIBS@%$X_LIBS%g
4784 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
4785 s%@X_LOCALE@%$X_LOCALE%g
4789 s%@XCFLAGS@%$XCFLAGS%g
4790 s%@XLFLAGS@%$XLFLAGS%g
4791 s%@GFXFLAGS@%$GFXFLAGS%g
4792 s%@GFXLIBS@%$GFXLIBS%g
4793 s%@ICONEXT@%$ICONEXT%g
4794 s%@DFLAGS@%$DFLAGS%g
4796 s%@pixmapdir@%$pixmapdir%g
4797 s%@wprefsdir@%$wprefsdir%g
4798 s%@REDUCE_APPICONS@%$REDUCE_APPICONS%g
4803 cat >> $CONFIG_STATUS <<\EOF
4805 # Split the substitutions into bite-sized pieces for seds with
4806 # small command number limits, like on Digital OSF/1 and HP-UX.
4807 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4808 ac_file
=1 # Number of current file.
4809 ac_beg
=1 # First line for current file.
4810 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4813 while $ac_more_lines; do
4814 if test $ac_beg -gt 1; then
4815 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4817 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4819 if test ! -s conftest.s
$ac_file; then
4821 rm -f conftest.s
$ac_file
4823 if test -z "$ac_sed_cmds"; then
4824 ac_sed_cmds
="sed -f conftest.s$ac_file"
4826 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4828 ac_file
=`expr $ac_file + 1`
4830 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4833 if test -z "$ac_sed_cmds"; then
4838 cat >> $CONFIG_STATUS <<EOF
4840 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
4841 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
4842 wrlib/Makefile doc/Makefile WindowMaker/Makefile \
4843 WindowMaker/Defaults/Makefile WindowMaker/Styles/Makefile \
4844 WindowMaker/Themes/Makefile WindowMaker/Backgrounds/Makefile \
4845 WindowMaker/Pixmaps/Makefile WindowMaker/Icons/Makefile \
4846 WindowMaker/IconSets/Makefile \
4847 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
4848 WPrefs.app/po/Makefile "}
4850 cat >> $CONFIG_STATUS <<\EOF
4851 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4852 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4854 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4855 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4856 *) ac_file_in
="${ac_file}.in" ;;
4859 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4861 # Remove last slash and all that follows it. Not all systems have dirname.
4862 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4863 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4864 # The file is in a subdirectory.
4865 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4866 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4867 # A "../" for each directory in $ac_dir_suffix.
4868 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4870 ac_dir_suffix
= ac_dots
=
4873 case "$ac_given_srcdir" in
4875 if test -z "$ac_dots"; then top_srcdir
=.
4876 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4877 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4879 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4880 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4883 case "$ac_given_INSTALL" in
4884 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4885 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4888 echo creating
"$ac_file"
4890 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4892 *Makefile
*) ac_comsub
="1i\\
4893 # $configure_input" ;;
4897 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4899 s%@configure_input@%$configure_input%g
4900 s%@srcdir@%$srcdir%g
4901 s%@top_srcdir@%$top_srcdir%g
4902 s%@INSTALL@%$INSTALL%g
4903 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4907 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4908 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4910 # ac_d sets the value in "#define NAME VALUE" lines.
4911 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4912 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4915 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4916 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4917 ac_uB
='\([ ]\)%\1#\2define\3'
4920 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4921 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4922 ac_eB
='$%\1#\2define\3'
4926 if test "${CONFIG_HEADERS+set}" != set; then
4928 cat >> $CONFIG_STATUS <<EOF
4929 CONFIG_HEADERS="src/config.h"
4931 cat >> $CONFIG_STATUS <<\EOF
4933 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4934 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4936 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4937 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4938 *) ac_file_in
="${ac_file}.in" ;;
4941 echo creating
$ac_file
4943 rm -f conftest.frag conftest.
in conftest.out
4944 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4945 cat $ac_file_inputs > conftest.
in
4949 # Transform confdefs.h into a sed script conftest.vals that substitutes
4950 # the proper values into config.h.in to produce config.h. And first:
4951 # Protect against being on the right side of a sed subst in config.status.
4952 # Protect against being in an unquoted here document in config.status.
4954 cat > conftest.hdr
<<\EOF
4957 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4961 sed -n -f conftest.hdr confdefs.h > conftest.vals
4964 # This sed command replaces #undef with comments. This is necessary, for
4965 # example, in the case of _POSIX_SOURCE, which is predefined and required
4966 # on some systems where configure will not decide to define it.
4967 cat >> conftest.vals <<\EOF
4968 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4971 # Break up conftest.vals because some shells have a limit on
4972 # the size of here documents, and old seds have small limits too.
4977 ac_lines=`grep -c . conftest.vals
`
4978 # grep -c gives empty output for an empty file on some AIX systems.
4979 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4980 # Write a limited-size here document to conftest.frag.
4981 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4982 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4984 sed -f conftest.frag conftest.in > conftest.out
4986 mv conftest.out conftest.in
4988 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4990 mv conftest.tail conftest.vals
4994 cat >> $CONFIG_STATUS <<\EOF
4995 rm -f conftest.frag conftest.h
4996 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4997 cat conftest.in >> conftest.h
4999 if cmp -s $ac_file conftest.h 2>/dev/null; then
5000 echo "$ac_file is unchanged"
5003 # Remove last slash and all that follows it. Not all systems have dirname.
5004 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5005 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5006 # The file is in a subdirectory.
5007 test ! -d "$ac_dir" && mkdir "$ac_dir"
5010 mv conftest.h $ac_file
5015 cat >> $CONFIG_STATUS <<EOF
5019 cat >> $CONFIG_STATUS <<\EOF
5020 test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h
5024 chmod +x $CONFIG_STATUS
5025 rm -fr confdefs* $ac_clean_files
5026 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5028 if test "$no_recursion" != yes; then
5030 # Remove --cache-file and --srcdir arguments so they do not pile up.
5031 ac_sub_configure_args=
5033 for ac_arg in $ac_configure_args; do
5034 if test -n "$ac_prev"; then
5039 -cache-file | --cache-file | --cache-fil | --cache-fi \
5040 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
5041 ac_prev=cache_file ;;
5042 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
5043 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
5045 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
5047 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5049 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
5053 for ac_config_dir in libPropList; do
5055 # Do not complain, so a configure script can configure whichever
5056 # parts of a large source tree are present.
5057 if test ! -d $srcdir/$ac_config_dir; then
5061 echo configuring in $ac_config_dir
5066 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
5068 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
5076 # A "../" for each directory in /$ac_config_dir.
5077 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
5080 .) # No --srcdir option. We are building in place.
5081 ac_sub_srcdir=$srcdir ;;
5082 /*) # Absolute path.
5083 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
5085 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
5088 # Check for guested configure; otherwise get Cygnus style configure.
5089 if test -f $ac_sub_srcdir/configure; then
5090 ac_sub_configure=$ac_sub_srcdir/configure
5091 elif test -f $ac_sub_srcdir/configure.in; then
5092 ac_sub_configure=$ac_configure
5094 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
5098 # The recursion is here.
5099 if test -n "$ac_sub_configure"; then
5101 # Make the cache file name correct relative to the subdirectory.
5102 case "$cache_file" in
5103 /*) ac_sub_cache_file=$cache_file ;;
5105 ac_sub_cache_file="$ac_dots$cache_file" ;;
5107 case "$ac_given_INSTALL" in
5108 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5109 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5112 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
5113 # The eval makes quoting arguments work.
5114 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
5117 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
5129 echo "WFLAGS=\"$LIBPL_INC_PATH -I$prefix/include\"" > WINGs-flags
5130 echo "WLIBS=\"-L$exec_prefix/lib -lWINGs -lwraster $LIBPL_LIBS $GFXLIBS -lm\""\
5135 supported_gfx="$supported_gfx PPM (built-in)"
5138 echo "Window Maker was configured as follows:"
5140 echo "Installation path prefix: $prefix"
5141 echo "Installation path prefix for binaries: $exec_prefix"
5142 echo "Installation path for WPrefs.app: $wprefsdir"
5143 echo "Graphic format libraries: $supported_gfx"
5144 if test "x$MOFILES" = "x"; then
5149 echo "Translated message files to install: $mof"
5150 if test "x$MOFILES" != "x"; then
5151 echo "Installation path of translated messages: $NLSDIR"