Debian Codegraph @

configure

raw
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-shared build shared libraries [default=yes]
16 --enable-shared=PKGS only build shared libraries if the current package
17 appears as an element in the PKGS list"
18 ac_help="$ac_help
19 --enable-static build static libraries [default=yes]
20 --enable-static=PKGS only build shared libraries if the current package
21 appears as an element in the PKGS list"
22 ac_help="$ac_help
23 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
24 ac_help="$ac_help
25 --enable-maintainer-mode enable make rules and dependencies not useful
26 (and sometimes confusing) to the casual installer"
27 ac_help="$ac_help
28 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
29 ac_help="$ac_help
30 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
31 ac_help="$ac_help
32 --disable-gtktest Do not try to compile and run a test GTK program"
33 ac_help="$ac_help
34 --with-x use the X Window System"
35
36 # Initialize some variables set by options.
37 # The variables have the same names as the options, with
38 # dashes changed to underlines.
39 build=NONE
40 cache_file=./config.cache
41 exec_prefix=NONE
42 host=NONE
43 no_create=
44 nonopt=NONE
45 no_recursion=
46 prefix=NONE
47 program_prefix=NONE
48 program_suffix=NONE
49 program_transform_name=s,x,x,
50 silent=
51 site=
52 srcdir=
53 target=NONE
54 verbose=
55 x_includes=NONE
56 x_libraries=NONE
57 bindir='${exec_prefix}/bin'
58 sbindir='${exec_prefix}/sbin'
59 libexecdir='${exec_prefix}/libexec'
60 datadir='${prefix}/share'
61 sysconfdir='${prefix}/etc'
62 sharedstatedir='${prefix}/com'
63 localstatedir='${prefix}/var'
64 libdir='${exec_prefix}/lib'
65 includedir='${prefix}/include'
66 oldincludedir='/usr/include'
67 infodir='${prefix}/info'
68 mandir='${prefix}/man'
69
70 # Initialize some other variables.
71 subdirs=
72 MFLAGS= MAKEFLAGS=
73 # Maximum number of lines to put in a shell here document.
74 ac_max_here_lines=12
75
76 ac_prev=
77 for ac_option
78 do
79
80 # If the previous option needs an argument, assign it.
81 if test -n "$ac_prev"; then
82 eval "$ac_prev=\$ac_option"
83 ac_prev=
84 continue
85 fi
86
87 case "$ac_option" in
88 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
89 *) ac_optarg= ;;
90 esac
91
92 # Accept the important Cygnus configure options, so we can diagnose typos.
93
94 case "$ac_option" in
95
96 -bindir | --bindir | --bindi | --bind | --bin | --bi)
97 ac_prev=bindir ;;
98 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
99 bindir="$ac_optarg" ;;
100
101 -build | --build | --buil | --bui | --bu)
102 ac_prev=build ;;
103 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
104 build="$ac_optarg" ;;
105
106 -cache-file | --cache-file | --cache-fil | --cache-fi \
107 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
108 ac_prev=cache_file ;;
109 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
110 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
111 cache_file="$ac_optarg" ;;
112
113 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
114 ac_prev=datadir ;;
115 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
116 | --da=*)
117 datadir="$ac_optarg" ;;
118
119 -disable-* | --disable-*)
120 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
121 # Reject names that are not valid shell variable names.
122 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
123 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
124 fi
125 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
126 eval "enable_${ac_feature}=no" ;;
127
128 -enable-* | --enable-*)
129 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
130 # Reject names that are not valid shell variable names.
131 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
132 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
133 fi
134 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
135 case "$ac_option" in
136 *=*) ;;
137 *) ac_optarg=yes ;;
138 esac
139 eval "enable_${ac_feature}='$ac_optarg'" ;;
140
141 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
142 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
143 | --exec | --exe | --ex)
144 ac_prev=exec_prefix ;;
145 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
146 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
147 | --exec=* | --exe=* | --ex=*)
148 exec_prefix="$ac_optarg" ;;
149
150 -gas | --gas | --ga | --g)
151 # Obsolete; use --with-gas.
152 with_gas=yes ;;
153
154 -help | --help | --hel | --he)
155 # Omit some internal or obsolete options to make the list less imposing.
156 # This message is too long to be a string in the A/UX 3.1 sh.
157 cat << EOF
158 Usage: configure [options] [host]
159 Options: [defaults in brackets after descriptions]
160 Configuration:
161 --cache-file=FILE cache test results in FILE
162 --help print this message
163 --no-create do not create output files
164 --quiet, --silent do not print \`checking...' messages
165 --version print the version of autoconf that created configure
166 Directory and file names:
167 --prefix=PREFIX install architecture-independent files in PREFIX
168 [$ac_default_prefix]
169 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
170 [same as prefix]
171 --bindir=DIR user executables in DIR [EPREFIX/bin]
172 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
173 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
174 --datadir=DIR read-only architecture-independent data in DIR
175 [PREFIX/share]
176 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
177 --sharedstatedir=DIR modifiable architecture-independent data in DIR
178 [PREFIX/com]
179 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
180 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
181 --includedir=DIR C header files in DIR [PREFIX/include]
182 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
183 --infodir=DIR info documentation in DIR [PREFIX/info]
184 --mandir=DIR man documentation in DIR [PREFIX/man]
185 --srcdir=DIR find the sources in DIR [configure dir or ..]
186 --program-prefix=PREFIX prepend PREFIX to installed program names
187 --program-suffix=SUFFIX append SUFFIX to installed program names
188 --program-transform-name=PROGRAM
189 run sed PROGRAM on installed program names
190 EOF
191 cat << EOF
192 Host type:
193 --build=BUILD configure for building on BUILD [BUILD=HOST]
194 --host=HOST configure for HOST [guessed]
195 --target=TARGET configure for TARGET [TARGET=HOST]
196 Features and packages:
197 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
198 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
199 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
200 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
201 --x-includes=DIR X include files are in DIR
202 --x-libraries=DIR X library files are in DIR
203 EOF
204 if test -n "$ac_help"; then
205 echo "--enable and --with options recognized:$ac_help"
206 fi
207 exit 0 ;;
208
209 -host | --host | --hos | --ho)
210 ac_prev=host ;;
211 -host=* | --host=* | --hos=* | --ho=*)
212 host="$ac_optarg" ;;
213
214 -includedir | --includedir | --includedi | --included | --include \
215 | --includ | --inclu | --incl | --inc)
216 ac_prev=includedir ;;
217 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
218 | --includ=* | --inclu=* | --incl=* | --inc=*)
219 includedir="$ac_optarg" ;;
220
221 -infodir | --infodir | --infodi | --infod | --info | --inf)
222 ac_prev=infodir ;;
223 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
224 infodir="$ac_optarg" ;;
225
226 -libdir | --libdir | --libdi | --libd)
227 ac_prev=libdir ;;
228 -libdir=* | --libdir=* | --libdi=* | --libd=*)
229 libdir="$ac_optarg" ;;
230
231 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
232 | --libexe | --libex | --libe)
233 ac_prev=libexecdir ;;
234 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
235 | --libexe=* | --libex=* | --libe=*)
236 libexecdir="$ac_optarg" ;;
237
238 -localstatedir | --localstatedir | --localstatedi | --localstated \
239 | --localstate | --localstat | --localsta | --localst \
240 | --locals | --local | --loca | --loc | --lo)
241 ac_prev=localstatedir ;;
242 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
243 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
244 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
245 localstatedir="$ac_optarg" ;;
246
247 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
248 ac_prev=mandir ;;
249 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
250 mandir="$ac_optarg" ;;
251
252 -nfp | --nfp | --nf)
253 # Obsolete; use --without-fp.
254 with_fp=no ;;
255
256 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
257 | --no-cr | --no-c)
258 no_create=yes ;;
259
260 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
261 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
262 no_recursion=yes ;;
263
264 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
265 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
266 | --oldin | --oldi | --old | --ol | --o)
267 ac_prev=oldincludedir ;;
268 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
269 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
270 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
271 oldincludedir="$ac_optarg" ;;
272
273 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
274 ac_prev=prefix ;;
275 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
276 prefix="$ac_optarg" ;;
277
278 -program-prefix | --program-prefix | --program-prefi | --program-pref \
279 | --program-pre | --program-pr | --program-p)
280 ac_prev=program_prefix ;;
281 -program-prefix=* | --program-prefix=* | --program-prefi=* \
282 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
283 program_prefix="$ac_optarg" ;;
284
285 -program-suffix | --program-suffix | --program-suffi | --program-suff \
286 | --program-suf | --program-su | --program-s)
287 ac_prev=program_suffix ;;
288 -program-suffix=* | --program-suffix=* | --program-suffi=* \
289 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
290 program_suffix="$ac_optarg" ;;
291
292 -program-transform-name | --program-transform-name \
293 | --program-transform-nam | --program-transform-na \
294 | --program-transform-n | --program-transform- \
295 | --program-transform | --program-transfor \
296 | --program-transfo | --program-transf \
297 | --program-trans | --program-tran \
298 | --progr-tra | --program-tr | --program-t)
299 ac_prev=program_transform_name ;;
300 -program-transform-name=* | --program-transform-name=* \
301 | --program-transform-nam=* | --program-transform-na=* \
302 | --program-transform-n=* | --program-transform-=* \
303 | --program-transform=* | --program-transfor=* \
304 | --program-transfo=* | --program-transf=* \
305 | --program-trans=* | --program-tran=* \
306 | --progr-tra=* | --program-tr=* | --program-t=*)
307 program_transform_name="$ac_optarg" ;;
308
309 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
310 | -silent | --silent | --silen | --sile | --sil)
311 silent=yes ;;
312
313 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
314 ac_prev=sbindir ;;
315 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
316 | --sbi=* | --sb=*)
317 sbindir="$ac_optarg" ;;
318
319 -sharedstatedir | --sharedstatedir | --sharedstatedi \
320 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
321 | --sharedst | --shareds | --shared | --share | --shar \
322 | --sha | --sh)
323 ac_prev=sharedstatedir ;;
324 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
325 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
326 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
327 | --sha=* | --sh=*)
328 sharedstatedir="$ac_optarg" ;;
329
330 -site | --site | --sit)
331 ac_prev=site ;;
332 -site=* | --site=* | --sit=*)
333 site="$ac_optarg" ;;
334
335 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
336 ac_prev=srcdir ;;
337 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
338 srcdir="$ac_optarg" ;;
339
340 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
341 | --syscon | --sysco | --sysc | --sys | --sy)
342 ac_prev=sysconfdir ;;
343 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
344 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
345 sysconfdir="$ac_optarg" ;;
346
347 -target | --target | --targe | --targ | --tar | --ta | --t)
348 ac_prev=target ;;
349 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
350 target="$ac_optarg" ;;
351
352 -v | -verbose | --verbose | --verbos | --verbo | --verb)
353 verbose=yes ;;
354
355 -version | --version | --versio | --versi | --vers)
356 echo "configure generated by autoconf version 2.12"
357 exit 0 ;;
358
359 -with-* | --with-*)
360 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
361 # Reject names that are not valid shell variable names.
362 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
363 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
364 fi
365 ac_package=`echo $ac_package| sed 's/-/_/g'`
366 case "$ac_option" in
367 *=*) ;;
368 *) ac_optarg=yes ;;
369 esac
370 eval "with_${ac_package}='$ac_optarg'" ;;
371
372 -without-* | --without-*)
373 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
374 # Reject names that are not valid shell variable names.
375 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
376 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
377 fi
378 ac_package=`echo $ac_package| sed 's/-/_/g'`
379 eval "with_${ac_package}=no" ;;
380
381 --x)
382 # Obsolete; use --with-x.
383 with_x=yes ;;
384
385 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
386 | --x-incl | --x-inc | --x-in | --x-i)
387 ac_prev=x_includes ;;
388 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
389 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
390 x_includes="$ac_optarg" ;;
391
392 -x-libraries | --x-libraries | --x-librarie | --x-librari \
393 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
394 ac_prev=x_libraries ;;
395 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
396 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
397 x_libraries="$ac_optarg" ;;
398
399 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
400 ;;
401
402 *)
403 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
404 echo "configure: warning: $ac_option: invalid host type" 1>&2
405 fi
406 if test "x$nonopt" != xNONE; then
407 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
408 fi
409 nonopt="$ac_option"
410 ;;
411
412 esac
413 done
414
415 if test -n "$ac_prev"; then
416 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
417 fi
418
419 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
420
421 # File descriptor usage:
422 # 0 standard input
423 # 1 file creation
424 # 2 errors and warnings
425 # 3 some systems may open it to /dev/tty
426 # 4 used on the Kubota Titan
427 # 6 checking for... messages and results
428 # 5 compiler messages saved in config.log
429 if test "$silent" = yes; then
430 exec 6>/dev/null
431 else
432 exec 6>&1
433 fi
434 exec 5>./config.log
435
436 echo "\
437 This file contains any messages produced by compilers while
438 running configure, to aid debugging if configure makes a mistake.
439 " 1>&5
440
441 # Strip out --no-create and --no-recursion so they do not pile up.
442 # Also quote any args containing shell metacharacters.
443 ac_configure_args=
444 for ac_arg
445 do
446 case "$ac_arg" in
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448 | --no-cr | --no-c) ;;
449 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
450 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
451 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
452 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
453 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
454 esac
455 done
456
457 # NLS nuisances.
458 # Only set these to C if already set. These must not be set unconditionally
459 # because not all systems understand e.g. LANG=C (notably SCO).
460 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
461 # Non-C LC_CTYPE values break the ctype check.
462 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
463 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
464 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
465 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
466
467 # confdefs.h avoids OS command line length limits that DEFS can exceed.
468 rm -rf conftest* confdefs.h
469 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
470 echo > confdefs.h
471
472 # A filename unique to this package, relative to the directory that
473 # configure is in, which we can look for to find out if srcdir is correct.
474 ac_unique_file=lmem_window.c
475
476 # Find the source files, if location was not specified.
477 if test -z "$srcdir"; then
478 ac_srcdir_defaulted=yes
479 # Try the directory containing this script, then its parent.
480 ac_prog=$0
481 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
482 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
483 srcdir=$ac_confdir
484 if test ! -r $srcdir/$ac_unique_file; then
485 srcdir=..
486 fi
487 else
488 ac_srcdir_defaulted=no
489 fi
490 if test ! -r $srcdir/$ac_unique_file; then
491 if test "$ac_srcdir_defaulted" = yes; then
492 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
493 else
494 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
495 fi
496 fi
497 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
498
499 # Prefer explicitly selected file to automatically selected ones.
500 if test -z "$CONFIG_SITE"; then
501 if test "x$prefix" != xNONE; then
502 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
503 else
504 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
505 fi
506 fi
507 for ac_site_file in $CONFIG_SITE; do
508 if test -r "$ac_site_file"; then
509 echo "loading site script $ac_site_file"
510 . "$ac_site_file"
511 fi
512 done
513
514 if test -r "$cache_file"; then
515 echo "loading cache $cache_file"
516 . $cache_file
517 else
518 echo "creating cache $cache_file"
519 > $cache_file
520 fi
521
522 ac_ext=c
523 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
524 ac_cpp='$CPP $CPPFLAGS'
525 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
526 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
527 cross_compiling=$ac_cv_prog_cc_cross
528
529 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
530 # Stardent Vistra SVR4 grep lacks -e, says [email protected].
531 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
532 ac_n= ac_c='
533 ' ac_t=' '
534 else
535 ac_n=-n ac_c= ac_t=
536 fi
537 else
538 ac_n= ac_c='\c' ac_t=
539 fi
540
541
542
543 VERSION=\\\"0.6c\\\"
544 PACKAGE=lmemory
545
546 ac_aux_dir=
547 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
548 if test -f $ac_dir/install-sh; then
549 ac_aux_dir=$ac_dir
550 ac_install_sh="$ac_aux_dir/install-sh -c"
551 break
552 elif test -f $ac_dir/install.sh; then
553 ac_aux_dir=$ac_dir
554 ac_install_sh="$ac_aux_dir/install.sh -c"
555 break
556 fi
557 done
558 if test -z "$ac_aux_dir"; then
559 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
560 fi
561 ac_config_guess=$ac_aux_dir/config.guess
562 ac_config_sub=$ac_aux_dir/config.sub
563 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
564
565 # Find a good install program. We prefer a C program (faster),
566 # so one script is as good as another. But avoid the broken or
567 # incompatible versions:
568 # SysV /etc/install, /usr/sbin/install
569 # SunOS /usr/etc/install
570 # IRIX /sbin/install
571 # AIX /bin/install
572 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
573 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
574 # ./install, which can be erroneously created by make from ./install.sh.
575 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
576 echo "configure:577: checking for a BSD compatible install" >&5
577 if test -z "$INSTALL"; then
578 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
579 echo $ac_n "(cached) $ac_c" 1>&6
580 else
581 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
582 for ac_dir in $PATH; do
583 # Account for people who put trailing slashes in PATH elements.
584 case "$ac_dir/" in
585 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
586 *)
587 # OSF1 and SCO ODT 3.0 have their own names for install.
588 for ac_prog in ginstall installbsd scoinst install; do
589 if test -f $ac_dir/$ac_prog; then
590 if test $ac_prog = install &&
591 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
592 # AIX install. It has an incompatible calling convention.
593 # OSF/1 installbsd also uses dspmsg, but is usable.
594 :
595 else
596 ac_cv_path_install="$ac_dir/$ac_prog -c"
597 break 2
598 fi
599 fi
600 done
601 ;;
602 esac
603 done
604 IFS="$ac_save_IFS"
605
606 fi
607 if test "${ac_cv_path_install+set}" = set; then
608 INSTALL="$ac_cv_path_install"
609 else
610 # As a last resort, use the slow shell script. We don't cache a
611 # path for INSTALL within a source directory, because that will
612 # break other packages using the cache if that directory is
613 # removed, or if the path is relative.
614 INSTALL="$ac_install_sh"
615 fi
616 fi
617 echo "$ac_t""$INSTALL" 1>&6
618
619 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
620 # It thinks the first close brace ends the variable substitution.
621 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
622
623 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
624
625
626 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
627
628 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
629 echo "configure:630: checking whether build environment is sane" >&5
630 # Just in case
631 sleep 1
632 echo timestamp > conftestfile
633 # Do `set' in a subshell so we don't clobber the current shell's
634 # arguments. Must try -L first in case configure is actually a
635 # symlink; some systems play weird games with the mod time of symlinks
636 # (eg FreeBSD returns the mod time of the symlink's containing
637 # directory).
638 if (
639 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
640 if test "$*" = "X"; then
641 # -L didn't work.
642 set X `ls -t $srcdir/configure conftestfile`
643 fi
644 if test "$*" != "X $srcdir/configure conftestfile" \
645 && test "$*" != "X conftestfile $srcdir/configure"; then
646
647 # If neither matched, then we have a broken ls. This can happen
648 # if, for instance, CONFIG_SHELL is bash and it inherits a
649 # broken ls alias from the environment. This has actually
650 # happened. Such a system could not be considered "sane".
651 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
652 alias in your environment" 1>&2; exit 1; }
653 fi
654
655 test "$2" = conftestfile
656 )
657 then
658 # Ok.
659 :
660 else
661 { echo "configure: error: newly created file is older than distributed files!
662 Check your system clock" 1>&2; exit 1; }
663 fi
664 rm -f conftest*
665 echo "$ac_t""yes" 1>&6
666 if test "$program_transform_name" = s,x,x,; then
667 program_transform_name=
668 else
669 # Double any \ or $. echo might interpret backslashes.
670 cat <<\EOF_SED > conftestsed
671 s,\\,\\\\,g; s,\$,$$,g
672 EOF_SED
673 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
674 rm -f conftestsed
675 fi
676 test "$program_prefix" != NONE &&
677 program_transform_name="s,^,${program_prefix},; $program_transform_name"
678 # Use a double $ so make ignores it.
679 test "$program_suffix" != NONE &&
680 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
681
682 # sed with no file args requires a program.
683 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
684
685 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
686 echo "configure:687: checking whether ${MAKE-make} sets \${MAKE}" >&5
687 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
688 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
689 echo $ac_n "(cached) $ac_c" 1>&6
690 else
691 cat > conftestmake <<\EOF
692 all:
693 @echo 'ac_maketemp="${MAKE}"'
694 EOF
695 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
696 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
697 if test -n "$ac_maketemp"; then
698 eval ac_cv_prog_make_${ac_make}_set=yes
699 else
700 eval ac_cv_prog_make_${ac_make}_set=no
701 fi
702 rm -f conftestmake
703 fi
704 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
705 echo "$ac_t""yes" 1>&6
706 SET_MAKE=
707 else
708 echo "$ac_t""no" 1>&6
709 SET_MAKE="MAKE=${MAKE-make}"
710 fi
711
712
713 PACKAGE=$PACKAGE
714
715 VERSION=$VERSION
716
717 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
718 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
719 fi
720
721
722
723 missing_dir=`cd $ac_aux_dir && pwd`
724 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
725 echo "configure:726: checking for working aclocal" >&5
726 # Run test in a subshell; some versions of sh will print an error if
727 # an executable is not found, even if stderr is redirected.
728 # Redirect stdin to placate older versions of autoconf. Sigh.
729 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
730 ACLOCAL=aclocal
731 echo "$ac_t""found" 1>&6
732 else
733 ACLOCAL="$missing_dir/missing aclocal"
734 echo "$ac_t""missing" 1>&6
735 fi
736
737 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
738 echo "configure:739: checking for working autoconf" >&5
739 # Run test in a subshell; some versions of sh will print an error if
740 # an executable is not found, even if stderr is redirected.
741 # Redirect stdin to placate older versions of autoconf. Sigh.
742 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
743 AUTOCONF=autoconf
744 echo "$ac_t""found" 1>&6
745 else
746 AUTOCONF="$missing_dir/missing autoconf"
747 echo "$ac_t""missing" 1>&6
748 fi
749
750 echo $ac_n "checking for working automake""... $ac_c" 1>&6
751 echo "configure:752: checking for working automake" >&5
752 # Run test in a subshell; some versions of sh will print an error if
753 # an executable is not found, even if stderr is redirected.
754 # Redirect stdin to placate older versions of autoconf. Sigh.
755 if (automake --version) < /dev/null > /dev/null 2>&1; then
756 AUTOMAKE=automake
757 echo "$ac_t""found" 1>&6
758 else
759 AUTOMAKE="$missing_dir/missing automake"
760 echo "$ac_t""missing" 1>&6
761 fi
762
763 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
764 echo "configure:765: checking for working autoheader" >&5
765 # Run test in a subshell; some versions of sh will print an error if
766 # an executable is not found, even if stderr is redirected.
767 # Redirect stdin to placate older versions of autoconf. Sigh.
768 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
769 AUTOHEADER=autoheader
770 echo "$ac_t""found" 1>&6
771 else
772 AUTOHEADER="$missing_dir/missing autoheader"
773 echo "$ac_t""missing" 1>&6
774 fi
775
776 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
777 echo "configure:778: checking for working makeinfo" >&5
778 # Run test in a subshell; some versions of sh will print an error if
779 # an executable is not found, even if stderr is redirected.
780 # Redirect stdin to placate older versions of autoconf. Sigh.
781 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
782 MAKEINFO=makeinfo
783 echo "$ac_t""found" 1>&6
784 else
785 MAKEINFO="$missing_dir/missing makeinfo"
786 echo "$ac_t""missing" 1>&6
787 fi
788
789
790
791
792 # Check whether --enable-shared or --disable-shared was given.
793 if test "${enable_shared+set}" = set; then
794 enableval="$enable_shared"
795 p=${PACKAGE-default}
796 case "$enableval" in
797 yes) enable_shared=yes ;;
798 no) enable_shared=no ;;
799 *)
800 enable_shared=no
801 # Look at the argument we got. We use all the common list separators.
802 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
803 for pkg in $enableval; do
804 if test "X$pkg" = "X$p"; then
805 enable_shared=yes
806 fi
807 done
808 IFS="$ac_save_ifs"
809 ;;
810 esac
811 else
812 enable_shared=yes
813 fi
814
815 # Check whether --enable-static or --disable-static was given.
816 if test "${enable_static+set}" = set; then
817 enableval="$enable_static"
818 p=${PACKAGE-default}
819 case "$enableval" in
820 yes) enable_static=yes ;;
821 no) enable_static=no ;;
822 *)
823 enable_static=no
824 # Look at the argument we got. We use all the common list separators.
825 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
826 for pkg in $enableval; do
827 if test "X$pkg" = "X$p"; then
828 enable_static=yes
829 fi
830 done
831 IFS="$ac_save_ifs"
832 ;;
833 esac
834 else
835 enable_static=yes
836 fi
837
838
839 # Make sure we can run config.sub.
840 if $ac_config_sub sun4 >/dev/null 2>&1; then :
841 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
842 fi
843
844 echo $ac_n "checking host system type""... $ac_c" 1>&6
845 echo "configure:846: checking host system type" >&5
846
847 host_alias=$host
848 case "$host_alias" in
849 NONE)
850 case $nonopt in
851 NONE)
852 if host_alias=`$ac_config_guess`; then :
853 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
854 fi ;;
855 *) host_alias=$nonopt ;;
856 esac ;;
857 esac
858
859 host=`$ac_config_sub $host_alias`
860 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
861 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
862 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
863 echo "$ac_t""$host" 1>&6
864
865 # Extract the first word of "ranlib", so it can be a program name with args.
866 set dummy ranlib; ac_word=$2
867 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
868 echo "configure:869: checking for $ac_word" >&5
869 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
870 echo $ac_n "(cached) $ac_c" 1>&6
871 else
872 if test -n "$RANLIB"; then
873 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
874 else
875 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
876 for ac_dir in $PATH; do
877 test -z "$ac_dir" && ac_dir=.
878 if test -f $ac_dir/$ac_word; then
879 ac_cv_prog_RANLIB="ranlib"
880 break
881 fi
882 done
883 IFS="$ac_save_ifs"
884 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
885 fi
886 fi
887 RANLIB="$ac_cv_prog_RANLIB"
888 if test -n "$RANLIB"; then
889 echo "$ac_t""$RANLIB" 1>&6
890 else
891 echo "$ac_t""no" 1>&6
892 fi
893
894 # Extract the first word of "gcc", so it can be a program name with args.
895 set dummy gcc; ac_word=$2
896 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
897 echo "configure:898: checking for $ac_word" >&5
898 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
899 echo $ac_n "(cached) $ac_c" 1>&6
900 else
901 if test -n "$CC"; then
902 ac_cv_prog_CC="$CC" # Let the user override the test.
903 else
904 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
905 for ac_dir in $PATH; do
906 test -z "$ac_dir" && ac_dir=.
907 if test -f $ac_dir/$ac_word; then
908 ac_cv_prog_CC="gcc"
909 break
910 fi
911 done
912 IFS="$ac_save_ifs"
913 fi
914 fi
915 CC="$ac_cv_prog_CC"
916 if test -n "$CC"; then
917 echo "$ac_t""$CC" 1>&6
918 else
919 echo "$ac_t""no" 1>&6
920 fi
921
922 if test -z "$CC"; then
923 # Extract the first word of "cc", so it can be a program name with args.
924 set dummy cc; ac_word=$2
925 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
926 echo "configure:927: checking for $ac_word" >&5
927 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
928 echo $ac_n "(cached) $ac_c" 1>&6
929 else
930 if test -n "$CC"; then
931 ac_cv_prog_CC="$CC" # Let the user override the test.
932 else
933 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
934 ac_prog_rejected=no
935 for ac_dir in $PATH; do
936 test -z "$ac_dir" && ac_dir=.
937 if test -f $ac_dir/$ac_word; then
938 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
939 ac_prog_rejected=yes
940 continue
941 fi
942 ac_cv_prog_CC="cc"
943 break
944 fi
945 done
946 IFS="$ac_save_ifs"
947 if test $ac_prog_rejected = yes; then
948 # We found a bogon in the path, so make sure we never use it.
949 set dummy $ac_cv_prog_CC
950 shift
951 if test $# -gt 0; then
952 # We chose a different compiler from the bogus one.
953 # However, it has the same basename, so the bogon will be chosen
954 # first if we set CC to just the basename; use the full file name.
955 shift
956 set dummy "$ac_dir/$ac_word" "$@"
957 shift
958 ac_cv_prog_CC="$@"
959 fi
960 fi
961 fi
962 fi
963 CC="$ac_cv_prog_CC"
964 if test -n "$CC"; then
965 echo "$ac_t""$CC" 1>&6
966 else
967 echo "$ac_t""no" 1>&6
968 fi
969
970 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
971 fi
972
973 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
974 echo "configure:975: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
975
976 ac_ext=c
977 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
978 ac_cpp='$CPP $CPPFLAGS'
979 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
980 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
981 cross_compiling=$ac_cv_prog_cc_cross
982
983 cat > conftest.$ac_ext <<EOF
984 #line 985 "configure"
985 #include "confdefs.h"
986 main(){return(0);}
987 EOF
988 if { (eval echo configure:989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
989 ac_cv_prog_cc_works=yes
990 # If we can't run a trivial program, we are probably using a cross compiler.
991 if (./conftest; exit) 2>/dev/null; then
992 ac_cv_prog_cc_cross=no
993 else
994 ac_cv_prog_cc_cross=yes
995 fi
996 else
997 echo "configure: failed program was:" >&5
998 cat conftest.$ac_ext >&5
999 ac_cv_prog_cc_works=no
1000 fi
1001 rm -fr conftest*
1002
1003 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1004 if test $ac_cv_prog_cc_works = no; then
1005 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1006 fi
1007 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1008 echo "configure:1009: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1009 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1010 cross_compiling=$ac_cv_prog_cc_cross
1011
1012 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1013 echo "configure:1014: checking whether we are using GNU C" >&5
1014 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1015 echo $ac_n "(cached) $ac_c" 1>&6
1016 else
1017 cat > conftest.c <<EOF
1018 #ifdef __GNUC__
1019 yes;
1020 #endif
1021 EOF
1022 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1023 ac_cv_prog_gcc=yes
1024 else
1025 ac_cv_prog_gcc=no
1026 fi
1027 fi
1028
1029 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1030
1031 if test $ac_cv_prog_gcc = yes; then
1032 GCC=yes
1033 ac_test_CFLAGS="${CFLAGS+set}"
1034 ac_save_CFLAGS="$CFLAGS"
1035 CFLAGS=
1036 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1037 echo "configure:1038: checking whether ${CC-cc} accepts -g" >&5
1038 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1039 echo $ac_n "(cached) $ac_c" 1>&6
1040 else
1041 echo 'void f(){}' > conftest.c
1042 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1043 ac_cv_prog_cc_g=yes
1044 else
1045 ac_cv_prog_cc_g=no
1046 fi
1047 rm -f conftest*
1048
1049 fi
1050
1051 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1052 if test "$ac_test_CFLAGS" = set; then
1053 CFLAGS="$ac_save_CFLAGS"
1054 elif test $ac_cv_prog_cc_g = yes; then
1055 CFLAGS="-g -O2"
1056 else
1057 CFLAGS="-O2"
1058 fi
1059 else
1060 GCC=
1061 test "${CFLAGS+set}" = set || CFLAGS="-g"
1062 fi
1063
1064 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1065 if test "${with_gnu_ld+set}" = set; then
1066 withval="$with_gnu_ld"
1067 test "$withval" = no || with_gnu_ld=yes
1068 else
1069 with_gnu_ld=no
1070 fi
1071
1072
1073 ac_prog=ld
1074 if test "$ac_cv_prog_gcc" = yes; then
1075 # Check if gcc -print-prog-name=ld gives a path.
1076 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1077 echo "configure:1078: checking for ld used by GCC" >&5
1078 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1079 case "$ac_prog" in
1080 # Accept absolute paths.
1081 /* | A-Za-z:\\*)
1082 test -z "$LD" && LD="$ac_prog"
1083 ;;
1084 "")
1085 # If it fails, then pretend we aren't using GCC.
1086 ac_prog=ld
1087 ;;
1088 *)
1089 # If it is relative, then search for the first ld in PATH.
1090 with_gnu_ld=unknown
1091 ;;
1092 esac
1093 elif test "$with_gnu_ld" = yes; then
1094 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1095 echo "configure:1096: checking for GNU ld" >&5
1096 else
1097 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1098 echo "configure:1099: checking for non-GNU ld" >&5
1099 fi
1100 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1101 echo $ac_n "(cached) $ac_c" 1>&6
1102 else
1103 if test -z "$LD"; then
1104 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1105 for ac_dir in $PATH; do
1106 test -z "$ac_dir" && ac_dir=.
1107 if test -f "$ac_dir/$ac_prog"; then
1108 ac_cv_path_LD="$ac_dir/$ac_prog"
1109 # Check to see if the program is GNU ld. I'd rather use --version,
1110 # but apparently some GNU ld's only accept -v.
1111 # Break only if it was the GNU/non-GNU ld that we prefer.
1112 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1113 test "$with_gnu_ld" != no && break
1114 else
1115 test "$with_gnu_ld" != yes && break
1116 fi
1117 fi
1118 done
1119 IFS="$ac_save_ifs"
1120 else
1121 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1122 fi
1123 fi
1124
1125 LD="$ac_cv_path_LD"
1126 if test -n "$LD"; then
1127 echo "$ac_t""$LD" 1>&6
1128 else
1129 echo "$ac_t""no" 1>&6
1130 fi
1131 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1132
1133 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1134 echo "configure:1135: checking if the linker ($LD) is GNU ld" >&5
1135 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1136 echo $ac_n "(cached) $ac_c" 1>&6
1137 else
1138 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1139 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1140 ac_cv_prog_gnu_ld=yes
1141 else
1142 ac_cv_prog_gnu_ld=no
1143 fi
1144 fi
1145
1146 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1147
1148
1149 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1150 echo "configure:1151: checking for BSD-compatible nm" >&5
1151 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1152 echo $ac_n "(cached) $ac_c" 1>&6
1153 else
1154 case "$NM" in
1155 /* | A-Za-z:\\*)
1156 ac_cv_path_NM="$NM" # Let the user override the test with a path.
1157 ;;
1158 *)
1159 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1160 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
1161 test -z "$ac_dir" && ac_dir=.
1162 if test -f $ac_dir/nm; then
1163 # Check to see if the nm accepts a BSD-compat flag.
1164 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1165 # nm: unknown option "B" ignored
1166 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1167 ac_cv_path_NM="$ac_dir/nm -B"
1168 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1169 ac_cv_path_NM="$ac_dir/nm -p"
1170 else
1171 ac_cv_path_NM="$ac_dir/nm"
1172 fi
1173 break
1174 fi
1175 done
1176 IFS="$ac_save_ifs"
1177 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1178 ;;
1179 esac
1180 fi
1181
1182 NM="$ac_cv_path_NM"
1183 echo "$ac_t""$NM" 1>&6
1184
1185
1186 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1187 echo "configure:1188: checking whether ln -s works" >&5
1188 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1189 echo $ac_n "(cached) $ac_c" 1>&6
1190 else
1191 rm -f conftestdata
1192 if ln -s X conftestdata 2>/dev/null
1193 then
1194 rm -f conftestdata
1195 ac_cv_prog_LN_S="ln -s"
1196 else
1197 ac_cv_prog_LN_S=ln
1198 fi
1199 fi
1200 LN_S="$ac_cv_prog_LN_S"
1201 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1202 echo "$ac_t""yes" 1>&6
1203 else
1204 echo "$ac_t""no" 1>&6
1205 fi
1206
1207 # Always use our own libtool.
1208 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1209
1210 # Check for any special flags to pass to ltconfig.
1211 libtool_flags=
1212 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1213 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1214 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1215 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1216 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1217
1218 # Some flags need to be propagated to the compiler or linker for good
1219 # libtool support.
1220 case "$host" in
1221 *-*-irix6*)
1222 # Find out which ABI we are using.
1223 echo '#line 1224 "configure"' > conftest.$ac_ext
1224 if { (eval echo configure:1225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1225 case "`/usr/bin/file conftest.o`" in
1226 *32-bit*)
1227 LD="${LD-ld} -32"
1228 ;;
1229 *N32*)
1230 LD="${LD-ld} -n32"
1231 ;;
1232 *64-bit*)
1233 LD="${LD-ld} -64"
1234 ;;
1235 esac
1236 fi
1237 rm -rf conftest*
1238 ;;
1239
1240 *-*-sco3.2v5*)
1241 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1242 CFLAGS="$CFLAGS -belf"
1243 ;;
1244 esac
1245
1246 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1247 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1248 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
1249 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1250 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1251 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1252
1253
1254
1255
1256
1257
1258 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1259 echo "configure:1260: checking whether to enable maintainer-specific portions of Makefiles" >&5
1260 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1261 if test "${enable_maintainer_mode+set}" = set; then
1262 enableval="$enable_maintainer_mode"
1263 USE_MAINTAINER_MODE=$enableval
1264 else
1265 USE_MAINTAINER_MODE=no
1266 fi
1267
1268 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1269 if test $USE_MAINTAINER_MODE = yes; then
1270 MAINT=
1271 else
1272 MAINT='#M#'
1273 fi
1274
1275
1276
1277 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1278 echo "configure:1279: checking for POSIXized ISC" >&5
1279 if test -d /etc/conf/kconfig.d &&
1280 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1281 then
1282 echo "$ac_t""yes" 1>&6
1283 ISC=yes # If later tests want to check for ISC.
1284 cat >> confdefs.h <<\EOF
1285 #define _POSIX_SOURCE 1
1286 EOF
1287
1288 if test "$GCC" = yes; then
1289 CC="$CC -posix"
1290 else
1291 CC="$CC -Xp"
1292 fi
1293 else
1294 echo "$ac_t""no" 1>&6
1295 ISC=
1296 fi
1297
1298 # Extract the first word of "gcc", so it can be a program name with args.
1299 set dummy gcc; ac_word=$2
1300 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1301 echo "configure:1302: checking for $ac_word" >&5
1302 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1303 echo $ac_n "(cached) $ac_c" 1>&6
1304 else
1305 if test -n "$CC"; then
1306 ac_cv_prog_CC="$CC" # Let the user override the test.
1307 else
1308 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1309 for ac_dir in $PATH; do
1310 test -z "$ac_dir" && ac_dir=.
1311 if test -f $ac_dir/$ac_word; then
1312 ac_cv_prog_CC="gcc"
1313 break
1314 fi
1315 done
1316 IFS="$ac_save_ifs"
1317 fi
1318 fi
1319 CC="$ac_cv_prog_CC"
1320 if test -n "$CC"; then
1321 echo "$ac_t""$CC" 1>&6
1322 else
1323 echo "$ac_t""no" 1>&6
1324 fi
1325
1326 if test -z "$CC"; then
1327 # Extract the first word of "cc", so it can be a program name with args.
1328 set dummy cc; ac_word=$2
1329 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1330 echo "configure:1331: checking for $ac_word" >&5
1331 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1332 echo $ac_n "(cached) $ac_c" 1>&6
1333 else
1334 if test -n "$CC"; then
1335 ac_cv_prog_CC="$CC" # Let the user override the test.
1336 else
1337 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1338 ac_prog_rejected=no
1339 for ac_dir in $PATH; do
1340 test -z "$ac_dir" && ac_dir=.
1341 if test -f $ac_dir/$ac_word; then
1342 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1343 ac_prog_rejected=yes
1344 continue
1345 fi
1346 ac_cv_prog_CC="cc"
1347 break
1348 fi
1349 done
1350 IFS="$ac_save_ifs"
1351 if test $ac_prog_rejected = yes; then
1352 # We found a bogon in the path, so make sure we never use it.
1353 set dummy $ac_cv_prog_CC
1354 shift
1355 if test $# -gt 0; then
1356 # We chose a different compiler from the bogus one.
1357 # However, it has the same basename, so the bogon will be chosen
1358 # first if we set CC to just the basename; use the full file name.
1359 shift
1360 set dummy "$ac_dir/$ac_word" "$@"
1361 shift
1362 ac_cv_prog_CC="$@"
1363 fi
1364 fi
1365 fi
1366 fi
1367 CC="$ac_cv_prog_CC"
1368 if test -n "$CC"; then
1369 echo "$ac_t""$CC" 1>&6
1370 else
1371 echo "$ac_t""no" 1>&6
1372 fi
1373
1374 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1375 fi
1376
1377 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1378 echo "configure:1379: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1379
1380 ac_ext=c
1381 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1382 ac_cpp='$CPP $CPPFLAGS'
1383 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1384 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1385 cross_compiling=$ac_cv_prog_cc_cross
1386
1387 cat > conftest.$ac_ext <<EOF
1388 #line 1389 "configure"
1389 #include "confdefs.h"
1390 main(){return(0);}
1391 EOF
1392 if { (eval echo configure:1393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1393 ac_cv_prog_cc_works=yes
1394 # If we can't run a trivial program, we are probably using a cross compiler.
1395 if (./conftest; exit) 2>/dev/null; then
1396 ac_cv_prog_cc_cross=no
1397 else
1398 ac_cv_prog_cc_cross=yes
1399 fi
1400 else
1401 echo "configure: failed program was:" >&5
1402 cat conftest.$ac_ext >&5
1403 ac_cv_prog_cc_works=no
1404 fi
1405 rm -fr conftest*
1406
1407 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1408 if test $ac_cv_prog_cc_works = no; then
1409 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1410 fi
1411 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1412 echo "configure:1413: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1413 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1414 cross_compiling=$ac_cv_prog_cc_cross
1415
1416 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1417 echo "configure:1418: checking whether we are using GNU C" >&5
1418 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1419 echo $ac_n "(cached) $ac_c" 1>&6
1420 else
1421 cat > conftest.c <<EOF
1422 #ifdef __GNUC__
1423 yes;
1424 #endif
1425 EOF
1426 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1427 ac_cv_prog_gcc=yes
1428 else
1429 ac_cv_prog_gcc=no
1430 fi
1431 fi
1432
1433 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1434
1435 if test $ac_cv_prog_gcc = yes; then
1436 GCC=yes
1437 ac_test_CFLAGS="${CFLAGS+set}"
1438 ac_save_CFLAGS="$CFLAGS"
1439 CFLAGS=
1440 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1441 echo "configure:1442: checking whether ${CC-cc} accepts -g" >&5
1442 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1443 echo $ac_n "(cached) $ac_c" 1>&6
1444 else
1445 echo 'void f(){}' > conftest.c
1446 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1447 ac_cv_prog_cc_g=yes
1448 else
1449 ac_cv_prog_cc_g=no
1450 fi
1451 rm -f conftest*
1452
1453 fi
1454
1455 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1456 if test "$ac_test_CFLAGS" = set; then
1457 CFLAGS="$ac_save_CFLAGS"
1458 elif test $ac_cv_prog_cc_g = yes; then
1459 CFLAGS="-g -O2"
1460 else
1461 CFLAGS="-O2"
1462 fi
1463 else
1464 GCC=
1465 test "${CFLAGS+set}" = set || CFLAGS="-g"
1466 fi
1467
1468 # Find a good install program. We prefer a C program (faster),
1469 # so one script is as good as another. But avoid the broken or
1470 # incompatible versions:
1471 # SysV /etc/install, /usr/sbin/install
1472 # SunOS /usr/etc/install
1473 # IRIX /sbin/install
1474 # AIX /bin/install
1475 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1476 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1477 # ./install, which can be erroneously created by make from ./install.sh.
1478 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1479 echo "configure:1480: checking for a BSD compatible install" >&5
1480 if test -z "$INSTALL"; then
1481 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1482 echo $ac_n "(cached) $ac_c" 1>&6
1483 else
1484 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1485 for ac_dir in $PATH; do
1486 # Account for people who put trailing slashes in PATH elements.
1487 case "$ac_dir/" in
1488 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1489 *)
1490 # OSF1 and SCO ODT 3.0 have their own names for install.
1491 for ac_prog in ginstall installbsd scoinst install; do
1492 if test -f $ac_dir/$ac_prog; then
1493 if test $ac_prog = install &&
1494 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1495 # AIX install. It has an incompatible calling convention.
1496 # OSF/1 installbsd also uses dspmsg, but is usable.
1497 :
1498 else
1499 ac_cv_path_install="$ac_dir/$ac_prog -c"
1500 break 2
1501 fi
1502 fi
1503 done
1504 ;;
1505 esac
1506 done
1507 IFS="$ac_save_IFS"
1508
1509 fi
1510 if test "${ac_cv_path_install+set}" = set; then
1511 INSTALL="$ac_cv_path_install"
1512 else
1513 # As a last resort, use the slow shell script. We don't cache a
1514 # path for INSTALL within a source directory, because that will
1515 # break other packages using the cache if that directory is
1516 # removed, or if the path is relative.
1517 INSTALL="$ac_install_sh"
1518 fi
1519 fi
1520 echo "$ac_t""$INSTALL" 1>&6
1521
1522 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1523 # It thinks the first close brace ends the variable substitution.
1524 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1525
1526 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1527
1528 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1529 echo "configure:1530: checking whether ${MAKE-make} sets \${MAKE}" >&5
1530 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1531 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1532 echo $ac_n "(cached) $ac_c" 1>&6
1533 else
1534 cat > conftestmake <<\EOF
1535 all:
1536 @echo 'ac_maketemp="${MAKE}"'
1537 EOF
1538 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1539 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1540 if test -n "$ac_maketemp"; then
1541 eval ac_cv_prog_make_${ac_make}_set=yes
1542 else
1543 eval ac_cv_prog_make_${ac_make}_set=no
1544 fi
1545 rm -f conftestmake
1546 fi
1547 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1548 echo "$ac_t""yes" 1>&6
1549 SET_MAKE=
1550 else
1551 echo "$ac_t""no" 1>&6
1552 SET_MAKE="MAKE=${MAKE-make}"
1553 fi
1554
1555 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1556 echo "configure:1557: checking how to run the C preprocessor" >&5
1557 # On Suns, sometimes $CPP names a directory.
1558 if test -n "$CPP" && test -d "$CPP"; then
1559 CPP=
1560 fi
1561 if test -z "$CPP"; then
1562 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1563 echo $ac_n "(cached) $ac_c" 1>&6
1564 else
1565 # This must be in double quotes, not single quotes, because CPP may get
1566 # substituted into the Makefile and "${CC-cc}" will confuse make.
1567 CPP="${CC-cc} -E"
1568 # On the NeXT, cc -E runs the code through the compiler's parser,
1569 # not just through cpp.
1570 cat > conftest.$ac_ext <<EOF
1571 #line 1572 "configure"
1572 #include "confdefs.h"
1573 #include <assert.h>
1574 Syntax Error
1575 EOF
1576 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1577 { (eval echo configure:1578: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1578 ac_err=`grep -v '^ *+' conftest.out`
1579 if test -z "$ac_err"; then
1580 :
1581 else
1582 echo "$ac_err" >&5
1583 echo "configure: failed program was:" >&5
1584 cat conftest.$ac_ext >&5
1585 rm -rf conftest*
1586 CPP="${CC-cc} -E -traditional-cpp"
1587 cat > conftest.$ac_ext <<EOF
1588 #line 1589 "configure"
1589 #include "confdefs.h"
1590 #include <assert.h>
1591 Syntax Error
1592 EOF
1593 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1594 { (eval echo configure:1595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1595 ac_err=`grep -v '^ *+' conftest.out`
1596 if test -z "$ac_err"; then
1597 :
1598 else
1599 echo "$ac_err" >&5
1600 echo "configure: failed program was:" >&5
1601 cat conftest.$ac_ext >&5
1602 rm -rf conftest*
1603 CPP=/lib/cpp
1604 fi
1605 rm -f conftest*
1606 fi
1607 rm -f conftest*
1608 ac_cv_prog_CPP="$CPP"
1609 fi
1610 CPP="$ac_cv_prog_CPP"
1611 else
1612 ac_cv_prog_CPP="$CPP"
1613 fi
1614 echo "$ac_t""$CPP" 1>&6
1615
1616 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1617 echo "configure:1618: checking for ANSI C header files" >&5
1618 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1619 echo $ac_n "(cached) $ac_c" 1>&6
1620 else
1621 cat > conftest.$ac_ext <<EOF
1622 #line 1623 "configure"
1623 #include "confdefs.h"
1624 #include <stdlib.h>
1625 #include <stdarg.h>
1626 #include <string.h>
1627 #include <float.h>
1628 EOF
1629 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1630 { (eval echo configure:1631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1631 ac_err=`grep -v '^ *+' conftest.out`
1632 if test -z "$ac_err"; then
1633 rm -rf conftest*
1634 ac_cv_header_stdc=yes
1635 else
1636 echo "$ac_err" >&5
1637 echo "configure: failed program was:" >&5
1638 cat conftest.$ac_ext >&5
1639 rm -rf conftest*
1640 ac_cv_header_stdc=no
1641 fi
1642 rm -f conftest*
1643
1644 if test $ac_cv_header_stdc = yes; then
1645 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1646 cat > conftest.$ac_ext <<EOF
1647 #line 1648 "configure"
1648 #include "confdefs.h"
1649 #include <string.h>
1650 EOF
1651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1652 egrep "memchr" >/dev/null 2>&1; then
1653 :
1654 else
1655 rm -rf conftest*
1656 ac_cv_header_stdc=no
1657 fi
1658 rm -f conftest*
1659
1660 fi
1661
1662 if test $ac_cv_header_stdc = yes; then
1663 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1664 cat > conftest.$ac_ext <<EOF
1665 #line 1666 "configure"
1666 #include "confdefs.h"
1667 #include <stdlib.h>
1668 EOF
1669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1670 egrep "free" >/dev/null 2>&1; then
1671 :
1672 else
1673 rm -rf conftest*
1674 ac_cv_header_stdc=no
1675 fi
1676 rm -f conftest*
1677
1678 fi
1679
1680 if test $ac_cv_header_stdc = yes; then
1681 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1682 if test "$cross_compiling" = yes; then
1683 :
1684 else
1685 cat > conftest.$ac_ext <<EOF
1686 #line 1687 "configure"
1687 #include "confdefs.h"
1688 #include <ctype.h>
1689 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1690 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1691 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1692 int main () { int i; for (i = 0; i < 256; i++)
1693 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1694 exit (0); }
1695
1696 EOF
1697 if { (eval echo configure:1698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1698 then
1699 :
1700 else
1701 echo "configure: failed program was:" >&5
1702 cat conftest.$ac_ext >&5
1703 rm -fr conftest*
1704 ac_cv_header_stdc=no
1705 fi
1706 rm -fr conftest*
1707 fi
1708
1709 fi
1710 fi
1711
1712 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1713 if test $ac_cv_header_stdc = yes; then
1714 cat >> confdefs.h <<\EOF
1715 #define STDC_HEADERS 1
1716 EOF
1717
1718 fi
1719
1720 if test "$program_transform_name" = s,x,x,; then
1721 program_transform_name=
1722 else
1723 # Double any \ or $. echo might interpret backslashes.
1724 cat <<\EOF_SED > conftestsed
1725 s,\\,\\\\,g; s,\$,$$,g
1726 EOF_SED
1727 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1728 rm -f conftestsed
1729 fi
1730 test "$program_prefix" != NONE &&
1731 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1732 # Use a double $ so make ignores it.
1733 test "$program_suffix" != NONE &&
1734 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1735
1736 # sed with no file args requires a program.
1737 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1738
1739
1740 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1741 if test "${with_gtk_prefix+set}" = set; then
1742 withval="$with_gtk_prefix"
1743 gtk_config_prefix="$withval"
1744 else
1745 gtk_config_prefix=""
1746 fi
1747
1748 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1749 if test "${with_gtk_exec_prefix+set}" = set; then
1750 withval="$with_gtk_exec_prefix"
1751 gtk_config_exec_prefix="$withval"
1752 else
1753 gtk_config_exec_prefix=""
1754 fi
1755
1756 # Check whether --enable-gtktest or --disable-gtktest was given.
1757 if test "${enable_gtktest+set}" = set; then
1758 enableval="$enable_gtktest"
1759 :
1760 else
1761 enable_gtktest=yes
1762 fi
1763
1764
1765 if test x$gtk_config_exec_prefix != x ; then
1766 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
1767 if test x${GTK_CONFIG+set} != xset ; then
1768 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
1769 fi
1770 fi
1771 if test x$gtk_config_prefix != x ; then
1772 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
1773 if test x${GTK_CONFIG+set} != xset ; then
1774 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
1775 fi
1776 fi
1777
1778 # Extract the first word of "gtk-config", so it can be a program name with args.
1779 set dummy gtk-config; ac_word=$2
1780 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1781 echo "configure:1782: checking for $ac_word" >&5
1782 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
1783 echo $ac_n "(cached) $ac_c" 1>&6
1784 else
1785 case "$GTK_CONFIG" in
1786 /*)
1787 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
1788 ;;
1789 *)
1790 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1791 for ac_dir in $PATH; do
1792 test -z "$ac_dir" && ac_dir=.
1793 if test -f $ac_dir/$ac_word; then
1794 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
1795 break
1796 fi
1797 done
1798 IFS="$ac_save_ifs"
1799 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
1800 ;;
1801 esac
1802 fi
1803 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
1804 if test -n "$GTK_CONFIG"; then
1805 echo "$ac_t""$GTK_CONFIG" 1>&6
1806 else
1807 echo "$ac_t""no" 1>&6
1808 fi
1809
1810 min_gtk_version=1.0.0
1811 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
1812 echo "configure:1813: checking for GTK - version >= $min_gtk_version" >&5
1813 no_gtk=""
1814 if test "$GTK_CONFIG" = "no" ; then
1815 no_gtk=yes
1816 else
1817 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
1818 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
1819 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
1820 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
1821 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
1822 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
1823 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
1824 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
1825 if test "x$enable_gtktest" = "xyes" ; then
1826 ac_save_CFLAGS="$CFLAGS"
1827 ac_save_LIBS="$LIBS"
1828 CFLAGS="$CFLAGS $GTK_CFLAGS"
1829 LIBS="$LIBS $GTK_LIBS"
1830 rm -f conf.gtktest
1831 if test "$cross_compiling" = yes; then
1832 echo $ac_n "cross compiling; assumed OK... $ac_c"
1833 else
1834 cat > conftest.$ac_ext <<EOF
1835 #line 1836 "configure"
1836 #include "confdefs.h"
1837
1838 #include <gtk/gtk.h>
1839 #include <stdio.h>
1840 #include <stdlib.h>
1841
1842 int
1843 main ()
1844 {
1845 int major, minor, micro;
1846 char *tmp_version;
1847
1848 system ("touch conf.gtktest");
1849
1850 /* HP/UX 9 (%@#!) writes to sscanf strings */
1851 tmp_version = g_strdup("$min_gtk_version");
1852 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
1853 printf("%s, bad version string\n", "$min_gtk_version");
1854 exit(1);
1855 }
1856
1857 if ((gtk_major_version != $gtk_config_major_version) ||
1858 (gtk_minor_version != $gtk_config_minor_version) ||
1859 (gtk_micro_version != $gtk_config_micro_version))
1860 {
1861 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
1862 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
1863 gtk_major_version, gtk_minor_version, gtk_micro_version);
1864 printf ("*** was found! If gtk-config was correct, then it is best\n");
1865 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
1866 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
1867 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
1868 printf("*** required on your system.\n");
1869 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
1870 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
1871 printf("*** before re-running configure\n");
1872 }
1873 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
1874 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
1875 (gtk_minor_version != GTK_MINOR_VERSION) ||
1876 (gtk_micro_version != GTK_MICRO_VERSION))
1877 {
1878 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
1879 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
1880 printf("*** library (version %d.%d.%d)\n",
1881 gtk_major_version, gtk_minor_version, gtk_micro_version);
1882 }
1883 #endif /* defined (GTK_MAJOR_VERSION) ... */
1884 else
1885 {
1886 if ((gtk_major_version > major) ||
1887 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
1888 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
1889 {
1890 return 0;
1891 }
1892 else
1893 {
1894 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
1895 gtk_major_version, gtk_minor_version, gtk_micro_version);
1896 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
1897 major, minor, micro);
1898 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
1899 printf("***\n");
1900 printf("*** If you have already installed a sufficiently new version, this error\n");
1901 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
1902 printf("*** being found. The easiest way to fix this is to remove the old version\n");
1903 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
1904 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
1905 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
1906 printf("*** so that the correct libraries are found at run-time))\n");
1907 }
1908 }
1909 return 1;
1910 }
1911
1912 EOF
1913 if { (eval echo configure:1914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1914 then
1915 :
1916 else
1917 echo "configure: failed program was:" >&5
1918 cat conftest.$ac_ext >&5
1919 rm -fr conftest*
1920 no_gtk=yes
1921 fi
1922 rm -fr conftest*
1923 fi
1924
1925 CFLAGS="$ac_save_CFLAGS"
1926 LIBS="$ac_save_LIBS"
1927 fi
1928 fi
1929 if test "x$no_gtk" = x ; then
1930 echo "$ac_t""yes" 1>&6
1931 :
1932 else
1933 echo "$ac_t""no" 1>&6
1934 if test "$GTK_CONFIG" = "no" ; then
1935 echo "*** The gtk-config script installed by GTK could not be found"
1936 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
1937 echo "*** your path, or set the GTK_CONFIG environment variable to the"
1938 echo "*** full path to gtk-config."
1939 else
1940 if test -f conf.gtktest ; then
1941 :
1942 else
1943 echo "*** Could not run GTK test program, checking why..."
1944 CFLAGS="$CFLAGS $GTK_CFLAGS"
1945 LIBS="$LIBS $GTK_LIBS"
1946 cat > conftest.$ac_ext <<EOF
1947 #line 1948 "configure"
1948 #include "confdefs.h"
1949
1950 #include <gtk/gtk.h>
1951 #include <stdio.h>
1952
1953 int main() {
1954 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
1955 ; return 0; }
1956 EOF
1957 if { (eval echo configure:1958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1958 rm -rf conftest*
1959 echo "*** The test program compiled, but did not run. This usually means"
1960 echo "*** that the run-time linker is not finding GTK or finding the wrong"
1961 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
1962 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
1963 echo "*** to the installed location Also, make sure you have run ldconfig if that"
1964 echo "*** is required on your system"
1965 echo "***"
1966 echo "*** If you have an old version installed, it is best to remove it, although"
1967 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
1968 echo "***"
1969 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
1970 echo "*** came with the system with the command"
1971 echo "***"
1972 echo "*** rpm --erase --nodeps gtk gtk-devel"
1973 else
1974 echo "configure: failed program was:" >&5
1975 cat conftest.$ac_ext >&5
1976 rm -rf conftest*
1977 echo "*** The test program failed to compile or link. See the file config.log for the"
1978 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
1979 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
1980 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
1981 fi
1982 rm -f conftest*
1983 CFLAGS="$ac_save_CFLAGS"
1984 LIBS="$ac_save_LIBS"
1985 fi
1986 fi
1987 GTK_CFLAGS=""
1988 GTK_LIBS=""
1989 { echo "configure: error: Cannot find correct version of GTK - is gtk-config in path?" 1>&2; exit 1; }
1990 fi
1991
1992
1993 rm -f conf.gtktest
1994
1995
1996 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1997 echo "configure:1998: checking for ANSI C header files" >&5
1998 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1999 echo $ac_n "(cached) $ac_c" 1>&6
2000 else
2001 cat > conftest.$ac_ext <<EOF
2002 #line 2003 "configure"
2003 #include "confdefs.h"
2004 #include <stdlib.h>
2005 #include <stdarg.h>
2006 #include <string.h>
2007 #include <float.h>
2008 EOF
2009 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2010 { (eval echo configure:2011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2011 ac_err=`grep -v '^ *+' conftest.out`
2012 if test -z "$ac_err"; then
2013 rm -rf conftest*
2014 ac_cv_header_stdc=yes
2015 else
2016 echo "$ac_err" >&5
2017 echo "configure: failed program was:" >&5
2018 cat conftest.$ac_ext >&5
2019 rm -rf conftest*
2020 ac_cv_header_stdc=no
2021 fi
2022 rm -f conftest*
2023
2024 if test $ac_cv_header_stdc = yes; then
2025 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2026 cat > conftest.$ac_ext <<EOF
2027 #line 2028 "configure"
2028 #include "confdefs.h"
2029 #include <string.h>
2030 EOF
2031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2032 egrep "memchr" >/dev/null 2>&1; then
2033 :
2034 else
2035 rm -rf conftest*
2036 ac_cv_header_stdc=no
2037 fi
2038 rm -f conftest*
2039
2040 fi
2041
2042 if test $ac_cv_header_stdc = yes; then
2043 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2044 cat > conftest.$ac_ext <<EOF
2045 #line 2046 "configure"
2046 #include "confdefs.h"
2047 #include <stdlib.h>
2048 EOF
2049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2050 egrep "free" >/dev/null 2>&1; then
2051 :
2052 else
2053 rm -rf conftest*
2054 ac_cv_header_stdc=no
2055 fi
2056 rm -f conftest*
2057
2058 fi
2059
2060 if test $ac_cv_header_stdc = yes; then
2061 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2062 if test "$cross_compiling" = yes; then
2063 :
2064 else
2065 cat > conftest.$ac_ext <<EOF
2066 #line 2067 "configure"
2067 #include "confdefs.h"
2068 #include <ctype.h>
2069 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2070 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2071 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2072 int main () { int i; for (i = 0; i < 256; i++)
2073 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2074 exit (0); }
2075
2076 EOF
2077 if { (eval echo configure:2078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2078 then
2079 :
2080 else
2081 echo "configure: failed program was:" >&5
2082 cat conftest.$ac_ext >&5
2083 rm -fr conftest*
2084 ac_cv_header_stdc=no
2085 fi
2086 rm -fr conftest*
2087 fi
2088
2089 fi
2090 fi
2091
2092 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2093 if test $ac_cv_header_stdc = yes; then
2094 cat >> confdefs.h <<\EOF
2095 #define STDC_HEADERS 1
2096 EOF
2097
2098 fi
2099
2100 for ac_hdr in fcntl.h unistd.h
2101 do
2102 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2103 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2104 echo "configure:2105: checking for $ac_hdr" >&5
2105 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2106 echo $ac_n "(cached) $ac_c" 1>&6
2107 else
2108 cat > conftest.$ac_ext <<EOF
2109 #line 2110 "configure"
2110 #include "confdefs.h"
2111 #include <$ac_hdr>
2112 EOF
2113 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2114 { (eval echo configure:2115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2115 ac_err=`grep -v '^ *+' conftest.out`
2116 if test -z "$ac_err"; then
2117 rm -rf conftest*
2118 eval "ac_cv_header_$ac_safe=yes"
2119 else
2120 echo "$ac_err" >&5
2121 echo "configure: failed program was:" >&5
2122 cat conftest.$ac_ext >&5
2123 rm -rf conftest*
2124 eval "ac_cv_header_$ac_safe=no"
2125 fi
2126 rm -f conftest*
2127 fi
2128 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2129 echo "$ac_t""yes" 1>&6
2130 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2131 cat >> confdefs.h <<EOF
2132 #define $ac_tr_hdr 1
2133 EOF
2134
2135 else
2136 echo "$ac_t""no" 1>&6
2137 fi
2138 done
2139
2140
2141 echo $ac_n "checking for working const""... $ac_c" 1>&6
2142 echo "configure:2143: checking for working const" >&5
2143 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2144 echo $ac_n "(cached) $ac_c" 1>&6
2145 else
2146 cat > conftest.$ac_ext <<EOF
2147 #line 2148 "configure"
2148 #include "confdefs.h"
2149
2150 int main() {
2151
2152 /* Ultrix mips cc rejects this. */
2153 typedef int charset[2]; const charset x;
2154 /* SunOS 4.1.1 cc rejects this. */
2155 char const *const *ccp;
2156 char **p;
2157 /* NEC SVR4.0.2 mips cc rejects this. */
2158 struct point {int x, y;};
2159 static struct point const zero = {0,0};
2160 /* AIX XL C 1.02.0.0 rejects this.
2161 It does not let you subtract one const X* pointer from another in an arm
2162 of an if-expression whose if-part is not a constant expression */
2163 const char *g = "string";
2164 ccp = &g + (g ? g-g : 0);
2165 /* HPUX 7.0 cc rejects these. */
2166 ++ccp;
2167 p = (char**) ccp;
2168 ccp = (char const *const *) p;
2169 { /* SCO 3.2v4 cc rejects this. */
2170 char *t;
2171 char const *s = 0 ? (char *) 0 : (char const *) 0;
2172
2173 *t++ = 0;
2174 }
2175 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2176 int x[] = {25, 17};
2177 const int *foo = &x[0];
2178 ++foo;
2179 }
2180 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2181 typedef const int *iptr;
2182 iptr p = 0;
2183 ++p;
2184 }
2185 { /* AIX XL C 1.02.0.0 rejects this saying
2186 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2187 struct s { int j; const int *ap[3]; };
2188 struct s *b; b->j = 5;
2189 }
2190 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2191 const int foo = 10;
2192 }
2193
2194 ; return 0; }
2195 EOF
2196 if { (eval echo configure:2197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2197 rm -rf conftest*
2198 ac_cv_c_const=yes
2199 else
2200 echo "configure: failed program was:" >&5
2201 cat conftest.$ac_ext >&5
2202 rm -rf conftest*
2203 ac_cv_c_const=no
2204 fi
2205 rm -f conftest*
2206 fi
2207
2208 echo "$ac_t""$ac_cv_c_const" 1>&6
2209 if test $ac_cv_c_const = no; then
2210 cat >> confdefs.h <<\EOF
2211 #define const
2212 EOF
2213
2214 fi
2215
2216 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2217 echo "configure:2218: checking whether time.h and sys/time.h may both be included" >&5
2218 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2219 echo $ac_n "(cached) $ac_c" 1>&6
2220 else
2221 cat > conftest.$ac_ext <<EOF
2222 #line 2223 "configure"
2223 #include "confdefs.h"
2224 #include <sys/types.h>
2225 #include <sys/time.h>
2226 #include <time.h>
2227 int main() {
2228 struct tm *tp;
2229 ; return 0; }
2230 EOF
2231 if { (eval echo configure:2232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2232 rm -rf conftest*
2233 ac_cv_header_time=yes
2234 else
2235 echo "configure: failed program was:" >&5
2236 cat conftest.$ac_ext >&5
2237 rm -rf conftest*
2238 ac_cv_header_time=no
2239 fi
2240 rm -f conftest*
2241 fi
2242
2243 echo "$ac_t""$ac_cv_header_time" 1>&6
2244 if test $ac_cv_header_time = yes; then
2245 cat >> confdefs.h <<\EOF
2246 #define TIME_WITH_SYS_TIME 1
2247 EOF
2248
2249 fi
2250
2251 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2252 echo "configure:2253: checking for uid_t in sys/types.h" >&5
2253 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2254 echo $ac_n "(cached) $ac_c" 1>&6
2255 else
2256 cat > conftest.$ac_ext <<EOF
2257 #line 2258 "configure"
2258 #include "confdefs.h"
2259 #include <sys/types.h>
2260 EOF
2261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2262 egrep "uid_t" >/dev/null 2>&1; then
2263 rm -rf conftest*
2264 ac_cv_type_uid_t=yes
2265 else
2266 rm -rf conftest*
2267 ac_cv_type_uid_t=no
2268 fi
2269 rm -f conftest*
2270
2271 fi
2272
2273 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2274 if test $ac_cv_type_uid_t = no; then
2275 cat >> confdefs.h <<\EOF
2276 #define uid_t int
2277 EOF
2278
2279 cat >> confdefs.h <<\EOF
2280 #define gid_t int
2281 EOF
2282
2283 fi
2284
2285
2286 # If we find X, set shell vars x_includes and x_libraries to the
2287 # paths, otherwise set no_x=yes.
2288 # Uses ac_ vars as temps to allow command line to override cache and checks.
2289 # --without-x overrides everything else, but does not touch the cache.
2290 echo $ac_n "checking for X""... $ac_c" 1>&6
2291 echo "configure:2292: checking for X" >&5
2292
2293 # Check whether --with-x or --without-x was given.
2294 if test "${with_x+set}" = set; then
2295 withval="$with_x"
2296 :
2297 fi
2298
2299 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2300 if test "x$with_x" = xno; then
2301 # The user explicitly disabled X.
2302 have_x=disabled
2303 else
2304 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2305 # Both variables are already set.
2306 have_x=yes
2307 else
2308 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
2309 echo $ac_n "(cached) $ac_c" 1>&6
2310 else
2311 # One or both of the vars are not set, and there is no cached value.
2312 ac_x_includes=NO ac_x_libraries=NO
2313 rm -fr conftestdir
2314 if mkdir conftestdir; then
2315 cd conftestdir
2316 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2317 cat > Imakefile <<'EOF'
2318 acfindx:
2319 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2320 EOF
2321 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2322 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2323 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2324 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2325 for ac_extension in a so sl; do
2326 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2327 test -f $ac_im_libdir/libX11.$ac_extension; then
2328 ac_im_usrlibdir=$ac_im_libdir; break
2329 fi
2330 done
2331 # Screen out bogus values from the imake configuration. They are
2332 # bogus both because they are the default anyway, and because
2333 # using them would break gcc on systems where it needs fixed includes.
2334 case "$ac_im_incroot" in
2335 /usr/include) ;;
2336 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
2337 esac
2338 case "$ac_im_usrlibdir" in
2339 /usr/lib | /lib) ;;
2340 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
2341 esac
2342 fi
2343 cd ..
2344 rm -fr conftestdir
2345 fi
2346
2347 if test "$ac_x_includes" = NO; then
2348 # Guess where to find include files, by looking for this one X11 .h file.
2349 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
2350
2351 # First, try using that file with no special directory specified.
2352 cat > conftest.$ac_ext <<EOF
2353 #line 2354 "configure"
2354 #include "confdefs.h"
2355 #include <$x_direct_test_include>
2356 EOF
2357 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2358 { (eval echo configure:2359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2359 ac_err=`grep -v '^ *+' conftest.out`
2360 if test -z "$ac_err"; then
2361 rm -rf conftest*
2362 # We can compile using X headers with no special include directory.
2363 ac_x_includes=
2364 else
2365 echo "$ac_err" >&5
2366 echo "configure: failed program was:" >&5
2367 cat conftest.$ac_ext >&5
2368 rm -rf conftest*
2369 # Look for the header file in a standard set of common directories.
2370 # Check X11 before X11Rn because it is often a symlink to the current release.
2371 for ac_dir in \
2372 /usr/X11/include \
2373 /usr/X11R6/include \
2374 /usr/X11R5/include \
2375 /usr/X11R4/include \
2376 \
2377 /usr/include/X11 \
2378 /usr/include/X11R6 \
2379 /usr/include/X11R5 \
2380 /usr/include/X11R4 \
2381 \
2382 /usr/local/X11/include \
2383 /usr/local/X11R6/include \
2384 /usr/local/X11R5/include \
2385 /usr/local/X11R4/include \
2386 \
2387 /usr/local/include/X11 \
2388 /usr/local/include/X11R6 \
2389 /usr/local/include/X11R5 \
2390 /usr/local/include/X11R4 \
2391 \
2392 /usr/X386/include \
2393 /usr/x386/include \
2394 /usr/XFree86/include/X11 \
2395 \
2396 /usr/include \
2397 /usr/local/include \
2398 /usr/unsupported/include \
2399 /usr/athena/include \
2400 /usr/local/x11r5/include \
2401 /usr/lpp/Xamples/include \
2402 \
2403 /usr/openwin/include \
2404 /usr/openwin/share/include \
2405 ; \
2406 do
2407 if test -r "$ac_dir/$x_direct_test_include"; then
2408 ac_x_includes=$ac_dir
2409 break
2410 fi
2411 done
2412 fi
2413 rm -f conftest*
2414 fi # $ac_x_includes = NO
2415
2416 if test "$ac_x_libraries" = NO; then
2417 # Check for the libraries.
2418
2419 test -z "$x_direct_test_library" && x_direct_test_library=Xt
2420 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
2421
2422 # See if we find them without any special options.
2423 # Don't add to $LIBS permanently.
2424 ac_save_LIBS="$LIBS"
2425 LIBS="-l$x_direct_test_library $LIBS"
2426 cat > conftest.$ac_ext <<EOF
2427 #line 2428 "configure"
2428 #include "confdefs.h"
2429
2430 int main() {
2431 ${x_direct_test_function}()
2432 ; return 0; }
2433 EOF
2434 if { (eval echo configure:2435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2435 rm -rf conftest*
2436 LIBS="$ac_save_LIBS"
2437 # We can link X programs with no special library path.
2438 ac_x_libraries=
2439 else
2440 echo "configure: failed program was:" >&5
2441 cat conftest.$ac_ext >&5
2442 rm -rf conftest*
2443 LIBS="$ac_save_LIBS"
2444 # First see if replacing the include by lib works.
2445 # Check X11 before X11Rn because it is often a symlink to the current release.
2446 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
2447 /usr/X11/lib \
2448 /usr/X11R6/lib \
2449 /usr/X11R5/lib \
2450 /usr/X11R4/lib \
2451 \
2452 /usr/lib/X11 \
2453 /usr/lib/X11R6 \
2454 /usr/lib/X11R5 \
2455 /usr/lib/X11R4 \
2456 \
2457 /usr/local/X11/lib \
2458 /usr/local/X11R6/lib \
2459 /usr/local/X11R5/lib \
2460 /usr/local/X11R4/lib \
2461 \
2462 /usr/local/lib/X11 \
2463 /usr/local/lib/X11R6 \
2464 /usr/local/lib/X11R5 \
2465 /usr/local/lib/X11R4 \
2466 \
2467 /usr/X386/lib \
2468 /usr/x386/lib \
2469 /usr/XFree86/lib/X11 \
2470 \
2471 /usr/lib \
2472 /usr/local/lib \
2473 /usr/unsupported/lib \
2474 /usr/athena/lib \
2475 /usr/local/x11r5/lib \
2476 /usr/lpp/Xamples/lib \
2477 /lib/usr/lib/X11 \
2478 \
2479 /usr/openwin/lib \
2480 /usr/openwin/share/lib \
2481 ; \
2482 do
2483 for ac_extension in a so sl; do
2484 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
2485 ac_x_libraries=$ac_dir
2486 break 2
2487 fi
2488 done
2489 done
2490 fi
2491 rm -f conftest*
2492 fi # $ac_x_libraries = NO
2493
2494 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
2495 # Didn't find X anywhere. Cache the known absence of X.
2496 ac_cv_have_x="have_x=no"
2497 else
2498 # Record where we found X for the cache.
2499 ac_cv_have_x="have_x=yes \
2500 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2501 fi
2502 fi
2503 fi
2504 eval "$ac_cv_have_x"
2505 fi # $with_x != no
2506
2507 if test "$have_x" != yes; then
2508 echo "$ac_t""$have_x" 1>&6
2509 no_x=yes
2510 else
2511 # If each of the values was on the command line, it overrides each guess.
2512 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2513 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2514 # Update the cache value to reflect the command line values.
2515 ac_cv_have_x="have_x=yes \
2516 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2517 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
2518 fi
2519
2520 if test "$no_x" = yes; then
2521 # Not all programs may use this symbol, but it does not hurt to define it.
2522 cat >> confdefs.h <<\EOF
2523 #define X_DISPLAY_MISSING 1
2524 EOF
2525
2526 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2527 else
2528 if test -n "$x_includes"; then
2529 X_CFLAGS="$X_CFLAGS -I$x_includes"
2530 fi
2531
2532 # It would also be nice to do this for all -L options, not just this one.
2533 if test -n "$x_libraries"; then
2534 X_LIBS="$X_LIBS -L$x_libraries"
2535 # For Solaris; some versions of Sun CC require a space after -R and
2536 # others require no space. Words are not sufficient . . . .
2537 case "`(uname -sr) 2>/dev/null`" in
2538 "SunOS 5"*)
2539 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
2540 echo "configure:2541: checking whether -R must be followed by a space" >&5
2541 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
2542 cat > conftest.$ac_ext <<EOF
2543 #line 2544 "configure"
2544 #include "confdefs.h"
2545
2546 int main() {
2547
2548 ; return 0; }
2549 EOF
2550 if { (eval echo configure:2551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2551 rm -rf conftest*
2552 ac_R_nospace=yes
2553 else
2554 echo "configure: failed program was:" >&5
2555 cat conftest.$ac_ext >&5
2556 rm -rf conftest*
2557 ac_R_nospace=no
2558 fi
2559 rm -f conftest*
2560 if test $ac_R_nospace = yes; then
2561 echo "$ac_t""no" 1>&6
2562 X_LIBS="$X_LIBS -R$x_libraries"
2563 else
2564 LIBS="$ac_xsave_LIBS -R $x_libraries"
2565 cat > conftest.$ac_ext <<EOF
2566 #line 2567 "configure"
2567 #include "confdefs.h"
2568
2569 int main() {
2570
2571 ; return 0; }
2572 EOF
2573 if { (eval echo configure:2574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2574 rm -rf conftest*
2575 ac_R_space=yes
2576 else
2577 echo "configure: failed program was:" >&5
2578 cat conftest.$ac_ext >&5
2579 rm -rf conftest*
2580 ac_R_space=no
2581 fi
2582 rm -f conftest*
2583 if test $ac_R_space = yes; then
2584 echo "$ac_t""yes" 1>&6
2585 X_LIBS="$X_LIBS -R $x_libraries"
2586 else
2587 echo "$ac_t""neither works" 1>&6
2588 fi
2589 fi
2590 LIBS="$ac_xsave_LIBS"
2591 esac
2592 fi
2593
2594 # Check for system-dependent libraries X programs must link with.
2595 # Do this before checking for the system-independent R6 libraries
2596 # (-lICE), since we may need -lsocket or whatever for X linking.
2597
2598 if test "$ISC" = yes; then
2599 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2600 else
2601 # [email protected] says this is needed for Ultrix, if the X
2602 # libraries were built with DECnet support. And [email protected] says
2603 # the Alpha needs dnet_stub (dnet does not exist).
2604 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
2605 echo "configure:2606: checking for dnet_ntoa in -ldnet" >&5
2606 ac_lib_var=`echo dnet'_'dnet_ntoa | 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="-ldnet $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 dnet_ntoa();
2619
2620 int main() {
2621 dnet_ntoa()
2622 ; return 0; }
2623 EOF
2624 if { (eval echo configure:2625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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"
2632 fi
2633 rm -f conftest*
2634 LIBS="$ac_save_LIBS"
2635
2636 fi
2637 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2638 echo "$ac_t""yes" 1>&6
2639 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2640 else
2641 echo "$ac_t""no" 1>&6
2642 fi
2643
2644 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2645 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
2646 echo "configure:2647: checking for dnet_ntoa in -ldnet_stub" >&5
2647 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2648 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2649 echo $ac_n "(cached) $ac_c" 1>&6
2650 else
2651 ac_save_LIBS="$LIBS"
2652 LIBS="-ldnet_stub $LIBS"
2653 cat > conftest.$ac_ext <<EOF
2654 #line 2655 "configure"
2655 #include "confdefs.h"
2656 /* Override any gcc2 internal prototype to avoid an error. */
2657 /* We use char because int might match the return type of a gcc2
2658 builtin and then its argument prototype would still apply. */
2659 char dnet_ntoa();
2660
2661 int main() {
2662 dnet_ntoa()
2663 ; return 0; }
2664 EOF
2665 if { (eval echo configure:2666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2666 rm -rf conftest*
2667 eval "ac_cv_lib_$ac_lib_var=yes"
2668 else
2669 echo "configure: failed program was:" >&5
2670 cat conftest.$ac_ext >&5
2671 rm -rf conftest*
2672 eval "ac_cv_lib_$ac_lib_var=no"
2673 fi
2674 rm -f conftest*
2675 LIBS="$ac_save_LIBS"
2676
2677 fi
2678 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2679 echo "$ac_t""yes" 1>&6
2680 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2681 else
2682 echo "$ac_t""no" 1>&6
2683 fi
2684
2685 fi
2686
2687 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
2688 # to get the SysV transport functions.
2689 # [email protected] says the Pyramis MIS-ES running DC/OSx (SVR4)
2690 # needs -lnsl.
2691 # The nsl library prevents programs from opening the X display
2692 # on Irix 5.2, according to [email protected].
2693 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2694 echo "configure:2695: checking for gethostbyname" >&5
2695 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2696 echo $ac_n "(cached) $ac_c" 1>&6
2697 else
2698 cat > conftest.$ac_ext <<EOF
2699 #line 2700 "configure"
2700 #include "confdefs.h"
2701 /* System header to define __stub macros and hopefully few prototypes,
2702 which can conflict with char gethostbyname(); below. */
2703 #include <assert.h>
2704 /* Override any gcc2 internal prototype to avoid an error. */
2705 /* We use char because int might match the return type of a gcc2
2706 builtin and then its argument prototype would still apply. */
2707 char gethostbyname();
2708
2709 int main() {
2710
2711 /* The GNU C library defines this for functions which it implements
2712 to always fail with ENOSYS. Some functions are actually named
2713 something starting with __ and the normal name is an alias. */
2714 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2715 choke me
2716 #else
2717 gethostbyname();
2718 #endif
2719
2720 ; return 0; }
2721 EOF
2722 if { (eval echo configure:2723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2723 rm -rf conftest*
2724 eval "ac_cv_func_gethostbyname=yes"
2725 else
2726 echo "configure: failed program was:" >&5
2727 cat conftest.$ac_ext >&5
2728 rm -rf conftest*
2729 eval "ac_cv_func_gethostbyname=no"
2730 fi
2731 rm -f conftest*
2732 fi
2733
2734 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2735 echo "$ac_t""yes" 1>&6
2736 :
2737 else
2738 echo "$ac_t""no" 1>&6
2739 fi
2740
2741 if test $ac_cv_func_gethostbyname = no; then
2742 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2743 echo "configure:2744: checking for gethostbyname in -lnsl" >&5
2744 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2745 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2746 echo $ac_n "(cached) $ac_c" 1>&6
2747 else
2748 ac_save_LIBS="$LIBS"
2749 LIBS="-lnsl $LIBS"
2750 cat > conftest.$ac_ext <<EOF
2751 #line 2752 "configure"
2752 #include "confdefs.h"
2753 /* Override any gcc2 internal prototype to avoid an error. */
2754 /* We use char because int might match the return type of a gcc2
2755 builtin and then its argument prototype would still apply. */
2756 char gethostbyname();
2757
2758 int main() {
2759 gethostbyname()
2760 ; return 0; }
2761 EOF
2762 if { (eval echo configure:2763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2763 rm -rf conftest*
2764 eval "ac_cv_lib_$ac_lib_var=yes"
2765 else
2766 echo "configure: failed program was:" >&5
2767 cat conftest.$ac_ext >&5
2768 rm -rf conftest*
2769 eval "ac_cv_lib_$ac_lib_var=no"
2770 fi
2771 rm -f conftest*
2772 LIBS="$ac_save_LIBS"
2773
2774 fi
2775 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2776 echo "$ac_t""yes" 1>&6
2777 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2778 else
2779 echo "$ac_t""no" 1>&6
2780 fi
2781
2782 fi
2783
2784 # [email protected] says without -lsocket,
2785 # socket/setsockopt and other routines are undefined under SCO ODT
2786 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
2787 # on later versions), says [email protected]: it contains
2788 # gethostby* variants that don't use the nameserver (or something).
2789 # -lsocket must be given before -lnsl if both are needed.
2790 # We assume that if connect needs -lnsl, so does gethostbyname.
2791 echo $ac_n "checking for connect""... $ac_c" 1>&6
2792 echo "configure:2793: checking for connect" >&5
2793 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2794 echo $ac_n "(cached) $ac_c" 1>&6
2795 else
2796 cat > conftest.$ac_ext <<EOF
2797 #line 2798 "configure"
2798 #include "confdefs.h"
2799 /* System header to define __stub macros and hopefully few prototypes,
2800 which can conflict with char connect(); below. */
2801 #include <assert.h>
2802 /* Override any gcc2 internal prototype to avoid an error. */
2803 /* We use char because int might match the return type of a gcc2
2804 builtin and then its argument prototype would still apply. */
2805 char connect();
2806
2807 int main() {
2808
2809 /* The GNU C library defines this for functions which it implements
2810 to always fail with ENOSYS. Some functions are actually named
2811 something starting with __ and the normal name is an alias. */
2812 #if defined (__stub_connect) || defined (__stub___connect)
2813 choke me
2814 #else
2815 connect();
2816 #endif
2817
2818 ; return 0; }
2819 EOF
2820 if { (eval echo configure:2821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2821 rm -rf conftest*
2822 eval "ac_cv_func_connect=yes"
2823 else
2824 echo "configure: failed program was:" >&5
2825 cat conftest.$ac_ext >&5
2826 rm -rf conftest*
2827 eval "ac_cv_func_connect=no"
2828 fi
2829 rm -f conftest*
2830 fi
2831
2832 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2833 echo "$ac_t""yes" 1>&6
2834 :
2835 else
2836 echo "$ac_t""no" 1>&6
2837 fi
2838
2839 if test $ac_cv_func_connect = no; then
2840 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2841 echo "configure:2842: checking for connect in -lsocket" >&5
2842 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2843 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2844 echo $ac_n "(cached) $ac_c" 1>&6
2845 else
2846 ac_save_LIBS="$LIBS"
2847 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
2848 cat > conftest.$ac_ext <<EOF
2849 #line 2850 "configure"
2850 #include "confdefs.h"
2851 /* Override any gcc2 internal prototype to avoid an error. */
2852 /* We use char because int might match the return type of a gcc2
2853 builtin and then its argument prototype would still apply. */
2854 char connect();
2855
2856 int main() {
2857 connect()
2858 ; return 0; }
2859 EOF
2860 if { (eval echo configure:2861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2861 rm -rf conftest*
2862 eval "ac_cv_lib_$ac_lib_var=yes"
2863 else
2864 echo "configure: failed program was:" >&5
2865 cat conftest.$ac_ext >&5
2866 rm -rf conftest*
2867 eval "ac_cv_lib_$ac_lib_var=no"
2868 fi
2869 rm -f conftest*
2870 LIBS="$ac_save_LIBS"
2871
2872 fi
2873 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2874 echo "$ac_t""yes" 1>&6
2875 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
2876 else
2877 echo "$ac_t""no" 1>&6
2878 fi
2879
2880 fi
2881
2882 # [email protected] says -lposix is necessary on A/UX.
2883 echo $ac_n "checking for remove""... $ac_c" 1>&6
2884 echo "configure:2885: checking for remove" >&5
2885 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2886 echo $ac_n "(cached) $ac_c" 1>&6
2887 else
2888 cat > conftest.$ac_ext <<EOF
2889 #line 2890 "configure"
2890 #include "confdefs.h"
2891 /* System header to define __stub macros and hopefully few prototypes,
2892 which can conflict with char remove(); below. */
2893 #include <assert.h>
2894 /* Override any gcc2 internal prototype to avoid an error. */
2895 /* We use char because int might match the return type of a gcc2
2896 builtin and then its argument prototype would still apply. */
2897 char remove();
2898
2899 int main() {
2900
2901 /* The GNU C library defines this for functions which it implements
2902 to always fail with ENOSYS. Some functions are actually named
2903 something starting with __ and the normal name is an alias. */
2904 #if defined (__stub_remove) || defined (__stub___remove)
2905 choke me
2906 #else
2907 remove();
2908 #endif
2909
2910 ; return 0; }
2911 EOF
2912 if { (eval echo configure:2913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2913 rm -rf conftest*
2914 eval "ac_cv_func_remove=yes"
2915 else
2916 echo "configure: failed program was:" >&5
2917 cat conftest.$ac_ext >&5
2918 rm -rf conftest*
2919 eval "ac_cv_func_remove=no"
2920 fi
2921 rm -f conftest*
2922 fi
2923
2924 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2925 echo "$ac_t""yes" 1>&6
2926 :
2927 else
2928 echo "$ac_t""no" 1>&6
2929 fi
2930
2931 if test $ac_cv_func_remove = no; then
2932 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2933 echo "configure:2934: checking for remove in -lposix" >&5
2934 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2935 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2936 echo $ac_n "(cached) $ac_c" 1>&6
2937 else
2938 ac_save_LIBS="$LIBS"
2939 LIBS="-lposix $LIBS"
2940 cat > conftest.$ac_ext <<EOF
2941 #line 2942 "configure"
2942 #include "confdefs.h"
2943 /* Override any gcc2 internal prototype to avoid an error. */
2944 /* We use char because int might match the return type of a gcc2
2945 builtin and then its argument prototype would still apply. */
2946 char remove();
2947
2948 int main() {
2949 remove()
2950 ; return 0; }
2951 EOF
2952 if { (eval echo configure:2953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2953 rm -rf conftest*
2954 eval "ac_cv_lib_$ac_lib_var=yes"
2955 else
2956 echo "configure: failed program was:" >&5
2957 cat conftest.$ac_ext >&5
2958 rm -rf conftest*
2959 eval "ac_cv_lib_$ac_lib_var=no"
2960 fi
2961 rm -f conftest*
2962 LIBS="$ac_save_LIBS"
2963
2964 fi
2965 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2966 echo "$ac_t""yes" 1>&6
2967 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
2968 else
2969 echo "$ac_t""no" 1>&6
2970 fi
2971
2972 fi
2973
2974 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2975 echo $ac_n "checking for shmat""... $ac_c" 1>&6
2976 echo "configure:2977: checking for shmat" >&5
2977 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2978 echo $ac_n "(cached) $ac_c" 1>&6
2979 else
2980 cat > conftest.$ac_ext <<EOF
2981 #line 2982 "configure"
2982 #include "confdefs.h"
2983 /* System header to define __stub macros and hopefully few prototypes,
2984 which can conflict with char shmat(); below. */
2985 #include <assert.h>
2986 /* Override any gcc2 internal prototype to avoid an error. */
2987 /* We use char because int might match the return type of a gcc2
2988 builtin and then its argument prototype would still apply. */
2989 char shmat();
2990
2991 int main() {
2992
2993 /* The GNU C library defines this for functions which it implements
2994 to always fail with ENOSYS. Some functions are actually named
2995 something starting with __ and the normal name is an alias. */
2996 #if defined (__stub_shmat) || defined (__stub___shmat)
2997 choke me
2998 #else
2999 shmat();
3000 #endif
3001
3002 ; return 0; }
3003 EOF
3004 if { (eval echo configure:3005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3005 rm -rf conftest*
3006 eval "ac_cv_func_shmat=yes"
3007 else
3008 echo "configure: failed program was:" >&5
3009 cat conftest.$ac_ext >&5
3010 rm -rf conftest*
3011 eval "ac_cv_func_shmat=no"
3012 fi
3013 rm -f conftest*
3014 fi
3015
3016 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
3017 echo "$ac_t""yes" 1>&6
3018 :
3019 else
3020 echo "$ac_t""no" 1>&6
3021 fi
3022
3023 if test $ac_cv_func_shmat = no; then
3024 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
3025 echo "configure:3026: checking for shmat in -lipc" >&5
3026 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
3027 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3028 echo $ac_n "(cached) $ac_c" 1>&6
3029 else
3030 ac_save_LIBS="$LIBS"
3031 LIBS="-lipc $LIBS"
3032 cat > conftest.$ac_ext <<EOF
3033 #line 3034 "configure"
3034 #include "confdefs.h"
3035 /* Override any gcc2 internal prototype to avoid an error. */
3036 /* We use char because int might match the return type of a gcc2
3037 builtin and then its argument prototype would still apply. */
3038 char shmat();
3039
3040 int main() {
3041 shmat()
3042 ; return 0; }
3043 EOF
3044 if { (eval echo configure:3045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3045 rm -rf conftest*
3046 eval "ac_cv_lib_$ac_lib_var=yes"
3047 else
3048 echo "configure: failed program was:" >&5
3049 cat conftest.$ac_ext >&5
3050 rm -rf conftest*
3051 eval "ac_cv_lib_$ac_lib_var=no"
3052 fi
3053 rm -f conftest*
3054 LIBS="$ac_save_LIBS"
3055
3056 fi
3057 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3058 echo "$ac_t""yes" 1>&6
3059 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3060 else
3061 echo "$ac_t""no" 1>&6
3062 fi
3063
3064 fi
3065 fi
3066
3067 # Check for libraries that X11R6 Xt/Xaw programs need.
3068 ac_save_LDFLAGS="$LDFLAGS"
3069 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3070 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3071 # check for ICE first), but we must link in the order -lSM -lICE or
3072 # we get undefined symbols. So assume we have SM if we have ICE.
3073 # These have to be linked with before -lX11, unlike the other
3074 # libraries we check for below, so use a different variable.
3075 # [email protected], [email protected].
3076 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
3077 echo "configure:3078: checking for IceConnectionNumber in -lICE" >&5
3078 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
3079 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3080 echo $ac_n "(cached) $ac_c" 1>&6
3081 else
3082 ac_save_LIBS="$LIBS"
3083 LIBS="-lICE $LIBS"
3084 cat > conftest.$ac_ext <<EOF
3085 #line 3086 "configure"
3086 #include "confdefs.h"
3087 /* Override any gcc2 internal prototype to avoid an error. */
3088 /* We use char because int might match the return type of a gcc2
3089 builtin and then its argument prototype would still apply. */
3090 char IceConnectionNumber();
3091
3092 int main() {
3093 IceConnectionNumber()
3094 ; return 0; }
3095 EOF
3096 if { (eval echo configure:3097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3097 rm -rf conftest*
3098 eval "ac_cv_lib_$ac_lib_var=yes"
3099 else
3100 echo "configure: failed program was:" >&5
3101 cat conftest.$ac_ext >&5
3102 rm -rf conftest*
3103 eval "ac_cv_lib_$ac_lib_var=no"
3104 fi
3105 rm -f conftest*
3106 LIBS="$ac_save_LIBS"
3107
3108 fi
3109 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3110 echo "$ac_t""yes" 1>&6
3111 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3112 else
3113 echo "$ac_t""no" 1>&6
3114 fi
3115
3116 LDFLAGS="$ac_save_LDFLAGS"
3117
3118 fi
3119
3120
3121 for ac_func in gethostname gettimeofday mkdir socket strerror strtol vsnprintf
3122 do
3123 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3124 echo "configure:3125: checking for $ac_func" >&5
3125 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3126 echo $ac_n "(cached) $ac_c" 1>&6
3127 else
3128 cat > conftest.$ac_ext <<EOF
3129 #line 3130 "configure"
3130 #include "confdefs.h"
3131 /* System header to define __stub macros and hopefully few prototypes,
3132 which can conflict with char $ac_func(); below. */
3133 #include <assert.h>
3134 /* Override any gcc2 internal prototype to avoid an error. */
3135 /* We use char because int might match the return type of a gcc2
3136 builtin and then its argument prototype would still apply. */
3137 char $ac_func();
3138
3139 int main() {
3140
3141 /* The GNU C library defines this for functions which it implements
3142 to always fail with ENOSYS. Some functions are actually named
3143 something starting with __ and the normal name is an alias. */
3144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3145 choke me
3146 #else
3147 $ac_func();
3148 #endif
3149
3150 ; return 0; }
3151 EOF
3152 if { (eval echo configure:3153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3153 rm -rf conftest*
3154 eval "ac_cv_func_$ac_func=yes"
3155 else
3156 echo "configure: failed program was:" >&5
3157 cat conftest.$ac_ext >&5
3158 rm -rf conftest*
3159 eval "ac_cv_func_$ac_func=no"
3160 fi
3161 rm -f conftest*
3162 fi
3163
3164 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3165 echo "$ac_t""yes" 1>&6
3166 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3167 cat >> confdefs.h <<EOF
3168 #define $ac_tr_func 1
3169 EOF
3170
3171 else
3172 echo "$ac_t""no" 1>&6
3173 fi
3174 done
3175
3176
3177 trap '' 1 2 15
3178 cat > confcache <<\EOF
3179 # This file is a shell script that caches the results of configure
3180 # tests run on this system so they can be shared between configure
3181 # scripts and configure runs. It is not useful on other systems.
3182 # If it contains results you don't want to keep, you may remove or edit it.
3183 #
3184 # By default, configure uses ./config.cache as the cache file,
3185 # creating it if it does not exist already. You can give configure
3186 # the --cache-file=FILE option to use a different cache file; that is
3187 # what configure does when it calls configure scripts in
3188 # subdirectories, so they share the cache.
3189 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3190 # config.status only pays attention to the cache file if you give it the
3191 # --recheck option to rerun configure.
3192 #
3193 EOF
3194 # The following way of writing the cache mishandles newlines in values,
3195 # but we know of no workaround that is simple, portable, and efficient.
3196 # So, don't put newlines in cache variables' values.
3197 # Ultrix sh set writes to stderr and can't be redirected directly,
3198 # and sets the high bit in the cache file unless we assign to the vars.
3199 (set) 2>&1 |
3200 case `(ac_space=' '; set) 2>&1` in
3201 *ac_space=\ *)
3202 # `set' does not quote correctly, so add quotes (double-quote substitution
3203 # turns \\\\ into \\, and sed turns \\ into \).
3204 sed -n \
3205 -e "s/'/'\\\\''/g" \
3206 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3207 ;;
3208 *)
3209 # `set' quotes correctly as required by POSIX, so do not add quotes.
3210 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3211 ;;
3212 esac >> confcache
3213 if cmp -s $cache_file confcache; then
3214 :
3215 else
3216 if test -w $cache_file; then
3217 echo "updating cache $cache_file"
3218 cat confcache > $cache_file
3219 else
3220 echo "not updating unwritable cache $cache_file"
3221 fi
3222 fi
3223 rm -f confcache
3224
3225 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3226
3227 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3228 # Let make expand exec_prefix.
3229 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3230
3231 # Any assignment to VPATH causes Sun make to only execute
3232 # the first set of double-colon rules, so remove it if not needed.
3233 # If there is a colon in the path, we need to keep it.
3234 if test "x$srcdir" = x.; then
3235 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3236 fi
3237
3238 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3239
3240 DEFS=-DHAVE_CONFIG_H
3241
3242 # Without the "./", some shells look in PATH for config.status.
3243 : ${CONFIG_STATUS=./config.status}
3244
3245 echo creating $CONFIG_STATUS
3246 rm -f $CONFIG_STATUS
3247 cat > $CONFIG_STATUS <<EOF
3248 #! /bin/sh
3249 # Generated automatically by configure.
3250 # Run this file to recreate the current configuration.
3251 # This directory was configured as follows,
3252 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3253 #
3254 # $0 $ac_configure_args
3255 #
3256 # Compiler output produced by configure, useful for debugging
3257 # configure, is in ./config.log if it exists.
3258
3259 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3260 for ac_option
3261 do
3262 case "\$ac_option" in
3263 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3264 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3265 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3266 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3267 echo "$CONFIG_STATUS generated by autoconf version 2.12"
3268 exit 0 ;;
3269 -help | --help | --hel | --he | --h)
3270 echo "\$ac_cs_usage"; exit 0 ;;
3271 *) echo "\$ac_cs_usage"; exit 1 ;;
3272 esac
3273 done
3274
3275 ac_given_srcdir=$srcdir
3276 ac_given_INSTALL="$INSTALL"
3277
3278 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3279 EOF
3280 cat >> $CONFIG_STATUS <<EOF
3281
3282 # Protect against being on the right side of a sed subst in config.status.
3283 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3284 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3285 $ac_vpsub
3286 $extrasub
3287 s%@CFLAGS@%$CFLAGS%g
3288 s%@CPPFLAGS@%$CPPFLAGS%g
3289 s%@CXXFLAGS@%$CXXFLAGS%g
3290 s%@DEFS@%$DEFS%g
3291 s%@LDFLAGS@%$LDFLAGS%g
3292 s%@LIBS@%$LIBS%g
3293 s%@exec_prefix@%$exec_prefix%g
3294 s%@prefix@%$prefix%g
3295 s%@program_transform_name@%$program_transform_name%g
3296 s%@bindir@%$bindir%g
3297 s%@sbindir@%$sbindir%g
3298 s%@libexecdir@%$libexecdir%g
3299 s%@datadir@%$datadir%g
3300 s%@sysconfdir@%$sysconfdir%g
3301 s%@sharedstatedir@%$sharedstatedir%g
3302 s%@localstatedir@%$localstatedir%g
3303 s%@libdir@%$libdir%g
3304 s%@includedir@%$includedir%g
3305 s%@oldincludedir@%$oldincludedir%g
3306 s%@infodir@%$infodir%g
3307 s%@mandir@%$mandir%g
3308 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3309 s%@INSTALL_DATA@%$INSTALL_DATA%g
3310 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3311 s%@PACKAGE@%$PACKAGE%g
3312 s%@VERSION@%$VERSION%g
3313 s%@ACLOCAL@%$ACLOCAL%g
3314 s%@AUTOCONF@%$AUTOCONF%g
3315 s%@AUTOMAKE@%$AUTOMAKE%g
3316 s%@AUTOHEADER@%$AUTOHEADER%g
3317 s%@MAKEINFO@%$MAKEINFO%g
3318 s%@SET_MAKE@%$SET_MAKE%g
3319 s%@host@%$host%g
3320 s%@host_alias@%$host_alias%g
3321 s%@host_cpu@%$host_cpu%g
3322 s%@host_vendor@%$host_vendor%g
3323 s%@host_os@%$host_os%g
3324 s%@RANLIB@%$RANLIB%g
3325 s%@CC@%$CC%g
3326 s%@LD@%$LD%g
3327 s%@NM@%$NM%g
3328 s%@LN_S@%$LN_S%g
3329 s%@LIBTOOL@%$LIBTOOL%g
3330 s%@MAINT@%$MAINT%g
3331 s%@CPP@%$CPP%g
3332 s%@GTK_CONFIG@%$GTK_CONFIG%g
3333 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
3334 s%@GTK_LIBS@%$GTK_LIBS%g
3335 s%@X_CFLAGS@%$X_CFLAGS%g
3336 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
3337 s%@X_LIBS@%$X_LIBS%g
3338 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3339
3340 CEOF
3341 EOF
3342
3343 cat >> $CONFIG_STATUS <<\EOF
3344
3345 # Split the substitutions into bite-sized pieces for seds with
3346 # small command number limits, like on Digital OSF/1 and HP-UX.
3347 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3348 ac_file=1 # Number of current file.
3349 ac_beg=1 # First line for current file.
3350 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3351 ac_more_lines=:
3352 ac_sed_cmds=""
3353 while $ac_more_lines; do
3354 if test $ac_beg -gt 1; then
3355 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3356 else
3357 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3358 fi
3359 if test ! -s conftest.s$ac_file; then
3360 ac_more_lines=false
3361 rm -f conftest.s$ac_file
3362 else
3363 if test -z "$ac_sed_cmds"; then
3364 ac_sed_cmds="sed -f conftest.s$ac_file"
3365 else
3366 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3367 fi
3368 ac_file=`expr $ac_file + 1`
3369 ac_beg=$ac_end
3370 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3371 fi
3372 done
3373 if test -z "$ac_sed_cmds"; then
3374 ac_sed_cmds=cat
3375 fi
3376 EOF
3377
3378 cat >> $CONFIG_STATUS <<EOF
3379
3380 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
3381 EOF
3382 cat >> $CONFIG_STATUS <<\EOF
3383 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3384 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3385 case "$ac_file" in
3386 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3387 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3388 *) ac_file_in="${ac_file}.in" ;;
3389 esac
3390
3391 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3392
3393 # Remove last slash and all that follows it. Not all systems have dirname.
3394 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3395 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3396 # The file is in a subdirectory.
3397 test ! -d "$ac_dir" && mkdir "$ac_dir"
3398 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3399 # A "../" for each directory in $ac_dir_suffix.
3400 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3401 else
3402 ac_dir_suffix= ac_dots=
3403 fi
3404
3405 case "$ac_given_srcdir" in
3406 .) srcdir=.
3407 if test -z "$ac_dots"; then top_srcdir=.
3408 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3409 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3410 *) # Relative path.
3411 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3412 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3413 esac
3414
3415 case "$ac_given_INSTALL" in
3416 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3417 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3418 esac
3419
3420 echo creating "$ac_file"
3421 rm -f "$ac_file"
3422 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3423 case "$ac_file" in
3424 *Makefile*) ac_comsub="1i\\
3425 # $configure_input" ;;
3426 *) ac_comsub= ;;
3427 esac
3428
3429 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3430 sed -e "$ac_comsub
3431 s%@configure_input@%$configure_input%g
3432 s%@srcdir@%$srcdir%g
3433 s%@top_srcdir@%$top_srcdir%g
3434 s%@INSTALL@%$INSTALL%g
3435 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3436 fi; done
3437 rm -f conftest.s*
3438
3439 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3440 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3441 #
3442 # ac_d sets the value in "#define NAME VALUE" lines.
3443 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3444 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3445 ac_dC='\3'
3446 ac_dD='%g'
3447 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3448 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3449 ac_uB='\([ ]\)%\1#\2define\3'
3450 ac_uC=' '
3451 ac_uD='\4%g'
3452 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3453 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3454 ac_eB='$%\1#\2define\3'
3455 ac_eC=' '
3456 ac_eD='%g'
3457
3458 if test "${CONFIG_HEADERS+set}" != set; then
3459 EOF
3460 cat >> $CONFIG_STATUS <<EOF
3461 CONFIG_HEADERS="config.h"
3462 EOF
3463 cat >> $CONFIG_STATUS <<\EOF
3464 fi
3465 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3466 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3467 case "$ac_file" in
3468 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3469 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3470 *) ac_file_in="${ac_file}.in" ;;
3471 esac
3472
3473 echo creating $ac_file
3474
3475 rm -f conftest.frag conftest.in conftest.out
3476 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3477 cat $ac_file_inputs > conftest.in
3478
3479 EOF
3480
3481 # Transform confdefs.h into a sed script conftest.vals that substitutes
3482 # the proper values into config.h.in to produce config.h. And first:
3483 # Protect against being on the right side of a sed subst in config.status.
3484 # Protect against being in an unquoted here document in config.status.
3485 rm -f conftest.vals
3486 cat > conftest.hdr <<\EOF
3487 s/[\\&%]/\\&/g
3488 s%[\\$`]%\\&%g
3489 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3490 s%ac_d%ac_u%gp
3491 s%ac_u%ac_e%gp
3492 EOF
3493 sed -n -f conftest.hdr confdefs.h > conftest.vals
3494 rm -f conftest.hdr
3495
3496 # This sed command replaces #undef with comments. This is necessary, for
3497 # example, in the case of _POSIX_SOURCE, which is predefined and required
3498 # on some systems where configure will not decide to define it.
3499 cat >> conftest.vals <<\EOF
3500 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3501 EOF
3502
3503 # Break up conftest.vals because some shells have a limit on
3504 # the size of here documents, and old seds have small limits too.
3505
3506 rm -f conftest.tail
3507 while :
3508 do
3509 ac_lines=`grep -c . conftest.vals`
3510 # grep -c gives empty output for an empty file on some AIX systems.
3511 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3512 # Write a limited-size here document to conftest.frag.
3513 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3514 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3515 echo 'CEOF
3516 sed -f conftest.frag conftest.in > conftest.out
3517 rm -f conftest.in
3518 mv conftest.out conftest.in
3519 ' >> $CONFIG_STATUS
3520 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3521 rm -f conftest.vals
3522 mv conftest.tail conftest.vals
3523 done
3524 rm -f conftest.vals
3525
3526 cat >> $CONFIG_STATUS <<\EOF
3527 rm -f conftest.frag conftest.h
3528 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3529 cat conftest.in >> conftest.h
3530 rm -f conftest.in
3531 if cmp -s $ac_file conftest.h 2>/dev/null; then
3532 echo "$ac_file is unchanged"
3533 rm -f conftest.h
3534 else
3535 # Remove last slash and all that follows it. Not all systems have dirname.
3536 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3537 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3538 # The file is in a subdirectory.
3539 test ! -d "$ac_dir" && mkdir "$ac_dir"
3540 fi
3541 rm -f $ac_file
3542 mv conftest.h $ac_file
3543 fi
3544 fi; done
3545
3546 EOF
3547 cat >> $CONFIG_STATUS <<EOF
3548
3549
3550 EOF
3551 cat >> $CONFIG_STATUS <<\EOF
3552 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3553
3554 exit 0
3555 EOF
3556 chmod +x $CONFIG_STATUS
3557 rm -fr confdefs* $ac_clean_files
3558 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3559
3560