wmappkill: Add version 0.2 to repository.
[dockapps.git] / wmmp3 / configure
blob0675bd04f5994602a1ce10b54a43e52cad8936d7
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --with-x use the X Window System"
17 # Initialize some variables set by options.
18 # The variables have the same names as the options, with
19 # dashes changed to underlines.
20 build=NONE
21 cache_file=./config.cache
22 exec_prefix=NONE
23 host=NONE
24 no_create=
25 nonopt=NONE
26 no_recursion=
27 prefix=NONE
28 program_prefix=NONE
29 program_suffix=NONE
30 program_transform_name=s,x,x,
31 silent=
32 site=
33 srcdir=
34 target=NONE
35 verbose=
36 x_includes=NONE
37 x_libraries=NONE
38 bindir='${exec_prefix}/bin'
39 sbindir='${exec_prefix}/sbin'
40 libexecdir='${exec_prefix}/libexec'
41 datadir='${prefix}/share'
42 sysconfdir='${prefix}/etc'
43 sharedstatedir='${prefix}/com'
44 localstatedir='${prefix}/var'
45 libdir='${exec_prefix}/lib'
46 includedir='${prefix}/include'
47 oldincludedir='/usr/include'
48 infodir='${prefix}/info'
49 mandir='${prefix}/man'
51 # Initialize some other variables.
52 subdirs=
53 MFLAGS= MAKEFLAGS=
54 SHELL=${CONFIG_SHELL-/bin/sh}
55 # Maximum number of lines to put in a shell here document.
56 ac_max_here_lines=12
58 ac_prev=
59 for ac_option
62 # If the previous option needs an argument, assign it.
63 if test -n "$ac_prev"; then
64 eval "$ac_prev=\$ac_option"
65 ac_prev=
66 continue
69 case "$ac_option" in
70 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
71 *) ac_optarg= ;;
72 esac
74 # Accept the important Cygnus configure options, so we can diagnose typos.
76 case "$ac_option" in
78 -bindir | --bindir | --bindi | --bind | --bin | --bi)
79 ac_prev=bindir ;;
80 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
81 bindir="$ac_optarg" ;;
83 -build | --build | --buil | --bui | --bu)
84 ac_prev=build ;;
85 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
86 build="$ac_optarg" ;;
88 -cache-file | --cache-file | --cache-fil | --cache-fi \
89 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
90 ac_prev=cache_file ;;
91 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
92 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
93 cache_file="$ac_optarg" ;;
95 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
96 ac_prev=datadir ;;
97 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
98 | --da=*)
99 datadir="$ac_optarg" ;;
101 -disable-* | --disable-*)
102 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
103 # Reject names that are not valid shell variable names.
104 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
105 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
107 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
108 eval "enable_${ac_feature}=no" ;;
110 -enable-* | --enable-*)
111 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
112 # Reject names that are not valid shell variable names.
113 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
114 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
116 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
117 case "$ac_option" in
118 *=*) ;;
119 *) ac_optarg=yes ;;
120 esac
121 eval "enable_${ac_feature}='$ac_optarg'" ;;
123 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
124 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
125 | --exec | --exe | --ex)
126 ac_prev=exec_prefix ;;
127 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
128 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
129 | --exec=* | --exe=* | --ex=*)
130 exec_prefix="$ac_optarg" ;;
132 -gas | --gas | --ga | --g)
133 # Obsolete; use --with-gas.
134 with_gas=yes ;;
136 -help | --help | --hel | --he)
137 # Omit some internal or obsolete options to make the list less imposing.
138 # This message is too long to be a string in the A/UX 3.1 sh.
139 cat << EOF
140 Usage: configure [options] [host]
141 Options: [defaults in brackets after descriptions]
142 Configuration:
143 --cache-file=FILE cache test results in FILE
144 --help print this message
145 --no-create do not create output files
146 --quiet, --silent do not print \`checking...' messages
147 --version print the version of autoconf that created configure
148 Directory and file names:
149 --prefix=PREFIX install architecture-independent files in PREFIX
150 [$ac_default_prefix]
151 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
152 [same as prefix]
153 --bindir=DIR user executables in DIR [EPREFIX/bin]
154 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
155 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
156 --datadir=DIR read-only architecture-independent data in DIR
157 [PREFIX/share]
158 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
159 --sharedstatedir=DIR modifiable architecture-independent data in DIR
160 [PREFIX/com]
161 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
162 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
163 --includedir=DIR C header files in DIR [PREFIX/include]
164 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
165 --infodir=DIR info documentation in DIR [PREFIX/info]
166 --mandir=DIR man documentation in DIR [PREFIX/man]
167 --srcdir=DIR find the sources in DIR [configure dir or ..]
168 --program-prefix=PREFIX prepend PREFIX to installed program names
169 --program-suffix=SUFFIX append SUFFIX to installed program names
170 --program-transform-name=PROGRAM
171 run sed PROGRAM on installed program names
173 cat << EOF
174 Host type:
175 --build=BUILD configure for building on BUILD [BUILD=HOST]
176 --host=HOST configure for HOST [guessed]
177 --target=TARGET configure for TARGET [TARGET=HOST]
178 Features and packages:
179 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
180 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
181 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
182 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
183 --x-includes=DIR X include files are in DIR
184 --x-libraries=DIR X library files are in DIR
186 if test -n "$ac_help"; then
187 echo "--enable and --with options recognized:$ac_help"
189 exit 0 ;;
191 -host | --host | --hos | --ho)
192 ac_prev=host ;;
193 -host=* | --host=* | --hos=* | --ho=*)
194 host="$ac_optarg" ;;
196 -includedir | --includedir | --includedi | --included | --include \
197 | --includ | --inclu | --incl | --inc)
198 ac_prev=includedir ;;
199 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
200 | --includ=* | --inclu=* | --incl=* | --inc=*)
201 includedir="$ac_optarg" ;;
203 -infodir | --infodir | --infodi | --infod | --info | --inf)
204 ac_prev=infodir ;;
205 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
206 infodir="$ac_optarg" ;;
208 -libdir | --libdir | --libdi | --libd)
209 ac_prev=libdir ;;
210 -libdir=* | --libdir=* | --libdi=* | --libd=*)
211 libdir="$ac_optarg" ;;
213 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
214 | --libexe | --libex | --libe)
215 ac_prev=libexecdir ;;
216 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
217 | --libexe=* | --libex=* | --libe=*)
218 libexecdir="$ac_optarg" ;;
220 -localstatedir | --localstatedir | --localstatedi | --localstated \
221 | --localstate | --localstat | --localsta | --localst \
222 | --locals | --local | --loca | --loc | --lo)
223 ac_prev=localstatedir ;;
224 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
225 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
226 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
227 localstatedir="$ac_optarg" ;;
229 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
230 ac_prev=mandir ;;
231 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
232 mandir="$ac_optarg" ;;
234 -nfp | --nfp | --nf)
235 # Obsolete; use --without-fp.
236 with_fp=no ;;
238 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
239 | --no-cr | --no-c)
240 no_create=yes ;;
242 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
243 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
244 no_recursion=yes ;;
246 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
247 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
248 | --oldin | --oldi | --old | --ol | --o)
249 ac_prev=oldincludedir ;;
250 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
251 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
252 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
253 oldincludedir="$ac_optarg" ;;
255 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
256 ac_prev=prefix ;;
257 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
258 prefix="$ac_optarg" ;;
260 -program-prefix | --program-prefix | --program-prefi | --program-pref \
261 | --program-pre | --program-pr | --program-p)
262 ac_prev=program_prefix ;;
263 -program-prefix=* | --program-prefix=* | --program-prefi=* \
264 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
265 program_prefix="$ac_optarg" ;;
267 -program-suffix | --program-suffix | --program-suffi | --program-suff \
268 | --program-suf | --program-su | --program-s)
269 ac_prev=program_suffix ;;
270 -program-suffix=* | --program-suffix=* | --program-suffi=* \
271 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
272 program_suffix="$ac_optarg" ;;
274 -program-transform-name | --program-transform-name \
275 | --program-transform-nam | --program-transform-na \
276 | --program-transform-n | --program-transform- \
277 | --program-transform | --program-transfor \
278 | --program-transfo | --program-transf \
279 | --program-trans | --program-tran \
280 | --progr-tra | --program-tr | --program-t)
281 ac_prev=program_transform_name ;;
282 -program-transform-name=* | --program-transform-name=* \
283 | --program-transform-nam=* | --program-transform-na=* \
284 | --program-transform-n=* | --program-transform-=* \
285 | --program-transform=* | --program-transfor=* \
286 | --program-transfo=* | --program-transf=* \
287 | --program-trans=* | --program-tran=* \
288 | --progr-tra=* | --program-tr=* | --program-t=*)
289 program_transform_name="$ac_optarg" ;;
291 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
292 | -silent | --silent | --silen | --sile | --sil)
293 silent=yes ;;
295 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
296 ac_prev=sbindir ;;
297 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
298 | --sbi=* | --sb=*)
299 sbindir="$ac_optarg" ;;
301 -sharedstatedir | --sharedstatedir | --sharedstatedi \
302 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
303 | --sharedst | --shareds | --shared | --share | --shar \
304 | --sha | --sh)
305 ac_prev=sharedstatedir ;;
306 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
307 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
308 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
309 | --sha=* | --sh=*)
310 sharedstatedir="$ac_optarg" ;;
312 -site | --site | --sit)
313 ac_prev=site ;;
314 -site=* | --site=* | --sit=*)
315 site="$ac_optarg" ;;
317 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
318 ac_prev=srcdir ;;
319 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
320 srcdir="$ac_optarg" ;;
322 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
323 | --syscon | --sysco | --sysc | --sys | --sy)
324 ac_prev=sysconfdir ;;
325 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
326 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
327 sysconfdir="$ac_optarg" ;;
329 -target | --target | --targe | --targ | --tar | --ta | --t)
330 ac_prev=target ;;
331 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
332 target="$ac_optarg" ;;
334 -v | -verbose | --verbose | --verbos | --verbo | --verb)
335 verbose=yes ;;
337 -version | --version | --versio | --versi | --vers)
338 echo "configure generated by autoconf version 2.13"
339 exit 0 ;;
341 -with-* | --with-*)
342 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
343 # Reject names that are not valid shell variable names.
344 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
345 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
347 ac_package=`echo $ac_package| sed 's/-/_/g'`
348 case "$ac_option" in
349 *=*) ;;
350 *) ac_optarg=yes ;;
351 esac
352 eval "with_${ac_package}='$ac_optarg'" ;;
354 -without-* | --without-*)
355 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
356 # Reject names that are not valid shell variable names.
357 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
358 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
360 ac_package=`echo $ac_package| sed 's/-/_/g'`
361 eval "with_${ac_package}=no" ;;
363 --x)
364 # Obsolete; use --with-x.
365 with_x=yes ;;
367 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
368 | --x-incl | --x-inc | --x-in | --x-i)
369 ac_prev=x_includes ;;
370 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
371 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
372 x_includes="$ac_optarg" ;;
374 -x-libraries | --x-libraries | --x-librarie | --x-librari \
375 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
376 ac_prev=x_libraries ;;
377 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
378 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
379 x_libraries="$ac_optarg" ;;
381 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
385 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
386 echo "configure: warning: $ac_option: invalid host type" 1>&2
388 if test "x$nonopt" != xNONE; then
389 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
391 nonopt="$ac_option"
394 esac
395 done
397 if test -n "$ac_prev"; then
398 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
401 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
403 # File descriptor usage:
404 # 0 standard input
405 # 1 file creation
406 # 2 errors and warnings
407 # 3 some systems may open it to /dev/tty
408 # 4 used on the Kubota Titan
409 # 6 checking for... messages and results
410 # 5 compiler messages saved in config.log
411 if test "$silent" = yes; then
412 exec 6>/dev/null
413 else
414 exec 6>&1
416 exec 5>./config.log
418 echo "\
419 This file contains any messages produced by compilers while
420 running configure, to aid debugging if configure makes a mistake.
421 " 1>&5
423 # Strip out --no-create and --no-recursion so they do not pile up.
424 # Also quote any args containing shell metacharacters.
425 ac_configure_args=
426 for ac_arg
428 case "$ac_arg" in
429 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
430 | --no-cr | --no-c) ;;
431 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
432 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
433 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
434 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
435 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
436 esac
437 done
439 # NLS nuisances.
440 # Only set these to C if already set. These must not be set unconditionally
441 # because not all systems understand e.g. LANG=C (notably SCO).
442 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
443 # Non-C LC_CTYPE values break the ctype check.
444 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
445 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
446 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
447 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
449 # confdefs.h avoids OS command line length limits that DEFS can exceed.
450 rm -rf conftest* confdefs.h
451 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
452 echo > confdefs.h
454 # A filename unique to this package, relative to the directory that
455 # configure is in, which we can look for to find out if srcdir is correct.
456 ac_unique_file=main.c
458 # Find the source files, if location was not specified.
459 if test -z "$srcdir"; then
460 ac_srcdir_defaulted=yes
461 # Try the directory containing this script, then its parent.
462 ac_prog=$0
463 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
464 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
465 srcdir=$ac_confdir
466 if test ! -r $srcdir/$ac_unique_file; then
467 srcdir=..
469 else
470 ac_srcdir_defaulted=no
472 if test ! -r $srcdir/$ac_unique_file; then
473 if test "$ac_srcdir_defaulted" = yes; then
474 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
475 else
476 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
479 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
481 # Prefer explicitly selected file to automatically selected ones.
482 if test -z "$CONFIG_SITE"; then
483 if test "x$prefix" != xNONE; then
484 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
485 else
486 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
489 for ac_site_file in $CONFIG_SITE; do
490 if test -r "$ac_site_file"; then
491 echo "loading site script $ac_site_file"
492 . "$ac_site_file"
494 done
496 if test -r "$cache_file"; then
497 echo "loading cache $cache_file"
498 . $cache_file
499 else
500 echo "creating cache $cache_file"
501 > $cache_file
504 ac_ext=c
505 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
506 ac_cpp='$CPP $CPPFLAGS'
507 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
508 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
509 cross_compiling=$ac_cv_prog_cc_cross
511 ac_exeext=
512 ac_objext=o
513 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
514 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
515 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
516 ac_n= ac_c='
517 ' ac_t=' '
518 else
519 ac_n=-n ac_c= ac_t=
521 else
522 ac_n= ac_c='\c' ac_t=
526 ac_aux_dir=
527 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
528 if test -f $ac_dir/install-sh; then
529 ac_aux_dir=$ac_dir
530 ac_install_sh="$ac_aux_dir/install-sh -c"
531 break
532 elif test -f $ac_dir/install.sh; then
533 ac_aux_dir=$ac_dir
534 ac_install_sh="$ac_aux_dir/install.sh -c"
535 break
537 done
538 if test -z "$ac_aux_dir"; then
539 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
541 ac_config_guess=$ac_aux_dir/config.guess
542 ac_config_sub=$ac_aux_dir/config.sub
543 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
545 # Find a good install program. We prefer a C program (faster),
546 # so one script is as good as another. But avoid the broken or
547 # incompatible versions:
548 # SysV /etc/install, /usr/sbin/install
549 # SunOS /usr/etc/install
550 # IRIX /sbin/install
551 # AIX /bin/install
552 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
553 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
554 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
555 # ./install, which can be erroneously created by make from ./install.sh.
556 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
557 echo "configure:558: checking for a BSD compatible install" >&5
558 if test -z "$INSTALL"; then
559 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
560 echo $ac_n "(cached) $ac_c" 1>&6
561 else
562 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
563 for ac_dir in $PATH; do
564 # Account for people who put trailing slashes in PATH elements.
565 case "$ac_dir/" in
566 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
568 # OSF1 and SCO ODT 3.0 have their own names for install.
569 # Don't use installbsd from OSF since it installs stuff as root
570 # by default.
571 for ac_prog in ginstall scoinst install; do
572 if test -f $ac_dir/$ac_prog; then
573 if test $ac_prog = install &&
574 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
575 # AIX install. It has an incompatible calling convention.
577 else
578 ac_cv_path_install="$ac_dir/$ac_prog -c"
579 break 2
582 done
584 esac
585 done
586 IFS="$ac_save_IFS"
589 if test "${ac_cv_path_install+set}" = set; then
590 INSTALL="$ac_cv_path_install"
591 else
592 # As a last resort, use the slow shell script. We don't cache a
593 # path for INSTALL within a source directory, because that will
594 # break other packages using the cache if that directory is
595 # removed, or if the path is relative.
596 INSTALL="$ac_install_sh"
599 echo "$ac_t""$INSTALL" 1>&6
601 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
602 # It thinks the first close brace ends the variable substitution.
603 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
605 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
607 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
609 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
610 echo "configure:611: checking whether build environment is sane" >&5
611 # Just in case
612 sleep 1
613 echo timestamp > conftestfile
614 # Do `set' in a subshell so we don't clobber the current shell's
615 # arguments. Must try -L first in case configure is actually a
616 # symlink; some systems play weird games with the mod time of symlinks
617 # (eg FreeBSD returns the mod time of the symlink's containing
618 # directory).
619 if (
620 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
621 if test "$*" = "X"; then
622 # -L didn't work.
623 set X `ls -t $srcdir/configure conftestfile`
625 if test "$*" != "X $srcdir/configure conftestfile" \
626 && test "$*" != "X conftestfile $srcdir/configure"; then
628 # If neither matched, then we have a broken ls. This can happen
629 # if, for instance, CONFIG_SHELL is bash and it inherits a
630 # broken ls alias from the environment. This has actually
631 # happened. Such a system could not be considered "sane".
632 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
633 alias in your environment" 1>&2; exit 1; }
636 test "$2" = conftestfile
638 then
639 # Ok.
641 else
642 { echo "configure: error: newly created file is older than distributed files!
643 Check your system clock" 1>&2; exit 1; }
645 rm -f conftest*
646 echo "$ac_t""yes" 1>&6
647 if test "$program_transform_name" = s,x,x,; then
648 program_transform_name=
649 else
650 # Double any \ or $. echo might interpret backslashes.
651 cat <<\EOF_SED > conftestsed
652 s,\\,\\\\,g; s,\$,$$,g
653 EOF_SED
654 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
655 rm -f conftestsed
657 test "$program_prefix" != NONE &&
658 program_transform_name="s,^,${program_prefix},; $program_transform_name"
659 # Use a double $ so make ignores it.
660 test "$program_suffix" != NONE &&
661 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
663 # sed with no file args requires a program.
664 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
666 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
667 echo "configure:668: checking whether ${MAKE-make} sets \${MAKE}" >&5
668 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
669 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
670 echo $ac_n "(cached) $ac_c" 1>&6
671 else
672 cat > conftestmake <<\EOF
673 all:
674 @echo 'ac_maketemp="${MAKE}"'
676 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
677 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
678 if test -n "$ac_maketemp"; then
679 eval ac_cv_prog_make_${ac_make}_set=yes
680 else
681 eval ac_cv_prog_make_${ac_make}_set=no
683 rm -f conftestmake
685 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
686 echo "$ac_t""yes" 1>&6
687 SET_MAKE=
688 else
689 echo "$ac_t""no" 1>&6
690 SET_MAKE="MAKE=${MAKE-make}"
694 PACKAGE=wmmp3
696 VERSION=0.12
698 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
699 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
701 cat >> confdefs.h <<EOF
702 #define PACKAGE "$PACKAGE"
705 cat >> confdefs.h <<EOF
706 #define VERSION "$VERSION"
711 missing_dir=`cd $ac_aux_dir && pwd`
712 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
713 echo "configure:714: checking for working aclocal" >&5
714 # Run test in a subshell; some versions of sh will print an error if
715 # an executable is not found, even if stderr is redirected.
716 # Redirect stdin to placate older versions of autoconf. Sigh.
717 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
718 ACLOCAL=aclocal
719 echo "$ac_t""found" 1>&6
720 else
721 ACLOCAL="$missing_dir/missing aclocal"
722 echo "$ac_t""missing" 1>&6
725 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
726 echo "configure:727: checking for working autoconf" >&5
727 # Run test in a subshell; some versions of sh will print an error if
728 # an executable is not found, even if stderr is redirected.
729 # Redirect stdin to placate older versions of autoconf. Sigh.
730 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
731 AUTOCONF=autoconf
732 echo "$ac_t""found" 1>&6
733 else
734 AUTOCONF="$missing_dir/missing autoconf"
735 echo "$ac_t""missing" 1>&6
738 echo $ac_n "checking for working automake""... $ac_c" 1>&6
739 echo "configure:740: checking for working automake" >&5
740 # Run test in a subshell; some versions of sh will print an error if
741 # an executable is not found, even if stderr is redirected.
742 # Redirect stdin to placate older versions of autoconf. Sigh.
743 if (automake --version) < /dev/null > /dev/null 2>&1; then
744 AUTOMAKE=automake
745 echo "$ac_t""found" 1>&6
746 else
747 AUTOMAKE="$missing_dir/missing automake"
748 echo "$ac_t""missing" 1>&6
751 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
752 echo "configure:753: checking for working autoheader" >&5
753 # Run test in a subshell; some versions of sh will print an error if
754 # an executable is not found, even if stderr is redirected.
755 # Redirect stdin to placate older versions of autoconf. Sigh.
756 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
757 AUTOHEADER=autoheader
758 echo "$ac_t""found" 1>&6
759 else
760 AUTOHEADER="$missing_dir/missing autoheader"
761 echo "$ac_t""missing" 1>&6
764 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
765 echo "configure:766: checking for working makeinfo" >&5
766 # Run test in a subshell; some versions of sh will print an error if
767 # an executable is not found, even if stderr is redirected.
768 # Redirect stdin to placate older versions of autoconf. Sigh.
769 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
770 MAKEINFO=makeinfo
771 echo "$ac_t""found" 1>&6
772 else
773 MAKEINFO="$missing_dir/missing makeinfo"
774 echo "$ac_t""missing" 1>&6
778 # Extract the first word of "gcc", so it can be a program name with args.
779 set dummy gcc; ac_word=$2
780 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
781 echo "configure:782: checking for $ac_word" >&5
782 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
783 echo $ac_n "(cached) $ac_c" 1>&6
784 else
785 if test -n "$CC"; then
786 ac_cv_prog_CC="$CC" # Let the user override the test.
787 else
788 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
789 ac_dummy="$PATH"
790 for ac_dir in $ac_dummy; do
791 test -z "$ac_dir" && ac_dir=.
792 if test -f $ac_dir/$ac_word; then
793 ac_cv_prog_CC="gcc"
794 break
796 done
797 IFS="$ac_save_ifs"
800 CC="$ac_cv_prog_CC"
801 if test -n "$CC"; then
802 echo "$ac_t""$CC" 1>&6
803 else
804 echo "$ac_t""no" 1>&6
807 if test -z "$CC"; then
808 # Extract the first word of "cc", so it can be a program name with args.
809 set dummy cc; ac_word=$2
810 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
811 echo "configure:812: checking for $ac_word" >&5
812 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
813 echo $ac_n "(cached) $ac_c" 1>&6
814 else
815 if test -n "$CC"; then
816 ac_cv_prog_CC="$CC" # Let the user override the test.
817 else
818 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
819 ac_prog_rejected=no
820 ac_dummy="$PATH"
821 for ac_dir in $ac_dummy; do
822 test -z "$ac_dir" && ac_dir=.
823 if test -f $ac_dir/$ac_word; then
824 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
825 ac_prog_rejected=yes
826 continue
828 ac_cv_prog_CC="cc"
829 break
831 done
832 IFS="$ac_save_ifs"
833 if test $ac_prog_rejected = yes; then
834 # We found a bogon in the path, so make sure we never use it.
835 set dummy $ac_cv_prog_CC
836 shift
837 if test $# -gt 0; then
838 # We chose a different compiler from the bogus one.
839 # However, it has the same basename, so the bogon will be chosen
840 # first if we set CC to just the basename; use the full file name.
841 shift
842 set dummy "$ac_dir/$ac_word" "$@"
843 shift
844 ac_cv_prog_CC="$@"
849 CC="$ac_cv_prog_CC"
850 if test -n "$CC"; then
851 echo "$ac_t""$CC" 1>&6
852 else
853 echo "$ac_t""no" 1>&6
856 if test -z "$CC"; then
857 case "`uname -s`" in
858 *win32* | *WIN32*)
859 # Extract the first word of "cl", so it can be a program name with args.
860 set dummy cl; ac_word=$2
861 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
862 echo "configure:863: checking for $ac_word" >&5
863 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
864 echo $ac_n "(cached) $ac_c" 1>&6
865 else
866 if test -n "$CC"; then
867 ac_cv_prog_CC="$CC" # Let the user override the test.
868 else
869 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
870 ac_dummy="$PATH"
871 for ac_dir in $ac_dummy; do
872 test -z "$ac_dir" && ac_dir=.
873 if test -f $ac_dir/$ac_word; then
874 ac_cv_prog_CC="cl"
875 break
877 done
878 IFS="$ac_save_ifs"
881 CC="$ac_cv_prog_CC"
882 if test -n "$CC"; then
883 echo "$ac_t""$CC" 1>&6
884 else
885 echo "$ac_t""no" 1>&6
888 esac
890 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
893 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
894 echo "configure:895: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
896 ac_ext=c
897 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
898 ac_cpp='$CPP $CPPFLAGS'
899 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
900 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
901 cross_compiling=$ac_cv_prog_cc_cross
903 cat > conftest.$ac_ext << EOF
905 #line 906 "configure"
906 #include "confdefs.h"
908 main(){return(0);}
910 if { (eval echo configure:911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
911 ac_cv_prog_cc_works=yes
912 # If we can't run a trivial program, we are probably using a cross compiler.
913 if (./conftest; exit) 2>/dev/null; then
914 ac_cv_prog_cc_cross=no
915 else
916 ac_cv_prog_cc_cross=yes
918 else
919 echo "configure: failed program was:" >&5
920 cat conftest.$ac_ext >&5
921 ac_cv_prog_cc_works=no
923 rm -fr conftest*
924 ac_ext=c
925 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
926 ac_cpp='$CPP $CPPFLAGS'
927 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
928 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
929 cross_compiling=$ac_cv_prog_cc_cross
931 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
932 if test $ac_cv_prog_cc_works = no; then
933 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
935 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
936 echo "configure:937: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
937 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
938 cross_compiling=$ac_cv_prog_cc_cross
940 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
941 echo "configure:942: checking whether we are using GNU C" >&5
942 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
943 echo $ac_n "(cached) $ac_c" 1>&6
944 else
945 cat > conftest.c <<EOF
946 #ifdef __GNUC__
947 yes;
948 #endif
950 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
951 ac_cv_prog_gcc=yes
952 else
953 ac_cv_prog_gcc=no
957 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
959 if test $ac_cv_prog_gcc = yes; then
960 GCC=yes
961 else
962 GCC=
965 ac_test_CFLAGS="${CFLAGS+set}"
966 ac_save_CFLAGS="$CFLAGS"
967 CFLAGS=
968 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
969 echo "configure:970: checking whether ${CC-cc} accepts -g" >&5
970 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
971 echo $ac_n "(cached) $ac_c" 1>&6
972 else
973 echo 'void f(){}' > conftest.c
974 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
975 ac_cv_prog_cc_g=yes
976 else
977 ac_cv_prog_cc_g=no
979 rm -f conftest*
983 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
984 if test "$ac_test_CFLAGS" = set; then
985 CFLAGS="$ac_save_CFLAGS"
986 elif test $ac_cv_prog_cc_g = yes; then
987 if test "$GCC" = yes; then
988 CFLAGS="-g -O2"
989 else
990 CFLAGS="-g"
992 else
993 if test "$GCC" = yes; then
994 CFLAGS="-O2"
995 else
996 CFLAGS=
1000 # Find a good install program. We prefer a C program (faster),
1001 # so one script is as good as another. But avoid the broken or
1002 # incompatible versions:
1003 # SysV /etc/install, /usr/sbin/install
1004 # SunOS /usr/etc/install
1005 # IRIX /sbin/install
1006 # AIX /bin/install
1007 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1008 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1009 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1010 # ./install, which can be erroneously created by make from ./install.sh.
1011 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1012 echo "configure:1013: checking for a BSD compatible install" >&5
1013 if test -z "$INSTALL"; then
1014 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1015 echo $ac_n "(cached) $ac_c" 1>&6
1016 else
1017 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1018 for ac_dir in $PATH; do
1019 # Account for people who put trailing slashes in PATH elements.
1020 case "$ac_dir/" in
1021 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1023 # OSF1 and SCO ODT 3.0 have their own names for install.
1024 # Don't use installbsd from OSF since it installs stuff as root
1025 # by default.
1026 for ac_prog in ginstall scoinst install; do
1027 if test -f $ac_dir/$ac_prog; then
1028 if test $ac_prog = install &&
1029 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1030 # AIX install. It has an incompatible calling convention.
1032 else
1033 ac_cv_path_install="$ac_dir/$ac_prog -c"
1034 break 2
1037 done
1039 esac
1040 done
1041 IFS="$ac_save_IFS"
1044 if test "${ac_cv_path_install+set}" = set; then
1045 INSTALL="$ac_cv_path_install"
1046 else
1047 # As a last resort, use the slow shell script. We don't cache a
1048 # path for INSTALL within a source directory, because that will
1049 # break other packages using the cache if that directory is
1050 # removed, or if the path is relative.
1051 INSTALL="$ac_install_sh"
1054 echo "$ac_t""$INSTALL" 1>&6
1056 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1057 # It thinks the first close brace ends the variable substitution.
1058 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1060 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1062 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1064 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1065 echo "configure:1066: checking how to run the C preprocessor" >&5
1066 # On Suns, sometimes $CPP names a directory.
1067 if test -n "$CPP" && test -d "$CPP"; then
1068 CPP=
1070 if test -z "$CPP"; then
1071 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1072 echo $ac_n "(cached) $ac_c" 1>&6
1073 else
1074 # This must be in double quotes, not single quotes, because CPP may get
1075 # substituted into the Makefile and "${CC-cc}" will confuse make.
1076 CPP="${CC-cc} -E"
1077 # On the NeXT, cc -E runs the code through the compiler's parser,
1078 # not just through cpp.
1079 cat > conftest.$ac_ext <<EOF
1080 #line 1081 "configure"
1081 #include "confdefs.h"
1082 #include <assert.h>
1083 Syntax Error
1085 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1086 { (eval echo configure:1087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1087 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1088 if test -z "$ac_err"; then
1090 else
1091 echo "$ac_err" >&5
1092 echo "configure: failed program was:" >&5
1093 cat conftest.$ac_ext >&5
1094 rm -rf conftest*
1095 CPP="${CC-cc} -E -traditional-cpp"
1096 cat > conftest.$ac_ext <<EOF
1097 #line 1098 "configure"
1098 #include "confdefs.h"
1099 #include <assert.h>
1100 Syntax Error
1102 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1103 { (eval echo configure:1104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1104 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1105 if test -z "$ac_err"; then
1107 else
1108 echo "$ac_err" >&5
1109 echo "configure: failed program was:" >&5
1110 cat conftest.$ac_ext >&5
1111 rm -rf conftest*
1112 CPP="${CC-cc} -nologo -E"
1113 cat > conftest.$ac_ext <<EOF
1114 #line 1115 "configure"
1115 #include "confdefs.h"
1116 #include <assert.h>
1117 Syntax Error
1119 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1120 { (eval echo configure:1121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1121 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1122 if test -z "$ac_err"; then
1124 else
1125 echo "$ac_err" >&5
1126 echo "configure: failed program was:" >&5
1127 cat conftest.$ac_ext >&5
1128 rm -rf conftest*
1129 CPP=/lib/cpp
1131 rm -f conftest*
1133 rm -f conftest*
1135 rm -f conftest*
1136 ac_cv_prog_CPP="$CPP"
1138 CPP="$ac_cv_prog_CPP"
1139 else
1140 ac_cv_prog_CPP="$CPP"
1142 echo "$ac_t""$CPP" 1>&6
1144 # If we find X, set shell vars x_includes and x_libraries to the
1145 # paths, otherwise set no_x=yes.
1146 # Uses ac_ vars as temps to allow command line to override cache and checks.
1147 # --without-x overrides everything else, but does not touch the cache.
1148 echo $ac_n "checking for X""... $ac_c" 1>&6
1149 echo "configure:1150: checking for X" >&5
1151 # Check whether --with-x or --without-x was given.
1152 if test "${with_x+set}" = set; then
1153 withval="$with_x"
1157 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1158 if test "x$with_x" = xno; then
1159 # The user explicitly disabled X.
1160 have_x=disabled
1161 else
1162 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
1163 # Both variables are already set.
1164 have_x=yes
1165 else
1166 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1167 echo $ac_n "(cached) $ac_c" 1>&6
1168 else
1169 # One or both of the vars are not set, and there is no cached value.
1170 ac_x_includes=NO ac_x_libraries=NO
1171 rm -fr conftestdir
1172 if mkdir conftestdir; then
1173 cd conftestdir
1174 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1175 cat > Imakefile <<'EOF'
1176 acfindx:
1177 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1179 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1180 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1181 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1182 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1183 for ac_extension in a so sl; do
1184 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1185 test -f $ac_im_libdir/libX11.$ac_extension; then
1186 ac_im_usrlibdir=$ac_im_libdir; break
1188 done
1189 # Screen out bogus values from the imake configuration. They are
1190 # bogus both because they are the default anyway, and because
1191 # using them would break gcc on systems where it needs fixed includes.
1192 case "$ac_im_incroot" in
1193 /usr/include) ;;
1194 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1195 esac
1196 case "$ac_im_usrlibdir" in
1197 /usr/lib | /lib) ;;
1198 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1199 esac
1201 cd ..
1202 rm -fr conftestdir
1205 if test "$ac_x_includes" = NO; then
1206 # Guess where to find include files, by looking for this one X11 .h file.
1207 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1209 # First, try using that file with no special directory specified.
1210 cat > conftest.$ac_ext <<EOF
1211 #line 1212 "configure"
1212 #include "confdefs.h"
1213 #include <$x_direct_test_include>
1215 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1216 { (eval echo configure:1217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1217 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1218 if test -z "$ac_err"; then
1219 rm -rf conftest*
1220 # We can compile using X headers with no special include directory.
1221 ac_x_includes=
1222 else
1223 echo "$ac_err" >&5
1224 echo "configure: failed program was:" >&5
1225 cat conftest.$ac_ext >&5
1226 rm -rf conftest*
1227 # Look for the header file in a standard set of common directories.
1228 # Check X11 before X11Rn because it is often a symlink to the current release.
1229 for ac_dir in \
1230 /usr/X11/include \
1231 /usr/X11R6/include \
1232 /usr/X11R5/include \
1233 /usr/X11R4/include \
1235 /usr/include/X11 \
1236 /usr/include/X11R6 \
1237 /usr/include/X11R5 \
1238 /usr/include/X11R4 \
1240 /usr/local/X11/include \
1241 /usr/local/X11R6/include \
1242 /usr/local/X11R5/include \
1243 /usr/local/X11R4/include \
1245 /usr/local/include/X11 \
1246 /usr/local/include/X11R6 \
1247 /usr/local/include/X11R5 \
1248 /usr/local/include/X11R4 \
1250 /usr/X386/include \
1251 /usr/x386/include \
1252 /usr/XFree86/include/X11 \
1254 /usr/include \
1255 /usr/local/include \
1256 /usr/unsupported/include \
1257 /usr/athena/include \
1258 /usr/local/x11r5/include \
1259 /usr/lpp/Xamples/include \
1261 /usr/openwin/include \
1262 /usr/openwin/share/include \
1265 if test -r "$ac_dir/$x_direct_test_include"; then
1266 ac_x_includes=$ac_dir
1267 break
1269 done
1271 rm -f conftest*
1272 fi # $ac_x_includes = NO
1274 if test "$ac_x_libraries" = NO; then
1275 # Check for the libraries.
1277 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1278 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1280 # See if we find them without any special options.
1281 # Don't add to $LIBS permanently.
1282 ac_save_LIBS="$LIBS"
1283 LIBS="-l$x_direct_test_library $LIBS"
1284 cat > conftest.$ac_ext <<EOF
1285 #line 1286 "configure"
1286 #include "confdefs.h"
1288 int main() {
1289 ${x_direct_test_function}()
1290 ; return 0; }
1292 if { (eval echo configure:1293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1293 rm -rf conftest*
1294 LIBS="$ac_save_LIBS"
1295 # We can link X programs with no special library path.
1296 ac_x_libraries=
1297 else
1298 echo "configure: failed program was:" >&5
1299 cat conftest.$ac_ext >&5
1300 rm -rf conftest*
1301 LIBS="$ac_save_LIBS"
1302 # First see if replacing the include by lib works.
1303 # Check X11 before X11Rn because it is often a symlink to the current release.
1304 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1305 /usr/X11/lib \
1306 /usr/X11R6/lib \
1307 /usr/X11R5/lib \
1308 /usr/X11R4/lib \
1310 /usr/lib/X11 \
1311 /usr/lib/X11R6 \
1312 /usr/lib/X11R5 \
1313 /usr/lib/X11R4 \
1315 /usr/local/X11/lib \
1316 /usr/local/X11R6/lib \
1317 /usr/local/X11R5/lib \
1318 /usr/local/X11R4/lib \
1320 /usr/local/lib/X11 \
1321 /usr/local/lib/X11R6 \
1322 /usr/local/lib/X11R5 \
1323 /usr/local/lib/X11R4 \
1325 /usr/X386/lib \
1326 /usr/x386/lib \
1327 /usr/XFree86/lib/X11 \
1329 /usr/lib \
1330 /usr/local/lib \
1331 /usr/unsupported/lib \
1332 /usr/athena/lib \
1333 /usr/local/x11r5/lib \
1334 /usr/lpp/Xamples/lib \
1335 /lib/usr/lib/X11 \
1337 /usr/openwin/lib \
1338 /usr/openwin/share/lib \
1341 for ac_extension in a so sl; do
1342 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1343 ac_x_libraries=$ac_dir
1344 break 2
1346 done
1347 done
1349 rm -f conftest*
1350 fi # $ac_x_libraries = NO
1352 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1353 # Didn't find X anywhere. Cache the known absence of X.
1354 ac_cv_have_x="have_x=no"
1355 else
1356 # Record where we found X for the cache.
1357 ac_cv_have_x="have_x=yes \
1358 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1362 eval "$ac_cv_have_x"
1363 fi # $with_x != no
1365 if test "$have_x" != yes; then
1366 echo "$ac_t""$have_x" 1>&6
1367 no_x=yes
1368 else
1369 # If each of the values was on the command line, it overrides each guess.
1370 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1371 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1372 # Update the cache value to reflect the command line values.
1373 ac_cv_have_x="have_x=yes \
1374 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1375 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1378 if test "$no_x" = yes; then
1379 # Not all programs may use this symbol, but it does not hurt to define it.
1380 cat >> confdefs.h <<\EOF
1381 #define X_DISPLAY_MISSING 1
1384 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1385 else
1386 if test -n "$x_includes"; then
1387 X_CFLAGS="$X_CFLAGS -I$x_includes"
1390 # It would also be nice to do this for all -L options, not just this one.
1391 if test -n "$x_libraries"; then
1392 X_LIBS="$X_LIBS -L$x_libraries"
1393 # For Solaris; some versions of Sun CC require a space after -R and
1394 # others require no space. Words are not sufficient . . . .
1395 case "`(uname -sr) 2>/dev/null`" in
1396 "SunOS 5"*)
1397 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1398 echo "configure:1399: checking whether -R must be followed by a space" >&5
1399 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1400 cat > conftest.$ac_ext <<EOF
1401 #line 1402 "configure"
1402 #include "confdefs.h"
1404 int main() {
1406 ; return 0; }
1408 if { (eval echo configure:1409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1409 rm -rf conftest*
1410 ac_R_nospace=yes
1411 else
1412 echo "configure: failed program was:" >&5
1413 cat conftest.$ac_ext >&5
1414 rm -rf conftest*
1415 ac_R_nospace=no
1417 rm -f conftest*
1418 if test $ac_R_nospace = yes; then
1419 echo "$ac_t""no" 1>&6
1420 X_LIBS="$X_LIBS -R$x_libraries"
1421 else
1422 LIBS="$ac_xsave_LIBS -R $x_libraries"
1423 cat > conftest.$ac_ext <<EOF
1424 #line 1425 "configure"
1425 #include "confdefs.h"
1427 int main() {
1429 ; return 0; }
1431 if { (eval echo configure:1432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1432 rm -rf conftest*
1433 ac_R_space=yes
1434 else
1435 echo "configure: failed program was:" >&5
1436 cat conftest.$ac_ext >&5
1437 rm -rf conftest*
1438 ac_R_space=no
1440 rm -f conftest*
1441 if test $ac_R_space = yes; then
1442 echo "$ac_t""yes" 1>&6
1443 X_LIBS="$X_LIBS -R $x_libraries"
1444 else
1445 echo "$ac_t""neither works" 1>&6
1448 LIBS="$ac_xsave_LIBS"
1449 esac
1452 # Check for system-dependent libraries X programs must link with.
1453 # Do this before checking for the system-independent R6 libraries
1454 # (-lICE), since we may need -lsocket or whatever for X linking.
1456 if test "$ISC" = yes; then
1457 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1458 else
1459 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1460 # libraries were built with DECnet support. And karl@cs.umb.edu says
1461 # the Alpha needs dnet_stub (dnet does not exist).
1462 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1463 echo "configure:1464: checking for dnet_ntoa in -ldnet" >&5
1464 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1465 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1466 echo $ac_n "(cached) $ac_c" 1>&6
1467 else
1468 ac_save_LIBS="$LIBS"
1469 LIBS="-ldnet $LIBS"
1470 cat > conftest.$ac_ext <<EOF
1471 #line 1472 "configure"
1472 #include "confdefs.h"
1473 /* Override any gcc2 internal prototype to avoid an error. */
1474 /* We use char because int might match the return type of a gcc2
1475 builtin and then its argument prototype would still apply. */
1476 char dnet_ntoa();
1478 int main() {
1479 dnet_ntoa()
1480 ; return 0; }
1482 if { (eval echo configure:1483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1483 rm -rf conftest*
1484 eval "ac_cv_lib_$ac_lib_var=yes"
1485 else
1486 echo "configure: failed program was:" >&5
1487 cat conftest.$ac_ext >&5
1488 rm -rf conftest*
1489 eval "ac_cv_lib_$ac_lib_var=no"
1491 rm -f conftest*
1492 LIBS="$ac_save_LIBS"
1495 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1496 echo "$ac_t""yes" 1>&6
1497 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1498 else
1499 echo "$ac_t""no" 1>&6
1502 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1503 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1504 echo "configure:1505: checking for dnet_ntoa in -ldnet_stub" >&5
1505 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1506 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1507 echo $ac_n "(cached) $ac_c" 1>&6
1508 else
1509 ac_save_LIBS="$LIBS"
1510 LIBS="-ldnet_stub $LIBS"
1511 cat > conftest.$ac_ext <<EOF
1512 #line 1513 "configure"
1513 #include "confdefs.h"
1514 /* Override any gcc2 internal prototype to avoid an error. */
1515 /* We use char because int might match the return type of a gcc2
1516 builtin and then its argument prototype would still apply. */
1517 char dnet_ntoa();
1519 int main() {
1520 dnet_ntoa()
1521 ; return 0; }
1523 if { (eval echo configure:1524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1524 rm -rf conftest*
1525 eval "ac_cv_lib_$ac_lib_var=yes"
1526 else
1527 echo "configure: failed program was:" >&5
1528 cat conftest.$ac_ext >&5
1529 rm -rf conftest*
1530 eval "ac_cv_lib_$ac_lib_var=no"
1532 rm -f conftest*
1533 LIBS="$ac_save_LIBS"
1536 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1537 echo "$ac_t""yes" 1>&6
1538 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1539 else
1540 echo "$ac_t""no" 1>&6
1545 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1546 # to get the SysV transport functions.
1547 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1548 # needs -lnsl.
1549 # The nsl library prevents programs from opening the X display
1550 # on Irix 5.2, according to dickey@clark.net.
1551 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1552 echo "configure:1553: checking for gethostbyname" >&5
1553 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1554 echo $ac_n "(cached) $ac_c" 1>&6
1555 else
1556 cat > conftest.$ac_ext <<EOF
1557 #line 1558 "configure"
1558 #include "confdefs.h"
1559 /* System header to define __stub macros and hopefully few prototypes,
1560 which can conflict with char gethostbyname(); below. */
1561 #include <assert.h>
1562 /* Override any gcc2 internal prototype to avoid an error. */
1563 /* We use char because int might match the return type of a gcc2
1564 builtin and then its argument prototype would still apply. */
1565 char gethostbyname();
1567 int main() {
1569 /* The GNU C library defines this for functions which it implements
1570 to always fail with ENOSYS. Some functions are actually named
1571 something starting with __ and the normal name is an alias. */
1572 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1573 choke me
1574 #else
1575 gethostbyname();
1576 #endif
1578 ; return 0; }
1580 if { (eval echo configure:1581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1581 rm -rf conftest*
1582 eval "ac_cv_func_gethostbyname=yes"
1583 else
1584 echo "configure: failed program was:" >&5
1585 cat conftest.$ac_ext >&5
1586 rm -rf conftest*
1587 eval "ac_cv_func_gethostbyname=no"
1589 rm -f conftest*
1592 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1593 echo "$ac_t""yes" 1>&6
1595 else
1596 echo "$ac_t""no" 1>&6
1599 if test $ac_cv_func_gethostbyname = no; then
1600 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1601 echo "configure:1602: checking for gethostbyname in -lnsl" >&5
1602 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1603 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1604 echo $ac_n "(cached) $ac_c" 1>&6
1605 else
1606 ac_save_LIBS="$LIBS"
1607 LIBS="-lnsl $LIBS"
1608 cat > conftest.$ac_ext <<EOF
1609 #line 1610 "configure"
1610 #include "confdefs.h"
1611 /* Override any gcc2 internal prototype to avoid an error. */
1612 /* We use char because int might match the return type of a gcc2
1613 builtin and then its argument prototype would still apply. */
1614 char gethostbyname();
1616 int main() {
1617 gethostbyname()
1618 ; return 0; }
1620 if { (eval echo configure:1621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1621 rm -rf conftest*
1622 eval "ac_cv_lib_$ac_lib_var=yes"
1623 else
1624 echo "configure: failed program was:" >&5
1625 cat conftest.$ac_ext >&5
1626 rm -rf conftest*
1627 eval "ac_cv_lib_$ac_lib_var=no"
1629 rm -f conftest*
1630 LIBS="$ac_save_LIBS"
1633 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1634 echo "$ac_t""yes" 1>&6
1635 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1636 else
1637 echo "$ac_t""no" 1>&6
1642 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1643 # socket/setsockopt and other routines are undefined under SCO ODT
1644 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1645 # on later versions), says simon@lia.di.epfl.ch: it contains
1646 # gethostby* variants that don't use the nameserver (or something).
1647 # -lsocket must be given before -lnsl if both are needed.
1648 # We assume that if connect needs -lnsl, so does gethostbyname.
1649 echo $ac_n "checking for connect""... $ac_c" 1>&6
1650 echo "configure:1651: checking for connect" >&5
1651 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1652 echo $ac_n "(cached) $ac_c" 1>&6
1653 else
1654 cat > conftest.$ac_ext <<EOF
1655 #line 1656 "configure"
1656 #include "confdefs.h"
1657 /* System header to define __stub macros and hopefully few prototypes,
1658 which can conflict with char connect(); below. */
1659 #include <assert.h>
1660 /* Override any gcc2 internal prototype to avoid an error. */
1661 /* We use char because int might match the return type of a gcc2
1662 builtin and then its argument prototype would still apply. */
1663 char connect();
1665 int main() {
1667 /* The GNU C library defines this for functions which it implements
1668 to always fail with ENOSYS. Some functions are actually named
1669 something starting with __ and the normal name is an alias. */
1670 #if defined (__stub_connect) || defined (__stub___connect)
1671 choke me
1672 #else
1673 connect();
1674 #endif
1676 ; return 0; }
1678 if { (eval echo configure:1679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1679 rm -rf conftest*
1680 eval "ac_cv_func_connect=yes"
1681 else
1682 echo "configure: failed program was:" >&5
1683 cat conftest.$ac_ext >&5
1684 rm -rf conftest*
1685 eval "ac_cv_func_connect=no"
1687 rm -f conftest*
1690 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1691 echo "$ac_t""yes" 1>&6
1693 else
1694 echo "$ac_t""no" 1>&6
1697 if test $ac_cv_func_connect = no; then
1698 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1699 echo "configure:1700: checking for connect in -lsocket" >&5
1700 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1701 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1702 echo $ac_n "(cached) $ac_c" 1>&6
1703 else
1704 ac_save_LIBS="$LIBS"
1705 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1706 cat > conftest.$ac_ext <<EOF
1707 #line 1708 "configure"
1708 #include "confdefs.h"
1709 /* Override any gcc2 internal prototype to avoid an error. */
1710 /* We use char because int might match the return type of a gcc2
1711 builtin and then its argument prototype would still apply. */
1712 char connect();
1714 int main() {
1715 connect()
1716 ; return 0; }
1718 if { (eval echo configure:1719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1719 rm -rf conftest*
1720 eval "ac_cv_lib_$ac_lib_var=yes"
1721 else
1722 echo "configure: failed program was:" >&5
1723 cat conftest.$ac_ext >&5
1724 rm -rf conftest*
1725 eval "ac_cv_lib_$ac_lib_var=no"
1727 rm -f conftest*
1728 LIBS="$ac_save_LIBS"
1731 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1732 echo "$ac_t""yes" 1>&6
1733 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
1734 else
1735 echo "$ac_t""no" 1>&6
1740 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1741 echo $ac_n "checking for remove""... $ac_c" 1>&6
1742 echo "configure:1743: checking for remove" >&5
1743 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1744 echo $ac_n "(cached) $ac_c" 1>&6
1745 else
1746 cat > conftest.$ac_ext <<EOF
1747 #line 1748 "configure"
1748 #include "confdefs.h"
1749 /* System header to define __stub macros and hopefully few prototypes,
1750 which can conflict with char remove(); below. */
1751 #include <assert.h>
1752 /* Override any gcc2 internal prototype to avoid an error. */
1753 /* We use char because int might match the return type of a gcc2
1754 builtin and then its argument prototype would still apply. */
1755 char remove();
1757 int main() {
1759 /* The GNU C library defines this for functions which it implements
1760 to always fail with ENOSYS. Some functions are actually named
1761 something starting with __ and the normal name is an alias. */
1762 #if defined (__stub_remove) || defined (__stub___remove)
1763 choke me
1764 #else
1765 remove();
1766 #endif
1768 ; return 0; }
1770 if { (eval echo configure:1771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1771 rm -rf conftest*
1772 eval "ac_cv_func_remove=yes"
1773 else
1774 echo "configure: failed program was:" >&5
1775 cat conftest.$ac_ext >&5
1776 rm -rf conftest*
1777 eval "ac_cv_func_remove=no"
1779 rm -f conftest*
1782 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1783 echo "$ac_t""yes" 1>&6
1785 else
1786 echo "$ac_t""no" 1>&6
1789 if test $ac_cv_func_remove = no; then
1790 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1791 echo "configure:1792: checking for remove in -lposix" >&5
1792 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1793 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1794 echo $ac_n "(cached) $ac_c" 1>&6
1795 else
1796 ac_save_LIBS="$LIBS"
1797 LIBS="-lposix $LIBS"
1798 cat > conftest.$ac_ext <<EOF
1799 #line 1800 "configure"
1800 #include "confdefs.h"
1801 /* Override any gcc2 internal prototype to avoid an error. */
1802 /* We use char because int might match the return type of a gcc2
1803 builtin and then its argument prototype would still apply. */
1804 char remove();
1806 int main() {
1807 remove()
1808 ; return 0; }
1810 if { (eval echo configure:1811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1811 rm -rf conftest*
1812 eval "ac_cv_lib_$ac_lib_var=yes"
1813 else
1814 echo "configure: failed program was:" >&5
1815 cat conftest.$ac_ext >&5
1816 rm -rf conftest*
1817 eval "ac_cv_lib_$ac_lib_var=no"
1819 rm -f conftest*
1820 LIBS="$ac_save_LIBS"
1823 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1824 echo "$ac_t""yes" 1>&6
1825 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1826 else
1827 echo "$ac_t""no" 1>&6
1832 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1833 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1834 echo "configure:1835: checking for shmat" >&5
1835 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1836 echo $ac_n "(cached) $ac_c" 1>&6
1837 else
1838 cat > conftest.$ac_ext <<EOF
1839 #line 1840 "configure"
1840 #include "confdefs.h"
1841 /* System header to define __stub macros and hopefully few prototypes,
1842 which can conflict with char shmat(); below. */
1843 #include <assert.h>
1844 /* Override any gcc2 internal prototype to avoid an error. */
1845 /* We use char because int might match the return type of a gcc2
1846 builtin and then its argument prototype would still apply. */
1847 char shmat();
1849 int main() {
1851 /* The GNU C library defines this for functions which it implements
1852 to always fail with ENOSYS. Some functions are actually named
1853 something starting with __ and the normal name is an alias. */
1854 #if defined (__stub_shmat) || defined (__stub___shmat)
1855 choke me
1856 #else
1857 shmat();
1858 #endif
1860 ; return 0; }
1862 if { (eval echo configure:1863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1863 rm -rf conftest*
1864 eval "ac_cv_func_shmat=yes"
1865 else
1866 echo "configure: failed program was:" >&5
1867 cat conftest.$ac_ext >&5
1868 rm -rf conftest*
1869 eval "ac_cv_func_shmat=no"
1871 rm -f conftest*
1874 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1875 echo "$ac_t""yes" 1>&6
1877 else
1878 echo "$ac_t""no" 1>&6
1881 if test $ac_cv_func_shmat = no; then
1882 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1883 echo "configure:1884: checking for shmat in -lipc" >&5
1884 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1885 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1886 echo $ac_n "(cached) $ac_c" 1>&6
1887 else
1888 ac_save_LIBS="$LIBS"
1889 LIBS="-lipc $LIBS"
1890 cat > conftest.$ac_ext <<EOF
1891 #line 1892 "configure"
1892 #include "confdefs.h"
1893 /* Override any gcc2 internal prototype to avoid an error. */
1894 /* We use char because int might match the return type of a gcc2
1895 builtin and then its argument prototype would still apply. */
1896 char shmat();
1898 int main() {
1899 shmat()
1900 ; return 0; }
1902 if { (eval echo configure:1903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1903 rm -rf conftest*
1904 eval "ac_cv_lib_$ac_lib_var=yes"
1905 else
1906 echo "configure: failed program was:" >&5
1907 cat conftest.$ac_ext >&5
1908 rm -rf conftest*
1909 eval "ac_cv_lib_$ac_lib_var=no"
1911 rm -f conftest*
1912 LIBS="$ac_save_LIBS"
1915 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1916 echo "$ac_t""yes" 1>&6
1917 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1918 else
1919 echo "$ac_t""no" 1>&6
1925 # Check for libraries that X11R6 Xt/Xaw programs need.
1926 ac_save_LDFLAGS="$LDFLAGS"
1927 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
1928 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1929 # check for ICE first), but we must link in the order -lSM -lICE or
1930 # we get undefined symbols. So assume we have SM if we have ICE.
1931 # These have to be linked with before -lX11, unlike the other
1932 # libraries we check for below, so use a different variable.
1933 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1934 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1935 echo "configure:1936: checking for IceConnectionNumber in -lICE" >&5
1936 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1937 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1938 echo $ac_n "(cached) $ac_c" 1>&6
1939 else
1940 ac_save_LIBS="$LIBS"
1941 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
1942 cat > conftest.$ac_ext <<EOF
1943 #line 1944 "configure"
1944 #include "confdefs.h"
1945 /* Override any gcc2 internal prototype to avoid an error. */
1946 /* We use char because int might match the return type of a gcc2
1947 builtin and then its argument prototype would still apply. */
1948 char IceConnectionNumber();
1950 int main() {
1951 IceConnectionNumber()
1952 ; return 0; }
1954 if { (eval echo configure:1955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1955 rm -rf conftest*
1956 eval "ac_cv_lib_$ac_lib_var=yes"
1957 else
1958 echo "configure: failed program was:" >&5
1959 cat conftest.$ac_ext >&5
1960 rm -rf conftest*
1961 eval "ac_cv_lib_$ac_lib_var=no"
1963 rm -f conftest*
1964 LIBS="$ac_save_LIBS"
1967 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1968 echo "$ac_t""yes" 1>&6
1969 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1970 else
1971 echo "$ac_t""no" 1>&6
1974 LDFLAGS="$ac_save_LDFLAGS"
1979 if test "$x_includes" != "NONE"; then
1980 CFLAGS="$CFLAGS -I$x_includes"
1983 if test "$x_libraries" != "NONE"; then
1984 LDFLAGS="$LDFLAGS -L$x_libraries"
1987 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
1988 echo "configure:1989: checking for XOpenDisplay in -lX11" >&5
1989 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
1990 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1991 echo $ac_n "(cached) $ac_c" 1>&6
1992 else
1993 ac_save_LIBS="$LIBS"
1994 LIBS="-lX11 $LIBS"
1995 cat > conftest.$ac_ext <<EOF
1996 #line 1997 "configure"
1997 #include "confdefs.h"
1998 /* Override any gcc2 internal prototype to avoid an error. */
1999 /* We use char because int might match the return type of a gcc2
2000 builtin and then its argument prototype would still apply. */
2001 char XOpenDisplay();
2003 int main() {
2004 XOpenDisplay()
2005 ; return 0; }
2007 if { (eval echo configure:2008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2008 rm -rf conftest*
2009 eval "ac_cv_lib_$ac_lib_var=yes"
2010 else
2011 echo "configure: failed program was:" >&5
2012 cat conftest.$ac_ext >&5
2013 rm -rf conftest*
2014 eval "ac_cv_lib_$ac_lib_var=no"
2016 rm -f conftest*
2017 LIBS="$ac_save_LIBS"
2020 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2021 echo "$ac_t""yes" 1>&6
2022 ac_tr_lib=HAVE_LIB`echo X11 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2023 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2024 cat >> confdefs.h <<EOF
2025 #define $ac_tr_lib 1
2028 LIBS="-lX11 $LIBS"
2030 else
2031 echo "$ac_t""no" 1>&6
2034 echo $ac_n "checking for XShapeCombineMask in -lXext""... $ac_c" 1>&6
2035 echo "configure:2036: checking for XShapeCombineMask in -lXext" >&5
2036 ac_lib_var=`echo Xext'_'XShapeCombineMask | sed 'y%./+-%__p_%'`
2037 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2038 echo $ac_n "(cached) $ac_c" 1>&6
2039 else
2040 ac_save_LIBS="$LIBS"
2041 LIBS="-lXext $LIBS"
2042 cat > conftest.$ac_ext <<EOF
2043 #line 2044 "configure"
2044 #include "confdefs.h"
2045 /* Override any gcc2 internal prototype to avoid an error. */
2046 /* We use char because int might match the return type of a gcc2
2047 builtin and then its argument prototype would still apply. */
2048 char XShapeCombineMask();
2050 int main() {
2051 XShapeCombineMask()
2052 ; return 0; }
2054 if { (eval echo configure:2055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2055 rm -rf conftest*
2056 eval "ac_cv_lib_$ac_lib_var=yes"
2057 else
2058 echo "configure: failed program was:" >&5
2059 cat conftest.$ac_ext >&5
2060 rm -rf conftest*
2061 eval "ac_cv_lib_$ac_lib_var=no"
2063 rm -f conftest*
2064 LIBS="$ac_save_LIBS"
2067 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2068 echo "$ac_t""yes" 1>&6
2069 ac_tr_lib=HAVE_LIB`echo Xext | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2070 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2071 cat >> confdefs.h <<EOF
2072 #define $ac_tr_lib 1
2075 LIBS="-lXext $LIBS"
2077 else
2078 echo "$ac_t""no" 1>&6
2081 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
2082 echo "configure:2083: checking for XpmCreatePixmapFromData in -lXpm" >&5
2083 ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
2084 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2085 echo $ac_n "(cached) $ac_c" 1>&6
2086 else
2087 ac_save_LIBS="$LIBS"
2088 LIBS="-lXpm $LIBS $LIBS"
2089 cat > conftest.$ac_ext <<EOF
2090 #line 2091 "configure"
2091 #include "confdefs.h"
2092 /* Override any gcc2 internal prototype to avoid an error. */
2093 /* We use char because int might match the return type of a gcc2
2094 builtin and then its argument prototype would still apply. */
2095 char XpmCreatePixmapFromData();
2097 int main() {
2098 XpmCreatePixmapFromData()
2099 ; return 0; }
2101 if { (eval echo configure:2102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2102 rm -rf conftest*
2103 eval "ac_cv_lib_$ac_lib_var=yes"
2104 else
2105 echo "configure: failed program was:" >&5
2106 cat conftest.$ac_ext >&5
2107 rm -rf conftest*
2108 eval "ac_cv_lib_$ac_lib_var=no"
2110 rm -f conftest*
2111 LIBS="$ac_save_LIBS"
2114 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2115 echo "$ac_t""yes" 1>&6
2116 ac_tr_lib=HAVE_LIB`echo Xpm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2117 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2118 cat >> confdefs.h <<EOF
2119 #define $ac_tr_lib 1
2122 LIBS="-lXpm $LIBS"
2124 else
2125 echo "$ac_t""no" 1>&6
2129 trap '' 1 2 15
2130 cat > confcache <<\EOF
2131 # This file is a shell script that caches the results of configure
2132 # tests run on this system so they can be shared between configure
2133 # scripts and configure runs. It is not useful on other systems.
2134 # If it contains results you don't want to keep, you may remove or edit it.
2136 # By default, configure uses ./config.cache as the cache file,
2137 # creating it if it does not exist already. You can give configure
2138 # the --cache-file=FILE option to use a different cache file; that is
2139 # what configure does when it calls configure scripts in
2140 # subdirectories, so they share the cache.
2141 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2142 # config.status only pays attention to the cache file if you give it the
2143 # --recheck option to rerun configure.
2146 # The following way of writing the cache mishandles newlines in values,
2147 # but we know of no workaround that is simple, portable, and efficient.
2148 # So, don't put newlines in cache variables' values.
2149 # Ultrix sh set writes to stderr and can't be redirected directly,
2150 # and sets the high bit in the cache file unless we assign to the vars.
2151 (set) 2>&1 |
2152 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2153 *ac_space=\ *)
2154 # `set' does not quote correctly, so add quotes (double-quote substitution
2155 # turns \\\\ into \\, and sed turns \\ into \).
2156 sed -n \
2157 -e "s/'/'\\\\''/g" \
2158 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2161 # `set' quotes correctly as required by POSIX, so do not add quotes.
2162 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2164 esac >> confcache
2165 if cmp -s $cache_file confcache; then
2167 else
2168 if test -w $cache_file; then
2169 echo "updating cache $cache_file"
2170 cat confcache > $cache_file
2171 else
2172 echo "not updating unwritable cache $cache_file"
2175 rm -f confcache
2177 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2179 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2180 # Let make expand exec_prefix.
2181 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2183 # Any assignment to VPATH causes Sun make to only execute
2184 # the first set of double-colon rules, so remove it if not needed.
2185 # If there is a colon in the path, we need to keep it.
2186 if test "x$srcdir" = x.; then
2187 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2190 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2192 # Transform confdefs.h into DEFS.
2193 # Protect against shell expansion while executing Makefile rules.
2194 # Protect against Makefile macro expansion.
2195 cat > conftest.defs <<\EOF
2196 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2197 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2198 s%\[%\\&%g
2199 s%\]%\\&%g
2200 s%\$%$$%g
2202 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2203 rm -f conftest.defs
2206 # Without the "./", some shells look in PATH for config.status.
2207 : ${CONFIG_STATUS=./config.status}
2209 echo creating $CONFIG_STATUS
2210 rm -f $CONFIG_STATUS
2211 cat > $CONFIG_STATUS <<EOF
2212 #! /bin/sh
2213 # Generated automatically by configure.
2214 # Run this file to recreate the current configuration.
2215 # This directory was configured as follows,
2216 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2218 # $0 $ac_configure_args
2220 # Compiler output produced by configure, useful for debugging
2221 # configure, is in ./config.log if it exists.
2223 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2224 for ac_option
2226 case "\$ac_option" in
2227 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2228 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2229 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2230 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2231 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2232 exit 0 ;;
2233 -help | --help | --hel | --he | --h)
2234 echo "\$ac_cs_usage"; exit 0 ;;
2235 *) echo "\$ac_cs_usage"; exit 1 ;;
2236 esac
2237 done
2239 ac_given_srcdir=$srcdir
2240 ac_given_INSTALL="$INSTALL"
2242 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2244 cat >> $CONFIG_STATUS <<EOF
2246 # Protect against being on the right side of a sed subst in config.status.
2247 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2248 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2249 $ac_vpsub
2250 $extrasub
2251 s%@SHELL@%$SHELL%g
2252 s%@CFLAGS@%$CFLAGS%g
2253 s%@CPPFLAGS@%$CPPFLAGS%g
2254 s%@CXXFLAGS@%$CXXFLAGS%g
2255 s%@FFLAGS@%$FFLAGS%g
2256 s%@DEFS@%$DEFS%g
2257 s%@LDFLAGS@%$LDFLAGS%g
2258 s%@LIBS@%$LIBS%g
2259 s%@exec_prefix@%$exec_prefix%g
2260 s%@prefix@%$prefix%g
2261 s%@program_transform_name@%$program_transform_name%g
2262 s%@bindir@%$bindir%g
2263 s%@sbindir@%$sbindir%g
2264 s%@libexecdir@%$libexecdir%g
2265 s%@datadir@%$datadir%g
2266 s%@sysconfdir@%$sysconfdir%g
2267 s%@sharedstatedir@%$sharedstatedir%g
2268 s%@localstatedir@%$localstatedir%g
2269 s%@libdir@%$libdir%g
2270 s%@includedir@%$includedir%g
2271 s%@oldincludedir@%$oldincludedir%g
2272 s%@infodir@%$infodir%g
2273 s%@mandir@%$mandir%g
2274 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2275 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2276 s%@INSTALL_DATA@%$INSTALL_DATA%g
2277 s%@PACKAGE@%$PACKAGE%g
2278 s%@VERSION@%$VERSION%g
2279 s%@ACLOCAL@%$ACLOCAL%g
2280 s%@AUTOCONF@%$AUTOCONF%g
2281 s%@AUTOMAKE@%$AUTOMAKE%g
2282 s%@AUTOHEADER@%$AUTOHEADER%g
2283 s%@MAKEINFO@%$MAKEINFO%g
2284 s%@SET_MAKE@%$SET_MAKE%g
2285 s%@CC@%$CC%g
2286 s%@CPP@%$CPP%g
2287 s%@X_CFLAGS@%$X_CFLAGS%g
2288 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
2289 s%@X_LIBS@%$X_LIBS%g
2290 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
2292 CEOF
2295 cat >> $CONFIG_STATUS <<\EOF
2297 # Split the substitutions into bite-sized pieces for seds with
2298 # small command number limits, like on Digital OSF/1 and HP-UX.
2299 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2300 ac_file=1 # Number of current file.
2301 ac_beg=1 # First line for current file.
2302 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2303 ac_more_lines=:
2304 ac_sed_cmds=""
2305 while $ac_more_lines; do
2306 if test $ac_beg -gt 1; then
2307 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2308 else
2309 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2311 if test ! -s conftest.s$ac_file; then
2312 ac_more_lines=false
2313 rm -f conftest.s$ac_file
2314 else
2315 if test -z "$ac_sed_cmds"; then
2316 ac_sed_cmds="sed -f conftest.s$ac_file"
2317 else
2318 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2320 ac_file=`expr $ac_file + 1`
2321 ac_beg=$ac_end
2322 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2324 done
2325 if test -z "$ac_sed_cmds"; then
2326 ac_sed_cmds=cat
2330 cat >> $CONFIG_STATUS <<EOF
2332 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2334 cat >> $CONFIG_STATUS <<\EOF
2335 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2336 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2337 case "$ac_file" in
2338 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2339 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2340 *) ac_file_in="${ac_file}.in" ;;
2341 esac
2343 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2345 # Remove last slash and all that follows it. Not all systems have dirname.
2346 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2347 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2348 # The file is in a subdirectory.
2349 test ! -d "$ac_dir" && mkdir "$ac_dir"
2350 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2351 # A "../" for each directory in $ac_dir_suffix.
2352 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2353 else
2354 ac_dir_suffix= ac_dots=
2357 case "$ac_given_srcdir" in
2358 .) srcdir=.
2359 if test -z "$ac_dots"; then top_srcdir=.
2360 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2361 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2362 *) # Relative path.
2363 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2364 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2365 esac
2367 case "$ac_given_INSTALL" in
2368 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2369 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2370 esac
2372 echo creating "$ac_file"
2373 rm -f "$ac_file"
2374 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2375 case "$ac_file" in
2376 *Makefile*) ac_comsub="1i\\
2377 # $configure_input" ;;
2378 *) ac_comsub= ;;
2379 esac
2381 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2382 sed -e "$ac_comsub
2383 s%@configure_input@%$configure_input%g
2384 s%@srcdir@%$srcdir%g
2385 s%@top_srcdir@%$top_srcdir%g
2386 s%@INSTALL@%$INSTALL%g
2387 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2388 fi; done
2389 rm -f conftest.s*
2392 cat >> $CONFIG_STATUS <<EOF
2395 cat >> $CONFIG_STATUS <<\EOF
2397 exit 0
2399 chmod +x $CONFIG_STATUS
2400 rm -fr confdefs* $ac_clean_files
2401 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1