]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/rdi-share/configure
Initial creation of sourceware repository
[thirdparty/binutils-gdb.git] / gdb / rdi-share / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12.2
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-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
17
18 # Initialize some variables set by options.
19 # The variables have the same names as the options, with
20 # dashes changed to underlines.
21 build=NONE
22 cache_file=./config.cache
23 exec_prefix=NONE
24 host=NONE
25 no_create=
26 nonopt=NONE
27 no_recursion=
28 prefix=NONE
29 program_prefix=NONE
30 program_suffix=NONE
31 program_transform_name=s,x,x,
32 silent=
33 site=
34 srcdir=
35 target=NONE
36 verbose=
37 x_includes=NONE
38 x_libraries=NONE
39 bindir='${exec_prefix}/bin'
40 sbindir='${exec_prefix}/sbin'
41 libexecdir='${exec_prefix}/libexec'
42 datadir='${prefix}/share'
43 sysconfdir='${prefix}/etc'
44 sharedstatedir='${prefix}/com'
45 localstatedir='${prefix}/var'
46 libdir='${exec_prefix}/lib'
47 includedir='${prefix}/include'
48 oldincludedir='/usr/include'
49 infodir='${prefix}/info'
50 mandir='${prefix}/man'
51
52 # Initialize some other variables.
53 subdirs=
54 MFLAGS= MAKEFLAGS=
55 SHELL=${CONFIG_SHELL-/bin/sh}
56 # Maximum number of lines to put in a shell here document.
57 ac_max_here_lines=12
58
59 ac_prev=
60 for ac_option
61 do
62
63 # If the previous option needs an argument, assign it.
64 if test -n "$ac_prev"; then
65 eval "$ac_prev=\$ac_option"
66 ac_prev=
67 continue
68 fi
69
70 case "$ac_option" in
71 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
72 *) ac_optarg= ;;
73 esac
74
75 # Accept the important Cygnus configure options, so we can diagnose typos.
76
77 case "$ac_option" in
78
79 -bindir | --bindir | --bindi | --bind | --bin | --bi)
80 ac_prev=bindir ;;
81 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
82 bindir="$ac_optarg" ;;
83
84 -build | --build | --buil | --bui | --bu)
85 ac_prev=build ;;
86 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
87 build="$ac_optarg" ;;
88
89 -cache-file | --cache-file | --cache-fil | --cache-fi \
90 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
91 ac_prev=cache_file ;;
92 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
93 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
94 cache_file="$ac_optarg" ;;
95
96 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
97 ac_prev=datadir ;;
98 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
99 | --da=*)
100 datadir="$ac_optarg" ;;
101
102 -disable-* | --disable-*)
103 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
104 # Reject names that are not valid shell variable names.
105 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
106 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
107 fi
108 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
109 eval "enable_${ac_feature}=no" ;;
110
111 -enable-* | --enable-*)
112 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
113 # Reject names that are not valid shell variable names.
114 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
115 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
116 fi
117 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
118 case "$ac_option" in
119 *=*) ;;
120 *) ac_optarg=yes ;;
121 esac
122 eval "enable_${ac_feature}='$ac_optarg'" ;;
123
124 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
125 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
126 | --exec | --exe | --ex)
127 ac_prev=exec_prefix ;;
128 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
129 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
130 | --exec=* | --exe=* | --ex=*)
131 exec_prefix="$ac_optarg" ;;
132
133 -gas | --gas | --ga | --g)
134 # Obsolete; use --with-gas.
135 with_gas=yes ;;
136
137 -help | --help | --hel | --he)
138 # Omit some internal or obsolete options to make the list less imposing.
139 # This message is too long to be a string in the A/UX 3.1 sh.
140 cat << EOF
141 Usage: configure [options] [host]
142 Options: [defaults in brackets after descriptions]
143 Configuration:
144 --cache-file=FILE cache test results in FILE
145 --help print this message
146 --no-create do not create output files
147 --quiet, --silent do not print \`checking...' messages
148 --version print the version of autoconf that created configure
149 Directory and file names:
150 --prefix=PREFIX install architecture-independent files in PREFIX
151 [$ac_default_prefix]
152 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
153 [same as prefix]
154 --bindir=DIR user executables in DIR [EPREFIX/bin]
155 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
156 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
157 --datadir=DIR read-only architecture-independent data in DIR
158 [PREFIX/share]
159 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
160 --sharedstatedir=DIR modifiable architecture-independent data in DIR
161 [PREFIX/com]
162 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
163 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
164 --includedir=DIR C header files in DIR [PREFIX/include]
165 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
166 --infodir=DIR info documentation in DIR [PREFIX/info]
167 --mandir=DIR man documentation in DIR [PREFIX/man]
168 --srcdir=DIR find the sources in DIR [configure dir or ..]
169 --program-prefix=PREFIX prepend PREFIX to installed program names
170 --program-suffix=SUFFIX append SUFFIX to installed program names
171 --program-transform-name=PROGRAM
172 run sed PROGRAM on installed program names
173 EOF
174 cat << EOF
175 Host type:
176 --build=BUILD configure for building on BUILD [BUILD=HOST]
177 --host=HOST configure for HOST [guessed]
178 --target=TARGET configure for TARGET [TARGET=HOST]
179 Features and packages:
180 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
181 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
182 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
183 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
184 --x-includes=DIR X include files are in DIR
185 --x-libraries=DIR X library files are in DIR
186 EOF
187 if test -n "$ac_help"; then
188 echo "--enable and --with options recognized:$ac_help"
189 fi
190 exit 0 ;;
191
192 -host | --host | --hos | --ho)
193 ac_prev=host ;;
194 -host=* | --host=* | --hos=* | --ho=*)
195 host="$ac_optarg" ;;
196
197 -includedir | --includedir | --includedi | --included | --include \
198 | --includ | --inclu | --incl | --inc)
199 ac_prev=includedir ;;
200 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
201 | --includ=* | --inclu=* | --incl=* | --inc=*)
202 includedir="$ac_optarg" ;;
203
204 -infodir | --infodir | --infodi | --infod | --info | --inf)
205 ac_prev=infodir ;;
206 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
207 infodir="$ac_optarg" ;;
208
209 -libdir | --libdir | --libdi | --libd)
210 ac_prev=libdir ;;
211 -libdir=* | --libdir=* | --libdi=* | --libd=*)
212 libdir="$ac_optarg" ;;
213
214 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
215 | --libexe | --libex | --libe)
216 ac_prev=libexecdir ;;
217 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
218 | --libexe=* | --libex=* | --libe=*)
219 libexecdir="$ac_optarg" ;;
220
221 -localstatedir | --localstatedir | --localstatedi | --localstated \
222 | --localstate | --localstat | --localsta | --localst \
223 | --locals | --local | --loca | --loc | --lo)
224 ac_prev=localstatedir ;;
225 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
226 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
227 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
228 localstatedir="$ac_optarg" ;;
229
230 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
231 ac_prev=mandir ;;
232 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
233 mandir="$ac_optarg" ;;
234
235 -nfp | --nfp | --nf)
236 # Obsolete; use --without-fp.
237 with_fp=no ;;
238
239 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
240 | --no-cr | --no-c)
241 no_create=yes ;;
242
243 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
244 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
245 no_recursion=yes ;;
246
247 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
248 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
249 | --oldin | --oldi | --old | --ol | --o)
250 ac_prev=oldincludedir ;;
251 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
252 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
253 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
254 oldincludedir="$ac_optarg" ;;
255
256 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
257 ac_prev=prefix ;;
258 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
259 prefix="$ac_optarg" ;;
260
261 -program-prefix | --program-prefix | --program-prefi | --program-pref \
262 | --program-pre | --program-pr | --program-p)
263 ac_prev=program_prefix ;;
264 -program-prefix=* | --program-prefix=* | --program-prefi=* \
265 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
266 program_prefix="$ac_optarg" ;;
267
268 -program-suffix | --program-suffix | --program-suffi | --program-suff \
269 | --program-suf | --program-su | --program-s)
270 ac_prev=program_suffix ;;
271 -program-suffix=* | --program-suffix=* | --program-suffi=* \
272 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
273 program_suffix="$ac_optarg" ;;
274
275 -program-transform-name | --program-transform-name \
276 | --program-transform-nam | --program-transform-na \
277 | --program-transform-n | --program-transform- \
278 | --program-transform | --program-transfor \
279 | --program-transfo | --program-transf \
280 | --program-trans | --program-tran \
281 | --progr-tra | --program-tr | --program-t)
282 ac_prev=program_transform_name ;;
283 -program-transform-name=* | --program-transform-name=* \
284 | --program-transform-nam=* | --program-transform-na=* \
285 | --program-transform-n=* | --program-transform-=* \
286 | --program-transform=* | --program-transfor=* \
287 | --program-transfo=* | --program-transf=* \
288 | --program-trans=* | --program-tran=* \
289 | --progr-tra=* | --program-tr=* | --program-t=*)
290 program_transform_name="$ac_optarg" ;;
291
292 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
293 | -silent | --silent | --silen | --sile | --sil)
294 silent=yes ;;
295
296 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
297 ac_prev=sbindir ;;
298 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
299 | --sbi=* | --sb=*)
300 sbindir="$ac_optarg" ;;
301
302 -sharedstatedir | --sharedstatedir | --sharedstatedi \
303 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
304 | --sharedst | --shareds | --shared | --share | --shar \
305 | --sha | --sh)
306 ac_prev=sharedstatedir ;;
307 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
308 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
309 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
310 | --sha=* | --sh=*)
311 sharedstatedir="$ac_optarg" ;;
312
313 -site | --site | --sit)
314 ac_prev=site ;;
315 -site=* | --site=* | --sit=*)
316 site="$ac_optarg" ;;
317
318 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
319 ac_prev=srcdir ;;
320 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
321 srcdir="$ac_optarg" ;;
322
323 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
324 | --syscon | --sysco | --sysc | --sys | --sy)
325 ac_prev=sysconfdir ;;
326 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
327 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
328 sysconfdir="$ac_optarg" ;;
329
330 -target | --target | --targe | --targ | --tar | --ta | --t)
331 ac_prev=target ;;
332 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
333 target="$ac_optarg" ;;
334
335 -v | -verbose | --verbose | --verbos | --verbo | --verb)
336 verbose=yes ;;
337
338 -version | --version | --versio | --versi | --vers)
339 echo "configure generated by autoconf version 2.12.2"
340 exit 0 ;;
341
342 -with-* | --with-*)
343 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
344 # Reject names that are not valid shell variable names.
345 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
346 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
347 fi
348 ac_package=`echo $ac_package| sed 's/-/_/g'`
349 case "$ac_option" in
350 *=*) ;;
351 *) ac_optarg=yes ;;
352 esac
353 eval "with_${ac_package}='$ac_optarg'" ;;
354
355 -without-* | --without-*)
356 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
357 # Reject names that are not valid shell variable names.
358 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
359 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
360 fi
361 ac_package=`echo $ac_package| sed 's/-/_/g'`
362 eval "with_${ac_package}=no" ;;
363
364 --x)
365 # Obsolete; use --with-x.
366 with_x=yes ;;
367
368 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
369 | --x-incl | --x-inc | --x-in | --x-i)
370 ac_prev=x_includes ;;
371 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
372 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
373 x_includes="$ac_optarg" ;;
374
375 -x-libraries | --x-libraries | --x-librarie | --x-librari \
376 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
377 ac_prev=x_libraries ;;
378 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
379 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
380 x_libraries="$ac_optarg" ;;
381
382 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
383 ;;
384
385 *)
386 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
387 echo "configure: warning: $ac_option: invalid host type" 1>&2
388 fi
389 if test "x$nonopt" != xNONE; then
390 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
391 fi
392 nonopt="$ac_option"
393 ;;
394
395 esac
396 done
397
398 if test -n "$ac_prev"; then
399 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
400 fi
401
402 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
403
404 # File descriptor usage:
405 # 0 standard input
406 # 1 file creation
407 # 2 errors and warnings
408 # 3 some systems may open it to /dev/tty
409 # 4 used on the Kubota Titan
410 # 6 checking for... messages and results
411 # 5 compiler messages saved in config.log
412 if test "$silent" = yes; then
413 exec 6>/dev/null
414 else
415 exec 6>&1
416 fi
417 exec 5>./config.log
418
419 echo "\
420 This file contains any messages produced by compilers while
421 running configure, to aid debugging if configure makes a mistake.
422 " 1>&5
423
424 # Strip out --no-create and --no-recursion so they do not pile up.
425 # Also quote any args containing shell metacharacters.
426 ac_configure_args=
427 for ac_arg
428 do
429 case "$ac_arg" in
430 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
431 | --no-cr | --no-c) ;;
432 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
433 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
434 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
435 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
436 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
437 esac
438 done
439
440 # NLS nuisances.
441 # Only set these to C if already set. These must not be set unconditionally
442 # because not all systems understand e.g. LANG=C (notably SCO).
443 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
444 # Non-C LC_CTYPE values break the ctype check.
445 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
446 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
447 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
448 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
449
450 # confdefs.h avoids OS command line length limits that DEFS can exceed.
451 rm -rf conftest* confdefs.h
452 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
453 echo > confdefs.h
454
455 # A filename unique to this package, relative to the directory that
456 # configure is in, which we can look for to find out if srcdir is correct.
457 ac_unique_file=adp.h
458
459 # Find the source files, if location was not specified.
460 if test -z "$srcdir"; then
461 ac_srcdir_defaulted=yes
462 # Try the directory containing this script, then its parent.
463 ac_prog=$0
464 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
465 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
466 srcdir=$ac_confdir
467 if test ! -r $srcdir/$ac_unique_file; then
468 srcdir=..
469 fi
470 else
471 ac_srcdir_defaulted=no
472 fi
473 if test ! -r $srcdir/$ac_unique_file; then
474 if test "$ac_srcdir_defaulted" = yes; then
475 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
476 else
477 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
478 fi
479 fi
480 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
481
482 # Prefer explicitly selected file to automatically selected ones.
483 if test -z "$CONFIG_SITE"; then
484 if test "x$prefix" != xNONE; then
485 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
486 else
487 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
488 fi
489 fi
490 for ac_site_file in $CONFIG_SITE; do
491 if test -r "$ac_site_file"; then
492 echo "loading site script $ac_site_file"
493 . "$ac_site_file"
494 fi
495 done
496
497 if test -r "$cache_file"; then
498 echo "loading cache $cache_file"
499 . $cache_file
500 else
501 echo "creating cache $cache_file"
502 > $cache_file
503 fi
504
505 ac_ext=c
506 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
507 ac_cpp='$CPP $CPPFLAGS'
508 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
509 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
510 cross_compiling=$ac_cv_prog_cc_cross
511
512 ac_exeext=
513 ac_objext=o
514 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
515 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
516 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
517 ac_n= ac_c='
518 ' ac_t=' '
519 else
520 ac_n=-n ac_c= ac_t=
521 fi
522 else
523 ac_n= ac_c='\c' ac_t=
524 fi
525
526
527
528 ac_aux_dir=
529 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
530 if test -f $ac_dir/install-sh; then
531 ac_aux_dir=$ac_dir
532 ac_install_sh="$ac_aux_dir/install-sh -c"
533 break
534 elif test -f $ac_dir/install.sh; then
535 ac_aux_dir=$ac_dir
536 ac_install_sh="$ac_aux_dir/install.sh -c"
537 break
538 fi
539 done
540 if test -z "$ac_aux_dir"; then
541 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
542 fi
543 ac_config_guess=$ac_aux_dir/config.guess
544 ac_config_sub=$ac_aux_dir/config.sub
545 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
546
547 # Find a good install program. We prefer a C program (faster),
548 # so one script is as good as another. But avoid the broken or
549 # incompatible versions:
550 # SysV /etc/install, /usr/sbin/install
551 # SunOS /usr/etc/install
552 # IRIX /sbin/install
553 # AIX /bin/install
554 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
555 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
556 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
557 # ./install, which can be erroneously created by make from ./install.sh.
558 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
559 echo "configure:560: checking for a BSD compatible install" >&5
560 if test -z "$INSTALL"; then
561 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
562 echo $ac_n "(cached) $ac_c" 1>&6
563 else
564 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
565 for ac_dir in $PATH; do
566 # Account for people who put trailing slashes in PATH elements.
567 case "$ac_dir/" in
568 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
569 *)
570 # OSF1 and SCO ODT 3.0 have their own names for install.
571 # Don't use installbsd from OSF since it installs stuff as root
572 # by default.
573 for ac_prog in ginstall scoinst install; do
574 if test -f $ac_dir/$ac_prog; then
575 if test $ac_prog = install &&
576 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
577 # AIX install. It has an incompatible calling convention.
578 :
579 else
580 ac_cv_path_install="$ac_dir/$ac_prog -c"
581 break 2
582 fi
583 fi
584 done
585 ;;
586 esac
587 done
588 IFS="$ac_save_IFS"
589
590 fi
591 if test "${ac_cv_path_install+set}" = set; then
592 INSTALL="$ac_cv_path_install"
593 else
594 # As a last resort, use the slow shell script. We don't cache a
595 # path for INSTALL within a source directory, because that will
596 # break other packages using the cache if that directory is
597 # removed, or if the path is relative.
598 INSTALL="$ac_install_sh"
599 fi
600 fi
601 echo "$ac_t""$INSTALL" 1>&6
602
603 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
604 # It thinks the first close brace ends the variable substitution.
605 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
606
607 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
608
609
610 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
611
612 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
613 echo "configure:614: checking whether build environment is sane" >&5
614 # Just in case
615 sleep 1
616 echo timestamp > conftestfile
617 # Do `set' in a subshell so we don't clobber the current shell's
618 # arguments. Must try -L first in case configure is actually a
619 # symlink; some systems play weird games with the mod time of symlinks
620 # (eg FreeBSD returns the mod time of the symlink's containing
621 # directory).
622 if (
623 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
624 if test "$*" = "X"; then
625 # -L didn't work.
626 set X `ls -t $srcdir/configure conftestfile`
627 fi
628 if test "$*" != "X $srcdir/configure conftestfile" \
629 && test "$*" != "X conftestfile $srcdir/configure"; then
630
631 # If neither matched, then we have a broken ls. This can happen
632 # if, for instance, CONFIG_SHELL is bash and it inherits a
633 # broken ls alias from the environment. This has actually
634 # happened. Such a system could not be considered "sane".
635 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
636 alias in your environment" 1>&2; exit 1; }
637 fi
638
639 test "$2" = conftestfile
640 )
641 then
642 # Ok.
643 :
644 else
645 { echo "configure: error: newly created file is older than distributed files!
646 Check your system clock" 1>&2; exit 1; }
647 fi
648 rm -f conftest*
649 echo "$ac_t""yes" 1>&6
650 if test "$program_transform_name" = s,x,x,; then
651 program_transform_name=
652 else
653 # Double any \ or $. echo might interpret backslashes.
654 cat <<\EOF_SED > conftestsed
655 s,\\,\\\\,g; s,\$,$$,g
656 EOF_SED
657 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
658 rm -f conftestsed
659 fi
660 test "$program_prefix" != NONE &&
661 program_transform_name="s,^,${program_prefix},; $program_transform_name"
662 # Use a double $ so make ignores it.
663 test "$program_suffix" != NONE &&
664 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
665
666 # sed with no file args requires a program.
667 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
668
669 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
670 echo "configure:671: checking whether ${MAKE-make} sets \${MAKE}" >&5
671 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
672 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
673 echo $ac_n "(cached) $ac_c" 1>&6
674 else
675 cat > conftestmake <<\EOF
676 all:
677 @echo 'ac_maketemp="${MAKE}"'
678 EOF
679 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
680 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
681 if test -n "$ac_maketemp"; then
682 eval ac_cv_prog_make_${ac_make}_set=yes
683 else
684 eval ac_cv_prog_make_${ac_make}_set=no
685 fi
686 rm -f conftestmake
687 fi
688 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
689 echo "$ac_t""yes" 1>&6
690 SET_MAKE=
691 else
692 echo "$ac_t""no" 1>&6
693 SET_MAKE="MAKE=${MAKE-make}"
694 fi
695
696
697 PACKAGE=rdi-share
698
699 VERSION=1.0
700
701 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
702 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
703 fi
704 cat >> confdefs.h <<EOF
705 #define PACKAGE "$PACKAGE"
706 EOF
707
708 cat >> confdefs.h <<EOF
709 #define VERSION "$VERSION"
710 EOF
711
712
713
714 missing_dir=`cd $ac_aux_dir && pwd`
715 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
716 echo "configure:717: checking for working aclocal" >&5
717 # Run test in a subshell; some versions of sh will print an error if
718 # an executable is not found, even if stderr is redirected.
719 # Redirect stdin to placate older versions of autoconf. Sigh.
720 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
721 ACLOCAL=aclocal
722 echo "$ac_t""found" 1>&6
723 else
724 ACLOCAL="$missing_dir/missing aclocal"
725 echo "$ac_t""missing" 1>&6
726 fi
727
728 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
729 echo "configure:730: checking for working autoconf" >&5
730 # Run test in a subshell; some versions of sh will print an error if
731 # an executable is not found, even if stderr is redirected.
732 # Redirect stdin to placate older versions of autoconf. Sigh.
733 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
734 AUTOCONF=autoconf
735 echo "$ac_t""found" 1>&6
736 else
737 AUTOCONF="$missing_dir/missing autoconf"
738 echo "$ac_t""missing" 1>&6
739 fi
740
741 echo $ac_n "checking for working automake""... $ac_c" 1>&6
742 echo "configure:743: checking for working automake" >&5
743 # Run test in a subshell; some versions of sh will print an error if
744 # an executable is not found, even if stderr is redirected.
745 # Redirect stdin to placate older versions of autoconf. Sigh.
746 if (automake --version) < /dev/null > /dev/null 2>&1; then
747 AUTOMAKE=automake
748 echo "$ac_t""found" 1>&6
749 else
750 AUTOMAKE="$missing_dir/missing automake"
751 echo "$ac_t""missing" 1>&6
752 fi
753
754 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
755 echo "configure:756: checking for working autoheader" >&5
756 # Run test in a subshell; some versions of sh will print an error if
757 # an executable is not found, even if stderr is redirected.
758 # Redirect stdin to placate older versions of autoconf. Sigh.
759 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
760 AUTOHEADER=autoheader
761 echo "$ac_t""found" 1>&6
762 else
763 AUTOHEADER="$missing_dir/missing autoheader"
764 echo "$ac_t""missing" 1>&6
765 fi
766
767 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
768 echo "configure:769: checking for working makeinfo" >&5
769 # Run test in a subshell; some versions of sh will print an error if
770 # an executable is not found, even if stderr is redirected.
771 # Redirect stdin to placate older versions of autoconf. Sigh.
772 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
773 MAKEINFO=makeinfo
774 echo "$ac_t""found" 1>&6
775 else
776 MAKEINFO="$missing_dir/missing makeinfo"
777 echo "$ac_t""missing" 1>&6
778 fi
779
780
781
782 PACKAGE=rdi-share
783 VERSION=1.0
784
785 # Extract the first word of "gcc", so it can be a program name with args.
786 set dummy gcc; ac_word=$2
787 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
788 echo "configure:789: checking for $ac_word" >&5
789 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
790 echo $ac_n "(cached) $ac_c" 1>&6
791 else
792 if test -n "$CC"; then
793 ac_cv_prog_CC="$CC" # Let the user override the test.
794 else
795 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
796 for ac_dir in $PATH; do
797 test -z "$ac_dir" && ac_dir=.
798 if test -f $ac_dir/$ac_word; then
799 ac_cv_prog_CC="gcc"
800 break
801 fi
802 done
803 IFS="$ac_save_ifs"
804 fi
805 fi
806 CC="$ac_cv_prog_CC"
807 if test -n "$CC"; then
808 echo "$ac_t""$CC" 1>&6
809 else
810 echo "$ac_t""no" 1>&6
811 fi
812
813 if test -z "$CC"; then
814 # Extract the first word of "cc", so it can be a program name with args.
815 set dummy cc; ac_word=$2
816 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
817 echo "configure:818: checking for $ac_word" >&5
818 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
819 echo $ac_n "(cached) $ac_c" 1>&6
820 else
821 if test -n "$CC"; then
822 ac_cv_prog_CC="$CC" # Let the user override the test.
823 else
824 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
825 ac_prog_rejected=no
826 for ac_dir in $PATH; do
827 test -z "$ac_dir" && ac_dir=.
828 if test -f $ac_dir/$ac_word; then
829 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
830 ac_prog_rejected=yes
831 continue
832 fi
833 ac_cv_prog_CC="cc"
834 break
835 fi
836 done
837 IFS="$ac_save_ifs"
838 if test $ac_prog_rejected = yes; then
839 # We found a bogon in the path, so make sure we never use it.
840 set dummy $ac_cv_prog_CC
841 shift
842 if test $# -gt 0; then
843 # We chose a different compiler from the bogus one.
844 # However, it has the same basename, so the bogon will be chosen
845 # first if we set CC to just the basename; use the full file name.
846 shift
847 set dummy "$ac_dir/$ac_word" "$@"
848 shift
849 ac_cv_prog_CC="$@"
850 fi
851 fi
852 fi
853 fi
854 CC="$ac_cv_prog_CC"
855 if test -n "$CC"; then
856 echo "$ac_t""$CC" 1>&6
857 else
858 echo "$ac_t""no" 1>&6
859 fi
860
861 if test -z "$CC"; then
862 case "`uname -s`" in
863 *win32* | *WIN32*)
864 # Extract the first word of "cl", so it can be a program name with args.
865 set dummy cl; ac_word=$2
866 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
867 echo "configure:868: checking for $ac_word" >&5
868 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
869 echo $ac_n "(cached) $ac_c" 1>&6
870 else
871 if test -n "$CC"; then
872 ac_cv_prog_CC="$CC" # Let the user override the test.
873 else
874 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
875 for ac_dir in $PATH; do
876 test -z "$ac_dir" && ac_dir=.
877 if test -f $ac_dir/$ac_word; then
878 ac_cv_prog_CC="cl"
879 break
880 fi
881 done
882 IFS="$ac_save_ifs"
883 fi
884 fi
885 CC="$ac_cv_prog_CC"
886 if test -n "$CC"; then
887 echo "$ac_t""$CC" 1>&6
888 else
889 echo "$ac_t""no" 1>&6
890 fi
891 ;;
892 esac
893 fi
894 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
895 fi
896
897 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
898 echo "configure:899: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
899
900 ac_ext=c
901 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
902 ac_cpp='$CPP $CPPFLAGS'
903 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
904 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
905 cross_compiling=$ac_cv_prog_cc_cross
906
907 cat > conftest.$ac_ext <<EOF
908 #line 909 "configure"
909 #include "confdefs.h"
910 main(){return(0);}
911 EOF
912 if { (eval echo configure:913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
913 ac_cv_prog_cc_works=yes
914 # If we can't run a trivial program, we are probably using a cross compiler.
915 if (./conftest; exit) 2>/dev/null; then
916 ac_cv_prog_cc_cross=no
917 else
918 ac_cv_prog_cc_cross=yes
919 fi
920 else
921 echo "configure: failed program was:" >&5
922 cat conftest.$ac_ext >&5
923 ac_cv_prog_cc_works=no
924 fi
925 rm -fr conftest*
926
927 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
928 if test $ac_cv_prog_cc_works = no; then
929 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
930 fi
931 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
932 echo "configure:933: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
933 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
934 cross_compiling=$ac_cv_prog_cc_cross
935
936 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
937 echo "configure:938: checking whether we are using GNU C" >&5
938 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
939 echo $ac_n "(cached) $ac_c" 1>&6
940 else
941 cat > conftest.c <<EOF
942 #ifdef __GNUC__
943 yes;
944 #endif
945 EOF
946 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
947 ac_cv_prog_gcc=yes
948 else
949 ac_cv_prog_gcc=no
950 fi
951 fi
952
953 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
954
955 if test $ac_cv_prog_gcc = yes; then
956 GCC=yes
957 else
958 GCC=
959 fi
960
961 ac_test_CFLAGS="${CFLAGS+set}"
962 ac_save_CFLAGS="$CFLAGS"
963 CFLAGS=
964 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
965 echo "configure:966: checking whether ${CC-cc} accepts -g" >&5
966 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
967 echo $ac_n "(cached) $ac_c" 1>&6
968 else
969 echo 'void f(){}' > conftest.c
970 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
971 ac_cv_prog_cc_g=yes
972 else
973 ac_cv_prog_cc_g=no
974 fi
975 rm -f conftest*
976
977 fi
978
979 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
980 if test "$ac_test_CFLAGS" = set; then
981 CFLAGS="$ac_save_CFLAGS"
982 elif test $ac_cv_prog_cc_g = yes; then
983 if test "$GCC" = yes; then
984 CFLAGS="-g -O2"
985 else
986 CFLAGS="-g"
987 fi
988 else
989 if test "$GCC" = yes; then
990 CFLAGS="-O2"
991 else
992 CFLAGS=
993 fi
994 fi
995
996 # Find a good install program. We prefer a C program (faster),
997 # so one script is as good as another. But avoid the broken or
998 # incompatible versions:
999 # SysV /etc/install, /usr/sbin/install
1000 # SunOS /usr/etc/install
1001 # IRIX /sbin/install
1002 # AIX /bin/install
1003 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1004 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1005 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1006 # ./install, which can be erroneously created by make from ./install.sh.
1007 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1008 echo "configure:1009: checking for a BSD compatible install" >&5
1009 if test -z "$INSTALL"; then
1010 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1011 echo $ac_n "(cached) $ac_c" 1>&6
1012 else
1013 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1014 for ac_dir in $PATH; do
1015 # Account for people who put trailing slashes in PATH elements.
1016 case "$ac_dir/" in
1017 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1018 *)
1019 # OSF1 and SCO ODT 3.0 have their own names for install.
1020 # Don't use installbsd from OSF since it installs stuff as root
1021 # by default.
1022 for ac_prog in ginstall scoinst install; do
1023 if test -f $ac_dir/$ac_prog; then
1024 if test $ac_prog = install &&
1025 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1026 # AIX install. It has an incompatible calling convention.
1027 :
1028 else
1029 ac_cv_path_install="$ac_dir/$ac_prog -c"
1030 break 2
1031 fi
1032 fi
1033 done
1034 ;;
1035 esac
1036 done
1037 IFS="$ac_save_IFS"
1038
1039 fi
1040 if test "${ac_cv_path_install+set}" = set; then
1041 INSTALL="$ac_cv_path_install"
1042 else
1043 # As a last resort, use the slow shell script. We don't cache a
1044 # path for INSTALL within a source directory, because that will
1045 # break other packages using the cache if that directory is
1046 # removed, or if the path is relative.
1047 INSTALL="$ac_install_sh"
1048 fi
1049 fi
1050 echo "$ac_t""$INSTALL" 1>&6
1051
1052 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1053 # It thinks the first close brace ends the variable substitution.
1054 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1055
1056 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1057
1058 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1059 echo "configure:1060: checking whether ${MAKE-make} sets \${MAKE}" >&5
1060 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1061 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1062 echo $ac_n "(cached) $ac_c" 1>&6
1063 else
1064 cat > conftestmake <<\EOF
1065 all:
1066 @echo 'ac_maketemp="${MAKE}"'
1067 EOF
1068 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1069 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1070 if test -n "$ac_maketemp"; then
1071 eval ac_cv_prog_make_${ac_make}_set=yes
1072 else
1073 eval ac_cv_prog_make_${ac_make}_set=no
1074 fi
1075 rm -f conftestmake
1076 fi
1077 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1078 echo "$ac_t""yes" 1>&6
1079 SET_MAKE=
1080 else
1081 echo "$ac_t""no" 1>&6
1082 SET_MAKE="MAKE=${MAKE-make}"
1083 fi
1084
1085 # Extract the first word of "ranlib", so it can be a program name with args.
1086 set dummy ranlib; ac_word=$2
1087 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1088 echo "configure:1089: checking for $ac_word" >&5
1089 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1090 echo $ac_n "(cached) $ac_c" 1>&6
1091 else
1092 if test -n "$RANLIB"; then
1093 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1094 else
1095 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1096 for ac_dir in $PATH; do
1097 test -z "$ac_dir" && ac_dir=.
1098 if test -f $ac_dir/$ac_word; then
1099 ac_cv_prog_RANLIB="ranlib"
1100 break
1101 fi
1102 done
1103 IFS="$ac_save_ifs"
1104 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1105 fi
1106 fi
1107 RANLIB="$ac_cv_prog_RANLIB"
1108 if test -n "$RANLIB"; then
1109 echo "$ac_t""$RANLIB" 1>&6
1110 else
1111 echo "$ac_t""no" 1>&6
1112 fi
1113
1114
1115
1116 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1117 echo "configure:1118: checking how to run the C preprocessor" >&5
1118 # On Suns, sometimes $CPP names a directory.
1119 if test -n "$CPP" && test -d "$CPP"; then
1120 CPP=
1121 fi
1122 if test -z "$CPP"; then
1123 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1124 echo $ac_n "(cached) $ac_c" 1>&6
1125 else
1126 # This must be in double quotes, not single quotes, because CPP may get
1127 # substituted into the Makefile and "${CC-cc}" will confuse make.
1128 CPP="${CC-cc} -E"
1129 # On the NeXT, cc -E runs the code through the compiler's parser,
1130 # not just through cpp.
1131 cat > conftest.$ac_ext <<EOF
1132 #line 1133 "configure"
1133 #include "confdefs.h"
1134 #include <assert.h>
1135 Syntax Error
1136 EOF
1137 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1138 { (eval echo configure:1139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1139 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1140 if test -z "$ac_err"; then
1141 :
1142 else
1143 echo "$ac_err" >&5
1144 echo "configure: failed program was:" >&5
1145 cat conftest.$ac_ext >&5
1146 rm -rf conftest*
1147 CPP="${CC-cc} -E -traditional-cpp"
1148 cat > conftest.$ac_ext <<EOF
1149 #line 1150 "configure"
1150 #include "confdefs.h"
1151 #include <assert.h>
1152 Syntax Error
1153 EOF
1154 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1155 { (eval echo configure:1156: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1156 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1157 if test -z "$ac_err"; then
1158 :
1159 else
1160 echo "$ac_err" >&5
1161 echo "configure: failed program was:" >&5
1162 cat conftest.$ac_ext >&5
1163 rm -rf conftest*
1164 CPP="${CC-cc} -nologo -E"
1165 cat > conftest.$ac_ext <<EOF
1166 #line 1167 "configure"
1167 #include "confdefs.h"
1168 #include <assert.h>
1169 Syntax Error
1170 EOF
1171 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1172 { (eval echo configure:1173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1173 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1174 if test -z "$ac_err"; then
1175 :
1176 else
1177 echo "$ac_err" >&5
1178 echo "configure: failed program was:" >&5
1179 cat conftest.$ac_ext >&5
1180 rm -rf conftest*
1181 CPP=/lib/cpp
1182 fi
1183 rm -f conftest*
1184 fi
1185 rm -f conftest*
1186 fi
1187 rm -f conftest*
1188 ac_cv_prog_CPP="$CPP"
1189 fi
1190 CPP="$ac_cv_prog_CPP"
1191 else
1192 ac_cv_prog_CPP="$CPP"
1193 fi
1194 echo "$ac_t""$CPP" 1>&6
1195
1196 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1197 echo "configure:1198: checking for ANSI C header files" >&5
1198 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1199 echo $ac_n "(cached) $ac_c" 1>&6
1200 else
1201 cat > conftest.$ac_ext <<EOF
1202 #line 1203 "configure"
1203 #include "confdefs.h"
1204 #include <stdlib.h>
1205 #include <stdarg.h>
1206 #include <string.h>
1207 #include <float.h>
1208 EOF
1209 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1210 { (eval echo configure:1211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1211 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1212 if test -z "$ac_err"; then
1213 rm -rf conftest*
1214 ac_cv_header_stdc=yes
1215 else
1216 echo "$ac_err" >&5
1217 echo "configure: failed program was:" >&5
1218 cat conftest.$ac_ext >&5
1219 rm -rf conftest*
1220 ac_cv_header_stdc=no
1221 fi
1222 rm -f conftest*
1223
1224 if test $ac_cv_header_stdc = yes; then
1225 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1226 cat > conftest.$ac_ext <<EOF
1227 #line 1228 "configure"
1228 #include "confdefs.h"
1229 #include <string.h>
1230 EOF
1231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1232 egrep "memchr" >/dev/null 2>&1; then
1233 :
1234 else
1235 rm -rf conftest*
1236 ac_cv_header_stdc=no
1237 fi
1238 rm -f conftest*
1239
1240 fi
1241
1242 if test $ac_cv_header_stdc = yes; then
1243 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1244 cat > conftest.$ac_ext <<EOF
1245 #line 1246 "configure"
1246 #include "confdefs.h"
1247 #include <stdlib.h>
1248 EOF
1249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1250 egrep "free" >/dev/null 2>&1; then
1251 :
1252 else
1253 rm -rf conftest*
1254 ac_cv_header_stdc=no
1255 fi
1256 rm -f conftest*
1257
1258 fi
1259
1260 if test $ac_cv_header_stdc = yes; then
1261 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1262 if test "$cross_compiling" = yes; then
1263 :
1264 else
1265 cat > conftest.$ac_ext <<EOF
1266 #line 1267 "configure"
1267 #include "confdefs.h"
1268 #include <ctype.h>
1269 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1270 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1271 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1272 int main () { int i; for (i = 0; i < 256; i++)
1273 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1274 exit (0); }
1275
1276 EOF
1277 if { (eval echo configure:1278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1278 then
1279 :
1280 else
1281 echo "configure: failed program was:" >&5
1282 cat conftest.$ac_ext >&5
1283 rm -fr conftest*
1284 ac_cv_header_stdc=no
1285 fi
1286 rm -fr conftest*
1287 fi
1288
1289 fi
1290 fi
1291
1292 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1293 if test $ac_cv_header_stdc = yes; then
1294 cat >> confdefs.h <<\EOF
1295 #define STDC_HEADERS 1
1296 EOF
1297
1298 fi
1299
1300 for ac_hdr in fcntl.h sys/ioctl.h sys/time.h unistd.h sys/filio.h
1301 do
1302 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1303 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1304 echo "configure:1305: checking for $ac_hdr" >&5
1305 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1306 echo $ac_n "(cached) $ac_c" 1>&6
1307 else
1308 cat > conftest.$ac_ext <<EOF
1309 #line 1310 "configure"
1310 #include "confdefs.h"
1311 #include <$ac_hdr>
1312 EOF
1313 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1314 { (eval echo configure:1315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1315 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1316 if test -z "$ac_err"; then
1317 rm -rf conftest*
1318 eval "ac_cv_header_$ac_safe=yes"
1319 else
1320 echo "$ac_err" >&5
1321 echo "configure: failed program was:" >&5
1322 cat conftest.$ac_ext >&5
1323 rm -rf conftest*
1324 eval "ac_cv_header_$ac_safe=no"
1325 fi
1326 rm -f conftest*
1327 fi
1328 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1329 echo "$ac_t""yes" 1>&6
1330 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1331 cat >> confdefs.h <<EOF
1332 #define $ac_tr_hdr 1
1333 EOF
1334
1335 else
1336 echo "$ac_t""no" 1>&6
1337 fi
1338 done
1339
1340
1341 echo $ac_n "checking for working const""... $ac_c" 1>&6
1342 echo "configure:1343: checking for working const" >&5
1343 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1344 echo $ac_n "(cached) $ac_c" 1>&6
1345 else
1346 cat > conftest.$ac_ext <<EOF
1347 #line 1348 "configure"
1348 #include "confdefs.h"
1349
1350 int main() {
1351
1352 /* Ultrix mips cc rejects this. */
1353 typedef int charset[2]; const charset x;
1354 /* SunOS 4.1.1 cc rejects this. */
1355 char const *const *ccp;
1356 char **p;
1357 /* NEC SVR4.0.2 mips cc rejects this. */
1358 struct point {int x, y;};
1359 static struct point const zero = {0,0};
1360 /* AIX XL C 1.02.0.0 rejects this.
1361 It does not let you subtract one const X* pointer from another in an arm
1362 of an if-expression whose if-part is not a constant expression */
1363 const char *g = "string";
1364 ccp = &g + (g ? g-g : 0);
1365 /* HPUX 7.0 cc rejects these. */
1366 ++ccp;
1367 p = (char**) ccp;
1368 ccp = (char const *const *) p;
1369 { /* SCO 3.2v4 cc rejects this. */
1370 char *t;
1371 char const *s = 0 ? (char *) 0 : (char const *) 0;
1372
1373 *t++ = 0;
1374 }
1375 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1376 int x[] = {25, 17};
1377 const int *foo = &x[0];
1378 ++foo;
1379 }
1380 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1381 typedef const int *iptr;
1382 iptr p = 0;
1383 ++p;
1384 }
1385 { /* AIX XL C 1.02.0.0 rejects this saying
1386 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1387 struct s { int j; const int *ap[3]; };
1388 struct s *b; b->j = 5;
1389 }
1390 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1391 const int foo = 10;
1392 }
1393
1394 ; return 0; }
1395 EOF
1396 if { (eval echo configure:1397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1397 rm -rf conftest*
1398 ac_cv_c_const=yes
1399 else
1400 echo "configure: failed program was:" >&5
1401 cat conftest.$ac_ext >&5
1402 rm -rf conftest*
1403 ac_cv_c_const=no
1404 fi
1405 rm -f conftest*
1406 fi
1407
1408 echo "$ac_t""$ac_cv_c_const" 1>&6
1409 if test $ac_cv_c_const = no; then
1410 cat >> confdefs.h <<\EOF
1411 #define const
1412 EOF
1413
1414 fi
1415
1416 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1417 echo "configure:1418: checking for size_t" >&5
1418 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1419 echo $ac_n "(cached) $ac_c" 1>&6
1420 else
1421 cat > conftest.$ac_ext <<EOF
1422 #line 1423 "configure"
1423 #include "confdefs.h"
1424 #include <sys/types.h>
1425 #if STDC_HEADERS
1426 #include <stdlib.h>
1427 #include <stddef.h>
1428 #endif
1429 EOF
1430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1431 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1432 rm -rf conftest*
1433 ac_cv_type_size_t=yes
1434 else
1435 rm -rf conftest*
1436 ac_cv_type_size_t=no
1437 fi
1438 rm -f conftest*
1439
1440 fi
1441 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1442 if test $ac_cv_type_size_t = no; then
1443 cat >> confdefs.h <<\EOF
1444 #define size_t unsigned
1445 EOF
1446
1447 fi
1448
1449 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1450 echo "configure:1451: checking whether time.h and sys/time.h may both be included" >&5
1451 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1452 echo $ac_n "(cached) $ac_c" 1>&6
1453 else
1454 cat > conftest.$ac_ext <<EOF
1455 #line 1456 "configure"
1456 #include "confdefs.h"
1457 #include <sys/types.h>
1458 #include <sys/time.h>
1459 #include <time.h>
1460 int main() {
1461 struct tm *tp;
1462 ; return 0; }
1463 EOF
1464 if { (eval echo configure:1465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1465 rm -rf conftest*
1466 ac_cv_header_time=yes
1467 else
1468 echo "configure: failed program was:" >&5
1469 cat conftest.$ac_ext >&5
1470 rm -rf conftest*
1471 ac_cv_header_time=no
1472 fi
1473 rm -f conftest*
1474 fi
1475
1476 echo "$ac_t""$ac_cv_header_time" 1>&6
1477 if test $ac_cv_header_time = yes; then
1478 cat >> confdefs.h <<\EOF
1479 #define TIME_WITH_SYS_TIME 1
1480 EOF
1481
1482 fi
1483
1484
1485 if test $ac_cv_prog_gcc = yes; then
1486 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1487 echo "configure:1488: checking whether ${CC-cc} needs -traditional" >&5
1488 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1489 echo $ac_n "(cached) $ac_c" 1>&6
1490 else
1491 ac_pattern="Autoconf.*'x'"
1492 cat > conftest.$ac_ext <<EOF
1493 #line 1494 "configure"
1494 #include "confdefs.h"
1495 #include <sgtty.h>
1496 Autoconf TIOCGETP
1497 EOF
1498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1499 egrep "$ac_pattern" >/dev/null 2>&1; then
1500 rm -rf conftest*
1501 ac_cv_prog_gcc_traditional=yes
1502 else
1503 rm -rf conftest*
1504 ac_cv_prog_gcc_traditional=no
1505 fi
1506 rm -f conftest*
1507
1508
1509 if test $ac_cv_prog_gcc_traditional = no; then
1510 cat > conftest.$ac_ext <<EOF
1511 #line 1512 "configure"
1512 #include "confdefs.h"
1513 #include <termio.h>
1514 Autoconf TCGETA
1515 EOF
1516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1517 egrep "$ac_pattern" >/dev/null 2>&1; then
1518 rm -rf conftest*
1519 ac_cv_prog_gcc_traditional=yes
1520 fi
1521 rm -f conftest*
1522
1523 fi
1524 fi
1525
1526 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1527 if test $ac_cv_prog_gcc_traditional = yes; then
1528 CC="$CC -traditional"
1529 fi
1530 fi
1531
1532 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1533 echo "configure:1534: checking return type of signal handlers" >&5
1534 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1535 echo $ac_n "(cached) $ac_c" 1>&6
1536 else
1537 cat > conftest.$ac_ext <<EOF
1538 #line 1539 "configure"
1539 #include "confdefs.h"
1540 #include <sys/types.h>
1541 #include <signal.h>
1542 #ifdef signal
1543 #undef signal
1544 #endif
1545 #ifdef __cplusplus
1546 extern "C" void (*signal (int, void (*)(int)))(int);
1547 #else
1548 void (*signal ()) ();
1549 #endif
1550
1551 int main() {
1552 int i;
1553 ; return 0; }
1554 EOF
1555 if { (eval echo configure:1556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1556 rm -rf conftest*
1557 ac_cv_type_signal=void
1558 else
1559 echo "configure: failed program was:" >&5
1560 cat conftest.$ac_ext >&5
1561 rm -rf conftest*
1562 ac_cv_type_signal=int
1563 fi
1564 rm -f conftest*
1565 fi
1566
1567 echo "$ac_t""$ac_cv_type_signal" 1>&6
1568 cat >> confdefs.h <<EOF
1569 #define RETSIGTYPE $ac_cv_type_signal
1570 EOF
1571
1572
1573 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1574 echo "configure:1575: checking for vprintf" >&5
1575 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1576 echo $ac_n "(cached) $ac_c" 1>&6
1577 else
1578 cat > conftest.$ac_ext <<EOF
1579 #line 1580 "configure"
1580 #include "confdefs.h"
1581 /* System header to define __stub macros and hopefully few prototypes,
1582 which can conflict with char vprintf(); below. */
1583 #include <assert.h>
1584 /* Override any gcc2 internal prototype to avoid an error. */
1585 /* We use char because int might match the return type of a gcc2
1586 builtin and then its argument prototype would still apply. */
1587 char vprintf();
1588
1589 int main() {
1590
1591 /* The GNU C library defines this for functions which it implements
1592 to always fail with ENOSYS. Some functions are actually named
1593 something starting with __ and the normal name is an alias. */
1594 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1595 choke me
1596 #else
1597 vprintf();
1598 #endif
1599
1600 ; return 0; }
1601 EOF
1602 if { (eval echo configure:1603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1603 rm -rf conftest*
1604 eval "ac_cv_func_vprintf=yes"
1605 else
1606 echo "configure: failed program was:" >&5
1607 cat conftest.$ac_ext >&5
1608 rm -rf conftest*
1609 eval "ac_cv_func_vprintf=no"
1610 fi
1611 rm -f conftest*
1612 fi
1613
1614 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1615 echo "$ac_t""yes" 1>&6
1616 cat >> confdefs.h <<\EOF
1617 #define HAVE_VPRINTF 1
1618 EOF
1619
1620 else
1621 echo "$ac_t""no" 1>&6
1622 fi
1623
1624 if test "$ac_cv_func_vprintf" != yes; then
1625 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1626 echo "configure:1627: checking for _doprnt" >&5
1627 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1628 echo $ac_n "(cached) $ac_c" 1>&6
1629 else
1630 cat > conftest.$ac_ext <<EOF
1631 #line 1632 "configure"
1632 #include "confdefs.h"
1633 /* System header to define __stub macros and hopefully few prototypes,
1634 which can conflict with char _doprnt(); below. */
1635 #include <assert.h>
1636 /* Override any gcc2 internal prototype to avoid an error. */
1637 /* We use char because int might match the return type of a gcc2
1638 builtin and then its argument prototype would still apply. */
1639 char _doprnt();
1640
1641 int main() {
1642
1643 /* The GNU C library defines this for functions which it implements
1644 to always fail with ENOSYS. Some functions are actually named
1645 something starting with __ and the normal name is an alias. */
1646 #if defined (__stub__doprnt) || defined (__stub____doprnt)
1647 choke me
1648 #else
1649 _doprnt();
1650 #endif
1651
1652 ; return 0; }
1653 EOF
1654 if { (eval echo configure:1655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1655 rm -rf conftest*
1656 eval "ac_cv_func__doprnt=yes"
1657 else
1658 echo "configure: failed program was:" >&5
1659 cat conftest.$ac_ext >&5
1660 rm -rf conftest*
1661 eval "ac_cv_func__doprnt=no"
1662 fi
1663 rm -f conftest*
1664 fi
1665
1666 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1667 echo "$ac_t""yes" 1>&6
1668 cat >> confdefs.h <<\EOF
1669 #define HAVE_DOPRNT 1
1670 EOF
1671
1672 else
1673 echo "$ac_t""no" 1>&6
1674 fi
1675
1676 fi
1677
1678 for ac_func in gettimeofday select socket strtod strtoul memcpy memmove
1679 do
1680 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1681 echo "configure:1682: checking for $ac_func" >&5
1682 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1683 echo $ac_n "(cached) $ac_c" 1>&6
1684 else
1685 cat > conftest.$ac_ext <<EOF
1686 #line 1687 "configure"
1687 #include "confdefs.h"
1688 /* System header to define __stub macros and hopefully few prototypes,
1689 which can conflict with char $ac_func(); below. */
1690 #include <assert.h>
1691 /* Override any gcc2 internal prototype to avoid an error. */
1692 /* We use char because int might match the return type of a gcc2
1693 builtin and then its argument prototype would still apply. */
1694 char $ac_func();
1695
1696 int main() {
1697
1698 /* The GNU C library defines this for functions which it implements
1699 to always fail with ENOSYS. Some functions are actually named
1700 something starting with __ and the normal name is an alias. */
1701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1702 choke me
1703 #else
1704 $ac_func();
1705 #endif
1706
1707 ; return 0; }
1708 EOF
1709 if { (eval echo configure:1710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1710 rm -rf conftest*
1711 eval "ac_cv_func_$ac_func=yes"
1712 else
1713 echo "configure: failed program was:" >&5
1714 cat conftest.$ac_ext >&5
1715 rm -rf conftest*
1716 eval "ac_cv_func_$ac_func=no"
1717 fi
1718 rm -f conftest*
1719 fi
1720
1721 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1722 echo "$ac_t""yes" 1>&6
1723 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1724 cat >> confdefs.h <<EOF
1725 #define $ac_tr_func 1
1726 EOF
1727
1728 else
1729 echo "$ac_t""no" 1>&6
1730 fi
1731 done
1732
1733
1734 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1735 echo "configure:1736: checking whether to enable maintainer-specific portions of Makefiles" >&5
1736 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1737 if test "${enable_maintainer_mode+set}" = set; then
1738 enableval="$enable_maintainer_mode"
1739 USE_MAINTAINER_MODE=$enableval
1740 else
1741 USE_MAINTAINER_MODE=no
1742 fi
1743
1744 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1745 if test $USE_MAINTAINER_MODE = yes; then
1746 MAINT=
1747 else
1748 MAINT='#M#'
1749 fi
1750
1751
1752 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1753 echo "configure:1754: checking for Cygwin environment" >&5
1754 if eval "test \"`echo '$''{'am_cv_cygwin'+set}'`\" = set"; then
1755 echo $ac_n "(cached) $ac_c" 1>&6
1756 else
1757 cat > conftest.$ac_ext <<EOF
1758 #line 1759 "configure"
1759 #include "confdefs.h"
1760
1761 int main() {
1762 return __CYGWIN32__;
1763 ; return 0; }
1764 EOF
1765 if { (eval echo configure:1766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1766 rm -rf conftest*
1767 am_cv_cygwin=yes
1768 else
1769 echo "configure: failed program was:" >&5
1770 cat conftest.$ac_ext >&5
1771 rm -rf conftest*
1772 am_cv_cygwin=no
1773 fi
1774 rm -f conftest*
1775 rm -f conftest*
1776 fi
1777
1778 echo "$ac_t""$am_cv_cygwin" 1>&6
1779 CYGWIN=
1780 test "$am_cv_cygwin" = yes && CYGWIN=yes
1781 echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
1782 echo "configure:1783: checking for Mingw32 environment" >&5
1783 if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
1784 echo $ac_n "(cached) $ac_c" 1>&6
1785 else
1786 cat > conftest.$ac_ext <<EOF
1787 #line 1788 "configure"
1788 #include "confdefs.h"
1789
1790 int main() {
1791 return __MINGW32__;
1792 ; return 0; }
1793 EOF
1794 if { (eval echo configure:1795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1795 rm -rf conftest*
1796 am_cv_mingw32=yes
1797 else
1798 echo "configure: failed program was:" >&5
1799 cat conftest.$ac_ext >&5
1800 rm -rf conftest*
1801 am_cv_mingw32=no
1802 fi
1803 rm -f conftest*
1804 rm -f conftest*
1805 fi
1806
1807 echo "$ac_t""$am_cv_mingw32" 1>&6
1808 MINGW32=
1809 test "$am_cv_mingw32" = yes && MINGW32=yes
1810
1811
1812 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1813 echo "configure:1814: checking for executable suffix" >&5
1814 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
1815 echo $ac_n "(cached) $ac_c" 1>&6
1816 else
1817 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1818 am_cv_exeext=.exe
1819 else
1820 cat > am_c_test.c << 'EOF'
1821 int main() {
1822 /* Nothing needed here */
1823 }
1824 EOF
1825 ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
1826 am_cv_exeext=
1827 for file in am_c_test.*; do
1828 case $file in
1829 *.c) ;;
1830 *.o) ;;
1831 *) am_cv_exeext=`echo $file | sed -e s/am_c_test//` ;;
1832 esac
1833 done
1834 rm -f am_c_test*
1835 fi
1836
1837 test x"${am_cv_exeext}" = x && am_cv_exeext=no
1838 fi
1839 EXEEXT=""
1840 test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
1841 echo "$ac_t""${am_cv_exeext}" 1>&6
1842
1843
1844 trap '' 1 2 15
1845 cat > confcache <<\EOF
1846 # This file is a shell script that caches the results of configure
1847 # tests run on this system so they can be shared between configure
1848 # scripts and configure runs. It is not useful on other systems.
1849 # If it contains results you don't want to keep, you may remove or edit it.
1850 #
1851 # By default, configure uses ./config.cache as the cache file,
1852 # creating it if it does not exist already. You can give configure
1853 # the --cache-file=FILE option to use a different cache file; that is
1854 # what configure does when it calls configure scripts in
1855 # subdirectories, so they share the cache.
1856 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1857 # config.status only pays attention to the cache file if you give it the
1858 # --recheck option to rerun configure.
1859 #
1860 EOF
1861 # The following way of writing the cache mishandles newlines in values,
1862 # but we know of no workaround that is simple, portable, and efficient.
1863 # So, don't put newlines in cache variables' values.
1864 # Ultrix sh set writes to stderr and can't be redirected directly,
1865 # and sets the high bit in the cache file unless we assign to the vars.
1866 (set) 2>&1 |
1867 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
1868 *ac_space=\ *)
1869 # `set' does not quote correctly, so add quotes (double-quote substitution
1870 # turns \\\\ into \\, and sed turns \\ into \).
1871 sed -n \
1872 -e "s/'/'\\\\''/g" \
1873 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1874 ;;
1875 *)
1876 # `set' quotes correctly as required by POSIX, so do not add quotes.
1877 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1878 ;;
1879 esac >> confcache
1880 if cmp -s $cache_file confcache; then
1881 :
1882 else
1883 if test -w $cache_file; then
1884 echo "updating cache $cache_file"
1885 cat confcache > $cache_file
1886 else
1887 echo "not updating unwritable cache $cache_file"
1888 fi
1889 fi
1890 rm -f confcache
1891
1892 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1893
1894 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1895 # Let make expand exec_prefix.
1896 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1897
1898 # Any assignment to VPATH causes Sun make to only execute
1899 # the first set of double-colon rules, so remove it if not needed.
1900 # If there is a colon in the path, we need to keep it.
1901 if test "x$srcdir" = x.; then
1902 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1903 fi
1904
1905 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1906
1907 # Transform confdefs.h into DEFS.
1908 # Protect against shell expansion while executing Makefile rules.
1909 # Protect against Makefile macro expansion.
1910 cat > conftest.defs <<\EOF
1911 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1912 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1913 s%\[%\\&%g
1914 s%\]%\\&%g
1915 s%\$%$$%g
1916 EOF
1917 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1918 rm -f conftest.defs
1919
1920
1921 # Without the "./", some shells look in PATH for config.status.
1922 : ${CONFIG_STATUS=./config.status}
1923
1924 echo creating $CONFIG_STATUS
1925 rm -f $CONFIG_STATUS
1926 cat > $CONFIG_STATUS <<EOF
1927 #! /bin/sh
1928 # Generated automatically by configure.
1929 # Run this file to recreate the current configuration.
1930 # This directory was configured as follows,
1931 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1932 #
1933 # $0 $ac_configure_args
1934 #
1935 # Compiler output produced by configure, useful for debugging
1936 # configure, is in ./config.log if it exists.
1937
1938 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1939 for ac_option
1940 do
1941 case "\$ac_option" in
1942 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1943 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1944 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1945 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1946 echo "$CONFIG_STATUS generated by autoconf version 2.12.2"
1947 exit 0 ;;
1948 -help | --help | --hel | --he | --h)
1949 echo "\$ac_cs_usage"; exit 0 ;;
1950 *) echo "\$ac_cs_usage"; exit 1 ;;
1951 esac
1952 done
1953
1954 ac_given_srcdir=$srcdir
1955 ac_given_INSTALL="$INSTALL"
1956
1957 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1958 EOF
1959 cat >> $CONFIG_STATUS <<EOF
1960
1961 # Protect against being on the right side of a sed subst in config.status.
1962 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1963 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1964 $ac_vpsub
1965 $extrasub
1966 s%@SHELL@%$SHELL%g
1967 s%@CFLAGS@%$CFLAGS%g
1968 s%@CPPFLAGS@%$CPPFLAGS%g
1969 s%@CXXFLAGS@%$CXXFLAGS%g
1970 s%@DEFS@%$DEFS%g
1971 s%@LDFLAGS@%$LDFLAGS%g
1972 s%@LIBS@%$LIBS%g
1973 s%@exec_prefix@%$exec_prefix%g
1974 s%@prefix@%$prefix%g
1975 s%@program_transform_name@%$program_transform_name%g
1976 s%@bindir@%$bindir%g
1977 s%@sbindir@%$sbindir%g
1978 s%@libexecdir@%$libexecdir%g
1979 s%@datadir@%$datadir%g
1980 s%@sysconfdir@%$sysconfdir%g
1981 s%@sharedstatedir@%$sharedstatedir%g
1982 s%@localstatedir@%$localstatedir%g
1983 s%@libdir@%$libdir%g
1984 s%@includedir@%$includedir%g
1985 s%@oldincludedir@%$oldincludedir%g
1986 s%@infodir@%$infodir%g
1987 s%@mandir@%$mandir%g
1988 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1989 s%@INSTALL_DATA@%$INSTALL_DATA%g
1990 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1991 s%@PACKAGE@%$PACKAGE%g
1992 s%@VERSION@%$VERSION%g
1993 s%@ACLOCAL@%$ACLOCAL%g
1994 s%@AUTOCONF@%$AUTOCONF%g
1995 s%@AUTOMAKE@%$AUTOMAKE%g
1996 s%@AUTOHEADER@%$AUTOHEADER%g
1997 s%@MAKEINFO@%$MAKEINFO%g
1998 s%@SET_MAKE@%$SET_MAKE%g
1999 s%@CC@%$CC%g
2000 s%@RANLIB@%$RANLIB%g
2001 s%@CPP@%$CPP%g
2002 s%@MAINT@%$MAINT%g
2003 s%@EXEEXT@%$EXEEXT%g
2004
2005 CEOF
2006 EOF
2007
2008 cat >> $CONFIG_STATUS <<\EOF
2009
2010 # Split the substitutions into bite-sized pieces for seds with
2011 # small command number limits, like on Digital OSF/1 and HP-UX.
2012 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2013 ac_file=1 # Number of current file.
2014 ac_beg=1 # First line for current file.
2015 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2016 ac_more_lines=:
2017 ac_sed_cmds=""
2018 while $ac_more_lines; do
2019 if test $ac_beg -gt 1; then
2020 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2021 else
2022 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2023 fi
2024 if test ! -s conftest.s$ac_file; then
2025 ac_more_lines=false
2026 rm -f conftest.s$ac_file
2027 else
2028 if test -z "$ac_sed_cmds"; then
2029 ac_sed_cmds="sed -f conftest.s$ac_file"
2030 else
2031 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2032 fi
2033 ac_file=`expr $ac_file + 1`
2034 ac_beg=$ac_end
2035 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2036 fi
2037 done
2038 if test -z "$ac_sed_cmds"; then
2039 ac_sed_cmds=cat
2040 fi
2041 EOF
2042
2043 cat >> $CONFIG_STATUS <<EOF
2044
2045 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2046 EOF
2047 cat >> $CONFIG_STATUS <<\EOF
2048 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2049 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2050 case "$ac_file" in
2051 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2052 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2053 *) ac_file_in="${ac_file}.in" ;;
2054 esac
2055
2056 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2057
2058 # Remove last slash and all that follows it. Not all systems have dirname.
2059 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2060 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2061 # The file is in a subdirectory.
2062 test ! -d "$ac_dir" && mkdir "$ac_dir"
2063 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2064 # A "../" for each directory in $ac_dir_suffix.
2065 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2066 else
2067 ac_dir_suffix= ac_dots=
2068 fi
2069
2070 case "$ac_given_srcdir" in
2071 .) srcdir=.
2072 if test -z "$ac_dots"; then top_srcdir=.
2073 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2074 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2075 *) # Relative path.
2076 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2077 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2078 esac
2079
2080 case "$ac_given_INSTALL" in
2081 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2082 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2083 esac
2084
2085 echo creating "$ac_file"
2086 rm -f "$ac_file"
2087 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2088 case "$ac_file" in
2089 *Makefile*) ac_comsub="1i\\
2090 # $configure_input" ;;
2091 *) ac_comsub= ;;
2092 esac
2093
2094 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2095 sed -e "$ac_comsub
2096 s%@configure_input@%$configure_input%g
2097 s%@srcdir@%$srcdir%g
2098 s%@top_srcdir@%$top_srcdir%g
2099 s%@INSTALL@%$INSTALL%g
2100 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2101 fi; done
2102 rm -f conftest.s*
2103
2104 EOF
2105 cat >> $CONFIG_STATUS <<EOF
2106
2107 EOF
2108 cat >> $CONFIG_STATUS <<\EOF
2109
2110 exit 0
2111 EOF
2112 chmod +x $CONFIG_STATUS
2113 rm -fr confdefs* $ac_clean_files
2114 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2115