Debian Codegraph @

configure

raw symbols ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
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-rplayd-user=USER"
16 ac_help="$ac_help
17 --enable-rplayd-group=GROUP"
18
19 # Initialize some variables set by options.
20 # The variables have the same names as the options, with
21 # dashes changed to underlines.
22 build=NONE
23 cache_file=./config.cache
24 exec_prefix=NONE
25 host=NONE
26 no_create=
27 nonopt=NONE
28 no_recursion=
29 prefix=NONE
30 program_prefix=NONE
31 program_suffix=NONE
32 program_transform_name=s,x,x,
33 silent=
34 site=
35 srcdir=
36 target=NONE
37 verbose=
38 x_includes=NONE
39 x_libraries=NONE
40 bindir='${exec_prefix}/bin'
41 sbindir='${exec_prefix}/sbin'
42 libexecdir='${exec_prefix}/libexec'
43 datadir='${prefix}/share'
44 sysconfdir='${prefix}/etc'
45 sharedstatedir='${prefix}/com'
46 localstatedir='${prefix}/var'
47 libdir='${exec_prefix}/lib'
48 includedir='${prefix}/include'
49 oldincludedir='/usr/include'
50 infodir='${prefix}/info'
51 mandir='${prefix}/man'
52
53 # Initialize some other variables.
54 subdirs=
55 MFLAGS= MAKEFLAGS=
56 SHELL=${CONFIG_SHELL-/bin/sh}
57 # Maximum number of lines to put in a shell here document.
58 ac_max_here_lines=12
59
60 ac_prev=
61 for ac_option
62 do
63
64 # If the previous option needs an argument, assign it.
65 if test -n "$ac_prev"; then
66 eval "$ac_prev=\$ac_option"
67 ac_prev=
68 continue
69 fi
70
71 case "$ac_option" in
72 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
73 *) ac_optarg= ;;
74 esac
75
76 # Accept the important Cygnus configure options, so we can diagnose typos.
77
78 case "$ac_option" in
79
80 -bindir | --bindir | --bindi | --bind | --bin | --bi)
81 ac_prev=bindir ;;
82 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
83 bindir="$ac_optarg" ;;
84
85 -build | --build | --buil | --bui | --bu)
86 ac_prev=build ;;
87 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
88 build="$ac_optarg" ;;
89
90 -cache-file | --cache-file | --cache-fil | --cache-fi \
91 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
92 ac_prev=cache_file ;;
93 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
94 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
95 cache_file="$ac_optarg" ;;
96
97 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
98 ac_prev=datadir ;;
99 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
100 | --da=*)
101 datadir="$ac_optarg" ;;
102
103 -disable-* | --disable-*)
104 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
105 # Reject names that are not valid shell variable names.
106 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
107 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
108 fi
109 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
110 eval "enable_${ac_feature}=no" ;;
111
112 -enable-* | --enable-*)
113 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
114 # Reject names that are not valid shell variable names.
115 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
116 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
117 fi
118 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
119 case "$ac_option" in
120 *=*) ;;
121 *) ac_optarg=yes ;;
122 esac
123 eval "enable_${ac_feature}='$ac_optarg'" ;;
124
125 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
126 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
127 | --exec | --exe | --ex)
128 ac_prev=exec_prefix ;;
129 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
130 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
131 | --exec=* | --exe=* | --ex=*)
132 exec_prefix="$ac_optarg" ;;
133
134 -gas | --gas | --ga | --g)
135 # Obsolete; use --with-gas.
136 with_gas=yes ;;
137
138 -help | --help | --hel | --he)
139 # Omit some internal or obsolete options to make the list less imposing.
140 # This message is too long to be a string in the A/UX 3.1 sh.
141 cat << EOF
142 Usage: configure [options] [host]
143 Options: [defaults in brackets after descriptions]
144 Configuration:
145 --cache-file=FILE cache test results in FILE
146 --help print this message
147 --no-create do not create output files
148 --quiet, --silent do not print \`checking...' messages
149 --version print the version of autoconf that created configure
150 Directory and file names:
151 --prefix=PREFIX install architecture-independent files in PREFIX
152 [$ac_default_prefix]
153 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
154 [same as prefix]
155 --bindir=DIR user executables in DIR [EPREFIX/bin]
156 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
157 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
158 --datadir=DIR read-only architecture-independent data in DIR
159 [PREFIX/share]
160 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
161 --sharedstatedir=DIR modifiable architecture-independent data in DIR
162 [PREFIX/com]
163 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
164 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
165 --includedir=DIR C header files in DIR [PREFIX/include]
166 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
167 --infodir=DIR info documentation in DIR [PREFIX/info]
168 --mandir=DIR man documentation in DIR [PREFIX/man]
169 --srcdir=DIR find the sources in DIR [configure dir or ..]
170 --program-prefix=PREFIX prepend PREFIX to installed program names
171 --program-suffix=SUFFIX append SUFFIX to installed program names
172 --program-transform-name=PROGRAM
173 run sed PROGRAM on installed program names
174 EOF
175 cat << EOF
176 Host type:
177 --build=BUILD configure for building on BUILD [BUILD=HOST]
178 --host=HOST configure for HOST [guessed]
179 --target=TARGET configure for TARGET [TARGET=HOST]
180 Features and packages:
181 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
182 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
183 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
184 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
185 --x-includes=DIR X include files are in DIR
186 --x-libraries=DIR X library files are in DIR
187 EOF
188 if test -n "$ac_help"; then
189 echo "--enable and --with options recognized:$ac_help"
190 fi
191 exit 0 ;;
192
193 -host | --host | --hos | --ho)
194 ac_prev=host ;;
195 -host=* | --host=* | --hos=* | --ho=*)
196 host="$ac_optarg" ;;
197
198 -includedir | --includedir | --includedi | --included | --include \
199 | --includ | --inclu | --incl | --inc)
200 ac_prev=includedir ;;
201 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
202 | --includ=* | --inclu=* | --incl=* | --inc=*)
203 includedir="$ac_optarg" ;;
204
205 -infodir | --infodir | --infodi | --infod | --info | --inf)
206 ac_prev=infodir ;;
207 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
208 infodir="$ac_optarg" ;;
209
210 -libdir | --libdir | --libdi | --libd)
211 ac_prev=libdir ;;
212 -libdir=* | --libdir=* | --libdi=* | --libd=*)
213 libdir="$ac_optarg" ;;
214
215 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
216 | --libexe | --libex | --libe)
217 ac_prev=libexecdir ;;
218 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
219 | --libexe=* | --libex=* | --libe=*)
220 libexecdir="$ac_optarg" ;;
221
222 -localstatedir | --localstatedir | --localstatedi | --localstated \
223 | --localstate | --localstat | --localsta | --localst \
224 | --locals | --local | --loca | --loc | --lo)
225 ac_prev=localstatedir ;;
226 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
227 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
228 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
229 localstatedir="$ac_optarg" ;;
230
231 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
232 ac_prev=mandir ;;
233 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
234 mandir="$ac_optarg" ;;
235
236 -nfp | --nfp | --nf)
237 # Obsolete; use --without-fp.
238 with_fp=no ;;
239
240 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
241 | --no-cr | --no-c)
242 no_create=yes ;;
243
244 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
245 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
246 no_recursion=yes ;;
247
248 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
249 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
250 | --oldin | --oldi | --old | --ol | --o)
251 ac_prev=oldincludedir ;;
252 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
253 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
254 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
255 oldincludedir="$ac_optarg" ;;
256
257 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
258 ac_prev=prefix ;;
259 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
260 prefix="$ac_optarg" ;;
261
262 -program-prefix | --program-prefix | --program-prefi | --program-pref \
263 | --program-pre | --program-pr | --program-p)
264 ac_prev=program_prefix ;;
265 -program-prefix=* | --program-prefix=* | --program-prefi=* \
266 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
267 program_prefix="$ac_optarg" ;;
268
269 -program-suffix | --program-suffix | --program-suffi | --program-suff \
270 | --program-suf | --program-su | --program-s)
271 ac_prev=program_suffix ;;
272 -program-suffix=* | --program-suffix=* | --program-suffi=* \
273 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
274 program_suffix="$ac_optarg" ;;
275
276 -program-transform-name | --program-transform-name \
277 | --program-transform-nam | --program-transform-na \
278 | --program-transform-n | --program-transform- \
279 | --program-transform | --program-transfor \
280 | --program-transfo | --program-transf \
281 | --program-trans | --program-tran \
282 | --progr-tra | --program-tr | --program-t)
283 ac_prev=program_transform_name ;;
284 -program-transform-name=* | --program-transform-name=* \
285 | --program-transform-nam=* | --program-transform-na=* \
286 | --program-transform-n=* | --program-transform-=* \
287 | --program-transform=* | --program-transfor=* \
288 | --program-transfo=* | --program-transf=* \
289 | --program-trans=* | --program-tran=* \
290 | --progr-tra=* | --program-tr=* | --program-t=*)
291 program_transform_name="$ac_optarg" ;;
292
293 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
294 | -silent | --silent | --silen | --sile | --sil)
295 silent=yes ;;
296
297 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
298 ac_prev=sbindir ;;
299 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
300 | --sbi=* | --sb=*)
301 sbindir="$ac_optarg" ;;
302
303 -sharedstatedir | --sharedstatedir | --sharedstatedi \
304 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
305 | --sharedst | --shareds | --shared | --share | --shar \
306 | --sha | --sh)
307 ac_prev=sharedstatedir ;;
308 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
309 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
310 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
311 | --sha=* | --sh=*)
312 sharedstatedir="$ac_optarg" ;;
313
314 -site | --site | --sit)
315 ac_prev=site ;;
316 -site=* | --site=* | --sit=*)
317 site="$ac_optarg" ;;
318
319 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
320 ac_prev=srcdir ;;
321 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
322 srcdir="$ac_optarg" ;;
323
324 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
325 | --syscon | --sysco | --sysc | --sys | --sy)
326 ac_prev=sysconfdir ;;
327 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
328 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
329 sysconfdir="$ac_optarg" ;;
330
331 -target | --target | --targe | --targ | --tar | --ta | --t)
332 ac_prev=target ;;
333 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
334 target="$ac_optarg" ;;
335
336 -v | -verbose | --verbose | --verbos | --verbo | --verb)
337 verbose=yes ;;
338
339 -version | --version | --versio | --versi | --vers)
340 echo "configure generated by autoconf version 2.13"
341 exit 0 ;;
342
343 -with-* | --with-*)
344 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
345 # Reject names that are not valid shell variable names.
346 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
347 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
348 fi
349 ac_package=`echo $ac_package| sed 's/-/_/g'`
350 case "$ac_option" in
351 *=*) ;;
352 *) ac_optarg=yes ;;
353 esac
354 eval "with_${ac_package}='$ac_optarg'" ;;
355
356 -without-* | --without-*)
357 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
358 # Reject names that are not valid shell variable names.
359 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
360 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
361 fi
362 ac_package=`echo $ac_package| sed 's/-/_/g'`
363 eval "with_${ac_package}=no" ;;
364
365 --x)
366 # Obsolete; use --with-x.
367 with_x=yes ;;
368
369 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
370 | --x-incl | --x-inc | --x-in | --x-i)
371 ac_prev=x_includes ;;
372 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
373 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
374 x_includes="$ac_optarg" ;;
375
376 -x-libraries | --x-libraries | --x-librarie | --x-librari \
377 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
378 ac_prev=x_libraries ;;
379 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
380 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
381 x_libraries="$ac_optarg" ;;
382
383 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
384 ;;
385
386 *)
387 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
388 echo "configure: warning: $ac_option: invalid host type" 1>&2
389 fi
390 if test "x$nonopt" != xNONE; then
391 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
392 fi
393 nonopt="$ac_option"
394 ;;
395
396 esac
397 done
398
399 if test -n "$ac_prev"; then
400 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
401 fi
402
403 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
404
405 # File descriptor usage:
406 # 0 standard input
407 # 1 file creation
408 # 2 errors and warnings
409 # 3 some systems may open it to /dev/tty
410 # 4 used on the Kubota Titan
411 # 6 checking for... messages and results
412 # 5 compiler messages saved in config.log
413 if test "$silent" = yes; then
414 exec 6>/dev/null
415 else
416 exec 6>&1
417 fi
418 exec 5>./config.log
419
420 echo "\
421 This file contains any messages produced by compilers while
422 running configure, to aid debugging if configure makes a mistake.
423 " 1>&5
424
425 # Strip out --no-create and --no-recursion so they do not pile up.
426 # Also quote any args containing shell metacharacters.
427 ac_configure_args=
428 for ac_arg
429 do
430 case "$ac_arg" in
431 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
432 | --no-cr | --no-c) ;;
433 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
434 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
435 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
436 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
437 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
438 esac
439 done
440
441 # NLS nuisances.
442 # Only set these to C if already set. These must not be set unconditionally
443 # because not all systems understand e.g. LANG=C (notably SCO).
444 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
445 # Non-C LC_CTYPE values break the ctype check.
446 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
447 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
448 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
449 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
450
451 # confdefs.h avoids OS command line length limits that DEFS can exceed.
452 rm -rf conftest* confdefs.h
453 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
454 echo > confdefs.h
455
456 # A filename unique to this package, relative to the directory that
457 # configure is in, which we can look for to find out if srcdir is correct.
458 ac_unique_file=rplayd/rplayd.c
459
460 # Find the source files, if location was not specified.
461 if test -z "$srcdir"; then
462 ac_srcdir_defaulted=yes
463 # Try the directory containing this script, then its parent.
464 ac_prog=$0
465 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
466 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
467 srcdir=$ac_confdir
468 if test ! -r $srcdir/$ac_unique_file; then
469 srcdir=..
470 fi
471 else
472 ac_srcdir_defaulted=no
473 fi
474 if test ! -r $srcdir/$ac_unique_file; then
475 if test "$ac_srcdir_defaulted" = yes; then
476 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
477 else
478 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
479 fi
480 fi
481 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
482
483 # Prefer explicitly selected file to automatically selected ones.
484 if test -z "$CONFIG_SITE"; then
485 if test "x$prefix" != xNONE; then
486 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
487 else
488 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
489 fi
490 fi
491 for ac_site_file in $CONFIG_SITE; do
492 if test -r "$ac_site_file"; then
493 echo "loading site script $ac_site_file"
494 . "$ac_site_file"
495 fi
496 done
497
498 if test -r "$cache_file"; then
499 echo "loading cache $cache_file"
500 . $cache_file
501 else
502 echo "creating cache $cache_file"
503 > $cache_file
504 fi
505
506 ac_ext=c
507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
508 ac_cpp='$CPP $CPPFLAGS'
509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
510 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
511 cross_compiling=$ac_cv_prog_cc_cross
512
513 ac_exeext=
514 ac_objext=o
515 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
516 # Stardent Vistra SVR4 grep lacks -e, says [email protected].
517 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
518 ac_n= ac_c='
519 ' ac_t=' '
520 else
521 ac_n=-n ac_c= ac_t=
522 fi
523 else
524 ac_n= ac_c='\c' ac_t=
525 fi
526
527
528
529
530
531 export srcdir
532 RPLAY_VERSION=`$srcdir/version`
533
534 echo configuring rplay version $RPLAY_VERSION
535
536 cat >> confdefs.h <<EOF
537 #define RPLAY_VERSION "$RPLAY_VERSION"
538 EOF
539
540
541 # We want these before the checks, so the checks can modify their values.
542 test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
543
544 # Extract the first word of "gcc", so it can be a program name with args.
545 set dummy gcc; ac_word=$2
546 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
547 echo "configure:548: checking for $ac_word" >&5
548 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
549 echo $ac_n "(cached) $ac_c" 1>&6
550 else
551 if test -n "$CC"; then
552 ac_cv_prog_CC="$CC" # Let the user override the test.
553 else
554 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
555 ac_dummy="$PATH"
556 for ac_dir in $ac_dummy; do
557 test -z "$ac_dir" && ac_dir=.
558 if test -f $ac_dir/$ac_word; then
559 ac_cv_prog_CC="gcc"
560 break
561 fi
562 done
563 IFS="$ac_save_ifs"
564 fi
565 fi
566 CC="$ac_cv_prog_CC"
567 if test -n "$CC"; then
568 echo "$ac_t""$CC" 1>&6
569 else
570 echo "$ac_t""no" 1>&6
571 fi
572
573 if test -z "$CC"; then
574 # Extract the first word of "cc", so it can be a program name with args.
575 set dummy cc; ac_word=$2
576 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
577 echo "configure:578: checking for $ac_word" >&5
578 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
579 echo $ac_n "(cached) $ac_c" 1>&6
580 else
581 if test -n "$CC"; then
582 ac_cv_prog_CC="$CC" # Let the user override the test.
583 else
584 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
585 ac_prog_rejected=no
586 ac_dummy="$PATH"
587 for ac_dir in $ac_dummy; do
588 test -z "$ac_dir" && ac_dir=.
589 if test -f $ac_dir/$ac_word; then
590 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
591 ac_prog_rejected=yes
592 continue
593 fi
594 ac_cv_prog_CC="cc"
595 break
596 fi
597 done
598 IFS="$ac_save_ifs"
599 if test $ac_prog_rejected = yes; then
600 # We found a bogon in the path, so make sure we never use it.
601 set dummy $ac_cv_prog_CC
602 shift
603 if test $# -gt 0; then
604 # We chose a different compiler from the bogus one.
605 # However, it has the same basename, so the bogon will be chosen
606 # first if we set CC to just the basename; use the full file name.
607 shift
608 set dummy "$ac_dir/$ac_word" "$@"
609 shift
610 ac_cv_prog_CC="$@"
611 fi
612 fi
613 fi
614 fi
615 CC="$ac_cv_prog_CC"
616 if test -n "$CC"; then
617 echo "$ac_t""$CC" 1>&6
618 else
619 echo "$ac_t""no" 1>&6
620 fi
621
622 if test -z "$CC"; then
623 case "`uname -s`" in
624 *win32* | *WIN32*)
625 # Extract the first word of "cl", so it can be a program name with args.
626 set dummy cl; ac_word=$2
627 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
628 echo "configure:629: checking for $ac_word" >&5
629 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
630 echo $ac_n "(cached) $ac_c" 1>&6
631 else
632 if test -n "$CC"; then
633 ac_cv_prog_CC="$CC" # Let the user override the test.
634 else
635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
636 ac_dummy="$PATH"
637 for ac_dir in $ac_dummy; do
638 test -z "$ac_dir" && ac_dir=.
639 if test -f $ac_dir/$ac_word; then
640 ac_cv_prog_CC="cl"
641 break
642 fi
643 done
644 IFS="$ac_save_ifs"
645 fi
646 fi
647 CC="$ac_cv_prog_CC"
648 if test -n "$CC"; then
649 echo "$ac_t""$CC" 1>&6
650 else
651 echo "$ac_t""no" 1>&6
652 fi
653 ;;
654 esac
655 fi
656 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
657 fi
658
659 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
660 echo "configure:661: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
661
662 ac_ext=c
663 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
664 ac_cpp='$CPP $CPPFLAGS'
665 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
666 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
667 cross_compiling=$ac_cv_prog_cc_cross
668
669 cat > conftest.$ac_ext << EOF
670
671 #line 672 "configure"
672 #include "confdefs.h"
673
674 main(){return(0);}
675 EOF
676 if { (eval echo configure:677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
677 ac_cv_prog_cc_works=yes
678 # If we can't run a trivial program, we are probably using a cross compiler.
679 if (./conftest; exit) 2>/dev/null; then
680 ac_cv_prog_cc_cross=no
681 else
682 ac_cv_prog_cc_cross=yes
683 fi
684 else
685 echo "configure: failed program was:" >&5
686 cat conftest.$ac_ext >&5
687 ac_cv_prog_cc_works=no
688 fi
689 rm -fr conftest*
690 ac_ext=c
691 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
692 ac_cpp='$CPP $CPPFLAGS'
693 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
694 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
695 cross_compiling=$ac_cv_prog_cc_cross
696
697 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
698 if test $ac_cv_prog_cc_works = no; then
699 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
700 fi
701 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
702 echo "configure:703: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
703 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
704 cross_compiling=$ac_cv_prog_cc_cross
705
706 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
707 echo "configure:708: checking whether we are using GNU C" >&5
708 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
709 echo $ac_n "(cached) $ac_c" 1>&6
710 else
711 cat > conftest.c <<EOF
712 #ifdef __GNUC__
713 yes;
714 #endif
715 EOF
716 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
717 ac_cv_prog_gcc=yes
718 else
719 ac_cv_prog_gcc=no
720 fi
721 fi
722
723 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
724
725 if test $ac_cv_prog_gcc = yes; then
726 GCC=yes
727 else
728 GCC=
729 fi
730
731 ac_test_CFLAGS="${CFLAGS+set}"
732 ac_save_CFLAGS="$CFLAGS"
733 CFLAGS=
734 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
735 echo "configure:736: checking whether ${CC-cc} accepts -g" >&5
736 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
737 echo $ac_n "(cached) $ac_c" 1>&6
738 else
739 echo 'void f(){}' > conftest.c
740 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
741 ac_cv_prog_cc_g=yes
742 else
743 ac_cv_prog_cc_g=no
744 fi
745 rm -f conftest*
746
747 fi
748
749 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
750 if test "$ac_test_CFLAGS" = set; then
751 CFLAGS="$ac_save_CFLAGS"
752 elif test $ac_cv_prog_cc_g = yes; then
753 if test "$GCC" = yes; then
754 CFLAGS="-g -O2"
755 else
756 CFLAGS="-g"
757 fi
758 else
759 if test "$GCC" = yes; then
760 CFLAGS="-O2"
761 else
762 CFLAGS=
763 fi
764 fi
765
766
767 # If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.
768 test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O"
769
770
771 # Check whether --enable-rplayd-user or --disable-rplayd-user was given.
772 if test "${enable_rplayd_user+set}" = set; then
773 enableval="$enable_rplayd_user"
774 RPLAYD_USER=$enableval
775 fi
776
777 # Check whether --enable-rplayd-group or --disable-rplayd-group was given.
778 if test "${enable_rplayd_group+set}" = set; then
779 enableval="$enable_rplayd_group"
780 RPLAYD_GROUP=$enableval
781 fi
782
783 if test -n "$RPLAYD_USER"
784 then
785 cat >> confdefs.h <<EOF
786 #define RPLAYD_USER "$RPLAYD_USER"
787 EOF
788
789 fi
790 if test -n "$RPLAYD_GROUP"
791 then
792 cat >> confdefs.h <<EOF
793 #define RPLAYD_GROUP "$RPLAYD_GROUP"
794 EOF
795
796 fi
797
798
799 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
800 echo "configure:801: checking for POSIXized ISC" >&5
801 if test -d /etc/conf/kconfig.d &&
802 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
803 then
804 echo "$ac_t""yes" 1>&6
805 ISC=yes # If later tests want to check for ISC.
806 cat >> confdefs.h <<\EOF
807 #define _POSIX_SOURCE 1
808 EOF
809
810 if test "$GCC" = yes; then
811 CC="$CC -posix"
812 else
813 CC="$CC -Xp"
814 fi
815 else
816 echo "$ac_t""no" 1>&6
817 ISC=
818 fi
819
820 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
821 echo "configure:822: checking how to run the C preprocessor" >&5
822 # On Suns, sometimes $CPP names a directory.
823 if test -n "$CPP" && test -d "$CPP"; then
824 CPP=
825 fi
826 if test -z "$CPP"; then
827 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
828 echo $ac_n "(cached) $ac_c" 1>&6
829 else
830 # This must be in double quotes, not single quotes, because CPP may get
831 # substituted into the Makefile and "${CC-cc}" will confuse make.
832 CPP="${CC-cc} -E"
833 # On the NeXT, cc -E runs the code through the compiler's parser,
834 # not just through cpp.
835 cat > conftest.$ac_ext <<EOF
836 #line 837 "configure"
837 #include "confdefs.h"
838 #include <assert.h>
839 Syntax Error
840 EOF
841 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
842 { (eval echo configure:843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
843 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
844 if test -z "$ac_err"; then
845 :
846 else
847 echo "$ac_err" >&5
848 echo "configure: failed program was:" >&5
849 cat conftest.$ac_ext >&5
850 rm -rf conftest*
851 CPP="${CC-cc} -E -traditional-cpp"
852 cat > conftest.$ac_ext <<EOF
853 #line 854 "configure"
854 #include "confdefs.h"
855 #include <assert.h>
856 Syntax Error
857 EOF
858 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
859 { (eval echo configure:860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
860 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
861 if test -z "$ac_err"; then
862 :
863 else
864 echo "$ac_err" >&5
865 echo "configure: failed program was:" >&5
866 cat conftest.$ac_ext >&5
867 rm -rf conftest*
868 CPP="${CC-cc} -nologo -E"
869 cat > conftest.$ac_ext <<EOF
870 #line 871 "configure"
871 #include "confdefs.h"
872 #include <assert.h>
873 Syntax Error
874 EOF
875 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
876 { (eval echo configure:877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
877 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
878 if test -z "$ac_err"; then
879 :
880 else
881 echo "$ac_err" >&5
882 echo "configure: failed program was:" >&5
883 cat conftest.$ac_ext >&5
884 rm -rf conftest*
885 CPP=/lib/cpp
886 fi
887 rm -f conftest*
888 fi
889 rm -f conftest*
890 fi
891 rm -f conftest*
892 ac_cv_prog_CPP="$CPP"
893 fi
894 CPP="$ac_cv_prog_CPP"
895 else
896 ac_cv_prog_CPP="$CPP"
897 fi
898 echo "$ac_t""$CPP" 1>&6
899
900 ac_aux_dir=
901 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
902 if test -f $ac_dir/install-sh; then
903 ac_aux_dir=$ac_dir
904 ac_install_sh="$ac_aux_dir/install-sh -c"
905 break
906 elif test -f $ac_dir/install.sh; then
907 ac_aux_dir=$ac_dir
908 ac_install_sh="$ac_aux_dir/install.sh -c"
909 break
910 fi
911 done
912 if test -z "$ac_aux_dir"; then
913 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
914 fi
915 ac_config_guess=$ac_aux_dir/config.guess
916 ac_config_sub=$ac_aux_dir/config.sub
917 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
918
919 # Find a good install program. We prefer a C program (faster),
920 # so one script is as good as another. But avoid the broken or
921 # incompatible versions:
922 # SysV /etc/install, /usr/sbin/install
923 # SunOS /usr/etc/install
924 # IRIX /sbin/install
925 # AIX /bin/install
926 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
927 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
928 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
929 # ./install, which can be erroneously created by make from ./install.sh.
930 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
931 echo "configure:932: checking for a BSD compatible install" >&5
932 if test -z "$INSTALL"; then
933 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
934 echo $ac_n "(cached) $ac_c" 1>&6
935 else
936 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
937 for ac_dir in $PATH; do
938 # Account for people who put trailing slashes in PATH elements.
939 case "$ac_dir/" in
940 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
941 *)
942 # OSF1 and SCO ODT 3.0 have their own names for install.
943 # Don't use installbsd from OSF since it installs stuff as root
944 # by default.
945 for ac_prog in ginstall scoinst install; do
946 if test -f $ac_dir/$ac_prog; then
947 if test $ac_prog = install &&
948 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
949 # AIX install. It has an incompatible calling convention.
950 :
951 else
952 ac_cv_path_install="$ac_dir/$ac_prog -c"
953 break 2
954 fi
955 fi
956 done
957 ;;
958 esac
959 done
960 IFS="$ac_save_IFS"
961
962 fi
963 if test "${ac_cv_path_install+set}" = set; then
964 INSTALL="$ac_cv_path_install"
965 else
966 # As a last resort, use the slow shell script. We don't cache a
967 # path for INSTALL within a source directory, because that will
968 # break other packages using the cache if that directory is
969 # removed, or if the path is relative.
970 INSTALL="$ac_install_sh"
971 fi
972 fi
973 echo "$ac_t""$INSTALL" 1>&6
974
975 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
976 # It thinks the first close brace ends the variable substitution.
977 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
978
979 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
980
981 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
982
983 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
984 echo "configure:985: checking whether ln -s works" >&5
985 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
986 echo $ac_n "(cached) $ac_c" 1>&6
987 else
988 rm -f conftestdata
989 if ln -s X conftestdata 2>/dev/null
990 then
991 rm -f conftestdata
992 ac_cv_prog_LN_S="ln -s"
993 else
994 ac_cv_prog_LN_S=ln
995 fi
996 fi
997 LN_S="$ac_cv_prog_LN_S"
998 if test "$ac_cv_prog_LN_S" = "ln -s"; then
999 echo "$ac_t""yes" 1>&6
1000 else
1001 echo "$ac_t""no" 1>&6
1002 fi
1003
1004 # Extract the first word of "ranlib", so it can be a program name with args.
1005 set dummy ranlib; ac_word=$2
1006 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1007 echo "configure:1008: checking for $ac_word" >&5
1008 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1009 echo $ac_n "(cached) $ac_c" 1>&6
1010 else
1011 if test -n "$RANLIB"; then
1012 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1013 else
1014 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1015 ac_dummy="$PATH"
1016 for ac_dir in $ac_dummy; do
1017 test -z "$ac_dir" && ac_dir=.
1018 if test -f $ac_dir/$ac_word; then
1019 ac_cv_prog_RANLIB="ranlib"
1020 break
1021 fi
1022 done
1023 IFS="$ac_save_ifs"
1024 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1025 fi
1026 fi
1027 RANLIB="$ac_cv_prog_RANLIB"
1028 if test -n "$RANLIB"; then
1029 echo "$ac_t""$RANLIB" 1>&6
1030 else
1031 echo "$ac_t""no" 1>&6
1032 fi
1033
1034 for ac_prog in etags
1035 do
1036 # Extract the first word of "$ac_prog", so it can be a program name with args.
1037 set dummy $ac_prog; ac_word=$2
1038 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1039 echo "configure:1040: checking for $ac_word" >&5
1040 if eval "test \"`echo '$''{'ac_cv_prog_ETAGS'+set}'`\" = set"; then
1041 echo $ac_n "(cached) $ac_c" 1>&6
1042 else
1043 if test -n "$ETAGS"; then
1044 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
1045 else
1046 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1047 ac_dummy="$PATH"
1048 for ac_dir in $ac_dummy; do
1049 test -z "$ac_dir" && ac_dir=.
1050 if test -f $ac_dir/$ac_word; then
1051 ac_cv_prog_ETAGS="$ac_prog"
1052 break
1053 fi
1054 done
1055 IFS="$ac_save_ifs"
1056 fi
1057 fi
1058 ETAGS="$ac_cv_prog_ETAGS"
1059 if test -n "$ETAGS"; then
1060 echo "$ac_t""$ETAGS" 1>&6
1061 else
1062 echo "$ac_t""no" 1>&6
1063 fi
1064
1065 test -n "$ETAGS" && break
1066 done
1067 test -n "$ETAGS" || ETAGS="true"
1068
1069 for ac_prog in makedepend
1070 do
1071 # Extract the first word of "$ac_prog", so it can be a program name with args.
1072 set dummy $ac_prog; ac_word=$2
1073 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1074 echo "configure:1075: checking for $ac_word" >&5
1075 if eval "test \"`echo '$''{'ac_cv_prog_MAKEDEPEND'+set}'`\" = set"; then
1076 echo $ac_n "(cached) $ac_c" 1>&6
1077 else
1078 if test -n "$MAKEDEPEND"; then
1079 ac_cv_prog_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test.
1080 else
1081 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1082 ac_dummy="$PATH"
1083 for ac_dir in $ac_dummy; do
1084 test -z "$ac_dir" && ac_dir=.
1085 if test -f $ac_dir/$ac_word; then
1086 ac_cv_prog_MAKEDEPEND="$ac_prog"
1087 break
1088 fi
1089 done
1090 IFS="$ac_save_ifs"
1091 fi
1092 fi
1093 MAKEDEPEND="$ac_cv_prog_MAKEDEPEND"
1094 if test -n "$MAKEDEPEND"; then
1095 echo "$ac_t""$MAKEDEPEND" 1>&6
1096 else
1097 echo "$ac_t""no" 1>&6
1098 fi
1099
1100 test -n "$MAKEDEPEND" && break
1101 done
1102 test -n "$MAKEDEPEND" || MAKEDEPEND="true"
1103
1104 for ac_prog in makeinfo
1105 do
1106 # Extract the first word of "$ac_prog", so it can be a program name with args.
1107 set dummy $ac_prog; ac_word=$2
1108 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1109 echo "configure:1110: checking for $ac_word" >&5
1110 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
1111 echo $ac_n "(cached) $ac_c" 1>&6
1112 else
1113 if test -n "$MAKEINFO"; then
1114 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1115 else
1116 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1117 ac_dummy="$PATH"
1118 for ac_dir in $ac_dummy; do
1119 test -z "$ac_dir" && ac_dir=.
1120 if test -f $ac_dir/$ac_word; then
1121 ac_cv_prog_MAKEINFO="$ac_prog"
1122 break
1123 fi
1124 done
1125 IFS="$ac_save_ifs"
1126 fi
1127 fi
1128 MAKEINFO="$ac_cv_prog_MAKEINFO"
1129 if test -n "$MAKEINFO"; then
1130 echo "$ac_t""$MAKEINFO" 1>&6
1131 else
1132 echo "$ac_t""no" 1>&6
1133 fi
1134
1135 test -n "$MAKEINFO" && break
1136 done
1137 test -n "$MAKEINFO" || MAKEINFO="true"
1138
1139 for ac_prog in texi2dvi
1140 do
1141 # Extract the first word of "$ac_prog", so it can be a program name with args.
1142 set dummy $ac_prog; ac_word=$2
1143 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1144 echo "configure:1145: checking for $ac_word" >&5
1145 if eval "test \"`echo '$''{'ac_cv_prog_TEXI2DVI'+set}'`\" = set"; then
1146 echo $ac_n "(cached) $ac_c" 1>&6
1147 else
1148 if test -n "$TEXI2DVI"; then
1149 ac_cv_prog_TEXI2DVI="$TEXI2DVI" # Let the user override the test.
1150 else
1151 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1152 ac_dummy="$PATH"
1153 for ac_dir in $ac_dummy; do
1154 test -z "$ac_dir" && ac_dir=.
1155 if test -f $ac_dir/$ac_word; then
1156 ac_cv_prog_TEXI2DVI="$ac_prog"
1157 break
1158 fi
1159 done
1160 IFS="$ac_save_ifs"
1161 fi
1162 fi
1163 TEXI2DVI="$ac_cv_prog_TEXI2DVI"
1164 if test -n "$TEXI2DVI"; then
1165 echo "$ac_t""$TEXI2DVI" 1>&6
1166 else
1167 echo "$ac_t""no" 1>&6
1168 fi
1169
1170 test -n "$TEXI2DVI" && break
1171 done
1172 test -n "$TEXI2DVI" || TEXI2DVI="true"
1173
1174 for ac_prog in texi2html
1175 do
1176 # Extract the first word of "$ac_prog", so it can be a program name with args.
1177 set dummy $ac_prog; ac_word=$2
1178 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1179 echo "configure:1180: checking for $ac_word" >&5
1180 if eval "test \"`echo '$''{'ac_cv_prog_TEXI2HTML'+set}'`\" = set"; then
1181 echo $ac_n "(cached) $ac_c" 1>&6
1182 else
1183 if test -n "$TEXI2HTML"; then
1184 ac_cv_prog_TEXI2HTML="$TEXI2HTML" # Let the user override the test.
1185 else
1186 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1187 ac_dummy="$PATH"
1188 for ac_dir in $ac_dummy; do
1189 test -z "$ac_dir" && ac_dir=.
1190 if test -f $ac_dir/$ac_word; then
1191 ac_cv_prog_TEXI2HTML="$ac_prog"
1192 break
1193 fi
1194 done
1195 IFS="$ac_save_ifs"
1196 fi
1197 fi
1198 TEXI2HTML="$ac_cv_prog_TEXI2HTML"
1199 if test -n "$TEXI2HTML"; then
1200 echo "$ac_t""$TEXI2HTML" 1>&6
1201 else
1202 echo "$ac_t""no" 1>&6
1203 fi
1204
1205 test -n "$TEXI2HTML" && break
1206 done
1207 test -n "$TEXI2HTML" || TEXI2HTML="true"
1208
1209 for ac_prog in dvips
1210 do
1211 # Extract the first word of "$ac_prog", so it can be a program name with args.
1212 set dummy $ac_prog; ac_word=$2
1213 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1214 echo "configure:1215: checking for $ac_word" >&5
1215 if eval "test \"`echo '$''{'ac_cv_prog_DVIPS'+set}'`\" = set"; then
1216 echo $ac_n "(cached) $ac_c" 1>&6
1217 else
1218 if test -n "$DVIPS"; then
1219 ac_cv_prog_DVIPS="$DVIPS" # Let the user override the test.
1220 else
1221 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1222 ac_dummy="$PATH"
1223 for ac_dir in $ac_dummy; do
1224 test -z "$ac_dir" && ac_dir=.
1225 if test -f $ac_dir/$ac_word; then
1226 ac_cv_prog_DVIPS="$ac_prog"
1227 break
1228 fi
1229 done
1230 IFS="$ac_save_ifs"
1231 fi
1232 fi
1233 DVIPS="$ac_cv_prog_DVIPS"
1234 if test -n "$DVIPS"; then
1235 echo "$ac_t""$DVIPS" 1>&6
1236 else
1237 echo "$ac_t""no" 1>&6
1238 fi
1239
1240 test -n "$DVIPS" && break
1241 done
1242 test -n "$DVIPS" || DVIPS="true"
1243
1244
1245 ac_header_dirent=no
1246 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1247 do
1248 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1249 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1250 echo "configure:1251: checking for $ac_hdr that defines DIR" >&5
1251 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1252 echo $ac_n "(cached) $ac_c" 1>&6
1253 else
1254 cat > conftest.$ac_ext <<EOF
1255 #line 1256 "configure"
1256 #include "confdefs.h"
1257 #include <sys/types.h>
1258 #include <$ac_hdr>
1259 int main() {
1260 DIR *dirp = 0;
1261 ; return 0; }
1262 EOF
1263 if { (eval echo configure:1264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1264 rm -rf conftest*
1265 eval "ac_cv_header_dirent_$ac_safe=yes"
1266 else
1267 echo "configure: failed program was:" >&5
1268 cat conftest.$ac_ext >&5
1269 rm -rf conftest*
1270 eval "ac_cv_header_dirent_$ac_safe=no"
1271 fi
1272 rm -f conftest*
1273 fi
1274 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1275 echo "$ac_t""yes" 1>&6
1276 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1277 cat >> confdefs.h <<EOF
1278 #define $ac_tr_hdr 1
1279 EOF
1280 ac_header_dirent=$ac_hdr; break
1281 else
1282 echo "$ac_t""no" 1>&6
1283 fi
1284 done
1285 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1286 if test $ac_header_dirent = dirent.h; then
1287 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1288 echo "configure:1289: checking for opendir in -ldir" >&5
1289 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1290 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1291 echo $ac_n "(cached) $ac_c" 1>&6
1292 else
1293 ac_save_LIBS="$LIBS"
1294 LIBS="-ldir $LIBS"
1295 cat > conftest.$ac_ext <<EOF
1296 #line 1297 "configure"
1297 #include "confdefs.h"
1298 /* Override any gcc2 internal prototype to avoid an error. */
1299 /* We use char because int might match the return type of a gcc2
1300 builtin and then its argument prototype would still apply. */
1301 char opendir();
1302
1303 int main() {
1304 opendir()
1305 ; return 0; }
1306 EOF
1307 if { (eval echo configure:1308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1308 rm -rf conftest*
1309 eval "ac_cv_lib_$ac_lib_var=yes"
1310 else
1311 echo "configure: failed program was:" >&5
1312 cat conftest.$ac_ext >&5
1313 rm -rf conftest*
1314 eval "ac_cv_lib_$ac_lib_var=no"
1315 fi
1316 rm -f conftest*
1317 LIBS="$ac_save_LIBS"
1318
1319 fi
1320 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1321 echo "$ac_t""yes" 1>&6
1322 LIBS="$LIBS -ldir"
1323 else
1324 echo "$ac_t""no" 1>&6
1325 fi
1326
1327 else
1328 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1329 echo "configure:1330: checking for opendir in -lx" >&5
1330 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1331 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1332 echo $ac_n "(cached) $ac_c" 1>&6
1333 else
1334 ac_save_LIBS="$LIBS"
1335 LIBS="-lx $LIBS"
1336 cat > conftest.$ac_ext <<EOF
1337 #line 1338 "configure"
1338 #include "confdefs.h"
1339 /* Override any gcc2 internal prototype to avoid an error. */
1340 /* We use char because int might match the return type of a gcc2
1341 builtin and then its argument prototype would still apply. */
1342 char opendir();
1343
1344 int main() {
1345 opendir()
1346 ; return 0; }
1347 EOF
1348 if { (eval echo configure:1349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1349 rm -rf conftest*
1350 eval "ac_cv_lib_$ac_lib_var=yes"
1351 else
1352 echo "configure: failed program was:" >&5
1353 cat conftest.$ac_ext >&5
1354 rm -rf conftest*
1355 eval "ac_cv_lib_$ac_lib_var=no"
1356 fi
1357 rm -f conftest*
1358 LIBS="$ac_save_LIBS"
1359
1360 fi
1361 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1362 echo "$ac_t""yes" 1>&6
1363 LIBS="$LIBS -lx"
1364 else
1365 echo "$ac_t""no" 1>&6
1366 fi
1367
1368 fi
1369
1370 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1371 echo "configure:1372: checking for ANSI C header files" >&5
1372 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1373 echo $ac_n "(cached) $ac_c" 1>&6
1374 else
1375 cat > conftest.$ac_ext <<EOF
1376 #line 1377 "configure"
1377 #include "confdefs.h"
1378 #include <stdlib.h>
1379 #include <stdarg.h>
1380 #include <string.h>
1381 #include <float.h>
1382 EOF
1383 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1384 { (eval echo configure:1385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1385 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1386 if test -z "$ac_err"; then
1387 rm -rf conftest*
1388 ac_cv_header_stdc=yes
1389 else
1390 echo "$ac_err" >&5
1391 echo "configure: failed program was:" >&5
1392 cat conftest.$ac_ext >&5
1393 rm -rf conftest*
1394 ac_cv_header_stdc=no
1395 fi
1396 rm -f conftest*
1397
1398 if test $ac_cv_header_stdc = yes; then
1399 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1400 cat > conftest.$ac_ext <<EOF
1401 #line 1402 "configure"
1402 #include "confdefs.h"
1403 #include <string.h>
1404 EOF
1405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1406 egrep "memchr" >/dev/null 2>&1; then
1407 :
1408 else
1409 rm -rf conftest*
1410 ac_cv_header_stdc=no
1411 fi
1412 rm -f conftest*
1413
1414 fi
1415
1416 if test $ac_cv_header_stdc = yes; then
1417 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1418 cat > conftest.$ac_ext <<EOF
1419 #line 1420 "configure"
1420 #include "confdefs.h"
1421 #include <stdlib.h>
1422 EOF
1423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1424 egrep "free" >/dev/null 2>&1; then
1425 :
1426 else
1427 rm -rf conftest*
1428 ac_cv_header_stdc=no
1429 fi
1430 rm -f conftest*
1431
1432 fi
1433
1434 if test $ac_cv_header_stdc = yes; then
1435 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1436 if test "$cross_compiling" = yes; then
1437 :
1438 else
1439 cat > conftest.$ac_ext <<EOF
1440 #line 1441 "configure"
1441 #include "confdefs.h"
1442 #include <ctype.h>
1443 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1444 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1445 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1446 int main () { int i; for (i = 0; i < 256; i++)
1447 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1448 exit (0); }
1449
1450 EOF
1451 if { (eval echo configure:1452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1452 then
1453 :
1454 else
1455 echo "configure: failed program was:" >&5
1456 cat conftest.$ac_ext >&5
1457 rm -fr conftest*
1458 ac_cv_header_stdc=no
1459 fi
1460 rm -fr conftest*
1461 fi
1462
1463 fi
1464 fi
1465
1466 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1467 if test $ac_cv_header_stdc = yes; then
1468 cat >> confdefs.h <<\EOF
1469 #define STDC_HEADERS 1
1470 EOF
1471
1472 fi
1473
1474 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1475 echo "configure:1476: checking whether time.h and sys/time.h may both be included" >&5
1476 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1477 echo $ac_n "(cached) $ac_c" 1>&6
1478 else
1479 cat > conftest.$ac_ext <<EOF
1480 #line 1481 "configure"
1481 #include "confdefs.h"
1482 #include <sys/types.h>
1483 #include <sys/time.h>
1484 #include <time.h>
1485 int main() {
1486 struct tm *tp;
1487 ; return 0; }
1488 EOF
1489 if { (eval echo configure:1490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1490 rm -rf conftest*
1491 ac_cv_header_time=yes
1492 else
1493 echo "configure: failed program was:" >&5
1494 cat conftest.$ac_ext >&5
1495 rm -rf conftest*
1496 ac_cv_header_time=no
1497 fi
1498 rm -f conftest*
1499 fi
1500
1501 echo "$ac_t""$ac_cv_header_time" 1>&6
1502 if test $ac_cv_header_time = yes; then
1503 cat >> confdefs.h <<\EOF
1504 #define TIME_WITH_SYS_TIME 1
1505 EOF
1506
1507 fi
1508
1509 for ac_hdr in fcntl.h sys/file.h sys/ioctl.h sys/time.h stdlib.h unistd.h memory.h string.h strings.h utime.h limits.h gsm.h gsm/gsm.h rxposix.h rx/rxposix.h
1510 do
1511 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1512 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1513 echo "configure:1514: checking for $ac_hdr" >&5
1514 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1515 echo $ac_n "(cached) $ac_c" 1>&6
1516 else
1517 cat > conftest.$ac_ext <<EOF
1518 #line 1519 "configure"
1519 #include "confdefs.h"
1520 #include <$ac_hdr>
1521 EOF
1522 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1523 { (eval echo configure:1524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1524 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1525 if test -z "$ac_err"; then
1526 rm -rf conftest*
1527 eval "ac_cv_header_$ac_safe=yes"
1528 else
1529 echo "$ac_err" >&5
1530 echo "configure: failed program was:" >&5
1531 cat conftest.$ac_ext >&5
1532 rm -rf conftest*
1533 eval "ac_cv_header_$ac_safe=no"
1534 fi
1535 rm -f conftest*
1536 fi
1537 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1538 echo "$ac_t""yes" 1>&6
1539 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1540 cat >> confdefs.h <<EOF
1541 #define $ac_tr_hdr 1
1542 EOF
1543
1544 else
1545 echo "$ac_t""no" 1>&6
1546 fi
1547 done
1548
1549 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1550 echo "configure:1551: checking for sys/wait.h that is POSIX.1 compatible" >&5
1551 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1552 echo $ac_n "(cached) $ac_c" 1>&6
1553 else
1554 cat > conftest.$ac_ext <<EOF
1555 #line 1556 "configure"
1556 #include "confdefs.h"
1557 #include <sys/types.h>
1558 #include <sys/wait.h>
1559 #ifndef WEXITSTATUS
1560 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1561 #endif
1562 #ifndef WIFEXITED
1563 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1564 #endif
1565 int main() {
1566 int s;
1567 wait (&s);
1568 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1569 ; return 0; }
1570 EOF
1571 if { (eval echo configure:1572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1572 rm -rf conftest*
1573 ac_cv_header_sys_wait_h=yes
1574 else
1575 echo "configure: failed program was:" >&5
1576 cat conftest.$ac_ext >&5
1577 rm -rf conftest*
1578 ac_cv_header_sys_wait_h=no
1579 fi
1580 rm -f conftest*
1581 fi
1582
1583 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1584 if test $ac_cv_header_sys_wait_h = yes; then
1585 cat >> confdefs.h <<\EOF
1586 #define HAVE_SYS_WAIT_H 1
1587 EOF
1588
1589 fi
1590
1591
1592 echo $ac_n "checking for working const""... $ac_c" 1>&6
1593 echo "configure:1594: checking for working const" >&5
1594 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1595 echo $ac_n "(cached) $ac_c" 1>&6
1596 else
1597 cat > conftest.$ac_ext <<EOF
1598 #line 1599 "configure"
1599 #include "confdefs.h"
1600
1601 int main() {
1602
1603 /* Ultrix mips cc rejects this. */
1604 typedef int charset[2]; const charset x;
1605 /* SunOS 4.1.1 cc rejects this. */
1606 char const *const *ccp;
1607 char **p;
1608 /* NEC SVR4.0.2 mips cc rejects this. */
1609 struct point {int x, y;};
1610 static struct point const zero = {0,0};
1611 /* AIX XL C 1.02.0.0 rejects this.
1612 It does not let you subtract one const X* pointer from another in an arm
1613 of an if-expression whose if-part is not a constant expression */
1614 const char *g = "string";
1615 ccp = &g + (g ? g-g : 0);
1616 /* HPUX 7.0 cc rejects these. */
1617 ++ccp;
1618 p = (char**) ccp;
1619 ccp = (char const *const *) p;
1620 { /* SCO 3.2v4 cc rejects this. */
1621 char *t;
1622 char const *s = 0 ? (char *) 0 : (char const *) 0;
1623
1624 *t++ = 0;
1625 }
1626 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1627 int x[] = {25, 17};
1628 const int *foo = &x[0];
1629 ++foo;
1630 }
1631 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1632 typedef const int *iptr;
1633 iptr p = 0;
1634 ++p;
1635 }
1636 { /* AIX XL C 1.02.0.0 rejects this saying
1637 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1638 struct s { int j; const int *ap[3]; };
1639 struct s *b; b->j = 5;
1640 }
1641 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1642 const int foo = 10;
1643 }
1644
1645 ; return 0; }
1646 EOF
1647 if { (eval echo configure:1648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1648 rm -rf conftest*
1649 ac_cv_c_const=yes
1650 else
1651 echo "configure: failed program was:" >&5
1652 cat conftest.$ac_ext >&5
1653 rm -rf conftest*
1654 ac_cv_c_const=no
1655 fi
1656 rm -f conftest*
1657 fi
1658
1659 echo "$ac_t""$ac_cv_c_const" 1>&6
1660 if test $ac_cv_c_const = no; then
1661 cat >> confdefs.h <<\EOF
1662 #define const
1663 EOF
1664
1665 fi
1666
1667 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1668 echo "configure:1669: checking for size_t" >&5
1669 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1670 echo $ac_n "(cached) $ac_c" 1>&6
1671 else
1672 cat > conftest.$ac_ext <<EOF
1673 #line 1674 "configure"
1674 #include "confdefs.h"
1675 #include <sys/types.h>
1676 #if STDC_HEADERS
1677 #include <stdlib.h>
1678 #include <stddef.h>
1679 #endif
1680 EOF
1681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1682 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1683 rm -rf conftest*
1684 ac_cv_type_size_t=yes
1685 else
1686 rm -rf conftest*
1687 ac_cv_type_size_t=no
1688 fi
1689 rm -f conftest*
1690
1691 fi
1692 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1693 if test $ac_cv_type_size_t = no; then
1694 cat >> confdefs.h <<\EOF
1695 #define size_t unsigned
1696 EOF
1697
1698 fi
1699
1700
1701 for ac_hdr in unistd.h
1702 do
1703 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1704 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1705 echo "configure:1706: checking for $ac_hdr" >&5
1706 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1707 echo $ac_n "(cached) $ac_c" 1>&6
1708 else
1709 cat > conftest.$ac_ext <<EOF
1710 #line 1711 "configure"
1711 #include "confdefs.h"
1712 #include <$ac_hdr>
1713 EOF
1714 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1715 { (eval echo configure:1716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1716 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1717 if test -z "$ac_err"; then
1718 rm -rf conftest*
1719 eval "ac_cv_header_$ac_safe=yes"
1720 else
1721 echo "$ac_err" >&5
1722 echo "configure: failed program was:" >&5
1723 cat conftest.$ac_ext >&5
1724 rm -rf conftest*
1725 eval "ac_cv_header_$ac_safe=no"
1726 fi
1727 rm -f conftest*
1728 fi
1729 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1730 echo "$ac_t""yes" 1>&6
1731 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1732 cat >> confdefs.h <<EOF
1733 #define $ac_tr_hdr 1
1734 EOF
1735
1736 else
1737 echo "$ac_t""no" 1>&6
1738 fi
1739 done
1740
1741 for ac_func in getpagesize
1742 do
1743 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1744 echo "configure:1745: checking for $ac_func" >&5
1745 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1746 echo $ac_n "(cached) $ac_c" 1>&6
1747 else
1748 cat > conftest.$ac_ext <<EOF
1749 #line 1750 "configure"
1750 #include "confdefs.h"
1751 /* System header to define __stub macros and hopefully few prototypes,
1752 which can conflict with char $ac_func(); below. */
1753 #include <assert.h>
1754 /* Override any gcc2 internal prototype to avoid an error. */
1755 /* We use char because int might match the return type of a gcc2
1756 builtin and then its argument prototype would still apply. */
1757 char $ac_func();
1758
1759 int main() {
1760
1761 /* The GNU C library defines this for functions which it implements
1762 to always fail with ENOSYS. Some functions are actually named
1763 something starting with __ and the normal name is an alias. */
1764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1765 choke me
1766 #else
1767 $ac_func();
1768 #endif
1769
1770 ; return 0; }
1771 EOF
1772 if { (eval echo configure:1773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1773 rm -rf conftest*
1774 eval "ac_cv_func_$ac_func=yes"
1775 else
1776 echo "configure: failed program was:" >&5
1777 cat conftest.$ac_ext >&5
1778 rm -rf conftest*
1779 eval "ac_cv_func_$ac_func=no"
1780 fi
1781 rm -f conftest*
1782 fi
1783
1784 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1785 echo "$ac_t""yes" 1>&6
1786 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1787 cat >> confdefs.h <<EOF
1788 #define $ac_tr_func 1
1789 EOF
1790
1791 else
1792 echo "$ac_t""no" 1>&6
1793 fi
1794 done
1795
1796 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1797 echo "configure:1798: checking for working mmap" >&5
1798 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1799 echo $ac_n "(cached) $ac_c" 1>&6
1800 else
1801 if test "$cross_compiling" = yes; then
1802 ac_cv_func_mmap_fixed_mapped=no
1803 else
1804 cat > conftest.$ac_ext <<EOF
1805 #line 1806 "configure"
1806 #include "confdefs.h"
1807
1808 /* Thanks to Mike Haertel and Jim Avera for this test.
1809 Here is a matrix of mmap possibilities:
1810 mmap private not fixed
1811 mmap private fixed at somewhere currently unmapped
1812 mmap private fixed at somewhere already mapped
1813 mmap shared not fixed
1814 mmap shared fixed at somewhere currently unmapped
1815 mmap shared fixed at somewhere already mapped
1816 For private mappings, we should verify that changes cannot be read()
1817 back from the file, nor mmap's back from the file at a different
1818 address. (There have been systems where private was not correctly
1819 implemented like the infamous i386 svr4.0, and systems where the
1820 VM page cache was not coherent with the filesystem buffer cache
1821 like early versions of FreeBSD and possibly contemporary NetBSD.)
1822 For shared mappings, we should conversely verify that changes get
1823 propogated back to all the places they're supposed to be.
1824
1825 Grep wants private fixed already mapped.
1826 The main things grep needs to know about mmap are:
1827 * does it exist and is it safe to write into the mmap'd area
1828 * how to use it (BSD variants) */
1829 #include <sys/types.h>
1830 #include <fcntl.h>
1831 #include <sys/mman.h>
1832
1833 /* This mess was copied from the GNU getpagesize.h. */
1834 #ifndef HAVE_GETPAGESIZE
1835 # ifdef HAVE_UNISTD_H
1836 # include <unistd.h>
1837 # endif
1838
1839 /* Assume that all systems that can run configure have sys/param.h. */
1840 # ifndef HAVE_SYS_PARAM_H
1841 # define HAVE_SYS_PARAM_H 1
1842 # endif
1843
1844 # ifdef _SC_PAGESIZE
1845 # define getpagesize() sysconf(_SC_PAGESIZE)
1846 # else /* no _SC_PAGESIZE */
1847 # ifdef HAVE_SYS_PARAM_H
1848 # include <sys/param.h>
1849 # ifdef EXEC_PAGESIZE
1850 # define getpagesize() EXEC_PAGESIZE
1851 # else /* no EXEC_PAGESIZE */
1852 # ifdef NBPG
1853 # define getpagesize() NBPG * CLSIZE
1854 # ifndef CLSIZE
1855 # define CLSIZE 1
1856 # endif /* no CLSIZE */
1857 # else /* no NBPG */
1858 # ifdef NBPC
1859 # define getpagesize() NBPC
1860 # else /* no NBPC */
1861 # ifdef PAGESIZE
1862 # define getpagesize() PAGESIZE
1863 # endif /* PAGESIZE */
1864 # endif /* no NBPC */
1865 # endif /* no NBPG */
1866 # endif /* no EXEC_PAGESIZE */
1867 # else /* no HAVE_SYS_PARAM_H */
1868 # define getpagesize() 8192 /* punt totally */
1869 # endif /* no HAVE_SYS_PARAM_H */
1870 # endif /* no _SC_PAGESIZE */
1871
1872 #endif /* no HAVE_GETPAGESIZE */
1873
1874 #ifdef __cplusplus
1875 extern "C" { void *malloc(unsigned); }
1876 #else
1877 char *malloc();
1878 #endif
1879
1880 int
1881 main()
1882 {
1883 char *data, *data2, *data3;
1884 int i, pagesize;
1885 int fd;
1886
1887 pagesize = getpagesize();
1888
1889 /*
1890 * First, make a file with some known garbage in it.
1891 */
1892 data = malloc(pagesize);
1893 if (!data)
1894 exit(1);
1895 for (i = 0; i < pagesize; ++i)
1896 *(data + i) = rand();
1897 umask(0);
1898 fd = creat("conftestmmap", 0600);
1899 if (fd < 0)
1900 exit(1);
1901 if (write(fd, data, pagesize) != pagesize)
1902 exit(1);
1903 close(fd);
1904
1905 /*
1906 * Next, try to mmap the file at a fixed address which
1907 * already has something else allocated at it. If we can,
1908 * also make sure that we see the same garbage.
1909 */
1910 fd = open("conftestmmap", O_RDWR);
1911 if (fd < 0)
1912 exit(1);
1913 data2 = malloc(2 * pagesize);
1914 if (!data2)
1915 exit(1);
1916 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1917 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1918 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1919 exit(1);
1920 for (i = 0; i < pagesize; ++i)
1921 if (*(data + i) != *(data2 + i))
1922 exit(1);
1923
1924 /*
1925 * Finally, make sure that changes to the mapped area
1926 * do not percolate back to the file as seen by read().
1927 * (This is a bug on some variants of i386 svr4.0.)
1928 */
1929 for (i = 0; i < pagesize; ++i)
1930 *(data2 + i) = *(data2 + i) + 1;
1931 data3 = malloc(pagesize);
1932 if (!data3)
1933 exit(1);
1934 if (read(fd, data3, pagesize) != pagesize)
1935 exit(1);
1936 for (i = 0; i < pagesize; ++i)
1937 if (*(data + i) != *(data3 + i))
1938 exit(1);
1939 close(fd);
1940 unlink("conftestmmap");
1941 exit(0);
1942 }
1943
1944 EOF
1945 if { (eval echo configure:1946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1946 then
1947 ac_cv_func_mmap_fixed_mapped=yes
1948 else
1949 echo "configure: failed program was:" >&5
1950 cat conftest.$ac_ext >&5
1951 rm -fr conftest*
1952 ac_cv_func_mmap_fixed_mapped=no
1953 fi
1954 rm -fr conftest*
1955 fi
1956
1957 fi
1958
1959 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1960 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1961 cat >> confdefs.h <<\EOF
1962 #define HAVE_MMAP 1
1963 EOF
1964
1965 fi
1966
1967 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
1968 echo "configure:1969: checking for 8-bit clean memcmp" >&5
1969 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
1970 echo $ac_n "(cached) $ac_c" 1>&6
1971 else
1972 if test "$cross_compiling" = yes; then
1973 ac_cv_func_memcmp_clean=no
1974 else
1975 cat > conftest.$ac_ext <<EOF
1976 #line 1977 "configure"
1977 #include "confdefs.h"
1978
1979 main()
1980 {
1981 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
1982 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
1983 }
1984
1985 EOF
1986 if { (eval echo configure:1987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1987 then
1988 ac_cv_func_memcmp_clean=yes
1989 else
1990 echo "configure: failed program was:" >&5
1991 cat conftest.$ac_ext >&5
1992 rm -fr conftest*
1993 ac_cv_func_memcmp_clean=no
1994 fi
1995 rm -fr conftest*
1996 fi
1997
1998 fi
1999
2000 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2001 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
2002
2003 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2004 echo "configure:2005: checking for vprintf" >&5
2005 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2006 echo $ac_n "(cached) $ac_c" 1>&6
2007 else
2008 cat > conftest.$ac_ext <<EOF
2009 #line 2010 "configure"
2010 #include "confdefs.h"
2011 /* System header to define __stub macros and hopefully few prototypes,
2012 which can conflict with char vprintf(); below. */
2013 #include <assert.h>
2014 /* Override any gcc2 internal prototype to avoid an error. */
2015 /* We use char because int might match the return type of a gcc2
2016 builtin and then its argument prototype would still apply. */
2017 char vprintf();
2018
2019 int main() {
2020
2021 /* The GNU C library defines this for functions which it implements
2022 to always fail with ENOSYS. Some functions are actually named
2023 something starting with __ and the normal name is an alias. */
2024 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2025 choke me
2026 #else
2027 vprintf();
2028 #endif
2029
2030 ; return 0; }
2031 EOF
2032 if { (eval echo configure:2033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2033 rm -rf conftest*
2034 eval "ac_cv_func_vprintf=yes"
2035 else
2036 echo "configure: failed program was:" >&5
2037 cat conftest.$ac_ext >&5
2038 rm -rf conftest*
2039 eval "ac_cv_func_vprintf=no"
2040 fi
2041 rm -f conftest*
2042 fi
2043
2044 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2045 echo "$ac_t""yes" 1>&6
2046 cat >> confdefs.h <<\EOF
2047 #define HAVE_VPRINTF 1
2048 EOF
2049
2050 else
2051 echo "$ac_t""no" 1>&6
2052 fi
2053
2054 if test "$ac_cv_func_vprintf" != yes; then
2055 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2056 echo "configure:2057: checking for _doprnt" >&5
2057 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2058 echo $ac_n "(cached) $ac_c" 1>&6
2059 else
2060 cat > conftest.$ac_ext <<EOF
2061 #line 2062 "configure"
2062 #include "confdefs.h"
2063 /* System header to define __stub macros and hopefully few prototypes,
2064 which can conflict with char _doprnt(); below. */
2065 #include <assert.h>
2066 /* Override any gcc2 internal prototype to avoid an error. */
2067 /* We use char because int might match the return type of a gcc2
2068 builtin and then its argument prototype would still apply. */
2069 char _doprnt();
2070
2071 int main() {
2072
2073 /* The GNU C library defines this for functions which it implements
2074 to always fail with ENOSYS. Some functions are actually named
2075 something starting with __ and the normal name is an alias. */
2076 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2077 choke me
2078 #else
2079 _doprnt();
2080 #endif
2081
2082 ; return 0; }
2083 EOF
2084 if { (eval echo configure:2085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2085 rm -rf conftest*
2086 eval "ac_cv_func__doprnt=yes"
2087 else
2088 echo "configure: failed program was:" >&5
2089 cat conftest.$ac_ext >&5
2090 rm -rf conftest*
2091 eval "ac_cv_func__doprnt=no"
2092 fi
2093 rm -f conftest*
2094 fi
2095
2096 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2097 echo "$ac_t""yes" 1>&6
2098 cat >> confdefs.h <<\EOF
2099 #define HAVE_DOPRNT 1
2100 EOF
2101
2102 else
2103 echo "$ac_t""no" 1>&6
2104 fi
2105
2106 fi
2107
2108 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2109 echo "configure:2110: checking return type of signal handlers" >&5
2110 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2111 echo $ac_n "(cached) $ac_c" 1>&6
2112 else
2113 cat > conftest.$ac_ext <<EOF
2114 #line 2115 "configure"
2115 #include "confdefs.h"
2116 #include <sys/types.h>
2117 #include <signal.h>
2118 #ifdef signal
2119 #undef signal
2120 #endif
2121 #ifdef __cplusplus
2122 extern "C" void (*signal (int, void (*)(int)))(int);
2123 #else
2124 void (*signal ()) ();
2125 #endif
2126
2127 int main() {
2128 int i;
2129 ; return 0; }
2130 EOF
2131 if { (eval echo configure:2132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2132 rm -rf conftest*
2133 ac_cv_type_signal=void
2134 else
2135 echo "configure: failed program was:" >&5
2136 cat conftest.$ac_ext >&5
2137 rm -rf conftest*
2138 ac_cv_type_signal=int
2139 fi
2140 rm -f conftest*
2141 fi
2142
2143 echo "$ac_t""$ac_cv_type_signal" 1>&6
2144 cat >> confdefs.h <<EOF
2145 #define RETSIGTYPE $ac_cv_type_signal
2146 EOF
2147
2148
2149 for ac_func in getcwd gethostname mkdir re_comp regcomp select snprintf socket strdup strerror strstr fstat fchmod fchown utime utimes memmove sigset vsnprintf waitpid random srandom
2150 do
2151 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2152 echo "configure:2153: checking for $ac_func" >&5
2153 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2154 echo $ac_n "(cached) $ac_c" 1>&6
2155 else
2156 cat > conftest.$ac_ext <<EOF
2157 #line 2158 "configure"
2158 #include "confdefs.h"
2159 /* System header to define __stub macros and hopefully few prototypes,
2160 which can conflict with char $ac_func(); below. */
2161 #include <assert.h>
2162 /* Override any gcc2 internal prototype to avoid an error. */
2163 /* We use char because int might match the return type of a gcc2
2164 builtin and then its argument prototype would still apply. */
2165 char $ac_func();
2166
2167 int main() {
2168
2169 /* The GNU C library defines this for functions which it implements
2170 to always fail with ENOSYS. Some functions are actually named
2171 something starting with __ and the normal name is an alias. */
2172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2173 choke me
2174 #else
2175 $ac_func();
2176 #endif
2177
2178 ; return 0; }
2179 EOF
2180 if { (eval echo configure:2181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2181 rm -rf conftest*
2182 eval "ac_cv_func_$ac_func=yes"
2183 else
2184 echo "configure: failed program was:" >&5
2185 cat conftest.$ac_ext >&5
2186 rm -rf conftest*
2187 eval "ac_cv_func_$ac_func=no"
2188 fi
2189 rm -f conftest*
2190 fi
2191
2192 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2193 echo "$ac_t""yes" 1>&6
2194 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2195 cat >> confdefs.h <<EOF
2196 #define $ac_tr_func 1
2197 EOF
2198
2199 else
2200 echo "$ac_t""no" 1>&6
2201 fi
2202 done
2203
2204 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
2205 echo "configure:2206: checking for socket in -lsocket" >&5
2206 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2207 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2208 echo $ac_n "(cached) $ac_c" 1>&6
2209 else
2210 ac_save_LIBS="$LIBS"
2211 LIBS="-lsocket $LIBS"
2212 cat > conftest.$ac_ext <<EOF
2213 #line 2214 "configure"
2214 #include "confdefs.h"
2215 /* Override any gcc2 internal prototype to avoid an error. */
2216 /* We use char because int might match the return type of a gcc2
2217 builtin and then its argument prototype would still apply. */
2218 char socket();
2219
2220 int main() {
2221 socket()
2222 ; return 0; }
2223 EOF
2224 if { (eval echo configure:2225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2225 rm -rf conftest*
2226 eval "ac_cv_lib_$ac_lib_var=yes"
2227 else
2228 echo "configure: failed program was:" >&5
2229 cat conftest.$ac_ext >&5
2230 rm -rf conftest*
2231 eval "ac_cv_lib_$ac_lib_var=no"
2232 fi
2233 rm -f conftest*
2234 LIBS="$ac_save_LIBS"
2235
2236 fi
2237 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2238 echo "$ac_t""yes" 1>&6
2239 LIBS="$LIBS -lsocket"
2240 else
2241 echo "$ac_t""no" 1>&6
2242 fi
2243
2244 echo $ac_n "checking for t_accept in -lnsl""... $ac_c" 1>&6
2245 echo "configure:2246: checking for t_accept in -lnsl" >&5
2246 ac_lib_var=`echo nsl'_'t_accept | sed 'y%./+-%__p_%'`
2247 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2248 echo $ac_n "(cached) $ac_c" 1>&6
2249 else
2250 ac_save_LIBS="$LIBS"
2251 LIBS="-lnsl $LIBS"
2252 cat > conftest.$ac_ext <<EOF
2253 #line 2254 "configure"
2254 #include "confdefs.h"
2255 /* Override any gcc2 internal prototype to avoid an error. */
2256 /* We use char because int might match the return type of a gcc2
2257 builtin and then its argument prototype would still apply. */
2258 char t_accept();
2259
2260 int main() {
2261 t_accept()
2262 ; return 0; }
2263 EOF
2264 if { (eval echo configure:2265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2265 rm -rf conftest*
2266 eval "ac_cv_lib_$ac_lib_var=yes"
2267 else
2268 echo "configure: failed program was:" >&5
2269 cat conftest.$ac_ext >&5
2270 rm -rf conftest*
2271 eval "ac_cv_lib_$ac_lib_var=no"
2272 fi
2273 rm -f conftest*
2274 LIBS="$ac_save_LIBS"
2275
2276 fi
2277 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2278 echo "$ac_t""yes" 1>&6
2279 LIBS="$LIBS -lnsl"
2280 else
2281 echo "$ac_t""no" 1>&6
2282 fi
2283
2284
2285 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
2286 echo "configure:2287: checking for readline in -lreadline" >&5
2287 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
2288 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2289 echo $ac_n "(cached) $ac_c" 1>&6
2290 else
2291 ac_save_LIBS="$LIBS"
2292 LIBS="-lreadline $LIBS"
2293 cat > conftest.$ac_ext <<EOF
2294 #line 2295 "configure"
2295 #include "confdefs.h"
2296 /* Override any gcc2 internal prototype to avoid an error. */
2297 /* We use char because int might match the return type of a gcc2
2298 builtin and then its argument prototype would still apply. */
2299 char readline();
2300
2301 int main() {
2302 readline()
2303 ; return 0; }
2304 EOF
2305 if { (eval echo configure:2306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2306 rm -rf conftest*
2307 eval "ac_cv_lib_$ac_lib_var=yes"
2308 else
2309 echo "configure: failed program was:" >&5
2310 cat conftest.$ac_ext >&5
2311 rm -rf conftest*
2312 eval "ac_cv_lib_$ac_lib_var=no"
2313 fi
2314 rm -f conftest*
2315 LIBS="$ac_save_LIBS"
2316
2317 fi
2318 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2319 echo "$ac_t""yes" 1>&6
2320 RL_LIBS="-lreadline"
2321 else
2322 echo "$ac_t""no" 1>&6
2323 fi
2324
2325
2326
2327 echo $ac_n "checking for gsm_decode in -lgsm""... $ac_c" 1>&6
2328 echo "configure:2329: checking for gsm_decode in -lgsm" >&5
2329 ac_lib_var=`echo gsm'_'gsm_decode | sed 'y%./+-%__p_%'`
2330 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2331 echo $ac_n "(cached) $ac_c" 1>&6
2332 else
2333 ac_save_LIBS="$LIBS"
2334 LIBS="-lgsm $LIBS"
2335 cat > conftest.$ac_ext <<EOF
2336 #line 2337 "configure"
2337 #include "confdefs.h"
2338 /* Override any gcc2 internal prototype to avoid an error. */
2339 /* We use char because int might match the return type of a gcc2
2340 builtin and then its argument prototype would still apply. */
2341 char gsm_decode();
2342
2343 int main() {
2344 gsm_decode()
2345 ; return 0; }
2346 EOF
2347 if { (eval echo configure:2348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2348 rm -rf conftest*
2349 eval "ac_cv_lib_$ac_lib_var=yes"
2350 else
2351 echo "configure: failed program was:" >&5
2352 cat conftest.$ac_ext >&5
2353 rm -rf conftest*
2354 eval "ac_cv_lib_$ac_lib_var=no"
2355 fi
2356 rm -f conftest*
2357 LIBS="$ac_save_LIBS"
2358
2359 fi
2360 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2361 echo "$ac_t""yes" 1>&6
2362 HAVE_GSM="yes"
2363 else
2364 echo "$ac_t""no" 1>&6
2365 fi
2366
2367 if test "$HAVE_GSM" = "yes"; then
2368 GSM_LIBS="-lgsm"
2369 GSM_INCS=""
2370 else
2371 GSM_LIBS="-L../gsm -lgsm"
2372 GSM_INCS="-I\${srcdir}/../gsm"
2373 fi
2374
2375
2376
2377 echo $ac_n "checking for regncomp in -lrx""... $ac_c" 1>&6
2378 echo "configure:2379: checking for regncomp in -lrx" >&5
2379 ac_lib_var=`echo rx'_'regncomp | sed 'y%./+-%__p_%'`
2380 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2381 echo $ac_n "(cached) $ac_c" 1>&6
2382 else
2383 ac_save_LIBS="$LIBS"
2384 LIBS="-lrx $LIBS"
2385 cat > conftest.$ac_ext <<EOF
2386 #line 2387 "configure"
2387 #include "confdefs.h"
2388 /* Override any gcc2 internal prototype to avoid an error. */
2389 /* We use char because int might match the return type of a gcc2
2390 builtin and then its argument prototype would still apply. */
2391 char regncomp();
2392
2393 int main() {
2394 regncomp()
2395 ; return 0; }
2396 EOF
2397 if { (eval echo configure:2398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2398 rm -rf conftest*
2399 eval "ac_cv_lib_$ac_lib_var=yes"
2400 else
2401 echo "configure: failed program was:" >&5
2402 cat conftest.$ac_ext >&5
2403 rm -rf conftest*
2404 eval "ac_cv_lib_$ac_lib_var=no"
2405 fi
2406 rm -f conftest*
2407 LIBS="$ac_save_LIBS"
2408
2409 fi
2410 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2411 echo "$ac_t""yes" 1>&6
2412 HAVE_RX="yes"
2413 else
2414 echo "$ac_t""no" 1>&6
2415 fi
2416
2417 if test "$HAVE_RX" = "yes"; then
2418 RX_LIBS="-lrx"
2419 RX_INCS=""
2420 else
2421 RX_LIBS="-L../rx -lrx"
2422 RX_INCS="-I\${srcdir}/../rx"
2423 fi
2424
2425
2426
2427 RPLAY_TOP=`pwd`
2428
2429
2430 if test -n "$target" -a "$target" != "NONE"; then
2431 RPLAY_TARGET=$target
2432 echo "using specified $RPLAY_TARGET configuration"
2433 fi
2434
2435 if test -z "$RPLAY_TARGET"; then
2436 echo $ac_n "checking for sun""... $ac_c" 1>&6
2437 echo "configure:2438: checking for sun" >&5
2438 cat > conftest.$ac_ext <<EOF
2439 #line 2440 "configure"
2440 #include "confdefs.h"
2441
2442 #ifdef sun
2443 yes
2444 #endif
2445
2446 EOF
2447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2448 egrep "yes" >/dev/null 2>&1; then
2449 rm -rf conftest*
2450 is_sun=yes
2451 else
2452 rm -rf conftest*
2453 is_sun=no
2454 fi
2455 rm -f conftest*
2456
2457 echo "$ac_t""$is_sun" 1>&6
2458 if test $is_sun = "yes"; then
2459 RPLAY_TARGET="sun"
2460 fi
2461 if test "$RPLAY_TARGET"; then
2462 echo $ac_n "checking for solaris""... $ac_c" 1>&6
2463 echo "configure:2464: checking for solaris" >&5
2464 if test ! -f /vmunix; then
2465 is_solaris=yes
2466 RPLAY_TARGET="solaris"
2467 else
2468 is_solaris=no
2469 fi
2470 echo "$ac_t""$is_solaris" 1>&6
2471 fi
2472 fi
2473
2474 if test -z "$RPLAY_TARGET"; then
2475 echo $ac_n "checking for linux""... $ac_c" 1>&6
2476 echo "configure:2477: checking for linux" >&5
2477 cat > conftest.$ac_ext <<EOF
2478 #line 2479 "configure"
2479 #include "confdefs.h"
2480
2481 #ifdef linux
2482 yes
2483 #endif
2484
2485 EOF
2486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2487 egrep "yes" >/dev/null 2>&1; then
2488 rm -rf conftest*
2489 is_linux=yes
2490 else
2491 rm -rf conftest*
2492 is_linux=no
2493 fi
2494 rm -f conftest*
2495
2496 echo "$ac_t""$is_linux" 1>&6
2497 if test $is_linux = "yes"; then
2498 RPLAY_TARGET="oss"
2499 fi
2500 fi
2501
2502 if test -z "$RPLAY_TARGET"; then
2503 echo $ac_n "checking for hpux""... $ac_c" 1>&6
2504 echo "configure:2505: checking for hpux" >&5
2505 cat > conftest.$ac_ext <<EOF
2506 #line 2507 "configure"
2507 #include "confdefs.h"
2508
2509 #ifdef __hpux
2510 yes
2511 #endif
2512
2513 EOF
2514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2515 egrep "yes" >/dev/null 2>&1; then
2516 rm -rf conftest*
2517 is_hpux=yes
2518 else
2519 rm -rf conftest*
2520 is_hpux=no
2521 fi
2522 rm -f conftest*
2523
2524 echo "$ac_t""$is_hpux" 1>&6
2525 if test $is_hpux = "yes"; then
2526 RPLAY_TARGET="hpux"
2527 fi
2528 fi
2529
2530 if test -z "$RPLAY_TARGET"; then
2531 echo $ac_n "checking for sgi""... $ac_c" 1>&6
2532 echo "configure:2533: checking for sgi" >&5
2533 cat > conftest.$ac_ext <<EOF
2534 #line 2535 "configure"
2535 #include "confdefs.h"
2536
2537 #ifdef sgi
2538 yes
2539 #endif
2540
2541 EOF
2542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2543 egrep "yes" >/dev/null 2>&1; then
2544 rm -rf conftest*
2545 is_sgi=yes
2546 else
2547 rm -rf conftest*
2548 is_sgi=no
2549 fi
2550 rm -f conftest*
2551
2552 echo "$ac_t""$is_sgi" 1>&6
2553 if test $is_sgi = "yes"; then
2554 RPLAY_TARGET="sgi"
2555 echo $ac_n "checking for multimedia development kit""... $ac_c" 1>&6
2556 echo "configure:2557: checking for multimedia development kit" >&5
2557 for ac_hdr in audio.h
2558 do
2559 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2560 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2561 echo "configure:2562: checking for $ac_hdr" >&5
2562 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2563 echo $ac_n "(cached) $ac_c" 1>&6
2564 else
2565 cat > conftest.$ac_ext <<EOF
2566 #line 2567 "configure"
2567 #include "confdefs.h"
2568 #include <$ac_hdr>
2569 EOF
2570 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2571 { (eval echo configure:2572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2572 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2573 if test -z "$ac_err"; then
2574 rm -rf conftest*
2575 eval "ac_cv_header_$ac_safe=yes"
2576 else
2577 echo "$ac_err" >&5
2578 echo "configure: failed program was:" >&5
2579 cat conftest.$ac_ext >&5
2580 rm -rf conftest*
2581 eval "ac_cv_header_$ac_safe=no"
2582 fi
2583 rm -f conftest*
2584 fi
2585 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2586 echo "$ac_t""yes" 1>&6
2587 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2588 cat >> confdefs.h <<EOF
2589 #define $ac_tr_hdr 1
2590 EOF
2591
2592 else
2593 echo "$ac_t""no" 1>&6
2594 fi
2595 done
2596
2597 if test $ac_cv_header_audio_h = "no"; then
2598 echo 'The multimedia development kit was not found.'
2599 echo 'Please read the README.sgi file.'
2600 exit -1
2601 fi
2602 fi
2603 fi
2604
2605 if test -z "$RPLAY_TARGET"; then
2606 echo $ac_n "checking for FreeBSD""... $ac_c" 1>&6
2607 echo "configure:2608: checking for FreeBSD" >&5
2608 cat > conftest.$ac_ext <<EOF
2609 #line 2610 "configure"
2610 #include "confdefs.h"
2611
2612 #ifdef __FreeBSD__
2613 yes
2614 #endif
2615
2616 EOF
2617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2618 egrep "yes" >/dev/null 2>&1; then
2619 rm -rf conftest*
2620 is_freebsd=yes
2621 else
2622 rm -rf conftest*
2623 is_freebsd=no
2624 fi
2625 rm -f conftest*
2626
2627 echo "$ac_t""$is_freebsd" 1>&6
2628 if test $is_freebsd = "yes"; then
2629 RPLAY_TARGET="FreeBSD"
2630 fi
2631 fi
2632
2633
2634 if test -z "$RPLAY_TARGET"; then
2635 echo 'Sorry, I could not figure out what type of system you have.'
2636 echo -n 'Would you like to try the generic configuration? '
2637 read ans
2638 case "$ans" in
2639 y|Y|yes|Yes|YES|sure|ok|okay) RPLAY_TARGET="generic" ;;
2640 *) echo configuration aborted; exit 1;
2641 esac
2642 fi
2643
2644 echo "using $RPLAY_TARGET configuration"
2645
2646
2647
2648
2649 if test $RPLAY_TARGET = "solaris"; then
2650 cat >> confdefs.h <<\EOF
2651 #define SVR4 1
2652 EOF
2653
2654 fi
2655
2656
2657 if test $RPLAY_TARGET = "sgi"; then
2658 LIBS="$LIBS -laudio"
2659 fi
2660
2661
2662 BUILD_TARGETS="include lib adpcm"
2663 if test "$HAVE_RX" != "yes"; then
2664 BUILD_TARGETS="$BUILD_TARGETS rx"
2665 subdirs="rx"
2666
2667 fi
2668 if test "$HAVE_GSM" != "yes"; then
2669 BUILD_TARGETS="$BUILD_TARGETS gsm"
2670 fi
2671
2672 BUILD_TARGETS="$BUILD_TARGETS librplay rplayd rplay rptp doc"
2673
2674 if test $RPLAY_TARGET = "oss"; then
2675 BUILD_TARGETS="$BUILD_TARGETS devrplay"
2676 fi
2677
2678
2679
2680 trap '' 1 2 15
2681 cat > confcache <<\EOF
2682 # This file is a shell script that caches the results of configure
2683 # tests run on this system so they can be shared between configure
2684 # scripts and configure runs. It is not useful on other systems.
2685 # If it contains results you don't want to keep, you may remove or edit it.
2686 #
2687 # By default, configure uses ./config.cache as the cache file,
2688 # creating it if it does not exist already. You can give configure
2689 # the --cache-file=FILE option to use a different cache file; that is
2690 # what configure does when it calls configure scripts in
2691 # subdirectories, so they share the cache.
2692 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2693 # config.status only pays attention to the cache file if you give it the
2694 # --recheck option to rerun configure.
2695 #
2696 EOF
2697 # The following way of writing the cache mishandles newlines in values,
2698 # but we know of no workaround that is simple, portable, and efficient.
2699 # So, don't put newlines in cache variables' values.
2700 # Ultrix sh set writes to stderr and can't be redirected directly,
2701 # and sets the high bit in the cache file unless we assign to the vars.
2702 (set) 2>&1 |
2703 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2704 *ac_space=\ *)
2705 # `set' does not quote correctly, so add quotes (double-quote substitution
2706 # turns \\\\ into \\, and sed turns \\ into \).
2707 sed -n \
2708 -e "s/'/'\\\\''/g" \
2709 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2710 ;;
2711 *)
2712 # `set' quotes correctly as required by POSIX, so do not add quotes.
2713 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2714 ;;
2715 esac >> confcache
2716 if cmp -s $cache_file confcache; then
2717 :
2718 else
2719 if test -w $cache_file; then
2720 echo "updating cache $cache_file"
2721 cat confcache > $cache_file
2722 else
2723 echo "not updating unwritable cache $cache_file"
2724 fi
2725 fi
2726 rm -f confcache
2727
2728 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2729
2730 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2731 # Let make expand exec_prefix.
2732 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2733
2734 # Any assignment to VPATH causes Sun make to only execute
2735 # the first set of double-colon rules, so remove it if not needed.
2736 # If there is a colon in the path, we need to keep it.
2737 if test "x$srcdir" = x.; then
2738 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2739 fi
2740
2741 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2742
2743 DEFS=-DHAVE_CONFIG_H
2744
2745 # Without the "./", some shells look in PATH for config.status.
2746 : ${CONFIG_STATUS=./config.status}
2747
2748 echo creating $CONFIG_STATUS
2749 rm -f $CONFIG_STATUS
2750 cat > $CONFIG_STATUS <<EOF
2751 #! /bin/sh
2752 # Generated automatically by configure.
2753 # Run this file to recreate the current configuration.
2754 # This directory was configured as follows,
2755 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2756 #
2757 # $0 $ac_configure_args
2758 #
2759 # Compiler output produced by configure, useful for debugging
2760 # configure, is in ./config.log if it exists.
2761
2762 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2763 for ac_option
2764 do
2765 case "\$ac_option" in
2766 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2767 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2768 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2769 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2770 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2771 exit 0 ;;
2772 -help | --help | --hel | --he | --h)
2773 echo "\$ac_cs_usage"; exit 0 ;;
2774 *) echo "\$ac_cs_usage"; exit 1 ;;
2775 esac
2776 done
2777
2778 ac_given_srcdir=$srcdir
2779 ac_given_INSTALL="$INSTALL"
2780
2781 trap 'rm -fr `echo "Makefile.config Makefile include/Makefile lib/Makefile adpcm/Makefile gsm/Makefile librplay/Makefile rplayd/Makefile rplay/Makefile rptp/Makefile doc/Makefile devrplay/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2782 EOF
2783 cat >> $CONFIG_STATUS <<EOF
2784
2785 # Protect against being on the right side of a sed subst in config.status.
2786 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2787 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2788 $ac_vpsub
2789 $extrasub
2790 s%@SHELL@%$SHELL%g
2791 s%@CFLAGS@%$CFLAGS%g
2792 s%@CPPFLAGS@%$CPPFLAGS%g
2793 s%@CXXFLAGS@%$CXXFLAGS%g
2794 s%@FFLAGS@%$FFLAGS%g
2795 s%@DEFS@%$DEFS%g
2796 s%@LDFLAGS@%$LDFLAGS%g
2797 s%@LIBS@%$LIBS%g
2798 s%@exec_prefix@%$exec_prefix%g
2799 s%@prefix@%$prefix%g
2800 s%@program_transform_name@%$program_transform_name%g
2801 s%@bindir@%$bindir%g
2802 s%@sbindir@%$sbindir%g
2803 s%@libexecdir@%$libexecdir%g
2804 s%@datadir@%$datadir%g
2805 s%@sysconfdir@%$sysconfdir%g
2806 s%@sharedstatedir@%$sharedstatedir%g
2807 s%@localstatedir@%$localstatedir%g
2808 s%@libdir@%$libdir%g
2809 s%@includedir@%$includedir%g
2810 s%@oldincludedir@%$oldincludedir%g
2811 s%@infodir@%$infodir%g
2812 s%@mandir@%$mandir%g
2813 s%@RPLAY_VERSION@%$RPLAY_VERSION%g
2814 s%@CC@%$CC%g
2815 s%@CPP@%$CPP%g
2816 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2817 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2818 s%@INSTALL_DATA@%$INSTALL_DATA%g
2819 s%@LN_S@%$LN_S%g
2820 s%@RANLIB@%$RANLIB%g
2821 s%@ETAGS@%$ETAGS%g
2822 s%@MAKEDEPEND@%$MAKEDEPEND%g
2823 s%@MAKEINFO@%$MAKEINFO%g
2824 s%@TEXI2DVI@%$TEXI2DVI%g
2825 s%@TEXI2HTML@%$TEXI2HTML%g
2826 s%@DVIPS@%$DVIPS%g
2827 s%@LIBOBJS@%$LIBOBJS%g
2828 s%@RL_LIBS@%$RL_LIBS%g
2829 s%@GSM_LIBS@%$GSM_LIBS%g
2830 s%@GSM_INCS@%$GSM_INCS%g
2831 s%@RX_LIBS@%$RX_LIBS%g
2832 s%@RX_INCS@%$RX_INCS%g
2833 s%@RPLAY_TOP@%$RPLAY_TOP%g
2834 s%@RPLAY_TARGET@%$RPLAY_TARGET%g
2835 s%@subdirs@%$subdirs%g
2836 s%@BUILD_TARGETS@%$BUILD_TARGETS%g
2837
2838 CEOF
2839 EOF
2840
2841 cat >> $CONFIG_STATUS <<\EOF
2842
2843 # Split the substitutions into bite-sized pieces for seds with
2844 # small command number limits, like on Digital OSF/1 and HP-UX.
2845 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2846 ac_file=1 # Number of current file.
2847 ac_beg=1 # First line for current file.
2848 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2849 ac_more_lines=:
2850 ac_sed_cmds=""
2851 while $ac_more_lines; do
2852 if test $ac_beg -gt 1; then
2853 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2854 else
2855 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2856 fi
2857 if test ! -s conftest.s$ac_file; then
2858 ac_more_lines=false
2859 rm -f conftest.s$ac_file
2860 else
2861 if test -z "$ac_sed_cmds"; then
2862 ac_sed_cmds="sed -f conftest.s$ac_file"
2863 else
2864 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2865 fi
2866 ac_file=`expr $ac_file + 1`
2867 ac_beg=$ac_end
2868 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2869 fi
2870 done
2871 if test -z "$ac_sed_cmds"; then
2872 ac_sed_cmds=cat
2873 fi
2874 EOF
2875
2876 cat >> $CONFIG_STATUS <<EOF
2877
2878 CONFIG_FILES=\${CONFIG_FILES-"Makefile.config Makefile include/Makefile lib/Makefile adpcm/Makefile gsm/Makefile librplay/Makefile rplayd/Makefile rplay/Makefile rptp/Makefile doc/Makefile devrplay/Makefile"}
2879 EOF
2880 cat >> $CONFIG_STATUS <<\EOF
2881 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2882 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2883 case "$ac_file" in
2884 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2885 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2886 *) ac_file_in="${ac_file}.in" ;;
2887 esac
2888
2889 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2890
2891 # Remove last slash and all that follows it. Not all systems have dirname.
2892 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2893 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2894 # The file is in a subdirectory.
2895 test ! -d "$ac_dir" && mkdir "$ac_dir"
2896 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2897 # A "../" for each directory in $ac_dir_suffix.
2898 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2899 else
2900 ac_dir_suffix= ac_dots=
2901 fi
2902
2903 case "$ac_given_srcdir" in
2904 .) srcdir=.
2905 if test -z "$ac_dots"; then top_srcdir=.
2906 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2907 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2908 *) # Relative path.
2909 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2910 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2911 esac
2912
2913 case "$ac_given_INSTALL" in
2914 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2915 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2916 esac
2917
2918 echo creating "$ac_file"
2919 rm -f "$ac_file"
2920 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2921 case "$ac_file" in
2922 *Makefile*) ac_comsub="1i\\
2923 # $configure_input" ;;
2924 *) ac_comsub= ;;
2925 esac
2926
2927 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2928 sed -e "$ac_comsub
2929 s%@configure_input@%$configure_input%g
2930 s%@srcdir@%$srcdir%g
2931 s%@top_srcdir@%$top_srcdir%g
2932 s%@INSTALL@%$INSTALL%g
2933 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2934 fi; done
2935 rm -f conftest.s*
2936
2937 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2938 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2939 #
2940 # ac_d sets the value in "#define NAME VALUE" lines.
2941 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2942 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2943 ac_dC='\3'
2944 ac_dD='%g'
2945 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2946 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2947 ac_uB='\([ ]\)%\1#\2define\3'
2948 ac_uC=' '
2949 ac_uD='\4%g'
2950 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2951 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2952 ac_eB='$%\1#\2define\3'
2953 ac_eC=' '
2954 ac_eD='%g'
2955
2956 if test "${CONFIG_HEADERS+set}" != set; then
2957 EOF
2958 cat >> $CONFIG_STATUS <<EOF
2959 CONFIG_HEADERS="include/config.h"
2960 EOF
2961 cat >> $CONFIG_STATUS <<\EOF
2962 fi
2963 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2964 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2965 case "$ac_file" in
2966 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2967 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2968 *) ac_file_in="${ac_file}.in" ;;
2969 esac
2970
2971 echo creating $ac_file
2972
2973 rm -f conftest.frag conftest.in conftest.out
2974 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2975 cat $ac_file_inputs > conftest.in
2976
2977 EOF
2978
2979 # Transform confdefs.h into a sed script conftest.vals that substitutes
2980 # the proper values into config.h.in to produce config.h. And first:
2981 # Protect against being on the right side of a sed subst in config.status.
2982 # Protect against being in an unquoted here document in config.status.
2983 rm -f conftest.vals
2984 cat > conftest.hdr <<\EOF
2985 s/[\\&%]/\\&/g
2986 s%[\\$`]%\\&%g
2987 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2988 s%ac_d%ac_u%gp
2989 s%ac_u%ac_e%gp
2990 EOF
2991 sed -n -f conftest.hdr confdefs.h > conftest.vals
2992 rm -f conftest.hdr
2993
2994 # This sed command replaces #undef with comments. This is necessary, for
2995 # example, in the case of _POSIX_SOURCE, which is predefined and required
2996 # on some systems where configure will not decide to define it.
2997 cat >> conftest.vals <<\EOF
2998 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2999 EOF
3000
3001 # Break up conftest.vals because some shells have a limit on
3002 # the size of here documents, and old seds have small limits too.
3003
3004 rm -f conftest.tail
3005 while :
3006 do
3007 ac_lines=`grep -c . conftest.vals`
3008 # grep -c gives empty output for an empty file on some AIX systems.
3009 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3010 # Write a limited-size here document to conftest.frag.
3011 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3012 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3013 echo 'CEOF
3014 sed -f conftest.frag conftest.in > conftest.out
3015 rm -f conftest.in
3016 mv conftest.out conftest.in
3017 ' >> $CONFIG_STATUS
3018 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3019 rm -f conftest.vals
3020 mv conftest.tail conftest.vals
3021 done
3022 rm -f conftest.vals
3023
3024 cat >> $CONFIG_STATUS <<\EOF
3025 rm -f conftest.frag conftest.h
3026 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3027 cat conftest.in >> conftest.h
3028 rm -f conftest.in
3029 if cmp -s $ac_file conftest.h 2>/dev/null; then
3030 echo "$ac_file is unchanged"
3031 rm -f conftest.h
3032 else
3033 # Remove last slash and all that follows it. Not all systems have dirname.
3034 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3035 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3036 # The file is in a subdirectory.
3037 test ! -d "$ac_dir" && mkdir "$ac_dir"
3038 fi
3039 rm -f $ac_file
3040 mv conftest.h $ac_file
3041 fi
3042 fi; done
3043
3044 EOF
3045
3046 cat >> $CONFIG_STATUS <<EOF
3047 ac_sources="rplayd/audio/audio_${RPLAY_TARGET}.c rplayd/audio/audio_${RPLAY_TARGET}.h"
3048 ac_dests="rplayd/audio.c rplayd/audio.h"
3049 EOF
3050
3051 cat >> $CONFIG_STATUS <<\EOF
3052 srcdir=$ac_given_srcdir
3053 while test -n "$ac_sources"; do
3054 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
3055 set $ac_sources; ac_source=$1; shift; ac_sources=$*
3056
3057 echo "linking $srcdir/$ac_source to $ac_dest"
3058
3059 if test ! -r $srcdir/$ac_source; then
3060 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
3061 fi
3062 rm -f $ac_dest
3063
3064 # Make relative symlinks.
3065 # Remove last slash and all that follows it. Not all systems have dirname.
3066 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
3067 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
3068 # The dest file is in a subdirectory.
3069 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
3070 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
3071 # A "../" for each directory in $ac_dest_dir_suffix.
3072 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
3073 else
3074 ac_dest_dir_suffix= ac_dots=
3075 fi
3076
3077 case "$srcdir" in
3078 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
3079 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
3080 esac
3081
3082 # Make a symlink if possible; otherwise try a hard link.
3083 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
3084 ln $srcdir/$ac_source $ac_dest; then :
3085 else
3086 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
3087 fi
3088 done
3089 EOF
3090 cat >> $CONFIG_STATUS <<EOF
3091
3092 EOF
3093 cat >> $CONFIG_STATUS <<\EOF
3094
3095 exit 0
3096 EOF
3097 chmod +x $CONFIG_STATUS
3098 rm -fr confdefs* $ac_clean_files
3099 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3100
3101 if test "$no_recursion" != yes; then
3102
3103 # Remove --cache-file and --srcdir arguments so they do not pile up.
3104 ac_sub_configure_args=
3105 ac_prev=
3106 for ac_arg in $ac_configure_args; do
3107 if test -n "$ac_prev"; then
3108 ac_prev=
3109 continue
3110 fi
3111 case "$ac_arg" in
3112 -cache-file | --cache-file | --cache-fil | --cache-fi \
3113 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3114 ac_prev=cache_file ;;
3115 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3116 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3117 ;;
3118 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3119 ac_prev=srcdir ;;
3120 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3121 ;;
3122 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3123 esac
3124 done
3125
3126 for ac_config_dir in rx; do
3127
3128 # Do not complain, so a configure script can configure whichever
3129 # parts of a large source tree are present.
3130 if test ! -d $srcdir/$ac_config_dir; then
3131 continue
3132 fi
3133
3134 echo configuring in $ac_config_dir
3135
3136 case "$srcdir" in
3137 .) ;;
3138 *)
3139 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3140 else
3141 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3142 fi
3143 ;;
3144 esac
3145
3146 ac_popdir=`pwd`
3147 cd $ac_config_dir
3148
3149 # A "../" for each directory in /$ac_config_dir.
3150 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3151
3152 case "$srcdir" in
3153 .) # No --srcdir option. We are building in place.
3154 ac_sub_srcdir=$srcdir ;;
3155 /*) # Absolute path.
3156 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3157 *) # Relative path.
3158 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3159 esac
3160
3161 # Check for guested configure; otherwise get Cygnus style configure.
3162 if test -f $ac_sub_srcdir/configure; then
3163 ac_sub_configure=$ac_sub_srcdir/configure
3164 elif test -f $ac_sub_srcdir/configure.in; then
3165 ac_sub_configure=$ac_configure
3166 else
3167 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3168 ac_sub_configure=
3169 fi
3170
3171 # The recursion is here.
3172 if test -n "$ac_sub_configure"; then
3173
3174 # Make the cache file name correct relative to the subdirectory.
3175 case "$cache_file" in
3176 /*) ac_sub_cache_file=$cache_file ;;
3177 *) # Relative path.
3178 ac_sub_cache_file="$ac_dots$cache_file" ;;
3179 esac
3180 case "$ac_given_INSTALL" in
3181 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3182 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3183 esac
3184
3185 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3186 # The eval makes quoting arguments work.
3187 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3188 then :
3189 else
3190 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3191 fi
3192 fi
3193
3194 cd $ac_popdir
3195 done
3196 fi
3197