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 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
17 --enable-shared build shared libraries [default=yes]"
19 --enable-static build static libraries [default=yes]"
21 --enable-kanji multibyte character support (kanji, Korean etc.)"
23 --enable-modelock XKB keyboard language status support"
25 --with-nlsdir=PATH specify where the locale stuff should go "
27 --enable-gnome enable stuff needed for GNOME "
29 --enable-kde enable support for KDE window manager (kwm) hints "
31 --enable-lite disable stuff duplicated in KDE/GNOME "
33 --with-x use the X Window System"
35 --disable-shape disable shaped window extension support"
37 --disable-shm disable usage of MIT-SHM extension"
39 --with-gfx-libs pass compiler flags to look for gfx libraries"
41 --with-gfx-incs pass compiler flags to look for gfx header files"
43 --disable-xpm disable use of XPM pixmaps through libXpm"
45 --disable-png disable PNG support through libpng"
47 --disable-jpeg disable JPEG support through libjpeg"
49 --disable-gif disable GIF support through libgif or libungif"
51 --disable-tiff disable use of TIFF images through libtiff"
53 --enable-debug enable debugging "
55 --disable-sound disable sound support "
57 --with-pixmapdir=PATH specify where pixmaps are located [DATADIR/pixmaps]"
59 --with-appspath=PATH specify the path of the GNUstep applications
62 --enable-single-icon use single application icon per WM_INSTANCE+WM_CLASS
65 # Initialize some variables set by options.
66 # The variables have the same names as the options, with
67 # dashes changed to underlines.
69 cache_file
=.
/config.cache
78 program_transform_name
=s
,x
,x
,
86 bindir
='${exec_prefix}/bin'
87 sbindir
='${exec_prefix}/sbin'
88 libexecdir
='${exec_prefix}/libexec'
89 datadir
='${prefix}/share'
90 sysconfdir
='${prefix}/etc'
91 sharedstatedir
='${prefix}/com'
92 localstatedir
='${prefix}/var'
93 libdir
='${exec_prefix}/lib'
94 includedir
='${prefix}/include'
95 oldincludedir
='/usr/include'
96 infodir
='${prefix}/info'
97 mandir
='${prefix}/man'
99 # Initialize some other variables.
102 # Maximum number of lines to put in a shell here document.
109 # If the previous option needs an argument, assign it.
110 if test -n "$ac_prev"; then
111 eval "$ac_prev=\$ac_option"
117 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
121 # Accept the important Cygnus configure options, so we can diagnose typos.
125 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
127 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
128 bindir
="$ac_optarg" ;;
130 -build |
--build |
--buil |
--bui |
--bu)
132 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
133 build
="$ac_optarg" ;;
135 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
136 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
137 ac_prev
=cache_file
;;
138 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
139 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
140 cache_file
="$ac_optarg" ;;
142 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
144 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
146 datadir
="$ac_optarg" ;;
148 -disable-* |
--disable-*)
149 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
150 # Reject names that are not valid shell variable names.
151 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
152 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
154 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
155 eval "enable_${ac_feature}=no" ;;
157 -enable-* |
--enable-*)
158 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
159 # Reject names that are not valid shell variable names.
160 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
161 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
163 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
168 eval "enable_${ac_feature}='$ac_optarg'" ;;
170 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
171 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
172 |
--exec |
--exe |
--ex)
173 ac_prev
=exec_prefix
;;
174 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
175 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
176 |
--exec=* |
--exe=* |
--ex=*)
177 exec_prefix
="$ac_optarg" ;;
179 -gas |
--gas |
--ga |
--g)
180 # Obsolete; use --with-gas.
183 -help |
--help |
--hel |
--he)
184 # Omit some internal or obsolete options to make the list less imposing.
185 # This message is too long to be a string in the A/UX 3.1 sh.
187 Usage: configure [options] [host]
188 Options: [defaults in brackets after descriptions]
190 --cache-file=FILE cache test results in FILE
191 --help print this message
192 --no-create do not create output files
193 --quiet, --silent do not print \`checking...' messages
194 --version print the version of autoconf that created configure
195 Directory and file names:
196 --prefix=PREFIX install architecture-independent files in PREFIX
198 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
200 --bindir=DIR user executables in DIR [EPREFIX/bin]
201 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
202 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
203 --datadir=DIR read-only architecture-independent data in DIR
205 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
206 --sharedstatedir=DIR modifiable architecture-independent data in DIR
208 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
209 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
210 --includedir=DIR C header files in DIR [PREFIX/include]
211 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
212 --infodir=DIR info documentation in DIR [PREFIX/info]
213 --mandir=DIR man documentation in DIR [PREFIX/man]
214 --srcdir=DIR find the sources in DIR [configure dir or ..]
215 --program-prefix=PREFIX prepend PREFIX to installed program names
216 --program-suffix=SUFFIX append SUFFIX to installed program names
217 --program-transform-name=PROGRAM
218 run sed PROGRAM on installed program names
222 --build=BUILD configure for building on BUILD [BUILD=HOST]
223 --host=HOST configure for HOST [guessed]
224 --target=TARGET configure for TARGET [TARGET=HOST]
225 Features and packages:
226 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
227 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
228 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
229 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
230 --x-includes=DIR X include files are in DIR
231 --x-libraries=DIR X library files are in DIR
233 if test -n "$ac_help"; then
234 echo "--enable and --with options recognized:$ac_help"
238 -host |
--host |
--hos |
--ho)
240 -host=* |
--host=* |
--hos=* |
--ho=*)
243 -includedir |
--includedir |
--includedi |
--included |
--include \
244 |
--includ |
--inclu |
--incl |
--inc)
245 ac_prev
=includedir
;;
246 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
247 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
248 includedir
="$ac_optarg" ;;
250 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
252 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
253 infodir
="$ac_optarg" ;;
255 -libdir |
--libdir |
--libdi |
--libd)
257 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
258 libdir
="$ac_optarg" ;;
260 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
261 |
--libexe |
--libex |
--libe)
262 ac_prev
=libexecdir
;;
263 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
264 |
--libexe=* |
--libex=* |
--libe=*)
265 libexecdir
="$ac_optarg" ;;
267 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
268 |
--localstate |
--localstat |
--localsta |
--localst \
269 |
--locals |
--local |
--loca |
--loc |
--lo)
270 ac_prev
=localstatedir
;;
271 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
272 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
273 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
274 localstatedir
="$ac_optarg" ;;
276 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
278 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
279 mandir
="$ac_optarg" ;;
282 # Obsolete; use --without-fp.
285 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
289 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
290 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
293 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
294 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
295 |
--oldin |
--oldi |
--old |
--ol |
--o)
296 ac_prev
=oldincludedir
;;
297 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
298 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
299 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
300 oldincludedir
="$ac_optarg" ;;
302 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
304 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
305 prefix
="$ac_optarg" ;;
307 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
308 |
--program-pre |
--program-pr |
--program-p)
309 ac_prev
=program_prefix
;;
310 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
311 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
312 program_prefix
="$ac_optarg" ;;
314 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
315 |
--program-suf |
--program-su |
--program-s)
316 ac_prev
=program_suffix
;;
317 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
318 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
319 program_suffix
="$ac_optarg" ;;
321 -program-transform-name |
--program-transform-name \
322 |
--program-transform-nam |
--program-transform-na \
323 |
--program-transform-n |
--program-transform- \
324 |
--program-transform |
--program-transfor \
325 |
--program-transfo |
--program-transf \
326 |
--program-trans |
--program-tran \
327 |
--progr-tra |
--program-tr |
--program-t)
328 ac_prev
=program_transform_name
;;
329 -program-transform-name=* |
--program-transform-name=* \
330 |
--program-transform-nam=* |
--program-transform-na=* \
331 |
--program-transform-n=* |
--program-transform-=* \
332 |
--program-transform=* |
--program-transfor=* \
333 |
--program-transfo=* |
--program-transf=* \
334 |
--program-trans=* |
--program-tran=* \
335 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
336 program_transform_name
="$ac_optarg" ;;
338 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
339 |
-silent |
--silent |
--silen |
--sile |
--sil)
342 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
344 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
346 sbindir
="$ac_optarg" ;;
348 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
349 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
350 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
352 ac_prev
=sharedstatedir
;;
353 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
354 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
355 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
357 sharedstatedir
="$ac_optarg" ;;
359 -site |
--site |
--sit)
361 -site=* |
--site=* |
--sit=*)
364 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
366 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
367 srcdir
="$ac_optarg" ;;
369 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
370 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
371 ac_prev
=sysconfdir
;;
372 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
373 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
374 sysconfdir
="$ac_optarg" ;;
376 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
378 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
379 target
="$ac_optarg" ;;
381 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
384 -version |
--version |
--versio |
--versi |
--vers)
385 echo "configure generated by autoconf version 2.12"
389 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
390 # Reject names that are not valid shell variable names.
391 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
392 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
394 ac_package
=`echo $ac_package| sed 's/-/_/g'`
399 eval "with_${ac_package}='$ac_optarg'" ;;
401 -without-* |
--without-*)
402 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
403 # Reject names that are not valid shell variable names.
404 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
405 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
407 ac_package
=`echo $ac_package| sed 's/-/_/g'`
408 eval "with_${ac_package}=no" ;;
411 # Obsolete; use --with-x.
414 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
415 |
--x-incl |
--x-inc |
--x-in |
--x-i)
416 ac_prev
=x_includes
;;
417 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
418 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
419 x_includes
="$ac_optarg" ;;
421 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
422 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
423 ac_prev
=x_libraries
;;
424 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
425 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
426 x_libraries
="$ac_optarg" ;;
428 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
432 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
433 echo "configure: warning: $ac_option: invalid host type" 1>&2
435 if test "x$nonopt" != xNONE
; then
436 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
444 if test -n "$ac_prev"; then
445 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
448 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
450 # File descriptor usage:
453 # 2 errors and warnings
454 # 3 some systems may open it to /dev/tty
455 # 4 used on the Kubota Titan
456 # 6 checking for... messages and results
457 # 5 compiler messages saved in config.log
458 if test "$silent" = yes; then
466 This file contains any messages produced by compilers while
467 running configure, to aid debugging if configure makes a mistake.
470 # Strip out --no-create and --no-recursion so they do not pile up.
471 # Also quote any args containing shell metacharacters.
476 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
477 |
--no-cr |
--no-c) ;;
478 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
479 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
480 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
481 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
482 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
487 # Only set these to C if already set. These must not be set unconditionally
488 # because not all systems understand e.g. LANG=C (notably SCO).
489 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
490 # Non-C LC_CTYPE values break the ctype check.
491 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
492 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
493 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
494 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
496 # confdefs.h avoids OS command line length limits that DEFS can exceed.
497 rm -rf conftest
* confdefs.h
498 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
501 # A filename unique to this package, relative to the directory that
502 # configure is in, which we can look for to find out if srcdir is correct.
503 ac_unique_file
=src
/WindowMaker.h
505 # Find the source files, if location was not specified.
506 if test -z "$srcdir"; then
507 ac_srcdir_defaulted
=yes
508 # Try the directory containing this script, then its parent.
510 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
511 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
513 if test ! -r $srcdir/$ac_unique_file; then
517 ac_srcdir_defaulted
=no
519 if test ! -r $srcdir/$ac_unique_file; then
520 if test "$ac_srcdir_defaulted" = yes; then
521 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
523 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
526 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
528 # Prefer explicitly selected file to automatically selected ones.
529 if test -z "$CONFIG_SITE"; then
530 if test "x$prefix" != xNONE
; then
531 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
533 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
536 for ac_site_file
in $CONFIG_SITE; do
537 if test -r "$ac_site_file"; then
538 echo "loading site script $ac_site_file"
543 if test -r "$cache_file"; then
544 echo "loading cache $cache_file"
547 echo "creating cache $cache_file"
552 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
553 ac_cpp
='$CPP $CPPFLAGS'
554 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
555 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
556 cross_compiling
=$ac_cv_prog_cc_cross
558 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
559 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
560 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
567 ac_n
= ac_c
='\c' ac_t
=
573 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
574 if test -f $ac_dir/install-sh
; then
576 ac_install_sh
="$ac_aux_dir/install-sh -c"
578 elif test -f $ac_dir/install.sh
; then
580 ac_install_sh
="$ac_aux_dir/install.sh -c"
584 if test -z "$ac_aux_dir"; then
585 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
587 ac_config_guess
=$ac_aux_dir/config.guess
588 ac_config_sub
=$ac_aux_dir/config.sub
589 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
591 # Find a good install program. We prefer a C program (faster),
592 # so one script is as good as another. But avoid the broken or
593 # incompatible versions:
594 # SysV /etc/install, /usr/sbin/install
595 # SunOS /usr/etc/install
598 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
599 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
600 # ./install, which can be erroneously created by make from ./install.sh.
601 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
602 echo "configure:603: checking for a BSD compatible install" >&5
603 if test -z "$INSTALL"; then
604 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
605 echo $ac_n "(cached) $ac_c" 1>&6
607 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
608 for ac_dir
in $PATH; do
609 # Account for people who put trailing slashes in PATH elements.
611 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
613 # OSF1 and SCO ODT 3.0 have their own names for install.
614 for ac_prog
in ginstall installbsd scoinst
install; do
615 if test -f $ac_dir/$ac_prog; then
616 if test $ac_prog = install &&
617 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
618 # AIX install. It has an incompatible calling convention.
619 # OSF/1 installbsd also uses dspmsg, but is usable.
622 ac_cv_path_install
="$ac_dir/$ac_prog -c"
633 if test "${ac_cv_path_install+set}" = set; then
634 INSTALL
="$ac_cv_path_install"
636 # As a last resort, use the slow shell script. We don't cache a
637 # path for INSTALL within a source directory, because that will
638 # break other packages using the cache if that directory is
639 # removed, or if the path is relative.
640 INSTALL
="$ac_install_sh"
643 echo "$ac_t""$INSTALL" 1>&6
645 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
646 # It thinks the first close brace ends the variable substitution.
647 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
649 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
652 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
654 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
655 echo "configure:656: checking whether build environment is sane" >&5
658 echo timestamp
> conftestfile
659 # Do `set' in a subshell so we don't clobber the current shell's
660 # arguments. Must try -L first in case configure is actually a
661 # symlink; some systems play weird games with the mod time of symlinks
662 # (eg FreeBSD returns the mod time of the symlink's containing
665 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
666 if test "$*" = "X"; then
668 set X
`ls -t $srcdir/configure conftestfile`
670 if test "$*" != "X $srcdir/configure conftestfile" \
671 && test "$*" != "X conftestfile $srcdir/configure"; then
673 # If neither matched, then we have a broken ls. This can happen
674 # if, for instance, CONFIG_SHELL is bash and it inherits a
675 # broken ls alias from the environment. This has actually
676 # happened. Such a system could not be considered "sane".
677 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
678 alias in your environment" 1>&2; exit 1; }
681 test "$2" = conftestfile
687 { echo "configure: error: newly created file is older than distributed files!
688 Check your system clock" 1>&2; exit 1; }
691 echo "$ac_t""yes" 1>&6
692 if test "$program_transform_name" = s
,x
,x
,; then
693 program_transform_name
=
695 # Double any \ or $. echo might interpret backslashes.
696 cat <<\EOF_SED
> conftestsed
697 s
,\\,\\\\,g
; s
,\$
,$$
,g
699 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
702 test "$program_prefix" != NONE
&&
703 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
704 # Use a double $ so make ignores it.
705 test "$program_suffix" != NONE
&&
706 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
708 # sed with no file args requires a program.
709 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
711 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
712 echo "configure:713: checking whether ${MAKE-make} sets \${MAKE}" >&5
713 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
714 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
715 echo $ac_n "(cached) $ac_c" 1>&6
717 cat > conftestmake
<<\EOF
719 @
echo 'ac_maketemp="${MAKE}"'
721 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
722 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
723 if test -n "$ac_maketemp"; then
724 eval ac_cv_prog_make_
${ac_make}_set
=yes
726 eval ac_cv_prog_make_
${ac_make}_set
=no
730 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
731 echo "$ac_t""yes" 1>&6
734 echo "$ac_t""no" 1>&6
735 SET_MAKE
="MAKE=${MAKE-make}"
743 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
744 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
746 cat >> confdefs.h
<<EOF
747 #define PACKAGE "$PACKAGE"
750 cat >> confdefs.h
<<EOF
751 #define VERSION "$VERSION"
756 missing_dir
=`cd $ac_aux_dir && pwd`
757 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
758 echo "configure:759: checking for working aclocal" >&5
759 # Run test in a subshell; some versions of sh will print an error if
760 # an executable is not found, even if stderr is redirected.
761 # Redirect stdin to placate older versions of autoconf. Sigh.
762 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
764 echo "$ac_t""found" 1>&6
766 ACLOCAL
="$missing_dir/missing aclocal"
767 echo "$ac_t""missing" 1>&6
770 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
771 echo "configure:772: checking for working autoconf" >&5
772 # Run test in a subshell; some versions of sh will print an error if
773 # an executable is not found, even if stderr is redirected.
774 # Redirect stdin to placate older versions of autoconf. Sigh.
775 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
777 echo "$ac_t""found" 1>&6
779 AUTOCONF
="$missing_dir/missing autoconf"
780 echo "$ac_t""missing" 1>&6
783 echo $ac_n "checking for working automake""... $ac_c" 1>&6
784 echo "configure:785: checking for working automake" >&5
785 # Run test in a subshell; some versions of sh will print an error if
786 # an executable is not found, even if stderr is redirected.
787 # Redirect stdin to placate older versions of autoconf. Sigh.
788 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
790 echo "$ac_t""found" 1>&6
792 AUTOMAKE
="$missing_dir/missing automake"
793 echo "$ac_t""missing" 1>&6
796 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
797 echo "configure:798: checking for working autoheader" >&5
798 # Run test in a subshell; some versions of sh will print an error if
799 # an executable is not found, even if stderr is redirected.
800 # Redirect stdin to placate older versions of autoconf. Sigh.
801 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
802 AUTOHEADER
=autoheader
803 echo "$ac_t""found" 1>&6
805 AUTOHEADER
="$missing_dir/missing autoheader"
806 echo "$ac_t""missing" 1>&6
809 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
810 echo "configure:811: checking for working makeinfo" >&5
811 # Run test in a subshell; some versions of sh will print an error if
812 # an executable is not found, even if stderr is redirected.
813 # Redirect stdin to placate older versions of autoconf. Sigh.
814 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
816 echo "$ac_t""found" 1>&6
818 MAKEINFO
="$missing_dir/missing makeinfo"
819 echo "$ac_t""missing" 1>&6
825 # Make sure we can run config.sub.
826 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
827 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
830 echo $ac_n "checking host system type""... $ac_c" 1>&6
831 echo "configure:832: checking host system type" >&5
834 case "$host_alias" in
838 if host_alias
=`$ac_config_guess`; then :
839 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
841 *) host_alias
=$nonopt ;;
845 host=`$ac_config_sub $host_alias`
846 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
847 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
848 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
849 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 # Extract the first word of "ranlib", so it can be a program name with args.
1022 set dummy ranlib
; ac_word
=$2
1023 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1024 echo "configure:1025: checking for $ac_word" >&5
1025 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1026 echo $ac_n "(cached) $ac_c" 1>&6
1028 if test -n "$RANLIB"; then
1029 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1031 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1032 for ac_dir
in $PATH; do
1033 test -z "$ac_dir" && ac_dir
=.
1034 if test -f $ac_dir/$ac_word; then
1035 ac_cv_prog_RANLIB
="ranlib"
1040 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1043 RANLIB
="$ac_cv_prog_RANLIB"
1044 if test -n "$RANLIB"; then
1045 echo "$ac_t""$RANLIB" 1>&6
1047 echo "$ac_t""no" 1>&6
1050 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1051 if test "${with_gnu_ld+set}" = set; then
1052 withval
="$with_gnu_ld"
1053 test "$withval" = no || with_gnu_ld
=yes
1058 if test "$with_gnu_ld" = yes; then
1059 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1060 echo "configure:1061: checking for GNU ld" >&5
1062 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1063 echo "configure:1064: checking for non-GNU ld" >&5
1065 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1066 echo $ac_n "(cached) $ac_c" 1>&6
1070 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1073 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1074 for ac_dir
in $PATH; do
1075 test -z "$ac_dir" && ac_dir
=.
1076 if test -f "$ac_dir/ld"; then
1077 ac_cv_path_LD
="$ac_dir/ld"
1078 # Check to see if the program is GNU ld. I'd rather use --version,
1079 # but apparently some GNU ld's only accept -v.
1080 # Break only if it was the GNU/non-GNU ld that we prefer.
1081 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU ld|with BFD)' > /dev
/null
; then
1082 test "$with_gnu_ld" = yes && break
1084 test "$with_gnu_ld" != yes && break
1094 if test -n "$LD"; then
1095 echo "$ac_t""$LD" 1>&6
1097 echo "$ac_t""no" 1>&6
1099 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1101 echo $ac_n "checking whether we are using GNU ld""... $ac_c" 1>&6
1102 echo "configure:1103: checking whether we are using GNU ld" >&5
1103 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1104 echo $ac_n "(cached) $ac_c" 1>&6
1106 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1107 if $LD -v 2>&1 </dev
/null |
egrep '(GNU ld|with BFD)' > /dev
/null
; then
1108 ac_cv_prog_gnu_ld
=yes
1110 ac_cv_prog_gnu_ld
=no
1114 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1117 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1118 echo "configure:1119: checking whether ln -s works" >&5
1119 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1120 echo $ac_n "(cached) $ac_c" 1>&6
1123 if ln -s X conftestdata
2>/dev
/null
1126 ac_cv_prog_LN_S
="ln -s"
1131 LN_S
="$ac_cv_prog_LN_S"
1132 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1133 echo "$ac_t""yes" 1>&6
1135 echo "$ac_t""no" 1>&6
1144 # Always use our own libtool.
1145 LIBTOOL
='$(top_builddir)/libtool'
1148 # Check whether --enable-shared or --disable-shared was given.
1149 if test "${enable_shared+set}" = set; then
1150 enableval
="$enable_shared"
1151 test "$enableval" = no
&& libtool_shared
=" --disable-shared"
1157 # Check whether --enable-static or --disable-static was given.
1158 if test "${enable_static+set}" = set; then
1159 enableval
="$enable_static"
1160 test "$enableval" = no
&& libtool_static
=" --disable-static"
1166 libtool_flags
="$libtool_shared$libtool_static"
1167 test "$silent" = yes && libtool_flags
="$libtool_flags --silent"
1168 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1169 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1171 # Some flags need to be propagated to the compiler or linker for good
1175 for f
in '-32' '-64' '-cckr' '-n32' '-mips1' '-mips2' '-mips3' '-mips4'; do
1176 if echo " $CC $CFLAGS " |
egrep -e "[ ]$f[ ]" > /dev
/null
; then
1183 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1184 CFLAGS
="$CFLAGS -belf"
1188 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1189 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1190 LD
="$LD" RANLIB
="$RANLIB" LN_S
="$LN_S" \
1191 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1192 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
1193 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1197 subdirs
="libPropList"
1207 # Make sure we can run config.sub.
1208 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
1209 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1212 echo $ac_n "checking host system type""... $ac_c" 1>&6
1213 echo "configure:1214: checking host system type" >&5
1216 case "$host_alias" in
1220 if host_alias
=`$ac_config_guess`; then :
1221 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1223 *) host_alias
=$nonopt ;;
1227 host=`$ac_config_sub $host_alias`
1228 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1229 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1230 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1231 echo "$ac_t""$host" 1>&6
1235 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1236 echo "configure:1237: checking for POSIXized ISC" >&5
1237 if test -d /etc
/conf
/kconfig.d
&&
1238 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1240 echo "$ac_t""yes" 1>&6
1241 ISC
=yes # If later tests want to check for ISC.
1242 cat >> confdefs.h
<<\EOF
1243 #define _POSIX_SOURCE 1
1246 if test "$GCC" = yes; then
1252 echo "$ac_t""no" 1>&6
1256 # Extract the first word of "gcc", so it can be a program name with args.
1257 set dummy gcc
; ac_word
=$2
1258 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1259 echo "configure:1260: checking for $ac_word" >&5
1260 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1261 echo $ac_n "(cached) $ac_c" 1>&6
1263 if test -n "$CC"; then
1264 ac_cv_prog_CC
="$CC" # Let the user override the test.
1266 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1267 for ac_dir
in $PATH; do
1268 test -z "$ac_dir" && ac_dir
=.
1269 if test -f $ac_dir/$ac_word; then
1278 if test -n "$CC"; then
1279 echo "$ac_t""$CC" 1>&6
1281 echo "$ac_t""no" 1>&6
1284 if test -z "$CC"; then
1285 # Extract the first word of "cc", so it can be a program name with args.
1286 set dummy cc
; ac_word
=$2
1287 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1288 echo "configure:1289: checking for $ac_word" >&5
1289 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1290 echo $ac_n "(cached) $ac_c" 1>&6
1292 if test -n "$CC"; then
1293 ac_cv_prog_CC
="$CC" # Let the user override the test.
1295 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1297 for ac_dir
in $PATH; do
1298 test -z "$ac_dir" && ac_dir
=.
1299 if test -f $ac_dir/$ac_word; then
1300 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1301 ac_prog_rejected
=yes
1309 if test $ac_prog_rejected = yes; then
1310 # We found a bogon in the path, so make sure we never use it.
1311 set dummy
$ac_cv_prog_CC
1313 if test $# -gt 0; then
1314 # We chose a different compiler from the bogus one.
1315 # However, it has the same basename, so the bogon will be chosen
1316 # first if we set CC to just the basename; use the full file name.
1318 set dummy
"$ac_dir/$ac_word" "$@"
1326 if test -n "$CC"; then
1327 echo "$ac_t""$CC" 1>&6
1329 echo "$ac_t""no" 1>&6
1332 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1335 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1336 echo "configure:1337: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1339 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1340 ac_cpp
='$CPP $CPPFLAGS'
1341 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1342 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1343 cross_compiling
=$ac_cv_prog_cc_cross
1345 cat > conftest.
$ac_ext <<EOF
1346 #line 1347 "configure"
1347 #include "confdefs.h"
1350 if { (eval echo configure
:1351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1351 ac_cv_prog_cc_works
=yes
1352 # If we can't run a trivial program, we are probably using a cross compiler.
1353 if (.
/conftest
; exit) 2>/dev
/null
; then
1354 ac_cv_prog_cc_cross
=no
1356 ac_cv_prog_cc_cross
=yes
1359 echo "configure: failed program was:" >&5
1360 cat conftest.
$ac_ext >&5
1361 ac_cv_prog_cc_works
=no
1365 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1366 if test $ac_cv_prog_cc_works = no
; then
1367 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1369 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1370 echo "configure:1371: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1371 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1372 cross_compiling
=$ac_cv_prog_cc_cross
1374 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1375 echo "configure:1376: checking whether we are using GNU C" >&5
1376 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1377 echo $ac_n "(cached) $ac_c" 1>&6
1379 cat > conftest.c
<<EOF
1384 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1391 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1393 if test $ac_cv_prog_gcc = yes; then
1395 ac_test_CFLAGS
="${CFLAGS+set}"
1396 ac_save_CFLAGS
="$CFLAGS"
1398 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1399 echo "configure:1400: checking whether ${CC-cc} accepts -g" >&5
1400 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1401 echo $ac_n "(cached) $ac_c" 1>&6
1403 echo 'void f(){}' > conftest.c
1404 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1413 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1414 if test "$ac_test_CFLAGS" = set; then
1415 CFLAGS
="$ac_save_CFLAGS"
1416 elif test $ac_cv_prog_cc_g = yes; then
1423 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1426 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1427 echo "configure:1428: checking whether ${MAKE-make} sets \${MAKE}" >&5
1428 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1429 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1430 echo $ac_n "(cached) $ac_c" 1>&6
1432 cat > conftestmake
<<\EOF
1434 @
echo 'ac_maketemp="${MAKE}"'
1436 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1437 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1438 if test -n "$ac_maketemp"; then
1439 eval ac_cv_prog_make_
${ac_make}_set
=yes
1441 eval ac_cv_prog_make_
${ac_make}_set
=no
1445 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1446 echo "$ac_t""yes" 1>&6
1449 echo "$ac_t""no" 1>&6
1450 SET_MAKE
="MAKE=${MAKE-make}"
1454 # Find a good install program. We prefer a C program (faster),
1455 # so one script is as good as another. But avoid the broken or
1456 # incompatible versions:
1457 # SysV /etc/install, /usr/sbin/install
1458 # SunOS /usr/etc/install
1459 # IRIX /sbin/install
1461 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1462 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1463 # ./install, which can be erroneously created by make from ./install.sh.
1464 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1465 echo "configure:1466: checking for a BSD compatible install" >&5
1466 if test -z "$INSTALL"; then
1467 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1468 echo $ac_n "(cached) $ac_c" 1>&6
1470 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1471 for ac_dir
in $PATH; do
1472 # Account for people who put trailing slashes in PATH elements.
1474 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1476 # OSF1 and SCO ODT 3.0 have their own names for install.
1477 for ac_prog
in ginstall installbsd scoinst
install; do
1478 if test -f $ac_dir/$ac_prog; then
1479 if test $ac_prog = install &&
1480 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1481 # AIX install. It has an incompatible calling convention.
1482 # OSF/1 installbsd also uses dspmsg, but is usable.
1485 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1496 if test "${ac_cv_path_install+set}" = set; then
1497 INSTALL
="$ac_cv_path_install"
1499 # As a last resort, use the slow shell script. We don't cache a
1500 # path for INSTALL within a source directory, because that will
1501 # break other packages using the cache if that directory is
1502 # removed, or if the path is relative.
1503 INSTALL
="$ac_install_sh"
1506 echo "$ac_t""$INSTALL" 1>&6
1508 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1509 # It thinks the first close brace ends the variable substitution.
1510 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1512 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1514 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1515 echo "configure:1516: checking whether ln -s works" >&5
1516 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1517 echo $ac_n "(cached) $ac_c" 1>&6
1520 if ln -s X conftestdata
2>/dev
/null
1523 ac_cv_prog_LN_S
="ln -s"
1528 LN_S
="$ac_cv_prog_LN_S"
1529 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1530 echo "$ac_t""yes" 1>&6
1532 echo "$ac_t""no" 1>&6
1535 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1536 echo "configure:1537: checking how to run the C preprocessor" >&5
1537 # On Suns, sometimes $CPP names a directory.
1538 if test -n "$CPP" && test -d "$CPP"; then
1541 if test -z "$CPP"; then
1542 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1543 echo $ac_n "(cached) $ac_c" 1>&6
1545 # This must be in double quotes, not single quotes, because CPP may get
1546 # substituted into the Makefile and "${CC-cc}" will confuse make.
1548 # On the NeXT, cc -E runs the code through the compiler's parser,
1549 # not just through cpp.
1550 cat > conftest.
$ac_ext <<EOF
1551 #line 1552 "configure"
1552 #include "confdefs.h"
1556 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1557 { (eval echo configure
:1558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1558 ac_err
=`grep -v '^ *+' conftest.out`
1559 if test -z "$ac_err"; then
1563 echo "configure: failed program was:" >&5
1564 cat conftest.
$ac_ext >&5
1566 CPP
="${CC-cc} -E -traditional-cpp"
1567 cat > conftest.
$ac_ext <<EOF
1568 #line 1569 "configure"
1569 #include "confdefs.h"
1573 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1574 { (eval echo configure
:1575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1575 ac_err
=`grep -v '^ *+' conftest.out`
1576 if test -z "$ac_err"; then
1580 echo "configure: failed program was:" >&5
1581 cat conftest.
$ac_ext >&5
1588 ac_cv_prog_CPP
="$CPP"
1590 CPP
="$ac_cv_prog_CPP"
1592 ac_cv_prog_CPP
="$CPP"
1594 echo "$ac_t""$CPP" 1>&6
1596 if test $ac_cv_prog_gcc = yes; then
1597 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1598 echo "configure:1599: checking whether ${CC-cc} needs -traditional" >&5
1599 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1600 echo $ac_n "(cached) $ac_c" 1>&6
1602 ac_pattern
="Autoconf.*'x'"
1603 cat > conftest.
$ac_ext <<EOF
1604 #line 1605 "configure"
1605 #include "confdefs.h"
1609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1610 egrep "$ac_pattern" >/dev
/null
2>&1; then
1612 ac_cv_prog_gcc_traditional
=yes
1615 ac_cv_prog_gcc_traditional
=no
1620 if test $ac_cv_prog_gcc_traditional = no
; then
1621 cat > conftest.
$ac_ext <<EOF
1622 #line 1623 "configure"
1623 #include "confdefs.h"
1627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1628 egrep "$ac_pattern" >/dev
/null
2>&1; then
1630 ac_cv_prog_gcc_traditional
=yes
1637 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1638 if test $ac_cv_prog_gcc_traditional = yes; then
1639 CC
="$CC -traditional"
1645 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1646 echo "configure:1647: checking return type of signal handlers" >&5
1647 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1648 echo $ac_n "(cached) $ac_c" 1>&6
1650 cat > conftest.
$ac_ext <<EOF
1651 #line 1652 "configure"
1652 #include "confdefs.h"
1653 #include <sys/types.h>
1659 extern "C" void (*signal (int, void (*)(int)))(int);
1661 void (*signal ()) ();
1668 if { (eval echo configure
:1669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1670 ac_cv_type_signal
=void
1672 echo "configure: failed program was:" >&5
1673 cat conftest.
$ac_ext >&5
1675 ac_cv_type_signal
=int
1680 echo "$ac_t""$ac_cv_type_signal" 1>&6
1681 cat >> confdefs.h
<<EOF
1682 #define RETSIGTYPE $ac_cv_type_signal
1686 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1687 echo "configure:1688: checking for vprintf" >&5
1688 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1689 echo $ac_n "(cached) $ac_c" 1>&6
1691 cat > conftest.
$ac_ext <<EOF
1692 #line 1693 "configure"
1693 #include "confdefs.h"
1694 /* System header to define __stub macros and hopefully few prototypes,
1695 which can conflict with char vprintf(); below. */
1697 /* Override any gcc2 internal prototype to avoid an error. */
1698 /* We use char because int might match the return type of a gcc2
1699 builtin and then its argument prototype would still apply. */
1704 /* The GNU C library defines this for functions which it implements
1705 to always fail with ENOSYS. Some functions are actually named
1706 something starting with __ and the normal name is an alias. */
1707 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1715 if { (eval echo configure
:1716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1717 eval "ac_cv_func_vprintf=yes"
1719 echo "configure: failed program was:" >&5
1720 cat conftest.
$ac_ext >&5
1722 eval "ac_cv_func_vprintf=no"
1727 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1728 echo "$ac_t""yes" 1>&6
1729 cat >> confdefs.h
<<\EOF
1730 #define HAVE_VPRINTF 1
1734 echo "$ac_t""no" 1>&6
1737 if test "$ac_cv_func_vprintf" != yes; then
1738 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1739 echo "configure:1740: checking for _doprnt" >&5
1740 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1741 echo $ac_n "(cached) $ac_c" 1>&6
1743 cat > conftest.
$ac_ext <<EOF
1744 #line 1745 "configure"
1745 #include "confdefs.h"
1746 /* System header to define __stub macros and hopefully few prototypes,
1747 which can conflict with char _doprnt(); below. */
1749 /* Override any gcc2 internal prototype to avoid an error. */
1750 /* We use char because int might match the return type of a gcc2
1751 builtin and then its argument prototype would still apply. */
1756 /* The GNU C library defines this for functions which it implements
1757 to always fail with ENOSYS. Some functions are actually named
1758 something starting with __ and the normal name is an alias. */
1759 #if defined (__stub__doprnt) || defined (__stub____doprnt)
1767 if { (eval echo configure
:1768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1769 eval "ac_cv_func__doprnt=yes"
1771 echo "configure: failed program was:" >&5
1772 cat conftest.
$ac_ext >&5
1774 eval "ac_cv_func__doprnt=no"
1779 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1780 echo "$ac_t""yes" 1>&6
1781 cat >> confdefs.h
<<\EOF
1782 #define HAVE_DOPRNT 1
1786 echo "$ac_t""no" 1>&6
1791 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1792 # for constant arguments. Useless!
1793 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1794 echo "configure:1795: checking for working alloca.h" >&5
1795 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1796 echo $ac_n "(cached) $ac_c" 1>&6
1798 cat > conftest.
$ac_ext <<EOF
1799 #line 1800 "configure"
1800 #include "confdefs.h"
1803 char *p = alloca(2 * sizeof(int));
1806 if { (eval echo configure
:1807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1808 ac_cv_header_alloca_h
=yes
1810 echo "configure: failed program was:" >&5
1811 cat conftest.
$ac_ext >&5
1813 ac_cv_header_alloca_h
=no
1818 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1819 if test $ac_cv_header_alloca_h = yes; then
1820 cat >> confdefs.h
<<\EOF
1821 #define HAVE_ALLOCA_H 1
1826 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1827 echo "configure:1828: checking for alloca" >&5
1828 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1829 echo $ac_n "(cached) $ac_c" 1>&6
1831 cat > conftest.
$ac_ext <<EOF
1832 #line 1833 "configure"
1833 #include "confdefs.h"
1836 # define alloca __builtin_alloca
1839 # include <alloca.h>
1844 # ifndef alloca /* predefined by HP cc +Olibcalls */
1852 char *p = (char *) alloca(1);
1855 if { (eval echo configure
:1856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1857 ac_cv_func_alloca_works
=yes
1859 echo "configure: failed program was:" >&5
1860 cat conftest.
$ac_ext >&5
1862 ac_cv_func_alloca_works
=no
1867 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1868 if test $ac_cv_func_alloca_works = yes; then
1869 cat >> confdefs.h
<<\EOF
1870 #define HAVE_ALLOCA 1
1875 if test $ac_cv_func_alloca_works = no
; then
1876 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1877 # that cause trouble. Some versions do not even contain alloca or
1878 # contain a buggy version. If you still want to use their alloca,
1879 # use ar to extract alloca.o from them instead of compiling alloca.c.
1881 cat >> confdefs.h
<<\EOF
1886 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1887 echo "configure:1888: checking whether alloca needs Cray hooks" >&5
1888 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1889 echo $ac_n "(cached) $ac_c" 1>&6
1891 cat > conftest.
$ac_ext <<EOF
1892 #line 1893 "configure"
1893 #include "confdefs.h"
1894 #if defined(CRAY) && ! defined(CRAY2)
1901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1902 egrep "webecray" >/dev
/null
2>&1; then
1913 echo "$ac_t""$ac_cv_os_cray" 1>&6
1914 if test $ac_cv_os_cray = yes; then
1915 for ac_func
in _getb67 GETB67 getb67
; do
1916 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1917 echo "configure:1918: checking for $ac_func" >&5
1918 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1919 echo $ac_n "(cached) $ac_c" 1>&6
1921 cat > conftest.
$ac_ext <<EOF
1922 #line 1923 "configure"
1923 #include "confdefs.h"
1924 /* System header to define __stub macros and hopefully few prototypes,
1925 which can conflict with char $ac_func(); below. */
1927 /* Override any gcc2 internal prototype to avoid an error. */
1928 /* We use char because int might match the return type of a gcc2
1929 builtin and then its argument prototype would still apply. */
1934 /* The GNU C library defines this for functions which it implements
1935 to always fail with ENOSYS. Some functions are actually named
1936 something starting with __ and the normal name is an alias. */
1937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1945 if { (eval echo configure
:1946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1947 eval "ac_cv_func_$ac_func=yes"
1949 echo "configure: failed program was:" >&5
1950 cat conftest.
$ac_ext >&5
1952 eval "ac_cv_func_$ac_func=no"
1957 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1958 echo "$ac_t""yes" 1>&6
1959 cat >> confdefs.h
<<EOF
1960 #define CRAY_STACKSEG_END $ac_func
1965 echo "$ac_t""no" 1>&6
1971 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1972 echo "configure:1973: checking stack direction for C alloca" >&5
1973 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1974 echo $ac_n "(cached) $ac_c" 1>&6
1976 if test "$cross_compiling" = yes; then
1977 ac_cv_c_stack_direction
=0
1979 cat > conftest.
$ac_ext <<EOF
1980 #line 1981 "configure"
1981 #include "confdefs.h"
1982 find_stack_direction ()
1984 static char *addr = 0;
1989 return find_stack_direction ();
1992 return (&dummy > addr) ? 1 : -1;
1996 exit (find_stack_direction() < 0);
1999 if { (eval echo configure
:2000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2001 ac_cv_c_stack_direction
=1
2003 echo "configure: failed program was:" >&5
2004 cat conftest.
$ac_ext >&5
2006 ac_cv_c_stack_direction
=-1
2013 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2014 cat >> confdefs.h
<<EOF
2015 #define STACK_DIRECTION $ac_cv_c_stack_direction
2020 for ac_func
in gethostname gettimeofday
select poll strerror strncasecmp setpgid
2022 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2023 echo "configure:2024: checking for $ac_func" >&5
2024 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2025 echo $ac_n "(cached) $ac_c" 1>&6
2027 cat > conftest.
$ac_ext <<EOF
2028 #line 2029 "configure"
2029 #include "confdefs.h"
2030 /* System header to define __stub macros and hopefully few prototypes,
2031 which can conflict with char $ac_func(); below. */
2033 /* Override any gcc2 internal prototype to avoid an error. */
2034 /* We use char because int might match the return type of a gcc2
2035 builtin and then its argument prototype would still apply. */
2040 /* The GNU C library defines this for functions which it implements
2041 to always fail with ENOSYS. Some functions are actually named
2042 something starting with __ and the normal name is an alias. */
2043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2051 if { (eval echo configure
:2052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2053 eval "ac_cv_func_$ac_func=yes"
2055 echo "configure: failed program was:" >&5
2056 cat conftest.
$ac_ext >&5
2058 eval "ac_cv_func_$ac_func=no"
2063 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2064 echo "$ac_t""yes" 1>&6
2065 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2066 cat >> confdefs.h
<<EOF
2067 #define $ac_tr_func 1
2071 echo "$ac_t""no" 1>&6
2076 if test "$ac_cv_func_gettimeofday" != yes; then
2077 echo "The gettimeofday() system call is not available in your system"
2078 echo "but it is required by Window Maker. Sorry."
2082 if test "x$CPP_PATH" = x
; then
2083 # Extract the first word of "cpp", so it can be a program name with args.
2084 set dummy cpp
; ac_word
=$2
2085 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2086 echo "configure:2087: checking for $ac_word" >&5
2087 if eval "test \"`echo '$''{'ac_cv_path_CPP_PATH'+set}'`\" = set"; then
2088 echo $ac_n "(cached) $ac_c" 1>&6
2092 ac_cv_path_CPP_PATH
="$CPP_PATH" # Let the user override the test with a path.
2095 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2096 for ac_dir
in /lib
:/usr
/bin
:/bin
:/usr
/lib
:/usr
/ccs
/lib
:$PATH$ac_dummy; do
2097 test -z "$ac_dir" && ac_dir
=.
2098 if test -f $ac_dir/$ac_word; then
2099 ac_cv_path_CPP_PATH
="$ac_dir/$ac_word"
2104 test -z "$ac_cv_path_CPP_PATH" && ac_cv_path_CPP_PATH
="notfound"
2108 CPP_PATH
="$ac_cv_path_CPP_PATH"
2109 if test -n "$CPP_PATH"; then
2110 echo "$ac_t""$CPP_PATH" 1>&6
2112 echo "$ac_t""no" 1>&6
2117 if test "$CPP_PATH" = "/usr/ccs/lib/cpp" -o "$CPP_PATH" = "notfound" ; then
2118 if test "$GCC" = "yes"; then
2119 CPP_PATH
="gcc -E -x c"
2121 if test "$CPP_PATH" = "/usr/ccs/lib/cpp"; then
2122 CPP_PATH
="$CPP_PATH -B"
2124 echo "cpp, the C preprocessor was not found in your system."
2125 echo "Create a symbolic link from it to /lib/cpp and rerun configure"
2130 cat >> confdefs.h
<<EOF
2131 #define CPP_PATH "$CPP_PATH"
2143 echo $ac_n "checking for gettext""... $ac_c" 1>&6
2144 echo "configure:2145: checking for gettext" >&5
2145 if eval "test \"`echo '$''{'ac_cv_func_gettext'+set}'`\" = set"; then
2146 echo $ac_n "(cached) $ac_c" 1>&6
2148 cat > conftest.
$ac_ext <<EOF
2149 #line 2150 "configure"
2150 #include "confdefs.h"
2151 /* System header to define __stub macros and hopefully few prototypes,
2152 which can conflict with char gettext(); below. */
2154 /* Override any gcc2 internal prototype to avoid an error. */
2155 /* We use char because int might match the return type of a gcc2
2156 builtin and then its argument prototype would still apply. */
2161 /* The GNU C library defines this for functions which it implements
2162 to always fail with ENOSYS. Some functions are actually named
2163 something starting with __ and the normal name is an alias. */
2164 #if defined (__stub_gettext) || defined (__stub___gettext)
2172 if { (eval echo configure
:2173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2174 eval "ac_cv_func_gettext=yes"
2176 echo "configure: failed program was:" >&5
2177 cat conftest.
$ac_ext >&5
2179 eval "ac_cv_func_gettext=no"
2184 if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
2185 echo "$ac_t""yes" 1>&6
2188 echo "$ac_t""no" 1>&6
2189 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2190 echo "configure:2191: checking for gettext in -lintl" >&5
2191 ac_lib_var
=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2192 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2193 echo $ac_n "(cached) $ac_c" 1>&6
2195 ac_save_LIBS
="$LIBS"
2197 cat > conftest.
$ac_ext <<EOF
2198 #line 2199 "configure"
2199 #include "confdefs.h"
2200 /* Override any gcc2 internal prototype to avoid an error. */
2201 /* We use char because int might match the return type of a gcc2
2202 builtin and then its argument prototype would still apply. */
2209 if { (eval echo configure
:2210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2211 eval "ac_cv_lib_$ac_lib_var=yes"
2213 echo "configure: failed program was:" >&5
2214 cat conftest.
$ac_ext >&5
2216 eval "ac_cv_lib_$ac_lib_var=no"
2219 LIBS
="$ac_save_LIBS"
2222 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2223 echo "$ac_t""yes" 1>&6
2224 INTLIBS
="-lintl" HAVEGETTEXT
="yes"
2226 echo "$ac_t""no" 1>&6
2233 # Extract the first word of "xgettext", so it can be a program name with args.
2234 set dummy xgettext
; ac_word
=$2
2235 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2236 echo "configure:2237: checking for $ac_word" >&5
2237 if eval "test \"`echo '$''{'ac_cv_prog_XGETTEXT'+set}'`\" = set"; then
2238 echo $ac_n "(cached) $ac_c" 1>&6
2240 if test -n "$XGETTEXT"; then
2241 ac_cv_prog_XGETTEXT
="$XGETTEXT" # Let the user override the test.
2243 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2244 for ac_dir
in $PATH; do
2245 test -z "$ac_dir" && ac_dir
=.
2246 if test -f $ac_dir/$ac_word; then
2247 ac_cv_prog_XGETTEXT
="xgettext"
2254 XGETTEXT
="$ac_cv_prog_XGETTEXT"
2255 if test -n "$XGETTEXT"; then
2256 echo "$ac_t""$XGETTEXT" 1>&6
2258 echo "$ac_t""no" 1>&6
2262 if test "$XGETTEXT" != ""; then
2263 if $XGETTEXT --help 2>&1 |
grep illegal
>/dev
/null
; then
2264 echo "xgettext isn't GNU version"
2269 if test "$LINGUAS" != ""; then
2270 if test "$XGETTEXT" != "" -a "$HAVEGETTEXT" != ""; then
2273 # if test "$LINGUAS" = ""; then
2274 # ling=` (cd src/po; /bin/ls *.po) `
2275 # for l in $ling; do
2276 # lcode=`basename $l .po`
2277 # LINGUAS="$LINGUAS $lcode"
2280 echo "xgettext and gettext() exist; will build i18n support for $LINGUAS"
2285 echo "xgettext and libintl.a don't both exist; will not build i18n support"
2296 supported_locales
="cs de es fr gl it ja ko nl no pt ru se tr fi hr el pl ro"
2297 supported_wprefs_locales
="pt hr fr ko ja"
2299 for lang
in $LINGUAS; do
2301 for l
in $supported_locales; do
2302 if test "$l" = "$lang"; then
2307 if test "$ok" = 1; then
2308 MOFILES
="$MOFILES $lang.mo"
2310 echo "Locale $lang is not supported."
2313 for l
in $supported_wprefs_locales; do
2314 if test "$l" = "$lang"; then
2319 if test "$ok" = 1; then
2320 WPMOFILES
="$WPMOFILES $lang.mo"
2326 # Check whether --enable-kanji or --disable-kanji was given.
2327 if test "${enable_kanji+set}" = set; then
2328 enableval
="$enable_kanji"
2335 if test "$enable_kanji" = yes; then
2336 I18N_MB
="#define I18N_MB"
2339 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
2340 echo "configure:2341: checking for setlocale in -lxpg4" >&5
2341 ac_lib_var
=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
2342 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2343 echo $ac_n "(cached) $ac_c" 1>&6
2345 ac_save_LIBS
="$LIBS"
2347 cat > conftest.
$ac_ext <<EOF
2348 #line 2349 "configure"
2349 #include "confdefs.h"
2350 /* Override any gcc2 internal prototype to avoid an error. */
2351 /* We use char because int might match the return type of a gcc2
2352 builtin and then its argument prototype would still apply. */
2359 if { (eval echo configure
:2360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2361 eval "ac_cv_lib_$ac_lib_var=yes"
2363 echo "configure: failed program was:" >&5
2364 cat conftest.
$ac_ext >&5
2366 eval "ac_cv_lib_$ac_lib_var=no"
2369 LIBS
="$ac_save_LIBS"
2372 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2373 echo "$ac_t""yes" 1>&6
2376 echo "$ac_t""no" 1>&6
2383 I18N_MB
="#undef I18N_MB"
2388 # Check whether --enable-modelock or --disable-modelock was given.
2389 if test "${enable_modelock+set}" = set; then
2390 enableval
="$enable_modelock"
2391 X_CFLAGS
="$X_CFLAGS -DXKB_MODELOCK"
2397 # Check whether --with-nlsdir or --without-nlsdir was given.
2398 if test "${with_nlsdir+set}" = set; then
2399 withval
="$with_nlsdir"
2404 if test "x$NLSDIR" = "x"; then
2405 if test "x$with_nlsdir" != "x"; then
2408 NLSDIR
='$(prefix)/lib/locale'
2423 # Check whether --enable-gnome or --disable-gnome was given.
2424 if test "${enable_gnome+set}" = set; then
2425 enableval
="$enable_gnome"
2426 if test x
$enableval = xyes
; then
2427 cat >> confdefs.h
<<\EOF
2428 #define GNOME_STUFF 1
2437 # Check whether --enable-kde or --disable-kde was given.
2438 if test "${enable_kde+set}" = set; then
2439 enableval
="$enable_kde"
2440 if test x
$enableval = xyes
; then
2441 cat >> confdefs.h
<<\EOF
2452 # Check whether --enable-lite or --disable-lite was given.
2453 if test "${enable_lite+set}" = set; then
2454 enableval
="$enable_lite"
2455 if test x
$enableval = xyes
; then
2464 # If we find X, set shell vars x_includes and x_libraries to the
2465 # paths, otherwise set no_x=yes.
2466 # Uses ac_ vars as temps to allow command line to override cache and checks.
2467 # --without-x overrides everything else, but does not touch the cache.
2468 echo $ac_n "checking for X""... $ac_c" 1>&6
2469 echo "configure:2470: checking for X" >&5
2471 # Check whether --with-x or --without-x was given.
2472 if test "${with_x+set}" = set; then
2477 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2478 if test "x$with_x" = xno
; then
2479 # The user explicitly disabled X.
2482 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
2483 # Both variables are already set.
2486 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
2487 echo $ac_n "(cached) $ac_c" 1>&6
2489 # One or both of the vars are not set, and there is no cached value.
2490 ac_x_includes
=NO ac_x_libraries
=NO
2492 if mkdir conftestdir
; then
2494 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2495 cat > Imakefile
<<'EOF'
2497 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2499 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
2500 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2501 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2502 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2503 for ac_extension
in a so sl
; do
2504 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
2505 test -f $ac_im_libdir/libX11.
$ac_extension; then
2506 ac_im_usrlibdir
=$ac_im_libdir; break
2509 # Screen out bogus values from the imake configuration. They are
2510 # bogus both because they are the default anyway, and because
2511 # using them would break gcc on systems where it needs fixed includes.
2512 case "$ac_im_incroot" in
2514 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
2516 case "$ac_im_usrlibdir" in
2518 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
2525 if test "$ac_x_includes" = NO
; then
2526 # Guess where to find include files, by looking for this one X11 .h file.
2527 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
2529 # First, try using that file with no special directory specified.
2530 cat > conftest.
$ac_ext <<EOF
2531 #line 2532 "configure"
2532 #include "confdefs.h"
2533 #include <$x_direct_test_include>
2535 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2536 { (eval echo configure
:2537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2537 ac_err
=`grep -v '^ *+' conftest.out`
2538 if test -z "$ac_err"; then
2540 # We can compile using X headers with no special include directory.
2544 echo "configure: failed program was:" >&5
2545 cat conftest.
$ac_ext >&5
2547 # Look for the header file in a standard set of common directories.
2548 # Check X11 before X11Rn because it is often a symlink to the current release.
2551 /usr
/X11R
6/include \
2552 /usr
/X11R
5/include \
2553 /usr
/X11R
4/include \
2556 /usr
/include
/X11R6 \
2557 /usr
/include
/X11R5 \
2558 /usr
/include
/X11R4 \
2560 /usr
/local
/X11
/include \
2561 /usr
/local
/X11R
6/include \
2562 /usr
/local
/X11R
5/include \
2563 /usr
/local
/X11R
4/include \
2565 /usr
/local
/include
/X11 \
2566 /usr
/local
/include
/X11R6 \
2567 /usr
/local
/include
/X11R5 \
2568 /usr
/local
/include
/X11R4 \
2572 /usr
/XFree86
/include
/X11 \
2575 /usr
/local
/include \
2576 /usr
/unsupported
/include \
2577 /usr
/athena
/include \
2578 /usr
/local
/x11r
5/include \
2579 /usr
/lpp
/Xamples
/include \
2581 /usr
/openwin
/include \
2582 /usr
/openwin
/share
/include \
2585 if test -r "$ac_dir/$x_direct_test_include"; then
2586 ac_x_includes
=$ac_dir
2592 fi # $ac_x_includes = NO
2594 if test "$ac_x_libraries" = NO
; then
2595 # Check for the libraries.
2597 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
2598 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
2600 # See if we find them without any special options.
2601 # Don't add to $LIBS permanently.
2602 ac_save_LIBS
="$LIBS"
2603 LIBS
="-l$x_direct_test_library $LIBS"
2604 cat > conftest.
$ac_ext <<EOF
2605 #line 2606 "configure"
2606 #include "confdefs.h"
2609 ${x_direct_test_function}()
2612 if { (eval echo configure
:2613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2614 LIBS
="$ac_save_LIBS"
2615 # We can link X programs with no special library path.
2618 echo "configure: failed program was:" >&5
2619 cat conftest.
$ac_ext >&5
2621 LIBS
="$ac_save_LIBS"
2622 # First see if replacing the include by lib works.
2623 # Check X11 before X11Rn because it is often a symlink to the current release.
2624 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
2635 /usr
/local
/X11
/lib \
2636 /usr
/local
/X11R
6/lib \
2637 /usr
/local
/X11R
5/lib \
2638 /usr
/local
/X11R
4/lib \
2640 /usr
/local
/lib
/X11 \
2641 /usr
/local
/lib
/X11R6 \
2642 /usr
/local
/lib
/X11R5 \
2643 /usr
/local
/lib
/X11R4 \
2647 /usr
/XFree86
/lib
/X11 \
2651 /usr
/unsupported
/lib \
2653 /usr
/local
/x11r
5/lib \
2654 /usr
/lpp
/Xamples
/lib \
2658 /usr
/openwin
/share
/lib \
2661 for ac_extension
in a so sl
; do
2662 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
2663 ac_x_libraries
=$ac_dir
2670 fi # $ac_x_libraries = NO
2672 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
2673 # Didn't find X anywhere. Cache the known absence of X.
2674 ac_cv_have_x
="have_x=no"
2676 # Record where we found X for the cache.
2677 ac_cv_have_x
="have_x=yes \
2678 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2682 eval "$ac_cv_have_x"
2685 if test "$have_x" != yes; then
2686 echo "$ac_t""$have_x" 1>&6
2689 # If each of the values was on the command line, it overrides each guess.
2690 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
2691 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
2692 # Update the cache value to reflect the command line values.
2693 ac_cv_have_x
="have_x=yes \
2694 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2695 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
2698 if test "$no_x" = yes; then
2699 # Not all programs may use this symbol, but it does not hurt to define it.
2700 cat >> confdefs.h
<<\EOF
2701 #define X_DISPLAY_MISSING 1
2704 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
2706 if test -n "$x_includes"; then
2707 X_CFLAGS
="$X_CFLAGS -I$x_includes"
2710 # It would also be nice to do this for all -L options, not just this one.
2711 if test -n "$x_libraries"; then
2712 X_LIBS
="$X_LIBS -L$x_libraries"
2713 # For Solaris; some versions of Sun CC require a space after -R and
2714 # others require no space. Words are not sufficient . . . .
2715 case "`(uname -sr) 2>/dev/null`" in
2717 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
2718 echo "configure:2719: checking whether -R must be followed by a space" >&5
2719 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
2720 cat > conftest.
$ac_ext <<EOF
2721 #line 2722 "configure"
2722 #include "confdefs.h"
2728 if { (eval echo configure
:2729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2732 echo "configure: failed program was:" >&5
2733 cat conftest.
$ac_ext >&5
2738 if test $ac_R_nospace = yes; then
2739 echo "$ac_t""no" 1>&6
2740 X_LIBS
="$X_LIBS -R$x_libraries"
2742 LIBS
="$ac_xsave_LIBS -R $x_libraries"
2743 cat > conftest.
$ac_ext <<EOF
2744 #line 2745 "configure"
2745 #include "confdefs.h"
2751 if { (eval echo configure
:2752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2755 echo "configure: failed program was:" >&5
2756 cat conftest.
$ac_ext >&5
2761 if test $ac_R_space = yes; then
2762 echo "$ac_t""yes" 1>&6
2763 X_LIBS
="$X_LIBS -R $x_libraries"
2765 echo "$ac_t""neither works" 1>&6
2768 LIBS
="$ac_xsave_LIBS"
2772 # Check for system-dependent libraries X programs must link with.
2773 # Do this before checking for the system-independent R6 libraries
2774 # (-lICE), since we may need -lsocket or whatever for X linking.
2776 if test "$ISC" = yes; then
2777 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
2779 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
2780 # libraries were built with DECnet support. And karl@cs.umb.edu says
2781 # the Alpha needs dnet_stub (dnet does not exist).
2782 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
2783 echo "configure:2784: checking for dnet_ntoa in -ldnet" >&5
2784 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2785 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2786 echo $ac_n "(cached) $ac_c" 1>&6
2788 ac_save_LIBS
="$LIBS"
2790 cat > conftest.
$ac_ext <<EOF
2791 #line 2792 "configure"
2792 #include "confdefs.h"
2793 /* Override any gcc2 internal prototype to avoid an error. */
2794 /* We use char because int might match the return type of a gcc2
2795 builtin and then its argument prototype would still apply. */
2802 if { (eval echo configure
:2803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2804 eval "ac_cv_lib_$ac_lib_var=yes"
2806 echo "configure: failed program was:" >&5
2807 cat conftest.
$ac_ext >&5
2809 eval "ac_cv_lib_$ac_lib_var=no"
2812 LIBS
="$ac_save_LIBS"
2815 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2816 echo "$ac_t""yes" 1>&6
2817 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
2819 echo "$ac_t""no" 1>&6
2822 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
2823 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
2824 echo "configure:2825: checking for dnet_ntoa in -ldnet_stub" >&5
2825 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2826 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2827 echo $ac_n "(cached) $ac_c" 1>&6
2829 ac_save_LIBS
="$LIBS"
2830 LIBS
="-ldnet_stub $LIBS"
2831 cat > conftest.
$ac_ext <<EOF
2832 #line 2833 "configure"
2833 #include "confdefs.h"
2834 /* Override any gcc2 internal prototype to avoid an error. */
2835 /* We use char because int might match the return type of a gcc2
2836 builtin and then its argument prototype would still apply. */
2843 if { (eval echo configure
:2844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2845 eval "ac_cv_lib_$ac_lib_var=yes"
2847 echo "configure: failed program was:" >&5
2848 cat conftest.
$ac_ext >&5
2850 eval "ac_cv_lib_$ac_lib_var=no"
2853 LIBS
="$ac_save_LIBS"
2856 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2857 echo "$ac_t""yes" 1>&6
2858 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
2860 echo "$ac_t""no" 1>&6
2865 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2866 # to get the SysV transport functions.
2867 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
2869 # The nsl library prevents programs from opening the X display
2870 # on Irix 5.2, according to dickey@clark.net.
2871 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2872 echo "configure:2873: checking for gethostbyname" >&5
2873 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2874 echo $ac_n "(cached) $ac_c" 1>&6
2876 cat > conftest.
$ac_ext <<EOF
2877 #line 2878 "configure"
2878 #include "confdefs.h"
2879 /* System header to define __stub macros and hopefully few prototypes,
2880 which can conflict with char gethostbyname(); below. */
2882 /* Override any gcc2 internal prototype to avoid an error. */
2883 /* We use char because int might match the return type of a gcc2
2884 builtin and then its argument prototype would still apply. */
2885 char gethostbyname();
2889 /* The GNU C library defines this for functions which it implements
2890 to always fail with ENOSYS. Some functions are actually named
2891 something starting with __ and the normal name is an alias. */
2892 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2900 if { (eval echo configure
:2901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2902 eval "ac_cv_func_gethostbyname=yes"
2904 echo "configure: failed program was:" >&5
2905 cat conftest.
$ac_ext >&5
2907 eval "ac_cv_func_gethostbyname=no"
2912 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2913 echo "$ac_t""yes" 1>&6
2916 echo "$ac_t""no" 1>&6
2919 if test $ac_cv_func_gethostbyname = no
; then
2920 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2921 echo "configure:2922: checking for gethostbyname in -lnsl" >&5
2922 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2923 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2924 echo $ac_n "(cached) $ac_c" 1>&6
2926 ac_save_LIBS
="$LIBS"
2928 cat > conftest.
$ac_ext <<EOF
2929 #line 2930 "configure"
2930 #include "confdefs.h"
2931 /* Override any gcc2 internal prototype to avoid an error. */
2932 /* We use char because int might match the return type of a gcc2
2933 builtin and then its argument prototype would still apply. */
2934 char gethostbyname();
2940 if { (eval echo configure
:2941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2942 eval "ac_cv_lib_$ac_lib_var=yes"
2944 echo "configure: failed program was:" >&5
2945 cat conftest.
$ac_ext >&5
2947 eval "ac_cv_lib_$ac_lib_var=no"
2950 LIBS
="$ac_save_LIBS"
2953 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2954 echo "$ac_t""yes" 1>&6
2955 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
2957 echo "$ac_t""no" 1>&6
2962 # lieder@skyler.mavd.honeywell.com says without -lsocket,
2963 # socket/setsockopt and other routines are undefined under SCO ODT
2964 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
2965 # on later versions), says simon@lia.di.epfl.ch: it contains
2966 # gethostby* variants that don't use the nameserver (or something).
2967 # -lsocket must be given before -lnsl if both are needed.
2968 # We assume that if connect needs -lnsl, so does gethostbyname.
2969 echo $ac_n "checking for connect""... $ac_c" 1>&6
2970 echo "configure:2971: checking for connect" >&5
2971 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2972 echo $ac_n "(cached) $ac_c" 1>&6
2974 cat > conftest.
$ac_ext <<EOF
2975 #line 2976 "configure"
2976 #include "confdefs.h"
2977 /* System header to define __stub macros and hopefully few prototypes,
2978 which can conflict with char connect(); below. */
2980 /* Override any gcc2 internal prototype to avoid an error. */
2981 /* We use char because int might match the return type of a gcc2
2982 builtin and then its argument prototype would still apply. */
2987 /* The GNU C library defines this for functions which it implements
2988 to always fail with ENOSYS. Some functions are actually named
2989 something starting with __ and the normal name is an alias. */
2990 #if defined (__stub_connect) || defined (__stub___connect)
2998 if { (eval echo configure
:2999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3000 eval "ac_cv_func_connect=yes"
3002 echo "configure: failed program was:" >&5
3003 cat conftest.
$ac_ext >&5
3005 eval "ac_cv_func_connect=no"
3010 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3011 echo "$ac_t""yes" 1>&6
3014 echo "$ac_t""no" 1>&6
3017 if test $ac_cv_func_connect = no
; then
3018 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3019 echo "configure:3020: checking for connect in -lsocket" >&5
3020 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3021 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3022 echo $ac_n "(cached) $ac_c" 1>&6
3024 ac_save_LIBS
="$LIBS"
3025 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
3026 cat > conftest.
$ac_ext <<EOF
3027 #line 3028 "configure"
3028 #include "confdefs.h"
3029 /* Override any gcc2 internal prototype to avoid an error. */
3030 /* We use char because int might match the return type of a gcc2
3031 builtin and then its argument prototype would still apply. */
3038 if { (eval echo configure
:3039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3040 eval "ac_cv_lib_$ac_lib_var=yes"
3042 echo "configure: failed program was:" >&5
3043 cat conftest.
$ac_ext >&5
3045 eval "ac_cv_lib_$ac_lib_var=no"
3048 LIBS
="$ac_save_LIBS"
3051 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3052 echo "$ac_t""yes" 1>&6
3053 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
3055 echo "$ac_t""no" 1>&6
3060 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
3061 echo $ac_n "checking for remove""... $ac_c" 1>&6
3062 echo "configure:3063: checking for remove" >&5
3063 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
3064 echo $ac_n "(cached) $ac_c" 1>&6
3066 cat > conftest.
$ac_ext <<EOF
3067 #line 3068 "configure"
3068 #include "confdefs.h"
3069 /* System header to define __stub macros and hopefully few prototypes,
3070 which can conflict with char remove(); below. */
3072 /* Override any gcc2 internal prototype to avoid an error. */
3073 /* We use char because int might match the return type of a gcc2
3074 builtin and then its argument prototype would still apply. */
3079 /* The GNU C library defines this for functions which it implements
3080 to always fail with ENOSYS. Some functions are actually named
3081 something starting with __ and the normal name is an alias. */
3082 #if defined (__stub_remove) || defined (__stub___remove)
3090 if { (eval echo configure
:3091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3092 eval "ac_cv_func_remove=yes"
3094 echo "configure: failed program was:" >&5
3095 cat conftest.
$ac_ext >&5
3097 eval "ac_cv_func_remove=no"
3102 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
3103 echo "$ac_t""yes" 1>&6
3106 echo "$ac_t""no" 1>&6
3109 if test $ac_cv_func_remove = no
; then
3110 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
3111 echo "configure:3112: checking for remove in -lposix" >&5
3112 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
3113 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3114 echo $ac_n "(cached) $ac_c" 1>&6
3116 ac_save_LIBS
="$LIBS"
3117 LIBS
="-lposix $LIBS"
3118 cat > conftest.
$ac_ext <<EOF
3119 #line 3120 "configure"
3120 #include "confdefs.h"
3121 /* Override any gcc2 internal prototype to avoid an error. */
3122 /* We use char because int might match the return type of a gcc2
3123 builtin and then its argument prototype would still apply. */
3130 if { (eval echo configure
:3131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3132 eval "ac_cv_lib_$ac_lib_var=yes"
3134 echo "configure: failed program was:" >&5
3135 cat conftest.
$ac_ext >&5
3137 eval "ac_cv_lib_$ac_lib_var=no"
3140 LIBS
="$ac_save_LIBS"
3143 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3144 echo "$ac_t""yes" 1>&6
3145 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
3147 echo "$ac_t""no" 1>&6
3152 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3153 echo $ac_n "checking for shmat""... $ac_c" 1>&6
3154 echo "configure:3155: checking for shmat" >&5
3155 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
3156 echo $ac_n "(cached) $ac_c" 1>&6
3158 cat > conftest.
$ac_ext <<EOF
3159 #line 3160 "configure"
3160 #include "confdefs.h"
3161 /* System header to define __stub macros and hopefully few prototypes,
3162 which can conflict with char shmat(); below. */
3164 /* Override any gcc2 internal prototype to avoid an error. */
3165 /* We use char because int might match the return type of a gcc2
3166 builtin and then its argument prototype would still apply. */
3171 /* The GNU C library defines this for functions which it implements
3172 to always fail with ENOSYS. Some functions are actually named
3173 something starting with __ and the normal name is an alias. */
3174 #if defined (__stub_shmat) || defined (__stub___shmat)
3182 if { (eval echo configure
:3183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3184 eval "ac_cv_func_shmat=yes"
3186 echo "configure: failed program was:" >&5
3187 cat conftest.
$ac_ext >&5
3189 eval "ac_cv_func_shmat=no"
3194 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
3195 echo "$ac_t""yes" 1>&6
3198 echo "$ac_t""no" 1>&6
3201 if test $ac_cv_func_shmat = no
; then
3202 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
3203 echo "configure:3204: checking for shmat in -lipc" >&5
3204 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
3205 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3206 echo $ac_n "(cached) $ac_c" 1>&6
3208 ac_save_LIBS
="$LIBS"
3210 cat > conftest.
$ac_ext <<EOF
3211 #line 3212 "configure"
3212 #include "confdefs.h"
3213 /* Override any gcc2 internal prototype to avoid an error. */
3214 /* We use char because int might match the return type of a gcc2
3215 builtin and then its argument prototype would still apply. */
3222 if { (eval echo configure
:3223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3224 eval "ac_cv_lib_$ac_lib_var=yes"
3226 echo "configure: failed program was:" >&5
3227 cat conftest.
$ac_ext >&5
3229 eval "ac_cv_lib_$ac_lib_var=no"
3232 LIBS
="$ac_save_LIBS"
3235 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3236 echo "$ac_t""yes" 1>&6
3237 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
3239 echo "$ac_t""no" 1>&6
3245 # Check for libraries that X11R6 Xt/Xaw programs need.
3246 ac_save_LDFLAGS
="$LDFLAGS"
3247 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
3248 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3249 # check for ICE first), but we must link in the order -lSM -lICE or
3250 # we get undefined symbols. So assume we have SM if we have ICE.
3251 # These have to be linked with before -lX11, unlike the other
3252 # libraries we check for below, so use a different variable.
3253 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
3254 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
3255 echo "configure:3256: checking for IceConnectionNumber in -lICE" >&5
3256 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
3257 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3258 echo $ac_n "(cached) $ac_c" 1>&6
3260 ac_save_LIBS
="$LIBS"
3262 cat > conftest.
$ac_ext <<EOF
3263 #line 3264 "configure"
3264 #include "confdefs.h"
3265 /* Override any gcc2 internal prototype to avoid an error. */
3266 /* We use char because int might match the return type of a gcc2
3267 builtin and then its argument prototype would still apply. */
3268 char IceConnectionNumber();
3271 IceConnectionNumber()
3274 if { (eval echo configure
:3275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3276 eval "ac_cv_lib_$ac_lib_var=yes"
3278 echo "configure: failed program was:" >&5
3279 cat conftest.
$ac_ext >&5
3281 eval "ac_cv_lib_$ac_lib_var=no"
3284 LIBS
="$ac_save_LIBS"
3287 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3288 echo "$ac_t""yes" 1>&6
3289 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
3291 echo "$ac_t""no" 1>&6
3294 LDFLAGS
="$ac_save_LDFLAGS"
3303 XLIBS
="$X_EXTRA_LIBS -lX11"
3305 echo $ac_n "checking for _Xsetlocale in -lX11""... $ac_c" 1>&6
3306 echo "configure:3307: checking for _Xsetlocale in -lX11" >&5
3307 ac_lib_var
=`echo X11'_'_Xsetlocale | sed 'y%./+-%__p_%'`
3308 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3309 echo $ac_n "(cached) $ac_c" 1>&6
3311 ac_save_LIBS
="$LIBS"
3312 LIBS
="-lX11 $XLFLAGS $XLIBS $LIBS"
3313 cat > conftest.
$ac_ext <<EOF
3314 #line 3315 "configure"
3315 #include "confdefs.h"
3316 /* Override any gcc2 internal prototype to avoid an error. */
3317 /* We use char because int might match the return type of a gcc2
3318 builtin and then its argument prototype would still apply. */
3325 if { (eval echo configure
:3326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3327 eval "ac_cv_lib_$ac_lib_var=yes"
3329 echo "configure: failed program was:" >&5
3330 cat conftest.
$ac_ext >&5
3332 eval "ac_cv_lib_$ac_lib_var=no"
3335 LIBS
="$ac_save_LIBS"
3338 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3339 echo "$ac_t""yes" 1>&6
3340 X_LOCALE
="-DX_LOCALE"
3342 echo "$ac_t""no" 1>&6
3349 # Check whether --enable-shape or --disable-shape was given.
3350 if test "${enable_shape+set}" = set; then
3351 enableval
="$enable_shape"
3360 if test "$shape" = yes; then
3361 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
3362 echo "configure:3363: checking for XShapeSelectInput in -lXext" >&5
3363 ac_lib_var
=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
3364 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3365 echo $ac_n "(cached) $ac_c" 1>&6
3367 ac_save_LIBS
="$LIBS"
3368 LIBS
="-lXext $XLFLAGS $XLIBS $LIBS"
3369 cat > conftest.
$ac_ext <<EOF
3370 #line 3371 "configure"
3371 #include "confdefs.h"
3372 /* Override any gcc2 internal prototype to avoid an error. */
3373 /* We use char because int might match the return type of a gcc2
3374 builtin and then its argument prototype would still apply. */
3375 char XShapeSelectInput();
3381 if { (eval echo configure
:3382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3383 eval "ac_cv_lib_$ac_lib_var=yes"
3385 echo "configure: failed program was:" >&5
3386 cat conftest.
$ac_ext >&5
3388 eval "ac_cv_lib_$ac_lib_var=no"
3391 LIBS
="$ac_save_LIBS"
3394 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3395 echo "$ac_t""yes" 1>&6
3396 XLIBS
="-lXext $XLIBS"
3397 added_xext
=yes SHAPE
=-DSHAPE
3399 echo "$ac_t""no" 1>&6
3409 # Check whether --enable-shm or --disable-shm was given.
3410 if test "${enable_shm+set}" = set; then
3411 enableval
="$enable_shm"
3418 if test "$shm" = yes; then
3419 echo $ac_n "checking for XShmAttach in -lXext""... $ac_c" 1>&6
3420 echo "configure:3421: checking for XShmAttach in -lXext" >&5
3421 ac_lib_var
=`echo Xext'_'XShmAttach | sed 'y%./+-%__p_%'`
3422 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3423 echo $ac_n "(cached) $ac_c" 1>&6
3425 ac_save_LIBS
="$LIBS"
3426 LIBS
="-lXext $XLFLAGS $XLIBS $LIBS"
3427 cat > conftest.
$ac_ext <<EOF
3428 #line 3429 "configure"
3429 #include "confdefs.h"
3430 /* Override any gcc2 internal prototype to avoid an error. */
3431 /* We use char because int might match the return type of a gcc2
3432 builtin and then its argument prototype would still apply. */
3439 if { (eval echo configure
:3440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3441 eval "ac_cv_lib_$ac_lib_var=yes"
3443 echo "configure: failed program was:" >&5
3444 cat conftest.
$ac_ext >&5
3446 eval "ac_cv_lib_$ac_lib_var=no"
3449 LIBS
="$ac_save_LIBS"
3452 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3453 echo "$ac_t""yes" 1>&6
3456 echo "$ac_t""no" 1>&6
3461 if test "$ok" = yes; then
3462 echo $ac_n "checking for shmget""... $ac_c" 1>&6
3463 echo "configure:3464: checking for shmget" >&5
3464 if eval "test \"`echo '$''{'ac_cv_func_shmget'+set}'`\" = set"; then
3465 echo $ac_n "(cached) $ac_c" 1>&6
3467 cat > conftest.
$ac_ext <<EOF
3468 #line 3469 "configure"
3469 #include "confdefs.h"
3470 /* System header to define __stub macros and hopefully few prototypes,
3471 which can conflict with char shmget(); below. */
3473 /* Override any gcc2 internal prototype to avoid an error. */
3474 /* We use char because int might match the return type of a gcc2
3475 builtin and then its argument prototype would still apply. */
3480 /* The GNU C library defines this for functions which it implements
3481 to always fail with ENOSYS. Some functions are actually named
3482 something starting with __ and the normal name is an alias. */
3483 #if defined (__stub_shmget) || defined (__stub___shmget)
3491 if { (eval echo configure
:3492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3493 eval "ac_cv_func_shmget=yes"
3495 echo "configure: failed program was:" >&5
3496 cat conftest.
$ac_ext >&5
3498 eval "ac_cv_func_shmget=no"
3503 if eval "test \"`echo '$ac_cv_func_'shmget`\" = yes"; then
3504 echo "$ac_t""yes" 1>&6
3507 echo "$ac_t""no" 1>&6
3513 if test "$ok" = yes; then
3514 if test "$added_xext" = no
; then
3515 XLIBS
="-lXext $XLIBS"
3534 # Check whether --with-gfx-libs or --without-gfx-libs was given.
3535 if test "${with_gfx_libs+set}" = set; then
3536 withval
="$with_gfx_libs"
3543 # Check whether --with-gfx-incs or --without-gfx-incs was given.
3544 if test "${with_gfx_incs+set}" = set; then
3545 withval
="$with_gfx_incs"
3546 GFXFLAGS
="$withval" GFX_INC_PATH
=$withval
3548 GFXFLAGS
="" GFX_INC_PATH
=""
3556 # Check whether --enable-xpm or --disable-xpm was given.
3557 if test "${enable_xpm+set}" = set; then
3558 enableval
="$enable_xpm"
3565 if test "$xpm" = yes; then
3566 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
3567 echo "configure:3568: checking for XpmCreatePixmapFromData in -lXpm" >&5
3568 ac_lib_var
=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
3569 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3570 echo $ac_n "(cached) $ac_c" 1>&6
3572 ac_save_LIBS
="$LIBS"
3573 LIBS
="-lXpm $GFX_INC_PATH $GFXLFLAGS $XLFLAGS $XLIBS $LIBS"
3574 cat > conftest.
$ac_ext <<EOF
3575 #line 3576 "configure"
3576 #include "confdefs.h"
3577 /* Override any gcc2 internal prototype to avoid an error. */
3578 /* We use char because int might match the return type of a gcc2
3579 builtin and then its argument prototype would still apply. */
3580 char XpmCreatePixmapFromData();
3583 XpmCreatePixmapFromData()
3586 if { (eval echo configure
:3587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3588 eval "ac_cv_lib_$ac_lib_var=yes"
3590 echo "configure: failed program was:" >&5
3591 cat conftest.
$ac_ext >&5
3593 eval "ac_cv_lib_$ac_lib_var=no"
3596 LIBS
="$ac_save_LIBS"
3599 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3600 echo "$ac_t""yes" 1>&6
3603 echo "$ac_t""no" 1>&6
3608 if test "$my_libok" = yes; then
3609 my_old_cppflags
=$CPPFLAGS
3610 CPPFLAGS
="$CPPFLAGS $GFX_INC_PATH $XCFLAGS"
3611 ac_safe
=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
3612 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
3613 echo "configure:3614: checking for X11/xpm.h" >&5
3614 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3615 echo $ac_n "(cached) $ac_c" 1>&6
3617 cat > conftest.
$ac_ext <<EOF
3618 #line 3619 "configure"
3619 #include "confdefs.h"
3620 #include <X11/xpm.h>
3622 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3623 { (eval echo configure
:3624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3624 ac_err
=`grep -v '^ *+' conftest.out`
3625 if test -z "$ac_err"; then
3627 eval "ac_cv_header_$ac_safe=yes"
3630 echo "configure: failed program was:" >&5
3631 cat conftest.
$ac_ext >&5
3633 eval "ac_cv_header_$ac_safe=no"
3637 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3638 echo "$ac_t""yes" 1>&6
3639 GFXFLAGS
="$GFXFLAGS -DUSE_XPM" GFXLIBS
="$GFXLIBS -lXpm"
3642 echo "$ac_t""no" 1>&6
3643 supported_gfx
="XPM (builtin)"
3646 CPPFLAGS
=$my_old_cppflags
3661 # Check whether --enable-png or --disable-png was given.
3662 if test "${enable_png+set}" = set; then
3663 enableval
="$enable_png"
3671 if test "$png" = yes ; then
3672 echo $ac_n "checking for png_get_valid in -lpng""... $ac_c" 1>&6
3673 echo "configure:3674: checking for png_get_valid in -lpng" >&5
3674 ac_lib_var
=`echo png'_'png_get_valid | sed 'y%./+-%__p_%'`
3675 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3676 echo $ac_n "(cached) $ac_c" 1>&6
3678 ac_save_LIBS
="$LIBS"
3679 LIBS
="-lpng $GFX_INC_PATH $GFXLFLAGS $XLFLAGS -lz -lm $LIBS"
3680 cat > conftest.
$ac_ext <<EOF
3681 #line 3682 "configure"
3682 #include "confdefs.h"
3683 /* Override any gcc2 internal prototype to avoid an error. */
3684 /* We use char because int might match the return type of a gcc2
3685 builtin and then its argument prototype would still apply. */
3686 char png_get_valid();
3692 if { (eval echo configure
:3693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3694 eval "ac_cv_lib_$ac_lib_var=yes"
3696 echo "configure: failed program was:" >&5
3697 cat conftest.
$ac_ext >&5
3699 eval "ac_cv_lib_$ac_lib_var=no"
3702 LIBS
="$ac_save_LIBS"
3705 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3706 echo "$ac_t""yes" 1>&6
3709 echo "$ac_t""no" 1>&6
3714 if test "$my_libok" = yes; then
3715 my_old_cppflags
=$CPPFLAGS
3716 CPPFLAGS
="$CPPFLAGS $GFX_INC_PATH $XCFLAGS"
3717 ac_safe
=`echo "png.h" | sed 'y%./+-%__p_%'`
3718 echo $ac_n "checking for png.h""... $ac_c" 1>&6
3719 echo "configure:3720: checking for png.h" >&5
3720 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3721 echo $ac_n "(cached) $ac_c" 1>&6
3723 cat > conftest.
$ac_ext <<EOF
3724 #line 3725 "configure"
3725 #include "confdefs.h"
3728 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3729 { (eval echo configure
:3730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3730 ac_err
=`grep -v '^ *+' conftest.out`
3731 if test -z "$ac_err"; then
3733 eval "ac_cv_header_$ac_safe=yes"
3736 echo "configure: failed program was:" >&5
3737 cat conftest.
$ac_ext >&5
3739 eval "ac_cv_header_$ac_safe=no"
3743 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3744 echo "$ac_t""yes" 1>&6
3745 GFXLIBS
="$GFXLIBS -lpng -lz" GFXFLAGS
="$GFXFLAGS -DUSE_PNG"
3746 supported_gfx
="$supported_gfx PNG"
3748 echo "$ac_t""no" 1>&6
3751 CPPFLAGS
=$my_old_cppflags
3757 # Check whether --enable-jpeg or --disable-jpeg was given.
3758 if test "${enable_jpeg+set}" = set; then
3759 enableval
="$enable_jpeg"
3766 if test "$jpeg" = yes; then
3767 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
3768 echo "configure:3769: checking for jpeg_destroy_compress in -ljpeg" >&5
3769 ac_lib_var
=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
3770 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3771 echo $ac_n "(cached) $ac_c" 1>&6
3773 ac_save_LIBS
="$LIBS"
3774 LIBS
="-ljpeg $GFX_INC_PATH $GFXLFLAGS $XLFLAGS $LIBS"
3775 cat > conftest.
$ac_ext <<EOF
3776 #line 3777 "configure"
3777 #include "confdefs.h"
3778 /* Override any gcc2 internal prototype to avoid an error. */
3779 /* We use char because int might match the return type of a gcc2
3780 builtin and then its argument prototype would still apply. */
3781 char jpeg_destroy_compress();
3784 jpeg_destroy_compress()
3787 if { (eval echo configure
:3788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3789 eval "ac_cv_lib_$ac_lib_var=yes"
3791 echo "configure: failed program was:" >&5
3792 cat conftest.
$ac_ext >&5
3794 eval "ac_cv_lib_$ac_lib_var=no"
3797 LIBS
="$ac_save_LIBS"
3800 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3801 echo "$ac_t""yes" 1>&6
3804 echo "$ac_t""no" 1>&6
3809 if test "$my_libok" = yes; then
3810 my_old_cppflags
=$CPPFLAGS
3811 CPPFLAGS
="$CPPFLAGS $GFX_INC_PATH $XCFLAGS"
3812 cat > conftest.
$ac_ext <<EOF
3813 #line 3814 "configure"
3814 #include "confdefs.h"
3817 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3818 { (eval echo configure
:3819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3819 ac_err
=`grep -v '^ *+' conftest.out`
3820 if test -z "$ac_err"; then
3822 GFXLIBS
="$GFXLIBS -ljpeg" GFXFLAGS
="$GFXFLAGS -DUSE_JPEG"
3823 supported_gfx
="$supported_gfx JPEG"
3826 echo "configure: failed program was:" >&5
3827 cat conftest.
$ac_ext >&5
3832 CPPFLAGS
=$my_old_cppflags
3838 # Check whether --enable-gif or --disable-gif was given.
3839 if test "${enable_gif+set}" = set; then
3840 enableval
="$enable_gif"
3847 if test "$gif" = yes; then
3849 echo $ac_n "checking for DGifOpenFileName in -lungif""... $ac_c" 1>&6
3850 echo "configure:3851: checking for DGifOpenFileName in -lungif" >&5
3851 ac_lib_var
=`echo ungif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
3852 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3853 echo $ac_n "(cached) $ac_c" 1>&6
3855 ac_save_LIBS
="$LIBS"
3856 LIBS
="-lungif $GFX_INC_PATH $GFXLFLAGS $XLFLAGS $XLIBS $LIBS"
3857 cat > conftest.
$ac_ext <<EOF
3858 #line 3859 "configure"
3859 #include "confdefs.h"
3860 /* Override any gcc2 internal prototype to avoid an error. */
3861 /* We use char because int might match the return type of a gcc2
3862 builtin and then its argument prototype would still apply. */
3863 char DGifOpenFileName();
3869 if { (eval echo configure
:3870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3871 eval "ac_cv_lib_$ac_lib_var=yes"
3873 echo "configure: failed program was:" >&5
3874 cat conftest.
$ac_ext >&5
3876 eval "ac_cv_lib_$ac_lib_var=no"
3879 LIBS
="$ac_save_LIBS"
3882 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3883 echo "$ac_t""yes" 1>&6
3884 my_libok
=yes my_libname
=ungif
3886 echo "$ac_t""no" 1>&6
3887 retry
=yes my_libok
=no
3890 if test "$retry" = yes; then
3891 echo $ac_n "checking for DGifOpenFileName in -lgif""... $ac_c" 1>&6
3892 echo "configure:3893: checking for DGifOpenFileName in -lgif" >&5
3893 ac_lib_var
=`echo gif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
3894 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3895 echo $ac_n "(cached) $ac_c" 1>&6
3897 ac_save_LIBS
="$LIBS"
3898 LIBS
="-lgif $GFX_INC_PATH $GFXLFLAGS $XLFLAGS $XLIBS $LIBS"
3899 cat > conftest.
$ac_ext <<EOF
3900 #line 3901 "configure"
3901 #include "confdefs.h"
3902 /* Override any gcc2 internal prototype to avoid an error. */
3903 /* We use char because int might match the return type of a gcc2
3904 builtin and then its argument prototype would still apply. */
3905 char DGifOpenFileName();
3911 if { (eval echo configure
:3912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3913 eval "ac_cv_lib_$ac_lib_var=yes"
3915 echo "configure: failed program was:" >&5
3916 cat conftest.
$ac_ext >&5
3918 eval "ac_cv_lib_$ac_lib_var=no"
3921 LIBS
="$ac_save_LIBS"
3924 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3925 echo "$ac_t""yes" 1>&6
3926 my_libok
=yes my_libname
=gif
3928 echo "$ac_t""no" 1>&6
3934 if test "$my_libok" = yes; then
3935 my_old_cppflags
=$CPPFLAGS
3936 CPPFLAGS
="$CPPFLAGS $GFX_INC_PATH $XCFLAGS"
3937 ac_safe
=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
3938 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
3939 echo "configure:3940: checking for gif_lib.h" >&5
3940 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3941 echo $ac_n "(cached) $ac_c" 1>&6
3943 cat > conftest.
$ac_ext <<EOF
3944 #line 3945 "configure"
3945 #include "confdefs.h"
3946 #include <gif_lib.h>
3948 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3949 { (eval echo configure
:3950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3950 ac_err
=`grep -v '^ *+' conftest.out`
3951 if test -z "$ac_err"; then
3953 eval "ac_cv_header_$ac_safe=yes"
3956 echo "configure: failed program was:" >&5
3957 cat conftest.
$ac_ext >&5
3959 eval "ac_cv_header_$ac_safe=no"
3963 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3964 echo "$ac_t""yes" 1>&6
3965 GFXLIBS
="$GFXLIBS -l$my_libname" GFXFLAGS
="$GFXFLAGS -DUSE_GIF"
3966 supported_gfx
="$supported_gfx GIF"
3968 echo "$ac_t""no" 1>&6
3971 CPPFLAGS
=$my_old_cppflags
3977 # Check whether --enable-tiff or --disable-tiff was given.
3978 if test "${enable_tiff+set}" = set; then
3979 enableval
="$enable_tiff"
3987 # TIFF can optionally have JPEG and/or zlib support. Must find out
3988 # when they are supported so that correct library flags are passed during
3989 # detection and linkage
3992 # By default use xpm icons if tiff is not found.
3996 if test "$tif" = yes; then
3998 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
3999 echo "configure:4000: checking for TIFFGetVersion in -ltiff" >&5
4000 ac_lib_var
=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4001 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4002 echo $ac_n "(cached) $ac_c" 1>&6
4004 ac_save_LIBS
="$LIBS"
4005 LIBS
="-ltiff $GFX_INC_PATH $GFXLFLAGS $XLFLAGS $XLIBS $GFXLIBS -lm $LIBS"
4006 cat > conftest.
$ac_ext <<EOF
4007 #line 4008 "configure"
4008 #include "confdefs.h"
4009 /* Override any gcc2 internal prototype to avoid an error. */
4010 /* We use char because int might match the return type of a gcc2
4011 builtin and then its argument prototype would still apply. */
4012 char TIFFGetVersion();
4018 if { (eval echo configure
:4019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4020 eval "ac_cv_lib_$ac_lib_var=yes"
4022 echo "configure: failed program was:" >&5
4023 cat conftest.
$ac_ext >&5
4025 eval "ac_cv_lib_$ac_lib_var=no"
4028 LIBS
="$ac_save_LIBS"
4031 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4032 echo "$ac_t""yes" 1>&6
4033 my_libok
=yes my_libname
="-ltiff"
4035 echo "$ac_t""no" 1>&6
4039 unset ac_cv_lib_tiff_TIFFGetVersion
4040 if test "$my_libok" = no
; then
4041 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
4042 echo "configure:4043: checking for TIFFGetVersion in -ltiff" >&5
4043 ac_lib_var
=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4044 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4045 echo $ac_n "(cached) $ac_c" 1>&6
4047 ac_save_LIBS
="$LIBS"
4048 LIBS
="-ltiff $GFX_INC_PATH $GFXLFLAGS $XLFLAGS $XLIBS $GFXLIBS -lz -lm $LIBS"
4049 cat > conftest.
$ac_ext <<EOF
4050 #line 4051 "configure"
4051 #include "confdefs.h"
4052 /* Override any gcc2 internal prototype to avoid an error. */
4053 /* We use char because int might match the return type of a gcc2
4054 builtin and then its argument prototype would still apply. */
4055 char TIFFGetVersion();
4061 if { (eval echo configure
:4062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4063 eval "ac_cv_lib_$ac_lib_var=yes"
4065 echo "configure: failed program was:" >&5
4066 cat conftest.
$ac_ext >&5
4068 eval "ac_cv_lib_$ac_lib_var=no"
4071 LIBS
="$ac_save_LIBS"
4074 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4075 echo "$ac_t""yes" 1>&6
4076 my_libok
=yes my_libname
="-ltiff -lz"
4078 echo "$ac_t""no" 1>&6
4084 if test "$my_libok" = no
; then
4085 echo $ac_n "checking for TIFFGetVersion in -ltiff34""... $ac_c" 1>&6
4086 echo "configure:4087: checking for TIFFGetVersion in -ltiff34" >&5
4087 ac_lib_var
=`echo tiff34'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4088 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4089 echo $ac_n "(cached) $ac_c" 1>&6
4091 ac_save_LIBS
="$LIBS"
4092 LIBS
="-ltiff34 $GFX_INC_PATH $GFXLFLAGS $XLFLAGS $XLIBS $GFXLIBS -lm $LIBS"
4093 cat > conftest.
$ac_ext <<EOF
4094 #line 4095 "configure"
4095 #include "confdefs.h"
4096 /* Override any gcc2 internal prototype to avoid an error. */
4097 /* We use char because int might match the return type of a gcc2
4098 builtin and then its argument prototype would still apply. */
4099 char TIFFGetVersion();
4105 if { (eval echo configure
:4106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4107 eval "ac_cv_lib_$ac_lib_var=yes"
4109 echo "configure: failed program was:" >&5
4110 cat conftest.
$ac_ext >&5
4112 eval "ac_cv_lib_$ac_lib_var=no"
4115 LIBS
="$ac_save_LIBS"
4118 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4119 echo "$ac_t""yes" 1>&6
4120 my_libok
=yes my_libname
="-ltiff34"
4122 echo "$ac_t""no" 1>&6
4128 if test "$my_libok" = yes; then
4129 my_old_cppflags
=$CPPFLAGS
4130 CPPFLAGS
="$CPPFLAGS $GFX_INC_PATH $XCFLAGS"
4131 ac_safe
=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
4132 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
4133 echo "configure:4134: checking for tiffio.h" >&5
4134 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4135 echo $ac_n "(cached) $ac_c" 1>&6
4137 cat > conftest.
$ac_ext <<EOF
4138 #line 4139 "configure"
4139 #include "confdefs.h"
4142 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4143 { (eval echo configure
:4144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4144 ac_err
=`grep -v '^ *+' conftest.out`
4145 if test -z "$ac_err"; then
4147 eval "ac_cv_header_$ac_safe=yes"
4150 echo "configure: failed program was:" >&5
4151 cat conftest.
$ac_ext >&5
4153 eval "ac_cv_header_$ac_safe=no"
4157 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4158 echo "$ac_t""yes" 1>&6
4159 GFXFLAGS
="$GFXFLAGS -DUSE_TIFF" GFXLIBS
="$my_libname $GFXLIBS"
4160 ICONEXT
="tiff" supported_gfx
="$supported_gfx TIFF"
4162 echo "$ac_t""no" 1>&6
4165 CPPFLAGS
=$my_old_cppflags
4179 # Check whether --enable-debug or --disable-debug was given.
4180 if test "${enable_debug+set}" = set; then
4181 enableval
="$enable_debug"
4188 if test "$enable_debug" = yes; then
4190 # Efence makes things too slow. Add it by hand in the Makefiles
4191 # if it is really needed.
4192 # AC_CHECK_LIB(efence, malloc, LIBS="$LIBS -lefence")
4198 # Check whether --enable-sound or --disable-sound was given.
4199 if test "${enable_sound+set}" = set; then
4200 enableval
="$enable_sound"
4206 if test "$sound" = yes; then
4207 SOUND
="#define WMSOUND"
4209 SOUND
="#undef WMSOUND"
4214 # AC_PREFIX_PROGRAM(wmaker)
4216 if test "${prefix}" = "NONE"; then
4219 if test "${exec_prefix}" = "NONE"; then
4220 exec_prefix
='$(prefix)'
4223 # Check whether --with-pixmapdir or --without-pixmapdir was given.
4224 if test "${with_pixmapdir+set}" = set; then
4225 withval
="$with_pixmapdir"
4230 if test "x$with_pixmapdir" != "x"; then
4231 pixmapdir
=$with_pixmapdir
4233 pixmapdir
='$(datadir)/pixmaps'
4242 # Check whether --with-appspath or --without-appspath was given.
4243 if test "${with_appspath+set}" = set; then
4244 withval
="$with_appspath"
4249 if test "x$appspath" = "x"; then
4250 gnustepdir
='$(prefix)/GNUstep'
4252 if test "x$GNUSTEP_LOCAL_ROOT" != "x" ; then
4253 gnustepdir
=`echo "$GNUSTEP_LOCAL_ROOT" | sed -e "s|^${prefix}|prefix|"`
4254 gnustepdir
=`echo $gnustepdir | sed -e 's|^prefix|${prefix}|'`
4257 with_appspath
=$gnustepdir/Apps
4260 wprefsdir
=$with_appspath/WPrefs.app
4266 # Check whether --enable-single-icon or --disable-single-icon was given.
4267 if test "${enable_single_icon+set}" = set; then
4268 enableval
="$enable_single_icon"
4269 if test "$enableval" = yes; then
4270 REDUCE_APPICONS
="#define REDUCE_APPICONS"
4272 REDUCE_APPICONS
="#undef REDUCE_APPICONS"
4275 REDUCE_APPICONS
="#undef REDUCE_APPICONS"
4282 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4283 echo "configure:4284: checking for sys/wait.h that is POSIX.1 compatible" >&5
4284 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
4285 echo $ac_n "(cached) $ac_c" 1>&6
4287 cat > conftest.
$ac_ext <<EOF
4288 #line 4289 "configure"
4289 #include "confdefs.h"
4290 #include <sys/types.h>
4291 #include <sys/wait.h>
4293 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4296 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4301 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4304 if { (eval echo configure
:4305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4306 ac_cv_header_sys_wait_h
=yes
4308 echo "configure: failed program was:" >&5
4309 cat conftest.
$ac_ext >&5
4311 ac_cv_header_sys_wait_h
=no
4316 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4317 if test $ac_cv_header_sys_wait_h = yes; then
4318 cat >> confdefs.h
<<\EOF
4319 #define HAVE_SYS_WAIT_H 1
4324 for ac_hdr
in fcntl.h limits.h sys
/ioctl.h sys
/time.h sys
/types.h\
4325 libintl.h sys
/select.h poll.h
4327 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4328 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4329 echo "configure:4330: checking for $ac_hdr" >&5
4330 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4331 echo $ac_n "(cached) $ac_c" 1>&6
4333 cat > conftest.
$ac_ext <<EOF
4334 #line 4335 "configure"
4335 #include "confdefs.h"
4338 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4339 { (eval echo configure
:4340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4340 ac_err
=`grep -v '^ *+' conftest.out`
4341 if test -z "$ac_err"; then
4343 eval "ac_cv_header_$ac_safe=yes"
4346 echo "configure: failed program was:" >&5
4347 cat conftest.
$ac_ext >&5
4349 eval "ac_cv_header_$ac_safe=no"
4353 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4354 echo "$ac_t""yes" 1>&6
4355 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4356 cat >> confdefs.h
<<EOF
4357 #define $ac_tr_hdr 1
4361 echo "$ac_t""no" 1>&6
4368 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
4369 echo "configure:4370: checking for sys_siglist declaration in signal.h or unistd.h" >&5
4370 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
4371 echo $ac_n "(cached) $ac_c" 1>&6
4373 cat > conftest.
$ac_ext <<EOF
4374 #line 4375 "configure"
4375 #include "confdefs.h"
4376 #include <sys/types.h>
4378 /* NetBSD declares sys_siglist in unistd.h. */
4379 #ifdef HAVE_UNISTD_H
4383 char *msg = *(sys_siglist + 1);
4386 if { (eval echo configure
:4387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4388 ac_cv_decl_sys_siglist
=yes
4390 echo "configure: failed program was:" >&5
4391 cat conftest.
$ac_ext >&5
4393 ac_cv_decl_sys_siglist
=no
4398 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
4399 if test $ac_cv_decl_sys_siglist = yes; then
4400 cat >> confdefs.h
<<\EOF
4401 #define SYS_SIGLIST_DECLARED 1
4406 echo $ac_n "checking for working const""... $ac_c" 1>&6
4407 echo "configure:4408: checking for working const" >&5
4408 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4409 echo $ac_n "(cached) $ac_c" 1>&6
4411 cat > conftest.
$ac_ext <<EOF
4412 #line 4413 "configure"
4413 #include "confdefs.h"
4417 /* Ultrix mips cc rejects this. */
4418 typedef int charset[2]; const charset x;
4419 /* SunOS 4.1.1 cc rejects this. */
4420 char const *const *ccp;
4422 /* NEC SVR4.0.2 mips cc rejects this. */
4423 struct point {int x, y;};
4424 static struct point const zero = {0,0};
4425 /* AIX XL C 1.02.0.0 rejects this.
4426 It does not let you subtract one const X* pointer from another in an arm
4427 of an if-expression whose if-part is not a constant expression */
4428 const char *g = "string";
4429 ccp = &g + (g ? g-g : 0);
4430 /* HPUX 7.0 cc rejects these. */
4433 ccp = (char const *const *) p;
4434 { /* SCO 3.2v4 cc rejects this. */
4436 char const *s = 0 ? (char *) 0 : (char const *) 0;
4440 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4442 const int *foo = &x[0];
4445 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4446 typedef const int *iptr;
4450 { /* AIX XL C 1.02.0.0 rejects this saying
4451 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4452 struct s { int j; const int *ap[3]; };
4453 struct s *b; b->j = 5;
4455 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4461 if { (eval echo configure
:4462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4465 echo "configure: failed program was:" >&5
4466 cat conftest.
$ac_ext >&5
4473 echo "$ac_t""$ac_cv_c_const" 1>&6
4474 if test $ac_cv_c_const = no
; then
4475 cat >> confdefs.h
<<\EOF
4481 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4482 echo "configure:4483: checking for ANSI C header files" >&5
4483 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4484 echo $ac_n "(cached) $ac_c" 1>&6
4486 cat > conftest.
$ac_ext <<EOF
4487 #line 4488 "configure"
4488 #include "confdefs.h"
4494 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4495 { (eval echo configure
:4496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4496 ac_err
=`grep -v '^ *+' conftest.out`
4497 if test -z "$ac_err"; then
4499 ac_cv_header_stdc
=yes
4502 echo "configure: failed program was:" >&5
4503 cat conftest.
$ac_ext >&5
4505 ac_cv_header_stdc
=no
4509 if test $ac_cv_header_stdc = yes; then
4510 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4511 cat > conftest.
$ac_ext <<EOF
4512 #line 4513 "configure"
4513 #include "confdefs.h"
4516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4517 egrep "memchr" >/dev
/null
2>&1; then
4521 ac_cv_header_stdc
=no
4527 if test $ac_cv_header_stdc = yes; then
4528 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4529 cat > conftest.
$ac_ext <<EOF
4530 #line 4531 "configure"
4531 #include "confdefs.h"
4534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4535 egrep "free" >/dev
/null
2>&1; then
4539 ac_cv_header_stdc
=no
4545 if test $ac_cv_header_stdc = yes; then
4546 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4547 if test "$cross_compiling" = yes; then
4550 cat > conftest.
$ac_ext <<EOF
4551 #line 4552 "configure"
4552 #include "confdefs.h"
4554 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4555 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4556 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4557 int main () { int i; for (i = 0; i < 256; i++)
4558 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4562 if { (eval echo configure
:4563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4566 echo "configure: failed program was:" >&5
4567 cat conftest.
$ac_ext >&5
4569 ac_cv_header_stdc
=no
4577 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4578 if test $ac_cv_header_stdc = yes; then
4579 cat >> confdefs.h
<<\EOF
4580 #define STDC_HEADERS 1
4585 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4586 echo "configure:4587: checking for size_t" >&5
4587 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4588 echo $ac_n "(cached) $ac_c" 1>&6
4590 cat > conftest.
$ac_ext <<EOF
4591 #line 4592 "configure"
4592 #include "confdefs.h"
4593 #include <sys/types.h>
4599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4600 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
4602 ac_cv_type_size_t
=yes
4605 ac_cv_type_size_t
=no
4610 echo "$ac_t""$ac_cv_type_size_t" 1>&6
4611 if test $ac_cv_type_size_t = no
; then
4612 cat >> confdefs.h
<<\EOF
4613 #define size_t unsigned
4618 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
4619 echo "configure:4620: checking for pid_t" >&5
4620 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
4621 echo $ac_n "(cached) $ac_c" 1>&6
4623 cat > conftest.
$ac_ext <<EOF
4624 #line 4625 "configure"
4625 #include "confdefs.h"
4626 #include <sys/types.h>
4632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4633 egrep "pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
4635 ac_cv_type_pid_t
=yes
4643 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
4644 if test $ac_cv_type_pid_t = no
; then
4645 cat >> confdefs.h
<<\EOF
4651 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4652 echo "configure:4653: checking whether time.h and sys/time.h may both be included" >&5
4653 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4654 echo $ac_n "(cached) $ac_c" 1>&6
4656 cat > conftest.
$ac_ext <<EOF
4657 #line 4658 "configure"
4658 #include "confdefs.h"
4659 #include <sys/types.h>
4660 #include <sys/time.h>
4666 if { (eval echo configure
:4667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4668 ac_cv_header_time
=yes
4670 echo "configure: failed program was:" >&5
4671 cat conftest.
$ac_ext >&5
4673 ac_cv_header_time
=no
4678 echo "$ac_t""$ac_cv_header_time" 1>&6
4679 if test $ac_cv_header_time = yes; then
4680 cat >> confdefs.h
<<\EOF
4681 #define TIME_WITH_SYS_TIME 1
4691 #AC_ARG_ENABLE(shared,
4692 #[ --enable-shared build libraries as shared ], enable_shared=yes,
4695 if test "$enable_shared" = yes; then
4696 if test "$GCC" = yes; then
4698 LDSHARED
='$CC -shared'
4700 # find system name and corresponding cc options
4701 case `(uname -sr || echo unknown) 2>/dev/null` in
4703 _CFLAGS
="-fast -xcg89 -KPIC -R."
4709 _CFLAGS
="-ansi -rpath ."
4710 LDSHARED
='$CC -shared';;
4712 _CFLAGS
="-dy -KPIC "
4713 LDSHARED
='$CC -dy -KPIC -G';;
4717 SHAREDLIBS
='libz.sl';;
4720 LDSHARED
='$CC -shared';;
4724 echo $ac_n "checking for shared library support""... $ac_c" 1>&6
4725 echo "configure:4726: checking for shared library support" >&5
4729 int hello() { printf("hello\n"); }
4733 # we must test in two steps (cc then ld), required at least on SunOS 4.x
4734 if test "`($CC -c $_CFLAGS $test.c) 2>&1`" = "" &&
4735 test "`($LDSHARED -o $test.so $test.o) 2>&1`" = ""; then
4736 CFLAGS
="$CFLAGS $_CFLAGS"
4737 WRASTERLIB
='libwraster.so.$(WRASTER_VER)'
4738 WINGSLIB
='libWINGs.so.$(WINGS_VER)'
4739 echo "$ac_t""yes, building shared" 1>&6
4742 WRASTERLIB
='libwraster.a'
4743 WINGSLIB
='libWINGs.a'
4744 echo "$ac_t""no, building static" 1>&6
4746 rm -f $test.co
$test.so
4749 #AC_SUBST(WRASTER_VER)
4750 #AC_SUBST(WINGS_VER)
4751 #AC_SUBST(WRASTERLIB)
4752 # AC_SUBST(WINGSLIB)
4753 # AC_SUBST(LDSHARED)
4760 cat > confcache
<<\EOF
4761 # This file is a shell script that caches the results of configure
4762 # tests run on this system so they can be shared between configure
4763 # scripts and configure runs. It is not useful on other systems.
4764 # If it contains results you don't want to keep, you may remove or edit it.
4766 # By default, configure uses ./config.cache as the cache file,
4767 # creating it if it does not exist already. You can give configure
4768 # the --cache-file=FILE option to use a different cache file; that is
4769 # what configure does when it calls configure scripts in
4770 # subdirectories, so they share the cache.
4771 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4772 # config.status only pays attention to the cache file if you give it the
4773 # --recheck option to rerun configure.
4776 # The following way of writing the cache mishandles newlines in values,
4777 # but we know of no workaround that is simple, portable, and efficient.
4778 # So, don't put newlines in cache variables' values.
4779 # Ultrix sh set writes to stderr and can't be redirected directly,
4780 # and sets the high bit in the cache file unless we assign to the vars.
4782 case `(ac_space=' '; set) 2>&1` in
4784 # `set' does not quote correctly, so add quotes (double-quote substitution
4785 # turns \\\\ into \\, and sed turns \\ into \).
4787 -e "s/'/'\\\\''/g" \
4788 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4791 # `set' quotes correctly as required by POSIX, so do not add quotes.
4792 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4795 if cmp -s $cache_file confcache
; then
4798 if test -w $cache_file; then
4799 echo "updating cache $cache_file"
4800 cat confcache
> $cache_file
4802 echo "not updating unwritable cache $cache_file"
4807 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4809 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4810 # Let make expand exec_prefix.
4811 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4813 # Any assignment to VPATH causes Sun make to only execute
4814 # the first set of double-colon rules, so remove it if not needed.
4815 # If there is a colon in the path, we need to keep it.
4816 if test "x$srcdir" = x.
; then
4817 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4820 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4822 DEFS
=-DHAVE_CONFIG_H
4824 # Without the "./", some shells look in PATH for config.status.
4825 : ${CONFIG_STATUS=./config.status}
4827 echo creating
$CONFIG_STATUS
4828 rm -f $CONFIG_STATUS
4829 cat > $CONFIG_STATUS <<EOF
4831 # Generated automatically by configure.
4832 # Run this file to recreate the current configuration.
4833 # This directory was configured as follows,
4834 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4836 # $0 $ac_configure_args
4838 # Compiler output produced by configure, useful for debugging
4839 # configure, is in ./config.log if it exists.
4841 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4844 case "\$ac_option" in
4845 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4846 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4847 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4848 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4849 echo "$CONFIG_STATUS generated by autoconf version 2.12"
4851 -help | --help | --hel | --he | --h)
4852 echo "\$ac_cs_usage"; exit 0 ;;
4853 *) echo "\$ac_cs_usage"; exit 1 ;;
4857 ac_given_srcdir=$srcdir
4858 ac_given_INSTALL="$INSTALL"
4860 trap 'rm -fr `echo "Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
4861 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
4862 wrlib/Makefile doc/Makefile WindowMaker/Makefile \
4863 WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile \
4864 WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile \
4865 WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile \
4866 WindowMaker/Themes/Makefile \
4867 WindowMaker/Themes/Night.themed/Makefile \
4868 WindowMaker/Themes/Checker.themed/Makefile \
4869 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
4870 WPrefs.app/po/Makefile src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4872 cat >> $CONFIG_STATUS <<EOF
4874 # Protect against being on the right side of a sed subst in config.status.
4875 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4876 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4879 s%@CFLAGS@%$CFLAGS%g
4880 s%@CPPFLAGS@%$CPPFLAGS%g
4881 s%@CXXFLAGS@%$CXXFLAGS%g
4883 s%@LDFLAGS@%$LDFLAGS%g
4885 s%@exec_prefix@%$exec_prefix%g
4886 s%@prefix@%$prefix%g
4887 s%@program_transform_name@%$program_transform_name%g
4888 s%@bindir@%$bindir%g
4889 s%@sbindir@%$sbindir%g
4890 s%@libexecdir@%$libexecdir%g
4891 s%@datadir@%$datadir%g
4892 s%@sysconfdir@%$sysconfdir%g
4893 s%@sharedstatedir@%$sharedstatedir%g
4894 s%@localstatedir@%$localstatedir%g
4895 s%@libdir@%$libdir%g
4896 s%@includedir@%$includedir%g
4897 s%@oldincludedir@%$oldincludedir%g
4898 s%@infodir@%$infodir%g
4899 s%@mandir@%$mandir%g
4900 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4901 s%@INSTALL_DATA@%$INSTALL_DATA%g
4902 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4903 s%@PACKAGE@%$PACKAGE%g
4904 s%@VERSION@%$VERSION%g
4905 s%@ACLOCAL@%$ACLOCAL%g
4906 s%@AUTOCONF@%$AUTOCONF%g
4907 s%@AUTOMAKE@%$AUTOMAKE%g
4908 s%@AUTOHEADER@%$AUTOHEADER%g
4909 s%@MAKEINFO@%$MAKEINFO%g
4910 s%@SET_MAKE@%$SET_MAKE%g
4912 s%@host_alias@%$host_alias%g
4913 s%@host_cpu@%$host_cpu%g
4914 s%@host_vendor@%$host_vendor%g
4915 s%@host_os@%$host_os%g
4917 s%@RANLIB@%$RANLIB%g
4920 s%@LIBTOOL@%$LIBTOOL%g
4921 s%@subdirs@%$subdirs%g
4923 s%@ALLOCA@%$ALLOCA%g
4924 s%@CPP_PATH@%$CPP_PATH%g
4925 s%@XGETTEXT@%$XGETTEXT%g
4926 s%@I18N_MB@%$I18N_MB%g
4928 s%@INTLIBS@%$INTLIBS%g
4929 s%@NLSDIR@%$NLSDIR%g
4930 s%@MOFILES@%$MOFILES%g
4931 s%@WPMOFILES@%$WPMOFILES%g
4933 s%@X_CFLAGS@%$X_CFLAGS%g
4934 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
4935 s%@X_LIBS@%$X_LIBS%g
4936 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
4937 s%@X_LOCALE@%$X_LOCALE%g
4941 s%@XCFLAGS@%$XCFLAGS%g
4942 s%@XLFLAGS@%$XLFLAGS%g
4943 s%@GFXFLAGS@%$GFXFLAGS%g
4944 s%@GFXLFLAGS@%$GFXLFLAGS%g
4945 s%@GFXLIBS@%$GFXLIBS%g
4946 s%@ICONEXT@%$ICONEXT%g
4947 s%@DFLAGS@%$DFLAGS%g
4949 s%@pixmapdir@%$pixmapdir%g
4950 s%@wprefsdir@%$wprefsdir%g
4951 s%@REDUCE_APPICONS@%$REDUCE_APPICONS%g
4956 cat >> $CONFIG_STATUS <<\EOF
4958 # Split the substitutions into bite-sized pieces for seds with
4959 # small command number limits, like on Digital OSF/1 and HP-UX.
4960 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4961 ac_file
=1 # Number of current file.
4962 ac_beg
=1 # First line for current file.
4963 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4966 while $ac_more_lines; do
4967 if test $ac_beg -gt 1; then
4968 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4970 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4972 if test ! -s conftest.s
$ac_file; then
4974 rm -f conftest.s
$ac_file
4976 if test -z "$ac_sed_cmds"; then
4977 ac_sed_cmds
="sed -f conftest.s$ac_file"
4979 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4981 ac_file
=`expr $ac_file + 1`
4983 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4986 if test -z "$ac_sed_cmds"; then
4991 cat >> $CONFIG_STATUS <<EOF
4993 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
4994 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
4995 wrlib/Makefile doc/Makefile WindowMaker/Makefile \
4996 WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile \
4997 WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile \
4998 WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile \
4999 WindowMaker/Themes/Makefile \
5000 WindowMaker/Themes/Night.themed/Makefile \
5001 WindowMaker/Themes/Checker.themed/Makefile \
5002 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
5003 WPrefs.app/po/Makefile "}
5005 cat >> $CONFIG_STATUS <<\EOF
5006 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5007 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5009 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5010 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5011 *) ac_file_in
="${ac_file}.in" ;;
5014 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5016 # Remove last slash and all that follows it. Not all systems have dirname.
5017 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5018 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5019 # The file is in a subdirectory.
5020 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5021 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5022 # A "../" for each directory in $ac_dir_suffix.
5023 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5025 ac_dir_suffix
= ac_dots
=
5028 case "$ac_given_srcdir" in
5030 if test -z "$ac_dots"; then top_srcdir
=.
5031 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5032 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5034 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5035 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5038 case "$ac_given_INSTALL" in
5039 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5040 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5043 echo creating
"$ac_file"
5045 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5047 *Makefile
*) ac_comsub
="1i\\
5048 # $configure_input" ;;
5052 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5054 s%@configure_input@%$configure_input%g
5055 s%@srcdir@%$srcdir%g
5056 s%@top_srcdir@%$top_srcdir%g
5057 s%@INSTALL@%$INSTALL%g
5058 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5062 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5063 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5065 # ac_d sets the value in "#define NAME VALUE" lines.
5066 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5067 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5070 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5071 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5072 ac_uB
='\([ ]\)%\1#\2define\3'
5075 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5076 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5077 ac_eB
='$%\1#\2define\3'
5081 if test "${CONFIG_HEADERS+set}" != set; then
5083 cat >> $CONFIG_STATUS <<EOF
5084 CONFIG_HEADERS="src/config.h"
5086 cat >> $CONFIG_STATUS <<\EOF
5088 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5089 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5091 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5092 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5093 *) ac_file_in
="${ac_file}.in" ;;
5096 echo creating
$ac_file
5098 rm -f conftest.frag conftest.
in conftest.out
5099 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5100 cat $ac_file_inputs > conftest.
in
5104 # Transform confdefs.h into a sed script conftest.vals that substitutes
5105 # the proper values into config.h.in to produce config.h. And first:
5106 # Protect against being on the right side of a sed subst in config.status.
5107 # Protect against being in an unquoted here document in config.status.
5109 cat > conftest.hdr
<<\EOF
5112 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5116 sed -n -f conftest.hdr confdefs.h > conftest.vals
5119 # This sed command replaces #undef with comments. This is necessary, for
5120 # example, in the case of _POSIX_SOURCE, which is predefined and required
5121 # on some systems where configure will not decide to define it.
5122 cat >> conftest.vals <<\EOF
5123 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5126 # Break up conftest.vals because some shells have a limit on
5127 # the size of here documents, and old seds have small limits too.
5132 ac_lines=`grep -c . conftest.vals
`
5133 # grep -c gives empty output for an empty file on some AIX systems.
5134 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5135 # Write a limited-size here document to conftest.frag.
5136 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5137 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5139 sed -f conftest.frag conftest.in > conftest.out
5141 mv conftest.out conftest.in
5143 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5145 mv conftest.tail conftest.vals
5149 cat >> $CONFIG_STATUS <<\EOF
5150 rm -f conftest.frag conftest.h
5151 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5152 cat conftest.in >> conftest.h
5154 if cmp -s $ac_file conftest.h 2>/dev/null; then
5155 echo "$ac_file is unchanged"
5158 # Remove last slash and all that follows it. Not all systems have dirname.
5159 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5160 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5161 # The file is in a subdirectory.
5162 test ! -d "$ac_dir" && mkdir "$ac_dir"
5165 mv conftest.h $ac_file
5170 cat >> $CONFIG_STATUS <<EOF
5174 cat >> $CONFIG_STATUS <<\EOF
5175 test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h
5179 chmod +x $CONFIG_STATUS
5180 rm -fr confdefs* $ac_clean_files
5181 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5183 if test "$no_recursion" != yes; then
5185 # Remove --cache-file and --srcdir arguments so they do not pile up.
5186 ac_sub_configure_args=
5188 for ac_arg in $ac_configure_args; do
5189 if test -n "$ac_prev"; then
5194 -cache-file | --cache-file | --cache-fil | --cache-fi \
5195 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
5196 ac_prev=cache_file ;;
5197 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
5198 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
5200 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
5202 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5204 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
5208 for ac_config_dir in libPropList; do
5210 # Do not complain, so a configure script can configure whichever
5211 # parts of a large source tree are present.
5212 if test ! -d $srcdir/$ac_config_dir; then
5216 echo configuring in $ac_config_dir
5221 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
5223 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
5231 # A "../" for each directory in /$ac_config_dir.
5232 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
5235 .) # No --srcdir option. We are building in place.
5236 ac_sub_srcdir=$srcdir ;;
5237 /*) # Absolute path.
5238 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
5240 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
5243 # Check for guested configure; otherwise get Cygnus style configure.
5244 if test -f $ac_sub_srcdir/configure; then
5245 ac_sub_configure=$ac_sub_srcdir/configure
5246 elif test -f $ac_sub_srcdir/configure.in; then
5247 ac_sub_configure=$ac_configure
5249 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
5253 # The recursion is here.
5254 if test -n "$ac_sub_configure"; then
5256 # Make the cache file name correct relative to the subdirectory.
5257 case "$cache_file" in
5258 /*) ac_sub_cache_file=$cache_file ;;
5260 ac_sub_cache_file="$ac_dots$cache_file" ;;
5262 case "$ac_given_INSTALL" in
5263 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5264 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5267 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
5268 # The eval makes quoting arguments work.
5269 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
5272 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
5284 echo "WFLAGS=\"$LIBPL_INC_PATH -I$prefix/include\"" > WINGs-flags
5285 echo "WLIBS=\"-L$exec_prefix/lib -lWINGs -lwraster $LIBPL_LIBS $GFXLIBS -lm\""\
5286 | sed -e 's|\$(prefix)|'"$prefix|" >> WINGs-flags
5290 supported_gfx="$supported_gfx PPM (built-in)"
5292 if test "x$MOFILES" = "x"; then
5299 echo "Window Maker was configured as follows:"
5301 echo "Installation path prefix: $prefix"
5302 echo "Installation path prefix for binaries: $exec_prefix" | sed -e 's|\$(prefix)|'"$prefix|"
5303 echo "Installation path for WPrefs.app: $wprefsdir" | sed -e 's|\$(prefix)|'"$prefix|"
5304 echo "Graphic format libraries: $supported_gfx"
5305 echo "Sound support: $sound"
5306 echo "Translated message files to install: $mof"
5307 if test "x$MOFILES" != "x"; then
5308 echo "Installation path of translated messages: $NLSDIR" | sed -e 's|\$(prefix)|'"$prefix|"
5310 if test x$kde_on != x; then
5311 echo "KDE support enabled"
5313 if test x$LITE != x; then
5314 echo "Duplicated stuff with KDE will be removed"
5316 if test x$gnome_on != x; then
5317 echo "GNOME support enabled"
5320 if test "$jpeg_not_found" = yes; then
5321 echo "JPEG support will not be included because the JPEG library is"
5322 echo "not installed correctly or was not found. Background images"
5323 echo "from themes will not display as they usually are JPEG files."