3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-shared build shared libraries [default=yes]
16 --enable-shared=PKGS only build shared libraries if the current package
17 appears as an element in the PKGS list"
19 --enable-static build static libraries [default=yes]
20 --enable-static=PKGS only build shared libraries if the current package
21 appears as an element in the PKGS list"
23 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
25 --with-libs-from pass compiler flags to look for libraries"
27 --with-incs-from pass compiler flags to look for header files"
29 --with-nlsdir=PATH specify where the locale stuff should go "
31 --enable-gnome enable stuff needed for GNOME "
33 --enable-kde enable support for KDE window manager (kwm) hints "
35 --enable-openlook enable support for OPEN LOOK(tm) (olwm) hints "
37 --enable-lite disable some stuff (dont use it) "
39 --with-x use the X Window System"
41 --disable-locale disable use of X locale support"
43 --enable-modelock XKB keyboard language status support"
45 --disable-shape disable shaped window extension support"
47 --disable-shm disable usage of MIT-SHM extension"
49 --disable-xpm disable use of XPM pixmaps through libXpm"
51 --disable-png disable PNG support through libpng"
53 --disable-jpeg disable JPEG support through libjpeg"
55 --disable-gif disable GIF support through libgif or libungif"
57 --disable-tiff disable use of TIFF images through libtiff"
59 --enable-debug enable debugging "
61 --disable-sound disable sound support "
63 --with-pixmapdir=PATH specify where pixmaps are located [DATADIR/pixmaps]"
65 --with-appspath=PATH specify the directory for GNUstep applications"
67 --enable-single-icon use single application icon per WM_INSTANCE+WM_CLASS
70 --enable-usermenu user defined menus for applications
73 # Initialize some variables set by options.
74 # The variables have the same names as the options, with
75 # dashes changed to underlines.
77 cache_file
=.
/config.cache
86 program_transform_name
=s
,x
,x
,
94 bindir
='${exec_prefix}/bin'
95 sbindir
='${exec_prefix}/sbin'
96 libexecdir
='${exec_prefix}/libexec'
97 datadir
='${prefix}/share'
98 sysconfdir
='${prefix}/etc'
99 sharedstatedir
='${prefix}/com'
100 localstatedir
='${prefix}/var'
101 libdir
='${exec_prefix}/lib'
102 includedir
='${prefix}/include'
103 oldincludedir
='/usr/include'
104 infodir
='${prefix}/info'
105 mandir
='${prefix}/man'
107 # Initialize some other variables.
110 SHELL
=${CONFIG_SHELL-/bin/sh}
111 # Maximum number of lines to put in a shell here document.
118 # If the previous option needs an argument, assign it.
119 if test -n "$ac_prev"; then
120 eval "$ac_prev=\$ac_option"
126 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
130 # Accept the important Cygnus configure options, so we can diagnose typos.
134 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
136 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
137 bindir
="$ac_optarg" ;;
139 -build |
--build |
--buil |
--bui |
--bu)
141 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
142 build
="$ac_optarg" ;;
144 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
145 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
146 ac_prev
=cache_file
;;
147 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
148 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
149 cache_file
="$ac_optarg" ;;
151 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
153 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
155 datadir
="$ac_optarg" ;;
157 -disable-* |
--disable-*)
158 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
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'`
164 eval "enable_${ac_feature}=no" ;;
166 -enable-* |
--enable-*)
167 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
168 # Reject names that are not valid shell variable names.
169 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
170 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
172 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
177 eval "enable_${ac_feature}='$ac_optarg'" ;;
179 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
180 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
181 |
--exec |
--exe |
--ex)
182 ac_prev
=exec_prefix
;;
183 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
184 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
185 |
--exec=* |
--exe=* |
--ex=*)
186 exec_prefix
="$ac_optarg" ;;
188 -gas |
--gas |
--ga |
--g)
189 # Obsolete; use --with-gas.
192 -help |
--help |
--hel |
--he)
193 # Omit some internal or obsolete options to make the list less imposing.
194 # This message is too long to be a string in the A/UX 3.1 sh.
196 Usage: configure [options] [host]
197 Options: [defaults in brackets after descriptions]
199 --cache-file=FILE cache test results in FILE
200 --help print this message
201 --no-create do not create output files
202 --quiet, --silent do not print \`checking...' messages
203 --version print the version of autoconf that created configure
204 Directory and file names:
205 --prefix=PREFIX install architecture-independent files in PREFIX
207 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
209 --bindir=DIR user executables in DIR [EPREFIX/bin]
210 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
211 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
212 --datadir=DIR read-only architecture-independent data in DIR
214 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
215 --sharedstatedir=DIR modifiable architecture-independent data in DIR
217 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
218 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
219 --includedir=DIR C header files in DIR [PREFIX/include]
220 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
221 --infodir=DIR info documentation in DIR [PREFIX/info]
222 --mandir=DIR man documentation in DIR [PREFIX/man]
223 --srcdir=DIR find the sources in DIR [configure dir or ..]
224 --program-prefix=PREFIX prepend PREFIX to installed program names
225 --program-suffix=SUFFIX append SUFFIX to installed program names
226 --program-transform-name=PROGRAM
227 run sed PROGRAM on installed program names
231 --build=BUILD configure for building on BUILD [BUILD=HOST]
232 --host=HOST configure for HOST [guessed]
233 --target=TARGET configure for TARGET [TARGET=HOST]
234 Features and packages:
235 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
236 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
237 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
238 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
239 --x-includes=DIR X include files are in DIR
240 --x-libraries=DIR X library files are in DIR
242 if test -n "$ac_help"; then
243 echo "--enable and --with options recognized:$ac_help"
247 -host |
--host |
--hos |
--ho)
249 -host=* |
--host=* |
--hos=* |
--ho=*)
252 -includedir |
--includedir |
--includedi |
--included |
--include \
253 |
--includ |
--inclu |
--incl |
--inc)
254 ac_prev
=includedir
;;
255 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
256 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
257 includedir
="$ac_optarg" ;;
259 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
261 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
262 infodir
="$ac_optarg" ;;
264 -libdir |
--libdir |
--libdi |
--libd)
266 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
267 libdir
="$ac_optarg" ;;
269 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
270 |
--libexe |
--libex |
--libe)
271 ac_prev
=libexecdir
;;
272 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
273 |
--libexe=* |
--libex=* |
--libe=*)
274 libexecdir
="$ac_optarg" ;;
276 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
277 |
--localstate |
--localstat |
--localsta |
--localst \
278 |
--locals |
--local |
--loca |
--loc |
--lo)
279 ac_prev
=localstatedir
;;
280 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
281 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
282 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
283 localstatedir
="$ac_optarg" ;;
285 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
287 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
288 mandir
="$ac_optarg" ;;
291 # Obsolete; use --without-fp.
294 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
298 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
299 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
302 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
303 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
304 |
--oldin |
--oldi |
--old |
--ol |
--o)
305 ac_prev
=oldincludedir
;;
306 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
307 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
308 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
309 oldincludedir
="$ac_optarg" ;;
311 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
313 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
314 prefix
="$ac_optarg" ;;
316 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
317 |
--program-pre |
--program-pr |
--program-p)
318 ac_prev
=program_prefix
;;
319 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
320 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
321 program_prefix
="$ac_optarg" ;;
323 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
324 |
--program-suf |
--program-su |
--program-s)
325 ac_prev
=program_suffix
;;
326 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
327 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
328 program_suffix
="$ac_optarg" ;;
330 -program-transform-name |
--program-transform-name \
331 |
--program-transform-nam |
--program-transform-na \
332 |
--program-transform-n |
--program-transform- \
333 |
--program-transform |
--program-transfor \
334 |
--program-transfo |
--program-transf \
335 |
--program-trans |
--program-tran \
336 |
--progr-tra |
--program-tr |
--program-t)
337 ac_prev
=program_transform_name
;;
338 -program-transform-name=* |
--program-transform-name=* \
339 |
--program-transform-nam=* |
--program-transform-na=* \
340 |
--program-transform-n=* |
--program-transform-=* \
341 |
--program-transform=* |
--program-transfor=* \
342 |
--program-transfo=* |
--program-transf=* \
343 |
--program-trans=* |
--program-tran=* \
344 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
345 program_transform_name
="$ac_optarg" ;;
347 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
348 |
-silent |
--silent |
--silen |
--sile |
--sil)
351 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
353 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
355 sbindir
="$ac_optarg" ;;
357 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
358 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
359 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
361 ac_prev
=sharedstatedir
;;
362 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
363 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
364 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
366 sharedstatedir
="$ac_optarg" ;;
368 -site |
--site |
--sit)
370 -site=* |
--site=* |
--sit=*)
373 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
375 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
376 srcdir
="$ac_optarg" ;;
378 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
379 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
380 ac_prev
=sysconfdir
;;
381 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
382 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
383 sysconfdir
="$ac_optarg" ;;
385 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
387 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
388 target
="$ac_optarg" ;;
390 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
393 -version |
--version |
--versio |
--versi |
--vers)
394 echo "configure generated by autoconf version 2.13"
398 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
399 # Reject names that are not valid shell variable names.
400 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
401 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
403 ac_package
=`echo $ac_package| sed 's/-/_/g'`
408 eval "with_${ac_package}='$ac_optarg'" ;;
410 -without-* |
--without-*)
411 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
412 # Reject names that are not valid shell variable names.
413 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
414 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
416 ac_package
=`echo $ac_package| sed 's/-/_/g'`
417 eval "with_${ac_package}=no" ;;
420 # Obsolete; use --with-x.
423 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
424 |
--x-incl |
--x-inc |
--x-in |
--x-i)
425 ac_prev
=x_includes
;;
426 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
427 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
428 x_includes
="$ac_optarg" ;;
430 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
431 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
432 ac_prev
=x_libraries
;;
433 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
434 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
435 x_libraries
="$ac_optarg" ;;
437 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
441 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
442 echo "configure: warning: $ac_option: invalid host type" 1>&2
444 if test "x$nonopt" != xNONE
; then
445 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
453 if test -n "$ac_prev"; then
454 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
457 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
459 # File descriptor usage:
462 # 2 errors and warnings
463 # 3 some systems may open it to /dev/tty
464 # 4 used on the Kubota Titan
465 # 6 checking for... messages and results
466 # 5 compiler messages saved in config.log
467 if test "$silent" = yes; then
475 This file contains any messages produced by compilers while
476 running configure, to aid debugging if configure makes a mistake.
479 # Strip out --no-create and --no-recursion so they do not pile up.
480 # Also quote any args containing shell metacharacters.
485 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
486 |
--no-cr |
--no-c) ;;
487 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
488 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
489 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
490 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
491 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
496 # Only set these to C if already set. These must not be set unconditionally
497 # because not all systems understand e.g. LANG=C (notably SCO).
498 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
499 # Non-C LC_CTYPE values break the ctype check.
500 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
501 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
502 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
503 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
505 # confdefs.h avoids OS command line length limits that DEFS can exceed.
506 rm -rf conftest
* confdefs.h
507 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
510 # A filename unique to this package, relative to the directory that
511 # configure is in, which we can look for to find out if srcdir is correct.
512 ac_unique_file
=src
/WindowMaker.h
514 # Find the source files, if location was not specified.
515 if test -z "$srcdir"; then
516 ac_srcdir_defaulted
=yes
517 # Try the directory containing this script, then its parent.
519 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
520 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
522 if test ! -r $srcdir/$ac_unique_file; then
526 ac_srcdir_defaulted
=no
528 if test ! -r $srcdir/$ac_unique_file; then
529 if test "$ac_srcdir_defaulted" = yes; then
530 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
532 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
535 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
537 # Prefer explicitly selected file to automatically selected ones.
538 if test -z "$CONFIG_SITE"; then
539 if test "x$prefix" != xNONE
; then
540 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
542 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
545 for ac_site_file
in $CONFIG_SITE; do
546 if test -r "$ac_site_file"; then
547 echo "loading site script $ac_site_file"
552 if test -r "$cache_file"; then
553 echo "loading cache $cache_file"
556 echo "creating cache $cache_file"
561 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
562 ac_cpp
='$CPP $CPPFLAGS'
563 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
564 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
565 cross_compiling
=$ac_cv_prog_cc_cross
569 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
570 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
571 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
578 ac_n
= ac_c
='\c' ac_t
=
586 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
587 if test -f $ac_dir/install-sh
; then
589 ac_install_sh
="$ac_aux_dir/install-sh -c"
591 elif test -f $ac_dir/install.sh
; then
593 ac_install_sh
="$ac_aux_dir/install.sh -c"
597 if test -z "$ac_aux_dir"; then
598 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
600 ac_config_guess
=$ac_aux_dir/config.guess
601 ac_config_sub
=$ac_aux_dir/config.sub
602 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
604 # Find a good install program. We prefer a C program (faster),
605 # so one script is as good as another. But avoid the broken or
606 # incompatible versions:
607 # SysV /etc/install, /usr/sbin/install
608 # SunOS /usr/etc/install
611 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
612 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
613 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
614 # ./install, which can be erroneously created by make from ./install.sh.
615 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
616 echo "configure:617: checking for a BSD compatible install" >&5
617 if test -z "$INSTALL"; then
618 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
619 echo $ac_n "(cached) $ac_c" 1>&6
621 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
622 for ac_dir
in $PATH; do
623 # Account for people who put trailing slashes in PATH elements.
625 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
627 # OSF1 and SCO ODT 3.0 have their own names for install.
628 # Don't use installbsd from OSF since it installs stuff as root
630 for ac_prog
in ginstall scoinst
install; do
631 if test -f $ac_dir/$ac_prog; then
632 if test $ac_prog = install &&
633 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
634 # AIX install. It has an incompatible calling convention.
637 ac_cv_path_install
="$ac_dir/$ac_prog -c"
648 if test "${ac_cv_path_install+set}" = set; then
649 INSTALL
="$ac_cv_path_install"
651 # As a last resort, use the slow shell script. We don't cache a
652 # path for INSTALL within a source directory, because that will
653 # break other packages using the cache if that directory is
654 # removed, or if the path is relative.
655 INSTALL
="$ac_install_sh"
658 echo "$ac_t""$INSTALL" 1>&6
660 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
661 # It thinks the first close brace ends the variable substitution.
662 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
664 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
666 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
668 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
669 echo "configure:670: checking whether build environment is sane" >&5
672 echo timestamp
> conftestfile
673 # Do `set' in a subshell so we don't clobber the current shell's
674 # arguments. Must try -L first in case configure is actually a
675 # symlink; some systems play weird games with the mod time of symlinks
676 # (eg FreeBSD returns the mod time of the symlink's containing
679 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
680 if test "$*" = "X"; then
682 set X
`ls -t $srcdir/configure conftestfile`
684 if test "$*" != "X $srcdir/configure conftestfile" \
685 && test "$*" != "X conftestfile $srcdir/configure"; then
687 # If neither matched, then we have a broken ls. This can happen
688 # if, for instance, CONFIG_SHELL is bash and it inherits a
689 # broken ls alias from the environment. This has actually
690 # happened. Such a system could not be considered "sane".
691 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
692 alias in your environment" 1>&2; exit 1; }
695 test "$2" = conftestfile
701 { echo "configure: error: newly created file is older than distributed files!
702 Check your system clock" 1>&2; exit 1; }
705 echo "$ac_t""yes" 1>&6
706 if test "$program_transform_name" = s
,x
,x
,; then
707 program_transform_name
=
709 # Double any \ or $. echo might interpret backslashes.
710 cat <<\EOF_SED
> conftestsed
711 s
,\\,\\\\,g
; s
,\$
,$$
,g
713 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
716 test "$program_prefix" != NONE
&&
717 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
718 # Use a double $ so make ignores it.
719 test "$program_suffix" != NONE
&&
720 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
722 # sed with no file args requires a program.
723 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
725 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
726 echo "configure:727: checking whether ${MAKE-make} sets \${MAKE}" >&5
727 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
728 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
729 echo $ac_n "(cached) $ac_c" 1>&6
731 cat > conftestmake
<<\EOF
733 @
echo 'ac_maketemp="${MAKE}"'
735 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
736 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
737 if test -n "$ac_maketemp"; then
738 eval ac_cv_prog_make_
${ac_make}_set
=yes
740 eval ac_cv_prog_make_
${ac_make}_set
=no
744 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
745 echo "$ac_t""yes" 1>&6
748 echo "$ac_t""no" 1>&6
749 SET_MAKE
="MAKE=${MAKE-make}"
757 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
758 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
760 cat >> confdefs.h
<<EOF
761 #define PACKAGE "$PACKAGE"
764 cat >> confdefs.h
<<EOF
765 #define VERSION "$VERSION"
770 missing_dir
=`cd $ac_aux_dir && pwd`
771 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
772 echo "configure:773: checking for working aclocal" >&5
773 # Run test in a subshell; some versions of sh will print an error if
774 # an executable is not found, even if stderr is redirected.
775 # Redirect stdin to placate older versions of autoconf. Sigh.
776 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
778 echo "$ac_t""found" 1>&6
780 ACLOCAL
="$missing_dir/missing aclocal"
781 echo "$ac_t""missing" 1>&6
784 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
785 echo "configure:786: checking for working autoconf" >&5
786 # Run test in a subshell; some versions of sh will print an error if
787 # an executable is not found, even if stderr is redirected.
788 # Redirect stdin to placate older versions of autoconf. Sigh.
789 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
791 echo "$ac_t""found" 1>&6
793 AUTOCONF
="$missing_dir/missing autoconf"
794 echo "$ac_t""missing" 1>&6
797 echo $ac_n "checking for working automake""... $ac_c" 1>&6
798 echo "configure:799: checking for working automake" >&5
799 # Run test in a subshell; some versions of sh will print an error if
800 # an executable is not found, even if stderr is redirected.
801 # Redirect stdin to placate older versions of autoconf. Sigh.
802 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
804 echo "$ac_t""found" 1>&6
806 AUTOMAKE
="$missing_dir/missing automake"
807 echo "$ac_t""missing" 1>&6
810 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
811 echo "configure:812: checking for working autoheader" >&5
812 # Run test in a subshell; some versions of sh will print an error if
813 # an executable is not found, even if stderr is redirected.
814 # Redirect stdin to placate older versions of autoconf. Sigh.
815 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
816 AUTOHEADER
=autoheader
817 echo "$ac_t""found" 1>&6
819 AUTOHEADER
="$missing_dir/missing autoheader"
820 echo "$ac_t""missing" 1>&6
823 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
824 echo "configure:825: checking for working makeinfo" >&5
825 # Run test in a subshell; some versions of sh will print an error if
826 # an executable is not found, even if stderr is redirected.
827 # Redirect stdin to placate older versions of autoconf. Sigh.
828 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
830 echo "$ac_t""found" 1>&6
832 MAKEINFO
="$missing_dir/missing makeinfo"
833 echo "$ac_t""missing" 1>&6
838 # Check whether --enable-shared or --disable-shared was given.
839 if test "${enable_shared+set}" = set; then
840 enableval
="$enable_shared"
843 yes) enable_shared
=yes ;;
844 no
) enable_shared
=no
;;
847 # Look at the argument we got. We use all the common list separators.
848 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
849 for pkg
in $enableval; do
850 if test "X$pkg" = "X$p"; then
861 # Check whether --enable-static or --disable-static was given.
862 if test "${enable_static+set}" = set; then
863 enableval
="$enable_static"
866 yes) enable_static
=yes ;;
867 no
) enable_static
=no
;;
870 # Look at the argument we got. We use all the common list separators.
871 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
872 for pkg
in $enableval; do
873 if test "X$pkg" = "X$p"; then
885 # Make sure we can run config.sub.
886 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
887 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
890 echo $ac_n "checking host system type""... $ac_c" 1>&6
891 echo "configure:892: checking host system type" >&5
894 case "$host_alias" in
898 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
899 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
901 *) host_alias
=$nonopt ;;
905 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
906 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
907 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
908 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
909 echo "$ac_t""$host" 1>&6
911 # Extract the first word of "ranlib", so it can be a program name with args.
912 set dummy ranlib
; ac_word
=$2
913 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
914 echo "configure:915: checking for $ac_word" >&5
915 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
916 echo $ac_n "(cached) $ac_c" 1>&6
918 if test -n "$RANLIB"; then
919 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
921 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
923 for ac_dir
in $ac_dummy; do
924 test -z "$ac_dir" && ac_dir
=.
925 if test -f $ac_dir/$ac_word; then
926 ac_cv_prog_RANLIB
="ranlib"
931 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
934 RANLIB
="$ac_cv_prog_RANLIB"
935 if test -n "$RANLIB"; then
936 echo "$ac_t""$RANLIB" 1>&6
938 echo "$ac_t""no" 1>&6
941 # Extract the first word of "gcc", so it can be a program name with args.
942 set dummy gcc
; ac_word
=$2
943 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
944 echo "configure:945: checking for $ac_word" >&5
945 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
946 echo $ac_n "(cached) $ac_c" 1>&6
948 if test -n "$CC"; then
949 ac_cv_prog_CC
="$CC" # Let the user override the test.
951 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
953 for ac_dir
in $ac_dummy; do
954 test -z "$ac_dir" && ac_dir
=.
955 if test -f $ac_dir/$ac_word; then
964 if test -n "$CC"; then
965 echo "$ac_t""$CC" 1>&6
967 echo "$ac_t""no" 1>&6
970 if test -z "$CC"; then
971 # Extract the first word of "cc", so it can be a program name with args.
972 set dummy cc
; ac_word
=$2
973 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
974 echo "configure:975: checking for $ac_word" >&5
975 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
976 echo $ac_n "(cached) $ac_c" 1>&6
978 if test -n "$CC"; then
979 ac_cv_prog_CC
="$CC" # Let the user override the test.
981 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
984 for ac_dir
in $ac_dummy; do
985 test -z "$ac_dir" && ac_dir
=.
986 if test -f $ac_dir/$ac_word; then
987 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
996 if test $ac_prog_rejected = yes; then
997 # We found a bogon in the path, so make sure we never use it.
998 set dummy
$ac_cv_prog_CC
1000 if test $# -gt 0; then
1001 # We chose a different compiler from the bogus one.
1002 # However, it has the same basename, so the bogon will be chosen
1003 # first if we set CC to just the basename; use the full file name.
1005 set dummy
"$ac_dir/$ac_word" "$@"
1013 if test -n "$CC"; then
1014 echo "$ac_t""$CC" 1>&6
1016 echo "$ac_t""no" 1>&6
1019 if test -z "$CC"; then
1020 case "`uname -s`" in
1022 # Extract the first word of "cl", so it can be a program name with args.
1023 set dummy cl
; ac_word
=$2
1024 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1025 echo "configure:1026: checking for $ac_word" >&5
1026 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1027 echo $ac_n "(cached) $ac_c" 1>&6
1029 if test -n "$CC"; then
1030 ac_cv_prog_CC
="$CC" # Let the user override the test.
1032 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1034 for ac_dir
in $ac_dummy; do
1035 test -z "$ac_dir" && ac_dir
=.
1036 if test -f $ac_dir/$ac_word; then
1045 if test -n "$CC"; then
1046 echo "$ac_t""$CC" 1>&6
1048 echo "$ac_t""no" 1>&6
1053 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1056 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1057 echo "configure:1058: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1060 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1061 ac_cpp
='$CPP $CPPFLAGS'
1062 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1063 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1064 cross_compiling
=$ac_cv_prog_cc_cross
1066 cat > conftest.
$ac_ext << EOF
1068 #line 1069 "configure"
1069 #include "confdefs.h"
1073 if { (eval echo configure
:1074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1074 ac_cv_prog_cc_works
=yes
1075 # If we can't run a trivial program, we are probably using a cross compiler.
1076 if (.
/conftest
; exit) 2>/dev
/null
; then
1077 ac_cv_prog_cc_cross
=no
1079 ac_cv_prog_cc_cross
=yes
1082 echo "configure: failed program was:" >&5
1083 cat conftest.
$ac_ext >&5
1084 ac_cv_prog_cc_works
=no
1088 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1089 ac_cpp
='$CPP $CPPFLAGS'
1090 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1091 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1092 cross_compiling
=$ac_cv_prog_cc_cross
1094 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1095 if test $ac_cv_prog_cc_works = no
; then
1096 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1098 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1099 echo "configure:1100: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1100 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1101 cross_compiling
=$ac_cv_prog_cc_cross
1103 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1104 echo "configure:1105: checking whether we are using GNU C" >&5
1105 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1106 echo $ac_n "(cached) $ac_c" 1>&6
1108 cat > conftest.c
<<EOF
1113 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1120 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1122 if test $ac_cv_prog_gcc = yes; then
1128 ac_test_CFLAGS
="${CFLAGS+set}"
1129 ac_save_CFLAGS
="$CFLAGS"
1131 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1132 echo "configure:1133: checking whether ${CC-cc} accepts -g" >&5
1133 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1134 echo $ac_n "(cached) $ac_c" 1>&6
1136 echo 'void f(){}' > conftest.c
1137 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1146 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1147 if test "$ac_test_CFLAGS" = set; then
1148 CFLAGS
="$ac_save_CFLAGS"
1149 elif test $ac_cv_prog_cc_g = yes; then
1150 if test "$GCC" = yes; then
1156 if test "$GCC" = yes; then
1163 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1164 if test "${with_gnu_ld+set}" = set; then
1165 withval
="$with_gnu_ld"
1166 test "$withval" = no || with_gnu_ld
=yes
1173 if test "$ac_cv_prog_gcc" = yes; then
1174 # Check if gcc -print-prog-name=ld gives a path.
1175 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1176 echo "configure:1177: checking for ld used by GCC" >&5
1177 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1179 # Accept absolute paths.
1181 test -z "$LD" && LD
="$ac_prog"
1184 # If it fails, then pretend we aren't using GCC.
1188 # If it is relative, then search for the first ld in PATH.
1192 elif test "$with_gnu_ld" = yes; then
1193 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1194 echo "configure:1195: checking for GNU ld" >&5
1196 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1197 echo "configure:1198: checking for non-GNU ld" >&5
1199 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1200 echo $ac_n "(cached) $ac_c" 1>&6
1202 if test -z "$LD"; then
1203 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1204 for ac_dir
in $PATH; do
1205 test -z "$ac_dir" && ac_dir
=.
1206 if test -f "$ac_dir/$ac_prog"; then
1207 ac_cv_path_LD
="$ac_dir/$ac_prog"
1208 # Check to see if the program is GNU ld. I'd rather use --version,
1209 # but apparently some GNU ld's only accept -v.
1210 # Break only if it was the GNU/non-GNU ld that we prefer.
1211 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1212 test "$with_gnu_ld" != no
&& break
1214 test "$with_gnu_ld" != yes && break
1220 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1225 if test -n "$LD"; then
1226 echo "$ac_t""$LD" 1>&6
1228 echo "$ac_t""no" 1>&6
1230 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1232 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1233 echo "configure:1234: checking if the linker ($LD) is GNU ld" >&5
1234 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1235 echo $ac_n "(cached) $ac_c" 1>&6
1237 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1238 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1239 ac_cv_prog_gnu_ld
=yes
1241 ac_cv_prog_gnu_ld
=no
1245 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1248 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1249 echo "configure:1250: checking for BSD-compatible nm" >&5
1250 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1251 echo $ac_n "(cached) $ac_c" 1>&6
1255 ac_cv_path_NM
="$NM" # Let the user override the test with a path.
1258 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1259 for ac_dir
in /usr
/ucb
/usr
/ccs
/bin
$PATH /bin
; do
1260 test -z "$ac_dir" && ac_dir
=.
1261 if test -f $ac_dir/nm
; then
1262 # Check to see if the nm accepts a BSD-compat flag.
1263 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1264 # nm: unknown option "B" ignored
1265 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1266 ac_cv_path_NM
="$ac_dir/nm -B"
1267 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1268 ac_cv_path_NM
="$ac_dir/nm -p"
1270 ac_cv_path_NM
="$ac_dir/nm"
1276 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1282 echo "$ac_t""$NM" 1>&6
1285 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1286 echo "configure:1287: checking whether ln -s works" >&5
1287 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1288 echo $ac_n "(cached) $ac_c" 1>&6
1291 if ln -s X conftestdata
2>/dev
/null
1294 ac_cv_prog_LN_S
="ln -s"
1299 LN_S
="$ac_cv_prog_LN_S"
1300 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1301 echo "$ac_t""yes" 1>&6
1303 echo "$ac_t""no" 1>&6
1306 # Always use our own libtool.
1307 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1309 # Check for any special flags to pass to ltconfig.
1311 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1312 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1313 test "$silent" = yes && libtool_flags
="$libtool_flags --silent"
1314 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1315 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1317 # Some flags need to be propagated to the compiler or linker for good
1321 # Find out which ABI we are using.
1322 echo '#line 1323 "configure"' > conftest.
$ac_ext
1323 if { (eval echo configure
:1324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1324 case "`/usr/bin/file conftest.o`" in
1340 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1341 CFLAGS
="$CFLAGS -belf"
1345 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1346 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1347 LD
="$LD" NM
="$NM" RANLIB
="$RANLIB" LN_S
="$LN_S" \
1348 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1349 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
1350 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1353 # by Marcelo Magallon <mmagallo@efis.ucr.ac.cr>
1354 # Turn around -rpath problem with libtool 1.0c
1355 # This define should be improbable enough to not conflict with anything
1358 echo "$ac_t""Fixing libtool for -rpath problems." 1>&6
1359 sed < libtool
> libtool-2 \
1360 's/^hardcode_libdir_flag_spec.*$/hardcode_libdir_flag_spec=" -D__LIBTOOL_IS_A_FOOL__ "/'
1361 mv libtool-2 libtool
1376 # Make sure we can run config.sub.
1377 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1378 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1381 echo $ac_n "checking host system type""... $ac_c" 1>&6
1382 echo "configure:1383: checking host system type" >&5
1385 case "$host_alias" in
1389 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1390 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1392 *) host_alias
=$nonopt ;;
1396 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1397 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1398 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1399 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1400 echo "$ac_t""$host" 1>&6
1404 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1405 echo "configure:1406: checking for POSIXized ISC" >&5
1406 if test -d /etc
/conf
/kconfig.d
&&
1407 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1409 echo "$ac_t""yes" 1>&6
1410 ISC
=yes # If later tests want to check for ISC.
1411 cat >> confdefs.h
<<\EOF
1412 #define _POSIX_SOURCE 1
1415 if test "$GCC" = yes; then
1421 echo "$ac_t""no" 1>&6
1425 # Extract the first word of "gcc", so it can be a program name with args.
1426 set dummy gcc
; ac_word
=$2
1427 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1428 echo "configure:1429: checking for $ac_word" >&5
1429 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1430 echo $ac_n "(cached) $ac_c" 1>&6
1432 if test -n "$CC"; then
1433 ac_cv_prog_CC
="$CC" # Let the user override the test.
1435 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1437 for ac_dir
in $ac_dummy; do
1438 test -z "$ac_dir" && ac_dir
=.
1439 if test -f $ac_dir/$ac_word; then
1448 if test -n "$CC"; then
1449 echo "$ac_t""$CC" 1>&6
1451 echo "$ac_t""no" 1>&6
1454 if test -z "$CC"; then
1455 # Extract the first word of "cc", so it can be a program name with args.
1456 set dummy cc
; ac_word
=$2
1457 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1458 echo "configure:1459: checking for $ac_word" >&5
1459 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1460 echo $ac_n "(cached) $ac_c" 1>&6
1462 if test -n "$CC"; then
1463 ac_cv_prog_CC
="$CC" # Let the user override the test.
1465 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1468 for ac_dir
in $ac_dummy; do
1469 test -z "$ac_dir" && ac_dir
=.
1470 if test -f $ac_dir/$ac_word; then
1471 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1472 ac_prog_rejected
=yes
1480 if test $ac_prog_rejected = yes; then
1481 # We found a bogon in the path, so make sure we never use it.
1482 set dummy
$ac_cv_prog_CC
1484 if test $# -gt 0; then
1485 # We chose a different compiler from the bogus one.
1486 # However, it has the same basename, so the bogon will be chosen
1487 # first if we set CC to just the basename; use the full file name.
1489 set dummy
"$ac_dir/$ac_word" "$@"
1497 if test -n "$CC"; then
1498 echo "$ac_t""$CC" 1>&6
1500 echo "$ac_t""no" 1>&6
1503 if test -z "$CC"; then
1504 case "`uname -s`" in
1506 # Extract the first word of "cl", so it can be a program name with args.
1507 set dummy cl
; ac_word
=$2
1508 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1509 echo "configure:1510: checking for $ac_word" >&5
1510 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1511 echo $ac_n "(cached) $ac_c" 1>&6
1513 if test -n "$CC"; then
1514 ac_cv_prog_CC
="$CC" # Let the user override the test.
1516 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1518 for ac_dir
in $ac_dummy; do
1519 test -z "$ac_dir" && ac_dir
=.
1520 if test -f $ac_dir/$ac_word; then
1529 if test -n "$CC"; then
1530 echo "$ac_t""$CC" 1>&6
1532 echo "$ac_t""no" 1>&6
1537 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1540 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1541 echo "configure:1542: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1544 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1545 ac_cpp
='$CPP $CPPFLAGS'
1546 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1547 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1548 cross_compiling
=$ac_cv_prog_cc_cross
1550 cat > conftest.
$ac_ext << EOF
1552 #line 1553 "configure"
1553 #include "confdefs.h"
1557 if { (eval echo configure
:1558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1558 ac_cv_prog_cc_works
=yes
1559 # If we can't run a trivial program, we are probably using a cross compiler.
1560 if (.
/conftest
; exit) 2>/dev
/null
; then
1561 ac_cv_prog_cc_cross
=no
1563 ac_cv_prog_cc_cross
=yes
1566 echo "configure: failed program was:" >&5
1567 cat conftest.
$ac_ext >&5
1568 ac_cv_prog_cc_works
=no
1572 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1573 ac_cpp
='$CPP $CPPFLAGS'
1574 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1575 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1576 cross_compiling
=$ac_cv_prog_cc_cross
1578 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1579 if test $ac_cv_prog_cc_works = no
; then
1580 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1582 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1583 echo "configure:1584: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1584 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1585 cross_compiling
=$ac_cv_prog_cc_cross
1587 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1588 echo "configure:1589: checking whether we are using GNU C" >&5
1589 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1590 echo $ac_n "(cached) $ac_c" 1>&6
1592 cat > conftest.c
<<EOF
1597 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1598: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1604 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1606 if test $ac_cv_prog_gcc = yes; then
1612 ac_test_CFLAGS
="${CFLAGS+set}"
1613 ac_save_CFLAGS
="$CFLAGS"
1615 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1616 echo "configure:1617: checking whether ${CC-cc} accepts -g" >&5
1617 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1618 echo $ac_n "(cached) $ac_c" 1>&6
1620 echo 'void f(){}' > conftest.c
1621 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1630 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1631 if test "$ac_test_CFLAGS" = set; then
1632 CFLAGS
="$ac_save_CFLAGS"
1633 elif test $ac_cv_prog_cc_g = yes; then
1634 if test "$GCC" = yes; then
1640 if test "$GCC" = yes; then
1648 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1649 echo "configure:1650: checking whether ln -s works" >&5
1650 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1651 echo $ac_n "(cached) $ac_c" 1>&6
1654 if ln -s X conftestdata
2>/dev
/null
1657 ac_cv_prog_LN_S
="ln -s"
1662 LN_S
="$ac_cv_prog_LN_S"
1663 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1664 echo "$ac_t""yes" 1>&6
1666 echo "$ac_t""no" 1>&6
1669 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1670 echo "configure:1671: checking how to run the C preprocessor" >&5
1671 # On Suns, sometimes $CPP names a directory.
1672 if test -n "$CPP" && test -d "$CPP"; then
1675 if test -z "$CPP"; then
1676 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1677 echo $ac_n "(cached) $ac_c" 1>&6
1679 # This must be in double quotes, not single quotes, because CPP may get
1680 # substituted into the Makefile and "${CC-cc}" will confuse make.
1682 # On the NeXT, cc -E runs the code through the compiler's parser,
1683 # not just through cpp.
1684 cat > conftest.
$ac_ext <<EOF
1685 #line 1686 "configure"
1686 #include "confdefs.h"
1690 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1691 { (eval echo configure
:1692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1692 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1693 if test -z "$ac_err"; then
1697 echo "configure: failed program was:" >&5
1698 cat conftest.
$ac_ext >&5
1700 CPP
="${CC-cc} -E -traditional-cpp"
1701 cat > conftest.
$ac_ext <<EOF
1702 #line 1703 "configure"
1703 #include "confdefs.h"
1707 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1708 { (eval echo configure
:1709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1709 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1710 if test -z "$ac_err"; then
1714 echo "configure: failed program was:" >&5
1715 cat conftest.
$ac_ext >&5
1717 CPP
="${CC-cc} -nologo -E"
1718 cat > conftest.
$ac_ext <<EOF
1719 #line 1720 "configure"
1720 #include "confdefs.h"
1724 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1725 { (eval echo configure
:1726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1726 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1727 if test -z "$ac_err"; then
1731 echo "configure: failed program was:" >&5
1732 cat conftest.
$ac_ext >&5
1741 ac_cv_prog_CPP
="$CPP"
1743 CPP
="$ac_cv_prog_CPP"
1745 ac_cv_prog_CPP
="$CPP"
1747 echo "$ac_t""$CPP" 1>&6
1749 if test $ac_cv_prog_gcc = yes; then
1750 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1751 echo "configure:1752: checking whether ${CC-cc} needs -traditional" >&5
1752 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1753 echo $ac_n "(cached) $ac_c" 1>&6
1755 ac_pattern
="Autoconf.*'x'"
1756 cat > conftest.
$ac_ext <<EOF
1757 #line 1758 "configure"
1758 #include "confdefs.h"
1762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1763 egrep "$ac_pattern" >/dev
/null
2>&1; then
1765 ac_cv_prog_gcc_traditional
=yes
1768 ac_cv_prog_gcc_traditional
=no
1773 if test $ac_cv_prog_gcc_traditional = no
; then
1774 cat > conftest.
$ac_ext <<EOF
1775 #line 1776 "configure"
1776 #include "confdefs.h"
1780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1781 egrep "$ac_pattern" >/dev
/null
2>&1; then
1783 ac_cv_prog_gcc_traditional
=yes
1790 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1791 if test $ac_cv_prog_gcc_traditional = yes; then
1792 CC
="$CC -traditional"
1799 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1800 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1803 _bindir
=`eval echo $bindir`
1804 _bindir
=`eval echo $_bindir`
1806 _libdir
=`eval echo $libdir`
1807 _libdir
=`eval echo $_libdir`
1808 lib_search_path
="-L$_libdir"
1810 inc_search_path
=`eval echo $includedir`
1811 inc_search_path
="-I`eval echo $inc_search_path`"
1817 # Check whether --with-libs-from or --without-libs-from was given.
1818 if test "${with_libs_from+set}" = set; then
1819 withval
="$with_libs_from"
1820 lib_search_path
="$withval $lib_search_path"
1824 # Check whether --with-incs-from or --without-incs-from was given.
1825 if test "${with_incs_from+set}" = set; then
1826 withval
="$with_incs_from"
1827 inc_search_path
="$withval $inc_search_path"
1833 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1834 echo "configure:1835: checking for vprintf" >&5
1835 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1836 echo $ac_n "(cached) $ac_c" 1>&6
1838 cat > conftest.
$ac_ext <<EOF
1839 #line 1840 "configure"
1840 #include "confdefs.h"
1841 /* System header to define __stub macros and hopefully few prototypes,
1842 which can conflict with char vprintf(); below. */
1844 /* Override any gcc2 internal prototype to avoid an error. */
1845 /* We use char because int might match the return type of a gcc2
1846 builtin and then its argument prototype would still apply. */
1851 /* The GNU C library defines this for functions which it implements
1852 to always fail with ENOSYS. Some functions are actually named
1853 something starting with __ and the normal name is an alias. */
1854 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1862 if { (eval echo configure
:1863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1864 eval "ac_cv_func_vprintf=yes"
1866 echo "configure: failed program was:" >&5
1867 cat conftest.
$ac_ext >&5
1869 eval "ac_cv_func_vprintf=no"
1874 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1875 echo "$ac_t""yes" 1>&6
1876 cat >> confdefs.h
<<\EOF
1877 #define HAVE_VPRINTF 1
1881 echo "$ac_t""no" 1>&6
1884 if test "$ac_cv_func_vprintf" != yes; then
1885 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1886 echo "configure:1887: checking for _doprnt" >&5
1887 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1888 echo $ac_n "(cached) $ac_c" 1>&6
1890 cat > conftest.
$ac_ext <<EOF
1891 #line 1892 "configure"
1892 #include "confdefs.h"
1893 /* System header to define __stub macros and hopefully few prototypes,
1894 which can conflict with char _doprnt(); below. */
1896 /* Override any gcc2 internal prototype to avoid an error. */
1897 /* We use char because int might match the return type of a gcc2
1898 builtin and then its argument prototype would still apply. */
1903 /* The GNU C library defines this for functions which it implements
1904 to always fail with ENOSYS. Some functions are actually named
1905 something starting with __ and the normal name is an alias. */
1906 #if defined (__stub__doprnt) || defined (__stub____doprnt)
1914 if { (eval echo configure
:1915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1916 eval "ac_cv_func__doprnt=yes"
1918 echo "configure: failed program was:" >&5
1919 cat conftest.
$ac_ext >&5
1921 eval "ac_cv_func__doprnt=no"
1926 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1927 echo "$ac_t""yes" 1>&6
1928 cat >> confdefs.h
<<\EOF
1929 #define HAVE_DOPRNT 1
1933 echo "$ac_t""no" 1>&6
1938 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1939 # for constant arguments. Useless!
1940 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1941 echo "configure:1942: checking for working alloca.h" >&5
1942 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1943 echo $ac_n "(cached) $ac_c" 1>&6
1945 cat > conftest.
$ac_ext <<EOF
1946 #line 1947 "configure"
1947 #include "confdefs.h"
1950 char *p = alloca(2 * sizeof(int));
1953 if { (eval echo configure
:1954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1955 ac_cv_header_alloca_h
=yes
1957 echo "configure: failed program was:" >&5
1958 cat conftest.
$ac_ext >&5
1960 ac_cv_header_alloca_h
=no
1965 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1966 if test $ac_cv_header_alloca_h = yes; then
1967 cat >> confdefs.h
<<\EOF
1968 #define HAVE_ALLOCA_H 1
1973 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1974 echo "configure:1975: checking for alloca" >&5
1975 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1976 echo $ac_n "(cached) $ac_c" 1>&6
1978 cat > conftest.
$ac_ext <<EOF
1979 #line 1980 "configure"
1980 #include "confdefs.h"
1983 # define alloca __builtin_alloca
1986 # include <malloc.h>
1987 # define alloca _alloca
1990 # include <alloca.h>
1995 # ifndef alloca /* predefined by HP cc +Olibcalls */
2004 char *p = (char *) alloca(1);
2007 if { (eval echo configure
:2008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2009 ac_cv_func_alloca_works
=yes
2011 echo "configure: failed program was:" >&5
2012 cat conftest.
$ac_ext >&5
2014 ac_cv_func_alloca_works
=no
2019 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2020 if test $ac_cv_func_alloca_works = yes; then
2021 cat >> confdefs.h
<<\EOF
2022 #define HAVE_ALLOCA 1
2027 if test $ac_cv_func_alloca_works = no
; then
2028 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2029 # that cause trouble. Some versions do not even contain alloca or
2030 # contain a buggy version. If you still want to use their alloca,
2031 # use ar to extract alloca.o from them instead of compiling alloca.c.
2032 ALLOCA
=alloca.
${ac_objext}
2033 cat >> confdefs.h
<<\EOF
2038 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2039 echo "configure:2040: checking whether alloca needs Cray hooks" >&5
2040 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2041 echo $ac_n "(cached) $ac_c" 1>&6
2043 cat > conftest.
$ac_ext <<EOF
2044 #line 2045 "configure"
2045 #include "confdefs.h"
2046 #if defined(CRAY) && ! defined(CRAY2)
2053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2054 egrep "webecray" >/dev
/null
2>&1; then
2065 echo "$ac_t""$ac_cv_os_cray" 1>&6
2066 if test $ac_cv_os_cray = yes; then
2067 for ac_func
in _getb67 GETB67 getb67
; do
2068 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2069 echo "configure:2070: checking for $ac_func" >&5
2070 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2071 echo $ac_n "(cached) $ac_c" 1>&6
2073 cat > conftest.
$ac_ext <<EOF
2074 #line 2075 "configure"
2075 #include "confdefs.h"
2076 /* System header to define __stub macros and hopefully few prototypes,
2077 which can conflict with char $ac_func(); below. */
2079 /* Override any gcc2 internal prototype to avoid an error. */
2080 /* We use char because int might match the return type of a gcc2
2081 builtin and then its argument prototype would still apply. */
2086 /* The GNU C library defines this for functions which it implements
2087 to always fail with ENOSYS. Some functions are actually named
2088 something starting with __ and the normal name is an alias. */
2089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2097 if { (eval echo configure
:2098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2099 eval "ac_cv_func_$ac_func=yes"
2101 echo "configure: failed program was:" >&5
2102 cat conftest.
$ac_ext >&5
2104 eval "ac_cv_func_$ac_func=no"
2109 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2110 echo "$ac_t""yes" 1>&6
2111 cat >> confdefs.h
<<EOF
2112 #define CRAY_STACKSEG_END $ac_func
2117 echo "$ac_t""no" 1>&6
2123 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2124 echo "configure:2125: checking stack direction for C alloca" >&5
2125 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2126 echo $ac_n "(cached) $ac_c" 1>&6
2128 if test "$cross_compiling" = yes; then
2129 ac_cv_c_stack_direction
=0
2131 cat > conftest.
$ac_ext <<EOF
2132 #line 2133 "configure"
2133 #include "confdefs.h"
2134 find_stack_direction ()
2136 static char *addr = 0;
2141 return find_stack_direction ();
2144 return (&dummy > addr) ? 1 : -1;
2148 exit (find_stack_direction() < 0);
2151 if { (eval echo configure
:2152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2153 ac_cv_c_stack_direction
=1
2155 echo "configure: failed program was:" >&5
2156 cat conftest.
$ac_ext >&5
2158 ac_cv_c_stack_direction
=-1
2165 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2166 cat >> confdefs.h
<<EOF
2167 #define STACK_DIRECTION $ac_cv_c_stack_direction
2172 for ac_func
in gethostname
select poll strerror strncasecmp setpgid atexit
2174 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2175 echo "configure:2176: checking for $ac_func" >&5
2176 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2177 echo $ac_n "(cached) $ac_c" 1>&6
2179 cat > conftest.
$ac_ext <<EOF
2180 #line 2181 "configure"
2181 #include "confdefs.h"
2182 /* System header to define __stub macros and hopefully few prototypes,
2183 which can conflict with char $ac_func(); below. */
2185 /* Override any gcc2 internal prototype to avoid an error. */
2186 /* We use char because int might match the return type of a gcc2
2187 builtin and then its argument prototype would still apply. */
2192 /* The GNU C library defines this for functions which it implements
2193 to always fail with ENOSYS. Some functions are actually named
2194 something starting with __ and the normal name is an alias. */
2195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2203 if { (eval echo configure
:2204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2205 eval "ac_cv_func_$ac_func=yes"
2207 echo "configure: failed program was:" >&5
2208 cat conftest.
$ac_ext >&5
2210 eval "ac_cv_func_$ac_func=no"
2215 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2216 echo "$ac_t""yes" 1>&6
2217 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2218 cat >> confdefs.h
<<EOF
2219 #define $ac_tr_func 1
2223 echo "$ac_t""no" 1>&6
2232 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
2233 echo "configure:2234: checking for dlopen" >&5
2234 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
2235 echo $ac_n "(cached) $ac_c" 1>&6
2237 cat > conftest.
$ac_ext <<EOF
2238 #line 2239 "configure"
2239 #include "confdefs.h"
2240 /* System header to define __stub macros and hopefully few prototypes,
2241 which can conflict with char dlopen(); below. */
2243 /* Override any gcc2 internal prototype to avoid an error. */
2244 /* We use char because int might match the return type of a gcc2
2245 builtin and then its argument prototype would still apply. */
2250 /* The GNU C library defines this for functions which it implements
2251 to always fail with ENOSYS. Some functions are actually named
2252 something starting with __ and the normal name is an alias. */
2253 #if defined (__stub_dlopen) || defined (__stub___dlopen)
2261 if { (eval echo configure
:2262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2263 eval "ac_cv_func_dlopen=yes"
2265 echo "configure: failed program was:" >&5
2266 cat conftest.
$ac_ext >&5
2268 eval "ac_cv_func_dlopen=no"
2273 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
2274 echo "$ac_t""yes" 1>&6
2277 echo "$ac_t""no" 1>&6
2278 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2279 echo "configure:2280: checking for dlopen in -ldl" >&5
2280 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2281 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2282 echo $ac_n "(cached) $ac_c" 1>&6
2284 ac_save_LIBS
="$LIBS"
2286 cat > conftest.
$ac_ext <<EOF
2287 #line 2288 "configure"
2288 #include "confdefs.h"
2289 /* Override any gcc2 internal prototype to avoid an error. */
2290 /* We use char because int might match the return type of a gcc2
2291 builtin and then its argument prototype would still apply. */
2298 if { (eval echo configure
:2299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2300 eval "ac_cv_lib_$ac_lib_var=yes"
2302 echo "configure: failed program was:" >&5
2303 cat conftest.
$ac_ext >&5
2305 eval "ac_cv_lib_$ac_lib_var=no"
2308 LIBS
="$ac_save_LIBS"
2311 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2312 echo "$ac_t""yes" 1>&6
2313 DLLIBS
="-ldl" HAVEDL
="yes"
2315 echo "$ac_t""no" 1>&6
2322 if test "x$HAVEDL" = xyes
; then
2323 for ac_hdr
in dlfcn.h
2325 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2326 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2327 echo "configure:2328: checking for $ac_hdr" >&5
2328 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2329 echo $ac_n "(cached) $ac_c" 1>&6
2331 cat > conftest.
$ac_ext <<EOF
2332 #line 2333 "configure"
2333 #include "confdefs.h"
2336 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2337 { (eval echo configure
:2338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2338 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2339 if test -z "$ac_err"; then
2341 eval "ac_cv_header_$ac_safe=yes"
2344 echo "configure: failed program was:" >&5
2345 cat conftest.
$ac_ext >&5
2347 eval "ac_cv_header_$ac_safe=no"
2351 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2352 echo "$ac_t""yes" 1>&6
2353 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2354 cat >> confdefs.h
<<EOF
2355 #define $ac_tr_hdr 1
2359 echo "$ac_t""no" 1>&6
2367 if test "x$CPP_PATH" = x
; then
2368 # Extract the first word of "cpp", so it can be a program name with args.
2369 set dummy cpp
; ac_word
=$2
2370 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2371 echo "configure:2372: checking for $ac_word" >&5
2372 if eval "test \"`echo '$''{'ac_cv_path_CPP_PATH'+set}'`\" = set"; then
2373 echo $ac_n "(cached) $ac_c" 1>&6
2377 ac_cv_path_CPP_PATH
="$CPP_PATH" # Let the user override the test with a path.
2380 ac_cv_path_CPP_PATH
="$CPP_PATH" # Let the user override the test with a dos path.
2383 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2384 ac_dummy
="$PATH:/lib:/usr/bin:/bin:/usr/lib:/usr/ccs/lib"
2385 for ac_dir
in $ac_dummy; do
2386 test -z "$ac_dir" && ac_dir
=.
2387 if test -f $ac_dir/$ac_word; then
2388 ac_cv_path_CPP_PATH
="$ac_dir/$ac_word"
2393 test -z "$ac_cv_path_CPP_PATH" && ac_cv_path_CPP_PATH
="notfound"
2397 CPP_PATH
="$ac_cv_path_CPP_PATH"
2398 if test -n "$CPP_PATH"; then
2399 echo "$ac_t""$CPP_PATH" 1>&6
2401 echo "$ac_t""no" 1>&6
2406 if test "$CPP_PATH" = "/usr/ccs/lib/cpp" -o "$CPP_PATH" = "notfound" ; then
2407 if test "$GCC" = "yes"; then
2408 CPP_PATH
="gcc -E -x c"
2410 if test "$CPP_PATH" = "/usr/ccs/lib/cpp"; then
2411 CPP_PATH
="$CPP_PATH -B"
2413 echo "cpp, the C preprocessor was not found in your system."
2414 echo "Create a symbolic link from it to /lib/cpp and rerun configure"
2419 cat >> confdefs.h
<<EOF
2420 #define CPP_PATH "$CPP_PATH"
2426 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2427 echo "configure:2428: checking for sys/wait.h that is POSIX.1 compatible" >&5
2428 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2429 echo $ac_n "(cached) $ac_c" 1>&6
2431 cat > conftest.
$ac_ext <<EOF
2432 #line 2433 "configure"
2433 #include "confdefs.h"
2434 #include <sys/types.h>
2435 #include <sys/wait.h>
2437 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2440 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2445 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2448 if { (eval echo configure
:2449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2450 ac_cv_header_sys_wait_h
=yes
2452 echo "configure: failed program was:" >&5
2453 cat conftest.
$ac_ext >&5
2455 ac_cv_header_sys_wait_h
=no
2460 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2461 if test $ac_cv_header_sys_wait_h = yes; then
2462 cat >> confdefs.h
<<\EOF
2463 #define HAVE_SYS_WAIT_H 1
2468 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2469 echo "configure:2470: checking whether time.h and sys/time.h may both be included" >&5
2470 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2471 echo $ac_n "(cached) $ac_c" 1>&6
2473 cat > conftest.
$ac_ext <<EOF
2474 #line 2475 "configure"
2475 #include "confdefs.h"
2476 #include <sys/types.h>
2477 #include <sys/time.h>
2483 if { (eval echo configure
:2484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2485 ac_cv_header_time
=yes
2487 echo "configure: failed program was:" >&5
2488 cat conftest.
$ac_ext >&5
2490 ac_cv_header_time
=no
2495 echo "$ac_t""$ac_cv_header_time" 1>&6
2496 if test $ac_cv_header_time = yes; then
2497 cat >> confdefs.h
<<\EOF
2498 #define TIME_WITH_SYS_TIME 1
2503 for ac_hdr
in fcntl.h limits.h sys
/ioctl.h sys
/time.h sys
/types.h\
2504 libintl.h sys
/select.h poll.h
2506 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2507 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2508 echo "configure:2509: checking for $ac_hdr" >&5
2509 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2510 echo $ac_n "(cached) $ac_c" 1>&6
2512 cat > conftest.
$ac_ext <<EOF
2513 #line 2514 "configure"
2514 #include "confdefs.h"
2517 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2518 { (eval echo configure
:2519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2519 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2520 if test -z "$ac_err"; then
2522 eval "ac_cv_header_$ac_safe=yes"
2525 echo "configure: failed program was:" >&5
2526 cat conftest.
$ac_ext >&5
2528 eval "ac_cv_header_$ac_safe=no"
2532 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2533 echo "$ac_t""yes" 1>&6
2534 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2535 cat >> confdefs.h
<<EOF
2536 #define $ac_tr_hdr 1
2540 echo "$ac_t""no" 1>&6
2547 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2548 echo "configure:2549: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2549 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2550 echo $ac_n "(cached) $ac_c" 1>&6
2552 cat > conftest.
$ac_ext <<EOF
2553 #line 2554 "configure"
2554 #include "confdefs.h"
2555 #include <sys/types.h>
2557 /* NetBSD declares sys_siglist in unistd.h. */
2558 #ifdef HAVE_UNISTD_H
2562 char *msg = *(sys_siglist + 1);
2565 if { (eval echo configure
:2566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2567 ac_cv_decl_sys_siglist
=yes
2569 echo "configure: failed program was:" >&5
2570 cat conftest.
$ac_ext >&5
2572 ac_cv_decl_sys_siglist
=no
2577 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2578 if test $ac_cv_decl_sys_siglist = yes; then
2579 cat >> confdefs.h
<<\EOF
2580 #define SYS_SIGLIST_DECLARED 1
2585 echo $ac_n "checking for working const""... $ac_c" 1>&6
2586 echo "configure:2587: checking for working const" >&5
2587 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2588 echo $ac_n "(cached) $ac_c" 1>&6
2590 cat > conftest.
$ac_ext <<EOF
2591 #line 2592 "configure"
2592 #include "confdefs.h"
2596 /* Ultrix mips cc rejects this. */
2597 typedef int charset[2]; const charset x;
2598 /* SunOS 4.1.1 cc rejects this. */
2599 char const *const *ccp;
2601 /* NEC SVR4.0.2 mips cc rejects this. */
2602 struct point {int x, y;};
2603 static struct point const zero = {0,0};
2604 /* AIX XL C 1.02.0.0 rejects this.
2605 It does not let you subtract one const X* pointer from another in an arm
2606 of an if-expression whose if-part is not a constant expression */
2607 const char *g = "string";
2608 ccp = &g + (g ? g-g : 0);
2609 /* HPUX 7.0 cc rejects these. */
2612 ccp = (char const *const *) p;
2613 { /* SCO 3.2v4 cc rejects this. */
2615 char const *s = 0 ? (char *) 0 : (char const *) 0;
2619 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2621 const int *foo = &x[0];
2624 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2625 typedef const int *iptr;
2629 { /* AIX XL C 1.02.0.0 rejects this saying
2630 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2631 struct s { int j; const int *ap[3]; };
2632 struct s *b; b->j = 5;
2634 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2640 if { (eval echo configure
:2641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2644 echo "configure: failed program was:" >&5
2645 cat conftest.
$ac_ext >&5
2652 echo "$ac_t""$ac_cv_c_const" 1>&6
2653 if test $ac_cv_c_const = no
; then
2654 cat >> confdefs.h
<<\EOF
2662 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2663 echo "configure:2664: checking return type of signal handlers" >&5
2664 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2665 echo $ac_n "(cached) $ac_c" 1>&6
2667 cat > conftest.
$ac_ext <<EOF
2668 #line 2669 "configure"
2669 #include "confdefs.h"
2670 #include <sys/types.h>
2676 extern "C" void (*signal (int, void (*)(int)))(int);
2678 void (*signal ()) ();
2685 if { (eval echo configure
:2686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2687 ac_cv_type_signal
=void
2689 echo "configure: failed program was:" >&5
2690 cat conftest.
$ac_ext >&5
2692 ac_cv_type_signal
=int
2697 echo "$ac_t""$ac_cv_type_signal" 1>&6
2698 cat >> confdefs.h
<<EOF
2699 #define RETSIGTYPE $ac_cv_type_signal
2712 echo $ac_n "checking for gettext""... $ac_c" 1>&6
2713 echo "configure:2714: checking for gettext" >&5
2714 if eval "test \"`echo '$''{'ac_cv_func_gettext'+set}'`\" = set"; then
2715 echo $ac_n "(cached) $ac_c" 1>&6
2717 cat > conftest.
$ac_ext <<EOF
2718 #line 2719 "configure"
2719 #include "confdefs.h"
2720 /* System header to define __stub macros and hopefully few prototypes,
2721 which can conflict with char gettext(); below. */
2723 /* Override any gcc2 internal prototype to avoid an error. */
2724 /* We use char because int might match the return type of a gcc2
2725 builtin and then its argument prototype would still apply. */
2730 /* The GNU C library defines this for functions which it implements
2731 to always fail with ENOSYS. Some functions are actually named
2732 something starting with __ and the normal name is an alias. */
2733 #if defined (__stub_gettext) || defined (__stub___gettext)
2741 if { (eval echo configure
:2742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2743 eval "ac_cv_func_gettext=yes"
2745 echo "configure: failed program was:" >&5
2746 cat conftest.
$ac_ext >&5
2748 eval "ac_cv_func_gettext=no"
2753 if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
2754 echo "$ac_t""yes" 1>&6
2757 echo "$ac_t""no" 1>&6
2758 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2759 echo "configure:2760: checking for gettext in -lintl" >&5
2760 ac_lib_var
=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2761 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2762 echo $ac_n "(cached) $ac_c" 1>&6
2764 ac_save_LIBS
="$LIBS"
2766 cat > conftest.
$ac_ext <<EOF
2767 #line 2768 "configure"
2768 #include "confdefs.h"
2769 /* Override any gcc2 internal prototype to avoid an error. */
2770 /* We use char because int might match the return type of a gcc2
2771 builtin and then its argument prototype would still apply. */
2778 if { (eval echo configure
:2779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2780 eval "ac_cv_lib_$ac_lib_var=yes"
2782 echo "configure: failed program was:" >&5
2783 cat conftest.
$ac_ext >&5
2785 eval "ac_cv_lib_$ac_lib_var=no"
2788 LIBS
="$ac_save_LIBS"
2791 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2792 echo "$ac_t""yes" 1>&6
2793 INTLIBS
="-lintl" HAVEGETTEXT
="yes"
2795 echo "$ac_t""no" 1>&6
2802 # Extract the first word of "xgettext", so it can be a program name with args.
2803 set dummy xgettext
; ac_word
=$2
2804 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2805 echo "configure:2806: checking for $ac_word" >&5
2806 if eval "test \"`echo '$''{'ac_cv_prog_XGETTEXT'+set}'`\" = set"; then
2807 echo $ac_n "(cached) $ac_c" 1>&6
2809 if test -n "$XGETTEXT"; then
2810 ac_cv_prog_XGETTEXT
="$XGETTEXT" # Let the user override the test.
2812 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2814 for ac_dir
in $ac_dummy; do
2815 test -z "$ac_dir" && ac_dir
=.
2816 if test -f $ac_dir/$ac_word; then
2817 ac_cv_prog_XGETTEXT
="xgettext"
2824 XGETTEXT
="$ac_cv_prog_XGETTEXT"
2825 if test -n "$XGETTEXT"; then
2826 echo "$ac_t""$XGETTEXT" 1>&6
2828 echo "$ac_t""no" 1>&6
2832 if test "$XGETTEXT" != ""; then
2833 if $XGETTEXT --help 2>&1 |
grep illegal
>/dev
/null
; then
2834 echo "xgettext isn't GNU version"
2839 if test "$LINGUAS" != ""; then
2840 if test "$XGETTEXT" != "" -a "$HAVEGETTEXT" != ""; then
2841 cat >> confdefs.h
<<\EOF
2846 # if test "$LINGUAS" = ""; then
2847 # ling=` (cd src/po; /bin/ls *.po) `
2848 # for l in $ling; do
2849 # lcode=`basename $l .po`
2850 # LINGUAS="$LINGUAS $lcode"
2853 echo "xgettext and gettext() exist; will build i18n support for $LINGUAS"
2857 echo "xgettext and libintl.a don't both exist; will not build i18n support"
2868 supported_locales
="cs de es fr gl it ja ko nl no pt ru se tr fi hr el pl ro da zh_TW.Big5 zh_CN sk"
2869 supported_wprefs_locales
="pt hr fr ko ja cs zh_TW.Big5 es zh_CN fi it ru de"
2871 for lang
in $LINGUAS; do
2873 for l
in $supported_locales; do
2874 if test "$l" = "$lang"; then
2879 if test "$ok" = 1; then
2880 MOFILES
="$MOFILES $lang.mo"
2882 echo "Locale $lang is not supported."
2885 for l
in $supported_wprefs_locales; do
2886 if test "$l" = "$lang"; then
2891 if test "$ok" = 1; then
2892 WPMOFILES
="$WPMOFILES $lang.mo"
2900 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
2901 echo "configure:2902: checking for setlocale in -lxpg4" >&5
2902 ac_lib_var
=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
2903 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2904 echo $ac_n "(cached) $ac_c" 1>&6
2906 ac_save_LIBS
="$LIBS"
2908 cat > conftest.
$ac_ext <<EOF
2909 #line 2910 "configure"
2910 #include "confdefs.h"
2911 /* Override any gcc2 internal prototype to avoid an error. */
2912 /* We use char because int might match the return type of a gcc2
2913 builtin and then its argument prototype would still apply. */
2920 if { (eval echo configure
:2921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2922 eval "ac_cv_lib_$ac_lib_var=yes"
2924 echo "configure: failed program was:" >&5
2925 cat conftest.
$ac_ext >&5
2927 eval "ac_cv_lib_$ac_lib_var=no"
2930 LIBS
="$ac_save_LIBS"
2933 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2934 echo "$ac_t""yes" 1>&6
2937 echo "$ac_t""no" 1>&6
2946 # Check whether --with-nlsdir or --without-nlsdir was given.
2947 if test "${with_nlsdir+set}" = set; then
2948 withval
="$with_nlsdir"
2954 if test "x$NLSDIR" = "x"; then
2955 if test "x$with_nlsdir" != "x"; then
2958 NLSDIR
='$(prefix)/lib/locale'
2974 # Check whether --enable-gnome or --disable-gnome was given.
2975 if test "${enable_gnome+set}" = set; then
2976 enableval
="$enable_gnome"
2977 if test x
$enableval = xyes
; then
2978 cat >> confdefs.h
<<\EOF
2979 #define GNOME_STUFF 1
2988 # Check whether --enable-kde or --disable-kde was given.
2989 if test "${enable_kde+set}" = set; then
2990 enableval
="$enable_kde"
2991 if test x
$enableval = xyes
; then
2992 cat >> confdefs.h
<<\EOF
3002 # Check whether --enable-openlook or --disable-openlook was given.
3003 if test "${enable_openlook+set}" = set; then
3004 enableval
="$enable_openlook"
3005 if test x
$enableval = xyes
; then
3006 cat >> confdefs.h
<<\EOF
3007 #define OLWM_HINTS 1
3016 # Check whether --enable-lite or --disable-lite was given.
3017 if test "${enable_lite+set}" = set; then
3018 enableval
="$enable_lite"
3019 if test x
$enableval = xyes
; then
3021 cat >> confdefs.h
<<\EOF
3033 # If we find X, set shell vars x_includes and x_libraries to the
3034 # paths, otherwise set no_x=yes.
3035 # Uses ac_ vars as temps to allow command line to override cache and checks.
3036 # --without-x overrides everything else, but does not touch the cache.
3037 echo $ac_n "checking for X""... $ac_c" 1>&6
3038 echo "configure:3039: checking for X" >&5
3040 # Check whether --with-x or --without-x was given.
3041 if test "${with_x+set}" = set; then
3046 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3047 if test "x$with_x" = xno
; then
3048 # The user explicitly disabled X.
3051 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
3052 # Both variables are already set.
3055 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3056 echo $ac_n "(cached) $ac_c" 1>&6
3058 # One or both of the vars are not set, and there is no cached value.
3059 ac_x_includes
=NO ac_x_libraries
=NO
3061 if mkdir conftestdir
; then
3063 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3064 cat > Imakefile
<<'EOF'
3066 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3068 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
3069 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3070 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3071 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3072 for ac_extension
in a so sl
; do
3073 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
3074 test -f $ac_im_libdir/libX11.
$ac_extension; then
3075 ac_im_usrlibdir
=$ac_im_libdir; break
3078 # Screen out bogus values from the imake configuration. They are
3079 # bogus both because they are the default anyway, and because
3080 # using them would break gcc on systems where it needs fixed includes.
3081 case "$ac_im_incroot" in
3083 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
3085 case "$ac_im_usrlibdir" in
3087 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
3094 if test "$ac_x_includes" = NO
; then
3095 # Guess where to find include files, by looking for this one X11 .h file.
3096 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
3098 # First, try using that file with no special directory specified.
3099 cat > conftest.
$ac_ext <<EOF
3100 #line 3101 "configure"
3101 #include "confdefs.h"
3102 #include <$x_direct_test_include>
3104 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3105 { (eval echo configure
:3106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3106 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3107 if test -z "$ac_err"; then
3109 # We can compile using X headers with no special include directory.
3113 echo "configure: failed program was:" >&5
3114 cat conftest.
$ac_ext >&5
3116 # Look for the header file in a standard set of common directories.
3117 # Check X11 before X11Rn because it is often a symlink to the current release.
3120 /usr
/X11R
6/include \
3121 /usr
/X11R
5/include \
3122 /usr
/X11R
4/include \
3125 /usr
/include
/X11R6 \
3126 /usr
/include
/X11R5 \
3127 /usr
/include
/X11R4 \
3129 /usr
/local
/X11
/include \
3130 /usr
/local
/X11R
6/include \
3131 /usr
/local
/X11R
5/include \
3132 /usr
/local
/X11R
4/include \
3134 /usr
/local
/include
/X11 \
3135 /usr
/local
/include
/X11R6 \
3136 /usr
/local
/include
/X11R5 \
3137 /usr
/local
/include
/X11R4 \
3141 /usr
/XFree86
/include
/X11 \
3144 /usr
/local
/include \
3145 /usr
/unsupported
/include \
3146 /usr
/athena
/include \
3147 /usr
/local
/x11r
5/include \
3148 /usr
/lpp
/Xamples
/include \
3150 /usr
/openwin
/include \
3151 /usr
/openwin
/share
/include \
3154 if test -r "$ac_dir/$x_direct_test_include"; then
3155 ac_x_includes
=$ac_dir
3161 fi # $ac_x_includes = NO
3163 if test "$ac_x_libraries" = NO
; then
3164 # Check for the libraries.
3166 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
3167 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
3169 # See if we find them without any special options.
3170 # Don't add to $LIBS permanently.
3171 ac_save_LIBS
="$LIBS"
3172 LIBS
="-l$x_direct_test_library $LIBS"
3173 cat > conftest.
$ac_ext <<EOF
3174 #line 3175 "configure"
3175 #include "confdefs.h"
3178 ${x_direct_test_function}()
3181 if { (eval echo configure
:3182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3183 LIBS
="$ac_save_LIBS"
3184 # We can link X programs with no special library path.
3187 echo "configure: failed program was:" >&5
3188 cat conftest.
$ac_ext >&5
3190 LIBS
="$ac_save_LIBS"
3191 # First see if replacing the include by lib works.
3192 # Check X11 before X11Rn because it is often a symlink to the current release.
3193 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
3204 /usr
/local
/X11
/lib \
3205 /usr
/local
/X11R
6/lib \
3206 /usr
/local
/X11R
5/lib \
3207 /usr
/local
/X11R
4/lib \
3209 /usr
/local
/lib
/X11 \
3210 /usr
/local
/lib
/X11R6 \
3211 /usr
/local
/lib
/X11R5 \
3212 /usr
/local
/lib
/X11R4 \
3216 /usr
/XFree86
/lib
/X11 \
3220 /usr
/unsupported
/lib \
3222 /usr
/local
/x11r
5/lib \
3223 /usr
/lpp
/Xamples
/lib \
3227 /usr
/openwin
/share
/lib \
3230 for ac_extension
in a so sl
; do
3231 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
3232 ac_x_libraries
=$ac_dir
3239 fi # $ac_x_libraries = NO
3241 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
3242 # Didn't find X anywhere. Cache the known absence of X.
3243 ac_cv_have_x
="have_x=no"
3245 # Record where we found X for the cache.
3246 ac_cv_have_x
="have_x=yes \
3247 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3251 eval "$ac_cv_have_x"
3254 if test "$have_x" != yes; then
3255 echo "$ac_t""$have_x" 1>&6
3258 # If each of the values was on the command line, it overrides each guess.
3259 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
3260 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
3261 # Update the cache value to reflect the command line values.
3262 ac_cv_have_x
="have_x=yes \
3263 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3264 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
3267 if test "$no_x" = yes; then
3268 # Not all programs may use this symbol, but it does not hurt to define it.
3269 cat >> confdefs.h
<<\EOF
3270 #define X_DISPLAY_MISSING 1
3273 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
3275 if test -n "$x_includes"; then
3276 X_CFLAGS
="$X_CFLAGS -I$x_includes"
3279 # It would also be nice to do this for all -L options, not just this one.
3280 if test -n "$x_libraries"; then
3281 X_LIBS
="$X_LIBS -L$x_libraries"
3282 # For Solaris; some versions of Sun CC require a space after -R and
3283 # others require no space. Words are not sufficient . . . .
3284 case "`(uname -sr) 2>/dev/null`" in
3286 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
3287 echo "configure:3288: checking whether -R must be followed by a space" >&5
3288 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
3289 cat > conftest.
$ac_ext <<EOF
3290 #line 3291 "configure"
3291 #include "confdefs.h"
3297 if { (eval echo configure
:3298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3301 echo "configure: failed program was:" >&5
3302 cat conftest.
$ac_ext >&5
3307 if test $ac_R_nospace = yes; then
3308 echo "$ac_t""no" 1>&6
3309 X_LIBS
="$X_LIBS -R$x_libraries"
3311 LIBS
="$ac_xsave_LIBS -R $x_libraries"
3312 cat > conftest.
$ac_ext <<EOF
3313 #line 3314 "configure"
3314 #include "confdefs.h"
3320 if { (eval echo configure
:3321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3324 echo "configure: failed program was:" >&5
3325 cat conftest.
$ac_ext >&5
3330 if test $ac_R_space = yes; then
3331 echo "$ac_t""yes" 1>&6
3332 X_LIBS
="$X_LIBS -R $x_libraries"
3334 echo "$ac_t""neither works" 1>&6
3337 LIBS
="$ac_xsave_LIBS"
3341 # Check for system-dependent libraries X programs must link with.
3342 # Do this before checking for the system-independent R6 libraries
3343 # (-lICE), since we may need -lsocket or whatever for X linking.
3345 if test "$ISC" = yes; then
3346 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
3348 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3349 # libraries were built with DECnet support. And karl@cs.umb.edu says
3350 # the Alpha needs dnet_stub (dnet does not exist).
3351 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3352 echo "configure:3353: checking for dnet_ntoa in -ldnet" >&5
3353 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3354 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3355 echo $ac_n "(cached) $ac_c" 1>&6
3357 ac_save_LIBS
="$LIBS"
3359 cat > conftest.
$ac_ext <<EOF
3360 #line 3361 "configure"
3361 #include "confdefs.h"
3362 /* Override any gcc2 internal prototype to avoid an error. */
3363 /* We use char because int might match the return type of a gcc2
3364 builtin and then its argument prototype would still apply. */
3371 if { (eval echo configure
:3372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3373 eval "ac_cv_lib_$ac_lib_var=yes"
3375 echo "configure: failed program was:" >&5
3376 cat conftest.
$ac_ext >&5
3378 eval "ac_cv_lib_$ac_lib_var=no"
3381 LIBS
="$ac_save_LIBS"
3384 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3385 echo "$ac_t""yes" 1>&6
3386 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
3388 echo "$ac_t""no" 1>&6
3391 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
3392 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3393 echo "configure:3394: checking for dnet_ntoa in -ldnet_stub" >&5
3394 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3395 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3396 echo $ac_n "(cached) $ac_c" 1>&6
3398 ac_save_LIBS
="$LIBS"
3399 LIBS
="-ldnet_stub $LIBS"
3400 cat > conftest.
$ac_ext <<EOF
3401 #line 3402 "configure"
3402 #include "confdefs.h"
3403 /* Override any gcc2 internal prototype to avoid an error. */
3404 /* We use char because int might match the return type of a gcc2
3405 builtin and then its argument prototype would still apply. */
3412 if { (eval echo configure
:3413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3414 eval "ac_cv_lib_$ac_lib_var=yes"
3416 echo "configure: failed program was:" >&5
3417 cat conftest.
$ac_ext >&5
3419 eval "ac_cv_lib_$ac_lib_var=no"
3422 LIBS
="$ac_save_LIBS"
3425 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3426 echo "$ac_t""yes" 1>&6
3427 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
3429 echo "$ac_t""no" 1>&6
3434 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3435 # to get the SysV transport functions.
3436 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3438 # The nsl library prevents programs from opening the X display
3439 # on Irix 5.2, according to dickey@clark.net.
3440 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3441 echo "configure:3442: checking for gethostbyname" >&5
3442 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3443 echo $ac_n "(cached) $ac_c" 1>&6
3445 cat > conftest.
$ac_ext <<EOF
3446 #line 3447 "configure"
3447 #include "confdefs.h"
3448 /* System header to define __stub macros and hopefully few prototypes,
3449 which can conflict with char gethostbyname(); below. */
3451 /* Override any gcc2 internal prototype to avoid an error. */
3452 /* We use char because int might match the return type of a gcc2
3453 builtin and then its argument prototype would still apply. */
3454 char gethostbyname();
3458 /* The GNU C library defines this for functions which it implements
3459 to always fail with ENOSYS. Some functions are actually named
3460 something starting with __ and the normal name is an alias. */
3461 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3469 if { (eval echo configure
:3470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3471 eval "ac_cv_func_gethostbyname=yes"
3473 echo "configure: failed program was:" >&5
3474 cat conftest.
$ac_ext >&5
3476 eval "ac_cv_func_gethostbyname=no"
3481 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3482 echo "$ac_t""yes" 1>&6
3485 echo "$ac_t""no" 1>&6
3488 if test $ac_cv_func_gethostbyname = no
; then
3489 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3490 echo "configure:3491: checking for gethostbyname in -lnsl" >&5
3491 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3492 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3493 echo $ac_n "(cached) $ac_c" 1>&6
3495 ac_save_LIBS
="$LIBS"
3497 cat > conftest.
$ac_ext <<EOF
3498 #line 3499 "configure"
3499 #include "confdefs.h"
3500 /* Override any gcc2 internal prototype to avoid an error. */
3501 /* We use char because int might match the return type of a gcc2
3502 builtin and then its argument prototype would still apply. */
3503 char gethostbyname();
3509 if { (eval echo configure
:3510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3511 eval "ac_cv_lib_$ac_lib_var=yes"
3513 echo "configure: failed program was:" >&5
3514 cat conftest.
$ac_ext >&5
3516 eval "ac_cv_lib_$ac_lib_var=no"
3519 LIBS
="$ac_save_LIBS"
3522 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3523 echo "$ac_t""yes" 1>&6
3524 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
3526 echo "$ac_t""no" 1>&6
3531 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3532 # socket/setsockopt and other routines are undefined under SCO ODT
3533 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3534 # on later versions), says simon@lia.di.epfl.ch: it contains
3535 # gethostby* variants that don't use the nameserver (or something).
3536 # -lsocket must be given before -lnsl if both are needed.
3537 # We assume that if connect needs -lnsl, so does gethostbyname.
3538 echo $ac_n "checking for connect""... $ac_c" 1>&6
3539 echo "configure:3540: checking for connect" >&5
3540 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3541 echo $ac_n "(cached) $ac_c" 1>&6
3543 cat > conftest.
$ac_ext <<EOF
3544 #line 3545 "configure"
3545 #include "confdefs.h"
3546 /* System header to define __stub macros and hopefully few prototypes,
3547 which can conflict with char connect(); below. */
3549 /* Override any gcc2 internal prototype to avoid an error. */
3550 /* We use char because int might match the return type of a gcc2
3551 builtin and then its argument prototype would still apply. */
3556 /* The GNU C library defines this for functions which it implements
3557 to always fail with ENOSYS. Some functions are actually named
3558 something starting with __ and the normal name is an alias. */
3559 #if defined (__stub_connect) || defined (__stub___connect)
3567 if { (eval echo configure
:3568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3569 eval "ac_cv_func_connect=yes"
3571 echo "configure: failed program was:" >&5
3572 cat conftest.
$ac_ext >&5
3574 eval "ac_cv_func_connect=no"
3579 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3580 echo "$ac_t""yes" 1>&6
3583 echo "$ac_t""no" 1>&6
3586 if test $ac_cv_func_connect = no
; then
3587 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3588 echo "configure:3589: checking for connect in -lsocket" >&5
3589 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3590 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3591 echo $ac_n "(cached) $ac_c" 1>&6
3593 ac_save_LIBS
="$LIBS"
3594 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
3595 cat > conftest.
$ac_ext <<EOF
3596 #line 3597 "configure"
3597 #include "confdefs.h"
3598 /* Override any gcc2 internal prototype to avoid an error. */
3599 /* We use char because int might match the return type of a gcc2
3600 builtin and then its argument prototype would still apply. */
3607 if { (eval echo configure
:3608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3609 eval "ac_cv_lib_$ac_lib_var=yes"
3611 echo "configure: failed program was:" >&5
3612 cat conftest.
$ac_ext >&5
3614 eval "ac_cv_lib_$ac_lib_var=no"
3617 LIBS
="$ac_save_LIBS"
3620 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3621 echo "$ac_t""yes" 1>&6
3622 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
3624 echo "$ac_t""no" 1>&6
3629 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
3630 echo $ac_n "checking for remove""... $ac_c" 1>&6
3631 echo "configure:3632: checking for remove" >&5
3632 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
3633 echo $ac_n "(cached) $ac_c" 1>&6
3635 cat > conftest.
$ac_ext <<EOF
3636 #line 3637 "configure"
3637 #include "confdefs.h"
3638 /* System header to define __stub macros and hopefully few prototypes,
3639 which can conflict with char remove(); below. */
3641 /* Override any gcc2 internal prototype to avoid an error. */
3642 /* We use char because int might match the return type of a gcc2
3643 builtin and then its argument prototype would still apply. */
3648 /* The GNU C library defines this for functions which it implements
3649 to always fail with ENOSYS. Some functions are actually named
3650 something starting with __ and the normal name is an alias. */
3651 #if defined (__stub_remove) || defined (__stub___remove)
3659 if { (eval echo configure
:3660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3661 eval "ac_cv_func_remove=yes"
3663 echo "configure: failed program was:" >&5
3664 cat conftest.
$ac_ext >&5
3666 eval "ac_cv_func_remove=no"
3671 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
3672 echo "$ac_t""yes" 1>&6
3675 echo "$ac_t""no" 1>&6
3678 if test $ac_cv_func_remove = no
; then
3679 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
3680 echo "configure:3681: checking for remove in -lposix" >&5
3681 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
3682 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3683 echo $ac_n "(cached) $ac_c" 1>&6
3685 ac_save_LIBS
="$LIBS"
3686 LIBS
="-lposix $LIBS"
3687 cat > conftest.
$ac_ext <<EOF
3688 #line 3689 "configure"
3689 #include "confdefs.h"
3690 /* Override any gcc2 internal prototype to avoid an error. */
3691 /* We use char because int might match the return type of a gcc2
3692 builtin and then its argument prototype would still apply. */
3699 if { (eval echo configure
:3700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3701 eval "ac_cv_lib_$ac_lib_var=yes"
3703 echo "configure: failed program was:" >&5
3704 cat conftest.
$ac_ext >&5
3706 eval "ac_cv_lib_$ac_lib_var=no"
3709 LIBS
="$ac_save_LIBS"
3712 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3713 echo "$ac_t""yes" 1>&6
3714 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
3716 echo "$ac_t""no" 1>&6
3721 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3722 echo $ac_n "checking for shmat""... $ac_c" 1>&6
3723 echo "configure:3724: checking for shmat" >&5
3724 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
3725 echo $ac_n "(cached) $ac_c" 1>&6
3727 cat > conftest.
$ac_ext <<EOF
3728 #line 3729 "configure"
3729 #include "confdefs.h"
3730 /* System header to define __stub macros and hopefully few prototypes,
3731 which can conflict with char shmat(); below. */
3733 /* Override any gcc2 internal prototype to avoid an error. */
3734 /* We use char because int might match the return type of a gcc2
3735 builtin and then its argument prototype would still apply. */
3740 /* The GNU C library defines this for functions which it implements
3741 to always fail with ENOSYS. Some functions are actually named
3742 something starting with __ and the normal name is an alias. */
3743 #if defined (__stub_shmat) || defined (__stub___shmat)
3751 if { (eval echo configure
:3752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3753 eval "ac_cv_func_shmat=yes"
3755 echo "configure: failed program was:" >&5
3756 cat conftest.
$ac_ext >&5
3758 eval "ac_cv_func_shmat=no"
3763 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
3764 echo "$ac_t""yes" 1>&6
3767 echo "$ac_t""no" 1>&6
3770 if test $ac_cv_func_shmat = no
; then
3771 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
3772 echo "configure:3773: checking for shmat in -lipc" >&5
3773 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
3774 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3775 echo $ac_n "(cached) $ac_c" 1>&6
3777 ac_save_LIBS
="$LIBS"
3779 cat > conftest.
$ac_ext <<EOF
3780 #line 3781 "configure"
3781 #include "confdefs.h"
3782 /* Override any gcc2 internal prototype to avoid an error. */
3783 /* We use char because int might match the return type of a gcc2
3784 builtin and then its argument prototype would still apply. */
3791 if { (eval echo configure
:3792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3793 eval "ac_cv_lib_$ac_lib_var=yes"
3795 echo "configure: failed program was:" >&5
3796 cat conftest.
$ac_ext >&5
3798 eval "ac_cv_lib_$ac_lib_var=no"
3801 LIBS
="$ac_save_LIBS"
3804 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3805 echo "$ac_t""yes" 1>&6
3806 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
3808 echo "$ac_t""no" 1>&6
3814 # Check for libraries that X11R6 Xt/Xaw programs need.
3815 ac_save_LDFLAGS
="$LDFLAGS"
3816 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
3817 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3818 # check for ICE first), but we must link in the order -lSM -lICE or
3819 # we get undefined symbols. So assume we have SM if we have ICE.
3820 # These have to be linked with before -lX11, unlike the other
3821 # libraries we check for below, so use a different variable.
3822 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
3823 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
3824 echo "configure:3825: checking for IceConnectionNumber in -lICE" >&5
3825 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
3826 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3827 echo $ac_n "(cached) $ac_c" 1>&6
3829 ac_save_LIBS
="$LIBS"
3830 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
3831 cat > conftest.
$ac_ext <<EOF
3832 #line 3833 "configure"
3833 #include "confdefs.h"
3834 /* Override any gcc2 internal prototype to avoid an error. */
3835 /* We use char because int might match the return type of a gcc2
3836 builtin and then its argument prototype would still apply. */
3837 char IceConnectionNumber();
3840 IceConnectionNumber()
3843 if { (eval echo configure
:3844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3845 eval "ac_cv_lib_$ac_lib_var=yes"
3847 echo "configure: failed program was:" >&5
3848 cat conftest.
$ac_ext >&5
3850 eval "ac_cv_lib_$ac_lib_var=no"
3853 LIBS
="$ac_save_LIBS"
3856 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3857 echo "$ac_t""yes" 1>&6
3858 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
3860 echo "$ac_t""no" 1>&6
3863 LDFLAGS
="$ac_save_LDFLAGS"
3868 X_LIBRARY_PATH
=$x_libraries
3874 XLIBS
="-lX11 $X_EXTRA_LIBS"
3877 lib_search_path
="$lib_search_path $XLFLAGS"
3878 inc_search_path
="$inc_search_path $XCFLAGS"
3886 # Check whether --enable-locale or --disable-locale was given.
3887 if test "${enable_locale+set}" = set; then
3888 enableval
="$enable_locale"
3893 if test "$use_locale" = yes; then
3894 echo $ac_n "checking for _Xsetlocale in -lX11""... $ac_c" 1>&6
3895 echo "configure:3896: checking for _Xsetlocale in -lX11" >&5
3896 ac_lib_var
=`echo X11'_'_Xsetlocale | sed 'y%./+-%__p_%'`
3897 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3898 echo $ac_n "(cached) $ac_c" 1>&6
3900 ac_save_LIBS
="$LIBS"
3901 LIBS
="-lX11 $XLFLAGS $XLIBS $LIBS"
3902 cat > conftest.
$ac_ext <<EOF
3903 #line 3904 "configure"
3904 #include "confdefs.h"
3905 /* Override any gcc2 internal prototype to avoid an error. */
3906 /* We use char because int might match the return type of a gcc2
3907 builtin and then its argument prototype would still apply. */
3914 if { (eval echo configure
:3915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3916 eval "ac_cv_lib_$ac_lib_var=yes"
3918 echo "configure: failed program was:" >&5
3919 cat conftest.
$ac_ext >&5
3921 eval "ac_cv_lib_$ac_lib_var=no"
3924 LIBS
="$ac_save_LIBS"
3927 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3928 echo "$ac_t""yes" 1>&6
3929 cat >> confdefs.h
<<\EOF
3934 echo "$ac_t""no" 1>&6
3940 # Check whether --enable-modelock or --disable-modelock was given.
3941 if test "${enable_modelock+set}" = set; then
3942 enableval
="$enable_modelock"
3943 cat >> confdefs.h
<<\EOF
3944 #define XKB_MODELOCK 1
3953 # Check whether --enable-shape or --disable-shape was given.
3954 if test "${enable_shape+set}" = set; then
3955 enableval
="$enable_shape"
3964 if test "$shape" = yes; then
3965 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
3966 echo "configure:3967: checking for XShapeSelectInput in -lXext" >&5
3967 ac_lib_var
=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
3968 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3969 echo $ac_n "(cached) $ac_c" 1>&6
3971 ac_save_LIBS
="$LIBS"
3972 LIBS
="-lXext $XLFLAGS $XLIBS $LIBS"
3973 cat > conftest.
$ac_ext <<EOF
3974 #line 3975 "configure"
3975 #include "confdefs.h"
3976 /* Override any gcc2 internal prototype to avoid an error. */
3977 /* We use char because int might match the return type of a gcc2
3978 builtin and then its argument prototype would still apply. */
3979 char XShapeSelectInput();
3985 if { (eval echo configure
:3986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3987 eval "ac_cv_lib_$ac_lib_var=yes"
3989 echo "configure: failed program was:" >&5
3990 cat conftest.
$ac_ext >&5
3992 eval "ac_cv_lib_$ac_lib_var=no"
3995 LIBS
="$ac_save_LIBS"
3998 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3999 echo "$ac_t""yes" 1>&6
4000 XLIBS
="-lXext $XLIBS"
4002 cat >> confdefs.h
<<\EOF
4007 echo "$ac_t""no" 1>&6
4015 # Check whether --enable-shm or --disable-shm was given.
4016 if test "${enable_shm+set}" = set; then
4017 enableval
="$enable_shm"
4024 if test "$shm" = yes; then
4025 echo $ac_n "checking for XShmAttach in -lXext""... $ac_c" 1>&6
4026 echo "configure:4027: checking for XShmAttach in -lXext" >&5
4027 ac_lib_var
=`echo Xext'_'XShmAttach | sed 'y%./+-%__p_%'`
4028 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4029 echo $ac_n "(cached) $ac_c" 1>&6
4031 ac_save_LIBS
="$LIBS"
4032 LIBS
="-lXext $XLFLAGS $XLIBS $LIBS"
4033 cat > conftest.
$ac_ext <<EOF
4034 #line 4035 "configure"
4035 #include "confdefs.h"
4036 /* Override any gcc2 internal prototype to avoid an error. */
4037 /* We use char because int might match the return type of a gcc2
4038 builtin and then its argument prototype would still apply. */
4045 if { (eval echo configure
:4046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4047 eval "ac_cv_lib_$ac_lib_var=yes"
4049 echo "configure: failed program was:" >&5
4050 cat conftest.
$ac_ext >&5
4052 eval "ac_cv_lib_$ac_lib_var=no"
4055 LIBS
="$ac_save_LIBS"
4058 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4059 echo "$ac_t""yes" 1>&6
4062 echo "$ac_t""no" 1>&6
4067 if test "$ok" = yes; then
4068 echo $ac_n "checking for shmget""... $ac_c" 1>&6
4069 echo "configure:4070: checking for shmget" >&5
4070 if eval "test \"`echo '$''{'ac_cv_func_shmget'+set}'`\" = set"; then
4071 echo $ac_n "(cached) $ac_c" 1>&6
4073 cat > conftest.
$ac_ext <<EOF
4074 #line 4075 "configure"
4075 #include "confdefs.h"
4076 /* System header to define __stub macros and hopefully few prototypes,
4077 which can conflict with char shmget(); below. */
4079 /* Override any gcc2 internal prototype to avoid an error. */
4080 /* We use char because int might match the return type of a gcc2
4081 builtin and then its argument prototype would still apply. */
4086 /* The GNU C library defines this for functions which it implements
4087 to always fail with ENOSYS. Some functions are actually named
4088 something starting with __ and the normal name is an alias. */
4089 #if defined (__stub_shmget) || defined (__stub___shmget)
4097 if { (eval echo configure
:4098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4099 eval "ac_cv_func_shmget=yes"
4101 echo "configure: failed program was:" >&5
4102 cat conftest.
$ac_ext >&5
4104 eval "ac_cv_func_shmget=no"
4109 if eval "test \"`echo '$ac_cv_func_'shmget`\" = yes"; then
4110 echo "$ac_t""yes" 1>&6
4113 echo "$ac_t""no" 1>&6
4119 if test "$ok" = yes; then
4120 if test "$added_xext" = no
; then
4121 XLIBS
="-lXext $XLIBS"
4123 cat >> confdefs.h
<<\EOF
4143 LDFLAGS_old
="$LDFLAGS"
4144 LDFLAGS
="$LDFLAGS $lib_search_path"
4145 echo $ac_n "checking for PLGetString in -lPropList""... $ac_c" 1>&6
4146 echo "configure:4147: checking for PLGetString in -lPropList" >&5
4147 ac_lib_var
=`echo PropList'_'PLGetString | sed 'y%./+-%__p_%'`
4148 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4149 echo $ac_n "(cached) $ac_c" 1>&6
4151 ac_save_LIBS
="$LIBS"
4152 LIBS
="-lPropList $X_EXTRA_LIBS $LIBS"
4153 cat > conftest.
$ac_ext <<EOF
4154 #line 4155 "configure"
4155 #include "confdefs.h"
4156 /* Override any gcc2 internal prototype to avoid an error. */
4157 /* We use char because int might match the return type of a gcc2
4158 builtin and then its argument prototype would still apply. */
4165 if { (eval echo configure
:4166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4167 eval "ac_cv_lib_$ac_lib_var=yes"
4169 echo "configure: failed program was:" >&5
4170 cat conftest.
$ac_ext >&5
4172 eval "ac_cv_lib_$ac_lib_var=no"
4175 LIBS
="$ac_save_LIBS"
4178 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4179 echo "$ac_t""yes" 1>&6
4182 echo "$ac_t""no" 1>&6
4186 LDFLAGS
="$LDFLAGS_old"
4188 if test "x$ac_cv_lib_PropList_PLGetString" = xyes
; then
4190 CPPFLAGS_old
="$CPPFLAGS"
4191 CPPFLAGS
="$CPPFLAGS $inc_search_path"
4192 ac_safe
=`echo "proplist.h" | sed 'y%./+-%__p_%'`
4193 echo $ac_n "checking for proplist.h""... $ac_c" 1>&6
4194 echo "configure:4195: checking for proplist.h" >&5
4195 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4196 echo $ac_n "(cached) $ac_c" 1>&6
4198 cat > conftest.
$ac_ext <<EOF
4199 #line 4200 "configure"
4200 #include "confdefs.h"
4201 #include <proplist.h>
4203 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4204 { (eval echo configure
:4205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4205 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4206 if test -z "$ac_err"; then
4208 eval "ac_cv_header_$ac_safe=yes"
4211 echo "configure: failed program was:" >&5
4212 cat conftest.
$ac_ext >&5
4214 eval "ac_cv_header_$ac_safe=no"
4218 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4219 echo "$ac_t""yes" 1>&6
4222 echo "$ac_t""no" 1>&6
4225 CPPFLAGS
="$CPPFLAGS_old"
4227 if test "x$ac_cv_header_proplist_h" = xyes
; then
4232 if test "x$LIBPL" = "x"; then
4234 echo "ERROR!!! libPropList is not installed, or could not be found."
4235 echo " Window Maker requires libPropList to build."
4236 echo " Please read INSTALL to find where you can find libPropList,"
4237 echo " and install it first."
4238 if test x
$W_SYSTEM = xLinux
; then
4239 echo " If you're using some prepackaged version of libPropList,"
4240 echo " make sure you install it's \"development\" package as well."
4242 echo " If you already have it installed, try using the"
4243 if test "x$ac_cv_lib_PropList_PLGetString" != xyes
; then
4244 echo " --with-libs-from flag to tell configure where the library"
4245 echo " is installed and"
4247 echo " --with-incs-from flag to tell configure where the header"
4248 echo " files are installed"
4262 # Check whether --enable-xpm or --disable-xpm was given.
4263 if test "${enable_xpm+set}" = set; then
4264 enableval
="$enable_xpm"
4271 if test "$xpm" = yes; then
4273 LDFLAGS_old
="$LDFLAGS"
4274 LDFLAGS
="$LDFLAGS $lib_search_path"
4275 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
4276 echo "configure:4277: checking for XpmCreatePixmapFromData in -lXpm" >&5
4277 ac_lib_var
=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
4278 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4279 echo $ac_n "(cached) $ac_c" 1>&6
4281 ac_save_LIBS
="$LIBS"
4282 LIBS
="-lXpm $XLFLAGS $XLIBS $LIBS"
4283 cat > conftest.
$ac_ext <<EOF
4284 #line 4285 "configure"
4285 #include "confdefs.h"
4286 /* Override any gcc2 internal prototype to avoid an error. */
4287 /* We use char because int might match the return type of a gcc2
4288 builtin and then its argument prototype would still apply. */
4289 char XpmCreatePixmapFromData();
4292 XpmCreatePixmapFromData()
4295 if { (eval echo configure
:4296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4297 eval "ac_cv_lib_$ac_lib_var=yes"
4299 echo "configure: failed program was:" >&5
4300 cat conftest.
$ac_ext >&5
4302 eval "ac_cv_lib_$ac_lib_var=no"
4305 LIBS
="$ac_save_LIBS"
4308 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4309 echo "$ac_t""yes" 1>&6
4312 echo "$ac_t""no" 1>&6
4316 LDFLAGS
="$LDFLAGS_old"
4319 if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes
; then
4321 CPPFLAGS_old
="$CPPFLAGS"
4322 CPPFLAGS
="$CPPFLAGS $inc_search_path"
4323 ac_safe
=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
4324 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
4325 echo "configure:4326: checking for X11/xpm.h" >&5
4326 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4327 echo $ac_n "(cached) $ac_c" 1>&6
4329 cat > conftest.
$ac_ext <<EOF
4330 #line 4331 "configure"
4331 #include "confdefs.h"
4332 #include <X11/xpm.h>
4334 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4335 { (eval echo configure
:4336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4336 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4337 if test -z "$ac_err"; then
4339 eval "ac_cv_header_$ac_safe=yes"
4342 echo "configure: failed program was:" >&5
4343 cat conftest.
$ac_ext >&5
4345 eval "ac_cv_header_$ac_safe=no"
4349 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4350 echo "$ac_t""yes" 1>&6
4353 echo "$ac_t""no" 1>&6
4356 CPPFLAGS
="$CPPFLAGS_old"
4358 if test "x$ac_cv_header_X11_xpm_h" = xyes
; then
4359 GFXLIBS
="$GFXLIBS -lXpm"
4361 cat >> confdefs.h
<<\EOF
4366 supported_gfx
="builtin-XPM"
4382 # Check whether --enable-png or --disable-png was given.
4383 if test "${enable_png+set}" = set; then
4384 enableval
="$enable_png"
4392 if test "$png" = yes ; then
4394 LDFLAGS_old
="$LDFLAGS"
4395 LDFLAGS
="$LDFLAGS $lib_search_path"
4396 echo $ac_n "checking for png_get_valid in -lpng""... $ac_c" 1>&6
4397 echo "configure:4398: checking for png_get_valid in -lpng" >&5
4398 ac_lib_var
=`echo png'_'png_get_valid | sed 'y%./+-%__p_%'`
4399 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4400 echo $ac_n "(cached) $ac_c" 1>&6
4402 ac_save_LIBS
="$LIBS"
4403 LIBS
="-lpng -lz -lm $LIBS"
4404 cat > conftest.
$ac_ext <<EOF
4405 #line 4406 "configure"
4406 #include "confdefs.h"
4407 /* Override any gcc2 internal prototype to avoid an error. */
4408 /* We use char because int might match the return type of a gcc2
4409 builtin and then its argument prototype would still apply. */
4410 char png_get_valid();
4416 if { (eval echo configure
:4417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4418 eval "ac_cv_lib_$ac_lib_var=yes"
4420 echo "configure: failed program was:" >&5
4421 cat conftest.
$ac_ext >&5
4423 eval "ac_cv_lib_$ac_lib_var=no"
4426 LIBS
="$ac_save_LIBS"
4429 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4430 echo "$ac_t""yes" 1>&6
4433 echo "$ac_t""no" 1>&6
4437 LDFLAGS
="$LDFLAGS_old"
4440 if test "x$ac_cv_lib_png_png_get_valid" = xyes
; then
4442 CPPFLAGS_old
="$CPPFLAGS"
4443 CPPFLAGS
="$CPPFLAGS $inc_search_path"
4444 ac_safe
=`echo "png.h" | sed 'y%./+-%__p_%'`
4445 echo $ac_n "checking for png.h""... $ac_c" 1>&6
4446 echo "configure:4447: checking for png.h" >&5
4447 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4448 echo $ac_n "(cached) $ac_c" 1>&6
4450 cat > conftest.
$ac_ext <<EOF
4451 #line 4452 "configure"
4452 #include "confdefs.h"
4455 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4456 { (eval echo configure
:4457: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4457 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4458 if test -z "$ac_err"; then
4460 eval "ac_cv_header_$ac_safe=yes"
4463 echo "configure: failed program was:" >&5
4464 cat conftest.
$ac_ext >&5
4466 eval "ac_cv_header_$ac_safe=no"
4470 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4471 echo "$ac_t""yes" 1>&6
4474 echo "$ac_t""no" 1>&6
4477 CPPFLAGS
="$CPPFLAGS_old"
4479 if test "x$ac_cv_header_png_h" = xyes
; then
4480 GFXLIBS
="$GFXLIBS -lpng -lz"
4481 supported_gfx
="$supported_gfx PNG"
4482 cat >> confdefs.h
<<\EOF
4493 # Check whether --enable-jpeg or --disable-jpeg was given.
4494 if test "${enable_jpeg+set}" = set; then
4495 enableval
="$enable_jpeg"
4502 if test "$jpeg" = yes; then
4504 LDFLAGS_old
="$LDFLAGS"
4505 LDFLAGS
="$LDFLAGS $lib_search_path"
4506 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
4507 echo "configure:4508: checking for jpeg_destroy_compress in -ljpeg" >&5
4508 ac_lib_var
=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
4509 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4510 echo $ac_n "(cached) $ac_c" 1>&6
4512 ac_save_LIBS
="$LIBS"
4514 cat > conftest.
$ac_ext <<EOF
4515 #line 4516 "configure"
4516 #include "confdefs.h"
4517 /* Override any gcc2 internal prototype to avoid an error. */
4518 /* We use char because int might match the return type of a gcc2
4519 builtin and then its argument prototype would still apply. */
4520 char jpeg_destroy_compress();
4523 jpeg_destroy_compress()
4526 if { (eval echo configure
:4527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4528 eval "ac_cv_lib_$ac_lib_var=yes"
4530 echo "configure: failed program was:" >&5
4531 cat conftest.
$ac_ext >&5
4533 eval "ac_cv_lib_$ac_lib_var=no"
4536 LIBS
="$ac_save_LIBS"
4539 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4540 echo "$ac_t""yes" 1>&6
4543 echo "$ac_t""no" 1>&6
4547 LDFLAGS
="$LDFLAGS_old"
4550 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes
; then
4555 CPPFLAGS_old
="$CPPFLAGS"
4556 CPPFLAGS
="$CPPFLAGS $inc_search_path"
4557 ac_safe
=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
4558 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
4559 echo "configure:4560: checking for jpeglib.h" >&5
4560 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4561 echo $ac_n "(cached) $ac_c" 1>&6
4563 cat > conftest.
$ac_ext <<EOF
4564 #line 4565 "configure"
4565 #include "confdefs.h"
4566 #include <jpeglib.h>
4568 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4569 { (eval echo configure
:4570: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4570 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4571 if test -z "$ac_err"; then
4573 eval "ac_cv_header_$ac_safe=yes"
4576 echo "configure: failed program was:" >&5
4577 cat conftest.
$ac_ext >&5
4579 eval "ac_cv_header_$ac_safe=no"
4583 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4584 echo "$ac_t""yes" 1>&6
4587 echo "$ac_t""no" 1>&6
4590 CPPFLAGS
="$CPPFLAGS_old"
4592 if test "x$ac_cv_header_jpeglib_h" = xyes
; then
4593 GFXLIBS
="$GFXLIBS -ljpeg"
4594 supported_gfx
="$supported_gfx JPEG"
4595 cat >> confdefs.h
<<\EOF
4605 # Check whether --enable-gif or --disable-gif was given.
4606 if test "${enable_gif+set}" = set; then
4607 enableval
="$enable_gif"
4614 if test "$gif" = yes; then
4617 LDFLAGS_old
="$LDFLAGS"
4618 LDFLAGS
="$LDFLAGS $lib_search_path"
4619 echo $ac_n "checking for DGifOpenFileName in -lungif""... $ac_c" 1>&6
4620 echo "configure:4621: checking for DGifOpenFileName in -lungif" >&5
4621 ac_lib_var
=`echo ungif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
4622 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4623 echo $ac_n "(cached) $ac_c" 1>&6
4625 ac_save_LIBS
="$LIBS"
4626 LIBS
="-lungif $XLFLAGS $XLIBS $LIBS"
4627 cat > conftest.
$ac_ext <<EOF
4628 #line 4629 "configure"
4629 #include "confdefs.h"
4630 /* Override any gcc2 internal prototype to avoid an error. */
4631 /* We use char because int might match the return type of a gcc2
4632 builtin and then its argument prototype would still apply. */
4633 char DGifOpenFileName();
4639 if { (eval echo configure
:4640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4641 eval "ac_cv_lib_$ac_lib_var=yes"
4643 echo "configure: failed program was:" >&5
4644 cat conftest.
$ac_ext >&5
4646 eval "ac_cv_lib_$ac_lib_var=no"
4649 LIBS
="$ac_save_LIBS"
4652 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4653 echo "$ac_t""yes" 1>&6
4656 echo "$ac_t""no" 1>&6
4660 LDFLAGS
="$LDFLAGS_old"
4662 if test "x$ac_cv_lib_ungif_DGifOpenFileName" = xyes
; then
4665 if test "x$my_libname" = x
; then
4667 LDFLAGS_old
="$LDFLAGS"
4668 LDFLAGS
="$LDFLAGS $lib_search_path"
4669 echo $ac_n "checking for DGifOpenFileName in -lgif""... $ac_c" 1>&6
4670 echo "configure:4671: checking for DGifOpenFileName in -lgif" >&5
4671 ac_lib_var
=`echo gif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
4672 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4673 echo $ac_n "(cached) $ac_c" 1>&6
4675 ac_save_LIBS
="$LIBS"
4676 LIBS
="-lgif $XLFLAGS $XLIBS $LIBS"
4677 cat > conftest.
$ac_ext <<EOF
4678 #line 4679 "configure"
4679 #include "confdefs.h"
4680 /* Override any gcc2 internal prototype to avoid an error. */
4681 /* We use char because int might match the return type of a gcc2
4682 builtin and then its argument prototype would still apply. */
4683 char DGifOpenFileName();
4689 if { (eval echo configure
:4690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4691 eval "ac_cv_lib_$ac_lib_var=yes"
4693 echo "configure: failed program was:" >&5
4694 cat conftest.
$ac_ext >&5
4696 eval "ac_cv_lib_$ac_lib_var=no"
4699 LIBS
="$ac_save_LIBS"
4702 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4703 echo "$ac_t""yes" 1>&6
4706 echo "$ac_t""no" 1>&6
4710 LDFLAGS
="$LDFLAGS_old"
4712 if test "x$ac_cv_lib_gif_DGifOpenFileName" = xyes
; then
4717 if test "$my_libname" != x
; then
4719 CPPFLAGS_old
="$CPPFLAGS"
4720 CPPFLAGS
="$CPPFLAGS $inc_search_path"
4721 ac_safe
=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
4722 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
4723 echo "configure:4724: checking for gif_lib.h" >&5
4724 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4725 echo $ac_n "(cached) $ac_c" 1>&6
4727 cat > conftest.
$ac_ext <<EOF
4728 #line 4729 "configure"
4729 #include "confdefs.h"
4730 #include <gif_lib.h>
4732 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4733 { (eval echo configure
:4734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4734 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4735 if test -z "$ac_err"; then
4737 eval "ac_cv_header_$ac_safe=yes"
4740 echo "configure: failed program was:" >&5
4741 cat conftest.
$ac_ext >&5
4743 eval "ac_cv_header_$ac_safe=no"
4747 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4748 echo "$ac_t""yes" 1>&6
4751 echo "$ac_t""no" 1>&6
4754 CPPFLAGS
="$CPPFLAGS_old"
4756 if test "x$ac_cv_header_gif_lib_h" = xyes
; then
4757 GFXLIBS
="$GFXLIBS $my_libname"
4758 supported_gfx
="$supported_gfx GIF"
4759 cat >> confdefs.h
<<\EOF
4769 # Check whether --enable-tiff or --disable-tiff was given.
4770 if test "${enable_tiff+set}" = set; then
4771 enableval
="$enable_tiff"
4779 # TIFF can optionally have JPEG and/or zlib support. Must find out
4780 # when they are supported so that correct library flags are passed during
4781 # detection and linkage
4784 # By default use xpm icons if tiff is not found.
4788 if test "$tif" = yes; then
4791 LDFLAGS_old
="$LDFLAGS"
4792 LDFLAGS
="$LDFLAGS $lib_search_path"
4793 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
4794 echo "configure:4795: checking for TIFFGetVersion in -ltiff" >&5
4795 ac_lib_var
=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4796 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4797 echo $ac_n "(cached) $ac_c" 1>&6
4799 ac_save_LIBS
="$LIBS"
4800 LIBS
="-ltiff -lm $LIBS"
4801 cat > conftest.
$ac_ext <<EOF
4802 #line 4803 "configure"
4803 #include "confdefs.h"
4804 /* Override any gcc2 internal prototype to avoid an error. */
4805 /* We use char because int might match the return type of a gcc2
4806 builtin and then its argument prototype would still apply. */
4807 char TIFFGetVersion();
4813 if { (eval echo configure
:4814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4815 eval "ac_cv_lib_$ac_lib_var=yes"
4817 echo "configure: failed program was:" >&5
4818 cat conftest.
$ac_ext >&5
4820 eval "ac_cv_lib_$ac_lib_var=no"
4823 LIBS
="$ac_save_LIBS"
4826 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4827 echo "$ac_t""yes" 1>&6
4830 echo "$ac_t""no" 1>&6
4834 LDFLAGS
="$LDFLAGS_old"
4836 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes
; then
4839 unset ac_cv_lib_tiff_TIFFGetVersion
4840 if test "x$my_libname" = x
; then
4842 LDFLAGS_old
="$LDFLAGS"
4843 LDFLAGS
="$LDFLAGS $lib_search_path"
4844 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
4845 echo "configure:4846: checking for TIFFGetVersion in -ltiff" >&5
4846 ac_lib_var
=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4847 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4848 echo $ac_n "(cached) $ac_c" 1>&6
4850 ac_save_LIBS
="$LIBS"
4851 LIBS
="-ltiff $ljpeg -lz -lm $LIBS"
4852 cat > conftest.
$ac_ext <<EOF
4853 #line 4854 "configure"
4854 #include "confdefs.h"
4855 /* Override any gcc2 internal prototype to avoid an error. */
4856 /* We use char because int might match the return type of a gcc2
4857 builtin and then its argument prototype would still apply. */
4858 char TIFFGetVersion();
4864 if { (eval echo configure
:4865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4866 eval "ac_cv_lib_$ac_lib_var=yes"
4868 echo "configure: failed program was:" >&5
4869 cat conftest.
$ac_ext >&5
4871 eval "ac_cv_lib_$ac_lib_var=no"
4874 LIBS
="$ac_save_LIBS"
4877 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4878 echo "$ac_t""yes" 1>&6
4881 echo "$ac_t""no" 1>&6
4885 LDFLAGS
="$LDFLAGS_old"
4887 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes
; then
4888 my_libname
="-ltiff -lz"
4892 if test "x$my_libname" = x
; then
4894 LDFLAGS_old
="$LDFLAGS"
4895 LDFLAGS
="$LDFLAGS $lib_search_path"
4896 echo $ac_n "checking for TIFFGetVersion in -ltiff34""... $ac_c" 1>&6
4897 echo "configure:4898: checking for TIFFGetVersion in -ltiff34" >&5
4898 ac_lib_var
=`echo tiff34'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4899 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4900 echo $ac_n "(cached) $ac_c" 1>&6
4902 ac_save_LIBS
="$LIBS"
4903 LIBS
="-ltiff34 $ljpeg -lm $LIBS"
4904 cat > conftest.
$ac_ext <<EOF
4905 #line 4906 "configure"
4906 #include "confdefs.h"
4907 /* Override any gcc2 internal prototype to avoid an error. */
4908 /* We use char because int might match the return type of a gcc2
4909 builtin and then its argument prototype would still apply. */
4910 char TIFFGetVersion();
4916 if { (eval echo configure
:4917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4918 eval "ac_cv_lib_$ac_lib_var=yes"
4920 echo "configure: failed program was:" >&5
4921 cat conftest.
$ac_ext >&5
4923 eval "ac_cv_lib_$ac_lib_var=no"
4926 LIBS
="$ac_save_LIBS"
4929 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4930 echo "$ac_t""yes" 1>&6
4933 echo "$ac_t""no" 1>&6
4937 LDFLAGS
="$LDFLAGS_old"
4939 if test "x$ac_cv_lib_tiff34_TIFFGetVersion" = xyes
; then
4940 my_libname
="-ltiff34"
4945 if test "x$my_libname" != x
; then
4947 CPPFLAGS_old
="$CPPFLAGS"
4948 CPPFLAGS
="$CPPFLAGS $inc_search_path"
4949 ac_safe
=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
4950 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
4951 echo "configure:4952: checking for tiffio.h" >&5
4952 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4953 echo $ac_n "(cached) $ac_c" 1>&6
4955 cat > conftest.
$ac_ext <<EOF
4956 #line 4957 "configure"
4957 #include "confdefs.h"
4960 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4961 { (eval echo configure
:4962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4962 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4963 if test -z "$ac_err"; then
4965 eval "ac_cv_header_$ac_safe=yes"
4968 echo "configure: failed program was:" >&5
4969 cat conftest.
$ac_ext >&5
4971 eval "ac_cv_header_$ac_safe=no"
4975 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4976 echo "$ac_t""yes" 1>&6
4979 echo "$ac_t""no" 1>&6
4982 CPPFLAGS
="$CPPFLAGS_old"
4984 if test "x$ac_cv_header_tiffio_h" = xyes
; then
4985 GFXLIBS
="$my_libname $GFXLIBS"
4987 supported_gfx
="$supported_gfx TIFF"
4988 cat >> confdefs.h
<<\EOF
4996 LIBRARY_SEARCH_PATH
="$lib_search_path"
4997 HEADER_SEARCH_PATH
="$inc_search_path"
5009 # Check whether --enable-debug or --disable-debug was given.
5010 if test "${enable_debug+set}" = set; then
5011 enableval
="$enable_debug"
5018 if test "$enable_debug" = yes; then
5020 # Efence makes things too slow. Add it by hand in the Makefiles
5021 # if it is really needed.
5022 # AC_CHECK_LIB(efence, malloc, LIBS="$LIBS -lefence")
5028 # Check whether --enable-sound or --disable-sound was given.
5029 if test "${enable_sound+set}" = set; then
5030 enableval
="$enable_sound"
5036 if test "$sound" = yes; then
5037 cat >> confdefs.h
<<\EOF
5044 # AC_PREFIX_PROGRAM(wmaker)
5046 # Check whether --with-pixmapdir or --without-pixmapdir was given.
5047 if test "${with_pixmapdir+set}" = set; then
5048 withval
="$with_pixmapdir"
5053 if test "x$with_pixmapdir" != "x"; then
5054 pixmapdir
=$with_pixmapdir
5056 pixmapdir
=`eval echo ${datadir}/pixmaps`
5059 cat >> confdefs.h
<<EOF
5060 #define PIXMAPDIR "$pixmapdir"
5064 pkgdatadir
=`eval echo $datadir`
5065 cat >> confdefs.h
<<EOF
5066 #define PKGDATADIR "$pkgdatadir/WindowMaker"
5070 _sysconfdir
=`eval echo $sysconfdir`
5071 cat >> confdefs.h
<<EOF
5072 #define SYSCONFDIR "$_sysconfdir"
5080 # Check whether --with-appspath or --without-appspath was given.
5081 if test "${with_appspath+set}" = set; then
5082 withval
="$with_appspath"
5087 if test "x$appspath" = "x"; then
5088 gnustepdir
='$(prefix)/GNUstep'
5090 if test "x$GNUSTEP_LOCAL_ROOT" != "x" ; then
5091 gnustepdir
=`echo "$GNUSTEP_LOCAL_ROOT" | sed -e "s|^${prefix}|prefix|"`
5092 gnustepdir
=`echo $gnustepdir | sed -e 's|^prefix|${prefix}|'`
5095 with_appspath
=$gnustepdir/Apps
5098 wprefsdir
=$with_appspath/WPrefs.app
5104 # Check whether --enable-single-icon or --disable-single-icon was given.
5105 if test "${enable_single_icon+set}" = set; then
5106 enableval
="$enable_single_icon"
5107 if test "$enableval" = yes; then
5108 cat >> confdefs.h
<<\EOF
5109 #define REDUCE_APPICONS 1
5117 # Check whether --enable-usermenu or --disable-usermenu was given.
5118 if test "${enable_usermenu+set}" = set; then
5119 enableval
="$enable_usermenu"
5120 if test "$enableval" = yes; then
5121 cat >> confdefs.h
<<\EOF
5134 cat > confcache
<<\EOF
5135 # This file is a shell script that caches the results of configure
5136 # tests run on this system so they can be shared between configure
5137 # scripts and configure runs. It is not useful on other systems.
5138 # If it contains results you don't want to keep, you may remove or edit it.
5140 # By default, configure uses ./config.cache as the cache file,
5141 # creating it if it does not exist already. You can give configure
5142 # the --cache-file=FILE option to use a different cache file; that is
5143 # what configure does when it calls configure scripts in
5144 # subdirectories, so they share the cache.
5145 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5146 # config.status only pays attention to the cache file if you give it the
5147 # --recheck option to rerun configure.
5150 # The following way of writing the cache mishandles newlines in values,
5151 # but we know of no workaround that is simple, portable, and efficient.
5152 # So, don't put newlines in cache variables' values.
5153 # Ultrix sh set writes to stderr and can't be redirected directly,
5154 # and sets the high bit in the cache file unless we assign to the vars.
5156 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5158 # `set' does not quote correctly, so add quotes (double-quote substitution
5159 # turns \\\\ into \\, and sed turns \\ into \).
5161 -e "s/'/'\\\\''/g" \
5162 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5165 # `set' quotes correctly as required by POSIX, so do not add quotes.
5166 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5169 if cmp -s $cache_file confcache
; then
5172 if test -w $cache_file; then
5173 echo "updating cache $cache_file"
5174 cat confcache
> $cache_file
5176 echo "not updating unwritable cache $cache_file"
5181 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5183 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5184 # Let make expand exec_prefix.
5185 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5187 # Any assignment to VPATH causes Sun make to only execute
5188 # the first set of double-colon rules, so remove it if not needed.
5189 # If there is a colon in the path, we need to keep it.
5190 if test "x$srcdir" = x.
; then
5191 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5194 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5196 DEFS
=-DHAVE_CONFIG_H
5198 # Without the "./", some shells look in PATH for config.status.
5199 : ${CONFIG_STATUS=./config.status}
5201 echo creating
$CONFIG_STATUS
5202 rm -f $CONFIG_STATUS
5203 cat > $CONFIG_STATUS <<EOF
5205 # Generated automatically by configure.
5206 # Run this file to recreate the current configuration.
5207 # This directory was configured as follows,
5208 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5210 # $0 $ac_configure_args
5212 # Compiler output produced by configure, useful for debugging
5213 # configure, is in ./config.log if it exists.
5215 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5218 case "\$ac_option" in
5219 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5220 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5221 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5222 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5223 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5225 -help | --help | --hel | --he | --h)
5226 echo "\$ac_cs_usage"; exit 0 ;;
5227 *) echo "\$ac_cs_usage"; exit 1 ;;
5231 ac_given_srcdir=$srcdir
5232 ac_given_INSTALL="$INSTALL"
5234 trap 'rm -fr `echo "Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
5235 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
5236 wrlib/Makefile doc/Makefile WindowMaker/Makefile contrib/Makefile \
5237 WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile \
5238 WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile \
5239 WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile \
5240 WindowMaker/Themes/Makefile \
5241 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
5242 WPrefs.app/po/Makefile src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5244 cat >> $CONFIG_STATUS <<EOF
5246 # Protect against being on the right side of a sed subst in config.status.
5247 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5248 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5252 s%@CFLAGS@%$CFLAGS%g
5253 s%@CPPFLAGS@%$CPPFLAGS%g
5254 s%@CXXFLAGS@%$CXXFLAGS%g
5255 s%@FFLAGS@%$FFLAGS%g
5257 s%@LDFLAGS@%$LDFLAGS%g
5259 s%@exec_prefix@%$exec_prefix%g
5260 s%@prefix@%$prefix%g
5261 s%@program_transform_name@%$program_transform_name%g
5262 s%@bindir@%$bindir%g
5263 s%@sbindir@%$sbindir%g
5264 s%@libexecdir@%$libexecdir%g
5265 s%@datadir@%$datadir%g
5266 s%@sysconfdir@%$sysconfdir%g
5267 s%@sharedstatedir@%$sharedstatedir%g
5268 s%@localstatedir@%$localstatedir%g
5269 s%@libdir@%$libdir%g
5270 s%@includedir@%$includedir%g
5271 s%@oldincludedir@%$oldincludedir%g
5272 s%@infodir@%$infodir%g
5273 s%@mandir@%$mandir%g
5274 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5275 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5276 s%@INSTALL_DATA@%$INSTALL_DATA%g
5277 s%@PACKAGE@%$PACKAGE%g
5278 s%@VERSION@%$VERSION%g
5279 s%@ACLOCAL@%$ACLOCAL%g
5280 s%@AUTOCONF@%$AUTOCONF%g
5281 s%@AUTOMAKE@%$AUTOMAKE%g
5282 s%@AUTOHEADER@%$AUTOHEADER%g
5283 s%@MAKEINFO@%$MAKEINFO%g
5284 s%@SET_MAKE@%$SET_MAKE%g
5286 s%@host_alias@%$host_alias%g
5287 s%@host_cpu@%$host_cpu%g
5288 s%@host_vendor@%$host_vendor%g
5289 s%@host_os@%$host_os%g
5290 s%@RANLIB@%$RANLIB%g
5295 s%@LIBTOOL@%$LIBTOOL%g
5297 s%@ALLOCA@%$ALLOCA%g
5298 s%@CPP_PATH@%$CPP_PATH%g
5299 s%@XGETTEXT@%$XGETTEXT%g
5300 s%@DLLIBS@%$DLLIBS%g
5301 s%@INTLIBS@%$INTLIBS%g
5302 s%@NLSDIR@%$NLSDIR%g
5303 s%@MOFILES@%$MOFILES%g
5304 s%@WPMOFILES@%$WPMOFILES%g
5306 s%@X_CFLAGS@%$X_CFLAGS%g
5307 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
5308 s%@X_LIBS@%$X_LIBS%g
5309 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
5310 s%@X_LIBRARY_PATH@%$X_LIBRARY_PATH%g
5312 s%@XCFLAGS@%$XCFLAGS%g
5313 s%@XLFLAGS@%$XLFLAGS%g
5315 s%@LIBRARY_SEARCH_PATH@%$LIBRARY_SEARCH_PATH%g
5316 s%@HEADER_SEARCH_PATH@%$HEADER_SEARCH_PATH%g
5317 s%@GFXLIBS@%$GFXLIBS%g
5318 s%@ICONEXT@%$ICONEXT%g
5319 s%@DFLAGS@%$DFLAGS%g
5320 s%@wprefsdir@%$wprefsdir%g
5325 cat >> $CONFIG_STATUS <<\EOF
5327 # Split the substitutions into bite-sized pieces for seds with
5328 # small command number limits, like on Digital OSF/1 and HP-UX.
5329 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5330 ac_file
=1 # Number of current file.
5331 ac_beg
=1 # First line for current file.
5332 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5335 while $ac_more_lines; do
5336 if test $ac_beg -gt 1; then
5337 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5339 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5341 if test ! -s conftest.s
$ac_file; then
5343 rm -f conftest.s
$ac_file
5345 if test -z "$ac_sed_cmds"; then
5346 ac_sed_cmds
="sed -f conftest.s$ac_file"
5348 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5350 ac_file
=`expr $ac_file + 1`
5352 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5355 if test -z "$ac_sed_cmds"; then
5360 cat >> $CONFIG_STATUS <<EOF
5362 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
5363 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
5364 wrlib/Makefile doc/Makefile WindowMaker/Makefile contrib/Makefile \
5365 WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile \
5366 WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile \
5367 WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile \
5368 WindowMaker/Themes/Makefile \
5369 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
5370 WPrefs.app/po/Makefile "}
5372 cat >> $CONFIG_STATUS <<\EOF
5373 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5374 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5376 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5377 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5378 *) ac_file_in
="${ac_file}.in" ;;
5381 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5383 # Remove last slash and all that follows it. Not all systems have dirname.
5384 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5385 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5386 # The file is in a subdirectory.
5387 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5388 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5389 # A "../" for each directory in $ac_dir_suffix.
5390 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5392 ac_dir_suffix
= ac_dots
=
5395 case "$ac_given_srcdir" in
5397 if test -z "$ac_dots"; then top_srcdir
=.
5398 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5399 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5401 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5402 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5405 case "$ac_given_INSTALL" in
5406 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5407 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5410 echo creating
"$ac_file"
5412 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5414 *Makefile
*) ac_comsub
="1i\\
5415 # $configure_input" ;;
5419 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5421 s%@configure_input@%$configure_input%g
5422 s%@srcdir@%$srcdir%g
5423 s%@top_srcdir@%$top_srcdir%g
5424 s%@INSTALL@%$INSTALL%g
5425 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5429 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5430 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5432 # ac_d sets the value in "#define NAME VALUE" lines.
5433 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5434 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5437 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5438 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5439 ac_uB
='\([ ]\)%\1#\2define\3'
5442 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5443 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5444 ac_eB
='$%\1#\2define\3'
5448 if test "${CONFIG_HEADERS+set}" != set; then
5450 cat >> $CONFIG_STATUS <<EOF
5451 CONFIG_HEADERS="src/config.h"
5453 cat >> $CONFIG_STATUS <<\EOF
5455 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5456 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5458 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5459 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5460 *) ac_file_in
="${ac_file}.in" ;;
5463 echo creating
$ac_file
5465 rm -f conftest.frag conftest.
in conftest.out
5466 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5467 cat $ac_file_inputs > conftest.
in
5471 # Transform confdefs.h into a sed script conftest.vals that substitutes
5472 # the proper values into config.h.in to produce config.h. And first:
5473 # Protect against being on the right side of a sed subst in config.status.
5474 # Protect against being in an unquoted here document in config.status.
5476 cat > conftest.hdr
<<\EOF
5479 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5483 sed -n -f conftest.hdr confdefs.h > conftest.vals
5486 # This sed command replaces #undef with comments. This is necessary, for
5487 # example, in the case of _POSIX_SOURCE, which is predefined and required
5488 # on some systems where configure will not decide to define it.
5489 cat >> conftest.vals <<\EOF
5490 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5493 # Break up conftest.vals because some shells have a limit on
5494 # the size of here documents, and old seds have small limits too.
5499 ac_lines=`grep -c . conftest.vals
`
5500 # grep -c gives empty output for an empty file on some AIX systems.
5501 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5502 # Write a limited-size here document to conftest.frag.
5503 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5504 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5506 sed -f conftest.frag conftest.in > conftest.out
5508 mv conftest.out conftest.in
5510 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5512 mv conftest.tail conftest.vals
5516 cat >> $CONFIG_STATUS <<\EOF
5517 rm -f conftest.frag conftest.h
5518 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5519 cat conftest.in >> conftest.h
5521 if cmp -s $ac_file conftest.h 2>/dev/null; then
5522 echo "$ac_file is unchanged"
5525 # Remove last slash and all that follows it. Not all systems have dirname.
5526 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5527 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5528 # The file is in a subdirectory.
5529 test ! -d "$ac_dir" && mkdir "$ac_dir"
5532 mv conftest.h $ac_file
5537 cat >> $CONFIG_STATUS <<EOF
5541 cat >> $CONFIG_STATUS <<\EOF
5542 test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h
5546 chmod +x $CONFIG_STATUS
5547 rm -fr confdefs* $ac_clean_files
5548 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5556 cat <<EOF >get-wraster-flags
5560 exec_prefix=\$prefix
5562 WCFLAGS="-I\$prefix/include $inc_search_path"
5563 WLFLAGS="-L\$exec_prefix/lib $lib_search_path"
5564 WLIBS="-lwraster $GFXLIBS $XLIBS -lm"
5566 usage="Usage: get-wraster-flags #lp#--cflags#rp# #lp#--ldflags#rp# #lp#--libs#rp#"
5568 if test \$# -eq 0; then
5569 echo "\${usage}" 1>&2
5573 while test \$# -gt 0; do
5585 echo "\${usage}" 1>&2
5595 sed 's/#lp#/[/g' get-wraster-flags | sed 's/#rp#/]/g' > wrlib/get-wraster-flags
5597 chmod 755 wrlib/get-wraster-flags
5598 rm -f get-wraster-flags
5602 supported_gfx="$supported_gfx builtin-PPM"
5604 if test "x$MOFILES" = "x"; then
5612 echo "Window Maker was configured as follows:"
5614 echo "Installation path prefix: $prefix"
5615 echo "Installation path prefix for binaries: $_bindir"
5616 echo "Installation path for WPrefs.app: $wprefsdir" | sed -e 's|\$(prefix)|'"$prefix|"
5617 echo "Graphic format libraries: $supported_gfx"
5618 echo "Sound support: $sound"
5619 echo "Translated message files to install: $mof"
5620 if test "x$MOFILES" != "x"; then
5621 echo "Installation path of translated messages: $NLSDIR" | sed -e 's|\$(prefix)|'"$prefix|"
5625 if test "x$ac_cv_header_jpeglib_h" != xyes; then
5626 echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING"
5628 echo "JPEG support will not be included because the JPEG library is"
5629 echo "not installed correctly or was not found. Background images"
5630 echo "from themes will not display as they usually are JPEG files."
5632 echo "To fix, download and install the jpeg library and/or make sure you"
5633 echo "installed all jpeg related packages, SPECIALLY the development packages"
5634 echo "like jpeg-devel (if you use some prepackaged version of libjpeg)."
5636 echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING"