contrib/OWB: add correct SDL dependency, fix compilers used
[AROS-Contrib.git] / freetype1 / configure
blob3907281f787729d36b64a8dbdc46c4f072a5a2be
1 #! /bin/sh
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.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-static[=PKGS] build static libraries [default=no]"
16 ac_help="$ac_help
17 --enable-shared[=PKGS] build shared libraries [default=yes]"
18 ac_help="$ac_help
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
20 ac_help="$ac_help
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
22 ac_help="$ac_help
23 --disable-libtool-lock avoid locking (might break parallel builds)"
24 ac_help="$ac_help
25 --disable-nls don't use NLS"
26 ac_help="$ac_help
27 --with-locale-dir=DIR Location of the locale file(s)
28 [PREFIX/share/locale]"
29 ac_help="$ac_help
30 --with-x use the X Window System"
32 # Initialize some variables set by options.
33 # The variables have the same names as the options, with
34 # dashes changed to underlines.
35 build=NONE
36 cache_file=./config.cache
37 exec_prefix=NONE
38 host=NONE
39 no_create=
40 nonopt=NONE
41 no_recursion=
42 prefix=NONE
43 program_prefix=NONE
44 program_suffix=NONE
45 program_transform_name=s,x,x,
46 silent=
47 site=
48 srcdir=
49 target=NONE
50 verbose=
51 x_includes=NONE
52 x_libraries=NONE
53 bindir='${exec_prefix}/bin'
54 sbindir='${exec_prefix}/sbin'
55 libexecdir='${exec_prefix}/libexec'
56 datadir='${prefix}/share'
57 sysconfdir='${prefix}/etc'
58 sharedstatedir='${prefix}/com'
59 localstatedir='${prefix}/var'
60 libdir='${exec_prefix}/lib'
61 includedir='${prefix}/include'
62 oldincludedir='/usr/include'
63 infodir='${prefix}/info'
64 mandir='${prefix}/man'
66 # Initialize some other variables.
67 subdirs=
68 MFLAGS= MAKEFLAGS=
69 SHELL=${CONFIG_SHELL-/bin/sh}
70 # Maximum number of lines to put in a shell here document.
71 ac_max_here_lines=12
73 ac_prev=
74 for ac_option
77 # If the previous option needs an argument, assign it.
78 if test -n "$ac_prev"; then
79 eval "$ac_prev=\$ac_option"
80 ac_prev=
81 continue
84 case "$ac_option" in
85 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
86 *) ac_optarg= ;;
87 esac
89 # Accept the important Cygnus configure options, so we can diagnose typos.
91 case "$ac_option" in
93 -bindir | --bindir | --bindi | --bind | --bin | --bi)
94 ac_prev=bindir ;;
95 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
96 bindir="$ac_optarg" ;;
98 -build | --build | --buil | --bui | --bu)
99 ac_prev=build ;;
100 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
101 build="$ac_optarg" ;;
103 -cache-file | --cache-file | --cache-fil | --cache-fi \
104 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
105 ac_prev=cache_file ;;
106 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
107 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
108 cache_file="$ac_optarg" ;;
110 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
111 ac_prev=datadir ;;
112 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
113 | --da=*)
114 datadir="$ac_optarg" ;;
116 -disable-* | --disable-*)
117 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
118 # Reject names that are not valid shell variable names.
119 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
120 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123 eval "enable_${ac_feature}=no" ;;
125 -enable-* | --enable-*)
126 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
132 case "$ac_option" in
133 *=*) ;;
134 *) ac_optarg=yes ;;
135 esac
136 eval "enable_${ac_feature}='$ac_optarg'" ;;
138 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
139 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
140 | --exec | --exe | --ex)
141 ac_prev=exec_prefix ;;
142 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
143 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
144 | --exec=* | --exe=* | --ex=*)
145 exec_prefix="$ac_optarg" ;;
147 -gas | --gas | --ga | --g)
148 # Obsolete; use --with-gas.
149 with_gas=yes ;;
151 -help | --help | --hel | --he)
152 # Omit some internal or obsolete options to make the list less imposing.
153 # This message is too long to be a string in the A/UX 3.1 sh.
154 cat << EOF
155 Usage: configure [options] [host]
156 Options: [defaults in brackets after descriptions]
157 Configuration:
158 --cache-file=FILE cache test results in FILE
159 --help print this message
160 --no-create do not create output files
161 --quiet, --silent do not print \`checking...' messages
162 --version print the version of autoconf that created configure
163 Directory and file names:
164 --prefix=PREFIX install architecture-independent files in PREFIX
165 [$ac_default_prefix]
166 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
167 [same as prefix]
168 --bindir=DIR user executables in DIR [EPREFIX/bin]
169 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
170 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
171 --datadir=DIR read-only architecture-independent data in DIR
172 [PREFIX/share]
173 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
174 --sharedstatedir=DIR modifiable architecture-independent data in DIR
175 [PREFIX/com]
176 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
177 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
178 --includedir=DIR C header files in DIR [PREFIX/include]
179 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
180 --infodir=DIR info documentation in DIR [PREFIX/info]
181 --mandir=DIR man documentation in DIR [PREFIX/man]
182 --srcdir=DIR find the sources in DIR [configure dir or ..]
183 --program-prefix=PREFIX prepend PREFIX to installed program names
184 --program-suffix=SUFFIX append SUFFIX to installed program names
185 --program-transform-name=PROGRAM
186 run sed PROGRAM on installed program names
188 cat << EOF
189 Host type:
190 --build=BUILD configure for building on BUILD [BUILD=HOST]
191 --host=HOST configure for HOST [guessed]
192 --target=TARGET configure for TARGET [TARGET=HOST]
193 Features and packages:
194 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
195 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
196 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
197 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
198 --x-includes=DIR X include files are in DIR
199 --x-libraries=DIR X library files are in DIR
201 if test -n "$ac_help"; then
202 echo "--enable and --with options recognized:$ac_help"
204 exit 0 ;;
206 -host | --host | --hos | --ho)
207 ac_prev=host ;;
208 -host=* | --host=* | --hos=* | --ho=*)
209 host="$ac_optarg" ;;
211 -includedir | --includedir | --includedi | --included | --include \
212 | --includ | --inclu | --incl | --inc)
213 ac_prev=includedir ;;
214 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
215 | --includ=* | --inclu=* | --incl=* | --inc=*)
216 includedir="$ac_optarg" ;;
218 -infodir | --infodir | --infodi | --infod | --info | --inf)
219 ac_prev=infodir ;;
220 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
221 infodir="$ac_optarg" ;;
223 -libdir | --libdir | --libdi | --libd)
224 ac_prev=libdir ;;
225 -libdir=* | --libdir=* | --libdi=* | --libd=*)
226 libdir="$ac_optarg" ;;
228 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
229 | --libexe | --libex | --libe)
230 ac_prev=libexecdir ;;
231 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
232 | --libexe=* | --libex=* | --libe=*)
233 libexecdir="$ac_optarg" ;;
235 -localstatedir | --localstatedir | --localstatedi | --localstated \
236 | --localstate | --localstat | --localsta | --localst \
237 | --locals | --local | --loca | --loc | --lo)
238 ac_prev=localstatedir ;;
239 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
240 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
241 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
242 localstatedir="$ac_optarg" ;;
244 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
245 ac_prev=mandir ;;
246 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
247 mandir="$ac_optarg" ;;
249 -nfp | --nfp | --nf)
250 # Obsolete; use --without-fp.
251 with_fp=no ;;
253 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
254 | --no-cr | --no-c)
255 no_create=yes ;;
257 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
258 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
259 no_recursion=yes ;;
261 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
262 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
263 | --oldin | --oldi | --old | --ol | --o)
264 ac_prev=oldincludedir ;;
265 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
266 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
267 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
268 oldincludedir="$ac_optarg" ;;
270 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
271 ac_prev=prefix ;;
272 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
273 prefix="$ac_optarg" ;;
275 -program-prefix | --program-prefix | --program-prefi | --program-pref \
276 | --program-pre | --program-pr | --program-p)
277 ac_prev=program_prefix ;;
278 -program-prefix=* | --program-prefix=* | --program-prefi=* \
279 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
280 program_prefix="$ac_optarg" ;;
282 -program-suffix | --program-suffix | --program-suffi | --program-suff \
283 | --program-suf | --program-su | --program-s)
284 ac_prev=program_suffix ;;
285 -program-suffix=* | --program-suffix=* | --program-suffi=* \
286 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
287 program_suffix="$ac_optarg" ;;
289 -program-transform-name | --program-transform-name \
290 | --program-transform-nam | --program-transform-na \
291 | --program-transform-n | --program-transform- \
292 | --program-transform | --program-transfor \
293 | --program-transfo | --program-transf \
294 | --program-trans | --program-tran \
295 | --progr-tra | --program-tr | --program-t)
296 ac_prev=program_transform_name ;;
297 -program-transform-name=* | --program-transform-name=* \
298 | --program-transform-nam=* | --program-transform-na=* \
299 | --program-transform-n=* | --program-transform-=* \
300 | --program-transform=* | --program-transfor=* \
301 | --program-transfo=* | --program-transf=* \
302 | --program-trans=* | --program-tran=* \
303 | --progr-tra=* | --program-tr=* | --program-t=*)
304 program_transform_name="$ac_optarg" ;;
306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
307 | -silent | --silent | --silen | --sile | --sil)
308 silent=yes ;;
310 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
311 ac_prev=sbindir ;;
312 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
313 | --sbi=* | --sb=*)
314 sbindir="$ac_optarg" ;;
316 -sharedstatedir | --sharedstatedir | --sharedstatedi \
317 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
318 | --sharedst | --shareds | --shared | --share | --shar \
319 | --sha | --sh)
320 ac_prev=sharedstatedir ;;
321 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
322 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
323 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
324 | --sha=* | --sh=*)
325 sharedstatedir="$ac_optarg" ;;
327 -site | --site | --sit)
328 ac_prev=site ;;
329 -site=* | --site=* | --sit=*)
330 site="$ac_optarg" ;;
332 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
333 ac_prev=srcdir ;;
334 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
335 srcdir="$ac_optarg" ;;
337 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
338 | --syscon | --sysco | --sysc | --sys | --sy)
339 ac_prev=sysconfdir ;;
340 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
341 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
342 sysconfdir="$ac_optarg" ;;
344 -target | --target | --targe | --targ | --tar | --ta | --t)
345 ac_prev=target ;;
346 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
347 target="$ac_optarg" ;;
349 -v | -verbose | --verbose | --verbos | --verbo | --verb)
350 verbose=yes ;;
352 -version | --version | --versio | --versi | --vers)
353 echo "configure generated by autoconf version 2.13"
354 exit 0 ;;
356 -with-* | --with-*)
357 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
358 # Reject names that are not valid shell variable names.
359 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
360 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362 ac_package=`echo $ac_package| sed 's/-/_/g'`
363 case "$ac_option" in
364 *=*) ;;
365 *) ac_optarg=yes ;;
366 esac
367 eval "with_${ac_package}='$ac_optarg'" ;;
369 -without-* | --without-*)
370 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
371 # Reject names that are not valid shell variable names.
372 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
373 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375 ac_package=`echo $ac_package| sed 's/-/_/g'`
376 eval "with_${ac_package}=no" ;;
378 --x)
379 # Obsolete; use --with-x.
380 with_x=yes ;;
382 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
383 | --x-incl | --x-inc | --x-in | --x-i)
384 ac_prev=x_includes ;;
385 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
386 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
387 x_includes="$ac_optarg" ;;
389 -x-libraries | --x-libraries | --x-librarie | --x-librari \
390 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
391 ac_prev=x_libraries ;;
392 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
393 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
394 x_libraries="$ac_optarg" ;;
396 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
400 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
401 echo "configure: warning: $ac_option: invalid host type" 1>&2
403 if test "x$nonopt" != xNONE; then
404 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
406 nonopt="$ac_option"
409 esac
410 done
412 if test -n "$ac_prev"; then
413 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
416 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
418 # File descriptor usage:
419 # 0 standard input
420 # 1 file creation
421 # 2 errors and warnings
422 # 3 some systems may open it to /dev/tty
423 # 4 used on the Kubota Titan
424 # 6 checking for... messages and results
425 # 5 compiler messages saved in config.log
426 if test "$silent" = yes; then
427 exec 6>/dev/null
428 else
429 exec 6>&1
431 exec 5>./config.log
433 echo "\
434 This file contains any messages produced by compilers while
435 running configure, to aid debugging if configure makes a mistake.
436 " 1>&5
438 # Strip out --no-create and --no-recursion so they do not pile up.
439 # Also quote any args containing shell metacharacters.
440 ac_configure_args=
441 for ac_arg
443 case "$ac_arg" in
444 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
445 | --no-cr | --no-c) ;;
446 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
447 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
448 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
449 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
450 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
451 esac
452 done
454 # NLS nuisances.
455 # Only set these to C if already set. These must not be set unconditionally
456 # because not all systems understand e.g. LANG=C (notably SCO).
457 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
458 # Non-C LC_CTYPE values break the ctype check.
459 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
460 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
461 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
462 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
464 # confdefs.h avoids OS command line length limits that DEFS can exceed.
465 rm -rf conftest* confdefs.h
466 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
467 echo > confdefs.h
469 # A filename unique to this package, relative to the directory that
470 # configure is in, which we can look for to find out if srcdir is correct.
471 ac_unique_file=lib/freetype.h
473 # Find the source files, if location was not specified.
474 if test -z "$srcdir"; then
475 ac_srcdir_defaulted=yes
476 # Try the directory containing this script, then its parent.
477 ac_prog=$0
478 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
479 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
480 srcdir=$ac_confdir
481 if test ! -r $srcdir/$ac_unique_file; then
482 srcdir=..
484 else
485 ac_srcdir_defaulted=no
487 if test ! -r $srcdir/$ac_unique_file; then
488 if test "$ac_srcdir_defaulted" = yes; then
489 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
490 else
491 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
494 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
496 # Prefer explicitly selected file to automatically selected ones.
497 if test -z "$CONFIG_SITE"; then
498 if test "x$prefix" != xNONE; then
499 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
500 else
501 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
504 for ac_site_file in $CONFIG_SITE; do
505 if test -r "$ac_site_file"; then
506 echo "loading site script $ac_site_file"
507 . "$ac_site_file"
509 done
511 if test -r "$cache_file"; then
512 echo "loading cache $cache_file"
513 . $cache_file
514 else
515 echo "creating cache $cache_file"
516 > $cache_file
519 ac_ext=c
520 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
521 ac_cpp='$CPP $CPPFLAGS'
522 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
523 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
524 cross_compiling=$ac_cv_prog_cc_cross
526 ac_exeext=
527 ac_objext=o
528 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
529 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
530 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
531 ac_n= ac_c='
532 ' ac_t=' '
533 else
534 ac_n=-n ac_c= ac_t=
536 else
537 ac_n= ac_c='\c' ac_t=
542 srcdir=`cd $srcdir; pwd`
544 # Check whether --enable-static or --disable-static was given.
545 if test "${enable_static+set}" = set; then
546 enableval="$enable_static"
547 p=${PACKAGE-default}
548 case "$enableval" in
549 yes) enable_static=yes ;;
550 no) enable_static=no ;;
552 enable_static=no
553 # Look at the argument we got. We use all the common list separators.
554 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
555 for pkg in $enableval; do
556 if test "X$pkg" = "X$p"; then
557 enable_static=yes
559 done
560 IFS="$ac_save_ifs"
562 esac
563 else
564 enable_static=no
567 ac_aux_dir=
568 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
569 if test -f $ac_dir/install-sh; then
570 ac_aux_dir=$ac_dir
571 ac_install_sh="$ac_aux_dir/install-sh -c"
572 break
573 elif test -f $ac_dir/install.sh; then
574 ac_aux_dir=$ac_dir
575 ac_install_sh="$ac_aux_dir/install.sh -c"
576 break
578 done
579 if test -z "$ac_aux_dir"; then
580 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
582 ac_config_guess=$ac_aux_dir/config.guess
583 ac_config_sub=$ac_aux_dir/config.sub
584 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
586 # Check whether --enable-shared or --disable-shared was given.
587 if test "${enable_shared+set}" = set; then
588 enableval="$enable_shared"
589 p=${PACKAGE-default}
590 case "$enableval" in
591 yes) enable_shared=yes ;;
592 no) enable_shared=no ;;
594 enable_shared=no
595 # Look at the argument we got. We use all the common list separators.
596 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
597 for pkg in $enableval; do
598 if test "X$pkg" = "X$p"; then
599 enable_shared=yes
601 done
602 IFS="$ac_save_ifs"
604 esac
605 else
606 enable_shared=yes
609 # Check whether --enable-fast-install or --disable-fast-install was given.
610 if test "${enable_fast_install+set}" = set; then
611 enableval="$enable_fast_install"
612 p=${PACKAGE-default}
613 case "$enableval" in
614 yes) enable_fast_install=yes ;;
615 no) enable_fast_install=no ;;
617 enable_fast_install=no
618 # Look at the argument we got. We use all the common list separators.
619 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
620 for pkg in $enableval; do
621 if test "X$pkg" = "X$p"; then
622 enable_fast_install=yes
624 done
625 IFS="$ac_save_ifs"
627 esac
628 else
629 enable_fast_install=yes
633 # Make sure we can run config.sub.
634 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
635 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
638 echo $ac_n "checking host system type""... $ac_c" 1>&6
639 echo "configure:640: checking host system type" >&5
641 host_alias=$host
642 case "$host_alias" in
643 NONE)
644 case $nonopt in
645 NONE)
646 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
647 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
648 fi ;;
649 *) host_alias=$nonopt ;;
650 esac ;;
651 esac
653 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
654 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
655 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
656 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
657 echo "$ac_t""$host" 1>&6
659 echo $ac_n "checking build system type""... $ac_c" 1>&6
660 echo "configure:661: checking build system type" >&5
662 build_alias=$build
663 case "$build_alias" in
664 NONE)
665 case $nonopt in
666 NONE) build_alias=$host_alias ;;
667 *) build_alias=$nonopt ;;
668 esac ;;
669 esac
671 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
672 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
673 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
674 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
675 echo "$ac_t""$build" 1>&6
677 # Extract the first word of "ranlib", so it can be a program name with args.
678 set dummy ranlib; ac_word=$2
679 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
680 echo "configure:681: checking for $ac_word" >&5
681 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
682 echo $ac_n "(cached) $ac_c" 1>&6
683 else
684 if test -n "$RANLIB"; then
685 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
686 else
687 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
688 ac_dummy="$PATH"
689 for ac_dir in $ac_dummy; do
690 test -z "$ac_dir" && ac_dir=.
691 if test -f $ac_dir/$ac_word; then
692 ac_cv_prog_RANLIB="ranlib"
693 break
695 done
696 IFS="$ac_save_ifs"
697 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
700 RANLIB="$ac_cv_prog_RANLIB"
701 if test -n "$RANLIB"; then
702 echo "$ac_t""$RANLIB" 1>&6
703 else
704 echo "$ac_t""no" 1>&6
707 # Extract the first word of "gcc", so it can be a program name with args.
708 set dummy gcc; ac_word=$2
709 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
710 echo "configure:711: checking for $ac_word" >&5
711 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
712 echo $ac_n "(cached) $ac_c" 1>&6
713 else
714 if test -n "$CC"; then
715 ac_cv_prog_CC="$CC" # Let the user override the test.
716 else
717 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
718 ac_dummy="$PATH"
719 for ac_dir in $ac_dummy; do
720 test -z "$ac_dir" && ac_dir=.
721 if test -f $ac_dir/$ac_word; then
722 ac_cv_prog_CC="gcc"
723 break
725 done
726 IFS="$ac_save_ifs"
729 CC="$ac_cv_prog_CC"
730 if test -n "$CC"; then
731 echo "$ac_t""$CC" 1>&6
732 else
733 echo "$ac_t""no" 1>&6
736 if test -z "$CC"; then
737 # Extract the first word of "cc", so it can be a program name with args.
738 set dummy cc; ac_word=$2
739 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
740 echo "configure:741: checking for $ac_word" >&5
741 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
742 echo $ac_n "(cached) $ac_c" 1>&6
743 else
744 if test -n "$CC"; then
745 ac_cv_prog_CC="$CC" # Let the user override the test.
746 else
747 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
748 ac_prog_rejected=no
749 ac_dummy="$PATH"
750 for ac_dir in $ac_dummy; do
751 test -z "$ac_dir" && ac_dir=.
752 if test -f $ac_dir/$ac_word; then
753 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
754 ac_prog_rejected=yes
755 continue
757 ac_cv_prog_CC="cc"
758 break
760 done
761 IFS="$ac_save_ifs"
762 if test $ac_prog_rejected = yes; then
763 # We found a bogon in the path, so make sure we never use it.
764 set dummy $ac_cv_prog_CC
765 shift
766 if test $# -gt 0; then
767 # We chose a different compiler from the bogus one.
768 # However, it has the same basename, so the bogon will be chosen
769 # first if we set CC to just the basename; use the full file name.
770 shift
771 set dummy "$ac_dir/$ac_word" "$@"
772 shift
773 ac_cv_prog_CC="$@"
778 CC="$ac_cv_prog_CC"
779 if test -n "$CC"; then
780 echo "$ac_t""$CC" 1>&6
781 else
782 echo "$ac_t""no" 1>&6
785 if test -z "$CC"; then
786 case "`uname -s`" in
787 *win32* | *WIN32*)
788 # Extract the first word of "cl", so it can be a program name with args.
789 set dummy cl; ac_word=$2
790 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
791 echo "configure:792: checking for $ac_word" >&5
792 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
793 echo $ac_n "(cached) $ac_c" 1>&6
794 else
795 if test -n "$CC"; then
796 ac_cv_prog_CC="$CC" # Let the user override the test.
797 else
798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
799 ac_dummy="$PATH"
800 for ac_dir in $ac_dummy; do
801 test -z "$ac_dir" && ac_dir=.
802 if test -f $ac_dir/$ac_word; then
803 ac_cv_prog_CC="cl"
804 break
806 done
807 IFS="$ac_save_ifs"
810 CC="$ac_cv_prog_CC"
811 if test -n "$CC"; then
812 echo "$ac_t""$CC" 1>&6
813 else
814 echo "$ac_t""no" 1>&6
817 esac
819 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
822 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
823 echo "configure:824: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
825 ac_ext=c
826 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
827 ac_cpp='$CPP $CPPFLAGS'
828 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
829 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
830 cross_compiling=$ac_cv_prog_cc_cross
832 cat > conftest.$ac_ext << EOF
834 #line 835 "configure"
835 #include "confdefs.h"
837 main(){return(0);}
839 if { (eval echo configure:840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
840 ac_cv_prog_cc_works=yes
841 # If we can't run a trivial program, we are probably using a cross compiler.
842 if (./conftest; exit) 2>/dev/null; then
843 ac_cv_prog_cc_cross=no
844 else
845 ac_cv_prog_cc_cross=yes
847 else
848 echo "configure: failed program was:" >&5
849 cat conftest.$ac_ext >&5
850 ac_cv_prog_cc_works=no
852 rm -fr conftest*
853 ac_ext=c
854 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
855 ac_cpp='$CPP $CPPFLAGS'
856 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
857 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
858 cross_compiling=$ac_cv_prog_cc_cross
860 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
861 if test $ac_cv_prog_cc_works = no; then
862 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
864 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
865 echo "configure:866: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
866 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
867 cross_compiling=$ac_cv_prog_cc_cross
869 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
870 echo "configure:871: checking whether we are using GNU C" >&5
871 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
872 echo $ac_n "(cached) $ac_c" 1>&6
873 else
874 cat > conftest.c <<EOF
875 #ifdef __GNUC__
876 yes;
877 #endif
879 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
880 ac_cv_prog_gcc=yes
881 else
882 ac_cv_prog_gcc=no
886 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
888 if test $ac_cv_prog_gcc = yes; then
889 GCC=yes
890 else
891 GCC=
894 ac_test_CFLAGS="${CFLAGS+set}"
895 ac_save_CFLAGS="$CFLAGS"
896 CFLAGS=
897 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
898 echo "configure:899: checking whether ${CC-cc} accepts -g" >&5
899 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
900 echo $ac_n "(cached) $ac_c" 1>&6
901 else
902 echo 'void f(){}' > conftest.c
903 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
904 ac_cv_prog_cc_g=yes
905 else
906 ac_cv_prog_cc_g=no
908 rm -f conftest*
912 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
913 if test "$ac_test_CFLAGS" = set; then
914 CFLAGS="$ac_save_CFLAGS"
915 elif test $ac_cv_prog_cc_g = yes; then
916 if test "$GCC" = yes; then
917 CFLAGS="-g -O2"
918 else
919 CFLAGS="-g"
921 else
922 if test "$GCC" = yes; then
923 CFLAGS="-O2"
924 else
925 CFLAGS=
929 # Check whether --with-gnu-ld or --without-gnu-ld was given.
930 if test "${with_gnu_ld+set}" = set; then
931 withval="$with_gnu_ld"
932 test "$withval" = no || with_gnu_ld=yes
933 else
934 with_gnu_ld=no
937 ac_prog=ld
938 if test "$ac_cv_prog_gcc" = yes; then
939 # Check if gcc -print-prog-name=ld gives a path.
940 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
941 echo "configure:942: checking for ld used by GCC" >&5
942 ac_prog=`($CC -print-prog-name=ld) 2>&5`
943 case "$ac_prog" in
944 # Accept absolute paths.
945 [\\/]* | [A-Za-z]:[\\/]*)
946 re_direlt='/[^/][^/]*/\.\./'
947 # Canonicalize the path of ld
948 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
949 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
950 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
951 done
952 test -z "$LD" && LD="$ac_prog"
955 # If it fails, then pretend we aren't using GCC.
956 ac_prog=ld
959 # If it is relative, then search for the first ld in PATH.
960 with_gnu_ld=unknown
962 esac
963 elif test "$with_gnu_ld" = yes; then
964 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
965 echo "configure:966: checking for GNU ld" >&5
966 else
967 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
968 echo "configure:969: checking for non-GNU ld" >&5
970 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
971 echo $ac_n "(cached) $ac_c" 1>&6
972 else
973 if test -z "$LD"; then
974 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
975 for ac_dir in $PATH; do
976 test -z "$ac_dir" && ac_dir=.
977 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
978 ac_cv_path_LD="$ac_dir/$ac_prog"
979 # Check to see if the program is GNU ld. I'd rather use --version,
980 # but apparently some GNU ld's only accept -v.
981 # Break only if it was the GNU/non-GNU ld that we prefer.
982 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
983 test "$with_gnu_ld" != no && break
984 else
985 test "$with_gnu_ld" != yes && break
988 done
989 IFS="$ac_save_ifs"
990 else
991 ac_cv_path_LD="$LD" # Let the user override the test with a path.
995 LD="$ac_cv_path_LD"
996 if test -n "$LD"; then
997 echo "$ac_t""$LD" 1>&6
998 else
999 echo "$ac_t""no" 1>&6
1001 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1003 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1004 echo "configure:1005: checking if the linker ($LD) is GNU ld" >&5
1005 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1006 echo $ac_n "(cached) $ac_c" 1>&6
1007 else
1008 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1009 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1010 ac_cv_prog_gnu_ld=yes
1011 else
1012 ac_cv_prog_gnu_ld=no
1016 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1019 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1020 echo "configure:1021: checking for BSD-compatible nm" >&5
1021 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1022 echo $ac_n "(cached) $ac_c" 1>&6
1023 else
1024 if test -n "$NM"; then
1025 # Let the user override the test.
1026 ac_cv_path_NM="$NM"
1027 else
1028 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1029 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1030 test -z "$ac_dir" && ac_dir=.
1031 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1032 # Check to see if the nm accepts a BSD-compat flag.
1033 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1034 # nm: unknown option "B" ignored
1035 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1036 ac_cv_path_NM="$ac_dir/nm -B"
1037 break
1038 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1039 ac_cv_path_NM="$ac_dir/nm -p"
1040 break
1041 else
1042 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1043 continue # so that we can try to find one that supports BSD flags
1046 done
1047 IFS="$ac_save_ifs"
1048 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1052 NM="$ac_cv_path_NM"
1053 echo "$ac_t""$NM" 1>&6
1056 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1057 echo "configure:1058: checking whether ln -s works" >&5
1058 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1059 echo $ac_n "(cached) $ac_c" 1>&6
1060 else
1061 rm -f conftestdata
1062 if ln -s X conftestdata 2>/dev/null
1063 then
1064 rm -f conftestdata
1065 ac_cv_prog_LN_S="ln -s"
1066 else
1067 ac_cv_prog_LN_S=ln
1070 LN_S="$ac_cv_prog_LN_S"
1071 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1072 echo "$ac_t""yes" 1>&6
1073 else
1074 echo "$ac_t""no" 1>&6
1078 # Check for any special flags to pass to ltconfig.
1079 libtool_flags="--cache-file=$cache_file"
1080 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1081 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1082 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1083 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1084 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1087 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1088 if test "${enable_libtool_lock+set}" = set; then
1089 enableval="$enable_libtool_lock"
1093 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1094 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1096 # Some flags need to be propagated to the compiler or linker for good
1097 # libtool support.
1098 case "$host" in
1099 *-*-irix6*)
1100 # Find out which ABI we are using.
1101 echo '#line 1102 "configure"' > conftest.$ac_ext
1102 if { (eval echo configure:1103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1103 case "`/usr/bin/file conftest.o`" in
1104 *32-bit*)
1105 LD="${LD-ld} -32"
1107 *N32*)
1108 LD="${LD-ld} -n32"
1110 *64-bit*)
1111 LD="${LD-ld} -64"
1113 esac
1115 rm -rf conftest*
1118 *-*-sco3.2v5*)
1119 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1120 SAVE_CFLAGS="$CFLAGS"
1121 CFLAGS="$CFLAGS -belf"
1122 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1123 echo "configure:1124: checking whether the C compiler needs -belf" >&5
1124 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1125 echo $ac_n "(cached) $ac_c" 1>&6
1126 else
1127 cat > conftest.$ac_ext <<EOF
1128 #line 1129 "configure"
1129 #include "confdefs.h"
1131 int main() {
1133 ; return 0; }
1135 if { (eval echo configure:1136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1136 rm -rf conftest*
1137 lt_cv_cc_needs_belf=yes
1138 else
1139 echo "configure: failed program was:" >&5
1140 cat conftest.$ac_ext >&5
1141 rm -rf conftest*
1142 lt_cv_cc_needs_belf=no
1144 rm -f conftest*
1147 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1148 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1149 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1150 CFLAGS="$SAVE_CFLAGS"
1155 esac
1158 # Save cache, so that ltconfig can load it
1159 cat > confcache <<\EOF
1160 # This file is a shell script that caches the results of configure
1161 # tests run on this system so they can be shared between configure
1162 # scripts and configure runs. It is not useful on other systems.
1163 # If it contains results you don't want to keep, you may remove or edit it.
1165 # By default, configure uses ./config.cache as the cache file,
1166 # creating it if it does not exist already. You can give configure
1167 # the --cache-file=FILE option to use a different cache file; that is
1168 # what configure does when it calls configure scripts in
1169 # subdirectories, so they share the cache.
1170 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1171 # config.status only pays attention to the cache file if you give it the
1172 # --recheck option to rerun configure.
1175 # The following way of writing the cache mishandles newlines in values,
1176 # but we know of no workaround that is simple, portable, and efficient.
1177 # So, don't put newlines in cache variables' values.
1178 # Ultrix sh set writes to stderr and can't be redirected directly,
1179 # and sets the high bit in the cache file unless we assign to the vars.
1180 (set) 2>&1 |
1181 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1182 *ac_space=\ *)
1183 # `set' does not quote correctly, so add quotes (double-quote substitution
1184 # turns \\\\ into \\, and sed turns \\ into \).
1185 sed -n \
1186 -e "s/'/'\\\\''/g" \
1187 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1190 # `set' quotes correctly as required by POSIX, so do not add quotes.
1191 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1193 esac >> confcache
1194 if cmp -s $cache_file confcache; then
1196 else
1197 if test -w $cache_file; then
1198 echo "updating cache $cache_file"
1199 cat confcache > $cache_file
1200 else
1201 echo "not updating unwritable cache $cache_file"
1204 rm -f confcache
1207 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1208 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1209 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1210 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1211 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1212 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1213 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1214 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1216 # Reload cache, that may have been modified by ltconfig
1217 if test -r "$cache_file"; then
1218 echo "loading cache $cache_file"
1219 . $cache_file
1220 else
1221 echo "creating cache $cache_file"
1222 > $cache_file
1226 # This can be used to rebuild libtool when needed
1227 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1229 # Always use our own libtool.
1230 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1232 # Redirect the config.log output again, so that the ltconfig log is not
1233 # clobbered by the next message.
1234 exec 5>>./config.log
1237 freetype_version='1.2.0'
1239 version_info='4:0:2'
1241 # Check whether --enable-nls or --disable-nls was given.
1242 if test "${enable_nls+set}" = set; then
1243 enableval="$enable_nls"
1244 USE_NLS=no
1245 else
1246 USE_NLS=yes
1252 # Do some error checking and defaulting for the host and target type.
1253 # The inputs are:
1254 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1256 # The rules are:
1257 # 1. You are not allowed to specify --host, --target, and nonopt at the
1258 # same time.
1259 # 2. Host defaults to nonopt.
1260 # 3. If nonopt is not specified, then host defaults to the current host,
1261 # as determined by config.guess.
1262 # 4. Target and build default to nonopt.
1263 # 5. If nonopt is not specified, then target and build default to host.
1265 # The aliases save the names the user supplied, while $host etc.
1266 # will get canonicalized.
1267 case $host---$target---$nonopt in
1268 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1269 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1270 esac
1273 # Make sure we can run config.sub.
1274 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1275 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1278 echo $ac_n "checking host system type""... $ac_c" 1>&6
1279 echo "configure:1280: checking host system type" >&5
1281 host_alias=$host
1282 case "$host_alias" in
1283 NONE)
1284 case $nonopt in
1285 NONE)
1286 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1287 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1288 fi ;;
1289 *) host_alias=$nonopt ;;
1290 esac ;;
1291 esac
1293 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1294 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1295 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1296 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1297 echo "$ac_t""$host" 1>&6
1299 echo $ac_n "checking target system type""... $ac_c" 1>&6
1300 echo "configure:1301: checking target system type" >&5
1302 target_alias=$target
1303 case "$target_alias" in
1304 NONE)
1305 case $nonopt in
1306 NONE) target_alias=$host_alias ;;
1307 *) target_alias=$nonopt ;;
1308 esac ;;
1309 esac
1311 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1312 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1313 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1314 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1315 echo "$ac_t""$target" 1>&6
1317 echo $ac_n "checking build system type""... $ac_c" 1>&6
1318 echo "configure:1319: checking build system type" >&5
1320 build_alias=$build
1321 case "$build_alias" in
1322 NONE)
1323 case $nonopt in
1324 NONE) build_alias=$host_alias ;;
1325 *) build_alias=$nonopt ;;
1326 esac ;;
1327 esac
1329 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1330 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1331 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1332 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1333 echo "$ac_t""$build" 1>&6
1335 test "$host_alias" != "$target_alias" &&
1336 test "$program_prefix$program_suffix$program_transform_name" = \
1337 NONENONEs,x,x, &&
1338 program_prefix=${target_alias}-
1341 # Extract the first word of "gcc", so it can be a program name with args.
1342 set dummy gcc; ac_word=$2
1343 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1344 echo "configure:1345: checking for $ac_word" >&5
1345 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1346 echo $ac_n "(cached) $ac_c" 1>&6
1347 else
1348 if test -n "$CC"; then
1349 ac_cv_prog_CC="$CC" # Let the user override the test.
1350 else
1351 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1352 ac_dummy="$PATH"
1353 for ac_dir in $ac_dummy; do
1354 test -z "$ac_dir" && ac_dir=.
1355 if test -f $ac_dir/$ac_word; then
1356 ac_cv_prog_CC="gcc"
1357 break
1359 done
1360 IFS="$ac_save_ifs"
1363 CC="$ac_cv_prog_CC"
1364 if test -n "$CC"; then
1365 echo "$ac_t""$CC" 1>&6
1366 else
1367 echo "$ac_t""no" 1>&6
1370 if test -z "$CC"; then
1371 # Extract the first word of "cc", so it can be a program name with args.
1372 set dummy cc; ac_word=$2
1373 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1374 echo "configure:1375: checking for $ac_word" >&5
1375 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1376 echo $ac_n "(cached) $ac_c" 1>&6
1377 else
1378 if test -n "$CC"; then
1379 ac_cv_prog_CC="$CC" # Let the user override the test.
1380 else
1381 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1382 ac_prog_rejected=no
1383 ac_dummy="$PATH"
1384 for ac_dir in $ac_dummy; do
1385 test -z "$ac_dir" && ac_dir=.
1386 if test -f $ac_dir/$ac_word; then
1387 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1388 ac_prog_rejected=yes
1389 continue
1391 ac_cv_prog_CC="cc"
1392 break
1394 done
1395 IFS="$ac_save_ifs"
1396 if test $ac_prog_rejected = yes; then
1397 # We found a bogon in the path, so make sure we never use it.
1398 set dummy $ac_cv_prog_CC
1399 shift
1400 if test $# -gt 0; then
1401 # We chose a different compiler from the bogus one.
1402 # However, it has the same basename, so the bogon will be chosen
1403 # first if we set CC to just the basename; use the full file name.
1404 shift
1405 set dummy "$ac_dir/$ac_word" "$@"
1406 shift
1407 ac_cv_prog_CC="$@"
1412 CC="$ac_cv_prog_CC"
1413 if test -n "$CC"; then
1414 echo "$ac_t""$CC" 1>&6
1415 else
1416 echo "$ac_t""no" 1>&6
1419 if test -z "$CC"; then
1420 case "`uname -s`" in
1421 *win32* | *WIN32*)
1422 # Extract the first word of "cl", so it can be a program name with args.
1423 set dummy cl; ac_word=$2
1424 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1425 echo "configure:1426: checking for $ac_word" >&5
1426 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1427 echo $ac_n "(cached) $ac_c" 1>&6
1428 else
1429 if test -n "$CC"; then
1430 ac_cv_prog_CC="$CC" # Let the user override the test.
1431 else
1432 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1433 ac_dummy="$PATH"
1434 for ac_dir in $ac_dummy; do
1435 test -z "$ac_dir" && ac_dir=.
1436 if test -f $ac_dir/$ac_word; then
1437 ac_cv_prog_CC="cl"
1438 break
1440 done
1441 IFS="$ac_save_ifs"
1444 CC="$ac_cv_prog_CC"
1445 if test -n "$CC"; then
1446 echo "$ac_t""$CC" 1>&6
1447 else
1448 echo "$ac_t""no" 1>&6
1451 esac
1453 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1456 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1457 echo "configure:1458: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1459 ac_ext=c
1460 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1461 ac_cpp='$CPP $CPPFLAGS'
1462 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1463 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1464 cross_compiling=$ac_cv_prog_cc_cross
1466 cat > conftest.$ac_ext << EOF
1468 #line 1469 "configure"
1469 #include "confdefs.h"
1471 main(){return(0);}
1473 if { (eval echo configure:1474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1474 ac_cv_prog_cc_works=yes
1475 # If we can't run a trivial program, we are probably using a cross compiler.
1476 if (./conftest; exit) 2>/dev/null; then
1477 ac_cv_prog_cc_cross=no
1478 else
1479 ac_cv_prog_cc_cross=yes
1481 else
1482 echo "configure: failed program was:" >&5
1483 cat conftest.$ac_ext >&5
1484 ac_cv_prog_cc_works=no
1486 rm -fr conftest*
1487 ac_ext=c
1488 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1489 ac_cpp='$CPP $CPPFLAGS'
1490 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1491 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1492 cross_compiling=$ac_cv_prog_cc_cross
1494 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1495 if test $ac_cv_prog_cc_works = no; then
1496 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1498 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1499 echo "configure:1500: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1500 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1501 cross_compiling=$ac_cv_prog_cc_cross
1503 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1504 echo "configure:1505: checking whether we are using GNU C" >&5
1505 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1506 echo $ac_n "(cached) $ac_c" 1>&6
1507 else
1508 cat > conftest.c <<EOF
1509 #ifdef __GNUC__
1510 yes;
1511 #endif
1513 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1514 ac_cv_prog_gcc=yes
1515 else
1516 ac_cv_prog_gcc=no
1520 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1522 if test $ac_cv_prog_gcc = yes; then
1523 GCC=yes
1524 else
1525 GCC=
1528 ac_test_CFLAGS="${CFLAGS+set}"
1529 ac_save_CFLAGS="$CFLAGS"
1530 CFLAGS=
1531 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1532 echo "configure:1533: checking whether ${CC-cc} accepts -g" >&5
1533 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1534 echo $ac_n "(cached) $ac_c" 1>&6
1535 else
1536 echo 'void f(){}' > conftest.c
1537 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1538 ac_cv_prog_cc_g=yes
1539 else
1540 ac_cv_prog_cc_g=no
1542 rm -f conftest*
1546 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1547 if test "$ac_test_CFLAGS" = set; then
1548 CFLAGS="$ac_save_CFLAGS"
1549 elif test $ac_cv_prog_cc_g = yes; then
1550 if test "$GCC" = yes; then
1551 CFLAGS="-g -O2"
1552 else
1553 CFLAGS="-g"
1555 else
1556 if test "$GCC" = yes; then
1557 CFLAGS="-O2"
1558 else
1559 CFLAGS=
1563 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1564 echo "configure:1565: checking how to run the C preprocessor" >&5
1565 # On Suns, sometimes $CPP names a directory.
1566 if test -n "$CPP" && test -d "$CPP"; then
1567 CPP=
1569 if test -z "$CPP"; then
1570 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1571 echo $ac_n "(cached) $ac_c" 1>&6
1572 else
1573 # This must be in double quotes, not single quotes, because CPP may get
1574 # substituted into the Makefile and "${CC-cc}" will confuse make.
1575 CPP="${CC-cc} -E"
1576 # On the NeXT, cc -E runs the code through the compiler's parser,
1577 # not just through cpp.
1578 cat > conftest.$ac_ext <<EOF
1579 #line 1580 "configure"
1580 #include "confdefs.h"
1581 #include <assert.h>
1582 Syntax Error
1584 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1585 { (eval echo configure:1586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1586 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1587 if test -z "$ac_err"; then
1589 else
1590 echo "$ac_err" >&5
1591 echo "configure: failed program was:" >&5
1592 cat conftest.$ac_ext >&5
1593 rm -rf conftest*
1594 CPP="${CC-cc} -E -traditional-cpp"
1595 cat > conftest.$ac_ext <<EOF
1596 #line 1597 "configure"
1597 #include "confdefs.h"
1598 #include <assert.h>
1599 Syntax Error
1601 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1602 { (eval echo configure:1603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1603 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1604 if test -z "$ac_err"; then
1606 else
1607 echo "$ac_err" >&5
1608 echo "configure: failed program was:" >&5
1609 cat conftest.$ac_ext >&5
1610 rm -rf conftest*
1611 CPP="${CC-cc} -nologo -E"
1612 cat > conftest.$ac_ext <<EOF
1613 #line 1614 "configure"
1614 #include "confdefs.h"
1615 #include <assert.h>
1616 Syntax Error
1618 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1619 { (eval echo configure:1620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1620 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1621 if test -z "$ac_err"; then
1623 else
1624 echo "$ac_err" >&5
1625 echo "configure: failed program was:" >&5
1626 cat conftest.$ac_ext >&5
1627 rm -rf conftest*
1628 CPP=/lib/cpp
1630 rm -f conftest*
1632 rm -f conftest*
1634 rm -f conftest*
1635 ac_cv_prog_CPP="$CPP"
1637 CPP="$ac_cv_prog_CPP"
1638 else
1639 ac_cv_prog_CPP="$CPP"
1641 echo "$ac_t""$CPP" 1>&6
1645 if test "x$CC" = xgcc; then
1646 XX_CFLAGS="-Wall -pedantic -ansi"
1647 else
1648 case "$host" in
1649 *-dec-osf*)
1650 XX_CFLAGS="-std1 -O2 -g3"
1653 XX_CFLAGS=
1655 esac
1660 case "$host" in
1661 *-dec-osf*)
1662 ln -s ../../MakeSub lib/arch
1663 ln -s ../../MakeSub test/arch
1665 esac
1670 if test "$USE_NLS" = "yes"; then
1672 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1673 echo "configure:1674: checking whether ${MAKE-make} sets \${MAKE}" >&5
1674 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1675 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1676 echo $ac_n "(cached) $ac_c" 1>&6
1677 else
1678 cat > conftestmake <<\EOF
1679 all:
1680 @echo 'ac_maketemp="${MAKE}"'
1682 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1683 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1684 if test -n "$ac_maketemp"; then
1685 eval ac_cv_prog_make_${ac_make}_set=yes
1686 else
1687 eval ac_cv_prog_make_${ac_make}_set=no
1689 rm -f conftestmake
1691 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1692 echo "$ac_t""yes" 1>&6
1693 SET_MAKE=
1694 else
1695 echo "$ac_t""no" 1>&6
1696 SET_MAKE="MAKE=${MAKE-make}"
1699 for ac_hdr in locale.h
1701 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1702 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1703 echo "configure:1704: checking for $ac_hdr" >&5
1704 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1705 echo $ac_n "(cached) $ac_c" 1>&6
1706 else
1707 cat > conftest.$ac_ext <<EOF
1708 #line 1709 "configure"
1709 #include "confdefs.h"
1710 #include <$ac_hdr>
1712 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1713 { (eval echo configure:1714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1714 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1715 if test -z "$ac_err"; then
1716 rm -rf conftest*
1717 eval "ac_cv_header_$ac_safe=yes"
1718 else
1719 echo "$ac_err" >&5
1720 echo "configure: failed program was:" >&5
1721 cat conftest.$ac_ext >&5
1722 rm -rf conftest*
1723 eval "ac_cv_header_$ac_safe=no"
1725 rm -f conftest*
1727 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1728 echo "$ac_t""yes" 1>&6
1729 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1730 cat >> confdefs.h <<EOF
1731 #define $ac_tr_hdr 1
1734 else
1735 echo "$ac_t""no" 1>&6
1737 done
1739 for ac_func in setlocale
1741 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1742 echo "configure:1743: checking for $ac_func" >&5
1743 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1744 echo $ac_n "(cached) $ac_c" 1>&6
1745 else
1746 cat > conftest.$ac_ext <<EOF
1747 #line 1748 "configure"
1748 #include "confdefs.h"
1749 /* System header to define __stub macros and hopefully few prototypes,
1750 which can conflict with char $ac_func(); below. */
1751 #include <assert.h>
1752 /* Override any gcc2 internal prototype to avoid an error. */
1753 /* We use char because int might match the return type of a gcc2
1754 builtin and then its argument prototype would still apply. */
1755 char $ac_func();
1757 int main() {
1759 /* The GNU C library defines this for functions which it implements
1760 to always fail with ENOSYS. Some functions are actually named
1761 something starting with __ and the normal name is an alias. */
1762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1763 choke me
1764 #else
1765 $ac_func();
1766 #endif
1768 ; return 0; }
1770 if { (eval echo configure:1771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1771 rm -rf conftest*
1772 eval "ac_cv_func_$ac_func=yes"
1773 else
1774 echo "configure: failed program was:" >&5
1775 cat conftest.$ac_ext >&5
1776 rm -rf conftest*
1777 eval "ac_cv_func_$ac_func=no"
1779 rm -f conftest*
1782 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1783 echo "$ac_t""yes" 1>&6
1784 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1785 cat >> confdefs.h <<EOF
1786 #define $ac_tr_func 1
1789 else
1790 echo "$ac_t""no" 1>&6
1792 done
1796 ALL_LINGUAS="de fr cs nl es"
1797 for ac_hdr in libintl.h
1799 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1800 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1801 echo "configure:1802: checking for $ac_hdr" >&5
1802 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1803 echo $ac_n "(cached) $ac_c" 1>&6
1804 else
1805 cat > conftest.$ac_ext <<EOF
1806 #line 1807 "configure"
1807 #include "confdefs.h"
1808 #include <$ac_hdr>
1810 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1811 { (eval echo configure:1812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1812 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1813 if test -z "$ac_err"; then
1814 rm -rf conftest*
1815 eval "ac_cv_header_$ac_safe=yes"
1816 else
1817 echo "$ac_err" >&5
1818 echo "configure: failed program was:" >&5
1819 cat conftest.$ac_ext >&5
1820 rm -rf conftest*
1821 eval "ac_cv_header_$ac_safe=no"
1823 rm -f conftest*
1825 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1826 echo "$ac_t""yes" 1>&6
1827 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1828 cat >> confdefs.h <<EOF
1829 #define $ac_tr_hdr 1
1832 else
1833 echo "$ac_t""no" 1>&6
1835 done
1837 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
1838 echo "configure:1839: checking for gettext in -lintl" >&5
1839 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
1840 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1841 echo $ac_n "(cached) $ac_c" 1>&6
1842 else
1843 ac_save_LIBS="$LIBS"
1844 LIBS="-lintl $LIBS"
1845 cat > conftest.$ac_ext <<EOF
1846 #line 1847 "configure"
1847 #include "confdefs.h"
1848 /* Override any gcc2 internal prototype to avoid an error. */
1849 /* We use char because int might match the return type of a gcc2
1850 builtin and then its argument prototype would still apply. */
1851 char gettext();
1853 int main() {
1854 gettext()
1855 ; return 0; }
1857 if { (eval echo configure:1858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1858 rm -rf conftest*
1859 eval "ac_cv_lib_$ac_lib_var=yes"
1860 else
1861 echo "configure: failed program was:" >&5
1862 cat conftest.$ac_ext >&5
1863 rm -rf conftest*
1864 eval "ac_cv_lib_$ac_lib_var=no"
1866 rm -f conftest*
1867 LIBS="$ac_save_LIBS"
1870 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1871 echo "$ac_t""yes" 1>&6
1872 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1873 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1874 cat >> confdefs.h <<EOF
1875 #define $ac_tr_lib 1
1878 LIBS="-lintl $LIBS"
1880 else
1881 echo "$ac_t""no" 1>&6
1887 LOCALEDIR='${prefix}/share/locale'
1888 # Check whether --with-locale-dir or --without-locale-dir was given.
1889 if test "${with_locale_dir+set}" = set; then
1890 withval="$with_locale_dir"
1892 if test x$withval = xyes; then
1893 echo "configure: warning: Usage is: --with-locale-dir=basedir" 1>&2
1894 else
1895 if test x$withval = xno; then
1896 echo "configure: warning: Usage is: --with-locale-dir=basedir" 1>&2
1897 else
1898 LOCALEDIR=$withval
1906 # Extract the first word of "msgfmt", so it can be a program name with args.
1907 set dummy msgfmt; ac_word=$2
1908 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1909 echo "configure:1910: checking for $ac_word" >&5
1910 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
1911 echo $ac_n "(cached) $ac_c" 1>&6
1912 else
1913 case "$MSGFMT" in
1915 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
1917 ?:/*)
1918 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a dos path.
1921 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1922 ac_dummy="$PATH"
1923 for ac_dir in $ac_dummy; do
1924 test -z "$ac_dir" && ac_dir=.
1925 if test -f $ac_dir/$ac_word; then
1926 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
1927 break
1929 done
1930 IFS="$ac_save_ifs"
1931 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="$MSGFMT"
1933 esac
1935 MSGFMT="$ac_cv_path_MSGFMT"
1936 if test -n "$MSGFMT"; then
1937 echo "$ac_t""$MSGFMT" 1>&6
1938 else
1939 echo "$ac_t""no" 1>&6
1942 if test -n "$MSGFMT"; then
1943 for ac_func in dcgettext
1945 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1946 echo "configure:1947: checking for $ac_func" >&5
1947 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1948 echo $ac_n "(cached) $ac_c" 1>&6
1949 else
1950 cat > conftest.$ac_ext <<EOF
1951 #line 1952 "configure"
1952 #include "confdefs.h"
1953 /* System header to define __stub macros and hopefully few prototypes,
1954 which can conflict with char $ac_func(); below. */
1955 #include <assert.h>
1956 /* Override any gcc2 internal prototype to avoid an error. */
1957 /* We use char because int might match the return type of a gcc2
1958 builtin and then its argument prototype would still apply. */
1959 char $ac_func();
1961 int main() {
1963 /* The GNU C library defines this for functions which it implements
1964 to always fail with ENOSYS. Some functions are actually named
1965 something starting with __ and the normal name is an alias. */
1966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1967 choke me
1968 #else
1969 $ac_func();
1970 #endif
1972 ; return 0; }
1974 if { (eval echo configure:1975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1975 rm -rf conftest*
1976 eval "ac_cv_func_$ac_func=yes"
1977 else
1978 echo "configure: failed program was:" >&5
1979 cat conftest.$ac_ext >&5
1980 rm -rf conftest*
1981 eval "ac_cv_func_$ac_func=no"
1983 rm -f conftest*
1986 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1987 echo "$ac_t""yes" 1>&6
1988 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1989 cat >> confdefs.h <<EOF
1990 #define $ac_tr_func 1
1993 else
1994 echo "$ac_t""no" 1>&6
1996 done
1998 # Extract the first word of "gmsgfmt", so it can be a program name with args.
1999 set dummy gmsgfmt; ac_word=$2
2000 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2001 echo "configure:2002: checking for $ac_word" >&5
2002 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2003 echo $ac_n "(cached) $ac_c" 1>&6
2004 else
2005 case "$GMSGFMT" in
2007 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2009 ?:/*)
2010 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2013 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2014 ac_dummy="$PATH"
2015 for ac_dir in $ac_dummy; do
2016 test -z "$ac_dir" && ac_dir=.
2017 if test -f $ac_dir/$ac_word; then
2018 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2019 break
2021 done
2022 IFS="$ac_save_ifs"
2023 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2025 esac
2027 GMSGFMT="$ac_cv_path_GMSGFMT"
2028 if test -n "$GMSGFMT"; then
2029 echo "$ac_t""$GMSGFMT" 1>&6
2030 else
2031 echo "$ac_t""no" 1>&6
2034 # Extract the first word of "xgettext", so it can be a program name with args.
2035 set dummy xgettext; ac_word=$2
2036 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2037 echo "configure:2038: checking for $ac_word" >&5
2038 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2039 echo $ac_n "(cached) $ac_c" 1>&6
2040 else
2041 case "$XGETTEXT" in
2043 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2045 ?:/*)
2046 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a dos path.
2049 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2050 ac_dummy="$PATH"
2051 for ac_dir in $ac_dummy; do
2052 test -z "$ac_dir" && ac_dir=.
2053 if test -f $ac_dir/$ac_word; then
2054 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2055 break
2057 done
2058 IFS="$ac_save_ifs"
2059 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT="$XGETTEXT"
2061 esac
2063 XGETTEXT="$ac_cv_path_XGETTEXT"
2064 if test -n "$XGETTEXT"; then
2065 echo "$ac_t""$XGETTEXT" 1>&6
2066 else
2067 echo "$ac_t""no" 1>&6
2070 # Extract the first word of "msgmerge", so it can be a program name with args.
2071 set dummy msgmerge; ac_word=$2
2072 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2073 echo "configure:2074: checking for $ac_word" >&5
2074 if eval "test \"`echo '$''{'ac_cv_path_MSGMERGE'+set}'`\" = set"; then
2075 echo $ac_n "(cached) $ac_c" 1>&6
2076 else
2077 case "$MSGMERGE" in
2079 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
2081 ?:/*)
2082 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a dos path.
2085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2086 ac_dummy="$PATH"
2087 for ac_dir in $ac_dummy; do
2088 test -z "$ac_dir" && ac_dir=.
2089 if test -f $ac_dir/$ac_word; then
2090 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
2091 break
2093 done
2094 IFS="$ac_save_ifs"
2095 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE="$MSGMERGE"
2097 esac
2099 MSGMERGE="$ac_cv_path_MSGMERGE"
2100 if test -n "$MSGMERGE"; then
2101 echo "$ac_t""$MSGMERGE" 1>&6
2102 else
2103 echo "$ac_t""no" 1>&6
2107 if test -n "$XGETTEXT"; then
2108 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
2110 else
2111 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2112 XGETTEXT=""
2116 if test -n "$XGETTEXT"; then
2117 if $XGETTEXT --help > /dev/null 2> /dev/null; then
2119 else
2120 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2121 XGETTEXT=""
2125 if test -n "$MSGFMT"; then
2126 if $MSGFMT < /dev/null 2> /dev/null; then
2127 echo "$ac_t""found msgfmt program is not GNU msgfmt; NLS won't be installed" 1>&6
2128 MSGFMT=""
2132 cat > conftest.$ac_ext <<EOF
2133 #line 2134 "configure"
2134 #include "confdefs.h"
2136 int main() {
2137 extern int _nl_msg_cat_cntr;
2138 return _nl_msg_cat_cntr
2139 ; return 0; }
2141 if { (eval echo configure:2142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2142 rm -rf conftest*
2143 CATOBJEXT=.gmo
2144 DATADIRNAME=share
2145 else
2146 echo "configure: failed program was:" >&5
2147 cat conftest.$ac_ext >&5
2148 rm -rf conftest*
2149 CATOBJEXT=.mo
2150 DATADIRNAME=lib
2152 rm -f conftest*
2153 INSTOBJEXT=.mo
2156 if test -n "$ALL_LINGUAS"; then
2157 for lang in $ALL_LINGUAS; do
2158 CATALOGS="$CATALOGS $lang$CATOBJEXT"
2159 done
2167 if test x"$MSGFMT" = x; then
2168 USE_NLS=no
2172 # Extract the first word of "rm", so it can be a program name with args.
2173 set dummy rm; ac_word=$2
2174 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2175 echo "configure:2176: checking for $ac_word" >&5
2176 if eval "test \"`echo '$''{'ac_cv_prog_RM'+set}'`\" = set"; then
2177 echo $ac_n "(cached) $ac_c" 1>&6
2178 else
2179 if test -n "$RM"; then
2180 ac_cv_prog_RM="$RM" # Let the user override the test.
2181 else
2182 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2183 ac_dummy="$PATH"
2184 for ac_dir in $ac_dummy; do
2185 test -z "$ac_dir" && ac_dir=.
2186 if test -f $ac_dir/$ac_word; then
2187 ac_cv_prog_RM="rm"
2188 break
2190 done
2191 IFS="$ac_save_ifs"
2194 RM="$ac_cv_prog_RM"
2195 if test -n "$RM"; then
2196 echo "$ac_t""$RM" 1>&6
2197 else
2198 echo "$ac_t""no" 1>&6
2201 # Extract the first word of "rmdir", so it can be a program name with args.
2202 set dummy rmdir; ac_word=$2
2203 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2204 echo "configure:2205: checking for $ac_word" >&5
2205 if eval "test \"`echo '$''{'ac_cv_prog_RMDIR'+set}'`\" = set"; then
2206 echo $ac_n "(cached) $ac_c" 1>&6
2207 else
2208 if test -n "$RMDIR"; then
2209 ac_cv_prog_RMDIR="$RMDIR" # Let the user override the test.
2210 else
2211 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2212 ac_dummy="$PATH"
2213 for ac_dir in $ac_dummy; do
2214 test -z "$ac_dir" && ac_dir=.
2215 if test -f $ac_dir/$ac_word; then
2216 ac_cv_prog_RMDIR="rmdir"
2217 break
2219 done
2220 IFS="$ac_save_ifs"
2223 RMDIR="$ac_cv_prog_RMDIR"
2224 if test -n "$RMDIR"; then
2225 echo "$ac_t""$RMDIR" 1>&6
2226 else
2227 echo "$ac_t""no" 1>&6
2230 # Find a good install program. We prefer a C program (faster),
2231 # so one script is as good as another. But avoid the broken or
2232 # incompatible versions:
2233 # SysV /etc/install, /usr/sbin/install
2234 # SunOS /usr/etc/install
2235 # IRIX /sbin/install
2236 # AIX /bin/install
2237 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2238 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2239 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2240 # ./install, which can be erroneously created by make from ./install.sh.
2241 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2242 echo "configure:2243: checking for a BSD compatible install" >&5
2243 if test -z "$INSTALL"; then
2244 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2245 echo $ac_n "(cached) $ac_c" 1>&6
2246 else
2247 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2248 for ac_dir in $PATH; do
2249 # Account for people who put trailing slashes in PATH elements.
2250 case "$ac_dir/" in
2251 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2253 # OSF1 and SCO ODT 3.0 have their own names for install.
2254 # Don't use installbsd from OSF since it installs stuff as root
2255 # by default.
2256 for ac_prog in ginstall scoinst install; do
2257 if test -f $ac_dir/$ac_prog; then
2258 if test $ac_prog = install &&
2259 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2260 # AIX install. It has an incompatible calling convention.
2262 else
2263 ac_cv_path_install="$ac_dir/$ac_prog -c"
2264 break 2
2267 done
2269 esac
2270 done
2271 IFS="$ac_save_IFS"
2274 if test "${ac_cv_path_install+set}" = set; then
2275 INSTALL="$ac_cv_path_install"
2276 else
2277 # As a last resort, use the slow shell script. We don't cache a
2278 # path for INSTALL within a source directory, because that will
2279 # break other packages using the cache if that directory is
2280 # removed, or if the path is relative.
2281 INSTALL="$ac_install_sh"
2284 echo "$ac_t""$INSTALL" 1>&6
2286 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2287 # It thinks the first close brace ends the variable substitution.
2288 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2290 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2292 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2294 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2295 echo "configure:2296: checking whether ln -s works" >&5
2296 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2297 echo $ac_n "(cached) $ac_c" 1>&6
2298 else
2299 rm -f conftestdata
2300 if ln -s X conftestdata 2>/dev/null
2301 then
2302 rm -f conftestdata
2303 ac_cv_prog_LN_S="ln -s"
2304 else
2305 ac_cv_prog_LN_S=ln
2308 LN_S="$ac_cv_prog_LN_S"
2309 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2310 echo "$ac_t""yes" 1>&6
2311 else
2312 echo "$ac_t""no" 1>&6
2319 # Most operating systems have gethostbyname() in the default searched
2320 # libraries (i.e. libc):
2321 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2322 echo "configure:2323: checking for gethostbyname" >&5
2323 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2324 echo $ac_n "(cached) $ac_c" 1>&6
2325 else
2326 cat > conftest.$ac_ext <<EOF
2327 #line 2328 "configure"
2328 #include "confdefs.h"
2329 /* System header to define __stub macros and hopefully few prototypes,
2330 which can conflict with char gethostbyname(); below. */
2331 #include <assert.h>
2332 /* Override any gcc2 internal prototype to avoid an error. */
2333 /* We use char because int might match the return type of a gcc2
2334 builtin and then its argument prototype would still apply. */
2335 char gethostbyname();
2337 int main() {
2339 /* The GNU C library defines this for functions which it implements
2340 to always fail with ENOSYS. Some functions are actually named
2341 something starting with __ and the normal name is an alias. */
2342 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2343 choke me
2344 #else
2345 gethostbyname();
2346 #endif
2348 ; return 0; }
2350 if { (eval echo configure:2351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2351 rm -rf conftest*
2352 eval "ac_cv_func_gethostbyname=yes"
2353 else
2354 echo "configure: failed program was:" >&5
2355 cat conftest.$ac_ext >&5
2356 rm -rf conftest*
2357 eval "ac_cv_func_gethostbyname=no"
2359 rm -f conftest*
2362 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2363 echo "$ac_t""yes" 1>&6
2365 else
2366 echo "$ac_t""no" 1>&6
2367 # Some OSes (eg. Solaris) place it in libnsl:
2368 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2369 echo "configure:2370: checking for gethostbyname in -lnsl" >&5
2370 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2371 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2372 echo $ac_n "(cached) $ac_c" 1>&6
2373 else
2374 ac_save_LIBS="$LIBS"
2375 LIBS="-lnsl $LIBS"
2376 cat > conftest.$ac_ext <<EOF
2377 #line 2378 "configure"
2378 #include "confdefs.h"
2379 /* Override any gcc2 internal prototype to avoid an error. */
2380 /* We use char because int might match the return type of a gcc2
2381 builtin and then its argument prototype would still apply. */
2382 char gethostbyname();
2384 int main() {
2385 gethostbyname()
2386 ; return 0; }
2388 if { (eval echo configure:2389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2389 rm -rf conftest*
2390 eval "ac_cv_lib_$ac_lib_var=yes"
2391 else
2392 echo "configure: failed program was:" >&5
2393 cat conftest.$ac_ext >&5
2394 rm -rf conftest*
2395 eval "ac_cv_lib_$ac_lib_var=no"
2397 rm -f conftest*
2398 LIBS="$ac_save_LIBS"
2401 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2402 echo "$ac_t""yes" 1>&6
2403 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
2404 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2405 cat >> confdefs.h <<EOF
2406 #define $ac_tr_lib 1
2409 LIBS="-lnsl $LIBS"
2411 else
2412 echo "$ac_t""no" 1>&6
2413 # Some strange OSes (SINIX) have it in libsocket:
2414 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
2415 echo "configure:2416: checking for gethostbyname in -lsocket" >&5
2416 ac_lib_var=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
2417 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2418 echo $ac_n "(cached) $ac_c" 1>&6
2419 else
2420 ac_save_LIBS="$LIBS"
2421 LIBS="-lsocket $LIBS"
2422 cat > conftest.$ac_ext <<EOF
2423 #line 2424 "configure"
2424 #include "confdefs.h"
2425 /* Override any gcc2 internal prototype to avoid an error. */
2426 /* We use char because int might match the return type of a gcc2
2427 builtin and then its argument prototype would still apply. */
2428 char gethostbyname();
2430 int main() {
2431 gethostbyname()
2432 ; return 0; }
2434 if { (eval echo configure:2435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2435 rm -rf conftest*
2436 eval "ac_cv_lib_$ac_lib_var=yes"
2437 else
2438 echo "configure: failed program was:" >&5
2439 cat conftest.$ac_ext >&5
2440 rm -rf conftest*
2441 eval "ac_cv_lib_$ac_lib_var=no"
2443 rm -f conftest*
2444 LIBS="$ac_save_LIBS"
2447 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2448 echo "$ac_t""yes" 1>&6
2449 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2450 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2451 cat >> confdefs.h <<EOF
2452 #define $ac_tr_lib 1
2455 LIBS="-lsocket $LIBS"
2457 else
2458 echo "$ac_t""no" 1>&6
2459 # Unfortunately libsocket sometimes depends on libnsl.
2460 # AC_CHECK_LIB's API is essentially broken so the following
2461 # ugliness is necessary:
2462 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
2463 echo "configure:2464: checking for gethostbyname in -lsocket" >&5
2464 ac_lib_var=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
2465 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2466 echo $ac_n "(cached) $ac_c" 1>&6
2467 else
2468 ac_save_LIBS="$LIBS"
2469 LIBS="-lsocket -lnsl $LIBS"
2470 cat > conftest.$ac_ext <<EOF
2471 #line 2472 "configure"
2472 #include "confdefs.h"
2473 /* Override any gcc2 internal prototype to avoid an error. */
2474 /* We use char because int might match the return type of a gcc2
2475 builtin and then its argument prototype would still apply. */
2476 char gethostbyname();
2478 int main() {
2479 gethostbyname()
2480 ; return 0; }
2482 if { (eval echo configure:2483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2483 rm -rf conftest*
2484 eval "ac_cv_lib_$ac_lib_var=yes"
2485 else
2486 echo "configure: failed program was:" >&5
2487 cat conftest.$ac_ext >&5
2488 rm -rf conftest*
2489 eval "ac_cv_lib_$ac_lib_var=no"
2491 rm -f conftest*
2492 LIBS="$ac_save_LIBS"
2495 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2496 echo "$ac_t""yes" 1>&6
2497 LIBS="-lsocket -lnsl $LIBS"
2498 else
2499 echo "$ac_t""no" 1>&6
2500 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
2501 echo "configure:2502: checking for gethostbyname in -lresolv" >&5
2502 ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
2503 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2504 echo $ac_n "(cached) $ac_c" 1>&6
2505 else
2506 ac_save_LIBS="$LIBS"
2507 LIBS="-lresolv $LIBS"
2508 cat > conftest.$ac_ext <<EOF
2509 #line 2510 "configure"
2510 #include "confdefs.h"
2511 /* Override any gcc2 internal prototype to avoid an error. */
2512 /* We use char because int might match the return type of a gcc2
2513 builtin and then its argument prototype would still apply. */
2514 char gethostbyname();
2516 int main() {
2517 gethostbyname()
2518 ; return 0; }
2520 if { (eval echo configure:2521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2521 rm -rf conftest*
2522 eval "ac_cv_lib_$ac_lib_var=yes"
2523 else
2524 echo "configure: failed program was:" >&5
2525 cat conftest.$ac_ext >&5
2526 rm -rf conftest*
2527 eval "ac_cv_lib_$ac_lib_var=no"
2529 rm -f conftest*
2530 LIBS="$ac_save_LIBS"
2533 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2534 echo "$ac_t""yes" 1>&6
2535 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
2536 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2537 cat >> confdefs.h <<EOF
2538 #define $ac_tr_lib 1
2541 LIBS="-lresolv $LIBS"
2543 else
2544 echo "$ac_t""no" 1>&6
2558 echo $ac_n "checking for socket""... $ac_c" 1>&6
2559 echo "configure:2560: checking for socket" >&5
2560 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
2561 echo $ac_n "(cached) $ac_c" 1>&6
2562 else
2563 cat > conftest.$ac_ext <<EOF
2564 #line 2565 "configure"
2565 #include "confdefs.h"
2566 /* System header to define __stub macros and hopefully few prototypes,
2567 which can conflict with char socket(); below. */
2568 #include <assert.h>
2569 /* Override any gcc2 internal prototype to avoid an error. */
2570 /* We use char because int might match the return type of a gcc2
2571 builtin and then its argument prototype would still apply. */
2572 char socket();
2574 int main() {
2576 /* The GNU C library defines this for functions which it implements
2577 to always fail with ENOSYS. Some functions are actually named
2578 something starting with __ and the normal name is an alias. */
2579 #if defined (__stub_socket) || defined (__stub___socket)
2580 choke me
2581 #else
2582 socket();
2583 #endif
2585 ; return 0; }
2587 if { (eval echo configure:2588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2588 rm -rf conftest*
2589 eval "ac_cv_func_socket=yes"
2590 else
2591 echo "configure: failed program was:" >&5
2592 cat conftest.$ac_ext >&5
2593 rm -rf conftest*
2594 eval "ac_cv_func_socket=no"
2596 rm -f conftest*
2599 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
2600 echo "$ac_t""yes" 1>&6
2602 else
2603 echo "$ac_t""no" 1>&6
2604 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
2605 echo "configure:2606: checking for socket in -lsocket" >&5
2606 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2607 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2608 echo $ac_n "(cached) $ac_c" 1>&6
2609 else
2610 ac_save_LIBS="$LIBS"
2611 LIBS="-lsocket $LIBS"
2612 cat > conftest.$ac_ext <<EOF
2613 #line 2614 "configure"
2614 #include "confdefs.h"
2615 /* Override any gcc2 internal prototype to avoid an error. */
2616 /* We use char because int might match the return type of a gcc2
2617 builtin and then its argument prototype would still apply. */
2618 char socket();
2620 int main() {
2621 socket()
2622 ; return 0; }
2624 if { (eval echo configure:2625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2625 rm -rf conftest*
2626 eval "ac_cv_lib_$ac_lib_var=yes"
2627 else
2628 echo "configure: failed program was:" >&5
2629 cat conftest.$ac_ext >&5
2630 rm -rf conftest*
2631 eval "ac_cv_lib_$ac_lib_var=no"
2633 rm -f conftest*
2634 LIBS="$ac_save_LIBS"
2637 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2638 echo "$ac_t""yes" 1>&6
2639 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2640 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2641 cat >> confdefs.h <<EOF
2642 #define $ac_tr_lib 1
2645 LIBS="-lsocket $LIBS"
2647 else
2648 echo "$ac_t""no" 1>&6
2649 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
2650 echo "configure:2651: checking for socket in -lsocket" >&5
2651 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2652 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2653 echo $ac_n "(cached) $ac_c" 1>&6
2654 else
2655 ac_save_LIBS="$LIBS"
2656 LIBS="-lsocket -lnsl $LIBS"
2657 cat > conftest.$ac_ext <<EOF
2658 #line 2659 "configure"
2659 #include "confdefs.h"
2660 /* Override any gcc2 internal prototype to avoid an error. */
2661 /* We use char because int might match the return type of a gcc2
2662 builtin and then its argument prototype would still apply. */
2663 char socket();
2665 int main() {
2666 socket()
2667 ; return 0; }
2669 if { (eval echo configure:2670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2670 rm -rf conftest*
2671 eval "ac_cv_lib_$ac_lib_var=yes"
2672 else
2673 echo "configure: failed program was:" >&5
2674 cat conftest.$ac_ext >&5
2675 rm -rf conftest*
2676 eval "ac_cv_lib_$ac_lib_var=no"
2678 rm -f conftest*
2679 LIBS="$ac_save_LIBS"
2682 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2683 echo "$ac_t""yes" 1>&6
2684 LIBS="-lsocket -lnsl $LIBS"
2685 else
2686 echo "$ac_t""no" 1>&6
2694 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
2695 echo "configure:2696: checking for cos in -lm" >&5
2696 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
2697 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2698 echo $ac_n "(cached) $ac_c" 1>&6
2699 else
2700 ac_save_LIBS="$LIBS"
2701 LIBS="-lm $LIBS"
2702 cat > conftest.$ac_ext <<EOF
2703 #line 2704 "configure"
2704 #include "confdefs.h"
2705 /* Override any gcc2 internal prototype to avoid an error. */
2706 /* We use char because int might match the return type of a gcc2
2707 builtin and then its argument prototype would still apply. */
2708 char cos();
2710 int main() {
2711 cos()
2712 ; return 0; }
2714 if { (eval echo configure:2715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2715 rm -rf conftest*
2716 eval "ac_cv_lib_$ac_lib_var=yes"
2717 else
2718 echo "configure: failed program was:" >&5
2719 cat conftest.$ac_ext >&5
2720 rm -rf conftest*
2721 eval "ac_cv_lib_$ac_lib_var=no"
2723 rm -f conftest*
2724 LIBS="$ac_save_LIBS"
2727 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2728 echo "$ac_t""yes" 1>&6
2729 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2730 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2731 cat >> confdefs.h <<EOF
2732 #define $ac_tr_lib 1
2735 LIBS="-lm $LIBS"
2737 else
2738 echo "$ac_t""no" 1>&6
2742 # If we find X, set shell vars x_includes and x_libraries to the
2743 # paths, otherwise set no_x=yes.
2744 # Uses ac_ vars as temps to allow command line to override cache and checks.
2745 # --without-x overrides everything else, but does not touch the cache.
2746 echo $ac_n "checking for X""... $ac_c" 1>&6
2747 echo "configure:2748: checking for X" >&5
2749 # Check whether --with-x or --without-x was given.
2750 if test "${with_x+set}" = set; then
2751 withval="$with_x"
2755 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2756 if test "x$with_x" = xno; then
2757 # The user explicitly disabled X.
2758 have_x=disabled
2759 else
2760 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2761 # Both variables are already set.
2762 have_x=yes
2763 else
2764 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
2765 echo $ac_n "(cached) $ac_c" 1>&6
2766 else
2767 # One or both of the vars are not set, and there is no cached value.
2768 ac_x_includes=NO ac_x_libraries=NO
2769 rm -fr conftestdir
2770 if mkdir conftestdir; then
2771 cd conftestdir
2772 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2773 cat > Imakefile <<'EOF'
2774 acfindx:
2775 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2777 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2778 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2779 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2780 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2781 for ac_extension in a so sl; do
2782 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2783 test -f $ac_im_libdir/libX11.$ac_extension; then
2784 ac_im_usrlibdir=$ac_im_libdir; break
2786 done
2787 # Screen out bogus values from the imake configuration. They are
2788 # bogus both because they are the default anyway, and because
2789 # using them would break gcc on systems where it needs fixed includes.
2790 case "$ac_im_incroot" in
2791 /usr/include) ;;
2792 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
2793 esac
2794 case "$ac_im_usrlibdir" in
2795 /usr/lib | /lib) ;;
2796 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
2797 esac
2799 cd ..
2800 rm -fr conftestdir
2803 if test "$ac_x_includes" = NO; then
2804 # Guess where to find include files, by looking for this one X11 .h file.
2805 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
2807 # First, try using that file with no special directory specified.
2808 cat > conftest.$ac_ext <<EOF
2809 #line 2810 "configure"
2810 #include "confdefs.h"
2811 #include <$x_direct_test_include>
2813 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2814 { (eval echo configure:2815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2815 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2816 if test -z "$ac_err"; then
2817 rm -rf conftest*
2818 # We can compile using X headers with no special include directory.
2819 ac_x_includes=
2820 else
2821 echo "$ac_err" >&5
2822 echo "configure: failed program was:" >&5
2823 cat conftest.$ac_ext >&5
2824 rm -rf conftest*
2825 # Look for the header file in a standard set of common directories.
2826 # Check X11 before X11Rn because it is often a symlink to the current release.
2827 for ac_dir in \
2828 /usr/X11/include \
2829 /usr/X11R6/include \
2830 /usr/X11R5/include \
2831 /usr/X11R4/include \
2833 /usr/include/X11 \
2834 /usr/include/X11R6 \
2835 /usr/include/X11R5 \
2836 /usr/include/X11R4 \
2838 /usr/local/X11/include \
2839 /usr/local/X11R6/include \
2840 /usr/local/X11R5/include \
2841 /usr/local/X11R4/include \
2843 /usr/local/include/X11 \
2844 /usr/local/include/X11R6 \
2845 /usr/local/include/X11R5 \
2846 /usr/local/include/X11R4 \
2848 /usr/X386/include \
2849 /usr/x386/include \
2850 /usr/XFree86/include/X11 \
2852 /usr/include \
2853 /usr/local/include \
2854 /usr/unsupported/include \
2855 /usr/athena/include \
2856 /usr/local/x11r5/include \
2857 /usr/lpp/Xamples/include \
2859 /usr/openwin/include \
2860 /usr/openwin/share/include \
2863 if test -r "$ac_dir/$x_direct_test_include"; then
2864 ac_x_includes=$ac_dir
2865 break
2867 done
2869 rm -f conftest*
2870 fi # $ac_x_includes = NO
2872 if test "$ac_x_libraries" = NO; then
2873 # Check for the libraries.
2875 test -z "$x_direct_test_library" && x_direct_test_library=Xt
2876 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
2878 # See if we find them without any special options.
2879 # Don't add to $LIBS permanently.
2880 ac_save_LIBS="$LIBS"
2881 LIBS="-l$x_direct_test_library $LIBS"
2882 cat > conftest.$ac_ext <<EOF
2883 #line 2884 "configure"
2884 #include "confdefs.h"
2886 int main() {
2887 ${x_direct_test_function}()
2888 ; return 0; }
2890 if { (eval echo configure:2891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2891 rm -rf conftest*
2892 LIBS="$ac_save_LIBS"
2893 # We can link X programs with no special library path.
2894 ac_x_libraries=
2895 else
2896 echo "configure: failed program was:" >&5
2897 cat conftest.$ac_ext >&5
2898 rm -rf conftest*
2899 LIBS="$ac_save_LIBS"
2900 # First see if replacing the include by lib works.
2901 # Check X11 before X11Rn because it is often a symlink to the current release.
2902 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
2903 /usr/X11/lib \
2904 /usr/X11R6/lib \
2905 /usr/X11R5/lib \
2906 /usr/X11R4/lib \
2908 /usr/lib/X11 \
2909 /usr/lib/X11R6 \
2910 /usr/lib/X11R5 \
2911 /usr/lib/X11R4 \
2913 /usr/local/X11/lib \
2914 /usr/local/X11R6/lib \
2915 /usr/local/X11R5/lib \
2916 /usr/local/X11R4/lib \
2918 /usr/local/lib/X11 \
2919 /usr/local/lib/X11R6 \
2920 /usr/local/lib/X11R5 \
2921 /usr/local/lib/X11R4 \
2923 /usr/X386/lib \
2924 /usr/x386/lib \
2925 /usr/XFree86/lib/X11 \
2927 /usr/lib \
2928 /usr/local/lib \
2929 /usr/unsupported/lib \
2930 /usr/athena/lib \
2931 /usr/local/x11r5/lib \
2932 /usr/lpp/Xamples/lib \
2933 /lib/usr/lib/X11 \
2935 /usr/openwin/lib \
2936 /usr/openwin/share/lib \
2939 for ac_extension in a so sl; do
2940 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
2941 ac_x_libraries=$ac_dir
2942 break 2
2944 done
2945 done
2947 rm -f conftest*
2948 fi # $ac_x_libraries = NO
2950 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
2951 # Didn't find X anywhere. Cache the known absence of X.
2952 ac_cv_have_x="have_x=no"
2953 else
2954 # Record where we found X for the cache.
2955 ac_cv_have_x="have_x=yes \
2956 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2960 eval "$ac_cv_have_x"
2961 fi # $with_x != no
2963 if test "$have_x" != yes; then
2964 echo "$ac_t""$have_x" 1>&6
2965 no_x=yes
2966 else
2967 # If each of the values was on the command line, it overrides each guess.
2968 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2969 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2970 # Update the cache value to reflect the command line values.
2971 ac_cv_have_x="have_x=yes \
2972 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2973 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
2976 if test "$no_x" = yes; then
2977 # Not all programs may use this symbol, but it does not hurt to define it.
2978 cat >> confdefs.h <<\EOF
2979 #define X_DISPLAY_MISSING 1
2982 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2983 else
2984 if test -n "$x_includes"; then
2985 X_CFLAGS="$X_CFLAGS -I$x_includes"
2988 # It would also be nice to do this for all -L options, not just this one.
2989 if test -n "$x_libraries"; then
2990 X_LIBS="$X_LIBS -L$x_libraries"
2991 # For Solaris; some versions of Sun CC require a space after -R and
2992 # others require no space. Words are not sufficient . . . .
2993 case "`(uname -sr) 2>/dev/null`" in
2994 "SunOS 5"*)
2995 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
2996 echo "configure:2997: checking whether -R must be followed by a space" >&5
2997 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
2998 cat > conftest.$ac_ext <<EOF
2999 #line 3000 "configure"
3000 #include "confdefs.h"
3002 int main() {
3004 ; return 0; }
3006 if { (eval echo configure:3007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3007 rm -rf conftest*
3008 ac_R_nospace=yes
3009 else
3010 echo "configure: failed program was:" >&5
3011 cat conftest.$ac_ext >&5
3012 rm -rf conftest*
3013 ac_R_nospace=no
3015 rm -f conftest*
3016 if test $ac_R_nospace = yes; then
3017 echo "$ac_t""no" 1>&6
3018 X_LIBS="$X_LIBS -R$x_libraries"
3019 else
3020 LIBS="$ac_xsave_LIBS -R $x_libraries"
3021 cat > conftest.$ac_ext <<EOF
3022 #line 3023 "configure"
3023 #include "confdefs.h"
3025 int main() {
3027 ; return 0; }
3029 if { (eval echo configure:3030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3030 rm -rf conftest*
3031 ac_R_space=yes
3032 else
3033 echo "configure: failed program was:" >&5
3034 cat conftest.$ac_ext >&5
3035 rm -rf conftest*
3036 ac_R_space=no
3038 rm -f conftest*
3039 if test $ac_R_space = yes; then
3040 echo "$ac_t""yes" 1>&6
3041 X_LIBS="$X_LIBS -R $x_libraries"
3042 else
3043 echo "$ac_t""neither works" 1>&6
3046 LIBS="$ac_xsave_LIBS"
3047 esac
3050 # Check for system-dependent libraries X programs must link with.
3051 # Do this before checking for the system-independent R6 libraries
3052 # (-lICE), since we may need -lsocket or whatever for X linking.
3054 if test "$ISC" = yes; then
3055 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3056 else
3057 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3058 # libraries were built with DECnet support. And karl@cs.umb.edu says
3059 # the Alpha needs dnet_stub (dnet does not exist).
3060 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3061 echo "configure:3062: checking for dnet_ntoa in -ldnet" >&5
3062 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3063 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3064 echo $ac_n "(cached) $ac_c" 1>&6
3065 else
3066 ac_save_LIBS="$LIBS"
3067 LIBS="-ldnet $LIBS"
3068 cat > conftest.$ac_ext <<EOF
3069 #line 3070 "configure"
3070 #include "confdefs.h"
3071 /* Override any gcc2 internal prototype to avoid an error. */
3072 /* We use char because int might match the return type of a gcc2
3073 builtin and then its argument prototype would still apply. */
3074 char dnet_ntoa();
3076 int main() {
3077 dnet_ntoa()
3078 ; return 0; }
3080 if { (eval echo configure:3081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3081 rm -rf conftest*
3082 eval "ac_cv_lib_$ac_lib_var=yes"
3083 else
3084 echo "configure: failed program was:" >&5
3085 cat conftest.$ac_ext >&5
3086 rm -rf conftest*
3087 eval "ac_cv_lib_$ac_lib_var=no"
3089 rm -f conftest*
3090 LIBS="$ac_save_LIBS"
3093 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3094 echo "$ac_t""yes" 1>&6
3095 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3096 else
3097 echo "$ac_t""no" 1>&6
3100 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3101 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3102 echo "configure:3103: checking for dnet_ntoa in -ldnet_stub" >&5
3103 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3104 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3105 echo $ac_n "(cached) $ac_c" 1>&6
3106 else
3107 ac_save_LIBS="$LIBS"
3108 LIBS="-ldnet_stub $LIBS"
3109 cat > conftest.$ac_ext <<EOF
3110 #line 3111 "configure"
3111 #include "confdefs.h"
3112 /* Override any gcc2 internal prototype to avoid an error. */
3113 /* We use char because int might match the return type of a gcc2
3114 builtin and then its argument prototype would still apply. */
3115 char dnet_ntoa();
3117 int main() {
3118 dnet_ntoa()
3119 ; return 0; }
3121 if { (eval echo configure:3122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3122 rm -rf conftest*
3123 eval "ac_cv_lib_$ac_lib_var=yes"
3124 else
3125 echo "configure: failed program was:" >&5
3126 cat conftest.$ac_ext >&5
3127 rm -rf conftest*
3128 eval "ac_cv_lib_$ac_lib_var=no"
3130 rm -f conftest*
3131 LIBS="$ac_save_LIBS"
3134 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3135 echo "$ac_t""yes" 1>&6
3136 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3137 else
3138 echo "$ac_t""no" 1>&6
3143 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3144 # to get the SysV transport functions.
3145 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3146 # needs -lnsl.
3147 # The nsl library prevents programs from opening the X display
3148 # on Irix 5.2, according to dickey@clark.net.
3149 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3150 echo "configure:3151: checking for gethostbyname" >&5
3151 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3152 echo $ac_n "(cached) $ac_c" 1>&6
3153 else
3154 cat > conftest.$ac_ext <<EOF
3155 #line 3156 "configure"
3156 #include "confdefs.h"
3157 /* System header to define __stub macros and hopefully few prototypes,
3158 which can conflict with char gethostbyname(); below. */
3159 #include <assert.h>
3160 /* Override any gcc2 internal prototype to avoid an error. */
3161 /* We use char because int might match the return type of a gcc2
3162 builtin and then its argument prototype would still apply. */
3163 char gethostbyname();
3165 int main() {
3167 /* The GNU C library defines this for functions which it implements
3168 to always fail with ENOSYS. Some functions are actually named
3169 something starting with __ and the normal name is an alias. */
3170 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3171 choke me
3172 #else
3173 gethostbyname();
3174 #endif
3176 ; return 0; }
3178 if { (eval echo configure:3179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3179 rm -rf conftest*
3180 eval "ac_cv_func_gethostbyname=yes"
3181 else
3182 echo "configure: failed program was:" >&5
3183 cat conftest.$ac_ext >&5
3184 rm -rf conftest*
3185 eval "ac_cv_func_gethostbyname=no"
3187 rm -f conftest*
3190 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3191 echo "$ac_t""yes" 1>&6
3193 else
3194 echo "$ac_t""no" 1>&6
3197 if test $ac_cv_func_gethostbyname = no; then
3198 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3199 echo "configure:3200: checking for gethostbyname in -lnsl" >&5
3200 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3201 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3202 echo $ac_n "(cached) $ac_c" 1>&6
3203 else
3204 ac_save_LIBS="$LIBS"
3205 LIBS="-lnsl $LIBS"
3206 cat > conftest.$ac_ext <<EOF
3207 #line 3208 "configure"
3208 #include "confdefs.h"
3209 /* Override any gcc2 internal prototype to avoid an error. */
3210 /* We use char because int might match the return type of a gcc2
3211 builtin and then its argument prototype would still apply. */
3212 char gethostbyname();
3214 int main() {
3215 gethostbyname()
3216 ; return 0; }
3218 if { (eval echo configure:3219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3219 rm -rf conftest*
3220 eval "ac_cv_lib_$ac_lib_var=yes"
3221 else
3222 echo "configure: failed program was:" >&5
3223 cat conftest.$ac_ext >&5
3224 rm -rf conftest*
3225 eval "ac_cv_lib_$ac_lib_var=no"
3227 rm -f conftest*
3228 LIBS="$ac_save_LIBS"
3231 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3232 echo "$ac_t""yes" 1>&6
3233 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3234 else
3235 echo "$ac_t""no" 1>&6
3240 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3241 # socket/setsockopt and other routines are undefined under SCO ODT
3242 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3243 # on later versions), says simon@lia.di.epfl.ch: it contains
3244 # gethostby* variants that don't use the nameserver (or something).
3245 # -lsocket must be given before -lnsl if both are needed.
3246 # We assume that if connect needs -lnsl, so does gethostbyname.
3247 echo $ac_n "checking for connect""... $ac_c" 1>&6
3248 echo "configure:3249: checking for connect" >&5
3249 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3250 echo $ac_n "(cached) $ac_c" 1>&6
3251 else
3252 cat > conftest.$ac_ext <<EOF
3253 #line 3254 "configure"
3254 #include "confdefs.h"
3255 /* System header to define __stub macros and hopefully few prototypes,
3256 which can conflict with char connect(); below. */
3257 #include <assert.h>
3258 /* Override any gcc2 internal prototype to avoid an error. */
3259 /* We use char because int might match the return type of a gcc2
3260 builtin and then its argument prototype would still apply. */
3261 char connect();
3263 int main() {
3265 /* The GNU C library defines this for functions which it implements
3266 to always fail with ENOSYS. Some functions are actually named
3267 something starting with __ and the normal name is an alias. */
3268 #if defined (__stub_connect) || defined (__stub___connect)
3269 choke me
3270 #else
3271 connect();
3272 #endif
3274 ; return 0; }
3276 if { (eval echo configure:3277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3277 rm -rf conftest*
3278 eval "ac_cv_func_connect=yes"
3279 else
3280 echo "configure: failed program was:" >&5
3281 cat conftest.$ac_ext >&5
3282 rm -rf conftest*
3283 eval "ac_cv_func_connect=no"
3285 rm -f conftest*
3288 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3289 echo "$ac_t""yes" 1>&6
3291 else
3292 echo "$ac_t""no" 1>&6
3295 if test $ac_cv_func_connect = no; then
3296 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3297 echo "configure:3298: checking for connect in -lsocket" >&5
3298 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3299 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3300 echo $ac_n "(cached) $ac_c" 1>&6
3301 else
3302 ac_save_LIBS="$LIBS"
3303 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3304 cat > conftest.$ac_ext <<EOF
3305 #line 3306 "configure"
3306 #include "confdefs.h"
3307 /* Override any gcc2 internal prototype to avoid an error. */
3308 /* We use char because int might match the return type of a gcc2
3309 builtin and then its argument prototype would still apply. */
3310 char connect();
3312 int main() {
3313 connect()
3314 ; return 0; }
3316 if { (eval echo configure:3317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3317 rm -rf conftest*
3318 eval "ac_cv_lib_$ac_lib_var=yes"
3319 else
3320 echo "configure: failed program was:" >&5
3321 cat conftest.$ac_ext >&5
3322 rm -rf conftest*
3323 eval "ac_cv_lib_$ac_lib_var=no"
3325 rm -f conftest*
3326 LIBS="$ac_save_LIBS"
3329 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3330 echo "$ac_t""yes" 1>&6
3331 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3332 else
3333 echo "$ac_t""no" 1>&6
3338 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
3339 echo $ac_n "checking for remove""... $ac_c" 1>&6
3340 echo "configure:3341: checking for remove" >&5
3341 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
3342 echo $ac_n "(cached) $ac_c" 1>&6
3343 else
3344 cat > conftest.$ac_ext <<EOF
3345 #line 3346 "configure"
3346 #include "confdefs.h"
3347 /* System header to define __stub macros and hopefully few prototypes,
3348 which can conflict with char remove(); below. */
3349 #include <assert.h>
3350 /* Override any gcc2 internal prototype to avoid an error. */
3351 /* We use char because int might match the return type of a gcc2
3352 builtin and then its argument prototype would still apply. */
3353 char remove();
3355 int main() {
3357 /* The GNU C library defines this for functions which it implements
3358 to always fail with ENOSYS. Some functions are actually named
3359 something starting with __ and the normal name is an alias. */
3360 #if defined (__stub_remove) || defined (__stub___remove)
3361 choke me
3362 #else
3363 remove();
3364 #endif
3366 ; return 0; }
3368 if { (eval echo configure:3369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3369 rm -rf conftest*
3370 eval "ac_cv_func_remove=yes"
3371 else
3372 echo "configure: failed program was:" >&5
3373 cat conftest.$ac_ext >&5
3374 rm -rf conftest*
3375 eval "ac_cv_func_remove=no"
3377 rm -f conftest*
3380 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
3381 echo "$ac_t""yes" 1>&6
3383 else
3384 echo "$ac_t""no" 1>&6
3387 if test $ac_cv_func_remove = no; then
3388 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
3389 echo "configure:3390: checking for remove in -lposix" >&5
3390 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
3391 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3392 echo $ac_n "(cached) $ac_c" 1>&6
3393 else
3394 ac_save_LIBS="$LIBS"
3395 LIBS="-lposix $LIBS"
3396 cat > conftest.$ac_ext <<EOF
3397 #line 3398 "configure"
3398 #include "confdefs.h"
3399 /* Override any gcc2 internal prototype to avoid an error. */
3400 /* We use char because int might match the return type of a gcc2
3401 builtin and then its argument prototype would still apply. */
3402 char remove();
3404 int main() {
3405 remove()
3406 ; return 0; }
3408 if { (eval echo configure:3409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3409 rm -rf conftest*
3410 eval "ac_cv_lib_$ac_lib_var=yes"
3411 else
3412 echo "configure: failed program was:" >&5
3413 cat conftest.$ac_ext >&5
3414 rm -rf conftest*
3415 eval "ac_cv_lib_$ac_lib_var=no"
3417 rm -f conftest*
3418 LIBS="$ac_save_LIBS"
3421 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3422 echo "$ac_t""yes" 1>&6
3423 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3424 else
3425 echo "$ac_t""no" 1>&6
3430 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3431 echo $ac_n "checking for shmat""... $ac_c" 1>&6
3432 echo "configure:3433: checking for shmat" >&5
3433 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
3434 echo $ac_n "(cached) $ac_c" 1>&6
3435 else
3436 cat > conftest.$ac_ext <<EOF
3437 #line 3438 "configure"
3438 #include "confdefs.h"
3439 /* System header to define __stub macros and hopefully few prototypes,
3440 which can conflict with char shmat(); below. */
3441 #include <assert.h>
3442 /* Override any gcc2 internal prototype to avoid an error. */
3443 /* We use char because int might match the return type of a gcc2
3444 builtin and then its argument prototype would still apply. */
3445 char shmat();
3447 int main() {
3449 /* The GNU C library defines this for functions which it implements
3450 to always fail with ENOSYS. Some functions are actually named
3451 something starting with __ and the normal name is an alias. */
3452 #if defined (__stub_shmat) || defined (__stub___shmat)
3453 choke me
3454 #else
3455 shmat();
3456 #endif
3458 ; return 0; }
3460 if { (eval echo configure:3461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3461 rm -rf conftest*
3462 eval "ac_cv_func_shmat=yes"
3463 else
3464 echo "configure: failed program was:" >&5
3465 cat conftest.$ac_ext >&5
3466 rm -rf conftest*
3467 eval "ac_cv_func_shmat=no"
3469 rm -f conftest*
3472 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
3473 echo "$ac_t""yes" 1>&6
3475 else
3476 echo "$ac_t""no" 1>&6
3479 if test $ac_cv_func_shmat = no; then
3480 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
3481 echo "configure:3482: checking for shmat in -lipc" >&5
3482 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
3483 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3484 echo $ac_n "(cached) $ac_c" 1>&6
3485 else
3486 ac_save_LIBS="$LIBS"
3487 LIBS="-lipc $LIBS"
3488 cat > conftest.$ac_ext <<EOF
3489 #line 3490 "configure"
3490 #include "confdefs.h"
3491 /* Override any gcc2 internal prototype to avoid an error. */
3492 /* We use char because int might match the return type of a gcc2
3493 builtin and then its argument prototype would still apply. */
3494 char shmat();
3496 int main() {
3497 shmat()
3498 ; return 0; }
3500 if { (eval echo configure:3501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3501 rm -rf conftest*
3502 eval "ac_cv_lib_$ac_lib_var=yes"
3503 else
3504 echo "configure: failed program was:" >&5
3505 cat conftest.$ac_ext >&5
3506 rm -rf conftest*
3507 eval "ac_cv_lib_$ac_lib_var=no"
3509 rm -f conftest*
3510 LIBS="$ac_save_LIBS"
3513 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3514 echo "$ac_t""yes" 1>&6
3515 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3516 else
3517 echo "$ac_t""no" 1>&6
3523 # Check for libraries that X11R6 Xt/Xaw programs need.
3524 ac_save_LDFLAGS="$LDFLAGS"
3525 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3526 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3527 # check for ICE first), but we must link in the order -lSM -lICE or
3528 # we get undefined symbols. So assume we have SM if we have ICE.
3529 # These have to be linked with before -lX11, unlike the other
3530 # libraries we check for below, so use a different variable.
3531 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
3532 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
3533 echo "configure:3534: checking for IceConnectionNumber in -lICE" >&5
3534 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
3535 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3536 echo $ac_n "(cached) $ac_c" 1>&6
3537 else
3538 ac_save_LIBS="$LIBS"
3539 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3540 cat > conftest.$ac_ext <<EOF
3541 #line 3542 "configure"
3542 #include "confdefs.h"
3543 /* Override any gcc2 internal prototype to avoid an error. */
3544 /* We use char because int might match the return type of a gcc2
3545 builtin and then its argument prototype would still apply. */
3546 char IceConnectionNumber();
3548 int main() {
3549 IceConnectionNumber()
3550 ; return 0; }
3552 if { (eval echo configure:3553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3553 rm -rf conftest*
3554 eval "ac_cv_lib_$ac_lib_var=yes"
3555 else
3556 echo "configure: failed program was:" >&5
3557 cat conftest.$ac_ext >&5
3558 rm -rf conftest*
3559 eval "ac_cv_lib_$ac_lib_var=no"
3561 rm -f conftest*
3562 LIBS="$ac_save_LIBS"
3565 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3566 echo "$ac_t""yes" 1>&6
3567 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3568 else
3569 echo "$ac_t""no" 1>&6
3572 LDFLAGS="$ac_save_LDFLAGS"
3576 for ac_hdr in stdlib.h fcntl.h unistd.h
3578 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3579 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3580 echo "configure:3581: checking for $ac_hdr" >&5
3581 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3582 echo $ac_n "(cached) $ac_c" 1>&6
3583 else
3584 cat > conftest.$ac_ext <<EOF
3585 #line 3586 "configure"
3586 #include "confdefs.h"
3587 #include <$ac_hdr>
3589 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3590 { (eval echo configure:3591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3591 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3592 if test -z "$ac_err"; then
3593 rm -rf conftest*
3594 eval "ac_cv_header_$ac_safe=yes"
3595 else
3596 echo "$ac_err" >&5
3597 echo "configure: failed program was:" >&5
3598 cat conftest.$ac_ext >&5
3599 rm -rf conftest*
3600 eval "ac_cv_header_$ac_safe=no"
3602 rm -f conftest*
3604 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3605 echo "$ac_t""yes" 1>&6
3606 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3607 cat >> confdefs.h <<EOF
3608 #define $ac_tr_hdr 1
3611 else
3612 echo "$ac_t""no" 1>&6
3614 done
3617 echo $ac_n "checking for working const""... $ac_c" 1>&6
3618 echo "configure:3619: checking for working const" >&5
3619 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3620 echo $ac_n "(cached) $ac_c" 1>&6
3621 else
3622 cat > conftest.$ac_ext <<EOF
3623 #line 3624 "configure"
3624 #include "confdefs.h"
3626 int main() {
3628 /* Ultrix mips cc rejects this. */
3629 typedef int charset[2]; const charset x;
3630 /* SunOS 4.1.1 cc rejects this. */
3631 char const *const *ccp;
3632 char **p;
3633 /* NEC SVR4.0.2 mips cc rejects this. */
3634 struct point {int x, y;};
3635 static struct point const zero = {0,0};
3636 /* AIX XL C 1.02.0.0 rejects this.
3637 It does not let you subtract one const X* pointer from another in an arm
3638 of an if-expression whose if-part is not a constant expression */
3639 const char *g = "string";
3640 ccp = &g + (g ? g-g : 0);
3641 /* HPUX 7.0 cc rejects these. */
3642 ++ccp;
3643 p = (char**) ccp;
3644 ccp = (char const *const *) p;
3645 { /* SCO 3.2v4 cc rejects this. */
3646 char *t;
3647 char const *s = 0 ? (char *) 0 : (char const *) 0;
3649 *t++ = 0;
3651 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3652 int x[] = {25, 17};
3653 const int *foo = &x[0];
3654 ++foo;
3656 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3657 typedef const int *iptr;
3658 iptr p = 0;
3659 ++p;
3661 { /* AIX XL C 1.02.0.0 rejects this saying
3662 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3663 struct s { int j; const int *ap[3]; };
3664 struct s *b; b->j = 5;
3666 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3667 const int foo = 10;
3670 ; return 0; }
3672 if { (eval echo configure:3673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3673 rm -rf conftest*
3674 ac_cv_c_const=yes
3675 else
3676 echo "configure: failed program was:" >&5
3677 cat conftest.$ac_ext >&5
3678 rm -rf conftest*
3679 ac_cv_c_const=no
3681 rm -f conftest*
3684 echo "$ac_t""$ac_cv_c_const" 1>&6
3685 if test $ac_cv_c_const = no; then
3686 cat >> confdefs.h <<\EOF
3687 #define const
3692 echo $ac_n "checking size of int""... $ac_c" 1>&6
3693 echo "configure:3694: checking size of int" >&5
3694 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3695 echo $ac_n "(cached) $ac_c" 1>&6
3696 else
3697 if test "$cross_compiling" = yes; then
3698 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3699 else
3700 cat > conftest.$ac_ext <<EOF
3701 #line 3702 "configure"
3702 #include "confdefs.h"
3703 #include <stdio.h>
3704 main()
3706 FILE *f=fopen("conftestval", "w");
3707 if (!f) exit(1);
3708 fprintf(f, "%d\n", sizeof(int));
3709 exit(0);
3712 if { (eval echo configure:3713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3713 then
3714 ac_cv_sizeof_int=`cat conftestval`
3715 else
3716 echo "configure: failed program was:" >&5
3717 cat conftest.$ac_ext >&5
3718 rm -fr conftest*
3719 ac_cv_sizeof_int=0
3721 rm -fr conftest*
3725 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3726 cat >> confdefs.h <<EOF
3727 #define SIZEOF_INT $ac_cv_sizeof_int
3731 echo $ac_n "checking size of long""... $ac_c" 1>&6
3732 echo "configure:3733: checking size of long" >&5
3733 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3734 echo $ac_n "(cached) $ac_c" 1>&6
3735 else
3736 if test "$cross_compiling" = yes; then
3737 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3738 else
3739 cat > conftest.$ac_ext <<EOF
3740 #line 3741 "configure"
3741 #include "confdefs.h"
3742 #include <stdio.h>
3743 main()
3745 FILE *f=fopen("conftestval", "w");
3746 if (!f) exit(1);
3747 fprintf(f, "%d\n", sizeof(long));
3748 exit(0);
3751 if { (eval echo configure:3752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3752 then
3753 ac_cv_sizeof_long=`cat conftestval`
3754 else
3755 echo "configure: failed program was:" >&5
3756 cat conftest.$ac_ext >&5
3757 rm -fr conftest*
3758 ac_cv_sizeof_long=0
3760 rm -fr conftest*
3764 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3765 cat >> confdefs.h <<EOF
3766 #define SIZEOF_LONG $ac_cv_sizeof_long
3772 for ac_hdr in unistd.h
3774 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3775 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3776 echo "configure:3777: checking for $ac_hdr" >&5
3777 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3778 echo $ac_n "(cached) $ac_c" 1>&6
3779 else
3780 cat > conftest.$ac_ext <<EOF
3781 #line 3782 "configure"
3782 #include "confdefs.h"
3783 #include <$ac_hdr>
3785 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3786 { (eval echo configure:3787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3787 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3788 if test -z "$ac_err"; then
3789 rm -rf conftest*
3790 eval "ac_cv_header_$ac_safe=yes"
3791 else
3792 echo "$ac_err" >&5
3793 echo "configure: failed program was:" >&5
3794 cat conftest.$ac_ext >&5
3795 rm -rf conftest*
3796 eval "ac_cv_header_$ac_safe=no"
3798 rm -f conftest*
3800 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3801 echo "$ac_t""yes" 1>&6
3802 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3803 cat >> confdefs.h <<EOF
3804 #define $ac_tr_hdr 1
3807 else
3808 echo "$ac_t""no" 1>&6
3810 done
3812 for ac_func in getpagesize
3814 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3815 echo "configure:3816: checking for $ac_func" >&5
3816 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3817 echo $ac_n "(cached) $ac_c" 1>&6
3818 else
3819 cat > conftest.$ac_ext <<EOF
3820 #line 3821 "configure"
3821 #include "confdefs.h"
3822 /* System header to define __stub macros and hopefully few prototypes,
3823 which can conflict with char $ac_func(); below. */
3824 #include <assert.h>
3825 /* Override any gcc2 internal prototype to avoid an error. */
3826 /* We use char because int might match the return type of a gcc2
3827 builtin and then its argument prototype would still apply. */
3828 char $ac_func();
3830 int main() {
3832 /* The GNU C library defines this for functions which it implements
3833 to always fail with ENOSYS. Some functions are actually named
3834 something starting with __ and the normal name is an alias. */
3835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3836 choke me
3837 #else
3838 $ac_func();
3839 #endif
3841 ; return 0; }
3843 if { (eval echo configure:3844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3844 rm -rf conftest*
3845 eval "ac_cv_func_$ac_func=yes"
3846 else
3847 echo "configure: failed program was:" >&5
3848 cat conftest.$ac_ext >&5
3849 rm -rf conftest*
3850 eval "ac_cv_func_$ac_func=no"
3852 rm -f conftest*
3855 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3856 echo "$ac_t""yes" 1>&6
3857 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3858 cat >> confdefs.h <<EOF
3859 #define $ac_tr_func 1
3862 else
3863 echo "$ac_t""no" 1>&6
3865 done
3867 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3868 echo "configure:3869: checking for working mmap" >&5
3869 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3870 echo $ac_n "(cached) $ac_c" 1>&6
3871 else
3872 if test "$cross_compiling" = yes; then
3873 ac_cv_func_mmap_fixed_mapped=no
3874 else
3875 cat > conftest.$ac_ext <<EOF
3876 #line 3877 "configure"
3877 #include "confdefs.h"
3879 /* Thanks to Mike Haertel and Jim Avera for this test.
3880 Here is a matrix of mmap possibilities:
3881 mmap private not fixed
3882 mmap private fixed at somewhere currently unmapped
3883 mmap private fixed at somewhere already mapped
3884 mmap shared not fixed
3885 mmap shared fixed at somewhere currently unmapped
3886 mmap shared fixed at somewhere already mapped
3887 For private mappings, we should verify that changes cannot be read()
3888 back from the file, nor mmap's back from the file at a different
3889 address. (There have been systems where private was not correctly
3890 implemented like the infamous i386 svr4.0, and systems where the
3891 VM page cache was not coherent with the filesystem buffer cache
3892 like early versions of FreeBSD and possibly contemporary NetBSD.)
3893 For shared mappings, we should conversely verify that changes get
3894 propogated back to all the places they're supposed to be.
3896 Grep wants private fixed already mapped.
3897 The main things grep needs to know about mmap are:
3898 * does it exist and is it safe to write into the mmap'd area
3899 * how to use it (BSD variants) */
3900 #include <sys/types.h>
3901 #include <fcntl.h>
3902 #include <sys/mman.h>
3904 /* This mess was copied from the GNU getpagesize.h. */
3905 #ifndef HAVE_GETPAGESIZE
3906 # ifdef HAVE_UNISTD_H
3907 # include <unistd.h>
3908 # endif
3910 /* Assume that all systems that can run configure have sys/param.h. */
3911 # ifndef HAVE_SYS_PARAM_H
3912 # define HAVE_SYS_PARAM_H 1
3913 # endif
3915 # ifdef _SC_PAGESIZE
3916 # define getpagesize() sysconf(_SC_PAGESIZE)
3917 # else /* no _SC_PAGESIZE */
3918 # ifdef HAVE_SYS_PARAM_H
3919 # include <sys/param.h>
3920 # ifdef EXEC_PAGESIZE
3921 # define getpagesize() EXEC_PAGESIZE
3922 # else /* no EXEC_PAGESIZE */
3923 # ifdef NBPG
3924 # define getpagesize() NBPG * CLSIZE
3925 # ifndef CLSIZE
3926 # define CLSIZE 1
3927 # endif /* no CLSIZE */
3928 # else /* no NBPG */
3929 # ifdef NBPC
3930 # define getpagesize() NBPC
3931 # else /* no NBPC */
3932 # ifdef PAGESIZE
3933 # define getpagesize() PAGESIZE
3934 # endif /* PAGESIZE */
3935 # endif /* no NBPC */
3936 # endif /* no NBPG */
3937 # endif /* no EXEC_PAGESIZE */
3938 # else /* no HAVE_SYS_PARAM_H */
3939 # define getpagesize() 8192 /* punt totally */
3940 # endif /* no HAVE_SYS_PARAM_H */
3941 # endif /* no _SC_PAGESIZE */
3943 #endif /* no HAVE_GETPAGESIZE */
3945 #ifdef __cplusplus
3946 extern "C" { void *malloc(unsigned); }
3947 #else
3948 char *malloc();
3949 #endif
3952 main()
3954 char *data, *data2, *data3;
3955 int i, pagesize;
3956 int fd;
3958 pagesize = getpagesize();
3961 * First, make a file with some known garbage in it.
3963 data = malloc(pagesize);
3964 if (!data)
3965 exit(1);
3966 for (i = 0; i < pagesize; ++i)
3967 *(data + i) = rand();
3968 umask(0);
3969 fd = creat("conftestmmap", 0600);
3970 if (fd < 0)
3971 exit(1);
3972 if (write(fd, data, pagesize) != pagesize)
3973 exit(1);
3974 close(fd);
3977 * Next, try to mmap the file at a fixed address which
3978 * already has something else allocated at it. If we can,
3979 * also make sure that we see the same garbage.
3981 fd = open("conftestmmap", O_RDWR);
3982 if (fd < 0)
3983 exit(1);
3984 data2 = malloc(2 * pagesize);
3985 if (!data2)
3986 exit(1);
3987 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3988 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3989 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3990 exit(1);
3991 for (i = 0; i < pagesize; ++i)
3992 if (*(data + i) != *(data2 + i))
3993 exit(1);
3996 * Finally, make sure that changes to the mapped area
3997 * do not percolate back to the file as seen by read().
3998 * (This is a bug on some variants of i386 svr4.0.)
4000 for (i = 0; i < pagesize; ++i)
4001 *(data2 + i) = *(data2 + i) + 1;
4002 data3 = malloc(pagesize);
4003 if (!data3)
4004 exit(1);
4005 if (read(fd, data3, pagesize) != pagesize)
4006 exit(1);
4007 for (i = 0; i < pagesize; ++i)
4008 if (*(data + i) != *(data3 + i))
4009 exit(1);
4010 close(fd);
4011 unlink("conftestmmap");
4012 exit(0);
4016 if { (eval echo configure:4017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4017 then
4018 ac_cv_func_mmap_fixed_mapped=yes
4019 else
4020 echo "configure: failed program was:" >&5
4021 cat conftest.$ac_ext >&5
4022 rm -fr conftest*
4023 ac_cv_func_mmap_fixed_mapped=no
4025 rm -fr conftest*
4030 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
4031 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4032 cat >> confdefs.h <<\EOF
4033 #define HAVE_MMAP 1
4038 if test "$ac_cv_func_mmap_fixed_mapped" != yes; then
4039 TT_FILE_COMPONENT=ttfile.c
4040 else
4041 TT_FILE_COMPONENT=arch/unix/ttmmap.c
4045 for ac_func in memcpy memmove
4047 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4048 echo "configure:4049: checking for $ac_func" >&5
4049 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4050 echo $ac_n "(cached) $ac_c" 1>&6
4051 else
4052 cat > conftest.$ac_ext <<EOF
4053 #line 4054 "configure"
4054 #include "confdefs.h"
4055 /* System header to define __stub macros and hopefully few prototypes,
4056 which can conflict with char $ac_func(); below. */
4057 #include <assert.h>
4058 /* Override any gcc2 internal prototype to avoid an error. */
4059 /* We use char because int might match the return type of a gcc2
4060 builtin and then its argument prototype would still apply. */
4061 char $ac_func();
4063 int main() {
4065 /* The GNU C library defines this for functions which it implements
4066 to always fail with ENOSYS. Some functions are actually named
4067 something starting with __ and the normal name is an alias. */
4068 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4069 choke me
4070 #else
4071 $ac_func();
4072 #endif
4074 ; return 0; }
4076 if { (eval echo configure:4077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4077 rm -rf conftest*
4078 eval "ac_cv_func_$ac_func=yes"
4079 else
4080 echo "configure: failed program was:" >&5
4081 cat conftest.$ac_ext >&5
4082 rm -rf conftest*
4083 eval "ac_cv_func_$ac_func=no"
4085 rm -f conftest*
4088 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4089 echo "$ac_t""yes" 1>&6
4090 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4091 cat >> confdefs.h <<EOF
4092 #define $ac_tr_func 1
4095 else
4096 echo "$ac_t""no" 1>&6
4098 done
4103 $srcdir/mkinstalldirs lib/arch/unix test/arch/unix
4105 trap '' 1 2 15
4106 cat > confcache <<\EOF
4107 # This file is a shell script that caches the results of configure
4108 # tests run on this system so they can be shared between configure
4109 # scripts and configure runs. It is not useful on other systems.
4110 # If it contains results you don't want to keep, you may remove or edit it.
4112 # By default, configure uses ./config.cache as the cache file,
4113 # creating it if it does not exist already. You can give configure
4114 # the --cache-file=FILE option to use a different cache file; that is
4115 # what configure does when it calls configure scripts in
4116 # subdirectories, so they share the cache.
4117 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4118 # config.status only pays attention to the cache file if you give it the
4119 # --recheck option to rerun configure.
4122 # The following way of writing the cache mishandles newlines in values,
4123 # but we know of no workaround that is simple, portable, and efficient.
4124 # So, don't put newlines in cache variables' values.
4125 # Ultrix sh set writes to stderr and can't be redirected directly,
4126 # and sets the high bit in the cache file unless we assign to the vars.
4127 (set) 2>&1 |
4128 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4129 *ac_space=\ *)
4130 # `set' does not quote correctly, so add quotes (double-quote substitution
4131 # turns \\\\ into \\, and sed turns \\ into \).
4132 sed -n \
4133 -e "s/'/'\\\\''/g" \
4134 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4137 # `set' quotes correctly as required by POSIX, so do not add quotes.
4138 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4140 esac >> confcache
4141 if cmp -s $cache_file confcache; then
4143 else
4144 if test -w $cache_file; then
4145 echo "updating cache $cache_file"
4146 cat confcache > $cache_file
4147 else
4148 echo "not updating unwritable cache $cache_file"
4151 rm -f confcache
4153 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4155 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4156 # Let make expand exec_prefix.
4157 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4159 # Any assignment to VPATH causes Sun make to only execute
4160 # the first set of double-colon rules, so remove it if not needed.
4161 # If there is a colon in the path, we need to keep it.
4162 if test "x$srcdir" = x.; then
4163 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4166 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4168 DEFS=-DHAVE_CONFIG_H
4170 # Without the "./", some shells look in PATH for config.status.
4171 : ${CONFIG_STATUS=./config.status}
4173 echo creating $CONFIG_STATUS
4174 rm -f $CONFIG_STATUS
4175 cat > $CONFIG_STATUS <<EOF
4176 #! /bin/sh
4177 # Generated automatically by configure.
4178 # Run this file to recreate the current configuration.
4179 # This directory was configured as follows,
4180 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4182 # $0 $ac_configure_args
4184 # Compiler output produced by configure, useful for debugging
4185 # configure, is in ./config.log if it exists.
4187 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4188 for ac_option
4190 case "\$ac_option" in
4191 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4192 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4193 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4194 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4195 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4196 exit 0 ;;
4197 -help | --help | --hel | --he | --h)
4198 echo "\$ac_cs_usage"; exit 0 ;;
4199 *) echo "\$ac_cs_usage"; exit 1 ;;
4200 esac
4201 done
4203 ac_given_srcdir=$srcdir
4204 ac_given_INSTALL="$INSTALL"
4206 trap 'rm -fr `echo "Makefile
4207 MakeSub
4208 lib/arch/unix/Makefile
4209 test/arch/unix/Makefile
4210 po/Makefile.in ft_conf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4212 cat >> $CONFIG_STATUS <<EOF
4214 # Protect against being on the right side of a sed subst in config.status.
4215 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4216 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4217 $ac_vpsub
4218 $extrasub
4219 s%@SHELL@%$SHELL%g
4220 s%@CFLAGS@%$CFLAGS%g
4221 s%@CPPFLAGS@%$CPPFLAGS%g
4222 s%@CXXFLAGS@%$CXXFLAGS%g
4223 s%@FFLAGS@%$FFLAGS%g
4224 s%@DEFS@%$DEFS%g
4225 s%@LDFLAGS@%$LDFLAGS%g
4226 s%@LIBS@%$LIBS%g
4227 s%@exec_prefix@%$exec_prefix%g
4228 s%@prefix@%$prefix%g
4229 s%@program_transform_name@%$program_transform_name%g
4230 s%@bindir@%$bindir%g
4231 s%@sbindir@%$sbindir%g
4232 s%@libexecdir@%$libexecdir%g
4233 s%@datadir@%$datadir%g
4234 s%@sysconfdir@%$sysconfdir%g
4235 s%@sharedstatedir@%$sharedstatedir%g
4236 s%@localstatedir@%$localstatedir%g
4237 s%@libdir@%$libdir%g
4238 s%@includedir@%$includedir%g
4239 s%@oldincludedir@%$oldincludedir%g
4240 s%@infodir@%$infodir%g
4241 s%@mandir@%$mandir%g
4242 s%@host@%$host%g
4243 s%@host_alias@%$host_alias%g
4244 s%@host_cpu@%$host_cpu%g
4245 s%@host_vendor@%$host_vendor%g
4246 s%@host_os@%$host_os%g
4247 s%@build@%$build%g
4248 s%@build_alias@%$build_alias%g
4249 s%@build_cpu@%$build_cpu%g
4250 s%@build_vendor@%$build_vendor%g
4251 s%@build_os@%$build_os%g
4252 s%@RANLIB@%$RANLIB%g
4253 s%@CC@%$CC%g
4254 s%@LD@%$LD%g
4255 s%@NM@%$NM%g
4256 s%@LN_S@%$LN_S%g
4257 s%@LIBTOOL@%$LIBTOOL%g
4258 s%@USE_NLS@%$USE_NLS%g
4259 s%@target@%$target%g
4260 s%@target_alias@%$target_alias%g
4261 s%@target_cpu@%$target_cpu%g
4262 s%@target_vendor@%$target_vendor%g
4263 s%@target_os@%$target_os%g
4264 s%@CPP@%$CPP%g
4265 s%@XX_CFLAGS@%$XX_CFLAGS%g
4266 s%@freetype_version@%$freetype_version%g
4267 s%@version_info@%$version_info%g
4268 s%@SET_MAKE@%$SET_MAKE%g
4269 s%@HAVE_LOCALE_H@%$HAVE_LOCALE_H%g
4270 s%@HAVE_LIBINTL_H@%$HAVE_LIBINTL_H%g
4271 s%@HAVE_LIBINTL@%$HAVE_LIBINTL%g
4272 s%@LOCALEDIR@%$LOCALEDIR%g
4273 s%@MSGFMT@%$MSGFMT%g
4274 s%@GMSGFMT@%$GMSGFMT%g
4275 s%@XGETTEXT@%$XGETTEXT%g
4276 s%@MSGMERGE@%$MSGMERGE%g
4277 s%@CATALOGS@%$CATALOGS%g
4278 s%@CATOBJEXT@%$CATOBJEXT%g
4279 s%@INSTOBJEXT@%$INSTOBJEXT%g
4280 s%@DATADIRNAME@%$DATADIRNAME%g
4281 s%@RM@%$RM%g
4282 s%@RMDIR@%$RMDIR%g
4283 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4284 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4285 s%@INSTALL_DATA@%$INSTALL_DATA%g
4286 s%@X_CFLAGS@%$X_CFLAGS%g
4287 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
4288 s%@X_LIBS@%$X_LIBS%g
4289 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
4290 s%@TT_FILE_COMPONENT@%$TT_FILE_COMPONENT%g
4292 CEOF
4295 cat >> $CONFIG_STATUS <<\EOF
4297 # Split the substitutions into bite-sized pieces for seds with
4298 # small command number limits, like on Digital OSF/1 and HP-UX.
4299 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4300 ac_file=1 # Number of current file.
4301 ac_beg=1 # First line for current file.
4302 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4303 ac_more_lines=:
4304 ac_sed_cmds=""
4305 while $ac_more_lines; do
4306 if test $ac_beg -gt 1; then
4307 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4308 else
4309 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4311 if test ! -s conftest.s$ac_file; then
4312 ac_more_lines=false
4313 rm -f conftest.s$ac_file
4314 else
4315 if test -z "$ac_sed_cmds"; then
4316 ac_sed_cmds="sed -f conftest.s$ac_file"
4317 else
4318 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4320 ac_file=`expr $ac_file + 1`
4321 ac_beg=$ac_end
4322 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4324 done
4325 if test -z "$ac_sed_cmds"; then
4326 ac_sed_cmds=cat
4330 cat >> $CONFIG_STATUS <<EOF
4332 CONFIG_FILES=\${CONFIG_FILES-"Makefile
4333 MakeSub
4334 lib/arch/unix/Makefile
4335 test/arch/unix/Makefile
4336 po/Makefile.in"}
4338 cat >> $CONFIG_STATUS <<\EOF
4339 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4340 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4341 case "$ac_file" in
4342 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4343 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4344 *) ac_file_in="${ac_file}.in" ;;
4345 esac
4347 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4349 # Remove last slash and all that follows it. Not all systems have dirname.
4350 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4351 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4352 # The file is in a subdirectory.
4353 test ! -d "$ac_dir" && mkdir "$ac_dir"
4354 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4355 # A "../" for each directory in $ac_dir_suffix.
4356 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4357 else
4358 ac_dir_suffix= ac_dots=
4361 case "$ac_given_srcdir" in
4362 .) srcdir=.
4363 if test -z "$ac_dots"; then top_srcdir=.
4364 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4365 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4366 *) # Relative path.
4367 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4368 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4369 esac
4371 case "$ac_given_INSTALL" in
4372 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4373 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4374 esac
4376 echo creating "$ac_file"
4377 rm -f "$ac_file"
4378 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4379 case "$ac_file" in
4380 *Makefile*) ac_comsub="1i\\
4381 # $configure_input" ;;
4382 *) ac_comsub= ;;
4383 esac
4385 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4386 sed -e "$ac_comsub
4387 s%@configure_input@%$configure_input%g
4388 s%@srcdir@%$srcdir%g
4389 s%@top_srcdir@%$top_srcdir%g
4390 s%@INSTALL@%$INSTALL%g
4391 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4392 fi; done
4393 rm -f conftest.s*
4395 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4396 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4398 # ac_d sets the value in "#define NAME VALUE" lines.
4399 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4400 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4401 ac_dC='\3'
4402 ac_dD='%g'
4403 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4404 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4405 ac_uB='\([ ]\)%\1#\2define\3'
4406 ac_uC=' '
4407 ac_uD='\4%g'
4408 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4409 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4410 ac_eB='$%\1#\2define\3'
4411 ac_eC=' '
4412 ac_eD='%g'
4414 if test "${CONFIG_HEADERS+set}" != set; then
4416 cat >> $CONFIG_STATUS <<EOF
4417 CONFIG_HEADERS="ft_conf.h"
4419 cat >> $CONFIG_STATUS <<\EOF
4421 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4422 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4423 case "$ac_file" in
4424 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4425 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4426 *) ac_file_in="${ac_file}.in" ;;
4427 esac
4429 echo creating $ac_file
4431 rm -f conftest.frag conftest.in conftest.out
4432 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4433 cat $ac_file_inputs > conftest.in
4437 # Transform confdefs.h into a sed script conftest.vals that substitutes
4438 # the proper values into config.h.in to produce config.h. And first:
4439 # Protect against being on the right side of a sed subst in config.status.
4440 # Protect against being in an unquoted here document in config.status.
4441 rm -f conftest.vals
4442 cat > conftest.hdr <<\EOF
4443 s/[\\&%]/\\&/g
4444 s%[\\$`]%\\&%g
4445 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4446 s%ac_d%ac_u%gp
4447 s%ac_u%ac_e%gp
4449 sed -n -f conftest.hdr confdefs.h > conftest.vals
4450 rm -f conftest.hdr
4452 # This sed command replaces #undef with comments. This is necessary, for
4453 # example, in the case of _POSIX_SOURCE, which is predefined and required
4454 # on some systems where configure will not decide to define it.
4455 cat >> conftest.vals <<\EOF
4456 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4459 # Break up conftest.vals because some shells have a limit on
4460 # the size of here documents, and old seds have small limits too.
4462 rm -f conftest.tail
4463 while :
4465 ac_lines=`grep -c . conftest.vals`
4466 # grep -c gives empty output for an empty file on some AIX systems.
4467 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4468 # Write a limited-size here document to conftest.frag.
4469 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4470 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4471 echo 'CEOF
4472 sed -f conftest.frag conftest.in > conftest.out
4473 rm -f conftest.in
4474 mv conftest.out conftest.in
4475 ' >> $CONFIG_STATUS
4476 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4477 rm -f conftest.vals
4478 mv conftest.tail conftest.vals
4479 done
4480 rm -f conftest.vals
4482 cat >> $CONFIG_STATUS <<\EOF
4483 rm -f conftest.frag conftest.h
4484 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4485 cat conftest.in >> conftest.h
4486 rm -f conftest.in
4487 if cmp -s $ac_file conftest.h 2>/dev/null; then
4488 echo "$ac_file is unchanged"
4489 rm -f conftest.h
4490 else
4491 # Remove last slash and all that follows it. Not all systems have dirname.
4492 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4493 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4494 # The file is in a subdirectory.
4495 test ! -d "$ac_dir" && mkdir "$ac_dir"
4497 rm -f $ac_file
4498 mv conftest.h $ac_file
4500 fi; done
4503 cat >> $CONFIG_STATUS <<EOF
4506 cat >> $CONFIG_STATUS <<\EOF
4507 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
4508 exit 0
4510 chmod +x $CONFIG_STATUS
4511 rm -fr confdefs* $ac_clean_files
4512 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1