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[=PKGS] build shared libraries [default=yes]"
17 --enable-static[=PKGS] build static libraries [default=yes]"
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 --disable-libtool-lock avoid locking (might break parallel builds)"
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-xinerama disable XInerama extension support"
49 --disable-shm disable usage of MIT-SHM extension"
51 --disable-xpm disable use of XPM pixmaps through libXpm"
53 --disable-png disable PNG support through libpng"
55 --disable-jpeg disable JPEG support through libjpeg"
57 --disable-gif disable GIF support through libgif or libungif"
59 --disable-tiff disable use of TIFF images through libtiff"
61 --enable-debug enable debugging "
63 --disable-sound disable sound support "
65 --with-pixmapdir=PATH specify where pixmaps are located [DATADIR/pixmaps]"
67 --with-appspath=PATH specify the directory for GNUstep applications"
69 --enable-single-icon use single application icon per WM_INSTANCE+WM_CLASS
72 --enable-usermenu user defined menus for applications
75 # Initialize some variables set by options.
76 # The variables have the same names as the options, with
77 # dashes changed to underlines.
79 cache_file
=.
/config.cache
88 program_transform_name
=s
,x
,x
,
96 bindir
='${exec_prefix}/bin'
97 sbindir
='${exec_prefix}/sbin'
98 libexecdir
='${exec_prefix}/libexec'
99 datadir
='${prefix}/share'
100 sysconfdir
='${prefix}/etc'
101 sharedstatedir
='${prefix}/com'
102 localstatedir
='${prefix}/var'
103 libdir
='${exec_prefix}/lib'
104 includedir
='${prefix}/include'
105 oldincludedir
='/usr/include'
106 infodir
='${prefix}/info'
107 mandir
='${prefix}/man'
109 # Initialize some other variables.
112 SHELL
=${CONFIG_SHELL-/bin/sh}
113 # Maximum number of lines to put in a shell here document.
120 # If the previous option needs an argument, assign it.
121 if test -n "$ac_prev"; then
122 eval "$ac_prev=\$ac_option"
128 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
132 # Accept the important Cygnus configure options, so we can diagnose typos.
136 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
138 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
139 bindir
="$ac_optarg" ;;
141 -build |
--build |
--buil |
--bui |
--bu)
143 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
144 build
="$ac_optarg" ;;
146 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
147 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
148 ac_prev
=cache_file
;;
149 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
150 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
151 cache_file
="$ac_optarg" ;;
153 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
155 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
157 datadir
="$ac_optarg" ;;
159 -disable-* |
--disable-*)
160 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
161 # Reject names that are not valid shell variable names.
162 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
163 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
165 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
166 eval "enable_${ac_feature}=no" ;;
168 -enable-* |
--enable-*)
169 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
170 # Reject names that are not valid shell variable names.
171 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
172 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
174 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
179 eval "enable_${ac_feature}='$ac_optarg'" ;;
181 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
182 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
183 |
--exec |
--exe |
--ex)
184 ac_prev
=exec_prefix
;;
185 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
186 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
187 |
--exec=* |
--exe=* |
--ex=*)
188 exec_prefix
="$ac_optarg" ;;
190 -gas |
--gas |
--ga |
--g)
191 # Obsolete; use --with-gas.
194 -help |
--help |
--hel |
--he)
195 # Omit some internal or obsolete options to make the list less imposing.
196 # This message is too long to be a string in the A/UX 3.1 sh.
198 Usage: configure [options] [host]
199 Options: [defaults in brackets after descriptions]
201 --cache-file=FILE cache test results in FILE
202 --help print this message
203 --no-create do not create output files
204 --quiet, --silent do not print \`checking...' messages
205 --version print the version of autoconf that created configure
206 Directory and file names:
207 --prefix=PREFIX install architecture-independent files in PREFIX
209 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
211 --bindir=DIR user executables in DIR [EPREFIX/bin]
212 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
213 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
214 --datadir=DIR read-only architecture-independent data in DIR
216 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
217 --sharedstatedir=DIR modifiable architecture-independent data in DIR
219 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
220 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
221 --includedir=DIR C header files in DIR [PREFIX/include]
222 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
223 --infodir=DIR info documentation in DIR [PREFIX/info]
224 --mandir=DIR man documentation in DIR [PREFIX/man]
225 --srcdir=DIR find the sources in DIR [configure dir or ..]
226 --program-prefix=PREFIX prepend PREFIX to installed program names
227 --program-suffix=SUFFIX append SUFFIX to installed program names
228 --program-transform-name=PROGRAM
229 run sed PROGRAM on installed program names
233 --build=BUILD configure for building on BUILD [BUILD=HOST]
234 --host=HOST configure for HOST [guessed]
235 --target=TARGET configure for TARGET [TARGET=HOST]
236 Features and packages:
237 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
238 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
239 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
240 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
241 --x-includes=DIR X include files are in DIR
242 --x-libraries=DIR X library files are in DIR
244 if test -n "$ac_help"; then
245 echo "--enable and --with options recognized:$ac_help"
249 -host |
--host |
--hos |
--ho)
251 -host=* |
--host=* |
--hos=* |
--ho=*)
254 -includedir |
--includedir |
--includedi |
--included |
--include \
255 |
--includ |
--inclu |
--incl |
--inc)
256 ac_prev
=includedir
;;
257 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
258 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
259 includedir
="$ac_optarg" ;;
261 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
263 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
264 infodir
="$ac_optarg" ;;
266 -libdir |
--libdir |
--libdi |
--libd)
268 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
269 libdir
="$ac_optarg" ;;
271 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
272 |
--libexe |
--libex |
--libe)
273 ac_prev
=libexecdir
;;
274 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
275 |
--libexe=* |
--libex=* |
--libe=*)
276 libexecdir
="$ac_optarg" ;;
278 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
279 |
--localstate |
--localstat |
--localsta |
--localst \
280 |
--locals |
--local |
--loca |
--loc |
--lo)
281 ac_prev
=localstatedir
;;
282 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
283 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
284 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
285 localstatedir
="$ac_optarg" ;;
287 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
289 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
290 mandir
="$ac_optarg" ;;
293 # Obsolete; use --without-fp.
296 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
300 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
301 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
304 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
305 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
306 |
--oldin |
--oldi |
--old |
--ol |
--o)
307 ac_prev
=oldincludedir
;;
308 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
309 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
310 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
311 oldincludedir
="$ac_optarg" ;;
313 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
315 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
316 prefix
="$ac_optarg" ;;
318 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
319 |
--program-pre |
--program-pr |
--program-p)
320 ac_prev
=program_prefix
;;
321 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
322 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
323 program_prefix
="$ac_optarg" ;;
325 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
326 |
--program-suf |
--program-su |
--program-s)
327 ac_prev
=program_suffix
;;
328 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
329 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
330 program_suffix
="$ac_optarg" ;;
332 -program-transform-name |
--program-transform-name \
333 |
--program-transform-nam |
--program-transform-na \
334 |
--program-transform-n |
--program-transform- \
335 |
--program-transform |
--program-transfor \
336 |
--program-transfo |
--program-transf \
337 |
--program-trans |
--program-tran \
338 |
--progr-tra |
--program-tr |
--program-t)
339 ac_prev
=program_transform_name
;;
340 -program-transform-name=* |
--program-transform-name=* \
341 |
--program-transform-nam=* |
--program-transform-na=* \
342 |
--program-transform-n=* |
--program-transform-=* \
343 |
--program-transform=* |
--program-transfor=* \
344 |
--program-transfo=* |
--program-transf=* \
345 |
--program-trans=* |
--program-tran=* \
346 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
347 program_transform_name
="$ac_optarg" ;;
349 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
350 |
-silent |
--silent |
--silen |
--sile |
--sil)
353 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
355 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
357 sbindir
="$ac_optarg" ;;
359 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
360 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
361 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
363 ac_prev
=sharedstatedir
;;
364 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
365 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
366 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
368 sharedstatedir
="$ac_optarg" ;;
370 -site |
--site |
--sit)
372 -site=* |
--site=* |
--sit=*)
375 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
377 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
378 srcdir
="$ac_optarg" ;;
380 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
381 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
382 ac_prev
=sysconfdir
;;
383 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
384 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
385 sysconfdir
="$ac_optarg" ;;
387 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
389 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
390 target
="$ac_optarg" ;;
392 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
395 -version |
--version |
--versio |
--versi |
--vers)
396 echo "configure generated by autoconf version 2.13"
400 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
401 # Reject names that are not valid shell variable names.
402 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
403 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
405 ac_package
=`echo $ac_package| sed 's/-/_/g'`
410 eval "with_${ac_package}='$ac_optarg'" ;;
412 -without-* |
--without-*)
413 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
416 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
418 ac_package
=`echo $ac_package| sed 's/-/_/g'`
419 eval "with_${ac_package}=no" ;;
422 # Obsolete; use --with-x.
425 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
426 |
--x-incl |
--x-inc |
--x-in |
--x-i)
427 ac_prev
=x_includes
;;
428 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
429 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
430 x_includes
="$ac_optarg" ;;
432 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
433 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
434 ac_prev
=x_libraries
;;
435 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
436 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
437 x_libraries
="$ac_optarg" ;;
439 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
443 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
444 echo "configure: warning: $ac_option: invalid host type" 1>&2
446 if test "x$nonopt" != xNONE
; then
447 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
455 if test -n "$ac_prev"; then
456 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
459 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
461 # File descriptor usage:
464 # 2 errors and warnings
465 # 3 some systems may open it to /dev/tty
466 # 4 used on the Kubota Titan
467 # 6 checking for... messages and results
468 # 5 compiler messages saved in config.log
469 if test "$silent" = yes; then
477 This file contains any messages produced by compilers while
478 running configure, to aid debugging if configure makes a mistake.
481 # Strip out --no-create and --no-recursion so they do not pile up.
482 # Also quote any args containing shell metacharacters.
487 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
488 |
--no-cr |
--no-c) ;;
489 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
490 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
491 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
492 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
493 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
498 # Only set these to C if already set. These must not be set unconditionally
499 # because not all systems understand e.g. LANG=C (notably SCO).
500 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
501 # Non-C LC_CTYPE values break the ctype check.
502 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
503 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
504 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
505 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
507 # confdefs.h avoids OS command line length limits that DEFS can exceed.
508 rm -rf conftest
* confdefs.h
509 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
512 # A filename unique to this package, relative to the directory that
513 # configure is in, which we can look for to find out if srcdir is correct.
514 ac_unique_file
=src
/WindowMaker.h
516 # Find the source files, if location was not specified.
517 if test -z "$srcdir"; then
518 ac_srcdir_defaulted
=yes
519 # Try the directory containing this script, then its parent.
521 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
522 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
524 if test ! -r $srcdir/$ac_unique_file; then
528 ac_srcdir_defaulted
=no
530 if test ! -r $srcdir/$ac_unique_file; then
531 if test "$ac_srcdir_defaulted" = yes; then
532 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
534 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
537 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
539 # Prefer explicitly selected file to automatically selected ones.
540 if test -z "$CONFIG_SITE"; then
541 if test "x$prefix" != xNONE
; then
542 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
544 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
547 for ac_site_file
in $CONFIG_SITE; do
548 if test -r "$ac_site_file"; then
549 echo "loading site script $ac_site_file"
554 if test -r "$cache_file"; then
555 echo "loading cache $cache_file"
558 echo "creating cache $cache_file"
563 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
564 ac_cpp
='$CPP $CPPFLAGS'
565 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
566 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
567 cross_compiling
=$ac_cv_prog_cc_cross
571 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
572 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
573 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
580 ac_n
= ac_c
='\c' ac_t
=
588 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
589 if test -f $ac_dir/install-sh
; then
591 ac_install_sh
="$ac_aux_dir/install-sh -c"
593 elif test -f $ac_dir/install.sh
; then
595 ac_install_sh
="$ac_aux_dir/install.sh -c"
599 if test -z "$ac_aux_dir"; then
600 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
602 ac_config_guess
=$ac_aux_dir/config.guess
603 ac_config_sub
=$ac_aux_dir/config.sub
604 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
606 # Find a good install program. We prefer a C program (faster),
607 # so one script is as good as another. But avoid the broken or
608 # incompatible versions:
609 # SysV /etc/install, /usr/sbin/install
610 # SunOS /usr/etc/install
613 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
614 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
615 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
616 # ./install, which can be erroneously created by make from ./install.sh.
617 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
618 echo "configure:619: checking for a BSD compatible install" >&5
619 if test -z "$INSTALL"; then
620 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
621 echo $ac_n "(cached) $ac_c" 1>&6
623 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
624 for ac_dir
in $PATH; do
625 # Account for people who put trailing slashes in PATH elements.
627 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
629 # OSF1 and SCO ODT 3.0 have their own names for install.
630 # Don't use installbsd from OSF since it installs stuff as root
632 for ac_prog
in ginstall scoinst
install; do
633 if test -f $ac_dir/$ac_prog; then
634 if test $ac_prog = install &&
635 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
636 # AIX install. It has an incompatible calling convention.
639 ac_cv_path_install
="$ac_dir/$ac_prog -c"
650 if test "${ac_cv_path_install+set}" = set; then
651 INSTALL
="$ac_cv_path_install"
653 # As a last resort, use the slow shell script. We don't cache a
654 # path for INSTALL within a source directory, because that will
655 # break other packages using the cache if that directory is
656 # removed, or if the path is relative.
657 INSTALL
="$ac_install_sh"
660 echo "$ac_t""$INSTALL" 1>&6
662 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
663 # It thinks the first close brace ends the variable substitution.
664 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
666 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
668 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
670 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
671 echo "configure:672: checking whether build environment is sane" >&5
674 echo timestamp
> conftestfile
675 # Do `set' in a subshell so we don't clobber the current shell's
676 # arguments. Must try -L first in case configure is actually a
677 # symlink; some systems play weird games with the mod time of symlinks
678 # (eg FreeBSD returns the mod time of the symlink's containing
681 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
682 if test "$*" = "X"; then
684 set X
`ls -t $srcdir/configure conftestfile`
686 if test "$*" != "X $srcdir/configure conftestfile" \
687 && test "$*" != "X conftestfile $srcdir/configure"; then
689 # If neither matched, then we have a broken ls. This can happen
690 # if, for instance, CONFIG_SHELL is bash and it inherits a
691 # broken ls alias from the environment. This has actually
692 # happened. Such a system could not be considered "sane".
693 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
694 alias in your environment" 1>&2; exit 1; }
697 test "$2" = conftestfile
703 { echo "configure: error: newly created file is older than distributed files!
704 Check your system clock" 1>&2; exit 1; }
707 echo "$ac_t""yes" 1>&6
708 if test "$program_transform_name" = s
,x
,x
,; then
709 program_transform_name
=
711 # Double any \ or $. echo might interpret backslashes.
712 cat <<\EOF_SED
> conftestsed
713 s
,\\,\\\\,g
; s
,\$
,$$
,g
715 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
718 test "$program_prefix" != NONE
&&
719 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
720 # Use a double $ so make ignores it.
721 test "$program_suffix" != NONE
&&
722 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
724 # sed with no file args requires a program.
725 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
727 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
728 echo "configure:729: checking whether ${MAKE-make} sets \${MAKE}" >&5
729 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
730 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
731 echo $ac_n "(cached) $ac_c" 1>&6
733 cat > conftestmake
<<\EOF
735 @
echo 'ac_maketemp="${MAKE}"'
737 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
738 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
739 if test -n "$ac_maketemp"; then
740 eval ac_cv_prog_make_
${ac_make}_set
=yes
742 eval ac_cv_prog_make_
${ac_make}_set
=no
746 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
747 echo "$ac_t""yes" 1>&6
750 echo "$ac_t""no" 1>&6
751 SET_MAKE
="MAKE=${MAKE-make}"
760 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
761 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
763 cat >> confdefs.h
<<EOF
764 #define PACKAGE "$PACKAGE"
767 cat >> confdefs.h
<<EOF
768 #define VERSION "$VERSION"
773 missing_dir
=`cd $ac_aux_dir && pwd`
774 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
775 echo "configure:776: checking for working aclocal" >&5
776 # Run test in a subshell; some versions of sh will print an error if
777 # an executable is not found, even if stderr is redirected.
778 # Redirect stdin to placate older versions of autoconf. Sigh.
779 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
781 echo "$ac_t""found" 1>&6
783 ACLOCAL
="$missing_dir/missing aclocal"
784 echo "$ac_t""missing" 1>&6
787 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
788 echo "configure:789: checking for working autoconf" >&5
789 # Run test in a subshell; some versions of sh will print an error if
790 # an executable is not found, even if stderr is redirected.
791 # Redirect stdin to placate older versions of autoconf. Sigh.
792 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
794 echo "$ac_t""found" 1>&6
796 AUTOCONF
="$missing_dir/missing autoconf"
797 echo "$ac_t""missing" 1>&6
800 echo $ac_n "checking for working automake""... $ac_c" 1>&6
801 echo "configure:802: checking for working automake" >&5
802 # Run test in a subshell; some versions of sh will print an error if
803 # an executable is not found, even if stderr is redirected.
804 # Redirect stdin to placate older versions of autoconf. Sigh.
805 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
807 echo "$ac_t""found" 1>&6
809 AUTOMAKE
="$missing_dir/missing automake"
810 echo "$ac_t""missing" 1>&6
813 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
814 echo "configure:815: checking for working autoheader" >&5
815 # Run test in a subshell; some versions of sh will print an error if
816 # an executable is not found, even if stderr is redirected.
817 # Redirect stdin to placate older versions of autoconf. Sigh.
818 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
819 AUTOHEADER
=autoheader
820 echo "$ac_t""found" 1>&6
822 AUTOHEADER
="$missing_dir/missing autoheader"
823 echo "$ac_t""missing" 1>&6
826 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
827 echo "configure:828: checking for working makeinfo" >&5
828 # Run test in a subshell; some versions of sh will print an error if
829 # an executable is not found, even if stderr is redirected.
830 # Redirect stdin to placate older versions of autoconf. Sigh.
831 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
833 echo "$ac_t""found" 1>&6
835 MAKEINFO
="$missing_dir/missing makeinfo"
836 echo "$ac_t""missing" 1>&6
841 # Check whether --enable-shared or --disable-shared was given.
842 if test "${enable_shared+set}" = set; then
843 enableval
="$enable_shared"
846 yes) enable_shared
=yes ;;
847 no
) enable_shared
=no
;;
850 # Look at the argument we got. We use all the common list separators.
851 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
852 for pkg
in $enableval; do
853 if test "X$pkg" = "X$p"; then
864 # Check whether --enable-static or --disable-static was given.
865 if test "${enable_static+set}" = set; then
866 enableval
="$enable_static"
869 yes) enable_static
=yes ;;
870 no
) enable_static
=no
;;
873 # Look at the argument we got. We use all the common list separators.
874 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
875 for pkg
in $enableval; do
876 if test "X$pkg" = "X$p"; then
887 # Check whether --enable-fast-install or --disable-fast-install was given.
888 if test "${enable_fast_install+set}" = set; then
889 enableval
="$enable_fast_install"
892 yes) enable_fast_install
=yes ;;
893 no
) enable_fast_install
=no
;;
895 enable_fast_install
=no
896 # Look at the argument we got. We use all the common list separators.
897 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
898 for pkg
in $enableval; do
899 if test "X$pkg" = "X$p"; then
900 enable_fast_install
=yes
907 enable_fast_install
=yes
911 # Make sure we can run config.sub.
912 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
913 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
916 echo $ac_n "checking host system type""... $ac_c" 1>&6
917 echo "configure:918: checking host system type" >&5
920 case "$host_alias" in
924 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
925 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
927 *) host_alias
=$nonopt ;;
931 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
932 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
933 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
934 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
935 echo "$ac_t""$host" 1>&6
937 echo $ac_n "checking build system type""... $ac_c" 1>&6
938 echo "configure:939: checking build system type" >&5
941 case "$build_alias" in
944 NONE
) build_alias
=$host_alias ;;
945 *) build_alias
=$nonopt ;;
949 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
950 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
951 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
952 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
953 echo "$ac_t""$build" 1>&6
955 # Extract the first word of "ranlib", so it can be a program name with args.
956 set dummy ranlib
; ac_word
=$2
957 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
958 echo "configure:959: checking for $ac_word" >&5
959 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
960 echo $ac_n "(cached) $ac_c" 1>&6
962 if test -n "$RANLIB"; then
963 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
965 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
967 for ac_dir
in $ac_dummy; do
968 test -z "$ac_dir" && ac_dir
=.
969 if test -f $ac_dir/$ac_word; then
970 ac_cv_prog_RANLIB
="ranlib"
975 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
978 RANLIB
="$ac_cv_prog_RANLIB"
979 if test -n "$RANLIB"; then
980 echo "$ac_t""$RANLIB" 1>&6
982 echo "$ac_t""no" 1>&6
985 # Extract the first word of "gcc", so it can be a program name with args.
986 set dummy gcc
; ac_word
=$2
987 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
988 echo "configure:989: checking for $ac_word" >&5
989 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
990 echo $ac_n "(cached) $ac_c" 1>&6
992 if test -n "$CC"; then
993 ac_cv_prog_CC
="$CC" # Let the user override the test.
995 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
997 for ac_dir
in $ac_dummy; do
998 test -z "$ac_dir" && ac_dir
=.
999 if test -f $ac_dir/$ac_word; then
1008 if test -n "$CC"; then
1009 echo "$ac_t""$CC" 1>&6
1011 echo "$ac_t""no" 1>&6
1014 if test -z "$CC"; then
1015 # Extract the first word of "cc", so it can be a program name with args.
1016 set dummy cc
; ac_word
=$2
1017 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1018 echo "configure:1019: checking for $ac_word" >&5
1019 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1020 echo $ac_n "(cached) $ac_c" 1>&6
1022 if test -n "$CC"; then
1023 ac_cv_prog_CC
="$CC" # Let the user override the test.
1025 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1028 for ac_dir
in $ac_dummy; do
1029 test -z "$ac_dir" && ac_dir
=.
1030 if test -f $ac_dir/$ac_word; then
1031 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1032 ac_prog_rejected
=yes
1040 if test $ac_prog_rejected = yes; then
1041 # We found a bogon in the path, so make sure we never use it.
1042 set dummy
$ac_cv_prog_CC
1044 if test $# -gt 0; then
1045 # We chose a different compiler from the bogus one.
1046 # However, it has the same basename, so the bogon will be chosen
1047 # first if we set CC to just the basename; use the full file name.
1049 set dummy
"$ac_dir/$ac_word" "$@"
1057 if test -n "$CC"; then
1058 echo "$ac_t""$CC" 1>&6
1060 echo "$ac_t""no" 1>&6
1063 if test -z "$CC"; then
1064 case "`uname -s`" in
1066 # Extract the first word of "cl", so it can be a program name with args.
1067 set dummy cl
; ac_word
=$2
1068 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1069 echo "configure:1070: checking for $ac_word" >&5
1070 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1071 echo $ac_n "(cached) $ac_c" 1>&6
1073 if test -n "$CC"; then
1074 ac_cv_prog_CC
="$CC" # Let the user override the test.
1076 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1078 for ac_dir
in $ac_dummy; do
1079 test -z "$ac_dir" && ac_dir
=.
1080 if test -f $ac_dir/$ac_word; then
1089 if test -n "$CC"; then
1090 echo "$ac_t""$CC" 1>&6
1092 echo "$ac_t""no" 1>&6
1097 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1100 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1101 echo "configure:1102: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1104 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1105 ac_cpp
='$CPP $CPPFLAGS'
1106 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1107 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1108 cross_compiling
=$ac_cv_prog_cc_cross
1110 cat > conftest.
$ac_ext << EOF
1112 #line 1113 "configure"
1113 #include "confdefs.h"
1117 if { (eval echo configure
:1118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1118 ac_cv_prog_cc_works
=yes
1119 # If we can't run a trivial program, we are probably using a cross compiler.
1120 if (.
/conftest
; exit) 2>/dev
/null
; then
1121 ac_cv_prog_cc_cross
=no
1123 ac_cv_prog_cc_cross
=yes
1126 echo "configure: failed program was:" >&5
1127 cat conftest.
$ac_ext >&5
1128 ac_cv_prog_cc_works
=no
1132 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1133 ac_cpp
='$CPP $CPPFLAGS'
1134 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1135 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1136 cross_compiling
=$ac_cv_prog_cc_cross
1138 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1139 if test $ac_cv_prog_cc_works = no
; then
1140 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1142 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1143 echo "configure:1144: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1144 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1145 cross_compiling
=$ac_cv_prog_cc_cross
1147 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1148 echo "configure:1149: checking whether we are using GNU C" >&5
1149 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1150 echo $ac_n "(cached) $ac_c" 1>&6
1152 cat > conftest.c
<<EOF
1157 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1164 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1166 if test $ac_cv_prog_gcc = yes; then
1172 ac_test_CFLAGS
="${CFLAGS+set}"
1173 ac_save_CFLAGS
="$CFLAGS"
1175 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1176 echo "configure:1177: checking whether ${CC-cc} accepts -g" >&5
1177 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1178 echo $ac_n "(cached) $ac_c" 1>&6
1180 echo 'void f(){}' > conftest.c
1181 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1190 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1191 if test "$ac_test_CFLAGS" = set; then
1192 CFLAGS
="$ac_save_CFLAGS"
1193 elif test $ac_cv_prog_cc_g = yes; then
1194 if test "$GCC" = yes; then
1200 if test "$GCC" = yes; then
1207 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1208 if test "${with_gnu_ld+set}" = set; then
1209 withval
="$with_gnu_ld"
1210 test "$withval" = no || with_gnu_ld
=yes
1216 if test "$ac_cv_prog_gcc" = yes; then
1217 # Check if gcc -print-prog-name=ld gives a path.
1218 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1219 echo "configure:1220: checking for ld used by GCC" >&5
1220 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1222 # Accept absolute paths.
1223 [\\/]* |
[A-Za-z
]:[\\/]*)
1224 re_direlt
='/[^/][^/]*/\.\./'
1225 # Canonicalize the path of ld
1226 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1227 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1228 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1230 test -z "$LD" && LD
="$ac_prog"
1233 # If it fails, then pretend we aren't using GCC.
1237 # If it is relative, then search for the first ld in PATH.
1241 elif test "$with_gnu_ld" = yes; then
1242 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1243 echo "configure:1244: checking for GNU ld" >&5
1245 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1246 echo "configure:1247: checking for non-GNU ld" >&5
1248 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1249 echo $ac_n "(cached) $ac_c" 1>&6
1251 if test -z "$LD"; then
1252 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1253 for ac_dir
in $PATH; do
1254 test -z "$ac_dir" && ac_dir
=.
1255 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1256 ac_cv_path_LD
="$ac_dir/$ac_prog"
1257 # Check to see if the program is GNU ld. I'd rather use --version,
1258 # but apparently some GNU ld's only accept -v.
1259 # Break only if it was the GNU/non-GNU ld that we prefer.
1260 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1261 test "$with_gnu_ld" != no
&& break
1263 test "$with_gnu_ld" != yes && break
1269 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1274 if test -n "$LD"; then
1275 echo "$ac_t""$LD" 1>&6
1277 echo "$ac_t""no" 1>&6
1279 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1281 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1282 echo "configure:1283: checking if the linker ($LD) is GNU ld" >&5
1283 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1284 echo $ac_n "(cached) $ac_c" 1>&6
1286 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1287 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1288 ac_cv_prog_gnu_ld
=yes
1290 ac_cv_prog_gnu_ld
=no
1294 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1297 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1298 echo "configure:1299: checking for BSD-compatible nm" >&5
1299 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1300 echo $ac_n "(cached) $ac_c" 1>&6
1302 if test -n "$NM"; then
1303 # Let the user override the test.
1306 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1307 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1308 test -z "$ac_dir" && ac_dir
=.
1309 if test -f $ac_dir/nm ||
test -f $ac_dir/nm
$ac_exeext ; then
1310 # Check to see if the nm accepts a BSD-compat flag.
1311 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1312 # nm: unknown option "B" ignored
1313 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1314 ac_cv_path_NM
="$ac_dir/nm -B"
1316 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1317 ac_cv_path_NM
="$ac_dir/nm -p"
1320 ac_cv_path_NM
=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1321 continue # so that we can try to find one that supports BSD flags
1326 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1331 echo "$ac_t""$NM" 1>&6
1334 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1335 echo "configure:1336: checking whether ln -s works" >&5
1336 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1337 echo $ac_n "(cached) $ac_c" 1>&6
1340 if ln -s X conftestdata
2>/dev
/null
1343 ac_cv_prog_LN_S
="ln -s"
1348 LN_S
="$ac_cv_prog_LN_S"
1349 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1350 echo "$ac_t""yes" 1>&6
1352 echo "$ac_t""no" 1>&6
1356 # Check for any special flags to pass to ltconfig.
1358 # the following will cause an existing older ltconfig to fail, so
1359 # we ignore this at the expense of the cache file... Checking this
1360 # will just take longer ... bummer!
1361 #libtool_flags="--cache-file=$cache_file"
1363 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1364 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1365 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1366 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1367 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1370 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1371 if test "${enable_libtool_lock+set}" = set; then
1372 enableval
="$enable_libtool_lock"
1376 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1377 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1379 # Some flags need to be propagated to the compiler or linker for good
1383 # Find out which ABI we are using.
1384 echo '#line 1385 "configure"' > conftest.
$ac_ext
1385 if { (eval echo configure
:1386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1386 case "`/usr/bin/file conftest.o`" in
1402 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1403 SAVE_CFLAGS
="$CFLAGS"
1404 CFLAGS
="$CFLAGS -belf"
1405 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1406 echo "configure:1407: checking whether the C compiler needs -belf" >&5
1407 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1408 echo $ac_n "(cached) $ac_c" 1>&6
1410 cat > conftest.
$ac_ext <<EOF
1411 #line 1412 "configure"
1412 #include "confdefs.h"
1418 if { (eval echo configure
:1419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1420 lt_cv_cc_needs_belf
=yes
1422 echo "configure: failed program was:" >&5
1423 cat conftest.
$ac_ext >&5
1425 lt_cv_cc_needs_belf
=no
1430 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1431 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1432 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1433 CFLAGS
="$SAVE_CFLAGS"
1441 # Save cache, so that ltconfig can load it
1442 cat > confcache
<<\EOF
1443 # This file is a shell script that caches the results of configure
1444 # tests run on this system so they can be shared between configure
1445 # scripts and configure runs. It is not useful on other systems.
1446 # If it contains results you don't want to keep, you may remove or edit it.
1448 # By default, configure uses ./config.cache as the cache file,
1449 # creating it if it does not exist already. You can give configure
1450 # the --cache-file=FILE option to use a different cache file; that is
1451 # what configure does when it calls configure scripts in
1452 # subdirectories, so they share the cache.
1453 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1454 # config.status only pays attention to the cache file if you give it the
1455 # --recheck option to rerun configure.
1458 # The following way of writing the cache mishandles newlines in values,
1459 # but we know of no workaround that is simple, portable, and efficient.
1460 # So, don't put newlines in cache variables' values.
1461 # Ultrix sh set writes to stderr and can't be redirected directly,
1462 # and sets the high bit in the cache file unless we assign to the vars.
1464 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1466 # `set' does not quote correctly, so add quotes (double-quote substitution
1467 # turns \\\\ into \\, and sed turns \\ into \).
1469 -e "s/'/'\\\\''/g" \
1470 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1473 # `set' quotes correctly as required by POSIX, so do not add quotes.
1474 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1477 if cmp -s $cache_file confcache
; then
1480 if test -w $cache_file; then
1481 echo "updating cache $cache_file"
1482 cat confcache
> $cache_file
1484 echo "not updating unwritable cache $cache_file"
1490 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1491 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1492 LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
1493 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" \
1494 DLLTOOL
="$DLLTOOL" AS
="$AS" OBJDUMP
="$OBJDUMP" \
1495 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1496 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
1497 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1499 # Reload cache, that may have been modified by ltconfig
1500 if test -r "$cache_file"; then
1501 echo "loading cache $cache_file"
1504 echo "creating cache $cache_file"
1509 # This can be used to rebuild libtool when needed
1510 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1512 # Always use our own libtool.
1513 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1515 # Redirect the config.log output again, so that the ltconfig log is not
1516 # clobbered by the next message.
1517 exec 5>>.
/config.log
1520 # by Marcelo Magallon <mmagallo@efis.ucr.ac.cr>
1521 # Turn around -rpath problem with libtool 1.0c
1522 # This define should be improbable enough to not conflict with anything
1525 echo "$ac_t""Fixing libtool for -rpath problems." 1>&6
1526 sed < libtool
> libtool-2 \
1527 's/^hardcode_libdir_flag_spec.*$/hardcode_libdir_flag_spec=" -D__LIBTOOL_IS_A_FOOL__ "/'
1528 mv libtool-2 libtool
1540 # Make sure we can run config.sub.
1541 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1542 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1545 echo $ac_n "checking host system type""... $ac_c" 1>&6
1546 echo "configure:1547: checking host system type" >&5
1549 case "$host_alias" in
1553 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1554 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1556 *) host_alias
=$nonopt ;;
1560 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1561 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1562 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1563 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1564 echo "$ac_t""$host" 1>&6
1568 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1569 echo "configure:1570: checking for POSIXized ISC" >&5
1570 if test -d /etc
/conf
/kconfig.d
&&
1571 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1573 echo "$ac_t""yes" 1>&6
1574 ISC
=yes # If later tests want to check for ISC.
1575 cat >> confdefs.h
<<\EOF
1576 #define _POSIX_SOURCE 1
1579 if test "$GCC" = yes; then
1585 echo "$ac_t""no" 1>&6
1589 # Extract the first word of "gcc", so it can be a program name with args.
1590 set dummy gcc
; ac_word
=$2
1591 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1592 echo "configure:1593: checking for $ac_word" >&5
1593 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1594 echo $ac_n "(cached) $ac_c" 1>&6
1596 if test -n "$CC"; then
1597 ac_cv_prog_CC
="$CC" # Let the user override the test.
1599 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1601 for ac_dir
in $ac_dummy; do
1602 test -z "$ac_dir" && ac_dir
=.
1603 if test -f $ac_dir/$ac_word; then
1612 if test -n "$CC"; then
1613 echo "$ac_t""$CC" 1>&6
1615 echo "$ac_t""no" 1>&6
1618 if test -z "$CC"; then
1619 # Extract the first word of "cc", so it can be a program name with args.
1620 set dummy cc
; ac_word
=$2
1621 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1622 echo "configure:1623: checking for $ac_word" >&5
1623 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1624 echo $ac_n "(cached) $ac_c" 1>&6
1626 if test -n "$CC"; then
1627 ac_cv_prog_CC
="$CC" # Let the user override the test.
1629 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1632 for ac_dir
in $ac_dummy; do
1633 test -z "$ac_dir" && ac_dir
=.
1634 if test -f $ac_dir/$ac_word; then
1635 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1636 ac_prog_rejected
=yes
1644 if test $ac_prog_rejected = yes; then
1645 # We found a bogon in the path, so make sure we never use it.
1646 set dummy
$ac_cv_prog_CC
1648 if test $# -gt 0; then
1649 # We chose a different compiler from the bogus one.
1650 # However, it has the same basename, so the bogon will be chosen
1651 # first if we set CC to just the basename; use the full file name.
1653 set dummy
"$ac_dir/$ac_word" "$@"
1661 if test -n "$CC"; then
1662 echo "$ac_t""$CC" 1>&6
1664 echo "$ac_t""no" 1>&6
1667 if test -z "$CC"; then
1668 case "`uname -s`" in
1670 # Extract the first word of "cl", so it can be a program name with args.
1671 set dummy cl
; ac_word
=$2
1672 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1673 echo "configure:1674: checking for $ac_word" >&5
1674 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1675 echo $ac_n "(cached) $ac_c" 1>&6
1677 if test -n "$CC"; then
1678 ac_cv_prog_CC
="$CC" # Let the user override the test.
1680 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1682 for ac_dir
in $ac_dummy; do
1683 test -z "$ac_dir" && ac_dir
=.
1684 if test -f $ac_dir/$ac_word; then
1693 if test -n "$CC"; then
1694 echo "$ac_t""$CC" 1>&6
1696 echo "$ac_t""no" 1>&6
1701 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1704 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1705 echo "configure:1706: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1708 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1709 ac_cpp
='$CPP $CPPFLAGS'
1710 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1711 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1712 cross_compiling
=$ac_cv_prog_cc_cross
1714 cat > conftest.
$ac_ext << EOF
1716 #line 1717 "configure"
1717 #include "confdefs.h"
1721 if { (eval echo configure
:1722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1722 ac_cv_prog_cc_works
=yes
1723 # If we can't run a trivial program, we are probably using a cross compiler.
1724 if (.
/conftest
; exit) 2>/dev
/null
; then
1725 ac_cv_prog_cc_cross
=no
1727 ac_cv_prog_cc_cross
=yes
1730 echo "configure: failed program was:" >&5
1731 cat conftest.
$ac_ext >&5
1732 ac_cv_prog_cc_works
=no
1736 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1737 ac_cpp
='$CPP $CPPFLAGS'
1738 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1739 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1740 cross_compiling
=$ac_cv_prog_cc_cross
1742 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1743 if test $ac_cv_prog_cc_works = no
; then
1744 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1746 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1747 echo "configure:1748: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1748 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1749 cross_compiling
=$ac_cv_prog_cc_cross
1751 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1752 echo "configure:1753: checking whether we are using GNU C" >&5
1753 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1754 echo $ac_n "(cached) $ac_c" 1>&6
1756 cat > conftest.c
<<EOF
1761 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1768 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1770 if test $ac_cv_prog_gcc = yes; then
1776 ac_test_CFLAGS
="${CFLAGS+set}"
1777 ac_save_CFLAGS
="$CFLAGS"
1779 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1780 echo "configure:1781: checking whether ${CC-cc} accepts -g" >&5
1781 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1782 echo $ac_n "(cached) $ac_c" 1>&6
1784 echo 'void f(){}' > conftest.c
1785 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1794 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1795 if test "$ac_test_CFLAGS" = set; then
1796 CFLAGS
="$ac_save_CFLAGS"
1797 elif test $ac_cv_prog_cc_g = yes; then
1798 if test "$GCC" = yes; then
1804 if test "$GCC" = yes; then
1812 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1813 echo "configure:1814: checking whether ln -s works" >&5
1814 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1815 echo $ac_n "(cached) $ac_c" 1>&6
1818 if ln -s X conftestdata
2>/dev
/null
1821 ac_cv_prog_LN_S
="ln -s"
1826 LN_S
="$ac_cv_prog_LN_S"
1827 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1828 echo "$ac_t""yes" 1>&6
1830 echo "$ac_t""no" 1>&6
1833 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1834 echo "configure:1835: checking how to run the C preprocessor" >&5
1835 # On Suns, sometimes $CPP names a directory.
1836 if test -n "$CPP" && test -d "$CPP"; then
1839 if test -z "$CPP"; then
1840 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1841 echo $ac_n "(cached) $ac_c" 1>&6
1843 # This must be in double quotes, not single quotes, because CPP may get
1844 # substituted into the Makefile and "${CC-cc}" will confuse make.
1846 # On the NeXT, cc -E runs the code through the compiler's parser,
1847 # not just through cpp.
1848 cat > conftest.
$ac_ext <<EOF
1849 #line 1850 "configure"
1850 #include "confdefs.h"
1854 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1855 { (eval echo configure
:1856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1856 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1857 if test -z "$ac_err"; then
1861 echo "configure: failed program was:" >&5
1862 cat conftest.
$ac_ext >&5
1864 CPP
="${CC-cc} -E -traditional-cpp"
1865 cat > conftest.
$ac_ext <<EOF
1866 #line 1867 "configure"
1867 #include "confdefs.h"
1871 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1872 { (eval echo configure
:1873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1873 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1874 if test -z "$ac_err"; then
1878 echo "configure: failed program was:" >&5
1879 cat conftest.
$ac_ext >&5
1881 CPP
="${CC-cc} -nologo -E"
1882 cat > conftest.
$ac_ext <<EOF
1883 #line 1884 "configure"
1884 #include "confdefs.h"
1888 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1889 { (eval echo configure
:1890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1890 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1891 if test -z "$ac_err"; then
1895 echo "configure: failed program was:" >&5
1896 cat conftest.
$ac_ext >&5
1905 ac_cv_prog_CPP
="$CPP"
1907 CPP
="$ac_cv_prog_CPP"
1909 ac_cv_prog_CPP
="$CPP"
1911 echo "$ac_t""$CPP" 1>&6
1913 if test $ac_cv_prog_gcc = yes; then
1914 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1915 echo "configure:1916: checking whether ${CC-cc} needs -traditional" >&5
1916 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1917 echo $ac_n "(cached) $ac_c" 1>&6
1919 ac_pattern
="Autoconf.*'x'"
1920 cat > conftest.
$ac_ext <<EOF
1921 #line 1922 "configure"
1922 #include "confdefs.h"
1926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1927 egrep "$ac_pattern" >/dev
/null
2>&1; then
1929 ac_cv_prog_gcc_traditional
=yes
1932 ac_cv_prog_gcc_traditional
=no
1937 if test $ac_cv_prog_gcc_traditional = no
; then
1938 cat > conftest.
$ac_ext <<EOF
1939 #line 1940 "configure"
1940 #include "confdefs.h"
1944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1945 egrep "$ac_pattern" >/dev
/null
2>&1; then
1947 ac_cv_prog_gcc_traditional
=yes
1954 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1955 if test $ac_cv_prog_gcc_traditional = yes; then
1956 CC
="$CC -traditional"
1963 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1964 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1967 _bindir
=`eval echo $bindir`
1968 _bindir
=`eval echo $_bindir`
1970 _libdir
=`eval echo $libdir`
1971 _libdir
=`eval echo $_libdir`
1972 lib_search_path
="-L$_libdir"
1974 inc_search_path
=`eval echo $includedir`
1975 inc_search_path
="-I`eval echo $inc_search_path`"
1981 # Check whether --with-libs-from or --without-libs-from was given.
1982 if test "${with_libs_from+set}" = set; then
1983 withval
="$with_libs_from"
1984 lib_search_path
="$withval $lib_search_path"
1988 # Check whether --with-incs-from or --without-incs-from was given.
1989 if test "${with_incs_from+set}" = set; then
1990 withval
="$with_incs_from"
1991 inc_search_path
="$withval $inc_search_path"
1997 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1998 echo "configure:1999: checking for vprintf" >&5
1999 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2000 echo $ac_n "(cached) $ac_c" 1>&6
2002 cat > conftest.
$ac_ext <<EOF
2003 #line 2004 "configure"
2004 #include "confdefs.h"
2005 /* System header to define __stub macros and hopefully few prototypes,
2006 which can conflict with char vprintf(); below. */
2008 /* Override any gcc2 internal prototype to avoid an error. */
2009 /* We use char because int might match the return type of a gcc2
2010 builtin and then its argument prototype would still apply. */
2015 /* The GNU C library defines this for functions which it implements
2016 to always fail with ENOSYS. Some functions are actually named
2017 something starting with __ and the normal name is an alias. */
2018 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2026 if { (eval echo configure
:2027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2028 eval "ac_cv_func_vprintf=yes"
2030 echo "configure: failed program was:" >&5
2031 cat conftest.
$ac_ext >&5
2033 eval "ac_cv_func_vprintf=no"
2038 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2039 echo "$ac_t""yes" 1>&6
2040 cat >> confdefs.h
<<\EOF
2041 #define HAVE_VPRINTF 1
2045 echo "$ac_t""no" 1>&6
2048 if test "$ac_cv_func_vprintf" != yes; then
2049 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2050 echo "configure:2051: checking for _doprnt" >&5
2051 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2052 echo $ac_n "(cached) $ac_c" 1>&6
2054 cat > conftest.
$ac_ext <<EOF
2055 #line 2056 "configure"
2056 #include "confdefs.h"
2057 /* System header to define __stub macros and hopefully few prototypes,
2058 which can conflict with char _doprnt(); below. */
2060 /* Override any gcc2 internal prototype to avoid an error. */
2061 /* We use char because int might match the return type of a gcc2
2062 builtin and then its argument prototype would still apply. */
2067 /* The GNU C library defines this for functions which it implements
2068 to always fail with ENOSYS. Some functions are actually named
2069 something starting with __ and the normal name is an alias. */
2070 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2078 if { (eval echo configure
:2079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2080 eval "ac_cv_func__doprnt=yes"
2082 echo "configure: failed program was:" >&5
2083 cat conftest.
$ac_ext >&5
2085 eval "ac_cv_func__doprnt=no"
2090 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2091 echo "$ac_t""yes" 1>&6
2092 cat >> confdefs.h
<<\EOF
2093 #define HAVE_DOPRNT 1
2097 echo "$ac_t""no" 1>&6
2102 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2103 # for constant arguments. Useless!
2104 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2105 echo "configure:2106: checking for working alloca.h" >&5
2106 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2107 echo $ac_n "(cached) $ac_c" 1>&6
2109 cat > conftest.
$ac_ext <<EOF
2110 #line 2111 "configure"
2111 #include "confdefs.h"
2114 char *p = alloca(2 * sizeof(int));
2117 if { (eval echo configure
:2118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2119 ac_cv_header_alloca_h
=yes
2121 echo "configure: failed program was:" >&5
2122 cat conftest.
$ac_ext >&5
2124 ac_cv_header_alloca_h
=no
2129 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2130 if test $ac_cv_header_alloca_h = yes; then
2131 cat >> confdefs.h
<<\EOF
2132 #define HAVE_ALLOCA_H 1
2137 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2138 echo "configure:2139: checking for alloca" >&5
2139 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2140 echo $ac_n "(cached) $ac_c" 1>&6
2142 cat > conftest.
$ac_ext <<EOF
2143 #line 2144 "configure"
2144 #include "confdefs.h"
2147 # define alloca __builtin_alloca
2150 # include <malloc.h>
2151 # define alloca _alloca
2154 # include <alloca.h>
2159 # ifndef alloca /* predefined by HP cc +Olibcalls */
2168 char *p = (char *) alloca(1);
2171 if { (eval echo configure
:2172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2173 ac_cv_func_alloca_works
=yes
2175 echo "configure: failed program was:" >&5
2176 cat conftest.
$ac_ext >&5
2178 ac_cv_func_alloca_works
=no
2183 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2184 if test $ac_cv_func_alloca_works = yes; then
2185 cat >> confdefs.h
<<\EOF
2186 #define HAVE_ALLOCA 1
2191 if test $ac_cv_func_alloca_works = no
; then
2192 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2193 # that cause trouble. Some versions do not even contain alloca or
2194 # contain a buggy version. If you still want to use their alloca,
2195 # use ar to extract alloca.o from them instead of compiling alloca.c.
2196 ALLOCA
=alloca.
${ac_objext}
2197 cat >> confdefs.h
<<\EOF
2202 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2203 echo "configure:2204: checking whether alloca needs Cray hooks" >&5
2204 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2205 echo $ac_n "(cached) $ac_c" 1>&6
2207 cat > conftest.
$ac_ext <<EOF
2208 #line 2209 "configure"
2209 #include "confdefs.h"
2210 #if defined(CRAY) && ! defined(CRAY2)
2217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2218 egrep "webecray" >/dev
/null
2>&1; then
2229 echo "$ac_t""$ac_cv_os_cray" 1>&6
2230 if test $ac_cv_os_cray = yes; then
2231 for ac_func
in _getb67 GETB67 getb67
; do
2232 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2233 echo "configure:2234: checking for $ac_func" >&5
2234 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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 $ac_func(); 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_$ac_func) || defined (__stub___$ac_func)
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_$ac_func=yes"
2265 echo "configure: failed program was:" >&5
2266 cat conftest.
$ac_ext >&5
2268 eval "ac_cv_func_$ac_func=no"
2273 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2274 echo "$ac_t""yes" 1>&6
2275 cat >> confdefs.h
<<EOF
2276 #define CRAY_STACKSEG_END $ac_func
2281 echo "$ac_t""no" 1>&6
2287 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2288 echo "configure:2289: checking stack direction for C alloca" >&5
2289 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2290 echo $ac_n "(cached) $ac_c" 1>&6
2292 if test "$cross_compiling" = yes; then
2293 ac_cv_c_stack_direction
=0
2295 cat > conftest.
$ac_ext <<EOF
2296 #line 2297 "configure"
2297 #include "confdefs.h"
2298 find_stack_direction ()
2300 static char *addr = 0;
2305 return find_stack_direction ();
2308 return (&dummy > addr) ? 1 : -1;
2312 exit (find_stack_direction() < 0);
2315 if { (eval echo configure
:2316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2317 ac_cv_c_stack_direction
=1
2319 echo "configure: failed program was:" >&5
2320 cat conftest.
$ac_ext >&5
2322 ac_cv_c_stack_direction
=-1
2329 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2330 cat >> confdefs.h
<<EOF
2331 #define STACK_DIRECTION $ac_cv_c_stack_direction
2336 for ac_func
in gethostname
select poll strerror strncasecmp setpgid atexit
2338 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2339 echo "configure:2340: checking for $ac_func" >&5
2340 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2341 echo $ac_n "(cached) $ac_c" 1>&6
2343 cat > conftest.
$ac_ext <<EOF
2344 #line 2345 "configure"
2345 #include "confdefs.h"
2346 /* System header to define __stub macros and hopefully few prototypes,
2347 which can conflict with char $ac_func(); below. */
2349 /* Override any gcc2 internal prototype to avoid an error. */
2350 /* We use char because int might match the return type of a gcc2
2351 builtin and then its argument prototype would still apply. */
2356 /* The GNU C library defines this for functions which it implements
2357 to always fail with ENOSYS. Some functions are actually named
2358 something starting with __ and the normal name is an alias. */
2359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2367 if { (eval echo configure
:2368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2369 eval "ac_cv_func_$ac_func=yes"
2371 echo "configure: failed program was:" >&5
2372 cat conftest.
$ac_ext >&5
2374 eval "ac_cv_func_$ac_func=no"
2379 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2380 echo "$ac_t""yes" 1>&6
2381 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2382 cat >> confdefs.h
<<EOF
2383 #define $ac_tr_func 1
2387 echo "$ac_t""no" 1>&6
2396 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
2397 echo "configure:2398: checking for dlopen" >&5
2398 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
2399 echo $ac_n "(cached) $ac_c" 1>&6
2401 cat > conftest.
$ac_ext <<EOF
2402 #line 2403 "configure"
2403 #include "confdefs.h"
2404 /* System header to define __stub macros and hopefully few prototypes,
2405 which can conflict with char dlopen(); below. */
2407 /* Override any gcc2 internal prototype to avoid an error. */
2408 /* We use char because int might match the return type of a gcc2
2409 builtin and then its argument prototype would still apply. */
2414 /* The GNU C library defines this for functions which it implements
2415 to always fail with ENOSYS. Some functions are actually named
2416 something starting with __ and the normal name is an alias. */
2417 #if defined (__stub_dlopen) || defined (__stub___dlopen)
2425 if { (eval echo configure
:2426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2427 eval "ac_cv_func_dlopen=yes"
2429 echo "configure: failed program was:" >&5
2430 cat conftest.
$ac_ext >&5
2432 eval "ac_cv_func_dlopen=no"
2437 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
2438 echo "$ac_t""yes" 1>&6
2441 echo "$ac_t""no" 1>&6
2442 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2443 echo "configure:2444: checking for dlopen in -ldl" >&5
2444 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2445 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2446 echo $ac_n "(cached) $ac_c" 1>&6
2448 ac_save_LIBS
="$LIBS"
2450 cat > conftest.
$ac_ext <<EOF
2451 #line 2452 "configure"
2452 #include "confdefs.h"
2453 /* Override any gcc2 internal prototype to avoid an error. */
2454 /* We use char because int might match the return type of a gcc2
2455 builtin and then its argument prototype would still apply. */
2462 if { (eval echo configure
:2463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2464 eval "ac_cv_lib_$ac_lib_var=yes"
2466 echo "configure: failed program was:" >&5
2467 cat conftest.
$ac_ext >&5
2469 eval "ac_cv_lib_$ac_lib_var=no"
2472 LIBS
="$ac_save_LIBS"
2475 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2476 echo "$ac_t""yes" 1>&6
2477 DLLIBS
="-ldl" HAVEDL
="yes"
2479 echo "$ac_t""no" 1>&6
2486 if test "x$HAVEDL" = xyes
; then
2487 for ac_hdr
in dlfcn.h
2489 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2490 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2491 echo "configure:2492: checking for $ac_hdr" >&5
2492 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2493 echo $ac_n "(cached) $ac_c" 1>&6
2495 cat > conftest.
$ac_ext <<EOF
2496 #line 2497 "configure"
2497 #include "confdefs.h"
2500 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2501 { (eval echo configure
:2502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2502 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2503 if test -z "$ac_err"; then
2505 eval "ac_cv_header_$ac_safe=yes"
2508 echo "configure: failed program was:" >&5
2509 cat conftest.
$ac_ext >&5
2511 eval "ac_cv_header_$ac_safe=no"
2515 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2516 echo "$ac_t""yes" 1>&6
2517 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2518 cat >> confdefs.h
<<EOF
2519 #define $ac_tr_hdr 1
2523 echo "$ac_t""no" 1>&6
2531 if test "x$CPP_PATH" = x
; then
2532 # Extract the first word of "cpp", so it can be a program name with args.
2533 set dummy cpp
; ac_word
=$2
2534 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2535 echo "configure:2536: checking for $ac_word" >&5
2536 if eval "test \"`echo '$''{'ac_cv_path_CPP_PATH'+set}'`\" = set"; then
2537 echo $ac_n "(cached) $ac_c" 1>&6
2541 ac_cv_path_CPP_PATH
="$CPP_PATH" # Let the user override the test with a path.
2544 ac_cv_path_CPP_PATH
="$CPP_PATH" # Let the user override the test with a dos path.
2547 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2548 ac_dummy
="$PATH:/lib:/usr/bin:/bin:/usr/lib:/usr/ccs/lib"
2549 for ac_dir
in $ac_dummy; do
2550 test -z "$ac_dir" && ac_dir
=.
2551 if test -f $ac_dir/$ac_word; then
2552 ac_cv_path_CPP_PATH
="$ac_dir/$ac_word"
2557 test -z "$ac_cv_path_CPP_PATH" && ac_cv_path_CPP_PATH
="notfound"
2561 CPP_PATH
="$ac_cv_path_CPP_PATH"
2562 if test -n "$CPP_PATH"; then
2563 echo "$ac_t""$CPP_PATH" 1>&6
2565 echo "$ac_t""no" 1>&6
2570 if test "$CPP_PATH" = "/usr/ccs/lib/cpp" -o "$CPP_PATH" = "notfound" ; then
2571 if test "$GCC" = "yes"; then
2572 CPP_PATH
="gcc -E -x c"
2574 if test "$CPP_PATH" = "/usr/ccs/lib/cpp"; then
2575 CPP_PATH
="$CPP_PATH -B"
2577 echo "cpp, the C preprocessor was not found in your system."
2578 echo "Create a symbolic link from it to /lib/cpp and rerun configure"
2583 cat >> confdefs.h
<<EOF
2584 #define CPP_PATH "$CPP_PATH"
2590 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2591 echo "configure:2592: checking for sys/wait.h that is POSIX.1 compatible" >&5
2592 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2593 echo $ac_n "(cached) $ac_c" 1>&6
2595 cat > conftest.
$ac_ext <<EOF
2596 #line 2597 "configure"
2597 #include "confdefs.h"
2598 #include <sys/types.h>
2599 #include <sys/wait.h>
2601 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2604 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2609 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2612 if { (eval echo configure
:2613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2614 ac_cv_header_sys_wait_h
=yes
2616 echo "configure: failed program was:" >&5
2617 cat conftest.
$ac_ext >&5
2619 ac_cv_header_sys_wait_h
=no
2624 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2625 if test $ac_cv_header_sys_wait_h = yes; then
2626 cat >> confdefs.h
<<\EOF
2627 #define HAVE_SYS_WAIT_H 1
2632 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2633 echo "configure:2634: checking whether time.h and sys/time.h may both be included" >&5
2634 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2635 echo $ac_n "(cached) $ac_c" 1>&6
2637 cat > conftest.
$ac_ext <<EOF
2638 #line 2639 "configure"
2639 #include "confdefs.h"
2640 #include <sys/types.h>
2641 #include <sys/time.h>
2647 if { (eval echo configure
:2648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2649 ac_cv_header_time
=yes
2651 echo "configure: failed program was:" >&5
2652 cat conftest.
$ac_ext >&5
2654 ac_cv_header_time
=no
2659 echo "$ac_t""$ac_cv_header_time" 1>&6
2660 if test $ac_cv_header_time = yes; then
2661 cat >> confdefs.h
<<\EOF
2662 #define TIME_WITH_SYS_TIME 1
2667 for ac_hdr
in fcntl.h limits.h sys
/ioctl.h sys
/time.h sys
/types.h\
2668 libintl.h sys
/select.h poll.h
2670 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2671 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2672 echo "configure:2673: checking for $ac_hdr" >&5
2673 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2674 echo $ac_n "(cached) $ac_c" 1>&6
2676 cat > conftest.
$ac_ext <<EOF
2677 #line 2678 "configure"
2678 #include "confdefs.h"
2681 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2682 { (eval echo configure
:2683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2683 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2684 if test -z "$ac_err"; then
2686 eval "ac_cv_header_$ac_safe=yes"
2689 echo "configure: failed program was:" >&5
2690 cat conftest.
$ac_ext >&5
2692 eval "ac_cv_header_$ac_safe=no"
2696 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2697 echo "$ac_t""yes" 1>&6
2698 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2699 cat >> confdefs.h
<<EOF
2700 #define $ac_tr_hdr 1
2704 echo "$ac_t""no" 1>&6
2711 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2712 echo "configure:2713: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2713 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2714 echo $ac_n "(cached) $ac_c" 1>&6
2716 cat > conftest.
$ac_ext <<EOF
2717 #line 2718 "configure"
2718 #include "confdefs.h"
2719 #include <sys/types.h>
2721 /* NetBSD declares sys_siglist in unistd.h. */
2722 #ifdef HAVE_UNISTD_H
2726 char *msg = *(sys_siglist + 1);
2729 if { (eval echo configure
:2730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2731 ac_cv_decl_sys_siglist
=yes
2733 echo "configure: failed program was:" >&5
2734 cat conftest.
$ac_ext >&5
2736 ac_cv_decl_sys_siglist
=no
2741 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2742 if test $ac_cv_decl_sys_siglist = yes; then
2743 cat >> confdefs.h
<<\EOF
2744 #define SYS_SIGLIST_DECLARED 1
2749 echo $ac_n "checking for working const""... $ac_c" 1>&6
2750 echo "configure:2751: checking for working const" >&5
2751 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2752 echo $ac_n "(cached) $ac_c" 1>&6
2754 cat > conftest.
$ac_ext <<EOF
2755 #line 2756 "configure"
2756 #include "confdefs.h"
2760 /* Ultrix mips cc rejects this. */
2761 typedef int charset[2]; const charset x;
2762 /* SunOS 4.1.1 cc rejects this. */
2763 char const *const *ccp;
2765 /* NEC SVR4.0.2 mips cc rejects this. */
2766 struct point {int x, y;};
2767 static struct point const zero = {0,0};
2768 /* AIX XL C 1.02.0.0 rejects this.
2769 It does not let you subtract one const X* pointer from another in an arm
2770 of an if-expression whose if-part is not a constant expression */
2771 const char *g = "string";
2772 ccp = &g + (g ? g-g : 0);
2773 /* HPUX 7.0 cc rejects these. */
2776 ccp = (char const *const *) p;
2777 { /* SCO 3.2v4 cc rejects this. */
2779 char const *s = 0 ? (char *) 0 : (char const *) 0;
2783 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2785 const int *foo = &x[0];
2788 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2789 typedef const int *iptr;
2793 { /* AIX XL C 1.02.0.0 rejects this saying
2794 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2795 struct s { int j; const int *ap[3]; };
2796 struct s *b; b->j = 5;
2798 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2804 if { (eval echo configure
:2805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2808 echo "configure: failed program was:" >&5
2809 cat conftest.
$ac_ext >&5
2816 echo "$ac_t""$ac_cv_c_const" 1>&6
2817 if test $ac_cv_c_const = no
; then
2818 cat >> confdefs.h
<<\EOF
2826 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2827 echo "configure:2828: checking return type of signal handlers" >&5
2828 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2829 echo $ac_n "(cached) $ac_c" 1>&6
2831 cat > conftest.
$ac_ext <<EOF
2832 #line 2833 "configure"
2833 #include "confdefs.h"
2834 #include <sys/types.h>
2840 extern "C" void (*signal (int, void (*)(int)))(int);
2842 void (*signal ()) ();
2849 if { (eval echo configure
:2850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2851 ac_cv_type_signal
=void
2853 echo "configure: failed program was:" >&5
2854 cat conftest.
$ac_ext >&5
2856 ac_cv_type_signal
=int
2861 echo "$ac_t""$ac_cv_type_signal" 1>&6
2862 cat >> confdefs.h
<<EOF
2863 #define RETSIGTYPE $ac_cv_type_signal
2873 if test "$ac_cv_prog_gcc" = yes; then
2880 if test $x86 = 1; then
2881 cat >> confdefs.h
<<\EOF
2886 echo $ac_n "checking whether gcc supports MMX(tm) inline asm""... $ac_c" 1>&6
2887 echo "configure:2888: checking whether gcc supports MMX(tm) inline asm" >&5
2888 if eval "test \"`echo '$''{'ac_cv_c_inline_mmx'+set}'`\" = set"; then
2889 echo $ac_n "(cached) $ac_c" 1>&6
2891 cat > conftest.
$ac_ext <<EOF
2892 #line 2893 "configure"
2893 #include "confdefs.h"
2896 asm ("movq %mm0, %mm1");
2899 if { (eval echo configure
:2900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2901 ac_cv_c_inline_mmx
=yes
2903 echo "configure: failed program was:" >&5
2904 cat conftest.
$ac_ext >&5
2906 ac_cv_c_inline_mmx
=no
2911 echo "$ac_t""$ac_cv_c_inline_mmx" 1>&6
2913 if test "x$ac_cv_c_inline_mmx" = xyes
; then
2914 cat >> confdefs.h
<<\EOF
2915 #define ASM_X86_MMX 1
2931 echo $ac_n "checking for gettext""... $ac_c" 1>&6
2932 echo "configure:2933: checking for gettext" >&5
2933 if eval "test \"`echo '$''{'ac_cv_func_gettext'+set}'`\" = set"; then
2934 echo $ac_n "(cached) $ac_c" 1>&6
2936 cat > conftest.
$ac_ext <<EOF
2937 #line 2938 "configure"
2938 #include "confdefs.h"
2939 /* System header to define __stub macros and hopefully few prototypes,
2940 which can conflict with char gettext(); below. */
2942 /* Override any gcc2 internal prototype to avoid an error. */
2943 /* We use char because int might match the return type of a gcc2
2944 builtin and then its argument prototype would still apply. */
2949 /* The GNU C library defines this for functions which it implements
2950 to always fail with ENOSYS. Some functions are actually named
2951 something starting with __ and the normal name is an alias. */
2952 #if defined (__stub_gettext) || defined (__stub___gettext)
2960 if { (eval echo configure
:2961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2962 eval "ac_cv_func_gettext=yes"
2964 echo "configure: failed program was:" >&5
2965 cat conftest.
$ac_ext >&5
2967 eval "ac_cv_func_gettext=no"
2972 if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
2973 echo "$ac_t""yes" 1>&6
2976 echo "$ac_t""no" 1>&6
2977 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2978 echo "configure:2979: checking for gettext in -lintl" >&5
2979 ac_lib_var
=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2980 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2981 echo $ac_n "(cached) $ac_c" 1>&6
2983 ac_save_LIBS
="$LIBS"
2985 cat > conftest.
$ac_ext <<EOF
2986 #line 2987 "configure"
2987 #include "confdefs.h"
2988 /* Override any gcc2 internal prototype to avoid an error. */
2989 /* We use char because int might match the return type of a gcc2
2990 builtin and then its argument prototype would still apply. */
2997 if { (eval echo configure
:2998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2999 eval "ac_cv_lib_$ac_lib_var=yes"
3001 echo "configure: failed program was:" >&5
3002 cat conftest.
$ac_ext >&5
3004 eval "ac_cv_lib_$ac_lib_var=no"
3007 LIBS
="$ac_save_LIBS"
3010 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3011 echo "$ac_t""yes" 1>&6
3012 INTLIBS
="-lintl" HAVEGETTEXT
="yes"
3014 echo "$ac_t""no" 1>&6
3021 # Extract the first word of "xgettext", so it can be a program name with args.
3022 set dummy xgettext
; ac_word
=$2
3023 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3024 echo "configure:3025: checking for $ac_word" >&5
3025 if eval "test \"`echo '$''{'ac_cv_prog_XGETTEXT'+set}'`\" = set"; then
3026 echo $ac_n "(cached) $ac_c" 1>&6
3028 if test -n "$XGETTEXT"; then
3029 ac_cv_prog_XGETTEXT
="$XGETTEXT" # Let the user override the test.
3031 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3033 for ac_dir
in $ac_dummy; do
3034 test -z "$ac_dir" && ac_dir
=.
3035 if test -f $ac_dir/$ac_word; then
3036 ac_cv_prog_XGETTEXT
="xgettext"
3043 XGETTEXT
="$ac_cv_prog_XGETTEXT"
3044 if test -n "$XGETTEXT"; then
3045 echo "$ac_t""$XGETTEXT" 1>&6
3047 echo "$ac_t""no" 1>&6
3051 if test "$XGETTEXT" != ""; then
3052 if $XGETTEXT --help 2>&1 |
grep illegal
>/dev
/null
; then
3053 echo "xgettext isn't GNU version"
3058 if test "$LINGUAS" != ""; then
3059 if test "$XGETTEXT" != "" -a "$HAVEGETTEXT" != ""; then
3060 cat >> confdefs.h
<<\EOF
3065 # if test "$LINGUAS" = ""; then
3066 # ling=` (cd src/po; /bin/ls *.po) `
3067 # for l in $ling; do
3068 # lcode=`basename $l .po`
3069 # LINGUAS="$LINGUAS $lcode"
3072 echo "xgettext and gettext() exist; will build i18n support for $LINGUAS"
3076 echo "xgettext and libintl.a don't both exist; will not build i18n support"
3087 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"
3088 supported_wprefs_locales
="pt hr fr ko ja cs zh_TW.Big5 es zh_CN fi it ru de"
3090 for lang
in $LINGUAS; do
3092 for l
in $supported_locales; do
3093 if test "$l" = "$lang"; then
3098 if test "$ok" = 1; then
3099 MOFILES
="$MOFILES $lang.mo"
3101 echo "Locale $lang is not supported."
3104 for l
in $supported_wprefs_locales; do
3105 if test "$l" = "$lang"; then
3110 if test "$ok" = 1; then
3111 WPMOFILES
="$WPMOFILES $lang.mo"
3119 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
3120 echo "configure:3121: checking for setlocale in -lxpg4" >&5
3121 ac_lib_var
=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
3122 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3123 echo $ac_n "(cached) $ac_c" 1>&6
3125 ac_save_LIBS
="$LIBS"
3127 cat > conftest.
$ac_ext <<EOF
3128 #line 3129 "configure"
3129 #include "confdefs.h"
3130 /* Override any gcc2 internal prototype to avoid an error. */
3131 /* We use char because int might match the return type of a gcc2
3132 builtin and then its argument prototype would still apply. */
3139 if { (eval echo configure
:3140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3141 eval "ac_cv_lib_$ac_lib_var=yes"
3143 echo "configure: failed program was:" >&5
3144 cat conftest.
$ac_ext >&5
3146 eval "ac_cv_lib_$ac_lib_var=no"
3149 LIBS
="$ac_save_LIBS"
3152 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3153 echo "$ac_t""yes" 1>&6
3156 echo "$ac_t""no" 1>&6
3165 # Check whether --with-nlsdir or --without-nlsdir was given.
3166 if test "${with_nlsdir+set}" = set; then
3167 withval
="$with_nlsdir"
3173 if test "x$NLSDIR" = "x"; then
3174 if test "x$with_nlsdir" != "x"; then
3177 NLSDIR
='$(prefix)/lib/locale'
3193 # Check whether --enable-gnome or --disable-gnome was given.
3194 if test "${enable_gnome+set}" = set; then
3195 enableval
="$enable_gnome"
3196 if test x
$enableval = xyes
; then
3197 cat >> confdefs.h
<<\EOF
3198 #define GNOME_STUFF 1
3207 # Check whether --enable-kde or --disable-kde was given.
3208 if test "${enable_kde+set}" = set; then
3209 enableval
="$enable_kde"
3210 if test x
$enableval = xyes
; then
3211 cat >> confdefs.h
<<\EOF
3221 # Check whether --enable-openlook or --disable-openlook was given.
3222 if test "${enable_openlook+set}" = set; then
3223 enableval
="$enable_openlook"
3224 if test x
$enableval = xyes
; then
3225 cat >> confdefs.h
<<\EOF
3226 #define OLWM_HINTS 1
3235 # Check whether --enable-lite or --disable-lite was given.
3236 if test "${enable_lite+set}" = set; then
3237 enableval
="$enable_lite"
3238 if test x
$enableval = xyes
; then
3240 cat >> confdefs.h
<<\EOF
3254 echo $ac_n "checking for connect""... $ac_c" 1>&6
3255 echo "configure:3256: checking for connect" >&5
3256 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3257 echo $ac_n "(cached) $ac_c" 1>&6
3259 cat > conftest.
$ac_ext <<EOF
3260 #line 3261 "configure"
3261 #include "confdefs.h"
3262 /* System header to define __stub macros and hopefully few prototypes,
3263 which can conflict with char connect(); below. */
3265 /* Override any gcc2 internal prototype to avoid an error. */
3266 /* We use char because int might match the return type of a gcc2
3267 builtin and then its argument prototype would still apply. */
3272 /* The GNU C library defines this for functions which it implements
3273 to always fail with ENOSYS. Some functions are actually named
3274 something starting with __ and the normal name is an alias. */
3275 #if defined (__stub_connect) || defined (__stub___connect)
3283 if { (eval echo configure
:3284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3285 eval "ac_cv_func_connect=yes"
3287 echo "configure: failed program was:" >&5
3288 cat conftest.
$ac_ext >&5
3290 eval "ac_cv_func_connect=no"
3295 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3296 echo "$ac_t""yes" 1>&6
3299 echo "$ac_t""no" 1>&6
3300 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3301 echo "configure:3302: checking for connect in -lsocket" >&5
3302 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3303 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3304 echo $ac_n "(cached) $ac_c" 1>&6
3306 ac_save_LIBS
="$LIBS"
3307 LIBS
="-lsocket $LIBS"
3308 cat > conftest.
$ac_ext <<EOF
3309 #line 3310 "configure"
3310 #include "confdefs.h"
3311 /* Override any gcc2 internal prototype to avoid an error. */
3312 /* We use char because int might match the return type of a gcc2
3313 builtin and then its argument prototype would still apply. */
3320 if { (eval echo configure
:3321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3322 eval "ac_cv_lib_$ac_lib_var=yes"
3324 echo "configure: failed program was:" >&5
3325 cat conftest.
$ac_ext >&5
3327 eval "ac_cv_lib_$ac_lib_var=no"
3330 LIBS
="$ac_save_LIBS"
3333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3334 echo "$ac_t""yes" 1>&6
3335 NETLIBS
="$NETLIBS -lsocket"
3337 echo "$ac_t""no" 1>&6
3343 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3344 echo "configure:3345: checking for gethostbyname" >&5
3345 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3346 echo $ac_n "(cached) $ac_c" 1>&6
3348 cat > conftest.
$ac_ext <<EOF
3349 #line 3350 "configure"
3350 #include "confdefs.h"
3351 /* System header to define __stub macros and hopefully few prototypes,
3352 which can conflict with char gethostbyname(); below. */
3354 /* Override any gcc2 internal prototype to avoid an error. */
3355 /* We use char because int might match the return type of a gcc2
3356 builtin and then its argument prototype would still apply. */
3357 char gethostbyname();
3361 /* The GNU C library defines this for functions which it implements
3362 to always fail with ENOSYS. Some functions are actually named
3363 something starting with __ and the normal name is an alias. */
3364 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3372 if { (eval echo configure
:3373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3374 eval "ac_cv_func_gethostbyname=yes"
3376 echo "configure: failed program was:" >&5
3377 cat conftest.
$ac_ext >&5
3379 eval "ac_cv_func_gethostbyname=no"
3384 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3385 echo "$ac_t""yes" 1>&6
3388 echo "$ac_t""no" 1>&6
3389 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3390 echo "configure:3391: checking for gethostbyname in -lnsl" >&5
3391 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3392 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3393 echo $ac_n "(cached) $ac_c" 1>&6
3395 ac_save_LIBS
="$LIBS"
3397 cat > conftest.
$ac_ext <<EOF
3398 #line 3399 "configure"
3399 #include "confdefs.h"
3400 /* Override any gcc2 internal prototype to avoid an error. */
3401 /* We use char because int might match the return type of a gcc2
3402 builtin and then its argument prototype would still apply. */
3403 char gethostbyname();
3409 if { (eval echo configure
:3410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3411 eval "ac_cv_lib_$ac_lib_var=yes"
3413 echo "configure: failed program was:" >&5
3414 cat conftest.
$ac_ext >&5
3416 eval "ac_cv_lib_$ac_lib_var=no"
3419 LIBS
="$ac_save_LIBS"
3422 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3423 echo "$ac_t""yes" 1>&6
3424 NETLIBS
="$NETLIBS -lnsl"
3426 echo "$ac_t""no" 1>&6
3432 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3433 echo "configure:3434: checking for inet_aton" >&5
3434 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3435 echo $ac_n "(cached) $ac_c" 1>&6
3437 cat > conftest.
$ac_ext <<EOF
3438 #line 3439 "configure"
3439 #include "confdefs.h"
3440 /* System header to define __stub macros and hopefully few prototypes,
3441 which can conflict with char inet_aton(); below. */
3443 /* Override any gcc2 internal prototype to avoid an error. */
3444 /* We use char because int might match the return type of a gcc2
3445 builtin and then its argument prototype would still apply. */
3450 /* The GNU C library defines this for functions which it implements
3451 to always fail with ENOSYS. Some functions are actually named
3452 something starting with __ and the normal name is an alias. */
3453 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3461 if { (eval echo configure
:3462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3463 eval "ac_cv_func_inet_aton=yes"
3465 echo "configure: failed program was:" >&5
3466 cat conftest.
$ac_ext >&5
3468 eval "ac_cv_func_inet_aton=no"
3473 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3474 echo "$ac_t""yes" 1>&6
3475 cat >> confdefs.h
<<\EOF
3476 #define HAVE_INET_ATON 1
3480 echo "$ac_t""no" 1>&6
3481 for lib
in resolv socket inet bsd
; do
3482 echo $ac_n "checking for inet_aton in -l$lib""... $ac_c" 1>&6
3483 echo "configure:3484: checking for inet_aton in -l$lib" >&5
3484 ac_lib_var
=`echo $lib'_'inet_aton | sed 'y%./+-%__p_%'`
3485 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3486 echo $ac_n "(cached) $ac_c" 1>&6
3488 ac_save_LIBS
="$LIBS"
3489 LIBS
="-l$lib $NETLIBS $LIBS"
3490 cat > conftest.
$ac_ext <<EOF
3491 #line 3492 "configure"
3492 #include "confdefs.h"
3493 /* Override any gcc2 internal prototype to avoid an error. */
3494 /* We use char because int might match the return type of a gcc2
3495 builtin and then its argument prototype would still apply. */
3502 if { (eval echo configure
:3503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3504 eval "ac_cv_lib_$ac_lib_var=yes"
3506 echo "configure: failed program was:" >&5
3507 cat conftest.
$ac_ext >&5
3509 eval "ac_cv_lib_$ac_lib_var=no"
3512 LIBS
="$ac_save_LIBS"
3515 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3516 echo "$ac_t""yes" 1>&6
3517 cat >> confdefs.h
<<\EOF
3518 #define HAVE_INET_ATON 1
3521 NETLIBS
="$NETLIBS -l$lib"; break
3523 echo "$ac_t""no" 1>&6
3534 # If we find X, set shell vars x_includes and x_libraries to the
3535 # paths, otherwise set no_x=yes.
3536 # Uses ac_ vars as temps to allow command line to override cache and checks.
3537 # --without-x overrides everything else, but does not touch the cache.
3538 echo $ac_n "checking for X""... $ac_c" 1>&6
3539 echo "configure:3540: checking for X" >&5
3541 # Check whether --with-x or --without-x was given.
3542 if test "${with_x+set}" = set; then
3547 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3548 if test "x$with_x" = xno
; then
3549 # The user explicitly disabled X.
3552 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
3553 # Both variables are already set.
3556 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3557 echo $ac_n "(cached) $ac_c" 1>&6
3559 # One or both of the vars are not set, and there is no cached value.
3560 ac_x_includes
=NO ac_x_libraries
=NO
3562 if mkdir conftestdir
; then
3564 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3565 cat > Imakefile
<<'EOF'
3567 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3569 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
3570 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3571 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3572 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3573 for ac_extension
in a so sl
; do
3574 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
3575 test -f $ac_im_libdir/libX11.
$ac_extension; then
3576 ac_im_usrlibdir
=$ac_im_libdir; break
3579 # Screen out bogus values from the imake configuration. They are
3580 # bogus both because they are the default anyway, and because
3581 # using them would break gcc on systems where it needs fixed includes.
3582 case "$ac_im_incroot" in
3584 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
3586 case "$ac_im_usrlibdir" in
3588 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
3595 if test "$ac_x_includes" = NO
; then
3596 # Guess where to find include files, by looking for this one X11 .h file.
3597 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
3599 # First, try using that file with no special directory specified.
3600 cat > conftest.
$ac_ext <<EOF
3601 #line 3602 "configure"
3602 #include "confdefs.h"
3603 #include <$x_direct_test_include>
3605 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3606 { (eval echo configure
:3607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3607 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3608 if test -z "$ac_err"; then
3610 # We can compile using X headers with no special include directory.
3614 echo "configure: failed program was:" >&5
3615 cat conftest.
$ac_ext >&5
3617 # Look for the header file in a standard set of common directories.
3618 # Check X11 before X11Rn because it is often a symlink to the current release.
3621 /usr
/X11R
6/include \
3622 /usr
/X11R
5/include \
3623 /usr
/X11R
4/include \
3626 /usr
/include
/X11R6 \
3627 /usr
/include
/X11R5 \
3628 /usr
/include
/X11R4 \
3630 /usr
/local
/X11
/include \
3631 /usr
/local
/X11R
6/include \
3632 /usr
/local
/X11R
5/include \
3633 /usr
/local
/X11R
4/include \
3635 /usr
/local
/include
/X11 \
3636 /usr
/local
/include
/X11R6 \
3637 /usr
/local
/include
/X11R5 \
3638 /usr
/local
/include
/X11R4 \
3642 /usr
/XFree86
/include
/X11 \
3645 /usr
/local
/include \
3646 /usr
/unsupported
/include \
3647 /usr
/athena
/include \
3648 /usr
/local
/x11r
5/include \
3649 /usr
/lpp
/Xamples
/include \
3651 /usr
/openwin
/include \
3652 /usr
/openwin
/share
/include \
3655 if test -r "$ac_dir/$x_direct_test_include"; then
3656 ac_x_includes
=$ac_dir
3662 fi # $ac_x_includes = NO
3664 if test "$ac_x_libraries" = NO
; then
3665 # Check for the libraries.
3667 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
3668 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
3670 # See if we find them without any special options.
3671 # Don't add to $LIBS permanently.
3672 ac_save_LIBS
="$LIBS"
3673 LIBS
="-l$x_direct_test_library $LIBS"
3674 cat > conftest.
$ac_ext <<EOF
3675 #line 3676 "configure"
3676 #include "confdefs.h"
3679 ${x_direct_test_function}()
3682 if { (eval echo configure
:3683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3684 LIBS
="$ac_save_LIBS"
3685 # We can link X programs with no special library path.
3688 echo "configure: failed program was:" >&5
3689 cat conftest.
$ac_ext >&5
3691 LIBS
="$ac_save_LIBS"
3692 # First see if replacing the include by lib works.
3693 # Check X11 before X11Rn because it is often a symlink to the current release.
3694 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
3705 /usr
/local
/X11
/lib \
3706 /usr
/local
/X11R
6/lib \
3707 /usr
/local
/X11R
5/lib \
3708 /usr
/local
/X11R
4/lib \
3710 /usr
/local
/lib
/X11 \
3711 /usr
/local
/lib
/X11R6 \
3712 /usr
/local
/lib
/X11R5 \
3713 /usr
/local
/lib
/X11R4 \
3717 /usr
/XFree86
/lib
/X11 \
3721 /usr
/unsupported
/lib \
3723 /usr
/local
/x11r
5/lib \
3724 /usr
/lpp
/Xamples
/lib \
3728 /usr
/openwin
/share
/lib \
3731 for ac_extension
in a so sl
; do
3732 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
3733 ac_x_libraries
=$ac_dir
3740 fi # $ac_x_libraries = NO
3742 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
3743 # Didn't find X anywhere. Cache the known absence of X.
3744 ac_cv_have_x
="have_x=no"
3746 # Record where we found X for the cache.
3747 ac_cv_have_x
="have_x=yes \
3748 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3752 eval "$ac_cv_have_x"
3755 if test "$have_x" != yes; then
3756 echo "$ac_t""$have_x" 1>&6
3759 # If each of the values was on the command line, it overrides each guess.
3760 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
3761 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
3762 # Update the cache value to reflect the command line values.
3763 ac_cv_have_x
="have_x=yes \
3764 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3765 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
3768 if test "$no_x" = yes; then
3769 # Not all programs may use this symbol, but it does not hurt to define it.
3770 cat >> confdefs.h
<<\EOF
3771 #define X_DISPLAY_MISSING 1
3774 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
3776 if test -n "$x_includes"; then
3777 X_CFLAGS
="$X_CFLAGS -I$x_includes"
3780 # It would also be nice to do this for all -L options, not just this one.
3781 if test -n "$x_libraries"; then
3782 X_LIBS
="$X_LIBS -L$x_libraries"
3783 # For Solaris; some versions of Sun CC require a space after -R and
3784 # others require no space. Words are not sufficient . . . .
3785 case "`(uname -sr) 2>/dev/null`" in
3787 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
3788 echo "configure:3789: checking whether -R must be followed by a space" >&5
3789 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
3790 cat > conftest.
$ac_ext <<EOF
3791 #line 3792 "configure"
3792 #include "confdefs.h"
3798 if { (eval echo configure
:3799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3802 echo "configure: failed program was:" >&5
3803 cat conftest.
$ac_ext >&5
3808 if test $ac_R_nospace = yes; then
3809 echo "$ac_t""no" 1>&6
3810 X_LIBS
="$X_LIBS -R$x_libraries"
3812 LIBS
="$ac_xsave_LIBS -R $x_libraries"
3813 cat > conftest.
$ac_ext <<EOF
3814 #line 3815 "configure"
3815 #include "confdefs.h"
3821 if { (eval echo configure
:3822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3825 echo "configure: failed program was:" >&5
3826 cat conftest.
$ac_ext >&5
3831 if test $ac_R_space = yes; then
3832 echo "$ac_t""yes" 1>&6
3833 X_LIBS
="$X_LIBS -R $x_libraries"
3835 echo "$ac_t""neither works" 1>&6
3838 LIBS
="$ac_xsave_LIBS"
3842 # Check for system-dependent libraries X programs must link with.
3843 # Do this before checking for the system-independent R6 libraries
3844 # (-lICE), since we may need -lsocket or whatever for X linking.
3846 if test "$ISC" = yes; then
3847 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
3849 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3850 # libraries were built with DECnet support. And karl@cs.umb.edu says
3851 # the Alpha needs dnet_stub (dnet does not exist).
3852 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3853 echo "configure:3854: checking for dnet_ntoa in -ldnet" >&5
3854 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3855 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3856 echo $ac_n "(cached) $ac_c" 1>&6
3858 ac_save_LIBS
="$LIBS"
3860 cat > conftest.
$ac_ext <<EOF
3861 #line 3862 "configure"
3862 #include "confdefs.h"
3863 /* Override any gcc2 internal prototype to avoid an error. */
3864 /* We use char because int might match the return type of a gcc2
3865 builtin and then its argument prototype would still apply. */
3872 if { (eval echo configure
:3873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3874 eval "ac_cv_lib_$ac_lib_var=yes"
3876 echo "configure: failed program was:" >&5
3877 cat conftest.
$ac_ext >&5
3879 eval "ac_cv_lib_$ac_lib_var=no"
3882 LIBS
="$ac_save_LIBS"
3885 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3886 echo "$ac_t""yes" 1>&6
3887 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
3889 echo "$ac_t""no" 1>&6
3892 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
3893 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3894 echo "configure:3895: checking for dnet_ntoa in -ldnet_stub" >&5
3895 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3896 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3897 echo $ac_n "(cached) $ac_c" 1>&6
3899 ac_save_LIBS
="$LIBS"
3900 LIBS
="-ldnet_stub $LIBS"
3901 cat > conftest.
$ac_ext <<EOF
3902 #line 3903 "configure"
3903 #include "confdefs.h"
3904 /* Override any gcc2 internal prototype to avoid an error. */
3905 /* We use char because int might match the return type of a gcc2
3906 builtin and then its argument prototype would still apply. */
3913 if { (eval echo configure
:3914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3915 eval "ac_cv_lib_$ac_lib_var=yes"
3917 echo "configure: failed program was:" >&5
3918 cat conftest.
$ac_ext >&5
3920 eval "ac_cv_lib_$ac_lib_var=no"
3923 LIBS
="$ac_save_LIBS"
3926 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3927 echo "$ac_t""yes" 1>&6
3928 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
3930 echo "$ac_t""no" 1>&6
3935 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3936 # to get the SysV transport functions.
3937 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3939 # The nsl library prevents programs from opening the X display
3940 # on Irix 5.2, according to dickey@clark.net.
3941 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3942 echo "configure:3943: checking for gethostbyname" >&5
3943 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3944 echo $ac_n "(cached) $ac_c" 1>&6
3946 cat > conftest.
$ac_ext <<EOF
3947 #line 3948 "configure"
3948 #include "confdefs.h"
3949 /* System header to define __stub macros and hopefully few prototypes,
3950 which can conflict with char gethostbyname(); below. */
3952 /* Override any gcc2 internal prototype to avoid an error. */
3953 /* We use char because int might match the return type of a gcc2
3954 builtin and then its argument prototype would still apply. */
3955 char gethostbyname();
3959 /* The GNU C library defines this for functions which it implements
3960 to always fail with ENOSYS. Some functions are actually named
3961 something starting with __ and the normal name is an alias. */
3962 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3970 if { (eval echo configure
:3971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3972 eval "ac_cv_func_gethostbyname=yes"
3974 echo "configure: failed program was:" >&5
3975 cat conftest.
$ac_ext >&5
3977 eval "ac_cv_func_gethostbyname=no"
3982 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3983 echo "$ac_t""yes" 1>&6
3986 echo "$ac_t""no" 1>&6
3989 if test $ac_cv_func_gethostbyname = no
; then
3990 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3991 echo "configure:3992: checking for gethostbyname in -lnsl" >&5
3992 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3993 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3994 echo $ac_n "(cached) $ac_c" 1>&6
3996 ac_save_LIBS
="$LIBS"
3998 cat > conftest.
$ac_ext <<EOF
3999 #line 4000 "configure"
4000 #include "confdefs.h"
4001 /* Override any gcc2 internal prototype to avoid an error. */
4002 /* We use char because int might match the return type of a gcc2
4003 builtin and then its argument prototype would still apply. */
4004 char gethostbyname();
4010 if { (eval echo configure
:4011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4012 eval "ac_cv_lib_$ac_lib_var=yes"
4014 echo "configure: failed program was:" >&5
4015 cat conftest.
$ac_ext >&5
4017 eval "ac_cv_lib_$ac_lib_var=no"
4020 LIBS
="$ac_save_LIBS"
4023 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4024 echo "$ac_t""yes" 1>&6
4025 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
4027 echo "$ac_t""no" 1>&6
4032 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4033 # socket/setsockopt and other routines are undefined under SCO ODT
4034 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4035 # on later versions), says simon@lia.di.epfl.ch: it contains
4036 # gethostby* variants that don't use the nameserver (or something).
4037 # -lsocket must be given before -lnsl if both are needed.
4038 # We assume that if connect needs -lnsl, so does gethostbyname.
4039 echo $ac_n "checking for connect""... $ac_c" 1>&6
4040 echo "configure:4041: checking for connect" >&5
4041 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4042 echo $ac_n "(cached) $ac_c" 1>&6
4044 cat > conftest.
$ac_ext <<EOF
4045 #line 4046 "configure"
4046 #include "confdefs.h"
4047 /* System header to define __stub macros and hopefully few prototypes,
4048 which can conflict with char connect(); below. */
4050 /* Override any gcc2 internal prototype to avoid an error. */
4051 /* We use char because int might match the return type of a gcc2
4052 builtin and then its argument prototype would still apply. */
4057 /* The GNU C library defines this for functions which it implements
4058 to always fail with ENOSYS. Some functions are actually named
4059 something starting with __ and the normal name is an alias. */
4060 #if defined (__stub_connect) || defined (__stub___connect)
4068 if { (eval echo configure
:4069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4070 eval "ac_cv_func_connect=yes"
4072 echo "configure: failed program was:" >&5
4073 cat conftest.
$ac_ext >&5
4075 eval "ac_cv_func_connect=no"
4080 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4081 echo "$ac_t""yes" 1>&6
4084 echo "$ac_t""no" 1>&6
4087 if test $ac_cv_func_connect = no
; then
4088 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4089 echo "configure:4090: checking for connect in -lsocket" >&5
4090 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4091 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4092 echo $ac_n "(cached) $ac_c" 1>&6
4094 ac_save_LIBS
="$LIBS"
4095 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
4096 cat > conftest.
$ac_ext <<EOF
4097 #line 4098 "configure"
4098 #include "confdefs.h"
4099 /* Override any gcc2 internal prototype to avoid an error. */
4100 /* We use char because int might match the return type of a gcc2
4101 builtin and then its argument prototype would still apply. */
4108 if { (eval echo configure
:4109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4110 eval "ac_cv_lib_$ac_lib_var=yes"
4112 echo "configure: failed program was:" >&5
4113 cat conftest.
$ac_ext >&5
4115 eval "ac_cv_lib_$ac_lib_var=no"
4118 LIBS
="$ac_save_LIBS"
4121 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4122 echo "$ac_t""yes" 1>&6
4123 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
4125 echo "$ac_t""no" 1>&6
4130 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
4131 echo $ac_n "checking for remove""... $ac_c" 1>&6
4132 echo "configure:4133: checking for remove" >&5
4133 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
4134 echo $ac_n "(cached) $ac_c" 1>&6
4136 cat > conftest.
$ac_ext <<EOF
4137 #line 4138 "configure"
4138 #include "confdefs.h"
4139 /* System header to define __stub macros and hopefully few prototypes,
4140 which can conflict with char remove(); below. */
4142 /* Override any gcc2 internal prototype to avoid an error. */
4143 /* We use char because int might match the return type of a gcc2
4144 builtin and then its argument prototype would still apply. */
4149 /* The GNU C library defines this for functions which it implements
4150 to always fail with ENOSYS. Some functions are actually named
4151 something starting with __ and the normal name is an alias. */
4152 #if defined (__stub_remove) || defined (__stub___remove)
4160 if { (eval echo configure
:4161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4162 eval "ac_cv_func_remove=yes"
4164 echo "configure: failed program was:" >&5
4165 cat conftest.
$ac_ext >&5
4167 eval "ac_cv_func_remove=no"
4172 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
4173 echo "$ac_t""yes" 1>&6
4176 echo "$ac_t""no" 1>&6
4179 if test $ac_cv_func_remove = no
; then
4180 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
4181 echo "configure:4182: checking for remove in -lposix" >&5
4182 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
4183 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4184 echo $ac_n "(cached) $ac_c" 1>&6
4186 ac_save_LIBS
="$LIBS"
4187 LIBS
="-lposix $LIBS"
4188 cat > conftest.
$ac_ext <<EOF
4189 #line 4190 "configure"
4190 #include "confdefs.h"
4191 /* Override any gcc2 internal prototype to avoid an error. */
4192 /* We use char because int might match the return type of a gcc2
4193 builtin and then its argument prototype would still apply. */
4200 if { (eval echo configure
:4201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4202 eval "ac_cv_lib_$ac_lib_var=yes"
4204 echo "configure: failed program was:" >&5
4205 cat conftest.
$ac_ext >&5
4207 eval "ac_cv_lib_$ac_lib_var=no"
4210 LIBS
="$ac_save_LIBS"
4213 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4214 echo "$ac_t""yes" 1>&6
4215 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
4217 echo "$ac_t""no" 1>&6
4222 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4223 echo $ac_n "checking for shmat""... $ac_c" 1>&6
4224 echo "configure:4225: checking for shmat" >&5
4225 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
4226 echo $ac_n "(cached) $ac_c" 1>&6
4228 cat > conftest.
$ac_ext <<EOF
4229 #line 4230 "configure"
4230 #include "confdefs.h"
4231 /* System header to define __stub macros and hopefully few prototypes,
4232 which can conflict with char shmat(); below. */
4234 /* Override any gcc2 internal prototype to avoid an error. */
4235 /* We use char because int might match the return type of a gcc2
4236 builtin and then its argument prototype would still apply. */
4241 /* The GNU C library defines this for functions which it implements
4242 to always fail with ENOSYS. Some functions are actually named
4243 something starting with __ and the normal name is an alias. */
4244 #if defined (__stub_shmat) || defined (__stub___shmat)
4252 if { (eval echo configure
:4253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4254 eval "ac_cv_func_shmat=yes"
4256 echo "configure: failed program was:" >&5
4257 cat conftest.
$ac_ext >&5
4259 eval "ac_cv_func_shmat=no"
4264 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
4265 echo "$ac_t""yes" 1>&6
4268 echo "$ac_t""no" 1>&6
4271 if test $ac_cv_func_shmat = no
; then
4272 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4273 echo "configure:4274: checking for shmat in -lipc" >&5
4274 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4275 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4276 echo $ac_n "(cached) $ac_c" 1>&6
4278 ac_save_LIBS
="$LIBS"
4280 cat > conftest.
$ac_ext <<EOF
4281 #line 4282 "configure"
4282 #include "confdefs.h"
4283 /* Override any gcc2 internal prototype to avoid an error. */
4284 /* We use char because int might match the return type of a gcc2
4285 builtin and then its argument prototype would still apply. */
4292 if { (eval echo configure
:4293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4294 eval "ac_cv_lib_$ac_lib_var=yes"
4296 echo "configure: failed program was:" >&5
4297 cat conftest.
$ac_ext >&5
4299 eval "ac_cv_lib_$ac_lib_var=no"
4302 LIBS
="$ac_save_LIBS"
4305 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4306 echo "$ac_t""yes" 1>&6
4307 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
4309 echo "$ac_t""no" 1>&6
4315 # Check for libraries that X11R6 Xt/Xaw programs need.
4316 ac_save_LDFLAGS
="$LDFLAGS"
4317 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
4318 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4319 # check for ICE first), but we must link in the order -lSM -lICE or
4320 # we get undefined symbols. So assume we have SM if we have ICE.
4321 # These have to be linked with before -lX11, unlike the other
4322 # libraries we check for below, so use a different variable.
4323 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4324 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4325 echo "configure:4326: checking for IceConnectionNumber in -lICE" >&5
4326 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4327 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4328 echo $ac_n "(cached) $ac_c" 1>&6
4330 ac_save_LIBS
="$LIBS"
4331 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
4332 cat > conftest.
$ac_ext <<EOF
4333 #line 4334 "configure"
4334 #include "confdefs.h"
4335 /* Override any gcc2 internal prototype to avoid an error. */
4336 /* We use char because int might match the return type of a gcc2
4337 builtin and then its argument prototype would still apply. */
4338 char IceConnectionNumber();
4341 IceConnectionNumber()
4344 if { (eval echo configure
:4345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4346 eval "ac_cv_lib_$ac_lib_var=yes"
4348 echo "configure: failed program was:" >&5
4349 cat conftest.
$ac_ext >&5
4351 eval "ac_cv_lib_$ac_lib_var=no"
4354 LIBS
="$ac_save_LIBS"
4357 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4358 echo "$ac_t""yes" 1>&6
4359 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
4361 echo "$ac_t""no" 1>&6
4364 LDFLAGS
="$ac_save_LDFLAGS"
4370 { echo "configure: error: The path for the X11 files not found!
4371 Make sure you have X and it's headers and libraries (the -devel packages
4372 in Linux) installed." 1>&2; exit 1; }
4375 X_LIBRARY_PATH
=$x_libraries
4381 XLIBS
="-lX11 $X_EXTRA_LIBS"
4384 lib_search_path
="$lib_search_path $XLFLAGS"
4385 inc_search_path
="$inc_search_path $XCFLAGS"
4393 # Check whether --enable-locale or --disable-locale was given.
4394 if test "${enable_locale+set}" = set; then
4395 enableval
="$enable_locale"
4400 if test "$use_locale" = yes; then
4401 echo $ac_n "checking for _Xsetlocale in -lX11""... $ac_c" 1>&6
4402 echo "configure:4403: checking for _Xsetlocale in -lX11" >&5
4403 ac_lib_var
=`echo X11'_'_Xsetlocale | sed 'y%./+-%__p_%'`
4404 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4405 echo $ac_n "(cached) $ac_c" 1>&6
4407 ac_save_LIBS
="$LIBS"
4408 LIBS
="-lX11 $XLFLAGS $XLIBS $LIBS"
4409 cat > conftest.
$ac_ext <<EOF
4410 #line 4411 "configure"
4411 #include "confdefs.h"
4412 /* Override any gcc2 internal prototype to avoid an error. */
4413 /* We use char because int might match the return type of a gcc2
4414 builtin and then its argument prototype would still apply. */
4421 if { (eval echo configure
:4422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4423 eval "ac_cv_lib_$ac_lib_var=yes"
4425 echo "configure: failed program was:" >&5
4426 cat conftest.
$ac_ext >&5
4428 eval "ac_cv_lib_$ac_lib_var=no"
4431 LIBS
="$ac_save_LIBS"
4434 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4435 echo "$ac_t""yes" 1>&6
4436 cat >> confdefs.h
<<\EOF
4441 echo "$ac_t""no" 1>&6
4447 # Check whether --enable-modelock or --disable-modelock was given.
4448 if test "${enable_modelock+set}" = set; then
4449 enableval
="$enable_modelock"
4450 cat >> confdefs.h
<<\EOF
4451 #define XKB_MODELOCK 1
4460 # Check whether --enable-shape or --disable-shape was given.
4461 if test "${enable_shape+set}" = set; then
4462 enableval
="$enable_shape"
4471 if test "$shape" = yes; then
4472 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
4473 echo "configure:4474: checking for XShapeSelectInput in -lXext" >&5
4474 ac_lib_var
=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
4475 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4476 echo $ac_n "(cached) $ac_c" 1>&6
4478 ac_save_LIBS
="$LIBS"
4479 LIBS
="-lXext $XLFLAGS $XLIBS $LIBS"
4480 cat > conftest.
$ac_ext <<EOF
4481 #line 4482 "configure"
4482 #include "confdefs.h"
4483 /* Override any gcc2 internal prototype to avoid an error. */
4484 /* We use char because int might match the return type of a gcc2
4485 builtin and then its argument prototype would still apply. */
4486 char XShapeSelectInput();
4492 if { (eval echo configure
:4493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4494 eval "ac_cv_lib_$ac_lib_var=yes"
4496 echo "configure: failed program was:" >&5
4497 cat conftest.
$ac_ext >&5
4499 eval "ac_cv_lib_$ac_lib_var=no"
4502 LIBS
="$ac_save_LIBS"
4505 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4506 echo "$ac_t""yes" 1>&6
4507 XLIBS
="-lXext $XLIBS"
4509 cat >> confdefs.h
<<\EOF
4514 echo "$ac_t""no" 1>&6
4523 # Check whether --enable-xinerama or --disable-xinerama was given.
4524 if test "${enable_xinerama+set}" = set; then
4525 enableval
="$enable_xinerama"
4532 if test "$xinerama" = yes; then
4533 echo $ac_n "checking for X in -lXext""... $ac_c" 1>&6
4534 echo "configure:4535: checking for X in -lXext" >&5
4535 ac_lib_var
=`echo Xext'_'X | sed 'y%./+-%__p_%'`
4536 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4537 echo $ac_n "(cached) $ac_c" 1>&6
4539 ac_save_LIBS
="$LIBS"
4540 LIBS
="-lXext $XLFLAGS $XLIBS $LIBS"
4541 cat > conftest.
$ac_ext <<EOF
4542 #line 4543 "configure"
4543 #include "confdefs.h"
4544 /* Override any gcc2 internal prototype to avoid an error. */
4545 /* We use char because int might match the return type of a gcc2
4546 builtin and then its argument prototype would still apply. */
4553 if { (eval echo configure
:4554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4555 eval "ac_cv_lib_$ac_lib_var=yes"
4557 echo "configure: failed program was:" >&5
4558 cat conftest.
$ac_ext >&5
4560 eval "ac_cv_lib_$ac_lib_var=no"
4563 LIBS
="$ac_save_LIBS"
4566 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4567 echo "$ac_t""yes" 1>&6
4568 XLIBS
="-lXext $XLIBS"
4570 cat >> confdefs.h
<<\EOF
4575 echo "$ac_t""no" 1>&6
4584 # Check whether --enable-shm or --disable-shm was given.
4585 if test "${enable_shm+set}" = set; then
4586 enableval
="$enable_shm"
4593 if test "$shm" = yes; then
4594 echo $ac_n "checking for XShmAttach in -lXext""... $ac_c" 1>&6
4595 echo "configure:4596: checking for XShmAttach in -lXext" >&5
4596 ac_lib_var
=`echo Xext'_'XShmAttach | sed 'y%./+-%__p_%'`
4597 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4598 echo $ac_n "(cached) $ac_c" 1>&6
4600 ac_save_LIBS
="$LIBS"
4601 LIBS
="-lXext $XLFLAGS $XLIBS $LIBS"
4602 cat > conftest.
$ac_ext <<EOF
4603 #line 4604 "configure"
4604 #include "confdefs.h"
4605 /* Override any gcc2 internal prototype to avoid an error. */
4606 /* We use char because int might match the return type of a gcc2
4607 builtin and then its argument prototype would still apply. */
4614 if { (eval echo configure
:4615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4616 eval "ac_cv_lib_$ac_lib_var=yes"
4618 echo "configure: failed program was:" >&5
4619 cat conftest.
$ac_ext >&5
4621 eval "ac_cv_lib_$ac_lib_var=no"
4624 LIBS
="$ac_save_LIBS"
4627 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4628 echo "$ac_t""yes" 1>&6
4631 echo "$ac_t""no" 1>&6
4636 if test "$ok" = yes; then
4637 echo $ac_n "checking for shmget""... $ac_c" 1>&6
4638 echo "configure:4639: checking for shmget" >&5
4639 if eval "test \"`echo '$''{'ac_cv_func_shmget'+set}'`\" = set"; then
4640 echo $ac_n "(cached) $ac_c" 1>&6
4642 cat > conftest.
$ac_ext <<EOF
4643 #line 4644 "configure"
4644 #include "confdefs.h"
4645 /* System header to define __stub macros and hopefully few prototypes,
4646 which can conflict with char shmget(); below. */
4648 /* Override any gcc2 internal prototype to avoid an error. */
4649 /* We use char because int might match the return type of a gcc2
4650 builtin and then its argument prototype would still apply. */
4655 /* The GNU C library defines this for functions which it implements
4656 to always fail with ENOSYS. Some functions are actually named
4657 something starting with __ and the normal name is an alias. */
4658 #if defined (__stub_shmget) || defined (__stub___shmget)
4666 if { (eval echo configure
:4667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4668 eval "ac_cv_func_shmget=yes"
4670 echo "configure: failed program was:" >&5
4671 cat conftest.
$ac_ext >&5
4673 eval "ac_cv_func_shmget=no"
4678 if eval "test \"`echo '$ac_cv_func_'shmget`\" = yes"; then
4679 echo "$ac_t""yes" 1>&6
4682 echo "$ac_t""no" 1>&6
4688 if test "$ok" = yes; then
4689 if test "$added_xext" = no
; then
4690 XLIBS
="-lXext $XLIBS"
4692 cat >> confdefs.h
<<\EOF
4712 LDFLAGS_old
="$LDFLAGS"
4713 LDFLAGS
="$LDFLAGS $lib_search_path"
4714 echo $ac_n "checking for PLGetString in -lPropList""... $ac_c" 1>&6
4715 echo "configure:4716: checking for PLGetString in -lPropList" >&5
4716 ac_lib_var
=`echo PropList'_'PLGetString | sed 'y%./+-%__p_%'`
4717 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4718 echo $ac_n "(cached) $ac_c" 1>&6
4720 ac_save_LIBS
="$LIBS"
4721 LIBS
="-lPropList $X_EXTRA_LIBS $LIBS"
4722 cat > conftest.
$ac_ext <<EOF
4723 #line 4724 "configure"
4724 #include "confdefs.h"
4725 /* Override any gcc2 internal prototype to avoid an error. */
4726 /* We use char because int might match the return type of a gcc2
4727 builtin and then its argument prototype would still apply. */
4734 if { (eval echo configure
:4735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4736 eval "ac_cv_lib_$ac_lib_var=yes"
4738 echo "configure: failed program was:" >&5
4739 cat conftest.
$ac_ext >&5
4741 eval "ac_cv_lib_$ac_lib_var=no"
4744 LIBS
="$ac_save_LIBS"
4747 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4748 echo "$ac_t""yes" 1>&6
4751 echo "$ac_t""no" 1>&6
4755 LDFLAGS
="$LDFLAGS_old"
4757 if test "x$ac_cv_lib_PropList_PLGetString" = xyes
; then
4759 CPPFLAGS_old
="$CPPFLAGS"
4760 CPPFLAGS
="$CPPFLAGS $inc_search_path"
4761 ac_safe
=`echo "proplist.h" | sed 'y%./+-%__p_%'`
4762 echo $ac_n "checking for proplist.h""... $ac_c" 1>&6
4763 echo "configure:4764: checking for proplist.h" >&5
4764 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4765 echo $ac_n "(cached) $ac_c" 1>&6
4767 cat > conftest.
$ac_ext <<EOF
4768 #line 4769 "configure"
4769 #include "confdefs.h"
4770 #include <proplist.h>
4772 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4773 { (eval echo configure
:4774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4774 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4775 if test -z "$ac_err"; then
4777 eval "ac_cv_header_$ac_safe=yes"
4780 echo "configure: failed program was:" >&5
4781 cat conftest.
$ac_ext >&5
4783 eval "ac_cv_header_$ac_safe=no"
4787 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4788 echo "$ac_t""yes" 1>&6
4791 echo "$ac_t""no" 1>&6
4794 CPPFLAGS
="$CPPFLAGS_old"
4796 if test "x$ac_cv_header_proplist_h" = xyes
; then
4801 if test "x$LIBPL" = "x"; then
4803 echo "ERROR!!! libPropList is not installed, or could not be found."
4804 echo " Window Maker requires libPropList to build."
4805 echo " Please read INSTALL to find where you can find libPropList,"
4806 echo " and install it first."
4807 if test x
$host_os = xlinux
; then
4808 echo " If you're using some prepackaged version of libPropList,"
4809 echo " make sure you install it's \"development\" package as well."
4811 echo " If you already have it installed, try using the"
4812 if test "x$ac_cv_lib_PropList_PLGetString" != xyes
; then
4813 echo " --with-libs-from flag to tell configure where the library"
4814 echo " is installed and"
4816 echo " --with-incs-from flag to tell configure where the header"
4817 echo " files are installed"
4822 CPPFLAGS_old
="$CPPFLAGS"
4823 CPPFLAGS
="$CPPFLAGS $inc_search_path"
4824 lPL_major_version
=`echo 0.9.5 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
4825 lPL_minor_version
=`echo 0.9.5 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
4826 lPL_micro_version
=`echo 0.9.5 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
4827 echo $ac_n "checking whether libPropList is newer than 0.9.5""... $ac_c" 1>&6
4828 echo "configure:4829: checking whether libPropList is newer than 0.9.5" >&5
4829 if eval "test \"`echo '$''{'ac_cv_lib_proplist_version_ok'+set}'`\" = set"; then
4830 echo $ac_n "(cached) $ac_c" 1>&6
4832 cat > conftest.
$ac_ext <<EOF
4833 #line 4834 "configure"
4834 #include "confdefs.h"
4835 /* Test version of libPropList we have */
4836 #include <proplist.h>
4838 #if !defined(PROPLIST_VERSION) || PROPLIST_VERSION < $lPL_major_version*10000 + $lPL_minor_version*100 + $lPL_micro_version
4839 #error libPropList on this system is too old. Consider upgrading to at least 0.9.5
4846 if { (eval echo configure
:4847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4848 eval "ac_cv_lib_proplist_version_ok=yes"
4850 echo "configure: failed program was:" >&5
4851 cat conftest.
$ac_ext >&5
4853 eval "ac_cv_lib_proplist_version_ok=no"
4858 if eval "test \"`echo '$ac_cv_lib_proplist_version_ok'`\" = yes"; then
4859 echo "$ac_t""yes" 1>&6
4862 echo "$ac_t""no" 1>&6
4865 CPPFLAGS
="$CPPFLAGS_old"
4868 if test "$goodlPL" = no
; then
4870 echo "ERROR!!! libPropList is an old version. Please consider upgrading"
4871 echo " to at least version 0.9.5. Older versions have bugs that"
4872 echo " may cause Window Maker to crash randomly."
4873 echo " If your libPropList is older than 0.9.2 it will also prevent"
4874 echo " Window Maker from compiling because new functions were"
4875 echo " introduced since that version."
4876 echo " Please read INSTALL to find where you can find libPropList,"
4877 echo " and upgrade it before you proceed."
4890 # Check whether --enable-xpm or --disable-xpm was given.
4891 if test "${enable_xpm+set}" = set; then
4892 enableval
="$enable_xpm"
4899 if test "$xpm" = yes; then
4901 LDFLAGS_old
="$LDFLAGS"
4902 LDFLAGS
="$LDFLAGS $lib_search_path"
4903 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
4904 echo "configure:4905: checking for XpmCreatePixmapFromData in -lXpm" >&5
4905 ac_lib_var
=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
4906 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4907 echo $ac_n "(cached) $ac_c" 1>&6
4909 ac_save_LIBS
="$LIBS"
4910 LIBS
="-lXpm $XLFLAGS $XLIBS $LIBS"
4911 cat > conftest.
$ac_ext <<EOF
4912 #line 4913 "configure"
4913 #include "confdefs.h"
4914 /* Override any gcc2 internal prototype to avoid an error. */
4915 /* We use char because int might match the return type of a gcc2
4916 builtin and then its argument prototype would still apply. */
4917 char XpmCreatePixmapFromData();
4920 XpmCreatePixmapFromData()
4923 if { (eval echo configure
:4924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4925 eval "ac_cv_lib_$ac_lib_var=yes"
4927 echo "configure: failed program was:" >&5
4928 cat conftest.
$ac_ext >&5
4930 eval "ac_cv_lib_$ac_lib_var=no"
4933 LIBS
="$ac_save_LIBS"
4936 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4937 echo "$ac_t""yes" 1>&6
4940 echo "$ac_t""no" 1>&6
4944 LDFLAGS
="$LDFLAGS_old"
4947 if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes
; then
4949 CPPFLAGS_old
="$CPPFLAGS"
4950 CPPFLAGS
="$CPPFLAGS $inc_search_path"
4951 ac_safe
=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
4952 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
4953 echo "configure:4954: checking for X11/xpm.h" >&5
4954 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4955 echo $ac_n "(cached) $ac_c" 1>&6
4957 cat > conftest.
$ac_ext <<EOF
4958 #line 4959 "configure"
4959 #include "confdefs.h"
4960 #include <X11/xpm.h>
4962 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4963 { (eval echo configure
:4964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4964 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4965 if test -z "$ac_err"; then
4967 eval "ac_cv_header_$ac_safe=yes"
4970 echo "configure: failed program was:" >&5
4971 cat conftest.
$ac_ext >&5
4973 eval "ac_cv_header_$ac_safe=no"
4977 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4978 echo "$ac_t""yes" 1>&6
4981 echo "$ac_t""no" 1>&6
4984 CPPFLAGS
="$CPPFLAGS_old"
4986 if test "x$ac_cv_header_X11_xpm_h" = xyes
; then
4987 GFXLIBS
="$GFXLIBS -lXpm"
4989 cat >> confdefs.h
<<\EOF
4994 supported_gfx
="builtin-XPM"
5010 # Check whether --enable-png or --disable-png was given.
5011 if test "${enable_png+set}" = set; then
5012 enableval
="$enable_png"
5020 if test "$png" = yes ; then
5022 LDFLAGS_old
="$LDFLAGS"
5023 LDFLAGS
="$LDFLAGS $lib_search_path"
5024 echo $ac_n "checking for png_get_valid in -lpng""... $ac_c" 1>&6
5025 echo "configure:5026: checking for png_get_valid in -lpng" >&5
5026 ac_lib_var
=`echo png'_'png_get_valid | sed 'y%./+-%__p_%'`
5027 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5028 echo $ac_n "(cached) $ac_c" 1>&6
5030 ac_save_LIBS
="$LIBS"
5031 LIBS
="-lpng -lz -lm $LIBS"
5032 cat > conftest.
$ac_ext <<EOF
5033 #line 5034 "configure"
5034 #include "confdefs.h"
5035 /* Override any gcc2 internal prototype to avoid an error. */
5036 /* We use char because int might match the return type of a gcc2
5037 builtin and then its argument prototype would still apply. */
5038 char png_get_valid();
5044 if { (eval echo configure
:5045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5046 eval "ac_cv_lib_$ac_lib_var=yes"
5048 echo "configure: failed program was:" >&5
5049 cat conftest.
$ac_ext >&5
5051 eval "ac_cv_lib_$ac_lib_var=no"
5054 LIBS
="$ac_save_LIBS"
5057 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5058 echo "$ac_t""yes" 1>&6
5061 echo "$ac_t""no" 1>&6
5065 LDFLAGS
="$LDFLAGS_old"
5068 if test "x$ac_cv_lib_png_png_get_valid" = xyes
; then
5070 CPPFLAGS_old
="$CPPFLAGS"
5071 CPPFLAGS
="$CPPFLAGS $inc_search_path"
5072 ac_safe
=`echo "png.h" | sed 'y%./+-%__p_%'`
5073 echo $ac_n "checking for png.h""... $ac_c" 1>&6
5074 echo "configure:5075: checking for png.h" >&5
5075 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5076 echo $ac_n "(cached) $ac_c" 1>&6
5078 cat > conftest.
$ac_ext <<EOF
5079 #line 5080 "configure"
5080 #include "confdefs.h"
5083 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5084 { (eval echo configure
:5085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5085 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5086 if test -z "$ac_err"; then
5088 eval "ac_cv_header_$ac_safe=yes"
5091 echo "configure: failed program was:" >&5
5092 cat conftest.
$ac_ext >&5
5094 eval "ac_cv_header_$ac_safe=no"
5098 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5099 echo "$ac_t""yes" 1>&6
5102 echo "$ac_t""no" 1>&6
5105 CPPFLAGS
="$CPPFLAGS_old"
5107 if test "x$ac_cv_header_png_h" = xyes
; then
5108 GFXLIBS
="$GFXLIBS -lpng -lz"
5109 supported_gfx
="$supported_gfx PNG"
5110 cat >> confdefs.h
<<\EOF
5121 # Check whether --enable-jpeg or --disable-jpeg was given.
5122 if test "${enable_jpeg+set}" = set; then
5123 enableval
="$enable_jpeg"
5130 if test "$jpeg" = yes; then
5132 LDFLAGS_old
="$LDFLAGS"
5133 LDFLAGS
="$LDFLAGS $lib_search_path"
5134 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
5135 echo "configure:5136: checking for jpeg_destroy_compress in -ljpeg" >&5
5136 ac_lib_var
=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
5137 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5138 echo $ac_n "(cached) $ac_c" 1>&6
5140 ac_save_LIBS
="$LIBS"
5142 cat > conftest.
$ac_ext <<EOF
5143 #line 5144 "configure"
5144 #include "confdefs.h"
5145 /* Override any gcc2 internal prototype to avoid an error. */
5146 /* We use char because int might match the return type of a gcc2
5147 builtin and then its argument prototype would still apply. */
5148 char jpeg_destroy_compress();
5151 jpeg_destroy_compress()
5154 if { (eval echo configure
:5155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5156 eval "ac_cv_lib_$ac_lib_var=yes"
5158 echo "configure: failed program was:" >&5
5159 cat conftest.
$ac_ext >&5
5161 eval "ac_cv_lib_$ac_lib_var=no"
5164 LIBS
="$ac_save_LIBS"
5167 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5168 echo "$ac_t""yes" 1>&6
5171 echo "$ac_t""no" 1>&6
5175 LDFLAGS
="$LDFLAGS_old"
5178 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes
; then
5183 CPPFLAGS_old
="$CPPFLAGS"
5184 CPPFLAGS
="$CPPFLAGS $inc_search_path"
5185 ac_safe
=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
5186 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
5187 echo "configure:5188: checking for jpeglib.h" >&5
5188 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5189 echo $ac_n "(cached) $ac_c" 1>&6
5191 cat > conftest.
$ac_ext <<EOF
5192 #line 5193 "configure"
5193 #include "confdefs.h"
5194 #include <jpeglib.h>
5196 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5197 { (eval echo configure
:5198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5198 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5199 if test -z "$ac_err"; then
5201 eval "ac_cv_header_$ac_safe=yes"
5204 echo "configure: failed program was:" >&5
5205 cat conftest.
$ac_ext >&5
5207 eval "ac_cv_header_$ac_safe=no"
5211 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5212 echo "$ac_t""yes" 1>&6
5215 echo "$ac_t""no" 1>&6
5218 CPPFLAGS
="$CPPFLAGS_old"
5220 if test "x$ac_cv_header_jpeglib_h" = xyes
; then
5221 GFXLIBS
="$GFXLIBS -ljpeg"
5222 supported_gfx
="$supported_gfx JPEG"
5223 cat >> confdefs.h
<<\EOF
5233 # Check whether --enable-gif or --disable-gif was given.
5234 if test "${enable_gif+set}" = set; then
5235 enableval
="$enable_gif"
5242 if test "$gif" = yes; then
5245 LDFLAGS_old
="$LDFLAGS"
5246 LDFLAGS
="$LDFLAGS $lib_search_path"
5247 echo $ac_n "checking for DGifOpenFileName in -lungif""... $ac_c" 1>&6
5248 echo "configure:5249: checking for DGifOpenFileName in -lungif" >&5
5249 ac_lib_var
=`echo ungif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
5250 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5251 echo $ac_n "(cached) $ac_c" 1>&6
5253 ac_save_LIBS
="$LIBS"
5254 LIBS
="-lungif $XLFLAGS $XLIBS $LIBS"
5255 cat > conftest.
$ac_ext <<EOF
5256 #line 5257 "configure"
5257 #include "confdefs.h"
5258 /* Override any gcc2 internal prototype to avoid an error. */
5259 /* We use char because int might match the return type of a gcc2
5260 builtin and then its argument prototype would still apply. */
5261 char DGifOpenFileName();
5267 if { (eval echo configure
:5268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5269 eval "ac_cv_lib_$ac_lib_var=yes"
5271 echo "configure: failed program was:" >&5
5272 cat conftest.
$ac_ext >&5
5274 eval "ac_cv_lib_$ac_lib_var=no"
5277 LIBS
="$ac_save_LIBS"
5280 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5281 echo "$ac_t""yes" 1>&6
5284 echo "$ac_t""no" 1>&6
5288 LDFLAGS
="$LDFLAGS_old"
5290 if test "x$ac_cv_lib_ungif_DGifOpenFileName" = xyes
; then
5293 if test "x$my_libname" = x
; then
5295 LDFLAGS_old
="$LDFLAGS"
5296 LDFLAGS
="$LDFLAGS $lib_search_path"
5297 echo $ac_n "checking for DGifOpenFileName in -lgif""... $ac_c" 1>&6
5298 echo "configure:5299: checking for DGifOpenFileName in -lgif" >&5
5299 ac_lib_var
=`echo gif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
5300 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5301 echo $ac_n "(cached) $ac_c" 1>&6
5303 ac_save_LIBS
="$LIBS"
5304 LIBS
="-lgif $XLFLAGS $XLIBS $LIBS"
5305 cat > conftest.
$ac_ext <<EOF
5306 #line 5307 "configure"
5307 #include "confdefs.h"
5308 /* Override any gcc2 internal prototype to avoid an error. */
5309 /* We use char because int might match the return type of a gcc2
5310 builtin and then its argument prototype would still apply. */
5311 char DGifOpenFileName();
5317 if { (eval echo configure
:5318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5319 eval "ac_cv_lib_$ac_lib_var=yes"
5321 echo "configure: failed program was:" >&5
5322 cat conftest.
$ac_ext >&5
5324 eval "ac_cv_lib_$ac_lib_var=no"
5327 LIBS
="$ac_save_LIBS"
5330 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5331 echo "$ac_t""yes" 1>&6
5334 echo "$ac_t""no" 1>&6
5338 LDFLAGS
="$LDFLAGS_old"
5340 if test "x$ac_cv_lib_gif_DGifOpenFileName" = xyes
; then
5345 if test "$my_libname" != x
; then
5347 CPPFLAGS_old
="$CPPFLAGS"
5348 CPPFLAGS
="$CPPFLAGS $inc_search_path"
5349 ac_safe
=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
5350 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
5351 echo "configure:5352: checking for gif_lib.h" >&5
5352 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5353 echo $ac_n "(cached) $ac_c" 1>&6
5355 cat > conftest.
$ac_ext <<EOF
5356 #line 5357 "configure"
5357 #include "confdefs.h"
5358 #include <gif_lib.h>
5360 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5361 { (eval echo configure
:5362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5362 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5363 if test -z "$ac_err"; then
5365 eval "ac_cv_header_$ac_safe=yes"
5368 echo "configure: failed program was:" >&5
5369 cat conftest.
$ac_ext >&5
5371 eval "ac_cv_header_$ac_safe=no"
5375 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5376 echo "$ac_t""yes" 1>&6
5379 echo "$ac_t""no" 1>&6
5382 CPPFLAGS
="$CPPFLAGS_old"
5384 if test "x$ac_cv_header_gif_lib_h" = xyes
; then
5385 GFXLIBS
="$GFXLIBS $my_libname"
5386 supported_gfx
="$supported_gfx GIF"
5387 cat >> confdefs.h
<<\EOF
5397 # Check whether --enable-tiff or --disable-tiff was given.
5398 if test "${enable_tiff+set}" = set; then
5399 enableval
="$enable_tiff"
5407 # TIFF can optionally have JPEG and/or zlib support. Must find out
5408 # when they are supported so that correct library flags are passed during
5409 # detection and linkage
5412 # By default use xpm icons if tiff is not found.
5416 if test "$tif" = yes; then
5419 LDFLAGS_old
="$LDFLAGS"
5420 LDFLAGS
="$LDFLAGS $lib_search_path"
5421 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
5422 echo "configure:5423: checking for TIFFGetVersion in -ltiff" >&5
5423 ac_lib_var
=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
5424 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5425 echo $ac_n "(cached) $ac_c" 1>&6
5427 ac_save_LIBS
="$LIBS"
5428 LIBS
="-ltiff -lm $LIBS"
5429 cat > conftest.
$ac_ext <<EOF
5430 #line 5431 "configure"
5431 #include "confdefs.h"
5432 /* Override any gcc2 internal prototype to avoid an error. */
5433 /* We use char because int might match the return type of a gcc2
5434 builtin and then its argument prototype would still apply. */
5435 char TIFFGetVersion();
5441 if { (eval echo configure
:5442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5443 eval "ac_cv_lib_$ac_lib_var=yes"
5445 echo "configure: failed program was:" >&5
5446 cat conftest.
$ac_ext >&5
5448 eval "ac_cv_lib_$ac_lib_var=no"
5451 LIBS
="$ac_save_LIBS"
5454 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5455 echo "$ac_t""yes" 1>&6
5458 echo "$ac_t""no" 1>&6
5462 LDFLAGS
="$LDFLAGS_old"
5464 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes
; then
5467 unset ac_cv_lib_tiff_TIFFGetVersion
5468 if test "x$my_libname" = x
; then
5470 LDFLAGS_old
="$LDFLAGS"
5471 LDFLAGS
="$LDFLAGS $lib_search_path"
5472 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
5473 echo "configure:5474: checking for TIFFGetVersion in -ltiff" >&5
5474 ac_lib_var
=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
5475 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5476 echo $ac_n "(cached) $ac_c" 1>&6
5478 ac_save_LIBS
="$LIBS"
5479 LIBS
="-ltiff $ljpeg -lz -lm $LIBS"
5480 cat > conftest.
$ac_ext <<EOF
5481 #line 5482 "configure"
5482 #include "confdefs.h"
5483 /* Override any gcc2 internal prototype to avoid an error. */
5484 /* We use char because int might match the return type of a gcc2
5485 builtin and then its argument prototype would still apply. */
5486 char TIFFGetVersion();
5492 if { (eval echo configure
:5493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5494 eval "ac_cv_lib_$ac_lib_var=yes"
5496 echo "configure: failed program was:" >&5
5497 cat conftest.
$ac_ext >&5
5499 eval "ac_cv_lib_$ac_lib_var=no"
5502 LIBS
="$ac_save_LIBS"
5505 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5506 echo "$ac_t""yes" 1>&6
5509 echo "$ac_t""no" 1>&6
5513 LDFLAGS
="$LDFLAGS_old"
5515 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes
; then
5516 my_libname
="-ltiff -lz"
5520 if test "x$my_libname" = x
; then
5522 LDFLAGS_old
="$LDFLAGS"
5523 LDFLAGS
="$LDFLAGS $lib_search_path"
5524 echo $ac_n "checking for TIFFGetVersion in -ltiff34""... $ac_c" 1>&6
5525 echo "configure:5526: checking for TIFFGetVersion in -ltiff34" >&5
5526 ac_lib_var
=`echo tiff34'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
5527 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5528 echo $ac_n "(cached) $ac_c" 1>&6
5530 ac_save_LIBS
="$LIBS"
5531 LIBS
="-ltiff34 $ljpeg -lm $LIBS"
5532 cat > conftest.
$ac_ext <<EOF
5533 #line 5534 "configure"
5534 #include "confdefs.h"
5535 /* Override any gcc2 internal prototype to avoid an error. */
5536 /* We use char because int might match the return type of a gcc2
5537 builtin and then its argument prototype would still apply. */
5538 char TIFFGetVersion();
5544 if { (eval echo configure
:5545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5546 eval "ac_cv_lib_$ac_lib_var=yes"
5548 echo "configure: failed program was:" >&5
5549 cat conftest.
$ac_ext >&5
5551 eval "ac_cv_lib_$ac_lib_var=no"
5554 LIBS
="$ac_save_LIBS"
5557 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5558 echo "$ac_t""yes" 1>&6
5561 echo "$ac_t""no" 1>&6
5565 LDFLAGS
="$LDFLAGS_old"
5567 if test "x$ac_cv_lib_tiff34_TIFFGetVersion" = xyes
; then
5568 my_libname
="-ltiff34"
5573 if test "x$my_libname" != x
; then
5575 CPPFLAGS_old
="$CPPFLAGS"
5576 CPPFLAGS
="$CPPFLAGS $inc_search_path"
5577 ac_safe
=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
5578 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
5579 echo "configure:5580: checking for tiffio.h" >&5
5580 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5581 echo $ac_n "(cached) $ac_c" 1>&6
5583 cat > conftest.
$ac_ext <<EOF
5584 #line 5585 "configure"
5585 #include "confdefs.h"
5588 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5589 { (eval echo configure
:5590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5590 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5591 if test -z "$ac_err"; then
5593 eval "ac_cv_header_$ac_safe=yes"
5596 echo "configure: failed program was:" >&5
5597 cat conftest.
$ac_ext >&5
5599 eval "ac_cv_header_$ac_safe=no"
5603 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5604 echo "$ac_t""yes" 1>&6
5607 echo "$ac_t""no" 1>&6
5610 CPPFLAGS
="$CPPFLAGS_old"
5612 if test "x$ac_cv_header_tiffio_h" = xyes
; then
5613 GFXLIBS
="$my_libname $GFXLIBS"
5615 supported_gfx
="$supported_gfx TIFF"
5616 cat >> confdefs.h
<<\EOF
5624 LIBRARY_SEARCH_PATH
="$lib_search_path"
5625 HEADER_SEARCH_PATH
="$inc_search_path"
5637 # Check whether --enable-debug or --disable-debug was given.
5638 if test "${enable_debug+set}" = set; then
5639 enableval
="$enable_debug"
5646 if test "$enable_debug" = yes; then
5648 # Efence makes things too slow. Add it by hand in the Makefiles
5649 # if it is really needed.
5650 # AC_CHECK_LIB(efence, malloc, LIBS="$LIBS -lefence")
5652 DFLAGS
="-DWITHOUT_NANA"
5658 # Check whether --enable-sound or --disable-sound was given.
5659 if test "${enable_sound+set}" = set; then
5660 enableval
="$enable_sound"
5666 if test "$sound" = yes; then
5667 cat >> confdefs.h
<<\EOF
5674 # AC_PREFIX_PROGRAM(wmaker)
5676 # Check whether --with-pixmapdir or --without-pixmapdir was given.
5677 if test "${with_pixmapdir+set}" = set; then
5678 withval
="$with_pixmapdir"
5683 if test "x$with_pixmapdir" != "x"; then
5684 pixmapdir
=$with_pixmapdir
5686 pixmapdir
=`eval echo ${datadir}/pixmaps`
5689 cat >> confdefs.h
<<EOF
5690 #define PIXMAPDIR "$pixmapdir"
5694 pkgdatadir
=`eval echo $datadir`
5695 cat >> confdefs.h
<<EOF
5696 #define PKGDATADIR "$pkgdatadir/WindowMaker"
5700 _sysconfdir
=`eval echo $sysconfdir`
5701 cat >> confdefs.h
<<EOF
5702 #define SYSCONFDIR "$_sysconfdir"
5710 # Check whether --with-appspath or --without-appspath was given.
5711 if test "${with_appspath+set}" = set; then
5712 withval
="$with_appspath"
5717 if test "x$appspath" = "x"; then
5718 gnustepdir
='$(prefix)/GNUstep'
5720 if test "x$GNUSTEP_LOCAL_ROOT" != "x" ; then
5721 gnustepdir
=`echo "$GNUSTEP_LOCAL_ROOT" | sed -e "s|^${prefix}|prefix|"`
5722 gnustepdir
=`echo $gnustepdir | sed -e 's|^prefix|${prefix}|'`
5725 with_appspath
=$gnustepdir/Apps
5728 wprefsdir
=$with_appspath/WPrefs.app
5734 # Check whether --enable-single-icon or --disable-single-icon was given.
5735 if test "${enable_single_icon+set}" = set; then
5736 enableval
="$enable_single_icon"
5737 if test "$enableval" = yes; then
5738 cat >> confdefs.h
<<\EOF
5739 #define REDUCE_APPICONS 1
5747 # Check whether --enable-usermenu or --disable-usermenu was given.
5748 if test "${enable_usermenu+set}" = set; then
5749 enableval
="$enable_usermenu"
5750 if test "$enableval" = yes; then
5751 cat >> confdefs.h
<<\EOF
5764 cat > confcache
<<\EOF
5765 # This file is a shell script that caches the results of configure
5766 # tests run on this system so they can be shared between configure
5767 # scripts and configure runs. It is not useful on other systems.
5768 # If it contains results you don't want to keep, you may remove or edit it.
5770 # By default, configure uses ./config.cache as the cache file,
5771 # creating it if it does not exist already. You can give configure
5772 # the --cache-file=FILE option to use a different cache file; that is
5773 # what configure does when it calls configure scripts in
5774 # subdirectories, so they share the cache.
5775 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5776 # config.status only pays attention to the cache file if you give it the
5777 # --recheck option to rerun configure.
5780 # The following way of writing the cache mishandles newlines in values,
5781 # but we know of no workaround that is simple, portable, and efficient.
5782 # So, don't put newlines in cache variables' values.
5783 # Ultrix sh set writes to stderr and can't be redirected directly,
5784 # and sets the high bit in the cache file unless we assign to the vars.
5786 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5788 # `set' does not quote correctly, so add quotes (double-quote substitution
5789 # turns \\\\ into \\, and sed turns \\ into \).
5791 -e "s/'/'\\\\''/g" \
5792 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5795 # `set' quotes correctly as required by POSIX, so do not add quotes.
5796 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5799 if cmp -s $cache_file confcache
; then
5802 if test -w $cache_file; then
5803 echo "updating cache $cache_file"
5804 cat confcache
> $cache_file
5806 echo "not updating unwritable cache $cache_file"
5811 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5813 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5814 # Let make expand exec_prefix.
5815 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5817 # Any assignment to VPATH causes Sun make to only execute
5818 # the first set of double-colon rules, so remove it if not needed.
5819 # If there is a colon in the path, we need to keep it.
5820 if test "x$srcdir" = x.
; then
5821 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5824 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5826 DEFS
=-DHAVE_CONFIG_H
5828 # Without the "./", some shells look in PATH for config.status.
5829 : ${CONFIG_STATUS=./config.status}
5831 echo creating
$CONFIG_STATUS
5832 rm -f $CONFIG_STATUS
5833 cat > $CONFIG_STATUS <<EOF
5835 # Generated automatically by configure.
5836 # Run this file to recreate the current configuration.
5837 # This directory was configured as follows,
5838 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5840 # $0 $ac_configure_args
5842 # Compiler output produced by configure, useful for debugging
5843 # configure, is in ./config.log if it exists.
5845 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5848 case "\$ac_option" in
5849 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5850 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5851 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5852 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5853 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5855 -help | --help | --hel | --he | --h)
5856 echo "\$ac_cs_usage"; exit 0 ;;
5857 *) echo "\$ac_cs_usage"; exit 1 ;;
5861 ac_given_srcdir=$srcdir
5862 ac_given_INSTALL="$INSTALL"
5864 trap 'rm -fr `echo "Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
5865 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
5866 wrlib/Makefile doc/Makefile WindowMaker/Makefile contrib/Makefile \
5867 WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile \
5868 WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile \
5869 WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile \
5870 WindowMaker/Themes/Makefile \
5871 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
5872 WPrefs.app/po/Makefile src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5874 cat >> $CONFIG_STATUS <<EOF
5876 # Protect against being on the right side of a sed subst in config.status.
5877 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5878 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5882 s%@CFLAGS@%$CFLAGS%g
5883 s%@CPPFLAGS@%$CPPFLAGS%g
5884 s%@CXXFLAGS@%$CXXFLAGS%g
5885 s%@FFLAGS@%$FFLAGS%g
5887 s%@LDFLAGS@%$LDFLAGS%g
5889 s%@exec_prefix@%$exec_prefix%g
5890 s%@prefix@%$prefix%g
5891 s%@program_transform_name@%$program_transform_name%g
5892 s%@bindir@%$bindir%g
5893 s%@sbindir@%$sbindir%g
5894 s%@libexecdir@%$libexecdir%g
5895 s%@datadir@%$datadir%g
5896 s%@sysconfdir@%$sysconfdir%g
5897 s%@sharedstatedir@%$sharedstatedir%g
5898 s%@localstatedir@%$localstatedir%g
5899 s%@libdir@%$libdir%g
5900 s%@includedir@%$includedir%g
5901 s%@oldincludedir@%$oldincludedir%g
5902 s%@infodir@%$infodir%g
5903 s%@mandir@%$mandir%g
5904 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5905 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5906 s%@INSTALL_DATA@%$INSTALL_DATA%g
5907 s%@PACKAGE@%$PACKAGE%g
5908 s%@VERSION@%$VERSION%g
5909 s%@ACLOCAL@%$ACLOCAL%g
5910 s%@AUTOCONF@%$AUTOCONF%g
5911 s%@AUTOMAKE@%$AUTOMAKE%g
5912 s%@AUTOHEADER@%$AUTOHEADER%g
5913 s%@MAKEINFO@%$MAKEINFO%g
5914 s%@SET_MAKE@%$SET_MAKE%g
5916 s%@host_alias@%$host_alias%g
5917 s%@host_cpu@%$host_cpu%g
5918 s%@host_vendor@%$host_vendor%g
5919 s%@host_os@%$host_os%g
5921 s%@build_alias@%$build_alias%g
5922 s%@build_cpu@%$build_cpu%g
5923 s%@build_vendor@%$build_vendor%g
5924 s%@build_os@%$build_os%g
5925 s%@RANLIB@%$RANLIB%g
5930 s%@LIBTOOL@%$LIBTOOL%g
5932 s%@ALLOCA@%$ALLOCA%g
5933 s%@CPP_PATH@%$CPP_PATH%g
5934 s%@XGETTEXT@%$XGETTEXT%g
5935 s%@DLLIBS@%$DLLIBS%g
5936 s%@INTLIBS@%$INTLIBS%g
5937 s%@NLSDIR@%$NLSDIR%g
5938 s%@MOFILES@%$MOFILES%g
5939 s%@WPMOFILES@%$WPMOFILES%g
5941 s%@NETLIBS@%$NETLIBS%g
5942 s%@X_CFLAGS@%$X_CFLAGS%g
5943 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
5944 s%@X_LIBS@%$X_LIBS%g
5945 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
5946 s%@X_LIBRARY_PATH@%$X_LIBRARY_PATH%g
5948 s%@XCFLAGS@%$XCFLAGS%g
5949 s%@XLFLAGS@%$XLFLAGS%g
5951 s%@LIBRARY_SEARCH_PATH@%$LIBRARY_SEARCH_PATH%g
5952 s%@HEADER_SEARCH_PATH@%$HEADER_SEARCH_PATH%g
5953 s%@GFXLIBS@%$GFXLIBS%g
5954 s%@ICONEXT@%$ICONEXT%g
5955 s%@DFLAGS@%$DFLAGS%g
5956 s%@wprefsdir@%$wprefsdir%g
5961 cat >> $CONFIG_STATUS <<\EOF
5963 # Split the substitutions into bite-sized pieces for seds with
5964 # small command number limits, like on Digital OSF/1 and HP-UX.
5965 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5966 ac_file
=1 # Number of current file.
5967 ac_beg
=1 # First line for current file.
5968 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5971 while $ac_more_lines; do
5972 if test $ac_beg -gt 1; then
5973 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5975 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5977 if test ! -s conftest.s
$ac_file; then
5979 rm -f conftest.s
$ac_file
5981 if test -z "$ac_sed_cmds"; then
5982 ac_sed_cmds
="sed -f conftest.s$ac_file"
5984 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5986 ac_file
=`expr $ac_file + 1`
5988 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5991 if test -z "$ac_sed_cmds"; then
5996 cat >> $CONFIG_STATUS <<EOF
5998 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
5999 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
6000 wrlib/Makefile doc/Makefile WindowMaker/Makefile contrib/Makefile \
6001 WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile \
6002 WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile \
6003 WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile \
6004 WindowMaker/Themes/Makefile \
6005 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
6006 WPrefs.app/po/Makefile "}
6008 cat >> $CONFIG_STATUS <<\EOF
6009 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
6010 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6012 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6013 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6014 *) ac_file_in
="${ac_file}.in" ;;
6017 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6019 # Remove last slash and all that follows it. Not all systems have dirname.
6020 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6021 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
6022 # The file is in a subdirectory.
6023 test ! -d "$ac_dir" && mkdir
"$ac_dir"
6024 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
6025 # A "../" for each directory in $ac_dir_suffix.
6026 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6028 ac_dir_suffix
= ac_dots
=
6031 case "$ac_given_srcdir" in
6033 if test -z "$ac_dots"; then top_srcdir
=.
6034 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6035 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
6037 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6038 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
6041 case "$ac_given_INSTALL" in
6042 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
6043 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
6046 echo creating
"$ac_file"
6048 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6050 *Makefile
*) ac_comsub
="1i\\
6051 # $configure_input" ;;
6055 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6057 s%@configure_input@%$configure_input%g
6058 s%@srcdir@%$srcdir%g
6059 s%@top_srcdir@%$top_srcdir%g
6060 s%@INSTALL@%$INSTALL%g
6061 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
6065 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6066 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6068 # ac_d sets the value in "#define NAME VALUE" lines.
6069 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6070 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
6073 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6074 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6075 ac_uB
='\([ ]\)%\1#\2define\3'
6078 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6079 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6080 ac_eB
='$%\1#\2define\3'
6084 if test "${CONFIG_HEADERS+set}" != set; then
6086 cat >> $CONFIG_STATUS <<EOF
6087 CONFIG_HEADERS="src/config.h"
6089 cat >> $CONFIG_STATUS <<\EOF
6091 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
6092 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6094 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6095 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6096 *) ac_file_in
="${ac_file}.in" ;;
6099 echo creating
$ac_file
6101 rm -f conftest.frag conftest.
in conftest.out
6102 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6103 cat $ac_file_inputs > conftest.
in
6107 # Transform confdefs.h into a sed script conftest.vals that substitutes
6108 # the proper values into config.h.in to produce config.h. And first:
6109 # Protect against being on the right side of a sed subst in config.status.
6110 # Protect against being in an unquoted here document in config.status.
6112 cat > conftest.hdr
<<\EOF
6115 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6119 sed -n -f conftest.hdr confdefs.h > conftest.vals
6122 # This sed command replaces #undef with comments. This is necessary, for
6123 # example, in the case of _POSIX_SOURCE, which is predefined and required
6124 # on some systems where configure will not decide to define it.
6125 cat >> conftest.vals <<\EOF
6126 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6129 # Break up conftest.vals because some shells have a limit on
6130 # the size of here documents, and old seds have small limits too.
6135 ac_lines=`grep -c . conftest.vals
`
6136 # grep -c gives empty output for an empty file on some AIX systems.
6137 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6138 # Write a limited-size here document to conftest.frag.
6139 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6140 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6142 sed -f conftest.frag conftest.in > conftest.out
6144 mv conftest.out conftest.in
6146 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6148 mv conftest.tail conftest.vals
6152 cat >> $CONFIG_STATUS <<\EOF
6153 rm -f conftest.frag conftest.h
6154 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6155 cat conftest.in >> conftest.h
6157 if cmp -s $ac_file conftest.h 2>/dev/null; then
6158 echo "$ac_file is unchanged"
6161 # Remove last slash and all that follows it. Not all systems have dirname.
6162 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
6163 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6164 # The file is in a subdirectory.
6165 test ! -d "$ac_dir" && mkdir "$ac_dir"
6168 mv conftest.h $ac_file
6173 cat >> $CONFIG_STATUS <<EOF
6177 cat >> $CONFIG_STATUS <<\EOF
6178 test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h
6182 chmod +x $CONFIG_STATUS
6183 rm -fr confdefs* $ac_clean_files
6184 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6192 cat <<EOF >get-wraster-flags
6196 exec_prefix=\$prefix
6198 WCFLAGS="-I\$prefix/include $inc_search_path"
6199 WLFLAGS="-L\$exec_prefix/lib $lib_search_path"
6200 WLIBS="-lwraster $GFXLIBS $XLIBS -lm"
6202 usage="Usage: get-wraster-flags #lp#--cflags#rp# #lp#--ldflags#rp# #lp#--libs#rp#"
6204 if test \$# -eq 0; then
6205 echo "\${usage}" 1>&2
6209 while test \$# -gt 0; do
6221 echo "\${usage}" 1>&2
6231 cat <<EOF >get-wings-flags
6235 exec_prefix=\$prefix
6237 WCFLAGS="-I\$prefix/include $inc_search_path"
6238 WLFLAGS="-L\$exec_prefix/lib $lib_search_path"
6239 WLIBS="-lWINGs -lwraster $GFXLIBS $XLIBS -lm $NETLIBS -lPropList"
6241 usage="Usage: get-wings-flags #lp#--cflags#rp# #lp#--ldflags#rp# #lp#--libs#rp#"
6243 if test \$# -eq 0; then
6244 echo "\${usage}" 1>&2
6248 while test \$# -gt 0; do
6260 echo "\${usage}" 1>&2
6270 cat <<EOF >get-wutil-flags
6274 exec_prefix=\$prefix
6276 WCFLAGS="-I\$prefix/include $inc_search_path"
6277 WLFLAGS="-L\$exec_prefix/lib $lib_search_path"
6278 WLIBS="-lWUtil $NETLIBS -lPropList"
6280 usage="Usage: get-wutil-flags #lp#--cflags#rp# #lp#--ldflags#rp# #lp#--libs#rp#"
6282 if test \$# -eq 0; then
6283 echo "\${usage}" 1>&2
6287 while test \$# -gt 0; do
6299 echo "\${usage}" 1>&2
6309 sed 's/#lp#/[/g' get-wraster-flags | sed 's/#rp#/]/g' > wrlib/get-wraster-flags
6310 sed 's/#lp#/[/g' get-wings-flags | sed 's/#rp#/]/g' > WINGs/get-wings-flags
6311 sed 's/#lp#/[/g' get-wutil-flags | sed 's/#rp#/]/g' > WINGs/get-wutil-flags
6313 chmod 755 wrlib/get-wraster-flags WINGs/get-wings-flags WINGs/get-wutil-flags
6315 rm -f get-wraster-flags get-wings-flags get-wutil-flags
6319 supported_gfx="$supported_gfx builtin-PPM"
6321 if test "x$MOFILES" = "x"; then
6329 echo "Window Maker was configured as follows:"
6331 echo "Installation path prefix: $prefix"
6332 echo "Installation path prefix for binaries: $_bindir"
6333 echo "Installation path for WPrefs.app: $wprefsdir" | sed -e 's|\$(prefix)|'"$prefix|"
6334 echo "Graphic format libraries: $supported_gfx"
6335 echo "Sound support: $sound"
6336 echo "Translated message files to install: $mof"
6337 if test "x$MOFILES" != "x"; then
6338 echo "Installation path of translated messages: $NLSDIR" | sed -e 's|\$(prefix)|'"$prefix|"
6342 if test "x$ac_cv_header_jpeglib_h" != xyes; then
6343 echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING"
6345 echo "JPEG support will not be included because the JPEG library is"
6346 echo "not installed correctly or was not found. Background images"
6347 echo "from themes will not display as they usually are JPEG files."
6349 echo "To fix, download and install the jpeg library and/or make sure you"
6350 echo "installed all jpeg related packages, SPECIALLY the development packages"
6351 echo "like jpeg-devel (if you use some prepackaged version of libjpeg)."
6353 echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING"