1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="xawtv.spec.in"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA DEPEND FOUND_AALIB FOUND_ALSA FOUND_DV FOUND_LQT FOUND_MOTIF FOUND_OS FOUND_X11 FOUND_GL FOUND_ZVBI EGREP DLFLAGS LIBPTHREAD LIBOSS LIBCURSES X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS x_includes x_libraries ATHENA FSLIB SUBS TOOLS LDLIBS XFT_FLAGS XFT_LIBS LIBALSA LIRC LIBZVBI AALIBS LIBDV QTLIBS LIBGL VERSION x11conf resdir USE_MMX LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650 done
651
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672 do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725 else
726 ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
781
782 #
783 # Report the --help message.
784 #
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
788 cat <<_ACEOF
789 \`configure' configures this package to adapt to many kinds of systems.
790
791 Usage: $0 [OPTION]... [VAR=VALUE]...
792
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
795
796 Defaults for the options are specified in brackets.
797
798 Configuration:
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
808
809 _ACEOF
810
811 cat <<_ACEOF
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
814 [$ac_default_prefix]
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
816 [PREFIX]
817
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
822
823 For better control, use the options below.
824
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
838 _ACEOF
839
840 cat <<\_ACEOF
841
842 X features:
843 --x-includes=DIR X include files are in DIR
844 --x-libraries=DIR X library files are in DIR
845 _ACEOF
846 fi
847
848 if test -n "$ac_init_help"; then
849
850 cat <<\_ACEOF
851
852 Optional Features:
853 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
854 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
855 --enable-xfree-ext use XFree extentions (DGA,VidMode,DPMS)
856 --enable-xvideo use the Xvideo extention
857 --enable-lirc lirc support
858 --enable-quicktime quicktime support
859 --enable-motif enable experimental motif support
860 --enable-aa enable aalib support
861 --enable-alsa enable alsa support
862 --enable-zvbi enable vbi support (via libzvbi)
863 --enable-gl enable opengl support
864 --enable-dv enable dvlib support
865 --enable-mmx enable mmx support
866 --enable-xft enable xft support
867
868 Optional Packages:
869 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
870 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
871 --with-x use the X Window System
872
873 Some influential environment variables:
874 CC C compiler command
875 CFLAGS C compiler flags
876 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
877 nonstandard directory <lib dir>
878 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
879 headers in a nonstandard directory <include dir>
880 CXX C++ compiler command
881 CXXFLAGS C++ compiler flags
882 CPP C preprocessor
883
884 Use these variables to override the choices made by `configure' or to help
885 it to find libraries and programs with nonstandard names/locations.
886
887 _ACEOF
888 fi
889
890 if test "$ac_init_help" = "recursive"; then
891 # If there are subdirs, report their specific --help.
892 ac_popdir=`pwd`
893 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
894 test -d $ac_dir || continue
895 ac_builddir=.
896
897 if test "$ac_dir" != .; then
898 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
899 # A "../" for each directory in $ac_dir_suffix.
900 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
901 else
902 ac_dir_suffix= ac_top_builddir=
903 fi
904
905 case $srcdir in
906 .) # No --srcdir option. We are building in place.
907 ac_srcdir=.
908 if test -z "$ac_top_builddir"; then
909 ac_top_srcdir=.
910 else
911 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
912 fi ;;
913 [\\/]* | ?:[\\/]* ) # Absolute path.
914 ac_srcdir=$srcdir$ac_dir_suffix;
915 ac_top_srcdir=$srcdir ;;
916 *) # Relative path.
917 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
918 ac_top_srcdir=$ac_top_builddir$srcdir ;;
919 esac
920
921 # Do not use `cd foo && pwd` to compute absolute paths, because
922 # the directories may not exist.
923 case `pwd` in
924 .) ac_abs_builddir="$ac_dir";;
925 *)
926 case "$ac_dir" in
927 .) ac_abs_builddir=`pwd`;;
928 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
929 *) ac_abs_builddir=`pwd`/"$ac_dir";;
930 esac;;
931 esac
932 case $ac_abs_builddir in
933 .) ac_abs_top_builddir=${ac_top_builddir}.;;
934 *)
935 case ${ac_top_builddir}. in
936 .) ac_abs_top_builddir=$ac_abs_builddir;;
937 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
938 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
939 esac;;
940 esac
941 case $ac_abs_builddir in
942 .) ac_abs_srcdir=$ac_srcdir;;
943 *)
944 case $ac_srcdir in
945 .) ac_abs_srcdir=$ac_abs_builddir;;
946 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
947 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
948 esac;;
949 esac
950 case $ac_abs_builddir in
951 .) ac_abs_top_srcdir=$ac_top_srcdir;;
952 *)
953 case $ac_top_srcdir in
954 .) ac_abs_top_srcdir=$ac_abs_builddir;;
955 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
956 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
957 esac;;
958 esac
959
960 cd $ac_dir
961 # Check for guested configure; otherwise get Cygnus style configure.
962 if test -f $ac_srcdir/configure.gnu; then
963 echo
964 $SHELL $ac_srcdir/configure.gnu --help=recursive
965 elif test -f $ac_srcdir/configure; then
966 echo
967 $SHELL $ac_srcdir/configure --help=recursive
968 elif test -f $ac_srcdir/configure.ac ||
969 test -f $ac_srcdir/configure.in; then
970 echo
971 $ac_configure --help
972 else
973 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
974 fi
975 cd $ac_popdir
976 done
977 fi
978
979 test -n "$ac_init_help" && exit 0
980 if $ac_init_version; then
981 cat <<\_ACEOF
982
983 Copyright (C) 2003 Free Software Foundation, Inc.
984 This configure script is free software; the Free Software Foundation
985 gives unlimited permission to copy, distribute and modify it.
986 _ACEOF
987 exit 0
988 fi
989 exec 5>config.log
990 cat >&5 <<_ACEOF
991 This file contains any messages produced by compilers while
992 running configure, to aid debugging if configure makes a mistake.
993
994 It was created by $as_me, which was
995 generated by GNU Autoconf 2.59. Invocation command line was
996
997 $ $0 $@
998
999 _ACEOF
1000 {
1001 cat <<_ASUNAME
1002 ## --------- ##
1003 ## Platform. ##
1004 ## --------- ##
1005
1006 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1007 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1008 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1009 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1010 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1011
1012 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1013 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1014
1015 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1016 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1017 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1018 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1019 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1020 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1021 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1022
1023 _ASUNAME
1024
1025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1026 for as_dir in $PATH
1027 do
1028 IFS=$as_save_IFS
1029 test -z "$as_dir" && as_dir=.
1030 echo "PATH: $as_dir"
1031 done
1032
1033 } >&5
1034
1035 cat >&5 <<_ACEOF
1036
1037
1038 ## ----------- ##
1039 ## Core tests. ##
1040 ## ----------- ##
1041
1042 _ACEOF
1043
1044
1045 # Keep a trace of the command line.
1046 # Strip out --no-create and --no-recursion so they do not pile up.
1047 # Strip out --silent because we don't want to record it for future runs.
1048 # Also quote any args containing shell meta-characters.
1049 # Make two passes to allow for proper duplicate-argument suppression.
1050 ac_configure_args=
1051 ac_configure_args0=
1052 ac_configure_args1=
1053 ac_sep=
1054 ac_must_keep_next=false
1055 for ac_pass in 1 2
1056 do
1057 for ac_arg
1058 do
1059 case $ac_arg in
1060 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062 | -silent | --silent | --silen | --sile | --sil)
1063 continue ;;
1064 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1065 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1066 esac
1067 case $ac_pass in
1068 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1069 2)
1070 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1071 if test $ac_must_keep_next = true; then
1072 ac_must_keep_next=false # Got value, back to normal.
1073 else
1074 case $ac_arg in
1075 *=* | --config-cache | -C | -disable-* | --disable-* \
1076 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1077 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1078 | -with-* | --with-* | -without-* | --without-* | --x)
1079 case "$ac_configure_args0 " in
1080 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1081 esac
1082 ;;
1083 -* ) ac_must_keep_next=true ;;
1084 esac
1085 fi
1086 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1087 # Get rid of the leading space.
1088 ac_sep=" "
1089 ;;
1090 esac
1091 done
1092 done
1093 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1094 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1095
1096 # When interrupted or exit'd, cleanup temporary files, and complete
1097 # config.log. We remove comments because anyway the quotes in there
1098 # would cause problems or look ugly.
1099 # WARNING: Be sure not to use single quotes in there, as some shells,
1100 # such as our DU 5.0 friend, will then `close' the trap.
1101 trap 'exit_status=$?
1102 # Save into config.log some information that might help in debugging.
1103 {
1104 echo
1105
1106 cat <<\_ASBOX
1107 ## ---------------- ##
1108 ## Cache variables. ##
1109 ## ---------------- ##
1110 _ASBOX
1111 echo
1112 # The following way of writing the cache mishandles newlines in values,
1113 {
1114 (set) 2>&1 |
1115 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1116 *ac_space=\ *)
1117 sed -n \
1118 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1119 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1120 ;;
1121 *)
1122 sed -n \
1123 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1124 ;;
1125 esac;
1126 }
1127 echo
1128
1129 cat <<\_ASBOX
1130 ## ----------------- ##
1131 ## Output variables. ##
1132 ## ----------------- ##
1133 _ASBOX
1134 echo
1135 for ac_var in $ac_subst_vars
1136 do
1137 eval ac_val=$`echo $ac_var`
1138 echo "$ac_var='"'"'$ac_val'"'"'"
1139 done | sort
1140 echo
1141
1142 if test -n "$ac_subst_files"; then
1143 cat <<\_ASBOX
1144 ## ------------- ##
1145 ## Output files. ##
1146 ## ------------- ##
1147 _ASBOX
1148 echo
1149 for ac_var in $ac_subst_files
1150 do
1151 eval ac_val=$`echo $ac_var`
1152 echo "$ac_var='"'"'$ac_val'"'"'"
1153 done | sort
1154 echo
1155 fi
1156
1157 if test -s confdefs.h; then
1158 cat <<\_ASBOX
1159 ## ----------- ##
1160 ## confdefs.h. ##
1161 ## ----------- ##
1162 _ASBOX
1163 echo
1164 sed "/^$/d" confdefs.h | sort
1165 echo
1166 fi
1167 test "$ac_signal" != 0 &&
1168 echo "$as_me: caught signal $ac_signal"
1169 echo "$as_me: exit $exit_status"
1170 } >&5
1171 rm -f core *.core &&
1172 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1173 exit $exit_status
1174 ' 0
1175 for ac_signal in 1 2 13 15; do
1176 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1177 done
1178 ac_signal=0
1179
1180 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1181 rm -rf conftest* confdefs.h
1182 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1183 echo >confdefs.h
1184
1185 # Predefined preprocessor variables.
1186
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_NAME "$PACKAGE_NAME"
1189 _ACEOF
1190
1191
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1194 _ACEOF
1195
1196
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1199 _ACEOF
1200
1201
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_STRING "$PACKAGE_STRING"
1204 _ACEOF
1205
1206
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1209 _ACEOF
1210
1211
1212 # Let the site file select an alternate cache file if it wants to.
1213 # Prefer explicitly selected file to automatically selected ones.
1214 if test -z "$CONFIG_SITE"; then
1215 if test "x$prefix" != xNONE; then
1216 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1217 else
1218 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1219 fi
1220 fi
1221 for ac_site_file in $CONFIG_SITE; do
1222 if test -r "$ac_site_file"; then
1223 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1224 echo "$as_me: loading site script $ac_site_file" >&6;}
1225 sed 's/^/| /' "$ac_site_file" >&5
1226 . "$ac_site_file"
1227 fi
1228 done
1229
1230 if test -r "$cache_file"; then
1231 # Some versions of bash will fail to source /dev/null (special
1232 # files actually), so we avoid doing that.
1233 if test -f "$cache_file"; then
1234 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1235 echo "$as_me: loading cache $cache_file" >&6;}
1236 case $cache_file in
1237 [\\/]* | ?:[\\/]* ) . $cache_file;;
1238 *) . ./$cache_file;;
1239 esac
1240 fi
1241 else
1242 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1243 echo "$as_me: creating cache $cache_file" >&6;}
1244 >$cache_file
1245 fi
1246
1247 # Check that the precious variables saved in the cache have kept the same
1248 # value.
1249 ac_cache_corrupted=false
1250 for ac_var in `(set) 2>&1 |
1251 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1252 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1253 eval ac_new_set=\$ac_env_${ac_var}_set
1254 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1255 eval ac_new_val="\$ac_env_${ac_var}_value"
1256 case $ac_old_set,$ac_new_set in
1257 set,)
1258 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1259 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1260 ac_cache_corrupted=: ;;
1261 ,set)
1262 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1263 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1264 ac_cache_corrupted=: ;;
1265 ,);;
1266 *)
1267 if test "x$ac_old_val" != "x$ac_new_val"; then
1268 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1269 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1270 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1271 echo "$as_me: former value: $ac_old_val" >&2;}
1272 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1273 echo "$as_me: current value: $ac_new_val" >&2;}
1274 ac_cache_corrupted=:
1275 fi;;
1276 esac
1277 # Pass precious variables to config.status.
1278 if test "$ac_new_set" = set; then
1279 case $ac_new_val in
1280 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1281 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1282 *) ac_arg=$ac_var=$ac_new_val ;;
1283 esac
1284 case " $ac_configure_args " in
1285 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1286 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1287 esac
1288 fi
1289 done
1290 if $ac_cache_corrupted; then
1291 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1292 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1293 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1294 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1295 { (exit 1); exit 1; }; }
1296 fi
1297
1298 ac_ext=c
1299 ac_cpp='$CPP $CPPFLAGS'
1300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322 ac_config_headers="$ac_config_headers config.h"
1323
1324
1325
1326
1327 # Check whether --enable-xfree-ext or --disable-xfree-ext was given.
1328 if test "${enable_xfree_ext+set}" = set; then
1329 enableval="$enable_xfree_ext"
1330
1331 fi;
1332 # Check whether --enable-xvideo or --disable-xvideo was given.
1333 if test "${enable_xvideo+set}" = set; then
1334 enableval="$enable_xvideo"
1335
1336 fi;
1337 # Check whether --enable-lirc or --disable-lirc was given.
1338 if test "${enable_lirc+set}" = set; then
1339 enableval="$enable_lirc"
1340
1341 fi;
1342 # Check whether --enable-quicktime or --disable-quicktime was given.
1343 if test "${enable_quicktime+set}" = set; then
1344 enableval="$enable_quicktime"
1345
1346 fi;
1347 # Check whether --enable-motif or --disable-motif was given.
1348 if test "${enable_motif+set}" = set; then
1349 enableval="$enable_motif"
1350
1351 fi;
1352 # Check whether --enable-aa or --disable-aa was given.
1353 if test "${enable_aa+set}" = set; then
1354 enableval="$enable_aa"
1355
1356 fi;
1357 # Check whether --enable-alsa or --disable-alsa was given.
1358 if test "${enable_alsa+set}" = set; then
1359 enableval="$enable_alsa"
1360
1361 fi;
1362 # Check whether --enable-zvbi or --disable-zvbi was given.
1363 if test "${enable_zvbi+set}" = set; then
1364 enableval="$enable_zvbi"
1365
1366 fi;
1367 # Check whether --enable-gl or --disable-gl was given.
1368 if test "${enable_gl+set}" = set; then
1369 enableval="$enable_gl"
1370
1371 fi;
1372 # Check whether --enable-dv or --disable-dv was given.
1373 if test "${enable_dv+set}" = set; then
1374 enableval="$enable_dv"
1375
1376 fi;
1377 # Check whether --enable-mmx or --disable-mmx was given.
1378 if test "${enable_mmx+set}" = set; then
1379 enableval="$enable_mmx"
1380
1381 fi;
1382 # Check whether --enable-xft or --disable-xft was given.
1383 if test "${enable_xft+set}" = set; then
1384 enableval="$enable_xft"
1385
1386 fi;
1387
1388
1389
1390 ac_ext=c
1391 ac_cpp='$CPP $CPPFLAGS'
1392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1395 if test -n "$ac_tool_prefix"; then
1396 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1397 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1398 echo "$as_me:$LINENO: checking for $ac_word" >&5
1399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1400 if test "${ac_cv_prog_CC+set}" = set; then
1401 echo $ECHO_N "(cached) $ECHO_C" >&6
1402 else
1403 if test -n "$CC"; then
1404 ac_cv_prog_CC="$CC" # Let the user override the test.
1405 else
1406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1407 for as_dir in $PATH
1408 do
1409 IFS=$as_save_IFS
1410 test -z "$as_dir" && as_dir=.
1411 for ac_exec_ext in '' $ac_executable_extensions; do
1412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1413 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1415 break 2
1416 fi
1417 done
1418 done
1419
1420 fi
1421 fi
1422 CC=$ac_cv_prog_CC
1423 if test -n "$CC"; then
1424 echo "$as_me:$LINENO: result: $CC" >&5
1425 echo "${ECHO_T}$CC" >&6
1426 else
1427 echo "$as_me:$LINENO: result: no" >&5
1428 echo "${ECHO_T}no" >&6
1429 fi
1430
1431 fi
1432 if test -z "$ac_cv_prog_CC"; then
1433 ac_ct_CC=$CC
1434 # Extract the first word of "gcc", so it can be a program name with args.
1435 set dummy gcc; ac_word=$2
1436 echo "$as_me:$LINENO: checking for $ac_word" >&5
1437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1438 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1439 echo $ECHO_N "(cached) $ECHO_C" >&6
1440 else
1441 if test -n "$ac_ct_CC"; then
1442 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1443 else
1444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1445 for as_dir in $PATH
1446 do
1447 IFS=$as_save_IFS
1448 test -z "$as_dir" && as_dir=.
1449 for ac_exec_ext in '' $ac_executable_extensions; do
1450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1451 ac_cv_prog_ac_ct_CC="gcc"
1452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1453 break 2
1454 fi
1455 done
1456 done
1457
1458 fi
1459 fi
1460 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1461 if test -n "$ac_ct_CC"; then
1462 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1463 echo "${ECHO_T}$ac_ct_CC" >&6
1464 else
1465 echo "$as_me:$LINENO: result: no" >&5
1466 echo "${ECHO_T}no" >&6
1467 fi
1468
1469 CC=$ac_ct_CC
1470 else
1471 CC="$ac_cv_prog_CC"
1472 fi
1473
1474 if test -z "$CC"; then
1475 if test -n "$ac_tool_prefix"; then
1476 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1477 set dummy ${ac_tool_prefix}cc; ac_word=$2
1478 echo "$as_me:$LINENO: checking for $ac_word" >&5
1479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1480 if test "${ac_cv_prog_CC+set}" = set; then
1481 echo $ECHO_N "(cached) $ECHO_C" >&6
1482 else
1483 if test -n "$CC"; then
1484 ac_cv_prog_CC="$CC" # Let the user override the test.
1485 else
1486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1487 for as_dir in $PATH
1488 do
1489 IFS=$as_save_IFS
1490 test -z "$as_dir" && as_dir=.
1491 for ac_exec_ext in '' $ac_executable_extensions; do
1492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1493 ac_cv_prog_CC="${ac_tool_prefix}cc"
1494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1495 break 2
1496 fi
1497 done
1498 done
1499
1500 fi
1501 fi
1502 CC=$ac_cv_prog_CC
1503 if test -n "$CC"; then
1504 echo "$as_me:$LINENO: result: $CC" >&5
1505 echo "${ECHO_T}$CC" >&6
1506 else
1507 echo "$as_me:$LINENO: result: no" >&5
1508 echo "${ECHO_T}no" >&6
1509 fi
1510
1511 fi
1512 if test -z "$ac_cv_prog_CC"; then
1513 ac_ct_CC=$CC
1514 # Extract the first word of "cc", so it can be a program name with args.
1515 set dummy cc; ac_word=$2
1516 echo "$as_me:$LINENO: checking for $ac_word" >&5
1517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1518 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1519 echo $ECHO_N "(cached) $ECHO_C" >&6
1520 else
1521 if test -n "$ac_ct_CC"; then
1522 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1523 else
1524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1525 for as_dir in $PATH
1526 do
1527 IFS=$as_save_IFS
1528 test -z "$as_dir" && as_dir=.
1529 for ac_exec_ext in '' $ac_executable_extensions; do
1530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1531 ac_cv_prog_ac_ct_CC="cc"
1532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1533 break 2
1534 fi
1535 done
1536 done
1537
1538 fi
1539 fi
1540 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1541 if test -n "$ac_ct_CC"; then
1542 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1543 echo "${ECHO_T}$ac_ct_CC" >&6
1544 else
1545 echo "$as_me:$LINENO: result: no" >&5
1546 echo "${ECHO_T}no" >&6
1547 fi
1548
1549 CC=$ac_ct_CC
1550 else
1551 CC="$ac_cv_prog_CC"
1552 fi
1553
1554 fi
1555 if test -z "$CC"; then
1556 # Extract the first word of "cc", so it can be a program name with args.
1557 set dummy cc; ac_word=$2
1558 echo "$as_me:$LINENO: checking for $ac_word" >&5
1559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1560 if test "${ac_cv_prog_CC+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1562 else
1563 if test -n "$CC"; then
1564 ac_cv_prog_CC="$CC" # Let the user override the test.
1565 else
1566 ac_prog_rejected=no
1567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1568 for as_dir in $PATH
1569 do
1570 IFS=$as_save_IFS
1571 test -z "$as_dir" && as_dir=.
1572 for ac_exec_ext in '' $ac_executable_extensions; do
1573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1574 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1575 ac_prog_rejected=yes
1576 continue
1577 fi
1578 ac_cv_prog_CC="cc"
1579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1580 break 2
1581 fi
1582 done
1583 done
1584
1585 if test $ac_prog_rejected = yes; then
1586 # We found a bogon in the path, so make sure we never use it.
1587 set dummy $ac_cv_prog_CC
1588 shift
1589 if test $# != 0; then
1590 # We chose a different compiler from the bogus one.
1591 # However, it has the same basename, so the bogon will be chosen
1592 # first if we set CC to just the basename; use the full file name.
1593 shift
1594 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1595 fi
1596 fi
1597 fi
1598 fi
1599 CC=$ac_cv_prog_CC
1600 if test -n "$CC"; then
1601 echo "$as_me:$LINENO: result: $CC" >&5
1602 echo "${ECHO_T}$CC" >&6
1603 else
1604 echo "$as_me:$LINENO: result: no" >&5
1605 echo "${ECHO_T}no" >&6
1606 fi
1607
1608 fi
1609 if test -z "$CC"; then
1610 if test -n "$ac_tool_prefix"; then
1611 for ac_prog in cl
1612 do
1613 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1614 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1615 echo "$as_me:$LINENO: checking for $ac_word" >&5
1616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1617 if test "${ac_cv_prog_CC+set}" = set; then
1618 echo $ECHO_N "(cached) $ECHO_C" >&6
1619 else
1620 if test -n "$CC"; then
1621 ac_cv_prog_CC="$CC" # Let the user override the test.
1622 else
1623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1624 for as_dir in $PATH
1625 do
1626 IFS=$as_save_IFS
1627 test -z "$as_dir" && as_dir=.
1628 for ac_exec_ext in '' $ac_executable_extensions; do
1629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1630 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1632 break 2
1633 fi
1634 done
1635 done
1636
1637 fi
1638 fi
1639 CC=$ac_cv_prog_CC
1640 if test -n "$CC"; then
1641 echo "$as_me:$LINENO: result: $CC" >&5
1642 echo "${ECHO_T}$CC" >&6
1643 else
1644 echo "$as_me:$LINENO: result: no" >&5
1645 echo "${ECHO_T}no" >&6
1646 fi
1647
1648 test -n "$CC" && break
1649 done
1650 fi
1651 if test -z "$CC"; then
1652 ac_ct_CC=$CC
1653 for ac_prog in cl
1654 do
1655 # Extract the first word of "$ac_prog", so it can be a program name with args.
1656 set dummy $ac_prog; ac_word=$2
1657 echo "$as_me:$LINENO: checking for $ac_word" >&5
1658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1659 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1660 echo $ECHO_N "(cached) $ECHO_C" >&6
1661 else
1662 if test -n "$ac_ct_CC"; then
1663 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1664 else
1665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666 for as_dir in $PATH
1667 do
1668 IFS=$as_save_IFS
1669 test -z "$as_dir" && as_dir=.
1670 for ac_exec_ext in '' $ac_executable_extensions; do
1671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1672 ac_cv_prog_ac_ct_CC="$ac_prog"
1673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1674 break 2
1675 fi
1676 done
1677 done
1678
1679 fi
1680 fi
1681 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1682 if test -n "$ac_ct_CC"; then
1683 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1684 echo "${ECHO_T}$ac_ct_CC" >&6
1685 else
1686 echo "$as_me:$LINENO: result: no" >&5
1687 echo "${ECHO_T}no" >&6
1688 fi
1689
1690 test -n "$ac_ct_CC" && break
1691 done
1692
1693 CC=$ac_ct_CC
1694 fi
1695
1696 fi
1697
1698
1699 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1700 See \`config.log' for more details." >&5
1701 echo "$as_me: error: no acceptable C compiler found in \$PATH
1702 See \`config.log' for more details." >&2;}
1703 { (exit 1); exit 1; }; }
1704
1705 # Provide some information about the compiler.
1706 echo "$as_me:$LINENO:" \
1707 "checking for C compiler version" >&5
1708 ac_compiler=`set X $ac_compile; echo $2`
1709 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1710 (eval $ac_compiler --version </dev/null >&5) 2>&5
1711 ac_status=$?
1712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1713 (exit $ac_status); }
1714 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1715 (eval $ac_compiler -v </dev/null >&5) 2>&5
1716 ac_status=$?
1717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1718 (exit $ac_status); }
1719 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1720 (eval $ac_compiler -V </dev/null >&5) 2>&5
1721 ac_status=$?
1722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1723 (exit $ac_status); }
1724
1725 cat >conftest.$ac_ext <<_ACEOF
1726 /* confdefs.h. */
1727 _ACEOF
1728 cat confdefs.h >>conftest.$ac_ext
1729 cat >>conftest.$ac_ext <<_ACEOF
1730 /* end confdefs.h. */
1731
1732 int
1733 main ()
1734 {
1735
1736 ;
1737 return 0;
1738 }
1739 _ACEOF
1740 ac_clean_files_save=$ac_clean_files
1741 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1742 # Try to create an executable without -o first, disregard a.out.
1743 # It will help us diagnose broken compilers, and finding out an intuition
1744 # of exeext.
1745 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1746 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1747 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1748 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1749 (eval $ac_link_default) 2>&5
1750 ac_status=$?
1751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1752 (exit $ac_status); }; then
1753 # Find the output, starting from the most likely. This scheme is
1754 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1755 # resort.
1756
1757 # Be careful to initialize this variable, since it used to be cached.
1758 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1759 ac_cv_exeext=
1760 # b.out is created by i960 compilers.
1761 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1762 do
1763 test -f "$ac_file" || continue
1764 case $ac_file in
1765 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1766 ;;
1767 conftest.$ac_ext )
1768 # This is the source file.
1769 ;;
1770 [ab].out )
1771 # We found the default executable, but exeext='' is most
1772 # certainly right.
1773 break;;
1774 *.* )
1775 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1776 # FIXME: I believe we export ac_cv_exeext for Libtool,
1777 # but it would be cool to find out if it's true. Does anybody
1778 # maintain Libtool? --akim.
1779 export ac_cv_exeext
1780 break;;
1781 * )
1782 break;;
1783 esac
1784 done
1785 else
1786 echo "$as_me: failed program was:" >&5
1787 sed 's/^/| /' conftest.$ac_ext >&5
1788
1789 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1790 See \`config.log' for more details." >&5
1791 echo "$as_me: error: C compiler cannot create executables
1792 See \`config.log' for more details." >&2;}
1793 { (exit 77); exit 77; }; }
1794 fi
1795
1796 ac_exeext=$ac_cv_exeext
1797 echo "$as_me:$LINENO: result: $ac_file" >&5
1798 echo "${ECHO_T}$ac_file" >&6
1799
1800 # Check the compiler produces executables we can run. If not, either
1801 # the compiler is broken, or we cross compile.
1802 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1803 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1804 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1805 # If not cross compiling, check that we can run a simple program.
1806 if test "$cross_compiling" != yes; then
1807 if { ac_try='./$ac_file'
1808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1809 (eval $ac_try) 2>&5
1810 ac_status=$?
1811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1812 (exit $ac_status); }; }; then
1813 cross_compiling=no
1814 else
1815 if test "$cross_compiling" = maybe; then
1816 cross_compiling=yes
1817 else
1818 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1819 If you meant to cross compile, use \`--host'.
1820 See \`config.log' for more details." >&5
1821 echo "$as_me: error: cannot run C compiled programs.
1822 If you meant to cross compile, use \`--host'.
1823 See \`config.log' for more details." >&2;}
1824 { (exit 1); exit 1; }; }
1825 fi
1826 fi
1827 fi
1828 echo "$as_me:$LINENO: result: yes" >&5
1829 echo "${ECHO_T}yes" >&6
1830
1831 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1832 ac_clean_files=$ac_clean_files_save
1833 # Check the compiler produces executables we can run. If not, either
1834 # the compiler is broken, or we cross compile.
1835 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1836 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1837 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1838 echo "${ECHO_T}$cross_compiling" >&6
1839
1840 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1841 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1843 (eval $ac_link) 2>&5
1844 ac_status=$?
1845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846 (exit $ac_status); }; then
1847 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1848 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1849 # work properly (i.e., refer to `conftest.exe'), while it won't with
1850 # `rm'.
1851 for ac_file in conftest.exe conftest conftest.*; do
1852 test -f "$ac_file" || continue
1853 case $ac_file in
1854 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1855 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1856 export ac_cv_exeext
1857 break;;
1858 * ) break;;
1859 esac
1860 done
1861 else
1862 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1863 See \`config.log' for more details." >&5
1864 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1865 See \`config.log' for more details." >&2;}
1866 { (exit 1); exit 1; }; }
1867 fi
1868
1869 rm -f conftest$ac_cv_exeext
1870 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1871 echo "${ECHO_T}$ac_cv_exeext" >&6
1872
1873 rm -f conftest.$ac_ext
1874 EXEEXT=$ac_cv_exeext
1875 ac_exeext=$EXEEXT
1876 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1877 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1878 if test "${ac_cv_objext+set}" = set; then
1879 echo $ECHO_N "(cached) $ECHO_C" >&6
1880 else
1881 cat >conftest.$ac_ext <<_ACEOF
1882 /* confdefs.h. */
1883 _ACEOF
1884 cat confdefs.h >>conftest.$ac_ext
1885 cat >>conftest.$ac_ext <<_ACEOF
1886 /* end confdefs.h. */
1887
1888 int
1889 main ()
1890 {
1891
1892 ;
1893 return 0;
1894 }
1895 _ACEOF
1896 rm -f conftest.o conftest.obj
1897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1898 (eval $ac_compile) 2>&5
1899 ac_status=$?
1900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1901 (exit $ac_status); }; then
1902 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1903 case $ac_file in
1904 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1905 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1906 break;;
1907 esac
1908 done
1909 else
1910 echo "$as_me: failed program was:" >&5
1911 sed 's/^/| /' conftest.$ac_ext >&5
1912
1913 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1914 See \`config.log' for more details." >&5
1915 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1916 See \`config.log' for more details." >&2;}
1917 { (exit 1); exit 1; }; }
1918 fi
1919
1920 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1921 fi
1922 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1923 echo "${ECHO_T}$ac_cv_objext" >&6
1924 OBJEXT=$ac_cv_objext
1925 ac_objext=$OBJEXT
1926 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1927 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1928 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1929 echo $ECHO_N "(cached) $ECHO_C" >&6
1930 else
1931 cat >conftest.$ac_ext <<_ACEOF
1932 /* confdefs.h. */
1933 _ACEOF
1934 cat confdefs.h >>conftest.$ac_ext
1935 cat >>conftest.$ac_ext <<_ACEOF
1936 /* end confdefs.h. */
1937
1938 int
1939 main ()
1940 {
1941 #ifndef __GNUC__
1942 choke me
1943 #endif
1944
1945 ;
1946 return 0;
1947 }
1948 _ACEOF
1949 rm -f conftest.$ac_objext
1950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1951 (eval $ac_compile) 2>conftest.er1
1952 ac_status=$?
1953 grep -v '^ *+' conftest.er1 >conftest.err
1954 rm -f conftest.er1
1955 cat conftest.err >&5
1956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1957 (exit $ac_status); } &&
1958 { ac_try='test -z "$ac_c_werror_flag"
1959 || test ! -s conftest.err'
1960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1961 (eval $ac_try) 2>&5
1962 ac_status=$?
1963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964 (exit $ac_status); }; } &&
1965 { ac_try='test -s conftest.$ac_objext'
1966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1967 (eval $ac_try) 2>&5
1968 ac_status=$?
1969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1970 (exit $ac_status); }; }; then
1971 ac_compiler_gnu=yes
1972 else
1973 echo "$as_me: failed program was:" >&5
1974 sed 's/^/| /' conftest.$ac_ext >&5
1975
1976 ac_compiler_gnu=no
1977 fi
1978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1979 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1980
1981 fi
1982 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1983 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1984 GCC=`test $ac_compiler_gnu = yes && echo yes`
1985 ac_test_CFLAGS=${CFLAGS+set}
1986 ac_save_CFLAGS=$CFLAGS
1987 CFLAGS="-g"
1988 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1989 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1990 if test "${ac_cv_prog_cc_g+set}" = set; then
1991 echo $ECHO_N "(cached) $ECHO_C" >&6
1992 else
1993 cat >conftest.$ac_ext <<_ACEOF
1994 /* confdefs.h. */
1995 _ACEOF
1996 cat confdefs.h >>conftest.$ac_ext
1997 cat >>conftest.$ac_ext <<_ACEOF
1998 /* end confdefs.h. */
1999
2000 int
2001 main ()
2002 {
2003
2004 ;
2005 return 0;
2006 }
2007 _ACEOF
2008 rm -f conftest.$ac_objext
2009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2010 (eval $ac_compile) 2>conftest.er1
2011 ac_status=$?
2012 grep -v '^ *+' conftest.er1 >conftest.err
2013 rm -f conftest.er1
2014 cat conftest.err >&5
2015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2016 (exit $ac_status); } &&
2017 { ac_try='test -z "$ac_c_werror_flag"
2018 || test ! -s conftest.err'
2019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2020 (eval $ac_try) 2>&5
2021 ac_status=$?
2022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2023 (exit $ac_status); }; } &&
2024 { ac_try='test -s conftest.$ac_objext'
2025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2026 (eval $ac_try) 2>&5
2027 ac_status=$?
2028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2029 (exit $ac_status); }; }; then
2030 ac_cv_prog_cc_g=yes
2031 else
2032 echo "$as_me: failed program was:" >&5
2033 sed 's/^/| /' conftest.$ac_ext >&5
2034
2035 ac_cv_prog_cc_g=no
2036 fi
2037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2038 fi
2039 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2040 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2041 if test "$ac_test_CFLAGS" = set; then
2042 CFLAGS=$ac_save_CFLAGS
2043 elif test $ac_cv_prog_cc_g = yes; then
2044 if test "$GCC" = yes; then
2045 CFLAGS="-g -O2"
2046 else
2047 CFLAGS="-g"
2048 fi
2049 else
2050 if test "$GCC" = yes; then
2051 CFLAGS="-O2"
2052 else
2053 CFLAGS=
2054 fi
2055 fi
2056 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2057 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2058 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2059 echo $ECHO_N "(cached) $ECHO_C" >&6
2060 else
2061 ac_cv_prog_cc_stdc=no
2062 ac_save_CC=$CC
2063 cat >conftest.$ac_ext <<_ACEOF
2064 /* confdefs.h. */
2065 _ACEOF
2066 cat confdefs.h >>conftest.$ac_ext
2067 cat >>conftest.$ac_ext <<_ACEOF
2068 /* end confdefs.h. */
2069 #include <stdarg.h>
2070 #include <stdio.h>
2071 #include <sys/types.h>
2072 #include <sys/stat.h>
2073 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2074 struct buf { int x; };
2075 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2076 static char *e (p, i)
2077 char **p;
2078 int i;
2079 {
2080 return p[i];
2081 }
2082 static char *f (char * (*g) (char **, int), char **p, ...)
2083 {
2084 char *s;
2085 va_list v;
2086 va_start (v,p);
2087 s = g (p, va_arg (v,int));
2088 va_end (v);
2089 return s;
2090 }
2091
2092 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2093 function prototypes and stuff, but not '\xHH' hex character constants.
2094 These don't provoke an error unfortunately, instead are silently treated
2095 as 'x'. The following induces an error, until -std1 is added to get
2096 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2097 array size at least. It's necessary to write '\x00'==0 to get something
2098 that's true only with -std1. */
2099 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2100
2101 int test (int i, double x);
2102 struct s1 {int (*f) (int a);};
2103 struct s2 {int (*f) (double a);};
2104 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2105 int argc;
2106 char **argv;
2107 int
2108 main ()
2109 {
2110 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2111 ;
2112 return 0;
2113 }
2114 _ACEOF
2115 # Don't try gcc -ansi; that turns off useful extensions and
2116 # breaks some systems' header files.
2117 # AIX -qlanglvl=ansi
2118 # Ultrix and OSF/1 -std1
2119 # HP-UX 10.20 and later -Ae
2120 # HP-UX older versions -Aa -D_HPUX_SOURCE
2121 # SVR4 -Xc -D__EXTENSIONS__
2122 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2123 do
2124 CC="$ac_save_CC $ac_arg"
2125 rm -f conftest.$ac_objext
2126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2127 (eval $ac_compile) 2>conftest.er1
2128 ac_status=$?
2129 grep -v '^ *+' conftest.er1 >conftest.err
2130 rm -f conftest.er1
2131 cat conftest.err >&5
2132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133 (exit $ac_status); } &&
2134 { ac_try='test -z "$ac_c_werror_flag"
2135 || test ! -s conftest.err'
2136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2137 (eval $ac_try) 2>&5
2138 ac_status=$?
2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 (exit $ac_status); }; } &&
2141 { ac_try='test -s conftest.$ac_objext'
2142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2143 (eval $ac_try) 2>&5
2144 ac_status=$?
2145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146 (exit $ac_status); }; }; then
2147 ac_cv_prog_cc_stdc=$ac_arg
2148 break
2149 else
2150 echo "$as_me: failed program was:" >&5
2151 sed 's/^/| /' conftest.$ac_ext >&5
2152
2153 fi
2154 rm -f conftest.err conftest.$ac_objext
2155 done
2156 rm -f conftest.$ac_ext conftest.$ac_objext
2157 CC=$ac_save_CC
2158
2159 fi
2160
2161 case "x$ac_cv_prog_cc_stdc" in
2162 x|xno)
2163 echo "$as_me:$LINENO: result: none needed" >&5
2164 echo "${ECHO_T}none needed" >&6 ;;
2165 *)
2166 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2167 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2168 CC="$CC $ac_cv_prog_cc_stdc" ;;
2169 esac
2170
2171 # Some people use a C++ compiler to compile C. Since we use `exit',
2172 # in C++ we need to declare it. In case someone uses the same compiler
2173 # for both compiling C and C++ we need to have the C++ compiler decide
2174 # the declaration of exit, since it's the most demanding environment.
2175 cat >conftest.$ac_ext <<_ACEOF
2176 #ifndef __cplusplus
2177 choke me
2178 #endif
2179 _ACEOF
2180 rm -f conftest.$ac_objext
2181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2182 (eval $ac_compile) 2>conftest.er1
2183 ac_status=$?
2184 grep -v '^ *+' conftest.er1 >conftest.err
2185 rm -f conftest.er1
2186 cat conftest.err >&5
2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); } &&
2189 { ac_try='test -z "$ac_c_werror_flag"
2190 || test ! -s conftest.err'
2191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2192 (eval $ac_try) 2>&5
2193 ac_status=$?
2194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195 (exit $ac_status); }; } &&
2196 { ac_try='test -s conftest.$ac_objext'
2197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2198 (eval $ac_try) 2>&5
2199 ac_status=$?
2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201 (exit $ac_status); }; }; then
2202 for ac_declaration in \
2203 '' \
2204 'extern "C" void std::exit (int) throw (); using std::exit;' \
2205 'extern "C" void std::exit (int); using std::exit;' \
2206 'extern "C" void exit (int) throw ();' \
2207 'extern "C" void exit (int);' \
2208 'void exit (int);'
2209 do
2210 cat >conftest.$ac_ext <<_ACEOF
2211 /* confdefs.h. */
2212 _ACEOF
2213 cat confdefs.h >>conftest.$ac_ext
2214 cat >>conftest.$ac_ext <<_ACEOF
2215 /* end confdefs.h. */
2216 $ac_declaration
2217 #include <stdlib.h>
2218 int
2219 main ()
2220 {
2221 exit (42);
2222 ;
2223 return 0;
2224 }
2225 _ACEOF
2226 rm -f conftest.$ac_objext
2227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2228 (eval $ac_compile) 2>conftest.er1
2229 ac_status=$?
2230 grep -v '^ *+' conftest.er1 >conftest.err
2231 rm -f conftest.er1
2232 cat conftest.err >&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); } &&
2235 { ac_try='test -z "$ac_c_werror_flag"
2236 || test ! -s conftest.err'
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 (eval $ac_try) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; } &&
2242 { ac_try='test -s conftest.$ac_objext'
2243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244 (eval $ac_try) 2>&5
2245 ac_status=$?
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; }; then
2248 :
2249 else
2250 echo "$as_me: failed program was:" >&5
2251 sed 's/^/| /' conftest.$ac_ext >&5
2252
2253 continue
2254 fi
2255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2256 cat >conftest.$ac_ext <<_ACEOF
2257 /* confdefs.h. */
2258 _ACEOF
2259 cat confdefs.h >>conftest.$ac_ext
2260 cat >>conftest.$ac_ext <<_ACEOF
2261 /* end confdefs.h. */
2262 $ac_declaration
2263 int
2264 main ()
2265 {
2266 exit (42);
2267 ;
2268 return 0;
2269 }
2270 _ACEOF
2271 rm -f conftest.$ac_objext
2272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2273 (eval $ac_compile) 2>conftest.er1
2274 ac_status=$?
2275 grep -v '^ *+' conftest.er1 >conftest.err
2276 rm -f conftest.er1
2277 cat conftest.err >&5
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); } &&
2280 { ac_try='test -z "$ac_c_werror_flag"
2281 || test ! -s conftest.err'
2282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283 (eval $ac_try) 2>&5
2284 ac_status=$?
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); }; } &&
2287 { ac_try='test -s conftest.$ac_objext'
2288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2289 (eval $ac_try) 2>&5
2290 ac_status=$?
2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292 (exit $ac_status); }; }; then
2293 break
2294 else
2295 echo "$as_me: failed program was:" >&5
2296 sed 's/^/| /' conftest.$ac_ext >&5
2297
2298 fi
2299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2300 done
2301 rm -f conftest*
2302 if test -n "$ac_declaration"; then
2303 echo '#ifdef __cplusplus' >>confdefs.h
2304 echo $ac_declaration >>confdefs.h
2305 echo '#endif' >>confdefs.h
2306 fi
2307
2308 else
2309 echo "$as_me: failed program was:" >&5
2310 sed 's/^/| /' conftest.$ac_ext >&5
2311
2312 fi
2313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2314 ac_ext=c
2315 ac_cpp='$CPP $CPPFLAGS'
2316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2319
2320 ac_ext=cc
2321 ac_cpp='$CXXCPP $CPPFLAGS'
2322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2325 if test -n "$ac_tool_prefix"; then
2326 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2327 do
2328 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2329 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2330 echo "$as_me:$LINENO: checking for $ac_word" >&5
2331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2332 if test "${ac_cv_prog_CXX+set}" = set; then
2333 echo $ECHO_N "(cached) $ECHO_C" >&6
2334 else
2335 if test -n "$CXX"; then
2336 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2337 else
2338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2339 for as_dir in $PATH
2340 do
2341 IFS=$as_save_IFS
2342 test -z "$as_dir" && as_dir=.
2343 for ac_exec_ext in '' $ac_executable_extensions; do
2344 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2345 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2347 break 2
2348 fi
2349 done
2350 done
2351
2352 fi
2353 fi
2354 CXX=$ac_cv_prog_CXX
2355 if test -n "$CXX"; then
2356 echo "$as_me:$LINENO: result: $CXX" >&5
2357 echo "${ECHO_T}$CXX" >&6
2358 else
2359 echo "$as_me:$LINENO: result: no" >&5
2360 echo "${ECHO_T}no" >&6
2361 fi
2362
2363 test -n "$CXX" && break
2364 done
2365 fi
2366 if test -z "$CXX"; then
2367 ac_ct_CXX=$CXX
2368 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2369 do
2370 # Extract the first word of "$ac_prog", so it can be a program name with args.
2371 set dummy $ac_prog; ac_word=$2
2372 echo "$as_me:$LINENO: checking for $ac_word" >&5
2373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2374 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2375 echo $ECHO_N "(cached) $ECHO_C" >&6
2376 else
2377 if test -n "$ac_ct_CXX"; then
2378 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2379 else
2380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381 for as_dir in $PATH
2382 do
2383 IFS=$as_save_IFS
2384 test -z "$as_dir" && as_dir=.
2385 for ac_exec_ext in '' $ac_executable_extensions; do
2386 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2387 ac_cv_prog_ac_ct_CXX="$ac_prog"
2388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2389 break 2
2390 fi
2391 done
2392 done
2393
2394 fi
2395 fi
2396 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2397 if test -n "$ac_ct_CXX"; then
2398 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2399 echo "${ECHO_T}$ac_ct_CXX" >&6
2400 else
2401 echo "$as_me:$LINENO: result: no" >&5
2402 echo "${ECHO_T}no" >&6
2403 fi
2404
2405 test -n "$ac_ct_CXX" && break
2406 done
2407 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2408
2409 CXX=$ac_ct_CXX
2410 fi
2411
2412
2413 # Provide some information about the compiler.
2414 echo "$as_me:$LINENO:" \
2415 "checking for C++ compiler version" >&5
2416 ac_compiler=`set X $ac_compile; echo $2`
2417 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2418 (eval $ac_compiler --version </dev/null >&5) 2>&5
2419 ac_status=$?
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }
2422 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2423 (eval $ac_compiler -v </dev/null >&5) 2>&5
2424 ac_status=$?
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); }
2427 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2428 (eval $ac_compiler -V </dev/null >&5) 2>&5
2429 ac_status=$?
2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); }
2432
2433 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2434 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2435 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
2437 else
2438 cat >conftest.$ac_ext <<_ACEOF
2439 /* confdefs.h. */
2440 _ACEOF
2441 cat confdefs.h >>conftest.$ac_ext
2442 cat >>conftest.$ac_ext <<_ACEOF
2443 /* end confdefs.h. */
2444
2445 int
2446 main ()
2447 {
2448 #ifndef __GNUC__
2449 choke me
2450 #endif
2451
2452 ;
2453 return 0;
2454 }
2455 _ACEOF
2456 rm -f conftest.$ac_objext
2457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2458 (eval $ac_compile) 2>conftest.er1
2459 ac_status=$?
2460 grep -v '^ *+' conftest.er1 >conftest.err
2461 rm -f conftest.er1
2462 cat conftest.err >&5
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); } &&
2465 { ac_try='test -z "$ac_cxx_werror_flag"
2466 || test ! -s conftest.err'
2467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2468 (eval $ac_try) 2>&5
2469 ac_status=$?
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; } &&
2472 { ac_try='test -s conftest.$ac_objext'
2473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2474 (eval $ac_try) 2>&5
2475 ac_status=$?
2476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477 (exit $ac_status); }; }; then
2478 ac_compiler_gnu=yes
2479 else
2480 echo "$as_me: failed program was:" >&5
2481 sed 's/^/| /' conftest.$ac_ext >&5
2482
2483 ac_compiler_gnu=no
2484 fi
2485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2486 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2487
2488 fi
2489 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2490 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2491 GXX=`test $ac_compiler_gnu = yes && echo yes`
2492 ac_test_CXXFLAGS=${CXXFLAGS+set}
2493 ac_save_CXXFLAGS=$CXXFLAGS
2494 CXXFLAGS="-g"
2495 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2496 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2497 if test "${ac_cv_prog_cxx_g+set}" = set; then
2498 echo $ECHO_N "(cached) $ECHO_C" >&6
2499 else
2500 cat >conftest.$ac_ext <<_ACEOF
2501 /* confdefs.h. */
2502 _ACEOF
2503 cat confdefs.h >>conftest.$ac_ext
2504 cat >>conftest.$ac_ext <<_ACEOF
2505 /* end confdefs.h. */
2506
2507 int
2508 main ()
2509 {
2510
2511 ;
2512 return 0;
2513 }
2514 _ACEOF
2515 rm -f conftest.$ac_objext
2516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2517 (eval $ac_compile) 2>conftest.er1
2518 ac_status=$?
2519 grep -v '^ *+' conftest.er1 >conftest.err
2520 rm -f conftest.er1
2521 cat conftest.err >&5
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); } &&
2524 { ac_try='test -z "$ac_cxx_werror_flag"
2525 || test ! -s conftest.err'
2526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2527 (eval $ac_try) 2>&5
2528 ac_status=$?
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }; } &&
2531 { ac_try='test -s conftest.$ac_objext'
2532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2533 (eval $ac_try) 2>&5
2534 ac_status=$?
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }; }; then
2537 ac_cv_prog_cxx_g=yes
2538 else
2539 echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2541
2542 ac_cv_prog_cxx_g=no
2543 fi
2544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2545 fi
2546 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2547 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2548 if test "$ac_test_CXXFLAGS" = set; then
2549 CXXFLAGS=$ac_save_CXXFLAGS
2550 elif test $ac_cv_prog_cxx_g = yes; then
2551 if test "$GXX" = yes; then
2552 CXXFLAGS="-g -O2"
2553 else
2554 CXXFLAGS="-g"
2555 fi
2556 else
2557 if test "$GXX" = yes; then
2558 CXXFLAGS="-O2"
2559 else
2560 CXXFLAGS=
2561 fi
2562 fi
2563 for ac_declaration in \
2564 '' \
2565 'extern "C" void std::exit (int) throw (); using std::exit;' \
2566 'extern "C" void std::exit (int); using std::exit;' \
2567 'extern "C" void exit (int) throw ();' \
2568 'extern "C" void exit (int);' \
2569 'void exit (int);'
2570 do
2571 cat >conftest.$ac_ext <<_ACEOF
2572 /* confdefs.h. */
2573 _ACEOF
2574 cat confdefs.h >>conftest.$ac_ext
2575 cat >>conftest.$ac_ext <<_ACEOF
2576 /* end confdefs.h. */
2577 $ac_declaration
2578 #include <stdlib.h>
2579 int
2580 main ()
2581 {
2582 exit (42);
2583 ;
2584 return 0;
2585 }
2586 _ACEOF
2587 rm -f conftest.$ac_objext
2588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2589 (eval $ac_compile) 2>conftest.er1
2590 ac_status=$?
2591 grep -v '^ *+' conftest.er1 >conftest.err
2592 rm -f conftest.er1
2593 cat conftest.err >&5
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); } &&
2596 { ac_try='test -z "$ac_cxx_werror_flag"
2597 || test ! -s conftest.err'
2598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599 (eval $ac_try) 2>&5
2600 ac_status=$?
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); }; } &&
2603 { ac_try='test -s conftest.$ac_objext'
2604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605 (eval $ac_try) 2>&5
2606 ac_status=$?
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); }; }; then
2609 :
2610 else
2611 echo "$as_me: failed program was:" >&5
2612 sed 's/^/| /' conftest.$ac_ext >&5
2613
2614 continue
2615 fi
2616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2617 cat >conftest.$ac_ext <<_ACEOF
2618 /* confdefs.h. */
2619 _ACEOF
2620 cat confdefs.h >>conftest.$ac_ext
2621 cat >>conftest.$ac_ext <<_ACEOF
2622 /* end confdefs.h. */
2623 $ac_declaration
2624 int
2625 main ()
2626 {
2627 exit (42);
2628 ;
2629 return 0;
2630 }
2631 _ACEOF
2632 rm -f conftest.$ac_objext
2633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2634 (eval $ac_compile) 2>conftest.er1
2635 ac_status=$?
2636 grep -v '^ *+' conftest.er1 >conftest.err
2637 rm -f conftest.er1
2638 cat conftest.err >&5
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); } &&
2641 { ac_try='test -z "$ac_cxx_werror_flag"
2642 || test ! -s conftest.err'
2643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2644 (eval $ac_try) 2>&5
2645 ac_status=$?
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); }; } &&
2648 { ac_try='test -s conftest.$ac_objext'
2649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2650 (eval $ac_try) 2>&5
2651 ac_status=$?
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); }; }; then
2654 break
2655 else
2656 echo "$as_me: failed program was:" >&5
2657 sed 's/^/| /' conftest.$ac_ext >&5
2658
2659 fi
2660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2661 done
2662 rm -f conftest*
2663 if test -n "$ac_declaration"; then
2664 echo '#ifdef __cplusplus' >>confdefs.h
2665 echo $ac_declaration >>confdefs.h
2666 echo '#endif' >>confdefs.h
2667 fi
2668
2669 ac_ext=c
2670 ac_cpp='$CPP $CPPFLAGS'
2671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2674
2675 ac_ext=c
2676 ac_cpp='$CPP $CPPFLAGS'
2677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2680 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2681 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2682 # On Suns, sometimes $CPP names a directory.
2683 if test -n "$CPP" && test -d "$CPP"; then
2684 CPP=
2685 fi
2686 if test -z "$CPP"; then
2687 if test "${ac_cv_prog_CPP+set}" = set; then
2688 echo $ECHO_N "(cached) $ECHO_C" >&6
2689 else
2690 # Double quotes because CPP needs to be expanded
2691 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2692 do
2693 ac_preproc_ok=false
2694 for ac_c_preproc_warn_flag in '' yes
2695 do
2696 # Use a header file that comes with gcc, so configuring glibc
2697 # with a fresh cross-compiler works.
2698 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2699 # <limits.h> exists even on freestanding compilers.
2700 # On the NeXT, cc -E runs the code through the compiler's parser,
2701 # not just through cpp. "Syntax error" is here to catch this case.
2702 cat >conftest.$ac_ext <<_ACEOF
2703 /* confdefs.h. */
2704 _ACEOF
2705 cat confdefs.h >>conftest.$ac_ext
2706 cat >>conftest.$ac_ext <<_ACEOF
2707 /* end confdefs.h. */
2708 #ifdef __STDC__
2709 # include <limits.h>
2710 #else
2711 # include <assert.h>
2712 #endif
2713 Syntax error
2714 _ACEOF
2715 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2716 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2717 ac_status=$?
2718 grep -v '^ *+' conftest.er1 >conftest.err
2719 rm -f conftest.er1
2720 cat conftest.err >&5
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); } >/dev/null; then
2723 if test -s conftest.err; then
2724 ac_cpp_err=$ac_c_preproc_warn_flag
2725 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2726 else
2727 ac_cpp_err=
2728 fi
2729 else
2730 ac_cpp_err=yes
2731 fi
2732 if test -z "$ac_cpp_err"; then
2733 :
2734 else
2735 echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2737
2738 # Broken: fails on valid input.
2739 continue
2740 fi
2741 rm -f conftest.err conftest.$ac_ext
2742
2743 # OK, works on sane cases. Now check whether non-existent headers
2744 # can be detected and how.
2745 cat >conftest.$ac_ext <<_ACEOF
2746 /* confdefs.h. */
2747 _ACEOF
2748 cat confdefs.h >>conftest.$ac_ext
2749 cat >>conftest.$ac_ext <<_ACEOF
2750 /* end confdefs.h. */
2751 #include <ac_nonexistent.h>
2752 _ACEOF
2753 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2754 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2755 ac_status=$?
2756 grep -v '^ *+' conftest.er1 >conftest.err
2757 rm -f conftest.er1
2758 cat conftest.err >&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); } >/dev/null; then
2761 if test -s conftest.err; then
2762 ac_cpp_err=$ac_c_preproc_warn_flag
2763 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2764 else
2765 ac_cpp_err=
2766 fi
2767 else
2768 ac_cpp_err=yes
2769 fi
2770 if test -z "$ac_cpp_err"; then
2771 # Broken: success on invalid input.
2772 continue
2773 else
2774 echo "$as_me: failed program was:" >&5
2775 sed 's/^/| /' conftest.$ac_ext >&5
2776
2777 # Passes both tests.
2778 ac_preproc_ok=:
2779 break
2780 fi
2781 rm -f conftest.err conftest.$ac_ext
2782
2783 done
2784 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2785 rm -f conftest.err conftest.$ac_ext
2786 if $ac_preproc_ok; then
2787 break
2788 fi
2789
2790 done
2791 ac_cv_prog_CPP=$CPP
2792
2793 fi
2794 CPP=$ac_cv_prog_CPP
2795 else
2796 ac_cv_prog_CPP=$CPP
2797 fi
2798 echo "$as_me:$LINENO: result: $CPP" >&5
2799 echo "${ECHO_T}$CPP" >&6
2800 ac_preproc_ok=false
2801 for ac_c_preproc_warn_flag in '' yes
2802 do
2803 # Use a header file that comes with gcc, so configuring glibc
2804 # with a fresh cross-compiler works.
2805 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2806 # <limits.h> exists even on freestanding compilers.
2807 # On the NeXT, cc -E runs the code through the compiler's parser,
2808 # not just through cpp. "Syntax error" is here to catch this case.
2809 cat >conftest.$ac_ext <<_ACEOF
2810 /* confdefs.h. */
2811 _ACEOF
2812 cat confdefs.h >>conftest.$ac_ext
2813 cat >>conftest.$ac_ext <<_ACEOF
2814 /* end confdefs.h. */
2815 #ifdef __STDC__
2816 # include <limits.h>
2817 #else
2818 # include <assert.h>
2819 #endif
2820 Syntax error
2821 _ACEOF
2822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2823 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2824 ac_status=$?
2825 grep -v '^ *+' conftest.er1 >conftest.err
2826 rm -f conftest.er1
2827 cat conftest.err >&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); } >/dev/null; then
2830 if test -s conftest.err; then
2831 ac_cpp_err=$ac_c_preproc_warn_flag
2832 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2833 else
2834 ac_cpp_err=
2835 fi
2836 else
2837 ac_cpp_err=yes
2838 fi
2839 if test -z "$ac_cpp_err"; then
2840 :
2841 else
2842 echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2844
2845 # Broken: fails on valid input.
2846 continue
2847 fi
2848 rm -f conftest.err conftest.$ac_ext
2849
2850 # OK, works on sane cases. Now check whether non-existent headers
2851 # can be detected and how.
2852 cat >conftest.$ac_ext <<_ACEOF
2853 /* confdefs.h. */
2854 _ACEOF
2855 cat confdefs.h >>conftest.$ac_ext
2856 cat >>conftest.$ac_ext <<_ACEOF
2857 /* end confdefs.h. */
2858 #include <ac_nonexistent.h>
2859 _ACEOF
2860 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2861 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2862 ac_status=$?
2863 grep -v '^ *+' conftest.er1 >conftest.err
2864 rm -f conftest.er1
2865 cat conftest.err >&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); } >/dev/null; then
2868 if test -s conftest.err; then
2869 ac_cpp_err=$ac_c_preproc_warn_flag
2870 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2871 else
2872 ac_cpp_err=
2873 fi
2874 else
2875 ac_cpp_err=yes
2876 fi
2877 if test -z "$ac_cpp_err"; then
2878 # Broken: success on invalid input.
2879 continue
2880 else
2881 echo "$as_me: failed program was:" >&5
2882 sed 's/^/| /' conftest.$ac_ext >&5
2883
2884 # Passes both tests.
2885 ac_preproc_ok=:
2886 break
2887 fi
2888 rm -f conftest.err conftest.$ac_ext
2889
2890 done
2891 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2892 rm -f conftest.err conftest.$ac_ext
2893 if $ac_preproc_ok; then
2894 :
2895 else
2896 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2897 See \`config.log' for more details." >&5
2898 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2899 See \`config.log' for more details." >&2;}
2900 { (exit 1); exit 1; }; }
2901 fi
2902
2903 ac_ext=c
2904 ac_cpp='$CPP $CPPFLAGS'
2905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2908
2909
2910 ac_aux_dir=
2911 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2912 if test -f $ac_dir/install-sh; then
2913 ac_aux_dir=$ac_dir
2914 ac_install_sh="$ac_aux_dir/install-sh -c"
2915 break
2916 elif test -f $ac_dir/install.sh; then
2917 ac_aux_dir=$ac_dir
2918 ac_install_sh="$ac_aux_dir/install.sh -c"
2919 break
2920 elif test -f $ac_dir/shtool; then
2921 ac_aux_dir=$ac_dir
2922 ac_install_sh="$ac_aux_dir/shtool install -c"
2923 break
2924 fi
2925 done
2926 if test -z "$ac_aux_dir"; then
2927 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2928 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2929 { (exit 1); exit 1; }; }
2930 fi
2931 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2932 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2933 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2934
2935 # Find a good install program. We prefer a C program (faster),
2936 # so one script is as good as another. But avoid the broken or
2937 # incompatible versions:
2938 # SysV /etc/install, /usr/sbin/install
2939 # SunOS /usr/etc/install
2940 # IRIX /sbin/install
2941 # AIX /bin/install
2942 # AmigaOS /C/install, which installs bootblocks on floppy discs
2943 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2944 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2945 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2946 # OS/2's system install, which has a completely different semantic
2947 # ./install, which can be erroneously created by make from ./install.sh.
2948 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2949 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2950 if test -z "$INSTALL"; then
2951 if test "${ac_cv_path_install+set}" = set; then
2952 echo $ECHO_N "(cached) $ECHO_C" >&6
2953 else
2954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955 for as_dir in $PATH
2956 do
2957 IFS=$as_save_IFS
2958 test -z "$as_dir" && as_dir=.
2959 # Account for people who put trailing slashes in PATH elements.
2960 case $as_dir/ in
2961 ./ | .// | /cC/* | \
2962 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2963 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2964 /usr/ucb/* ) ;;
2965 *)
2966 # OSF1 and SCO ODT 3.0 have their own names for install.
2967 # Don't use installbsd from OSF since it installs stuff as root
2968 # by default.
2969 for ac_prog in ginstall scoinst install; do
2970 for ac_exec_ext in '' $ac_executable_extensions; do
2971 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2972 if test $ac_prog = install &&
2973 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2974 # AIX install. It has an incompatible calling convention.
2975 :
2976 elif test $ac_prog = install &&
2977 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2978 # program-specific install script used by HP pwplus--don't use.
2979 :
2980 else
2981 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2982 break 3
2983 fi
2984 fi
2985 done
2986 done
2987 ;;
2988 esac
2989 done
2990
2991
2992 fi
2993 if test "${ac_cv_path_install+set}" = set; then
2994 INSTALL=$ac_cv_path_install
2995 else
2996 # As a last resort, use the slow shell script. We don't cache a
2997 # path for INSTALL within a source directory, because that will
2998 # break other packages using the cache if that directory is
2999 # removed, or if the path is relative.
3000 INSTALL=$ac_install_sh
3001 fi
3002 fi
3003 echo "$as_me:$LINENO: result: $INSTALL" >&5
3004 echo "${ECHO_T}$INSTALL" >&6
3005
3006 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3007 # It thinks the first close brace ends the variable substitution.
3008 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3009
3010 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3011
3012 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3013
3014 for ac_prog in gccmakedep makedepend
3015 do
3016 # Extract the first word of "$ac_prog", so it can be a program name with args.
3017 set dummy $ac_prog; ac_word=$2
3018 echo "$as_me:$LINENO: checking for $ac_word" >&5
3019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3020 if test "${ac_cv_prog_DEPEND+set}" = set; then
3021 echo $ECHO_N "(cached) $ECHO_C" >&6
3022 else
3023 if test -n "$DEPEND"; then
3024 ac_cv_prog_DEPEND="$DEPEND" # Let the user override the test.
3025 else
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027 for as_dir in $PATH
3028 do
3029 IFS=$as_save_IFS
3030 test -z "$as_dir" && as_dir=.
3031 for ac_exec_ext in '' $ac_executable_extensions; do
3032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3033 ac_cv_prog_DEPEND="$ac_prog"
3034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3035 break 2
3036 fi
3037 done
3038 done
3039
3040 fi
3041 fi
3042 DEPEND=$ac_cv_prog_DEPEND
3043 if test -n "$DEPEND"; then
3044 echo "$as_me:$LINENO: result: $DEPEND" >&5
3045 echo "${ECHO_T}$DEPEND" >&6
3046 else
3047 echo "$as_me:$LINENO: result: no" >&5
3048 echo "${ECHO_T}no" >&6
3049 fi
3050
3051 test -n "$DEPEND" && break
3052 done
3053 test -n "$DEPEND" || DEPEND="true"
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066 FOUND_AALIB="no"
3067 FOUND_ALSA="no"
3068 FOUND_DV="no"
3069 FOUND_LQT="no"
3070 FOUND_MOTIF="no"
3071 FOUND_OS="unknown"
3072 FOUND_X11="no"
3073 FOUND_GL="no"
3074 FOUND_ZVBI="no"
3075
3076 case "`uname -s`" in
3077 Linux)
3078 FOUND_OS="linux"
3079 ;;
3080 OpenBSD | FreeBSD | NetBSD)
3081 # *BSD has important stuff (from ports)
3082 # in /usr/local ...
3083 CFLAGS="$CFLAGS -I/usr/local/include -L/usr/local/lib"
3084 LDLIBS="$LDLIBS -L/usr/local/lib"
3085 FOUND_OS="bsd"
3086 ;;
3087 *)
3088 echo "$as_me:$LINENO: checking if xawtv will build on \`uname -s\`" >&5
3089 echo $ECHO_N "checking if xawtv will build on \`uname -s\`... $ECHO_C" >&6
3090 echo "$as_me:$LINENO: result: maybe" >&5
3091 echo "${ECHO_T}maybe" >&6
3092 FOUND_OS="unknown"
3093 ;;
3094 esac
3095
3096
3097
3098
3099
3100 echo "$as_me:$LINENO: checking for egrep" >&5
3101 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3102 if test "${ac_cv_prog_egrep+set}" = set; then
3103 echo $ECHO_N "(cached) $ECHO_C" >&6
3104 else
3105 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3106 then ac_cv_prog_egrep='grep -E'
3107 else ac_cv_prog_egrep='egrep'
3108 fi
3109 fi
3110 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3111 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3112 EGREP=$ac_cv_prog_egrep
3113
3114
3115 cat >conftest.$ac_ext <<_ACEOF
3116 /* confdefs.h. */
3117 _ACEOF
3118 cat confdefs.h >>conftest.$ac_ext
3119 cat >>conftest.$ac_ext <<_ACEOF
3120 /* end confdefs.h. */
3121 #include <sys/socket.h>
3122
3123 _ACEOF
3124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3125 $EGREP "sockaddr_storage" >/dev/null 2>&1; then
3126
3127 cat >>confdefs.h <<\_ACEOF
3128 #define HAVE_SOCKADDR_STORAGE 1
3129 _ACEOF
3130
3131 fi
3132 rm -f conftest*
3133
3134 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3135 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3136 if test "${ac_cv_header_stdc+set}" = set; then
3137 echo $ECHO_N "(cached) $ECHO_C" >&6
3138 else
3139 cat >conftest.$ac_ext <<_ACEOF
3140 /* confdefs.h. */
3141 _ACEOF
3142 cat confdefs.h >>conftest.$ac_ext
3143 cat >>conftest.$ac_ext <<_ACEOF
3144 /* end confdefs.h. */
3145 #include <stdlib.h>
3146 #include <stdarg.h>
3147 #include <string.h>
3148 #include <float.h>
3149
3150 int
3151 main ()
3152 {
3153
3154 ;
3155 return 0;
3156 }
3157 _ACEOF
3158 rm -f conftest.$ac_objext
3159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3160 (eval $ac_compile) 2>conftest.er1
3161 ac_status=$?
3162 grep -v '^ *+' conftest.er1 >conftest.err
3163 rm -f conftest.er1
3164 cat conftest.err >&5
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); } &&
3167 { ac_try='test -z "$ac_c_werror_flag"
3168 || test ! -s conftest.err'
3169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3170 (eval $ac_try) 2>&5
3171 ac_status=$?
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); }; } &&
3174 { ac_try='test -s conftest.$ac_objext'
3175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3176 (eval $ac_try) 2>&5
3177 ac_status=$?
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }; }; then
3180 ac_cv_header_stdc=yes
3181 else
3182 echo "$as_me: failed program was:" >&5
3183 sed 's/^/| /' conftest.$ac_ext >&5
3184
3185 ac_cv_header_stdc=no
3186 fi
3187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3188
3189 if test $ac_cv_header_stdc = yes; then
3190 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3191 cat >conftest.$ac_ext <<_ACEOF
3192 /* confdefs.h. */
3193 _ACEOF
3194 cat confdefs.h >>conftest.$ac_ext
3195 cat >>conftest.$ac_ext <<_ACEOF
3196 /* end confdefs.h. */
3197 #include <string.h>
3198
3199 _ACEOF
3200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3201 $EGREP "memchr" >/dev/null 2>&1; then
3202 :
3203 else
3204 ac_cv_header_stdc=no
3205 fi
3206 rm -f conftest*
3207
3208 fi
3209
3210 if test $ac_cv_header_stdc = yes; then
3211 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3212 cat >conftest.$ac_ext <<_ACEOF
3213 /* confdefs.h. */
3214 _ACEOF
3215 cat confdefs.h >>conftest.$ac_ext
3216 cat >>conftest.$ac_ext <<_ACEOF
3217 /* end confdefs.h. */
3218 #include <stdlib.h>
3219
3220 _ACEOF
3221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3222 $EGREP "free" >/dev/null 2>&1; then
3223 :
3224 else
3225 ac_cv_header_stdc=no
3226 fi
3227 rm -f conftest*
3228
3229 fi
3230
3231 if test $ac_cv_header_stdc = yes; then
3232 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3233 if test "$cross_compiling" = yes; then
3234 :
3235 else
3236 cat >conftest.$ac_ext <<_ACEOF
3237 /* confdefs.h. */
3238 _ACEOF
3239 cat confdefs.h >>conftest.$ac_ext
3240 cat >>conftest.$ac_ext <<_ACEOF
3241 /* end confdefs.h. */
3242 #include <ctype.h>
3243 #if ((' ' & 0x0FF) == 0x020)
3244 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3245 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3246 #else
3247 # define ISLOWER(c) \
3248 (('a' <= (c) && (c) <= 'i') \
3249 || ('j' <= (c) && (c) <= 'r') \
3250 || ('s' <= (c) && (c) <= 'z'))
3251 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3252 #endif
3253
3254 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3255 int
3256 main ()
3257 {
3258 int i;
3259 for (i = 0; i < 256; i++)
3260 if (XOR (islower (i), ISLOWER (i))
3261 || toupper (i) != TOUPPER (i))
3262 exit(2);
3263 exit (0);
3264 }
3265 _ACEOF
3266 rm -f conftest$ac_exeext
3267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3268 (eval $ac_link) 2>&5
3269 ac_status=$?
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3273 (eval $ac_try) 2>&5
3274 ac_status=$?
3275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276 (exit $ac_status); }; }; then
3277 :
3278 else
3279 echo "$as_me: program exited with status $ac_status" >&5
3280 echo "$as_me: failed program was:" >&5
3281 sed 's/^/| /' conftest.$ac_ext >&5
3282
3283 ( exit $ac_status )
3284 ac_cv_header_stdc=no
3285 fi
3286 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3287 fi
3288 fi
3289 fi
3290 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3291 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3292 if test $ac_cv_header_stdc = yes; then
3293
3294 cat >>confdefs.h <<\_ACEOF
3295 #define STDC_HEADERS 1
3296 _ACEOF
3297
3298 fi
3299
3300 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3311 inttypes.h stdint.h unistd.h
3312 do
3313 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3314 echo "$as_me:$LINENO: checking for $ac_header" >&5
3315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3316 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3318 else
3319 cat >conftest.$ac_ext <<_ACEOF
3320 /* confdefs.h. */
3321 _ACEOF
3322 cat confdefs.h >>conftest.$ac_ext
3323 cat >>conftest.$ac_ext <<_ACEOF
3324 /* end confdefs.h. */
3325 $ac_includes_default
3326
3327 #include <$ac_header>
3328 _ACEOF
3329 rm -f conftest.$ac_objext
3330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3331 (eval $ac_compile) 2>conftest.er1
3332 ac_status=$?
3333 grep -v '^ *+' conftest.er1 >conftest.err
3334 rm -f conftest.er1
3335 cat conftest.err >&5
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); } &&
3338 { ac_try='test -z "$ac_c_werror_flag"
3339 || test ! -s conftest.err'
3340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3341 (eval $ac_try) 2>&5
3342 ac_status=$?
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }; } &&
3345 { ac_try='test -s conftest.$ac_objext'
3346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3347 (eval $ac_try) 2>&5
3348 ac_status=$?
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; }; then
3351 eval "$as_ac_Header=yes"
3352 else
3353 echo "$as_me: failed program was:" >&5
3354 sed 's/^/| /' conftest.$ac_ext >&5
3355
3356 eval "$as_ac_Header=no"
3357 fi
3358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3359 fi
3360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3362 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3363 cat >>confdefs.h <<_ACEOF
3364 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3365 _ACEOF
3366
3367 fi
3368
3369 done
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381 for ac_header in getopt.h soundcard.h unistd.h sys/select.h sys/soundcard.h alsa/asoundlib.h linux/joystick.h dev/ic/bt8xx.h machine/ioctl_bt848.h
3382 do
3383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3385 echo "$as_me:$LINENO: checking for $ac_header" >&5
3386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3388 echo $ECHO_N "(cached) $ECHO_C" >&6
3389 fi
3390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3391 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3392 else
3393 # Is the header compilable?
3394 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3395 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3396 cat >conftest.$ac_ext <<_ACEOF
3397 /* confdefs.h. */
3398 _ACEOF
3399 cat confdefs.h >>conftest.$ac_ext
3400 cat >>conftest.$ac_ext <<_ACEOF
3401 /* end confdefs.h. */
3402 $ac_includes_default
3403 #include <$ac_header>
3404 _ACEOF
3405 rm -f conftest.$ac_objext
3406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3407 (eval $ac_compile) 2>conftest.er1
3408 ac_status=$?
3409 grep -v '^ *+' conftest.er1 >conftest.err
3410 rm -f conftest.er1
3411 cat conftest.err >&5
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); } &&
3414 { ac_try='test -z "$ac_c_werror_flag"
3415 || test ! -s conftest.err'
3416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3417 (eval $ac_try) 2>&5
3418 ac_status=$?
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); }; } &&
3421 { ac_try='test -s conftest.$ac_objext'
3422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3423 (eval $ac_try) 2>&5
3424 ac_status=$?
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); }; }; then
3427 ac_header_compiler=yes
3428 else
3429 echo "$as_me: failed program was:" >&5
3430 sed 's/^/| /' conftest.$ac_ext >&5
3431
3432 ac_header_compiler=no
3433 fi
3434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3435 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3436 echo "${ECHO_T}$ac_header_compiler" >&6
3437
3438 # Is the header present?
3439 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3440 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3441 cat >conftest.$ac_ext <<_ACEOF
3442 /* confdefs.h. */
3443 _ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h. */
3447 #include <$ac_header>
3448 _ACEOF
3449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3450 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3451 ac_status=$?
3452 grep -v '^ *+' conftest.er1 >conftest.err
3453 rm -f conftest.er1
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } >/dev/null; then
3457 if test -s conftest.err; then
3458 ac_cpp_err=$ac_c_preproc_warn_flag
3459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3460 else
3461 ac_cpp_err=
3462 fi
3463 else
3464 ac_cpp_err=yes
3465 fi
3466 if test -z "$ac_cpp_err"; then
3467 ac_header_preproc=yes
3468 else
3469 echo "$as_me: failed program was:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3471
3472 ac_header_preproc=no
3473 fi
3474 rm -f conftest.err conftest.$ac_ext
3475 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3476 echo "${ECHO_T}$ac_header_preproc" >&6
3477
3478 # So? What about this header?
3479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3480 yes:no: )
3481 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3482 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3484 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3485 ac_header_preproc=yes
3486 ;;
3487 no:yes:* )
3488 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3489 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3490 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3491 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3492 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3493 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3494 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3495 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3497 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3498 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3499 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3500 (
3501 cat <<\_ASBOX
3502 ## ------------------------------------------ ##
3503 ## Report this to the AC_PACKAGE_NAME lists. ##
3504 ## ------------------------------------------ ##
3505 _ASBOX
3506 ) |
3507 sed "s/^/$as_me: WARNING: /" >&2
3508 ;;
3509 esac
3510 echo "$as_me:$LINENO: checking for $ac_header" >&5
3511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3514 else
3515 eval "$as_ac_Header=\$ac_header_preproc"
3516 fi
3517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3519
3520 fi
3521 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3522 cat >>confdefs.h <<_ACEOF
3523 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3524 _ACEOF
3525
3526 fi
3527
3528 done
3529
3530
3531
3532
3533
3534
3535
3536
3537 for ac_func in ftello fseeko getpt getnameinfo getopt_long strcasestr dlopen
3538 do
3539 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3540 echo "$as_me:$LINENO: checking for $ac_func" >&5
3541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3542 if eval "test \"\${$as_ac_var+set}\" = set"; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545 cat >conftest.$ac_ext <<_ACEOF
3546 /* confdefs.h. */
3547 _ACEOF
3548 cat confdefs.h >>conftest.$ac_ext
3549 cat >>conftest.$ac_ext <<_ACEOF
3550 /* end confdefs.h. */
3551 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3553 #define $ac_func innocuous_$ac_func
3554
3555 /* System header to define __stub macros and hopefully few prototypes,
3556 which can conflict with char $ac_func (); below.
3557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3558 <limits.h> exists even on freestanding compilers. */
3559
3560 #ifdef __STDC__
3561 # include <limits.h>
3562 #else
3563 # include <assert.h>
3564 #endif
3565
3566 #undef $ac_func
3567
3568 /* Override any gcc2 internal prototype to avoid an error. */
3569 #ifdef __cplusplus
3570 extern "C"
3571 {
3572 #endif
3573 /* We use char because int might match the return type of a gcc2
3574 builtin and then its argument prototype would still apply. */
3575 char $ac_func ();
3576 /* The GNU C library defines this for functions which it implements
3577 to always fail with ENOSYS. Some functions are actually named
3578 something starting with __ and the normal name is an alias. */
3579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3580 choke me
3581 #else
3582 char (*f) () = $ac_func;
3583 #endif
3584 #ifdef __cplusplus
3585 }
3586 #endif
3587
3588 int
3589 main ()
3590 {
3591 return f != $ac_func;
3592 ;
3593 return 0;
3594 }
3595 _ACEOF
3596 rm -f conftest.$ac_objext conftest$ac_exeext
3597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3598 (eval $ac_link) 2>conftest.er1
3599 ac_status=$?
3600 grep -v '^ *+' conftest.er1 >conftest.err
3601 rm -f conftest.er1
3602 cat conftest.err >&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); } &&
3605 { ac_try='test -z "$ac_c_werror_flag"
3606 || test ! -s conftest.err'
3607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3608 (eval $ac_try) 2>&5
3609 ac_status=$?
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }; } &&
3612 { ac_try='test -s conftest$ac_exeext'
3613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3614 (eval $ac_try) 2>&5
3615 ac_status=$?
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); }; }; then
3618 eval "$as_ac_var=yes"
3619 else
3620 echo "$as_me: failed program was:" >&5
3621 sed 's/^/| /' conftest.$ac_ext >&5
3622
3623 eval "$as_ac_var=no"
3624 fi
3625 rm -f conftest.err conftest.$ac_objext \
3626 conftest$ac_exeext conftest.$ac_ext
3627 fi
3628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3629 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3630 if test `eval echo '${'$as_ac_var'}'` = yes; then
3631 cat >>confdefs.h <<_ACEOF
3632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3633 _ACEOF
3634
3635 fi
3636 done
3637
3638
3639
3640 DLFLAGS=""
3641 if test "$ac_cv_func_dlopen" = "no"; then
3642 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
3643 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
3644 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
3645 echo $ECHO_N "(cached) $ECHO_C" >&6
3646 else
3647 ac_check_lib_save_LIBS=$LIBS
3648 LIBS="-ldl $LIBS"
3649 cat >conftest.$ac_ext <<_ACEOF
3650 /* confdefs.h. */
3651 _ACEOF
3652 cat confdefs.h >>conftest.$ac_ext
3653 cat >>conftest.$ac_ext <<_ACEOF
3654 /* end confdefs.h. */
3655
3656 /* Override any gcc2 internal prototype to avoid an error. */
3657 #ifdef __cplusplus
3658 extern "C"
3659 #endif
3660 /* We use char because int might match the return type of a gcc2
3661 builtin and then its argument prototype would still apply. */
3662 char dlopen ();
3663 int
3664 main ()
3665 {
3666 dlopen ();
3667 ;
3668 return 0;
3669 }
3670 _ACEOF
3671 rm -f conftest.$ac_objext conftest$ac_exeext
3672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3673 (eval $ac_link) 2>conftest.er1
3674 ac_status=$?
3675 grep -v '^ *+' conftest.er1 >conftest.err
3676 rm -f conftest.er1
3677 cat conftest.err >&5
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); } &&
3680 { ac_try='test -z "$ac_c_werror_flag"
3681 || test ! -s conftest.err'
3682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3683 (eval $ac_try) 2>&5
3684 ac_status=$?
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); }; } &&
3687 { ac_try='test -s conftest$ac_exeext'
3688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3689 (eval $ac_try) 2>&5
3690 ac_status=$?
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); }; }; then
3693 ac_cv_lib_dl_dlopen=yes
3694 else
3695 echo "$as_me: failed program was:" >&5
3696 sed 's/^/| /' conftest.$ac_ext >&5
3697
3698 ac_cv_lib_dl_dlopen=no
3699 fi
3700 rm -f conftest.err conftest.$ac_objext \
3701 conftest$ac_exeext conftest.$ac_ext
3702 LIBS=$ac_check_lib_save_LIBS
3703 fi
3704 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
3705 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
3706 if test $ac_cv_lib_dl_dlopen = yes; then
3707 DLFLAGS="-ldl"
3708 fi
3709
3710 fi
3711 echo "$as_me:$LINENO: checking for ELF" >&5
3712 echo $ECHO_N "checking for ELF... $ECHO_C" >&6
3713 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
3714 echo "$as_me:$LINENO: result: yes" >&5
3715 echo "${ECHO_T}yes" >&6
3716 DLFLAGS="$DLFLAGS -Wl,-E"
3717 else
3718 echo "$as_me:$LINENO: result: no" >&5
3719 echo "${ECHO_T}no" >&6
3720 fi
3721
3722 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
3723 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
3724 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
3725 echo $ECHO_N "(cached) $ECHO_C" >&6
3726 else
3727 ac_check_lib_save_LIBS=$LIBS
3728 LIBS="-lpthread $LIBS"
3729 cat >conftest.$ac_ext <<_ACEOF
3730 /* confdefs.h. */
3731 _ACEOF
3732 cat confdefs.h >>conftest.$ac_ext
3733 cat >>conftest.$ac_ext <<_ACEOF
3734 /* end confdefs.h. */
3735
3736 /* Override any gcc2 internal prototype to avoid an error. */
3737 #ifdef __cplusplus
3738 extern "C"
3739 #endif
3740 /* We use char because int might match the return type of a gcc2
3741 builtin and then its argument prototype would still apply. */
3742 char pthread_create ();
3743 int
3744 main ()
3745 {
3746 pthread_create ();
3747 ;
3748 return 0;
3749 }
3750 _ACEOF
3751 rm -f conftest.$ac_objext conftest$ac_exeext
3752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3753 (eval $ac_link) 2>conftest.er1
3754 ac_status=$?
3755 grep -v '^ *+' conftest.er1 >conftest.err
3756 rm -f conftest.er1
3757 cat conftest.err >&5
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); } &&
3760 { ac_try='test -z "$ac_c_werror_flag"
3761 || test ! -s conftest.err'
3762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3763 (eval $ac_try) 2>&5
3764 ac_status=$?
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); }; } &&
3767 { ac_try='test -s conftest$ac_exeext'
3768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3769 (eval $ac_try) 2>&5
3770 ac_status=$?
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); }; }; then
3773 ac_cv_lib_pthread_pthread_create=yes
3774 else
3775 echo "$as_me: failed program was:" >&5
3776 sed 's/^/| /' conftest.$ac_ext >&5
3777
3778 ac_cv_lib_pthread_pthread_create=no
3779 fi
3780 rm -f conftest.err conftest.$ac_objext \
3781 conftest$ac_exeext conftest.$ac_ext
3782 LIBS=$ac_check_lib_save_LIBS
3783 fi
3784 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
3785 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
3786 if test $ac_cv_lib_pthread_pthread_create = yes; then
3787 LIBPTHREAD="-lpthread"
3788 fi
3789
3790 if test "$LIBPTHREAD" = ""; then
3791 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
3792 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
3793 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
3794 echo $ECHO_N "(cached) $ECHO_C" >&6
3795 else
3796 ac_check_lib_save_LIBS=$LIBS
3797 LIBS="-lc_r $LIBS"
3798 cat >conftest.$ac_ext <<_ACEOF
3799 /* confdefs.h. */
3800 _ACEOF
3801 cat confdefs.h >>conftest.$ac_ext
3802 cat >>conftest.$ac_ext <<_ACEOF
3803 /* end confdefs.h. */
3804
3805 /* Override any gcc2 internal prototype to avoid an error. */
3806 #ifdef __cplusplus
3807 extern "C"
3808 #endif
3809 /* We use char because int might match the return type of a gcc2
3810 builtin and then its argument prototype would still apply. */
3811 char pthread_create ();
3812 int
3813 main ()
3814 {
3815 pthread_create ();
3816 ;
3817 return 0;
3818 }
3819 _ACEOF
3820 rm -f conftest.$ac_objext conftest$ac_exeext
3821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3822 (eval $ac_link) 2>conftest.er1
3823 ac_status=$?
3824 grep -v '^ *+' conftest.er1 >conftest.err
3825 rm -f conftest.er1
3826 cat conftest.err >&5
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); } &&
3829 { ac_try='test -z "$ac_c_werror_flag"
3830 || test ! -s conftest.err'
3831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3832 (eval $ac_try) 2>&5
3833 ac_status=$?
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); }; } &&
3836 { ac_try='test -s conftest$ac_exeext'
3837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3838 (eval $ac_try) 2>&5
3839 ac_status=$?
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); }; }; then
3842 ac_cv_lib_c_r_pthread_create=yes
3843 else
3844 echo "$as_me: failed program was:" >&5
3845 sed 's/^/| /' conftest.$ac_ext >&5
3846
3847 ac_cv_lib_c_r_pthread_create=no
3848 fi
3849 rm -f conftest.err conftest.$ac_objext \
3850 conftest$ac_exeext conftest.$ac_ext
3851 LIBS=$ac_check_lib_save_LIBS
3852 fi
3853 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
3854 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
3855 if test $ac_cv_lib_c_r_pthread_create = yes; then
3856 LIBPTHREAD="-lc_r"
3857 fi
3858
3859 fi
3860 echo "$as_me:$LINENO: checking for main in -lossaudio" >&5
3861 echo $ECHO_N "checking for main in -lossaudio... $ECHO_C" >&6
3862 if test "${ac_cv_lib_ossaudio_main+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3864 else
3865 ac_check_lib_save_LIBS=$LIBS
3866 LIBS="-lossaudio $LIBS"
3867 cat >conftest.$ac_ext <<_ACEOF
3868 /* confdefs.h. */
3869 _ACEOF
3870 cat confdefs.h >>conftest.$ac_ext
3871 cat >>conftest.$ac_ext <<_ACEOF
3872 /* end confdefs.h. */
3873
3874
3875 int
3876 main ()
3877 {
3878 main ();
3879 ;
3880 return 0;
3881 }
3882 _ACEOF
3883 rm -f conftest.$ac_objext conftest$ac_exeext
3884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3885 (eval $ac_link) 2>conftest.er1
3886 ac_status=$?
3887 grep -v '^ *+' conftest.er1 >conftest.err
3888 rm -f conftest.er1
3889 cat conftest.err >&5
3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891 (exit $ac_status); } &&
3892 { ac_try='test -z "$ac_c_werror_flag"
3893 || test ! -s conftest.err'
3894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3895 (eval $ac_try) 2>&5
3896 ac_status=$?
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); }; } &&
3899 { ac_try='test -s conftest$ac_exeext'
3900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3901 (eval $ac_try) 2>&5
3902 ac_status=$?
3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904 (exit $ac_status); }; }; then
3905 ac_cv_lib_ossaudio_main=yes
3906 else
3907 echo "$as_me: failed program was:" >&5
3908 sed 's/^/| /' conftest.$ac_ext >&5
3909
3910 ac_cv_lib_ossaudio_main=no
3911 fi
3912 rm -f conftest.err conftest.$ac_objext \
3913 conftest$ac_exeext conftest.$ac_ext
3914 LIBS=$ac_check_lib_save_LIBS
3915 fi
3916 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_main" >&5
3917 echo "${ECHO_T}$ac_cv_lib_ossaudio_main" >&6
3918 if test $ac_cv_lib_ossaudio_main = yes; then
3919 LIBOSS="-lossaudio"
3920 fi
3921
3922 echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
3923 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
3924 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 else
3927 ac_check_lib_save_LIBS=$LIBS
3928 LIBS="-lncurses $LIBS"
3929 cat >conftest.$ac_ext <<_ACEOF
3930 /* confdefs.h. */
3931 _ACEOF
3932 cat confdefs.h >>conftest.$ac_ext
3933 cat >>conftest.$ac_ext <<_ACEOF
3934 /* end confdefs.h. */
3935
3936 /* Override any gcc2 internal prototype to avoid an error. */
3937 #ifdef __cplusplus
3938 extern "C"
3939 #endif
3940 /* We use char because int might match the return type of a gcc2
3941 builtin and then its argument prototype would still apply. */
3942 char initscr ();
3943 int
3944 main ()
3945 {
3946 initscr ();
3947 ;
3948 return 0;
3949 }
3950 _ACEOF
3951 rm -f conftest.$ac_objext conftest$ac_exeext
3952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3953 (eval $ac_link) 2>conftest.er1
3954 ac_status=$?
3955 grep -v '^ *+' conftest.er1 >conftest.err
3956 rm -f conftest.er1
3957 cat conftest.err >&5
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); } &&
3960 { ac_try='test -z "$ac_c_werror_flag"
3961 || test ! -s conftest.err'
3962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3963 (eval $ac_try) 2>&5
3964 ac_status=$?
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); }; } &&
3967 { ac_try='test -s conftest$ac_exeext'
3968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3969 (eval $ac_try) 2>&5
3970 ac_status=$?
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); }; }; then
3973 ac_cv_lib_ncurses_initscr=yes
3974 else
3975 echo "$as_me: failed program was:" >&5
3976 sed 's/^/| /' conftest.$ac_ext >&5
3977
3978 ac_cv_lib_ncurses_initscr=no
3979 fi
3980 rm -f conftest.err conftest.$ac_objext \
3981 conftest$ac_exeext conftest.$ac_ext
3982 LIBS=$ac_check_lib_save_LIBS
3983 fi
3984 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
3985 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
3986 if test $ac_cv_lib_ncurses_initscr = yes; then
3987 LIBCURSES="-lncurses"
3988 fi
3989
3990 if test "$LIBCURSES" = ""; then
3991 echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
3992 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
3993 if test "${ac_cv_lib_curses_initscr+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3995 else
3996 ac_check_lib_save_LIBS=$LIBS
3997 LIBS="-lcurses $LIBS"
3998 cat >conftest.$ac_ext <<_ACEOF
3999 /* confdefs.h. */
4000 _ACEOF
4001 cat confdefs.h >>conftest.$ac_ext
4002 cat >>conftest.$ac_ext <<_ACEOF
4003 /* end confdefs.h. */
4004
4005 /* Override any gcc2 internal prototype to avoid an error. */
4006 #ifdef __cplusplus
4007 extern "C"
4008 #endif
4009 /* We use char because int might match the return type of a gcc2
4010 builtin and then its argument prototype would still apply. */
4011 char initscr ();
4012 int
4013 main ()
4014 {
4015 initscr ();
4016 ;
4017 return 0;
4018 }
4019 _ACEOF
4020 rm -f conftest.$ac_objext conftest$ac_exeext
4021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4022 (eval $ac_link) 2>conftest.er1
4023 ac_status=$?
4024 grep -v '^ *+' conftest.er1 >conftest.err
4025 rm -f conftest.er1
4026 cat conftest.err >&5
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); } &&
4029 { ac_try='test -z "$ac_c_werror_flag"
4030 || test ! -s conftest.err'
4031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4032 (eval $ac_try) 2>&5
4033 ac_status=$?
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); }; } &&
4036 { ac_try='test -s conftest$ac_exeext'
4037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4038 (eval $ac_try) 2>&5
4039 ac_status=$?
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); }; }; then
4042 ac_cv_lib_curses_initscr=yes
4043 else
4044 echo "$as_me: failed program was:" >&5
4045 sed 's/^/| /' conftest.$ac_ext >&5
4046
4047 ac_cv_lib_curses_initscr=no
4048 fi
4049 rm -f conftest.err conftest.$ac_objext \
4050 conftest$ac_exeext conftest.$ac_ext
4051 LIBS=$ac_check_lib_save_LIBS
4052 fi
4053 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
4054 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
4055 if test $ac_cv_lib_curses_initscr = yes; then
4056 LIBCURSES="-lcurses"
4057 fi
4058
4059 fi
4060 if test "$LIBCURSES" = ""; then
4061 echo "Oops: (n)curses library not found. You need this one, please install."
4062 echo "Note: to compile stuff just the library packages are not enougth,"
4063 echo " you need also the *-devel packages."
4064 exit 1
4065 fi
4066
4067
4068
4069
4070
4071
4072 echo "$as_me:$LINENO: checking for X" >&5
4073 echo $ECHO_N "checking for X... $ECHO_C" >&6
4074
4075
4076 # Check whether --with-x or --without-x was given.
4077 if test "${with_x+set}" = set; then
4078 withval="$with_x"
4079
4080 fi;
4081 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4082 if test "x$with_x" = xno; then
4083 # The user explicitly disabled X.
4084 have_x=disabled
4085 else
4086 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4087 # Both variables are already set.
4088 have_x=yes
4089 else
4090 if test "${ac_cv_have_x+set}" = set; then
4091 echo $ECHO_N "(cached) $ECHO_C" >&6
4092 else
4093 # One or both of the vars are not set, and there is no cached value.
4094 ac_x_includes=no ac_x_libraries=no
4095 rm -fr conftest.dir
4096 if mkdir conftest.dir; then
4097 cd conftest.dir
4098 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4099 cat >Imakefile <<'_ACEOF'
4100 acfindx:
4101 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4102 _ACEOF
4103 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4104 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4105 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4106 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4107 for ac_extension in a so sl; do
4108 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4109 test -f $ac_im_libdir/libX11.$ac_extension; then
4110 ac_im_usrlibdir=$ac_im_libdir; break
4111 fi
4112 done
4113 # Screen out bogus values from the imake configuration. They are
4114 # bogus both because they are the default anyway, and because
4115 # using them would break gcc on systems where it needs fixed includes.
4116 case $ac_im_incroot in
4117 /usr/include) ;;
4118 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4119 esac
4120 case $ac_im_usrlibdir in
4121 /usr/lib | /lib) ;;
4122 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4123 esac
4124 fi
4125 cd ..
4126 rm -fr conftest.dir
4127 fi
4128
4129 # Standard set of common directories for X headers.
4130 # Check X11 before X11Rn because it is often a symlink to the current release.
4131 ac_x_header_dirs='
4132 /usr/X11/include
4133 /usr/X11R6/include
4134 /usr/X11R5/include
4135 /usr/X11R4/include
4136
4137 /usr/include/X11
4138 /usr/include/X11R6
4139 /usr/include/X11R5
4140 /usr/include/X11R4
4141
4142 /usr/local/X11/include
4143 /usr/local/X11R6/include
4144 /usr/local/X11R5/include
4145 /usr/local/X11R4/include
4146
4147 /usr/local/include/X11
4148 /usr/local/include/X11R6
4149 /usr/local/include/X11R5
4150 /usr/local/include/X11R4
4151
4152 /usr/X386/include
4153 /usr/x386/include
4154 /usr/XFree86/include/X11
4155
4156 /usr/include
4157 /usr/local/include
4158 /usr/unsupported/include
4159 /usr/athena/include
4160 /usr/local/x11r5/include
4161 /usr/lpp/Xamples/include
4162
4163 /usr/openwin/include
4164 /usr/openwin/share/include'
4165
4166 if test "$ac_x_includes" = no; then
4167 # Guess where to find include files, by looking for Intrinsic.h.
4168 # First, try using that file with no special directory specified.
4169 cat >conftest.$ac_ext <<_ACEOF
4170 /* confdefs.h. */
4171 _ACEOF
4172 cat confdefs.h >>conftest.$ac_ext
4173 cat >>conftest.$ac_ext <<_ACEOF
4174 /* end confdefs.h. */
4175 #include <X11/Intrinsic.h>
4176 _ACEOF
4177 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4178 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4179 ac_status=$?
4180 grep -v '^ *+' conftest.er1 >conftest.err
4181 rm -f conftest.er1
4182 cat conftest.err >&5
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); } >/dev/null; then
4185 if test -s conftest.err; then
4186 ac_cpp_err=$ac_c_preproc_warn_flag
4187 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4188 else
4189 ac_cpp_err=
4190 fi
4191 else
4192 ac_cpp_err=yes
4193 fi
4194 if test -z "$ac_cpp_err"; then
4195 # We can compile using X headers with no special include directory.
4196 ac_x_includes=
4197 else
4198 echo "$as_me: failed program was:" >&5
4199 sed 's/^/| /' conftest.$ac_ext >&5
4200
4201 for ac_dir in $ac_x_header_dirs; do
4202 if test -r "$ac_dir/X11/Intrinsic.h"; then
4203 ac_x_includes=$ac_dir
4204 break
4205 fi
4206 done
4207 fi
4208 rm -f conftest.err conftest.$ac_ext
4209 fi # $ac_x_includes = no
4210
4211 if test "$ac_x_libraries" = no; then
4212 # Check for the libraries.
4213 # See if we find them without any special options.
4214 # Don't add to $LIBS permanently.
4215 ac_save_LIBS=$LIBS
4216 LIBS="-lXt $LIBS"
4217 cat >conftest.$ac_ext <<_ACEOF
4218 /* confdefs.h. */
4219 _ACEOF
4220 cat confdefs.h >>conftest.$ac_ext
4221 cat >>conftest.$ac_ext <<_ACEOF
4222 /* end confdefs.h. */
4223 #include <X11/Intrinsic.h>
4224 int
4225 main ()
4226 {
4227 XtMalloc (0)
4228 ;
4229 return 0;
4230 }
4231 _ACEOF
4232 rm -f conftest.$ac_objext conftest$ac_exeext
4233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4234 (eval $ac_link) 2>conftest.er1
4235 ac_status=$?
4236 grep -v '^ *+' conftest.er1 >conftest.err
4237 rm -f conftest.er1
4238 cat conftest.err >&5
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); } &&
4241 { ac_try='test -z "$ac_c_werror_flag"
4242 || test ! -s conftest.err'
4243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4244 (eval $ac_try) 2>&5
4245 ac_status=$?
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); }; } &&
4248 { ac_try='test -s conftest$ac_exeext'
4249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4250 (eval $ac_try) 2>&5
4251 ac_status=$?
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); }; }; then
4254 LIBS=$ac_save_LIBS
4255 # We can link X programs with no special library path.
4256 ac_x_libraries=
4257 else
4258 echo "$as_me: failed program was:" >&5
4259 sed 's/^/| /' conftest.$ac_ext >&5
4260
4261 LIBS=$ac_save_LIBS
4262 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4263 do
4264 # Don't even attempt the hair of trying to link an X program!
4265 for ac_extension in a so sl; do
4266 if test -r $ac_dir/libXt.$ac_extension; then
4267 ac_x_libraries=$ac_dir
4268 break 2
4269 fi
4270 done
4271 done
4272 fi
4273 rm -f conftest.err conftest.$ac_objext \
4274 conftest$ac_exeext conftest.$ac_ext
4275 fi # $ac_x_libraries = no
4276
4277 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
4278 # Didn't find X anywhere. Cache the known absence of X.
4279 ac_cv_have_x="have_x=no"
4280 else
4281 # Record where we found X for the cache.
4282 ac_cv_have_x="have_x=yes \
4283 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4284 fi
4285 fi
4286
4287 fi
4288 eval "$ac_cv_have_x"
4289 fi # $with_x != no
4290
4291 if test "$have_x" != yes; then
4292 echo "$as_me:$LINENO: result: $have_x" >&5
4293 echo "${ECHO_T}$have_x" >&6
4294 no_x=yes
4295 else
4296 # If each of the values was on the command line, it overrides each guess.
4297 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4298 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4299 # Update the cache value to reflect the command line values.
4300 ac_cv_have_x="have_x=yes \
4301 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4302 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4303 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
4304 fi
4305
4306 if test "$no_x" = yes; then
4307 # Not all programs may use this symbol, but it does not hurt to define it.
4308
4309 cat >>confdefs.h <<\_ACEOF
4310 #define X_DISPLAY_MISSING 1
4311 _ACEOF
4312
4313 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4314 else
4315 if test -n "$x_includes"; then
4316 X_CFLAGS="$X_CFLAGS -I$x_includes"
4317 fi
4318
4319 # It would also be nice to do this for all -L options, not just this one.
4320 if test -n "$x_libraries"; then
4321 X_LIBS="$X_LIBS -L$x_libraries"
4322 # For Solaris; some versions of Sun CC require a space after -R and
4323 # others require no space. Words are not sufficient . . . .
4324 case `(uname -sr) 2>/dev/null` in
4325 "SunOS 5"*)
4326 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4327 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
4328 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4329 cat >conftest.$ac_ext <<_ACEOF
4330 /* confdefs.h. */
4331 _ACEOF
4332 cat confdefs.h >>conftest.$ac_ext
4333 cat >>conftest.$ac_ext <<_ACEOF
4334 /* end confdefs.h. */
4335
4336 int
4337 main ()
4338 {
4339
4340 ;
4341 return 0;
4342 }
4343 _ACEOF
4344 rm -f conftest.$ac_objext conftest$ac_exeext
4345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4346 (eval $ac_link) 2>conftest.er1
4347 ac_status=$?
4348 grep -v '^ *+' conftest.er1 >conftest.err
4349 rm -f conftest.er1
4350 cat conftest.err >&5
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } &&
4353 { ac_try='test -z "$ac_c_werror_flag"
4354 || test ! -s conftest.err'
4355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356 (eval $ac_try) 2>&5
4357 ac_status=$?
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); }; } &&
4360 { ac_try='test -s conftest$ac_exeext'
4361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4362 (eval $ac_try) 2>&5
4363 ac_status=$?
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }; }; then
4366 ac_R_nospace=yes
4367 else
4368 echo "$as_me: failed program was:" >&5
4369 sed 's/^/| /' conftest.$ac_ext >&5
4370
4371 ac_R_nospace=no
4372 fi
4373 rm -f conftest.err conftest.$ac_objext \
4374 conftest$ac_exeext conftest.$ac_ext
4375 if test $ac_R_nospace = yes; then
4376 echo "$as_me:$LINENO: result: no" >&5
4377 echo "${ECHO_T}no" >&6
4378 X_LIBS="$X_LIBS -R$x_libraries"
4379 else
4380 LIBS="$ac_xsave_LIBS -R $x_libraries"
4381 cat >conftest.$ac_ext <<_ACEOF
4382 /* confdefs.h. */
4383 _ACEOF
4384 cat confdefs.h >>conftest.$ac_ext
4385 cat >>conftest.$ac_ext <<_ACEOF
4386 /* end confdefs.h. */
4387
4388 int
4389 main ()
4390 {
4391
4392 ;
4393 return 0;
4394 }
4395 _ACEOF
4396 rm -f conftest.$ac_objext conftest$ac_exeext
4397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4398 (eval $ac_link) 2>conftest.er1
4399 ac_status=$?
4400 grep -v '^ *+' conftest.er1 >conftest.err
4401 rm -f conftest.er1
4402 cat conftest.err >&5
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); } &&
4405 { ac_try='test -z "$ac_c_werror_flag"
4406 || test ! -s conftest.err'
4407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4408 (eval $ac_try) 2>&5
4409 ac_status=$?
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); }; } &&
4412 { ac_try='test -s conftest$ac_exeext'
4413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4414 (eval $ac_try) 2>&5
4415 ac_status=$?
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); }; }; then
4418 ac_R_space=yes
4419 else
4420 echo "$as_me: failed program was:" >&5
4421 sed 's/^/| /' conftest.$ac_ext >&5
4422
4423 ac_R_space=no
4424 fi
4425 rm -f conftest.err conftest.$ac_objext \
4426 conftest$ac_exeext conftest.$ac_ext
4427 if test $ac_R_space = yes; then
4428 echo "$as_me:$LINENO: result: yes" >&5
4429 echo "${ECHO_T}yes" >&6
4430 X_LIBS="$X_LIBS -R $x_libraries"
4431 else
4432 echo "$as_me:$LINENO: result: neither works" >&5
4433 echo "${ECHO_T}neither works" >&6
4434 fi
4435 fi
4436 LIBS=$ac_xsave_LIBS
4437 esac
4438 fi
4439
4440 # Check for system-dependent libraries X programs must link with.
4441 # Do this before checking for the system-independent R6 libraries
4442 # (-lICE), since we may need -lsocket or whatever for X linking.
4443
4444 if test "$ISC" = yes; then
4445 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4446 else
4447 # Martyn Johnson says this is needed for Ultrix, if the X
4448 # libraries were built with DECnet support. And Karl Berry says
4449 # the Alpha needs dnet_stub (dnet does not exist).
4450 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4451 cat >conftest.$ac_ext <<_ACEOF
4452 /* confdefs.h. */
4453 _ACEOF
4454 cat confdefs.h >>conftest.$ac_ext
4455 cat >>conftest.$ac_ext <<_ACEOF
4456 /* end confdefs.h. */
4457
4458 /* Override any gcc2 internal prototype to avoid an error. */
4459 #ifdef __cplusplus
4460 extern "C"
4461 #endif
4462 /* We use char because int might match the return type of a gcc2
4463 builtin and then its argument prototype would still apply. */
4464 char XOpenDisplay ();
4465 int
4466 main ()
4467 {
4468 XOpenDisplay ();
4469 ;
4470 return 0;
4471 }
4472 _ACEOF
4473 rm -f conftest.$ac_objext conftest$ac_exeext
4474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4475 (eval $ac_link) 2>conftest.er1
4476 ac_status=$?
4477 grep -v '^ *+' conftest.er1 >conftest.err
4478 rm -f conftest.er1
4479 cat conftest.err >&5
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); } &&
4482 { ac_try='test -z "$ac_c_werror_flag"
4483 || test ! -s conftest.err'
4484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4485 (eval $ac_try) 2>&5
4486 ac_status=$?
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; } &&
4489 { ac_try='test -s conftest$ac_exeext'
4490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4491 (eval $ac_try) 2>&5
4492 ac_status=$?
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); }; }; then
4495 :
4496 else
4497 echo "$as_me: failed program was:" >&5
4498 sed 's/^/| /' conftest.$ac_ext >&5
4499
4500 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4501 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
4502 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4503 echo $ECHO_N "(cached) $ECHO_C" >&6
4504 else
4505 ac_check_lib_save_LIBS=$LIBS
4506 LIBS="-ldnet $LIBS"
4507 cat >conftest.$ac_ext <<_ACEOF
4508 /* confdefs.h. */
4509 _ACEOF
4510 cat confdefs.h >>conftest.$ac_ext
4511 cat >>conftest.$ac_ext <<_ACEOF
4512 /* end confdefs.h. */
4513
4514 /* Override any gcc2 internal prototype to avoid an error. */
4515 #ifdef __cplusplus
4516 extern "C"
4517 #endif
4518 /* We use char because int might match the return type of a gcc2
4519 builtin and then its argument prototype would still apply. */
4520 char dnet_ntoa ();
4521 int
4522 main ()
4523 {
4524 dnet_ntoa ();
4525 ;
4526 return 0;
4527 }
4528 _ACEOF
4529 rm -f conftest.$ac_objext conftest$ac_exeext
4530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4531 (eval $ac_link) 2>conftest.er1
4532 ac_status=$?
4533 grep -v '^ *+' conftest.er1 >conftest.err
4534 rm -f conftest.er1
4535 cat conftest.err >&5
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); } &&
4538 { ac_try='test -z "$ac_c_werror_flag"
4539 || test ! -s conftest.err'
4540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4541 (eval $ac_try) 2>&5
4542 ac_status=$?
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); }; } &&
4545 { ac_try='test -s conftest$ac_exeext'
4546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4547 (eval $ac_try) 2>&5
4548 ac_status=$?
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); }; }; then
4551 ac_cv_lib_dnet_dnet_ntoa=yes
4552 else
4553 echo "$as_me: failed program was:" >&5
4554 sed 's/^/| /' conftest.$ac_ext >&5
4555
4556 ac_cv_lib_dnet_dnet_ntoa=no
4557 fi
4558 rm -f conftest.err conftest.$ac_objext \
4559 conftest$ac_exeext conftest.$ac_ext
4560 LIBS=$ac_check_lib_save_LIBS
4561 fi
4562 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4563 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
4564 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4565 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4566 fi
4567
4568 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4569 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4570 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
4571 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4572 echo $ECHO_N "(cached) $ECHO_C" >&6
4573 else
4574 ac_check_lib_save_LIBS=$LIBS
4575 LIBS="-ldnet_stub $LIBS"
4576 cat >conftest.$ac_ext <<_ACEOF
4577 /* confdefs.h. */
4578 _ACEOF
4579 cat confdefs.h >>conftest.$ac_ext
4580 cat >>conftest.$ac_ext <<_ACEOF
4581 /* end confdefs.h. */
4582
4583 /* Override any gcc2 internal prototype to avoid an error. */
4584 #ifdef __cplusplus
4585 extern "C"
4586 #endif
4587 /* We use char because int might match the return type of a gcc2
4588 builtin and then its argument prototype would still apply. */
4589 char dnet_ntoa ();
4590 int
4591 main ()
4592 {
4593 dnet_ntoa ();
4594 ;
4595 return 0;
4596 }
4597 _ACEOF
4598 rm -f conftest.$ac_objext conftest$ac_exeext
4599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4600 (eval $ac_link) 2>conftest.er1
4601 ac_status=$?
4602 grep -v '^ *+' conftest.er1 >conftest.err
4603 rm -f conftest.er1
4604 cat conftest.err >&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); } &&
4607 { ac_try='test -z "$ac_c_werror_flag"
4608 || test ! -s conftest.err'
4609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4610 (eval $ac_try) 2>&5
4611 ac_status=$?
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); }; } &&
4614 { ac_try='test -s conftest$ac_exeext'
4615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4616 (eval $ac_try) 2>&5
4617 ac_status=$?
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); }; }; then
4620 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4621 else
4622 echo "$as_me: failed program was:" >&5
4623 sed 's/^/| /' conftest.$ac_ext >&5
4624
4625 ac_cv_lib_dnet_stub_dnet_ntoa=no
4626 fi
4627 rm -f conftest.err conftest.$ac_objext \
4628 conftest$ac_exeext conftest.$ac_ext
4629 LIBS=$ac_check_lib_save_LIBS
4630 fi
4631 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4632 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
4633 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4634 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4635 fi
4636
4637 fi
4638 fi
4639 rm -f conftest.err conftest.$ac_objext \
4640 conftest$ac_exeext conftest.$ac_ext
4641 LIBS="$ac_xsave_LIBS"
4642
4643 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4644 # to get the SysV transport functions.
4645 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4646 # needs -lnsl.
4647 # The nsl library prevents programs from opening the X display
4648 # on Irix 5.2, according to T.E. Dickey.
4649 # The functions gethostbyname, getservbyname, and inet_addr are
4650 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4651 echo "$as_me:$LINENO: checking for gethostbyname" >&5
4652 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
4653 if test "${ac_cv_func_gethostbyname+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4655 else
4656 cat >conftest.$ac_ext <<_ACEOF
4657 /* confdefs.h. */
4658 _ACEOF
4659 cat confdefs.h >>conftest.$ac_ext
4660 cat >>conftest.$ac_ext <<_ACEOF
4661 /* end confdefs.h. */
4662 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4664 #define gethostbyname innocuous_gethostbyname
4665
4666 /* System header to define __stub macros and hopefully few prototypes,
4667 which can conflict with char gethostbyname (); below.
4668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4669 <limits.h> exists even on freestanding compilers. */
4670
4671 #ifdef __STDC__
4672 # include <limits.h>
4673 #else
4674 # include <assert.h>
4675 #endif
4676
4677 #undef gethostbyname
4678
4679 /* Override any gcc2 internal prototype to avoid an error. */
4680 #ifdef __cplusplus
4681 extern "C"
4682 {
4683 #endif
4684 /* We use char because int might match the return type of a gcc2
4685 builtin and then its argument prototype would still apply. */
4686 char gethostbyname ();
4687 /* The GNU C library defines this for functions which it implements
4688 to always fail with ENOSYS. Some functions are actually named
4689 something starting with __ and the normal name is an alias. */
4690 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4691 choke me
4692 #else
4693 char (*f) () = gethostbyname;
4694 #endif
4695 #ifdef __cplusplus
4696 }
4697 #endif
4698
4699 int
4700 main ()
4701 {
4702 return f != gethostbyname;
4703 ;
4704 return 0;
4705 }
4706 _ACEOF
4707 rm -f conftest.$ac_objext conftest$ac_exeext
4708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4709 (eval $ac_link) 2>conftest.er1
4710 ac_status=$?
4711 grep -v '^ *+' conftest.er1 >conftest.err
4712 rm -f conftest.er1
4713 cat conftest.err >&5
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); } &&
4716 { ac_try='test -z "$ac_c_werror_flag"
4717 || test ! -s conftest.err'
4718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4719 (eval $ac_try) 2>&5
4720 ac_status=$?
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); }; } &&
4723 { ac_try='test -s conftest$ac_exeext'
4724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4725 (eval $ac_try) 2>&5
4726 ac_status=$?
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); }; }; then
4729 ac_cv_func_gethostbyname=yes
4730 else
4731 echo "$as_me: failed program was:" >&5
4732 sed 's/^/| /' conftest.$ac_ext >&5
4733
4734 ac_cv_func_gethostbyname=no
4735 fi
4736 rm -f conftest.err conftest.$ac_objext \
4737 conftest$ac_exeext conftest.$ac_ext
4738 fi
4739 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4740 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4741
4742 if test $ac_cv_func_gethostbyname = no; then
4743 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4744 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4745 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4746 echo $ECHO_N "(cached) $ECHO_C" >&6
4747 else
4748 ac_check_lib_save_LIBS=$LIBS
4749 LIBS="-lnsl $LIBS"
4750 cat >conftest.$ac_ext <<_ACEOF
4751 /* confdefs.h. */
4752 _ACEOF
4753 cat confdefs.h >>conftest.$ac_ext
4754 cat >>conftest.$ac_ext <<_ACEOF
4755 /* end confdefs.h. */
4756
4757 /* Override any gcc2 internal prototype to avoid an error. */
4758 #ifdef __cplusplus
4759 extern "C"
4760 #endif
4761 /* We use char because int might match the return type of a gcc2
4762 builtin and then its argument prototype would still apply. */
4763 char gethostbyname ();
4764 int
4765 main ()
4766 {
4767 gethostbyname ();
4768 ;
4769 return 0;
4770 }
4771 _ACEOF
4772 rm -f conftest.$ac_objext conftest$ac_exeext
4773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4774 (eval $ac_link) 2>conftest.er1
4775 ac_status=$?
4776 grep -v '^ *+' conftest.er1 >conftest.err
4777 rm -f conftest.er1
4778 cat conftest.err >&5
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); } &&
4781 { ac_try='test -z "$ac_c_werror_flag"
4782 || test ! -s conftest.err'
4783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4784 (eval $ac_try) 2>&5
4785 ac_status=$?
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); }; } &&
4788 { ac_try='test -s conftest$ac_exeext'
4789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4790 (eval $ac_try) 2>&5
4791 ac_status=$?
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }; }; then
4794 ac_cv_lib_nsl_gethostbyname=yes
4795 else
4796 echo "$as_me: failed program was:" >&5
4797 sed 's/^/| /' conftest.$ac_ext >&5
4798
4799 ac_cv_lib_nsl_gethostbyname=no
4800 fi
4801 rm -f conftest.err conftest.$ac_objext \
4802 conftest$ac_exeext conftest.$ac_ext
4803 LIBS=$ac_check_lib_save_LIBS
4804 fi
4805 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4806 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4807 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4808 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4809 fi
4810
4811 if test $ac_cv_lib_nsl_gethostbyname = no; then
4812 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4813 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
4814 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4816 else
4817 ac_check_lib_save_LIBS=$LIBS
4818 LIBS="-lbsd $LIBS"
4819 cat >conftest.$ac_ext <<_ACEOF
4820 /* confdefs.h. */
4821 _ACEOF
4822 cat confdefs.h >>conftest.$ac_ext
4823 cat >>conftest.$ac_ext <<_ACEOF
4824 /* end confdefs.h. */
4825
4826 /* Override any gcc2 internal prototype to avoid an error. */
4827 #ifdef __cplusplus
4828 extern "C"
4829 #endif
4830 /* We use char because int might match the return type of a gcc2
4831 builtin and then its argument prototype would still apply. */
4832 char gethostbyname ();
4833 int
4834 main ()
4835 {
4836 gethostbyname ();
4837 ;
4838 return 0;
4839 }
4840 _ACEOF
4841 rm -f conftest.$ac_objext conftest$ac_exeext
4842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4843 (eval $ac_link) 2>conftest.er1
4844 ac_status=$?
4845 grep -v '^ *+' conftest.er1 >conftest.err
4846 rm -f conftest.er1
4847 cat conftest.err >&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); } &&
4850 { ac_try='test -z "$ac_c_werror_flag"
4851 || test ! -s conftest.err'
4852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4853 (eval $ac_try) 2>&5
4854 ac_status=$?
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); }; } &&
4857 { ac_try='test -s conftest$ac_exeext'
4858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4859 (eval $ac_try) 2>&5
4860 ac_status=$?
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); }; }; then
4863 ac_cv_lib_bsd_gethostbyname=yes
4864 else
4865 echo "$as_me: failed program was:" >&5
4866 sed 's/^/| /' conftest.$ac_ext >&5
4867
4868 ac_cv_lib_bsd_gethostbyname=no
4869 fi
4870 rm -f conftest.err conftest.$ac_objext \
4871 conftest$ac_exeext conftest.$ac_ext
4872 LIBS=$ac_check_lib_save_LIBS
4873 fi
4874 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4875 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
4876 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4877 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4878 fi
4879
4880 fi
4881 fi
4882
4883 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4884 # socket/setsockopt and other routines are undefined under SCO ODT
4885 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4886 # on later versions), says Simon Leinen: it contains gethostby*
4887 # variants that don't use the name server (or something). -lsocket
4888 # must be given before -lnsl if both are needed. We assume that
4889 # if connect needs -lnsl, so does gethostbyname.
4890 echo "$as_me:$LINENO: checking for connect" >&5
4891 echo $ECHO_N "checking for connect... $ECHO_C" >&6
4892 if test "${ac_cv_func_connect+set}" = set; then
4893 echo $ECHO_N "(cached) $ECHO_C" >&6
4894 else
4895 cat >conftest.$ac_ext <<_ACEOF
4896 /* confdefs.h. */
4897 _ACEOF
4898 cat confdefs.h >>conftest.$ac_ext
4899 cat >>conftest.$ac_ext <<_ACEOF
4900 /* end confdefs.h. */
4901 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4903 #define connect innocuous_connect
4904
4905 /* System header to define __stub macros and hopefully few prototypes,
4906 which can conflict with char connect (); below.
4907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4908 <limits.h> exists even on freestanding compilers. */
4909
4910 #ifdef __STDC__
4911 # include <limits.h>
4912 #else
4913 # include <assert.h>
4914 #endif
4915
4916 #undef connect
4917
4918 /* Override any gcc2 internal prototype to avoid an error. */
4919 #ifdef __cplusplus
4920 extern "C"
4921 {
4922 #endif
4923 /* We use char because int might match the return type of a gcc2
4924 builtin and then its argument prototype would still apply. */
4925 char connect ();
4926 /* The GNU C library defines this for functions which it implements
4927 to always fail with ENOSYS. Some functions are actually named
4928 something starting with __ and the normal name is an alias. */
4929 #if defined (__stub_connect) || defined (__stub___connect)
4930 choke me
4931 #else
4932 char (*f) () = connect;
4933 #endif
4934 #ifdef __cplusplus
4935 }
4936 #endif
4937
4938 int
4939 main ()
4940 {
4941 return f != connect;
4942 ;
4943 return 0;
4944 }
4945 _ACEOF
4946 rm -f conftest.$ac_objext conftest$ac_exeext
4947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4948 (eval $ac_link) 2>conftest.er1
4949 ac_status=$?
4950 grep -v '^ *+' conftest.er1 >conftest.err
4951 rm -f conftest.er1
4952 cat conftest.err >&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); } &&
4955 { ac_try='test -z "$ac_c_werror_flag"
4956 || test ! -s conftest.err'
4957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4958 (eval $ac_try) 2>&5
4959 ac_status=$?
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); }; } &&
4962 { ac_try='test -s conftest$ac_exeext'
4963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4964 (eval $ac_try) 2>&5
4965 ac_status=$?
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); }; }; then
4968 ac_cv_func_connect=yes
4969 else
4970 echo "$as_me: failed program was:" >&5
4971 sed 's/^/| /' conftest.$ac_ext >&5
4972
4973 ac_cv_func_connect=no
4974 fi
4975 rm -f conftest.err conftest.$ac_objext \
4976 conftest$ac_exeext conftest.$ac_ext
4977 fi
4978 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4979 echo "${ECHO_T}$ac_cv_func_connect" >&6
4980
4981 if test $ac_cv_func_connect = no; then
4982 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4983 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4984 if test "${ac_cv_lib_socket_connect+set}" = set; then
4985 echo $ECHO_N "(cached) $ECHO_C" >&6
4986 else
4987 ac_check_lib_save_LIBS=$LIBS
4988 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4989 cat >conftest.$ac_ext <<_ACEOF
4990 /* confdefs.h. */
4991 _ACEOF
4992 cat confdefs.h >>conftest.$ac_ext
4993 cat >>conftest.$ac_ext <<_ACEOF
4994 /* end confdefs.h. */
4995
4996 /* Override any gcc2 internal prototype to avoid an error. */
4997 #ifdef __cplusplus
4998 extern "C"
4999 #endif
5000 /* We use char because int might match the return type of a gcc2
5001 builtin and then its argument prototype would still apply. */
5002 char connect ();
5003 int
5004 main ()
5005 {
5006 connect ();
5007 ;
5008 return 0;
5009 }
5010 _ACEOF
5011 rm -f conftest.$ac_objext conftest$ac_exeext
5012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5013 (eval $ac_link) 2>conftest.er1
5014 ac_status=$?
5015 grep -v '^ *+' conftest.er1 >conftest.err
5016 rm -f conftest.er1
5017 cat conftest.err >&5
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); } &&
5020 { ac_try='test -z "$ac_c_werror_flag"
5021 || test ! -s conftest.err'
5022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5023 (eval $ac_try) 2>&5
5024 ac_status=$?
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); }; } &&
5027 { ac_try='test -s conftest$ac_exeext'
5028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5029 (eval $ac_try) 2>&5
5030 ac_status=$?
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); }; }; then
5033 ac_cv_lib_socket_connect=yes
5034 else
5035 echo "$as_me: failed program was:" >&5
5036 sed 's/^/| /' conftest.$ac_ext >&5
5037
5038 ac_cv_lib_socket_connect=no
5039 fi
5040 rm -f conftest.err conftest.$ac_objext \
5041 conftest$ac_exeext conftest.$ac_ext
5042 LIBS=$ac_check_lib_save_LIBS
5043 fi
5044 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5045 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5046 if test $ac_cv_lib_socket_connect = yes; then
5047 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5048 fi
5049
5050 fi
5051
5052 # Guillermo Gomez says -lposix is necessary on A/UX.
5053 echo "$as_me:$LINENO: checking for remove" >&5
5054 echo $ECHO_N "checking for remove... $ECHO_C" >&6
5055 if test "${ac_cv_func_remove+set}" = set; then
5056 echo $ECHO_N "(cached) $ECHO_C" >&6
5057 else
5058 cat >conftest.$ac_ext <<_ACEOF
5059 /* confdefs.h. */
5060 _ACEOF
5061 cat confdefs.h >>conftest.$ac_ext
5062 cat >>conftest.$ac_ext <<_ACEOF
5063 /* end confdefs.h. */
5064 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5066 #define remove innocuous_remove
5067
5068 /* System header to define __stub macros and hopefully few prototypes,
5069 which can conflict with char remove (); below.
5070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5071 <limits.h> exists even on freestanding compilers. */
5072
5073 #ifdef __STDC__
5074 # include <limits.h>
5075 #else
5076 # include <assert.h>
5077 #endif
5078
5079 #undef remove
5080
5081 /* Override any gcc2 internal prototype to avoid an error. */
5082 #ifdef __cplusplus
5083 extern "C"
5084 {
5085 #endif
5086 /* We use char because int might match the return type of a gcc2
5087 builtin and then its argument prototype would still apply. */
5088 char remove ();
5089 /* The GNU C library defines this for functions which it implements
5090 to always fail with ENOSYS. Some functions are actually named
5091 something starting with __ and the normal name is an alias. */
5092 #if defined (__stub_remove) || defined (__stub___remove)
5093 choke me
5094 #else
5095 char (*f) () = remove;
5096 #endif
5097 #ifdef __cplusplus
5098 }
5099 #endif
5100
5101 int
5102 main ()
5103 {
5104 return f != remove;
5105 ;
5106 return 0;
5107 }
5108 _ACEOF
5109 rm -f conftest.$ac_objext conftest$ac_exeext
5110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5111 (eval $ac_link) 2>conftest.er1
5112 ac_status=$?
5113 grep -v '^ *+' conftest.er1 >conftest.err
5114 rm -f conftest.er1
5115 cat conftest.err >&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); } &&
5118 { ac_try='test -z "$ac_c_werror_flag"
5119 || test ! -s conftest.err'
5120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5121 (eval $ac_try) 2>&5
5122 ac_status=$?
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); }; } &&
5125 { ac_try='test -s conftest$ac_exeext'
5126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5127 (eval $ac_try) 2>&5
5128 ac_status=$?
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); }; }; then
5131 ac_cv_func_remove=yes
5132 else
5133 echo "$as_me: failed program was:" >&5
5134 sed 's/^/| /' conftest.$ac_ext >&5
5135
5136 ac_cv_func_remove=no
5137 fi
5138 rm -f conftest.err conftest.$ac_objext \
5139 conftest$ac_exeext conftest.$ac_ext
5140 fi
5141 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5142 echo "${ECHO_T}$ac_cv_func_remove" >&6
5143
5144 if test $ac_cv_func_remove = no; then
5145 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5146 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5147 if test "${ac_cv_lib_posix_remove+set}" = set; then
5148 echo $ECHO_N "(cached) $ECHO_C" >&6
5149 else
5150 ac_check_lib_save_LIBS=$LIBS
5151 LIBS="-lposix $LIBS"
5152 cat >conftest.$ac_ext <<_ACEOF
5153 /* confdefs.h. */
5154 _ACEOF
5155 cat confdefs.h >>conftest.$ac_ext
5156 cat >>conftest.$ac_ext <<_ACEOF
5157 /* end confdefs.h. */
5158
5159 /* Override any gcc2 internal prototype to avoid an error. */
5160 #ifdef __cplusplus
5161 extern "C"
5162 #endif
5163 /* We use char because int might match the return type of a gcc2
5164 builtin and then its argument prototype would still apply. */
5165 char remove ();
5166 int
5167 main ()
5168 {
5169 remove ();
5170 ;
5171 return 0;
5172 }
5173 _ACEOF
5174 rm -f conftest.$ac_objext conftest$ac_exeext
5175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5176 (eval $ac_link) 2>conftest.er1
5177 ac_status=$?
5178 grep -v '^ *+' conftest.er1 >conftest.err
5179 rm -f conftest.er1
5180 cat conftest.err >&5
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); } &&
5183 { ac_try='test -z "$ac_c_werror_flag"
5184 || test ! -s conftest.err'
5185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5186 (eval $ac_try) 2>&5
5187 ac_status=$?
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); }; } &&
5190 { ac_try='test -s conftest$ac_exeext'
5191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5192 (eval $ac_try) 2>&5
5193 ac_status=$?
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); }; }; then
5196 ac_cv_lib_posix_remove=yes
5197 else
5198 echo "$as_me: failed program was:" >&5
5199 sed 's/^/| /' conftest.$ac_ext >&5
5200
5201 ac_cv_lib_posix_remove=no
5202 fi
5203 rm -f conftest.err conftest.$ac_objext \
5204 conftest$ac_exeext conftest.$ac_ext
5205 LIBS=$ac_check_lib_save_LIBS
5206 fi
5207 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5208 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5209 if test $ac_cv_lib_posix_remove = yes; then
5210 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5211 fi
5212
5213 fi
5214
5215 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5216 echo "$as_me:$LINENO: checking for shmat" >&5
5217 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5218 if test "${ac_cv_func_shmat+set}" = set; then
5219 echo $ECHO_N "(cached) $ECHO_C" >&6
5220 else
5221 cat >conftest.$ac_ext <<_ACEOF
5222 /* confdefs.h. */
5223 _ACEOF
5224 cat confdefs.h >>conftest.$ac_ext
5225 cat >>conftest.$ac_ext <<_ACEOF
5226 /* end confdefs.h. */
5227 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5229 #define shmat innocuous_shmat
5230
5231 /* System header to define __stub macros and hopefully few prototypes,
5232 which can conflict with char shmat (); below.
5233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5234 <limits.h> exists even on freestanding compilers. */
5235
5236 #ifdef __STDC__
5237 # include <limits.h>
5238 #else
5239 # include <assert.h>
5240 #endif
5241
5242 #undef shmat
5243
5244 /* Override any gcc2 internal prototype to avoid an error. */
5245 #ifdef __cplusplus
5246 extern "C"
5247 {
5248 #endif
5249 /* We use char because int might match the return type of a gcc2
5250 builtin and then its argument prototype would still apply. */
5251 char shmat ();
5252 /* The GNU C library defines this for functions which it implements
5253 to always fail with ENOSYS. Some functions are actually named
5254 something starting with __ and the normal name is an alias. */
5255 #if defined (__stub_shmat) || defined (__stub___shmat)
5256 choke me
5257 #else
5258 char (*f) () = shmat;
5259 #endif
5260 #ifdef __cplusplus
5261 }
5262 #endif
5263
5264 int
5265 main ()
5266 {
5267 return f != shmat;
5268 ;
5269 return 0;
5270 }
5271 _ACEOF
5272 rm -f conftest.$ac_objext conftest$ac_exeext
5273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5274 (eval $ac_link) 2>conftest.er1
5275 ac_status=$?
5276 grep -v '^ *+' conftest.er1 >conftest.err
5277 rm -f conftest.er1
5278 cat conftest.err >&5
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); } &&
5281 { ac_try='test -z "$ac_c_werror_flag"
5282 || test ! -s conftest.err'
5283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5284 (eval $ac_try) 2>&5
5285 ac_status=$?
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); }; } &&
5288 { ac_try='test -s conftest$ac_exeext'
5289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5290 (eval $ac_try) 2>&5
5291 ac_status=$?
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); }; }; then
5294 ac_cv_func_shmat=yes
5295 else
5296 echo "$as_me: failed program was:" >&5
5297 sed 's/^/| /' conftest.$ac_ext >&5
5298
5299 ac_cv_func_shmat=no
5300 fi
5301 rm -f conftest.err conftest.$ac_objext \
5302 conftest$ac_exeext conftest.$ac_ext
5303 fi
5304 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5305 echo "${ECHO_T}$ac_cv_func_shmat" >&6
5306
5307 if test $ac_cv_func_shmat = no; then
5308 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5309 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5310 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5311 echo $ECHO_N "(cached) $ECHO_C" >&6
5312 else
5313 ac_check_lib_save_LIBS=$LIBS
5314 LIBS="-lipc $LIBS"
5315 cat >conftest.$ac_ext <<_ACEOF
5316 /* confdefs.h. */
5317 _ACEOF
5318 cat confdefs.h >>conftest.$ac_ext
5319 cat >>conftest.$ac_ext <<_ACEOF
5320 /* end confdefs.h. */
5321
5322 /* Override any gcc2 internal prototype to avoid an error. */
5323 #ifdef __cplusplus
5324 extern "C"
5325 #endif
5326 /* We use char because int might match the return type of a gcc2
5327 builtin and then its argument prototype would still apply. */
5328 char shmat ();
5329 int
5330 main ()
5331 {
5332 shmat ();
5333 ;
5334 return 0;
5335 }
5336 _ACEOF
5337 rm -f conftest.$ac_objext conftest$ac_exeext
5338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5339 (eval $ac_link) 2>conftest.er1
5340 ac_status=$?
5341 grep -v '^ *+' conftest.er1 >conftest.err
5342 rm -f conftest.er1
5343 cat conftest.err >&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); } &&
5346 { ac_try='test -z "$ac_c_werror_flag"
5347 || test ! -s conftest.err'
5348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5349 (eval $ac_try) 2>&5
5350 ac_status=$?
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); }; } &&
5353 { ac_try='test -s conftest$ac_exeext'
5354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5355 (eval $ac_try) 2>&5
5356 ac_status=$?
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); }; }; then
5359 ac_cv_lib_ipc_shmat=yes
5360 else
5361 echo "$as_me: failed program was:" >&5
5362 sed 's/^/| /' conftest.$ac_ext >&5
5363
5364 ac_cv_lib_ipc_shmat=no
5365 fi
5366 rm -f conftest.err conftest.$ac_objext \
5367 conftest$ac_exeext conftest.$ac_ext
5368 LIBS=$ac_check_lib_save_LIBS
5369 fi
5370 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5371 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
5372 if test $ac_cv_lib_ipc_shmat = yes; then
5373 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5374 fi
5375
5376 fi
5377 fi
5378
5379 # Check for libraries that X11R6 Xt/Xaw programs need.
5380 ac_save_LDFLAGS=$LDFLAGS
5381 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5382 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5383 # check for ICE first), but we must link in the order -lSM -lICE or
5384 # we get undefined symbols. So assume we have SM if we have ICE.
5385 # These have to be linked with before -lX11, unlike the other
5386 # libraries we check for below, so use a different variable.
5387 # John Interrante, Karl Berry
5388 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5389 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5390 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5391 echo $ECHO_N "(cached) $ECHO_C" >&6
5392 else
5393 ac_check_lib_save_LIBS=$LIBS
5394 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5395 cat >conftest.$ac_ext <<_ACEOF
5396 /* confdefs.h. */
5397 _ACEOF
5398 cat confdefs.h >>conftest.$ac_ext
5399 cat >>conftest.$ac_ext <<_ACEOF
5400 /* end confdefs.h. */
5401
5402 /* Override any gcc2 internal prototype to avoid an error. */
5403 #ifdef __cplusplus
5404 extern "C"
5405 #endif
5406 /* We use char because int might match the return type of a gcc2
5407 builtin and then its argument prototype would still apply. */
5408 char IceConnectionNumber ();
5409 int
5410 main ()
5411 {
5412 IceConnectionNumber ();
5413 ;
5414 return 0;
5415 }
5416 _ACEOF
5417 rm -f conftest.$ac_objext conftest$ac_exeext
5418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5419 (eval $ac_link) 2>conftest.er1
5420 ac_status=$?
5421 grep -v '^ *+' conftest.er1 >conftest.err
5422 rm -f conftest.er1
5423 cat conftest.err >&5
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); } &&
5426 { ac_try='test -z "$ac_c_werror_flag"
5427 || test ! -s conftest.err'
5428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5429 (eval $ac_try) 2>&5
5430 ac_status=$?
5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432 (exit $ac_status); }; } &&
5433 { ac_try='test -s conftest$ac_exeext'
5434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435 (eval $ac_try) 2>&5
5436 ac_status=$?
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); }; }; then
5439 ac_cv_lib_ICE_IceConnectionNumber=yes
5440 else
5441 echo "$as_me: failed program was:" >&5
5442 sed 's/^/| /' conftest.$ac_ext >&5
5443
5444 ac_cv_lib_ICE_IceConnectionNumber=no
5445 fi
5446 rm -f conftest.err conftest.$ac_objext \
5447 conftest$ac_exeext conftest.$ac_ext
5448 LIBS=$ac_check_lib_save_LIBS
5449 fi
5450 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5451 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
5452 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5453 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5454 fi
5455
5456 LDFLAGS=$ac_save_LDFLAGS
5457
5458 fi
5459
5460 if test "$no_x" != "yes"; then
5461 FOUND_X11="yes"
5462 ATHENA="-lXaw -lXmu -lXt $X_PRE_LIBS -lXpm -lXext -lX11 $X_EXTRA_LIBS"
5463 FSLIB="-lFS"
5464 XFT_FLAGS=""
5465 XFT_LIBS=""
5466 if test "$enable_xft" != "no"; then
5467 echo "$as_me:$LINENO: checking for Xft" >&5
5468 echo $ECHO_N "checking for Xft... $ECHO_C" >&6
5469 if test -x "`which pkg-config 2>/dev/null`" && pkg-config xft; then
5470 XFT_FLAGS="`pkg-config --cflags xft`"
5471 XFT_LIBS="`pkg-config --libs xft`"
5472
5473 cat >>confdefs.h <<\_ACEOF
5474 #define HAVE_XFT 1
5475 _ACEOF
5476
5477 echo "$as_me:$LINENO: result: yes" >&5
5478 echo "${ECHO_T}yes" >&6
5479 else
5480 echo "$as_me:$LINENO: result: no" >&5
5481 echo "${ECHO_T}no" >&6
5482 fi
5483 fi
5484 else
5485 ATHENA=""
5486 FSLIB=""
5487 fi
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502 echo "$as_me:$LINENO: checking for jpeg_start_compress in -ljpeg" >&5
5503 echo $ECHO_N "checking for jpeg_start_compress in -ljpeg... $ECHO_C" >&6
5504 if test "${ac_cv_lib_jpeg_jpeg_start_compress+set}" = set; then
5505 echo $ECHO_N "(cached) $ECHO_C" >&6
5506 else
5507 ac_check_lib_save_LIBS=$LIBS
5508 LIBS="-ljpeg $LIBS"
5509 cat >conftest.$ac_ext <<_ACEOF
5510 /* confdefs.h. */
5511 _ACEOF
5512 cat confdefs.h >>conftest.$ac_ext
5513 cat >>conftest.$ac_ext <<_ACEOF
5514 /* end confdefs.h. */
5515
5516 /* Override any gcc2 internal prototype to avoid an error. */
5517 #ifdef __cplusplus
5518 extern "C"
5519 #endif
5520 /* We use char because int might match the return type of a gcc2
5521 builtin and then its argument prototype would still apply. */
5522 char jpeg_start_compress ();
5523 int
5524 main ()
5525 {
5526 jpeg_start_compress ();
5527 ;
5528 return 0;
5529 }
5530 _ACEOF
5531 rm -f conftest.$ac_objext conftest$ac_exeext
5532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5533 (eval $ac_link) 2>conftest.er1
5534 ac_status=$?
5535 grep -v '^ *+' conftest.er1 >conftest.err
5536 rm -f conftest.er1
5537 cat conftest.err >&5
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); } &&
5540 { ac_try='test -z "$ac_c_werror_flag"
5541 || test ! -s conftest.err'
5542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5543 (eval $ac_try) 2>&5
5544 ac_status=$?
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); }; } &&
5547 { ac_try='test -s conftest$ac_exeext'
5548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5549 (eval $ac_try) 2>&5
5550 ac_status=$?
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); }; }; then
5553 ac_cv_lib_jpeg_jpeg_start_compress=yes
5554 else
5555 echo "$as_me: failed program was:" >&5
5556 sed 's/^/| /' conftest.$ac_ext >&5
5557
5558 ac_cv_lib_jpeg_jpeg_start_compress=no
5559 fi
5560 rm -f conftest.err conftest.$ac_objext \
5561 conftest$ac_exeext conftest.$ac_ext
5562 LIBS=$ac_check_lib_save_LIBS
5563 fi
5564 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_compress" >&5
5565 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_compress" >&6
5566 if test $ac_cv_lib_jpeg_jpeg_start_compress = yes; then
5567 JPEG="found"
5568 fi
5569
5570 if test "$JPEG" != "found"; then
5571 echo "Oops: jpeg library not found. You need this one, please install."
5572 echo "Note: to compile stuff just the library packages are not enougth,"
5573 echo " you need also the *-devel packages."
5574 exit 1
5575 fi
5576
5577
5578 LIBALSA=""
5579 if test "$enable_alsa" != "no"; then
5580 echo "$as_me:$LINENO: checking for snd_seq_open in -lasound" >&5
5581 echo $ECHO_N "checking for snd_seq_open in -lasound... $ECHO_C" >&6
5582 if test "${ac_cv_lib_asound_snd_seq_open+set}" = set; then
5583 echo $ECHO_N "(cached) $ECHO_C" >&6
5584 else
5585 ac_check_lib_save_LIBS=$LIBS
5586 LIBS="-lasound $LIBS"
5587 cat >conftest.$ac_ext <<_ACEOF
5588 /* confdefs.h. */
5589 _ACEOF
5590 cat confdefs.h >>conftest.$ac_ext
5591 cat >>conftest.$ac_ext <<_ACEOF
5592 /* end confdefs.h. */
5593
5594 /* Override any gcc2 internal prototype to avoid an error. */
5595 #ifdef __cplusplus
5596 extern "C"
5597 #endif
5598 /* We use char because int might match the return type of a gcc2
5599 builtin and then its argument prototype would still apply. */
5600 char snd_seq_open ();
5601 int
5602 main ()
5603 {
5604 snd_seq_open ();
5605 ;
5606 return 0;
5607 }
5608 _ACEOF
5609 rm -f conftest.$ac_objext conftest$ac_exeext
5610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5611 (eval $ac_link) 2>conftest.er1
5612 ac_status=$?
5613 grep -v '^ *+' conftest.er1 >conftest.err
5614 rm -f conftest.er1
5615 cat conftest.err >&5
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); } &&
5618 { ac_try='test -z "$ac_c_werror_flag"
5619 || test ! -s conftest.err'
5620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5621 (eval $ac_try) 2>&5
5622 ac_status=$?
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); }; } &&
5625 { ac_try='test -s conftest$ac_exeext'
5626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5627 (eval $ac_try) 2>&5
5628 ac_status=$?
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); }; }; then
5631 ac_cv_lib_asound_snd_seq_open=yes
5632 else
5633 echo "$as_me: failed program was:" >&5
5634 sed 's/^/| /' conftest.$ac_ext >&5
5635
5636 ac_cv_lib_asound_snd_seq_open=no
5637 fi
5638 rm -f conftest.err conftest.$ac_objext \
5639 conftest$ac_exeext conftest.$ac_ext
5640 LIBS=$ac_check_lib_save_LIBS
5641 fi
5642 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_seq_open" >&5
5643 echo "${ECHO_T}$ac_cv_lib_asound_snd_seq_open" >&6
5644 if test $ac_cv_lib_asound_snd_seq_open = yes; then
5645
5646 cat >>confdefs.h <<\_ACEOF
5647 #define HAVE_ALSA 1
5648 _ACEOF
5649 FOUND_ALSA="yes"; LIBALSA="-lasound"
5650 fi
5651
5652 else
5653 echo "*** alsa disabled"
5654 fi
5655
5656
5657 LIRC=""
5658 if test "$enable_lirc" != "no"; then
5659 echo "$as_me:$LINENO: checking for lirc_init in -llirc_client" >&5
5660 echo $ECHO_N "checking for lirc_init in -llirc_client... $ECHO_C" >&6
5661 if test "${ac_cv_lib_lirc_client_lirc_init+set}" = set; then
5662 echo $ECHO_N "(cached) $ECHO_C" >&6
5663 else
5664 ac_check_lib_save_LIBS=$LIBS
5665 LIBS="-llirc_client $LIBS"
5666 cat >conftest.$ac_ext <<_ACEOF
5667 /* confdefs.h. */
5668 _ACEOF
5669 cat confdefs.h >>conftest.$ac_ext
5670 cat >>conftest.$ac_ext <<_ACEOF
5671 /* end confdefs.h. */
5672
5673 /* Override any gcc2 internal prototype to avoid an error. */
5674 #ifdef __cplusplus
5675 extern "C"
5676 #endif
5677 /* We use char because int might match the return type of a gcc2
5678 builtin and then its argument prototype would still apply. */
5679 char lirc_init ();
5680 int
5681 main ()
5682 {
5683 lirc_init ();
5684 ;
5685 return 0;
5686 }
5687 _ACEOF
5688 rm -f conftest.$ac_objext conftest$ac_exeext
5689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5690 (eval $ac_link) 2>conftest.er1
5691 ac_status=$?
5692 grep -v '^ *+' conftest.er1 >conftest.err
5693 rm -f conftest.er1
5694 cat conftest.err >&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } &&
5697 { ac_try='test -z "$ac_c_werror_flag"
5698 || test ! -s conftest.err'
5699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5700 (eval $ac_try) 2>&5
5701 ac_status=$?
5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); }; } &&
5704 { ac_try='test -s conftest$ac_exeext'
5705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5706 (eval $ac_try) 2>&5
5707 ac_status=$?
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); }; }; then
5710 ac_cv_lib_lirc_client_lirc_init=yes
5711 else
5712 echo "$as_me: failed program was:" >&5
5713 sed 's/^/| /' conftest.$ac_ext >&5
5714
5715 ac_cv_lib_lirc_client_lirc_init=no
5716 fi
5717 rm -f conftest.err conftest.$ac_objext \
5718 conftest$ac_exeext conftest.$ac_ext
5719 LIBS=$ac_check_lib_save_LIBS
5720 fi
5721 echo "$as_me:$LINENO: result: $ac_cv_lib_lirc_client_lirc_init" >&5
5722 echo "${ECHO_T}$ac_cv_lib_lirc_client_lirc_init" >&6
5723 if test $ac_cv_lib_lirc_client_lirc_init = yes; then
5724
5725 cat >>confdefs.h <<\_ACEOF
5726 #define HAVE_LIBLIRC_CLIENT 1
5727 _ACEOF
5728 LIRC="-llirc_client"
5729 fi
5730
5731 else
5732 echo "*** lirc disabled"
5733 fi
5734
5735
5736 LIBZVBI=""
5737 if test "$enable_zvbi" != "no"; then
5738 echo "$as_me:$LINENO: checking for vbi_capture_fd in -lzvbi" >&5
5739 echo $ECHO_N "checking for vbi_capture_fd in -lzvbi... $ECHO_C" >&6
5740 if test "${ac_cv_lib_zvbi_vbi_capture_fd+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5742 else
5743 ac_check_lib_save_LIBS=$LIBS
5744 LIBS="-lzvbi $LIBPTHREAD $LIBS"
5745 cat >conftest.$ac_ext <<_ACEOF
5746 /* confdefs.h. */
5747 _ACEOF
5748 cat confdefs.h >>conftest.$ac_ext
5749 cat >>conftest.$ac_ext <<_ACEOF
5750 /* end confdefs.h. */
5751
5752 /* Override any gcc2 internal prototype to avoid an error. */
5753 #ifdef __cplusplus
5754 extern "C"
5755 #endif
5756 /* We use char because int might match the return type of a gcc2
5757 builtin and then its argument prototype would still apply. */
5758 char vbi_capture_fd ();
5759 int
5760 main ()
5761 {
5762 vbi_capture_fd ();
5763 ;
5764 return 0;
5765 }
5766 _ACEOF
5767 rm -f conftest.$ac_objext conftest$ac_exeext
5768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5769 (eval $ac_link) 2>conftest.er1
5770 ac_status=$?
5771 grep -v '^ *+' conftest.er1 >conftest.err
5772 rm -f conftest.er1
5773 cat conftest.err >&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); } &&
5776 { ac_try='test -z "$ac_c_werror_flag"
5777 || test ! -s conftest.err'
5778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5779 (eval $ac_try) 2>&5
5780 ac_status=$?
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }; } &&
5783 { ac_try='test -s conftest$ac_exeext'
5784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5785 (eval $ac_try) 2>&5
5786 ac_status=$?
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); }; }; then
5789 ac_cv_lib_zvbi_vbi_capture_fd=yes
5790 else
5791 echo "$as_me: failed program was:" >&5
5792 sed 's/^/| /' conftest.$ac_ext >&5
5793
5794 ac_cv_lib_zvbi_vbi_capture_fd=no
5795 fi
5796 rm -f conftest.err conftest.$ac_objext \
5797 conftest$ac_exeext conftest.$ac_ext
5798 LIBS=$ac_check_lib_save_LIBS
5799 fi
5800 echo "$as_me:$LINENO: result: $ac_cv_lib_zvbi_vbi_capture_fd" >&5
5801 echo "${ECHO_T}$ac_cv_lib_zvbi_vbi_capture_fd" >&6
5802 if test $ac_cv_lib_zvbi_vbi_capture_fd = yes; then
5803
5804 cat >>confdefs.h <<\_ACEOF
5805 #define HAVE_ZVBI 1
5806 _ACEOF
5807 FOUND_ZVBI="yes"; LIBZVBI="-lzvbi -lpthread -lm -lpng -lz"
5808 fi
5809
5810 else
5811 echo "*** zvbi disabled"
5812 fi
5813
5814
5815 AALIBS=""
5816 if test "$enable_aa" != "no"; then
5817 echo "$as_me:$LINENO: checking for aa_autoinit in -laa" >&5
5818 echo $ECHO_N "checking for aa_autoinit in -laa... $ECHO_C" >&6
5819 if test "${ac_cv_lib_aa_aa_autoinit+set}" = set; then
5820 echo $ECHO_N "(cached) $ECHO_C" >&6
5821 else
5822 ac_check_lib_save_LIBS=$LIBS
5823 LIBS="-laa $LIBS"
5824 cat >conftest.$ac_ext <<_ACEOF
5825 /* confdefs.h. */
5826 _ACEOF
5827 cat confdefs.h >>conftest.$ac_ext
5828 cat >>conftest.$ac_ext <<_ACEOF
5829 /* end confdefs.h. */
5830
5831 /* Override any gcc2 internal prototype to avoid an error. */
5832 #ifdef __cplusplus
5833 extern "C"
5834 #endif
5835 /* We use char because int might match the return type of a gcc2
5836 builtin and then its argument prototype would still apply. */
5837 char aa_autoinit ();
5838 int
5839 main ()
5840 {
5841 aa_autoinit ();
5842 ;
5843 return 0;
5844 }
5845 _ACEOF
5846 rm -f conftest.$ac_objext conftest$ac_exeext
5847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5848 (eval $ac_link) 2>conftest.er1
5849 ac_status=$?
5850 grep -v '^ *+' conftest.er1 >conftest.err
5851 rm -f conftest.er1
5852 cat conftest.err >&5
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); } &&
5855 { ac_try='test -z "$ac_c_werror_flag"
5856 || test ! -s conftest.err'
5857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5858 (eval $ac_try) 2>&5
5859 ac_status=$?
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); }; } &&
5862 { ac_try='test -s conftest$ac_exeext'
5863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5864 (eval $ac_try) 2>&5
5865 ac_status=$?
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); }; }; then
5868 ac_cv_lib_aa_aa_autoinit=yes
5869 else
5870 echo "$as_me: failed program was:" >&5
5871 sed 's/^/| /' conftest.$ac_ext >&5
5872
5873 ac_cv_lib_aa_aa_autoinit=no
5874 fi
5875 rm -f conftest.err conftest.$ac_objext \
5876 conftest$ac_exeext conftest.$ac_ext
5877 LIBS=$ac_check_lib_save_LIBS
5878 fi
5879 echo "$as_me:$LINENO: result: $ac_cv_lib_aa_aa_autoinit" >&5
5880 echo "${ECHO_T}$ac_cv_lib_aa_aa_autoinit" >&6
5881 if test $ac_cv_lib_aa_aa_autoinit = yes; then
5882 FOUND_AALIB="yes"
5883 fi
5884
5885 if test "$FOUND_AALIB" = "yes"; then
5886 AALIBS=-laa
5887 if test -x "`which aalib-config 2>/dev/null`"; then
5888 AALIBS=`aalib-config --libs`
5889 fi
5890 fi
5891 else
5892 echo "*** aalib support disabled"
5893 fi
5894
5895
5896 LIBDV=""
5897 if test "$enable_dv" != "no"; then
5898 echo "$as_me:$LINENO: checking for dv_decoder_new in -ldv" >&5
5899 echo $ECHO_N "checking for dv_decoder_new in -ldv... $ECHO_C" >&6
5900 if test "${ac_cv_lib_dv_dv_decoder_new+set}" = set; then
5901 echo $ECHO_N "(cached) $ECHO_C" >&6
5902 else
5903 ac_check_lib_save_LIBS=$LIBS
5904 LIBS="-ldv -lm $LIBPTHREAD $LIBS"
5905 cat >conftest.$ac_ext <<_ACEOF
5906 /* confdefs.h. */
5907 _ACEOF
5908 cat confdefs.h >>conftest.$ac_ext
5909 cat >>conftest.$ac_ext <<_ACEOF
5910 /* end confdefs.h. */
5911
5912 /* Override any gcc2 internal prototype to avoid an error. */
5913 #ifdef __cplusplus
5914 extern "C"
5915 #endif
5916 /* We use char because int might match the return type of a gcc2
5917 builtin and then its argument prototype would still apply. */
5918 char dv_decoder_new ();
5919 int
5920 main ()
5921 {
5922 dv_decoder_new ();
5923 ;
5924 return 0;
5925 }
5926 _ACEOF
5927 rm -f conftest.$ac_objext conftest$ac_exeext
5928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5929 (eval $ac_link) 2>conftest.er1
5930 ac_status=$?
5931 grep -v '^ *+' conftest.er1 >conftest.err
5932 rm -f conftest.er1
5933 cat conftest.err >&5
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); } &&
5936 { ac_try='test -z "$ac_c_werror_flag"
5937 || test ! -s conftest.err'
5938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5939 (eval $ac_try) 2>&5
5940 ac_status=$?
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; } &&
5943 { ac_try='test -s conftest$ac_exeext'
5944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5945 (eval $ac_try) 2>&5
5946 ac_status=$?
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); }; }; then
5949 ac_cv_lib_dv_dv_decoder_new=yes
5950 else
5951 echo "$as_me: failed program was:" >&5
5952 sed 's/^/| /' conftest.$ac_ext >&5
5953
5954 ac_cv_lib_dv_dv_decoder_new=no
5955 fi
5956 rm -f conftest.err conftest.$ac_objext \
5957 conftest$ac_exeext conftest.$ac_ext
5958 LIBS=$ac_check_lib_save_LIBS
5959 fi
5960 echo "$as_me:$LINENO: result: $ac_cv_lib_dv_dv_decoder_new" >&5
5961 echo "${ECHO_T}$ac_cv_lib_dv_dv_decoder_new" >&6
5962 if test $ac_cv_lib_dv_dv_decoder_new = yes; then
5963
5964 cat >>confdefs.h <<\_ACEOF
5965 #define HAVE_DV 1
5966 _ACEOF
5967 FOUND_DV="yes"; LIBDV="-ldv -lm"
5968 fi
5969
5970 else
5971 echo "*** DV disabled"
5972 fi
5973
5974 dashlglib=$(glib-config --libs 2>/dev/null)
5975 if test "$enable_quicktime" != "no"; then
5976 echo "$as_me:$LINENO: checking for lqt_query_registry in -lquicktime" >&5
5977 echo $ECHO_N "checking for lqt_query_registry in -lquicktime... $ECHO_C" >&6
5978 if test "${ac_cv_lib_quicktime_lqt_query_registry+set}" = set; then
5979 echo $ECHO_N "(cached) $ECHO_C" >&6
5980 else
5981 ac_check_lib_save_LIBS=$LIBS
5982 LIBS="-lquicktime $DLFLAGS $dashlglib $LIBPTHREAD $LIBS"
5983 cat >conftest.$ac_ext <<_ACEOF
5984 /* confdefs.h. */
5985 _ACEOF
5986 cat confdefs.h >>conftest.$ac_ext
5987 cat >>conftest.$ac_ext <<_ACEOF
5988 /* end confdefs.h. */
5989
5990 /* Override any gcc2 internal prototype to avoid an error. */
5991 #ifdef __cplusplus
5992 extern "C"
5993 #endif
5994 /* We use char because int might match the return type of a gcc2
5995 builtin and then its argument prototype would still apply. */
5996 char lqt_query_registry ();
5997 int
5998 main ()
5999 {
6000 lqt_query_registry ();
6001 ;
6002 return 0;
6003 }
6004 _ACEOF
6005 rm -f conftest.$ac_objext conftest$ac_exeext
6006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6007 (eval $ac_link) 2>conftest.er1
6008 ac_status=$?
6009 grep -v '^ *+' conftest.er1 >conftest.err
6010 rm -f conftest.er1
6011 cat conftest.err >&5
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); } &&
6014 { ac_try='test -z "$ac_c_werror_flag"
6015 || test ! -s conftest.err'
6016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6017 (eval $ac_try) 2>&5
6018 ac_status=$?
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); }; } &&
6021 { ac_try='test -s conftest$ac_exeext'
6022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6023 (eval $ac_try) 2>&5
6024 ac_status=$?
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }; }; then
6027 ac_cv_lib_quicktime_lqt_query_registry=yes
6028 else
6029 echo "$as_me: failed program was:" >&5
6030 sed 's/^/| /' conftest.$ac_ext >&5
6031
6032 ac_cv_lib_quicktime_lqt_query_registry=no
6033 fi
6034 rm -f conftest.err conftest.$ac_objext \
6035 conftest$ac_exeext conftest.$ac_ext
6036 LIBS=$ac_check_lib_save_LIBS
6037 fi
6038 echo "$as_me:$LINENO: result: $ac_cv_lib_quicktime_lqt_query_registry" >&5
6039 echo "${ECHO_T}$ac_cv_lib_quicktime_lqt_query_registry" >&6
6040 if test $ac_cv_lib_quicktime_lqt_query_registry = yes; then
6041 FOUND_LQT="yes";
6042 cat >>confdefs.h <<\_ACEOF
6043 #define HAVE_LIBQUICKTIME 1
6044 _ACEOF
6045
6046 fi
6047
6048 else
6049 echo "*** quicktime disabled"
6050 fi
6051 QTLIBS=""
6052 if test "$FOUND_LQT" = "yes"; then
6053 QTLIBS="-lquicktime $DLFLAGS $dashlglib -lm"
6054 fi
6055
6056
6057 if test "$enable_xfree_ext" != "no"; then
6058
6059 echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
6060 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6061 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6063 else
6064 ac_check_lib_save_LIBS=$LIBS
6065 LIBS="-lXxf86dga $X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6066 cat >conftest.$ac_ext <<_ACEOF
6067 /* confdefs.h. */
6068 _ACEOF
6069 cat confdefs.h >>conftest.$ac_ext
6070 cat >>conftest.$ac_ext <<_ACEOF
6071 /* end confdefs.h. */
6072
6073 /* Override any gcc2 internal prototype to avoid an error. */
6074 #ifdef __cplusplus
6075 extern "C"
6076 #endif
6077 /* We use char because int might match the return type of a gcc2
6078 builtin and then its argument prototype would still apply. */
6079 char XF86DGAQueryExtension ();
6080 int
6081 main ()
6082 {
6083 XF86DGAQueryExtension ();
6084 ;
6085 return 0;
6086 }
6087 _ACEOF
6088 rm -f conftest.$ac_objext conftest$ac_exeext
6089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6090 (eval $ac_link) 2>conftest.er1
6091 ac_status=$?
6092 grep -v '^ *+' conftest.er1 >conftest.err
6093 rm -f conftest.er1
6094 cat conftest.err >&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); } &&
6097 { ac_try='test -z "$ac_c_werror_flag"
6098 || test ! -s conftest.err'
6099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6100 (eval $ac_try) 2>&5
6101 ac_status=$?
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); }; } &&
6104 { ac_try='test -s conftest$ac_exeext'
6105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6106 (eval $ac_try) 2>&5
6107 ac_status=$?
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); }; }; then
6110 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
6111 else
6112 echo "$as_me: failed program was:" >&5
6113 sed 's/^/| /' conftest.$ac_ext >&5
6114
6115 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
6116 fi
6117 rm -f conftest.err conftest.$ac_objext \
6118 conftest$ac_exeext conftest.$ac_ext
6119 LIBS=$ac_check_lib_save_LIBS
6120 fi
6121 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
6122 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
6123 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
6124 cat >>confdefs.h <<_ACEOF
6125 #define HAVE_LIBXXF86DGA 1
6126 _ACEOF
6127
6128 LIBS="-lXxf86dga $LIBS"
6129
6130 fi
6131
6132
6133 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
6134 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
6135 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
6136 echo $ECHO_N "(cached) $ECHO_C" >&6
6137 else
6138 ac_check_lib_save_LIBS=$LIBS
6139 LIBS="-lXxf86vm $X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6140 cat >conftest.$ac_ext <<_ACEOF
6141 /* confdefs.h. */
6142 _ACEOF
6143 cat confdefs.h >>conftest.$ac_ext
6144 cat >>conftest.$ac_ext <<_ACEOF
6145 /* end confdefs.h. */
6146
6147 /* Override any gcc2 internal prototype to avoid an error. */
6148 #ifdef __cplusplus
6149 extern "C"
6150 #endif
6151 /* We use char because int might match the return type of a gcc2
6152 builtin and then its argument prototype would still apply. */
6153 char XF86VidModeQueryExtension ();
6154 int
6155 main ()
6156 {
6157 XF86VidModeQueryExtension ();
6158 ;
6159 return 0;
6160 }
6161 _ACEOF
6162 rm -f conftest.$ac_objext conftest$ac_exeext
6163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6164 (eval $ac_link) 2>conftest.er1
6165 ac_status=$?
6166 grep -v '^ *+' conftest.er1 >conftest.err
6167 rm -f conftest.er1
6168 cat conftest.err >&5
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); } &&
6171 { ac_try='test -z "$ac_c_werror_flag"
6172 || test ! -s conftest.err'
6173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6174 (eval $ac_try) 2>&5
6175 ac_status=$?
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); }; } &&
6178 { ac_try='test -s conftest$ac_exeext'
6179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6180 (eval $ac_try) 2>&5
6181 ac_status=$?
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); }; }; then
6184 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
6185 else
6186 echo "$as_me: failed program was:" >&5
6187 sed 's/^/| /' conftest.$ac_ext >&5
6188
6189 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
6190 fi
6191 rm -f conftest.err conftest.$ac_objext \
6192 conftest$ac_exeext conftest.$ac_ext
6193 LIBS=$ac_check_lib_save_LIBS
6194 fi
6195 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
6196 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
6197 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
6198 cat >>confdefs.h <<_ACEOF
6199 #define HAVE_LIBXXF86VM 1
6200 _ACEOF
6201
6202 LIBS="-lXxf86vm $LIBS"
6203
6204 fi
6205
6206
6207 echo "$as_me:$LINENO: checking for DPMSQueryExtension in -lXdpms" >&5
6208 echo $ECHO_N "checking for DPMSQueryExtension in -lXdpms... $ECHO_C" >&6
6209 if test "${ac_cv_lib_Xdpms_DPMSQueryExtension+set}" = set; then
6210 echo $ECHO_N "(cached) $ECHO_C" >&6
6211 else
6212 ac_check_lib_save_LIBS=$LIBS
6213 LIBS="-lXdpms $X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6214 cat >conftest.$ac_ext <<_ACEOF
6215 /* confdefs.h. */
6216 _ACEOF
6217 cat confdefs.h >>conftest.$ac_ext
6218 cat >>conftest.$ac_ext <<_ACEOF
6219 /* end confdefs.h. */
6220
6221 /* Override any gcc2 internal prototype to avoid an error. */
6222 #ifdef __cplusplus
6223 extern "C"
6224 #endif
6225 /* We use char because int might match the return type of a gcc2
6226 builtin and then its argument prototype would still apply. */
6227 char DPMSQueryExtension ();
6228 int
6229 main ()
6230 {
6231 DPMSQueryExtension ();
6232 ;
6233 return 0;
6234 }
6235 _ACEOF
6236 rm -f conftest.$ac_objext conftest$ac_exeext
6237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6238 (eval $ac_link) 2>conftest.er1
6239 ac_status=$?
6240 grep -v '^ *+' conftest.er1 >conftest.err
6241 rm -f conftest.er1
6242 cat conftest.err >&5
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); } &&
6245 { ac_try='test -z "$ac_c_werror_flag"
6246 || test ! -s conftest.err'
6247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6248 (eval $ac_try) 2>&5
6249 ac_status=$?
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); }; } &&
6252 { ac_try='test -s conftest$ac_exeext'
6253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6254 (eval $ac_try) 2>&5
6255 ac_status=$?
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; }; then
6258 ac_cv_lib_Xdpms_DPMSQueryExtension=yes
6259 else
6260 echo "$as_me: failed program was:" >&5
6261 sed 's/^/| /' conftest.$ac_ext >&5
6262
6263 ac_cv_lib_Xdpms_DPMSQueryExtension=no
6264 fi
6265 rm -f conftest.err conftest.$ac_objext \
6266 conftest$ac_exeext conftest.$ac_ext
6267 LIBS=$ac_check_lib_save_LIBS
6268 fi
6269 echo "$as_me:$LINENO: result: $ac_cv_lib_Xdpms_DPMSQueryExtension" >&5
6270 echo "${ECHO_T}$ac_cv_lib_Xdpms_DPMSQueryExtension" >&6
6271 if test $ac_cv_lib_Xdpms_DPMSQueryExtension = yes; then
6272 cat >>confdefs.h <<_ACEOF
6273 #define HAVE_LIBXDPMS 1
6274 _ACEOF
6275
6276 LIBS="-lXdpms $LIBS"
6277
6278 fi
6279
6280 if test "$ac_cv_lib_Xdpms_DPMSQueryExtension" = "no"; then
6281 echo "$as_me:$LINENO: checking for DPMSQueryExtension in -lXext" >&5
6282 echo $ECHO_N "checking for DPMSQueryExtension in -lXext... $ECHO_C" >&6
6283 if test "${ac_cv_lib_Xext_DPMSQueryExtension+set}" = set; then
6284 echo $ECHO_N "(cached) $ECHO_C" >&6
6285 else
6286 ac_check_lib_save_LIBS=$LIBS
6287 LIBS="-lXext $X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6288 cat >conftest.$ac_ext <<_ACEOF
6289 /* confdefs.h. */
6290 _ACEOF
6291 cat confdefs.h >>conftest.$ac_ext
6292 cat >>conftest.$ac_ext <<_ACEOF
6293 /* end confdefs.h. */
6294
6295 /* Override any gcc2 internal prototype to avoid an error. */
6296 #ifdef __cplusplus
6297 extern "C"
6298 #endif
6299 /* We use char because int might match the return type of a gcc2
6300 builtin and then its argument prototype would still apply. */
6301 char DPMSQueryExtension ();
6302 int
6303 main ()
6304 {
6305 DPMSQueryExtension ();
6306 ;
6307 return 0;
6308 }
6309 _ACEOF
6310 rm -f conftest.$ac_objext conftest$ac_exeext
6311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6312 (eval $ac_link) 2>conftest.er1
6313 ac_status=$?
6314 grep -v '^ *+' conftest.er1 >conftest.err
6315 rm -f conftest.er1
6316 cat conftest.err >&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); } &&
6319 { ac_try='test -z "$ac_c_werror_flag"
6320 || test ! -s conftest.err'
6321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6322 (eval $ac_try) 2>&5
6323 ac_status=$?
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); }; } &&
6326 { ac_try='test -s conftest$ac_exeext'
6327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6328 (eval $ac_try) 2>&5
6329 ac_status=$?
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); }; }; then
6332 ac_cv_lib_Xext_DPMSQueryExtension=yes
6333 else
6334 echo "$as_me: failed program was:" >&5
6335 sed 's/^/| /' conftest.$ac_ext >&5
6336
6337 ac_cv_lib_Xext_DPMSQueryExtension=no
6338 fi
6339 rm -f conftest.err conftest.$ac_objext \
6340 conftest$ac_exeext conftest.$ac_ext
6341 LIBS=$ac_check_lib_save_LIBS
6342 fi
6343 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_DPMSQueryExtension" >&5
6344 echo "${ECHO_T}$ac_cv_lib_Xext_DPMSQueryExtension" >&6
6345 if test $ac_cv_lib_Xext_DPMSQueryExtension = yes; then
6346 cat >>confdefs.h <<\_ACEOF
6347 #define HAVE_LIBXDPMS 1
6348 _ACEOF
6349
6350 fi
6351
6352 fi
6353
6354 echo "$as_me:$LINENO: checking for XineramaQueryExtension in -lXinerama" >&5
6355 echo $ECHO_N "checking for XineramaQueryExtension in -lXinerama... $ECHO_C" >&6
6356 if test "${ac_cv_lib_Xinerama_XineramaQueryExtension+set}" = set; then
6357 echo $ECHO_N "(cached) $ECHO_C" >&6
6358 else
6359 ac_check_lib_save_LIBS=$LIBS
6360 LIBS="-lXinerama $X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6361 cat >conftest.$ac_ext <<_ACEOF
6362 /* confdefs.h. */
6363 _ACEOF
6364 cat confdefs.h >>conftest.$ac_ext
6365 cat >>conftest.$ac_ext <<_ACEOF
6366 /* end confdefs.h. */
6367
6368 /* Override any gcc2 internal prototype to avoid an error. */
6369 #ifdef __cplusplus
6370 extern "C"
6371 #endif
6372 /* We use char because int might match the return type of a gcc2
6373 builtin and then its argument prototype would still apply. */
6374 char XineramaQueryExtension ();
6375 int
6376 main ()
6377 {
6378 XineramaQueryExtension ();
6379 ;
6380 return 0;
6381 }
6382 _ACEOF
6383 rm -f conftest.$ac_objext conftest$ac_exeext
6384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6385 (eval $ac_link) 2>conftest.er1
6386 ac_status=$?
6387 grep -v '^ *+' conftest.er1 >conftest.err
6388 rm -f conftest.er1
6389 cat conftest.err >&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); } &&
6392 { ac_try='test -z "$ac_c_werror_flag"
6393 || test ! -s conftest.err'
6394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6395 (eval $ac_try) 2>&5
6396 ac_status=$?
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); }; } &&
6399 { ac_try='test -s conftest$ac_exeext'
6400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6401 (eval $ac_try) 2>&5
6402 ac_status=$?
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); }; }; then
6405 ac_cv_lib_Xinerama_XineramaQueryExtension=yes
6406 else
6407 echo "$as_me: failed program was:" >&5
6408 sed 's/^/| /' conftest.$ac_ext >&5
6409
6410 ac_cv_lib_Xinerama_XineramaQueryExtension=no
6411 fi
6412 rm -f conftest.err conftest.$ac_objext \
6413 conftest$ac_exeext conftest.$ac_ext
6414 LIBS=$ac_check_lib_save_LIBS
6415 fi
6416 echo "$as_me:$LINENO: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
6417 echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6
6418 if test $ac_cv_lib_Xinerama_XineramaQueryExtension = yes; then
6419 cat >>confdefs.h <<_ACEOF
6420 #define HAVE_LIBXINERAMA 1
6421 _ACEOF
6422
6423 LIBS="-lXinerama $LIBS"
6424
6425 fi
6426
6427
6428 echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
6429 echo $ECHO_N "checking for XRenderQueryExtension in -lXrender... $ECHO_C" >&6
6430 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
6431 echo $ECHO_N "(cached) $ECHO_C" >&6
6432 else
6433 ac_check_lib_save_LIBS=$LIBS
6434 LIBS="-lXrender $X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6435 cat >conftest.$ac_ext <<_ACEOF
6436 /* confdefs.h. */
6437 _ACEOF
6438 cat confdefs.h >>conftest.$ac_ext
6439 cat >>conftest.$ac_ext <<_ACEOF
6440 /* end confdefs.h. */
6441
6442 /* Override any gcc2 internal prototype to avoid an error. */
6443 #ifdef __cplusplus
6444 extern "C"
6445 #endif
6446 /* We use char because int might match the return type of a gcc2
6447 builtin and then its argument prototype would still apply. */
6448 char XRenderQueryExtension ();
6449 int
6450 main ()
6451 {
6452 XRenderQueryExtension ();
6453 ;
6454 return 0;
6455 }
6456 _ACEOF
6457 rm -f conftest.$ac_objext conftest$ac_exeext
6458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6459 (eval $ac_link) 2>conftest.er1
6460 ac_status=$?
6461 grep -v '^ *+' conftest.er1 >conftest.err
6462 rm -f conftest.er1
6463 cat conftest.err >&5
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); } &&
6466 { ac_try='test -z "$ac_c_werror_flag"
6467 || test ! -s conftest.err'
6468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6469 (eval $ac_try) 2>&5
6470 ac_status=$?
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); }; } &&
6473 { ac_try='test -s conftest$ac_exeext'
6474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6475 (eval $ac_try) 2>&5
6476 ac_status=$?
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); }; }; then
6479 ac_cv_lib_Xrender_XRenderQueryExtension=yes
6480 else
6481 echo "$as_me: failed program was:" >&5
6482 sed 's/^/| /' conftest.$ac_ext >&5
6483
6484 ac_cv_lib_Xrender_XRenderQueryExtension=no
6485 fi
6486 rm -f conftest.err conftest.$ac_objext \
6487 conftest$ac_exeext conftest.$ac_ext
6488 LIBS=$ac_check_lib_save_LIBS
6489 fi
6490 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
6491 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderQueryExtension" >&6
6492 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
6493 cat >>confdefs.h <<_ACEOF
6494 #define HAVE_LIBXRENDER 1
6495 _ACEOF
6496
6497 LIBS="-lXrender $LIBS"
6498
6499 fi
6500
6501
6502 echo "$as_me:$LINENO: checking for XRRConfigCurrentConfiguration in -lXrandr" >&5
6503 echo $ECHO_N "checking for XRRConfigCurrentConfiguration in -lXrandr... $ECHO_C" >&6
6504 if test "${ac_cv_lib_Xrandr_XRRConfigCurrentConfiguration+set}" = set; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6506 else
6507 ac_check_lib_save_LIBS=$LIBS
6508 LIBS="-lXrandr $X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6509 cat >conftest.$ac_ext <<_ACEOF
6510 /* confdefs.h. */
6511 _ACEOF
6512 cat confdefs.h >>conftest.$ac_ext
6513 cat >>conftest.$ac_ext <<_ACEOF
6514 /* end confdefs.h. */
6515
6516 /* Override any gcc2 internal prototype to avoid an error. */
6517 #ifdef __cplusplus
6518 extern "C"
6519 #endif
6520 /* We use char because int might match the return type of a gcc2
6521 builtin and then its argument prototype would still apply. */
6522 char XRRConfigCurrentConfiguration ();
6523 int
6524 main ()
6525 {
6526 XRRConfigCurrentConfiguration ();
6527 ;
6528 return 0;
6529 }
6530 _ACEOF
6531 rm -f conftest.$ac_objext conftest$ac_exeext
6532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6533 (eval $ac_link) 2>conftest.er1
6534 ac_status=$?
6535 grep -v '^ *+' conftest.er1 >conftest.err
6536 rm -f conftest.er1
6537 cat conftest.err >&5
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); } &&
6540 { ac_try='test -z "$ac_c_werror_flag"
6541 || test ! -s conftest.err'
6542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6543 (eval $ac_try) 2>&5
6544 ac_status=$?
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); }; } &&
6547 { ac_try='test -s conftest$ac_exeext'
6548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6549 (eval $ac_try) 2>&5
6550 ac_status=$?
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); }; }; then
6553 ac_cv_lib_Xrandr_XRRConfigCurrentConfiguration=yes
6554 else
6555 echo "$as_me: failed program was:" >&5
6556 sed 's/^/| /' conftest.$ac_ext >&5
6557
6558 ac_cv_lib_Xrandr_XRRConfigCurrentConfiguration=no
6559 fi
6560 rm -f conftest.err conftest.$ac_objext \
6561 conftest$ac_exeext conftest.$ac_ext
6562 LIBS=$ac_check_lib_save_LIBS
6563 fi
6564 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRConfigCurrentConfiguration" >&5
6565 echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRConfigCurrentConfiguration" >&6
6566 if test $ac_cv_lib_Xrandr_XRRConfigCurrentConfiguration = yes; then
6567 cat >>confdefs.h <<_ACEOF
6568 #define HAVE_LIBXRANDR 1
6569 _ACEOF
6570
6571 LIBS="-lXrandr $LIBS"
6572
6573 fi
6574
6575 else
6576 echo "*** XFree extentions disabled"
6577 fi
6578
6579 if test "$enable_xvideo" != "no"; then
6580
6581 echo "$as_me:$LINENO: checking for XvQueryExtension in -lXv" >&5
6582 echo $ECHO_N "checking for XvQueryExtension in -lXv... $ECHO_C" >&6
6583 if test "${ac_cv_lib_Xv_XvQueryExtension+set}" = set; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6585 else
6586 ac_check_lib_save_LIBS=$LIBS
6587 LIBS="-lXv $X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6588 cat >conftest.$ac_ext <<_ACEOF
6589 /* confdefs.h. */
6590 _ACEOF
6591 cat confdefs.h >>conftest.$ac_ext
6592 cat >>conftest.$ac_ext <<_ACEOF
6593 /* end confdefs.h. */
6594
6595 /* Override any gcc2 internal prototype to avoid an error. */
6596 #ifdef __cplusplus
6597 extern "C"
6598 #endif
6599 /* We use char because int might match the return type of a gcc2
6600 builtin and then its argument prototype would still apply. */
6601 char XvQueryExtension ();
6602 int
6603 main ()
6604 {
6605 XvQueryExtension ();
6606 ;
6607 return 0;
6608 }
6609 _ACEOF
6610 rm -f conftest.$ac_objext conftest$ac_exeext
6611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6612 (eval $ac_link) 2>conftest.er1
6613 ac_status=$?
6614 grep -v '^ *+' conftest.er1 >conftest.err
6615 rm -f conftest.er1
6616 cat conftest.err >&5
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); } &&
6619 { ac_try='test -z "$ac_c_werror_flag"
6620 || test ! -s conftest.err'
6621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6622 (eval $ac_try) 2>&5
6623 ac_status=$?
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); }; } &&
6626 { ac_try='test -s conftest$ac_exeext'
6627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6628 (eval $ac_try) 2>&5
6629 ac_status=$?
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); }; }; then
6632 ac_cv_lib_Xv_XvQueryExtension=yes
6633 else
6634 echo "$as_me: failed program was:" >&5
6635 sed 's/^/| /' conftest.$ac_ext >&5
6636
6637 ac_cv_lib_Xv_XvQueryExtension=no
6638 fi
6639 rm -f conftest.err conftest.$ac_objext \
6640 conftest$ac_exeext conftest.$ac_ext
6641 LIBS=$ac_check_lib_save_LIBS
6642 fi
6643 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvQueryExtension" >&5
6644 echo "${ECHO_T}$ac_cv_lib_Xv_XvQueryExtension" >&6
6645 if test $ac_cv_lib_Xv_XvQueryExtension = yes; then
6646 cat >>confdefs.h <<_ACEOF
6647 #define HAVE_LIBXV 1
6648 _ACEOF
6649
6650 LIBS="-lXv $LIBS"
6651
6652 fi
6653
6654 else
6655 echo "*** Xvideo extention disabled"
6656 fi
6657
6658 if test "$enable_motif" != "no"; then
6659 echo "$as_me:$LINENO: checking for XmStringGenerate in -lXm" >&5
6660 echo $ECHO_N "checking for XmStringGenerate in -lXm... $ECHO_C" >&6
6661 if test "${ac_cv_lib_Xm_XmStringGenerate+set}" = set; then
6662 echo $ECHO_N "(cached) $ECHO_C" >&6
6663 else
6664 ac_check_lib_save_LIBS=$LIBS
6665 LIBS="-lXm $X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6666 cat >conftest.$ac_ext <<_ACEOF
6667 /* confdefs.h. */
6668 _ACEOF
6669 cat confdefs.h >>conftest.$ac_ext
6670 cat >>conftest.$ac_ext <<_ACEOF
6671 /* end confdefs.h. */
6672
6673 /* Override any gcc2 internal prototype to avoid an error. */
6674 #ifdef __cplusplus
6675 extern "C"
6676 #endif
6677 /* We use char because int might match the return type of a gcc2
6678 builtin and then its argument prototype would still apply. */
6679 char XmStringGenerate ();
6680 int
6681 main ()
6682 {
6683 XmStringGenerate ();
6684 ;
6685 return 0;
6686 }
6687 _ACEOF
6688 rm -f conftest.$ac_objext conftest$ac_exeext
6689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6690 (eval $ac_link) 2>conftest.er1
6691 ac_status=$?
6692 grep -v '^ *+' conftest.er1 >conftest.err
6693 rm -f conftest.er1
6694 cat conftest.err >&5
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); } &&
6697 { ac_try='test -z "$ac_c_werror_flag"
6698 || test ! -s conftest.err'
6699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6700 (eval $ac_try) 2>&5
6701 ac_status=$?
6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); }; } &&
6704 { ac_try='test -s conftest$ac_exeext'
6705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6706 (eval $ac_try) 2>&5
6707 ac_status=$?
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); }; }; then
6710 ac_cv_lib_Xm_XmStringGenerate=yes
6711 else
6712 echo "$as_me: failed program was:" >&5
6713 sed 's/^/| /' conftest.$ac_ext >&5
6714
6715 ac_cv_lib_Xm_XmStringGenerate=no
6716 fi
6717 rm -f conftest.err conftest.$ac_objext \
6718 conftest$ac_exeext conftest.$ac_ext
6719 LIBS=$ac_check_lib_save_LIBS
6720 fi
6721 echo "$as_me:$LINENO: result: $ac_cv_lib_Xm_XmStringGenerate" >&5
6722 echo "${ECHO_T}$ac_cv_lib_Xm_XmStringGenerate" >&6
6723 if test $ac_cv_lib_Xm_XmStringGenerate = yes; then
6724 FOUND_MOTIF="yes"
6725 fi
6726
6727 else
6728 echo "*** motif support disabled"
6729 fi
6730
6731
6732 LIBGL=""
6733 if test "$enable_gl" != "no"; then
6734 echo "$as_me:$LINENO: checking for glXChooseVisual in -lGL" >&5
6735 echo $ECHO_N "checking for glXChooseVisual in -lGL... $ECHO_C" >&6
6736 if test "${ac_cv_lib_GL_glXChooseVisual+set}" = set; then
6737 echo $ECHO_N "(cached) $ECHO_C" >&6
6738 else
6739 ac_check_lib_save_LIBS=$LIBS
6740 LIBS="-lGL $X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS -lm $LIBS"
6741 cat >conftest.$ac_ext <<_ACEOF
6742 /* confdefs.h. */
6743 _ACEOF
6744 cat confdefs.h >>conftest.$ac_ext
6745 cat >>conftest.$ac_ext <<_ACEOF
6746 /* end confdefs.h. */
6747
6748 /* Override any gcc2 internal prototype to avoid an error. */
6749 #ifdef __cplusplus
6750 extern "C"
6751 #endif
6752 /* We use char because int might match the return type of a gcc2
6753 builtin and then its argument prototype would still apply. */
6754 char glXChooseVisual ();
6755 int
6756 main ()
6757 {
6758 glXChooseVisual ();
6759 ;
6760 return 0;
6761 }
6762 _ACEOF
6763 rm -f conftest.$ac_objext conftest$ac_exeext
6764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6765 (eval $ac_link) 2>conftest.er1
6766 ac_status=$?
6767 grep -v '^ *+' conftest.er1 >conftest.err
6768 rm -f conftest.er1
6769 cat conftest.err >&5
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); } &&
6772 { ac_try='test -z "$ac_c_werror_flag"
6773 || test ! -s conftest.err'
6774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6775 (eval $ac_try) 2>&5
6776 ac_status=$?
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); }; } &&
6779 { ac_try='test -s conftest$ac_exeext'
6780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6781 (eval $ac_try) 2>&5
6782 ac_status=$?
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); }; }; then
6785 ac_cv_lib_GL_glXChooseVisual=yes
6786 else
6787 echo "$as_me: failed program was:" >&5
6788 sed 's/^/| /' conftest.$ac_ext >&5
6789
6790 ac_cv_lib_GL_glXChooseVisual=no
6791 fi
6792 rm -f conftest.err conftest.$ac_objext \
6793 conftest$ac_exeext conftest.$ac_ext
6794 LIBS=$ac_check_lib_save_LIBS
6795 fi
6796 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXChooseVisual" >&5
6797 echo "${ECHO_T}$ac_cv_lib_GL_glXChooseVisual" >&6
6798 if test $ac_cv_lib_GL_glXChooseVisual = yes; then
6799
6800 cat >>confdefs.h <<\_ACEOF
6801 #define HAVE_GL 1
6802 _ACEOF
6803 FOUND_GL="yes"; LIBGL="-lGL -lm"
6804 fi
6805
6806 else
6807 echo "*** OpenGL disabled"
6808 fi
6809
6810 VERSION="`(cd $srcdir; pwd) | sed -e 's/.*-//'`"
6811
6812
6813 echo "$as_me:$LINENO: checking for X11 config directory" >&5
6814 echo $ECHO_N "checking for X11 config directory... $ECHO_C" >&6
6815 x11conf=/usr/X11R6/lib/X11
6816 if test -d /etc/X11; then
6817 x11conf=/etc/X11
6818 fi
6819 echo "$as_me:$LINENO: result: $x11conf" >&5
6820 echo "${ECHO_T}$x11conf" >&6
6821
6822
6823 echo "$as_me:$LINENO: checking for X11 app-defaults directory" >&5
6824 echo $ECHO_N "checking for X11 app-defaults directory... $ECHO_C" >&6
6825 resdir=/usr/X11R6/lib/X11
6826 if test -d /etc/X11/app-defaults; then
6827 resdir=/etc/X11
6828 fi
6829 echo "$as_me:$LINENO: result: $resdir/app-defaults" >&5
6830 echo "${ECHO_T}$resdir/app-defaults" >&6
6831
6832
6833
6834 cat >>confdefs.h <<\_ACEOF
6835 #define HAVE_XMU 1
6836 _ACEOF
6837
6838
6839 echo "$as_me:$LINENO: checking if mmx should be used" >&5
6840 echo $ECHO_N "checking if mmx should be used... $ECHO_C" >&6
6841
6842 if test "$enable_mmx" = "no" -o "$enable_mmx" = "yes"; then
6843 USE_MMX="$enable_mmx"
6844 else
6845 case "`uname -m`" in
6846 i586 | i686)
6847 USE_MMX="yes"
6848 ;;
6849 *)
6850 USE_MMX="no"
6851 ;;
6852 esac
6853 fi
6854 echo "$as_me:$LINENO: result: $USE_MMX" >&5
6855 echo "${ECHO_T}$USE_MMX" >&6
6856
6857 ac_config_files="$ac_config_files Makefile xawtv.spec"
6858 cat >confcache <<\_ACEOF
6859 # This file is a shell script that caches the results of configure
6860 # tests run on this system so they can be shared between configure
6861 # scripts and configure runs, see configure's option --config-cache.
6862 # It is not useful on other systems. If it contains results you don't
6863 # want to keep, you may remove or edit it.
6864 #
6865 # config.status only pays attention to the cache file if you give it
6866 # the --recheck option to rerun configure.
6867 #
6868 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6869 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6870 # following values.
6871
6872 _ACEOF
6873
6874 # The following way of writing the cache mishandles newlines in values,
6875 # but we know of no workaround that is simple, portable, and efficient.
6876 # So, don't put newlines in cache variables' values.
6877 # Ultrix sh set writes to stderr and can't be redirected directly,
6878 # and sets the high bit in the cache file unless we assign to the vars.
6879 {
6880 (set) 2>&1 |
6881 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6882 *ac_space=\ *)
6883 # `set' does not quote correctly, so add quotes (double-quote
6884 # substitution turns \\\\ into \\, and sed turns \\ into \).
6885 sed -n \
6886 "s/'/'\\\\''/g;
6887 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6888 ;;
6889 *)
6890 # `set' quotes correctly as required by POSIX, so do not add quotes.
6891 sed -n \
6892 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6893 ;;
6894 esac;
6895 } |
6896 sed '
6897 t clear
6898 : clear
6899 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6900 t end
6901 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6902 : end' >>confcache
6903 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6904 if test -w $cache_file; then
6905 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6906 cat confcache >$cache_file
6907 else
6908 echo "not updating unwritable cache $cache_file"
6909 fi
6910 fi
6911 rm -f confcache
6912
6913 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6914 # Let make expand exec_prefix.
6915 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6916
6917 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6918 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6919 # trailing colons and then remove the whole line if VPATH becomes empty
6920 # (actually we leave an empty line to preserve line numbers).
6921 if test "x$srcdir" = x.; then
6922 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6923 s/:*\$(srcdir):*/:/;
6924 s/:*\${srcdir}:*/:/;
6925 s/:*@srcdir@:*/:/;
6926 s/^\([^=]*=[ ]*\):*/\1/;
6927 s/:*$//;
6928 s/^[^=]*=[ ]*$//;
6929 }'
6930 fi
6931
6932 DEFS=-DHAVE_CONFIG_H
6933
6934 ac_libobjs=
6935 ac_ltlibobjs=
6936 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6937 # 1. Remove the extension, and $U if already installed.
6938 ac_i=`echo "$ac_i" |
6939 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6940 # 2. Add them.
6941 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6942 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6943 done
6944 LIBOBJS=$ac_libobjs
6945
6946 LTLIBOBJS=$ac_ltlibobjs
6947
6948
6949
6950 : ${CONFIG_STATUS=./config.status}
6951 ac_clean_files_save=$ac_clean_files
6952 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6953 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6954 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6955 cat >$CONFIG_STATUS <<_ACEOF
6956 #! $SHELL
6957 # Generated by $as_me.
6958 # Run this file to recreate the current configuration.
6959 # Compiler output produced by configure, useful for debugging
6960 # configure, is in config.log if it exists.
6961
6962 debug=false
6963 ac_cs_recheck=false
6964 ac_cs_silent=false
6965 SHELL=\${CONFIG_SHELL-$SHELL}
6966 _ACEOF
6967
6968 cat >>$CONFIG_STATUS <<\_ACEOF
6969 ## --------------------- ##
6970 ## M4sh Initialization. ##
6971 ## --------------------- ##
6972
6973 # Be Bourne compatible
6974 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6975 emulate sh
6976 NULLCMD=:
6977 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6978 # is contrary to our usage. Disable this feature.
6979 alias -g '${1+"$@"}'='"$@"'
6980 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6981 set -o posix
6982 fi
6983 DUALCASE=1; export DUALCASE # for MKS sh
6984
6985 # Support unset when possible.
6986 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6987 as_unset=unset
6988 else
6989 as_unset=false
6990 fi
6991
6992
6993 # Work around bugs in pre-3.0 UWIN ksh.
6994 $as_unset ENV MAIL MAILPATH
6995 PS1='$ '
6996 PS2='> '
6997 PS4='+ '
6998
6999 # NLS nuisances.
7000 for as_var in \
7001 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7002 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7003 LC_TELEPHONE LC_TIME
7004 do
7005 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7006 eval $as_var=C; export $as_var
7007 else
7008 $as_unset $as_var
7009 fi
7010 done
7011
7012 # Required to use basename.
7013 if expr a : '\(a\)' >/dev/null 2>&1; then
7014 as_expr=expr
7015 else
7016 as_expr=false
7017 fi
7018
7019 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7020 as_basename=basename
7021 else
7022 as_basename=false
7023 fi
7024
7025
7026 # Name of the executable.
7027 as_me=`$as_basename "$0" ||
7028 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7029 X"$0" : 'X\(//\)$' \| \
7030 X"$0" : 'X\(/\)$' \| \
7031 . : '\(.\)' 2>/dev/null ||
7032 echo X/"$0" |
7033 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7034 /^X\/\(\/\/\)$/{ s//\1/; q; }
7035 /^X\/\(\/\).*/{ s//\1/; q; }
7036 s/.*/./; q'`
7037
7038
7039 # PATH needs CR, and LINENO needs CR and PATH.
7040 # Avoid depending upon Character Ranges.
7041 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7042 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7043 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7044 as_cr_digits='0123456789'
7045 as_cr_alnum=$as_cr_Letters$as_cr_digits
7046
7047 # The user is always right.
7048 if test "${PATH_SEPARATOR+set}" != set; then
7049 echo "#! /bin/sh" >conf$$.sh
7050 echo "exit 0" >>conf$$.sh
7051 chmod +x conf$$.sh
7052 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7053 PATH_SEPARATOR=';'
7054 else
7055 PATH_SEPARATOR=:
7056 fi
7057 rm -f conf$$.sh
7058 fi
7059
7060
7061 as_lineno_1=$LINENO
7062 as_lineno_2=$LINENO
7063 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7064 test "x$as_lineno_1" != "x$as_lineno_2" &&
7065 test "x$as_lineno_3" = "x$as_lineno_2" || {
7066 # Find who we are. Look in the path if we contain no path at all
7067 # relative or not.
7068 case $0 in
7069 *[\\/]* ) as_myself=$0 ;;
7070 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071 for as_dir in $PATH
7072 do
7073 IFS=$as_save_IFS
7074 test -z "$as_dir" && as_dir=.
7075 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7076 done
7077
7078 ;;
7079 esac
7080 # We did not find ourselves, most probably we were run as `sh COMMAND'
7081 # in which case we are not to be found in the path.
7082 if test "x$as_myself" = x; then
7083 as_myself=$0
7084 fi
7085 if test ! -f "$as_myself"; then
7086 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7087 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7088 { (exit 1); exit 1; }; }
7089 fi
7090 case $CONFIG_SHELL in
7091 '')
7092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7094 do
7095 IFS=$as_save_IFS
7096 test -z "$as_dir" && as_dir=.
7097 for as_base in sh bash ksh sh5; do
7098 case $as_dir in
7099 /*)
7100 if ("$as_dir/$as_base" -c '
7101 as_lineno_1=$LINENO
7102 as_lineno_2=$LINENO
7103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7104 test "x$as_lineno_1" != "x$as_lineno_2" &&
7105 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7106 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7107 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7108 CONFIG_SHELL=$as_dir/$as_base
7109 export CONFIG_SHELL
7110 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7111 fi;;
7112 esac
7113 done
7114 done
7115 ;;
7116 esac
7117
7118 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7119 # uniformly replaced by the line number. The first 'sed' inserts a
7120 # line-number line before each line; the second 'sed' does the real
7121 # work. The second script uses 'N' to pair each line-number line
7122 # with the numbered line, and appends trailing '-' during
7123 # substitution so that $LINENO is not a special case at line end.
7124 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7125 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7126 sed '=' <$as_myself |
7127 sed '
7128 N
7129 s,$,-,
7130 : loop
7131 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7132 t loop
7133 s,-$,,
7134 s,^['$as_cr_digits']*\n,,
7135 ' >$as_me.lineno &&
7136 chmod +x $as_me.lineno ||
7137 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7138 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7139 { (exit 1); exit 1; }; }
7140
7141 # Don't try to exec as it changes $[0], causing all sort of problems
7142 # (the dirname of $[0] is not the place where we might find the
7143 # original and so on. Autoconf is especially sensible to this).
7144 . ./$as_me.lineno
7145 # Exit status is that of the last command.
7146 exit
7147 }
7148
7149
7150 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7151 *c*,-n*) ECHO_N= ECHO_C='
7152 ' ECHO_T=' ' ;;
7153 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7154 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7155 esac
7156
7157 if expr a : '\(a\)' >/dev/null 2>&1; then
7158 as_expr=expr
7159 else
7160 as_expr=false
7161 fi
7162
7163 rm -f conf$$ conf$$.exe conf$$.file
7164 echo >conf$$.file
7165 if ln -s conf$$.file conf$$ 2>/dev/null; then
7166 # We could just check for DJGPP; but this test a) works b) is more generic
7167 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7168 if test -f conf$$.exe; then
7169 # Don't use ln at all; we don't have any links
7170 as_ln_s='cp -p'
7171 else
7172 as_ln_s='ln -s'
7173 fi
7174 elif ln conf$$.file conf$$ 2>/dev/null; then
7175 as_ln_s=ln
7176 else
7177 as_ln_s='cp -p'
7178 fi
7179 rm -f conf$$ conf$$.exe conf$$.file
7180
7181 if mkdir -p . 2>/dev/null; then
7182 as_mkdir_p=:
7183 else
7184 test -d ./-p && rmdir ./-p
7185 as_mkdir_p=false
7186 fi
7187
7188 as_executable_p="test -f"
7189
7190 # Sed expression to map a string onto a valid CPP name.
7191 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7192
7193 # Sed expression to map a string onto a valid variable name.
7194 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7195
7196
7197 # IFS
7198 # We need space, tab and new line, in precisely that order.
7199 as_nl='
7200 '
7201 IFS=" $as_nl"
7202
7203 # CDPATH.
7204 $as_unset CDPATH
7205
7206 exec 6>&1
7207
7208 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7209 # report actual input values of CONFIG_FILES etc. instead of their
7210 # values after options handling. Logging --version etc. is OK.
7211 exec 5>>config.log
7212 {
7213 echo
7214 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7215 ## Running $as_me. ##
7216 _ASBOX
7217 } >&5
7218 cat >&5 <<_CSEOF
7219
7220 This file was extended by $as_me, which was
7221 generated by GNU Autoconf 2.59. Invocation command line was
7222
7223 CONFIG_FILES = $CONFIG_FILES
7224 CONFIG_HEADERS = $CONFIG_HEADERS
7225 CONFIG_LINKS = $CONFIG_LINKS
7226 CONFIG_COMMANDS = $CONFIG_COMMANDS
7227 $ $0 $@
7228
7229 _CSEOF
7230 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7231 echo >&5
7232 _ACEOF
7233
7234 # Files that config.status was made for.
7235 if test -n "$ac_config_files"; then
7236 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7237 fi
7238
7239 if test -n "$ac_config_headers"; then
7240 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7241 fi
7242
7243 if test -n "$ac_config_links"; then
7244 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7245 fi
7246
7247 if test -n "$ac_config_commands"; then
7248 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7249 fi
7250
7251 cat >>$CONFIG_STATUS <<\_ACEOF
7252
7253 ac_cs_usage="\
7254 \`$as_me' instantiates files from templates according to the
7255 current configuration.
7256
7257 Usage: $0 [OPTIONS] [FILE]...
7258
7259 -h, --help print this help, then exit
7260 -V, --version print version number, then exit
7261 -q, --quiet do not print progress messages
7262 -d, --debug don't remove temporary files
7263 --recheck update $as_me by reconfiguring in the same conditions
7264 --file=FILE[:TEMPLATE]
7265 instantiate the configuration file FILE
7266 --header=FILE[:TEMPLATE]
7267 instantiate the configuration header FILE
7268
7269 Configuration files:
7270 $config_files
7271
7272 Configuration headers:
7273 $config_headers
7274
7275 Report bugs to <bug-autoconf@gnu.org>."
7276 _ACEOF
7277
7278 cat >>$CONFIG_STATUS <<_ACEOF
7279 ac_cs_version="\\
7280 config.status
7281 configured by $0, generated by GNU Autoconf 2.59,
7282 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7283
7284 Copyright (C) 2003 Free Software Foundation, Inc.
7285 This config.status script is free software; the Free Software Foundation
7286 gives unlimited permission to copy, distribute and modify it."
7287 srcdir=$srcdir
7288 INSTALL="$INSTALL"
7289 _ACEOF
7290
7291 cat >>$CONFIG_STATUS <<\_ACEOF
7292 # If no file are specified by the user, then we need to provide default
7293 # value. By we need to know if files were specified by the user.
7294 ac_need_defaults=:
7295 while test $# != 0
7296 do
7297 case $1 in
7298 --*=*)
7299 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7300 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7301 ac_shift=:
7302 ;;
7303 -*)
7304 ac_option=$1
7305 ac_optarg=$2
7306 ac_shift=shift
7307 ;;
7308 *) # This is not an option, so the user has probably given explicit
7309 # arguments.
7310 ac_option=$1
7311 ac_need_defaults=false;;
7312 esac
7313
7314 case $ac_option in
7315 # Handling of the options.
7316 _ACEOF
7317 cat >>$CONFIG_STATUS <<\_ACEOF
7318 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7319 ac_cs_recheck=: ;;
7320 --version | --vers* | -V )
7321 echo "$ac_cs_version"; exit 0 ;;
7322 --he | --h)
7323 # Conflict between --help and --header
7324 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7325 Try \`$0 --help' for more information." >&5
7326 echo "$as_me: error: ambiguous option: $1
7327 Try \`$0 --help' for more information." >&2;}
7328 { (exit 1); exit 1; }; };;
7329 --help | --hel | -h )
7330 echo "$ac_cs_usage"; exit 0 ;;
7331 --debug | --d* | -d )
7332 debug=: ;;
7333 --file | --fil | --fi | --f )
7334 $ac_shift
7335 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7336 ac_need_defaults=false;;
7337 --header | --heade | --head | --hea )
7338 $ac_shift
7339 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7340 ac_need_defaults=false;;
7341 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7342 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7343 ac_cs_silent=: ;;
7344
7345 # This is an error.
7346 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7347 Try \`$0 --help' for more information." >&5
7348 echo "$as_me: error: unrecognized option: $1
7349 Try \`$0 --help' for more information." >&2;}
7350 { (exit 1); exit 1; }; } ;;
7351
7352 *) ac_config_targets="$ac_config_targets $1" ;;
7353
7354 esac
7355 shift
7356 done
7357
7358 ac_configure_extra_args=
7359
7360 if $ac_cs_silent; then
7361 exec 6>/dev/null
7362 ac_configure_extra_args="$ac_configure_extra_args --silent"
7363 fi
7364
7365 _ACEOF
7366 cat >>$CONFIG_STATUS <<_ACEOF
7367 if \$ac_cs_recheck; then
7368 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7369 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7370 fi
7371
7372 _ACEOF
7373
7374
7375
7376
7377
7378 cat >>$CONFIG_STATUS <<\_ACEOF
7379 for ac_config_target in $ac_config_targets
7380 do
7381 case "$ac_config_target" in
7382 # Handling of arguments.
7383 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7384 "xawtv.spec" ) CONFIG_FILES="$CONFIG_FILES xawtv.spec" ;;
7385 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7386 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7387 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7388 { (exit 1); exit 1; }; };;
7389 esac
7390 done
7391
7392 # If the user did not use the arguments to specify the items to instantiate,
7393 # then the envvar interface is used. Set only those that are not.
7394 # We use the long form for the default assignment because of an extremely
7395 # bizarre bug on SunOS 4.1.3.
7396 if $ac_need_defaults; then
7397 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7398 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7399 fi
7400
7401 # Have a temporary directory for convenience. Make it in the build tree
7402 # simply because there is no reason to put it here, and in addition,
7403 # creating and moving files from /tmp can sometimes cause problems.
7404 # Create a temporary directory, and hook for its removal unless debugging.
7405 $debug ||
7406 {
7407 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7408 trap '{ (exit 1); exit 1; }' 1 2 13 15
7409 }
7410
7411 # Create a (secure) tmp directory for tmp files.
7412
7413 {
7414 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7415 test -n "$tmp" && test -d "$tmp"
7416 } ||
7417 {
7418 tmp=./confstat$$-$RANDOM
7419 (umask 077 && mkdir $tmp)
7420 } ||
7421 {
7422 echo "$me: cannot create a temporary directory in ." >&2
7423 { (exit 1); exit 1; }
7424 }
7425
7426 _ACEOF
7427
7428 cat >>$CONFIG_STATUS <<_ACEOF
7429
7430 #
7431 # CONFIG_FILES section.
7432 #
7433
7434 # No need to generate the scripts if there are no CONFIG_FILES.
7435 # This happens for instance when ./config.status config.h
7436 if test -n "\$CONFIG_FILES"; then
7437 # Protect against being on the right side of a sed subst in config.status.
7438 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7439 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7440 s,@SHELL@,$SHELL,;t t
7441 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7442 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7443 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7444 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7445 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7446 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7447 s,@exec_prefix@,$exec_prefix,;t t
7448 s,@prefix@,$prefix,;t t
7449 s,@program_transform_name@,$program_transform_name,;t t
7450 s,@bindir@,$bindir,;t t
7451 s,@sbindir@,$sbindir,;t t
7452 s,@libexecdir@,$libexecdir,;t t
7453 s,@datadir@,$datadir,;t t
7454 s,@sysconfdir@,$sysconfdir,;t t
7455 s,@sharedstatedir@,$sharedstatedir,;t t
7456 s,@localstatedir@,$localstatedir,;t t
7457 s,@libdir@,$libdir,;t t
7458 s,@includedir@,$includedir,;t t
7459 s,@oldincludedir@,$oldincludedir,;t t
7460 s,@infodir@,$infodir,;t t
7461 s,@mandir@,$mandir,;t t
7462 s,@build_alias@,$build_alias,;t t
7463 s,@host_alias@,$host_alias,;t t
7464 s,@target_alias@,$target_alias,;t t
7465 s,@DEFS@,$DEFS,;t t
7466 s,@ECHO_C@,$ECHO_C,;t t
7467 s,@ECHO_N@,$ECHO_N,;t t
7468 s,@ECHO_T@,$ECHO_T,;t t
7469 s,@LIBS@,$LIBS,;t t
7470 s,@CC@,$CC,;t t
7471 s,@CFLAGS@,$CFLAGS,;t t
7472 s,@LDFLAGS@,$LDFLAGS,;t t
7473 s,@CPPFLAGS@,$CPPFLAGS,;t t
7474 s,@ac_ct_CC@,$ac_ct_CC,;t t
7475 s,@EXEEXT@,$EXEEXT,;t t
7476 s,@OBJEXT@,$OBJEXT,;t t
7477 s,@CXX@,$CXX,;t t
7478 s,@CXXFLAGS@,$CXXFLAGS,;t t
7479 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7480 s,@CPP@,$CPP,;t t
7481 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7482 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7483 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7484 s,@DEPEND@,$DEPEND,;t t
7485 s,@FOUND_AALIB@,$FOUND_AALIB,;t t
7486 s,@FOUND_ALSA@,$FOUND_ALSA,;t t
7487 s,@FOUND_DV@,$FOUND_DV,;t t
7488 s,@FOUND_LQT@,$FOUND_LQT,;t t
7489 s,@FOUND_MOTIF@,$FOUND_MOTIF,;t t
7490 s,@FOUND_OS@,$FOUND_OS,;t t
7491 s,@FOUND_X11@,$FOUND_X11,;t t
7492 s,@FOUND_GL@,$FOUND_GL,;t t
7493 s,@FOUND_ZVBI@,$FOUND_ZVBI,;t t
7494 s,@EGREP@,$EGREP,;t t
7495 s,@DLFLAGS@,$DLFLAGS,;t t
7496 s,@LIBPTHREAD@,$LIBPTHREAD,;t t
7497 s,@LIBOSS@,$LIBOSS,;t t
7498 s,@LIBCURSES@,$LIBCURSES,;t t
7499 s,@X_CFLAGS@,$X_CFLAGS,;t t
7500 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
7501 s,@X_LIBS@,$X_LIBS,;t t
7502 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
7503 s,@x_includes@,$x_includes,;t t
7504 s,@x_libraries@,$x_libraries,;t t
7505 s,@ATHENA@,$ATHENA,;t t
7506 s,@FSLIB@,$FSLIB,;t t
7507 s,@SUBS@,$SUBS,;t t
7508 s,@TOOLS@,$TOOLS,;t t
7509 s,@LDLIBS@,$LDLIBS,;t t
7510 s,@XFT_FLAGS@,$XFT_FLAGS,;t t
7511 s,@XFT_LIBS@,$XFT_LIBS,;t t
7512 s,@LIBALSA@,$LIBALSA,;t t
7513 s,@LIRC@,$LIRC,;t t
7514 s,@LIBZVBI@,$LIBZVBI,;t t
7515 s,@AALIBS@,$AALIBS,;t t
7516 s,@LIBDV@,$LIBDV,;t t
7517 s,@QTLIBS@,$QTLIBS,;t t
7518 s,@LIBGL@,$LIBGL,;t t
7519 s,@VERSION@,$VERSION,;t t
7520 s,@x11conf@,$x11conf,;t t
7521 s,@resdir@,$resdir,;t t
7522 s,@USE_MMX@,$USE_MMX,;t t
7523 s,@LIBOBJS@,$LIBOBJS,;t t
7524 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7525 CEOF
7526
7527 _ACEOF
7528
7529 cat >>$CONFIG_STATUS <<\_ACEOF
7530 # Split the substitutions into bite-sized pieces for seds with
7531 # small command number limits, like on Digital OSF/1 and HP-UX.
7532 ac_max_sed_lines=48
7533 ac_sed_frag=1 # Number of current file.
7534 ac_beg=1 # First line for current file.
7535 ac_end=$ac_max_sed_lines # Line after last line for current file.
7536 ac_more_lines=:
7537 ac_sed_cmds=
7538 while $ac_more_lines; do
7539 if test $ac_beg -gt 1; then
7540 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7541 else
7542 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7543 fi
7544 if test ! -s $tmp/subs.frag; then
7545 ac_more_lines=false
7546 else
7547 # The purpose of the label and of the branching condition is to
7548 # speed up the sed processing (if there are no `@' at all, there
7549 # is no need to browse any of the substitutions).
7550 # These are the two extra sed commands mentioned above.
7551 (echo ':t
7552 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7553 if test -z "$ac_sed_cmds"; then
7554 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7555 else
7556 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7557 fi
7558 ac_sed_frag=`expr $ac_sed_frag + 1`
7559 ac_beg=$ac_end
7560 ac_end=`expr $ac_end + $ac_max_sed_lines`
7561 fi
7562 done
7563 if test -z "$ac_sed_cmds"; then
7564 ac_sed_cmds=cat
7565 fi
7566 fi # test -n "$CONFIG_FILES"
7567
7568 _ACEOF
7569 cat >>$CONFIG_STATUS <<\_ACEOF
7570 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7571 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7572 case $ac_file in
7573 - | *:- | *:-:* ) # input from stdin
7574 cat >$tmp/stdin
7575 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7576 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7577 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7578 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7579 * ) ac_file_in=$ac_file.in ;;
7580 esac
7581
7582 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7583 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7584 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7585 X"$ac_file" : 'X\(//\)[^/]' \| \
7586 X"$ac_file" : 'X\(//\)$' \| \
7587 X"$ac_file" : 'X\(/\)' \| \
7588 . : '\(.\)' 2>/dev/null ||
7589 echo X"$ac_file" |
7590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7591 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7592 /^X\(\/\/\)$/{ s//\1/; q; }
7593 /^X\(\/\).*/{ s//\1/; q; }
7594 s/.*/./; q'`
7595 { if $as_mkdir_p; then
7596 mkdir -p "$ac_dir"
7597 else
7598 as_dir="$ac_dir"
7599 as_dirs=
7600 while test ! -d "$as_dir"; do
7601 as_dirs="$as_dir $as_dirs"
7602 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7603 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7604 X"$as_dir" : 'X\(//\)[^/]' \| \
7605 X"$as_dir" : 'X\(//\)$' \| \
7606 X"$as_dir" : 'X\(/\)' \| \
7607 . : '\(.\)' 2>/dev/null ||
7608 echo X"$as_dir" |
7609 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7610 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7611 /^X\(\/\/\)$/{ s//\1/; q; }
7612 /^X\(\/\).*/{ s//\1/; q; }
7613 s/.*/./; q'`
7614 done
7615 test ! -n "$as_dirs" || mkdir $as_dirs
7616 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7617 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7618 { (exit 1); exit 1; }; }; }
7619
7620 ac_builddir=.
7621
7622 if test "$ac_dir" != .; then
7623 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7624 # A "../" for each directory in $ac_dir_suffix.
7625 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7626 else
7627 ac_dir_suffix= ac_top_builddir=
7628 fi
7629
7630 case $srcdir in
7631 .) # No --srcdir option. We are building in place.
7632 ac_srcdir=.
7633 if test -z "$ac_top_builddir"; then
7634 ac_top_srcdir=.
7635 else
7636 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7637 fi ;;
7638 [\\/]* | ?:[\\/]* ) # Absolute path.
7639 ac_srcdir=$srcdir$ac_dir_suffix;
7640 ac_top_srcdir=$srcdir ;;
7641 *) # Relative path.
7642 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7643 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7644 esac
7645
7646 # Do not use `cd foo && pwd` to compute absolute paths, because
7647 # the directories may not exist.
7648 case `pwd` in
7649 .) ac_abs_builddir="$ac_dir";;
7650 *)
7651 case "$ac_dir" in
7652 .) ac_abs_builddir=`pwd`;;
7653 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7654 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7655 esac;;
7656 esac
7657 case $ac_abs_builddir in
7658 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7659 *)
7660 case ${ac_top_builddir}. in
7661 .) ac_abs_top_builddir=$ac_abs_builddir;;
7662 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7663 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7664 esac;;
7665 esac
7666 case $ac_abs_builddir in
7667 .) ac_abs_srcdir=$ac_srcdir;;
7668 *)
7669 case $ac_srcdir in
7670 .) ac_abs_srcdir=$ac_abs_builddir;;
7671 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7672 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7673 esac;;
7674 esac
7675 case $ac_abs_builddir in
7676 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7677 *)
7678 case $ac_top_srcdir in
7679 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7680 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7681 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7682 esac;;
7683 esac
7684
7685
7686 case $INSTALL in
7687 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7688 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7689 esac
7690
7691 if test x"$ac_file" != x-; then
7692 { echo "$as_me:$LINENO: creating $ac_file" >&5
7693 echo "$as_me: creating $ac_file" >&6;}
7694 rm -f "$ac_file"
7695 fi
7696 # Let's still pretend it is `configure' which instantiates (i.e., don't
7697 # use $as_me), people would be surprised to read:
7698 # /* config.h. Generated by config.status. */
7699 if test x"$ac_file" = x-; then
7700 configure_input=
7701 else
7702 configure_input="$ac_file. "
7703 fi
7704 configure_input=$configure_input"Generated from `echo $ac_file_in |
7705 sed 's,.*/,,'` by configure."
7706
7707 # First look for the input files in the build tree, otherwise in the
7708 # src tree.
7709 ac_file_inputs=`IFS=:
7710 for f in $ac_file_in; do
7711 case $f in
7712 -) echo $tmp/stdin ;;
7713 [\\/$]*)
7714 # Absolute (can't be DOS-style, as IFS=:)
7715 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7716 echo "$as_me: error: cannot find input file: $f" >&2;}
7717 { (exit 1); exit 1; }; }
7718 echo "$f";;
7719 *) # Relative
7720 if test -f "$f"; then
7721 # Build tree
7722 echo "$f"
7723 elif test -f "$srcdir/$f"; then
7724 # Source tree
7725 echo "$srcdir/$f"
7726 else
7727 # /dev/null tree
7728 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7729 echo "$as_me: error: cannot find input file: $f" >&2;}
7730 { (exit 1); exit 1; }; }
7731 fi;;
7732 esac
7733 done` || { (exit 1); exit 1; }
7734 _ACEOF
7735 cat >>$CONFIG_STATUS <<_ACEOF
7736 sed "$ac_vpsub
7737 $extrasub
7738 _ACEOF
7739 cat >>$CONFIG_STATUS <<\_ACEOF
7740 :t
7741 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7742 s,@configure_input@,$configure_input,;t t
7743 s,@srcdir@,$ac_srcdir,;t t
7744 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7745 s,@top_srcdir@,$ac_top_srcdir,;t t
7746 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7747 s,@builddir@,$ac_builddir,;t t
7748 s,@abs_builddir@,$ac_abs_builddir,;t t
7749 s,@top_builddir@,$ac_top_builddir,;t t
7750 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7751 s,@INSTALL@,$ac_INSTALL,;t t
7752 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7753 rm -f $tmp/stdin
7754 if test x"$ac_file" != x-; then
7755 mv $tmp/out $ac_file
7756 else
7757 cat $tmp/out
7758 rm -f $tmp/out
7759 fi
7760
7761 done
7762 _ACEOF
7763 cat >>$CONFIG_STATUS <<\_ACEOF
7764
7765 #
7766 # CONFIG_HEADER section.
7767 #
7768
7769 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7770 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7771 #
7772 # ac_d sets the value in "#define NAME VALUE" lines.
7773 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7774 ac_dB='[ ].*$,\1#\2'
7775 ac_dC=' '
7776 ac_dD=',;t'
7777 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7778 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7779 ac_uB='$,\1#\2define\3'
7780 ac_uC=' '
7781 ac_uD=',;t'
7782
7783 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7784 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7785 case $ac_file in
7786 - | *:- | *:-:* ) # input from stdin
7787 cat >$tmp/stdin
7788 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7789 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7790 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7791 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7792 * ) ac_file_in=$ac_file.in ;;
7793 esac
7794
7795 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7796 echo "$as_me: creating $ac_file" >&6;}
7797
7798 # First look for the input files in the build tree, otherwise in the
7799 # src tree.
7800 ac_file_inputs=`IFS=:
7801 for f in $ac_file_in; do
7802 case $f in
7803 -) echo $tmp/stdin ;;
7804 [\\/$]*)
7805 # Absolute (can't be DOS-style, as IFS=:)
7806 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7807 echo "$as_me: error: cannot find input file: $f" >&2;}
7808 { (exit 1); exit 1; }; }
7809 # Do quote $f, to prevent DOS paths from being IFS'd.
7810 echo "$f";;
7811 *) # Relative
7812 if test -f "$f"; then
7813 # Build tree
7814 echo "$f"
7815 elif test -f "$srcdir/$f"; then
7816 # Source tree
7817 echo "$srcdir/$f"
7818 else
7819 # /dev/null tree
7820 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7821 echo "$as_me: error: cannot find input file: $f" >&2;}
7822 { (exit 1); exit 1; }; }
7823 fi;;
7824 esac
7825 done` || { (exit 1); exit 1; }
7826 # Remove the trailing spaces.
7827 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7828
7829 _ACEOF
7830
7831 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7832 # `conftest.undefs', that substitutes the proper values into
7833 # config.h.in to produce config.h. The first handles `#define'
7834 # templates, and the second `#undef' templates.
7835 # And first: Protect against being on the right side of a sed subst in
7836 # config.status. Protect against being in an unquoted here document
7837 # in config.status.
7838 rm -f conftest.defines conftest.undefs
7839 # Using a here document instead of a string reduces the quoting nightmare.
7840 # Putting comments in sed scripts is not portable.
7841 #
7842 # `end' is used to avoid that the second main sed command (meant for
7843 # 0-ary CPP macros) applies to n-ary macro definitions.
7844 # See the Autoconf documentation for `clear'.
7845 cat >confdef2sed.sed <<\_ACEOF
7846 s/[\\&,]/\\&/g
7847 s,[\\$`],\\&,g
7848 t clear
7849 : clear
7850 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7851 t end
7852 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7853 : end
7854 _ACEOF
7855 # If some macros were called several times there might be several times
7856 # the same #defines, which is useless. Nevertheless, we may not want to
7857 # sort them, since we want the *last* AC-DEFINE to be honored.
7858 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7859 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7860 rm -f confdef2sed.sed
7861
7862 # This sed command replaces #undef with comments. This is necessary, for
7863 # example, in the case of _POSIX_SOURCE, which is predefined and required
7864 # on some systems where configure will not decide to define it.
7865 cat >>conftest.undefs <<\_ACEOF
7866 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7867 _ACEOF
7868
7869 # Break up conftest.defines because some shells have a limit on the size
7870 # of here documents, and old seds have small limits too (100 cmds).
7871 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7872 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7873 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7874 echo ' :' >>$CONFIG_STATUS
7875 rm -f conftest.tail
7876 while grep . conftest.defines >/dev/null
7877 do
7878 # Write a limited-size here document to $tmp/defines.sed.
7879 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7880 # Speed up: don't consider the non `#define' lines.
7881 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7882 # Work around the forget-to-reset-the-flag bug.
7883 echo 't clr' >>$CONFIG_STATUS
7884 echo ': clr' >>$CONFIG_STATUS
7885 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7886 echo 'CEOF
7887 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7888 rm -f $tmp/in
7889 mv $tmp/out $tmp/in
7890 ' >>$CONFIG_STATUS
7891 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7892 rm -f conftest.defines
7893 mv conftest.tail conftest.defines
7894 done
7895 rm -f conftest.defines
7896 echo ' fi # grep' >>$CONFIG_STATUS
7897 echo >>$CONFIG_STATUS
7898
7899 # Break up conftest.undefs because some shells have a limit on the size
7900 # of here documents, and old seds have small limits too (100 cmds).
7901 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7902 rm -f conftest.tail
7903 while grep . conftest.undefs >/dev/null
7904 do
7905 # Write a limited-size here document to $tmp/undefs.sed.
7906 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7907 # Speed up: don't consider the non `#undef'
7908 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7909 # Work around the forget-to-reset-the-flag bug.
7910 echo 't clr' >>$CONFIG_STATUS
7911 echo ': clr' >>$CONFIG_STATUS
7912 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7913 echo 'CEOF
7914 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7915 rm -f $tmp/in
7916 mv $tmp/out $tmp/in
7917 ' >>$CONFIG_STATUS
7918 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7919 rm -f conftest.undefs
7920 mv conftest.tail conftest.undefs
7921 done
7922 rm -f conftest.undefs
7923
7924 cat >>$CONFIG_STATUS <<\_ACEOF
7925 # Let's still pretend it is `configure' which instantiates (i.e., don't
7926 # use $as_me), people would be surprised to read:
7927 # /* config.h. Generated by config.status. */
7928 if test x"$ac_file" = x-; then
7929 echo "/* Generated by configure. */" >$tmp/config.h
7930 else
7931 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7932 fi
7933 cat $tmp/in >>$tmp/config.h
7934 rm -f $tmp/in
7935 if test x"$ac_file" != x-; then
7936 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7937 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7938 echo "$as_me: $ac_file is unchanged" >&6;}
7939 else
7940 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7941 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7942 X"$ac_file" : 'X\(//\)[^/]' \| \
7943 X"$ac_file" : 'X\(//\)$' \| \
7944 X"$ac_file" : 'X\(/\)' \| \
7945 . : '\(.\)' 2>/dev/null ||
7946 echo X"$ac_file" |
7947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7948 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7949 /^X\(\/\/\)$/{ s//\1/; q; }
7950 /^X\(\/\).*/{ s//\1/; q; }
7951 s/.*/./; q'`
7952 { if $as_mkdir_p; then
7953 mkdir -p "$ac_dir"
7954 else
7955 as_dir="$ac_dir"
7956 as_dirs=
7957 while test ! -d "$as_dir"; do
7958 as_dirs="$as_dir $as_dirs"
7959 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7960 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7961 X"$as_dir" : 'X\(//\)[^/]' \| \
7962 X"$as_dir" : 'X\(//\)$' \| \
7963 X"$as_dir" : 'X\(/\)' \| \
7964 . : '\(.\)' 2>/dev/null ||
7965 echo X"$as_dir" |
7966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7967 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7968 /^X\(\/\/\)$/{ s//\1/; q; }
7969 /^X\(\/\).*/{ s//\1/; q; }
7970 s/.*/./; q'`
7971 done
7972 test ! -n "$as_dirs" || mkdir $as_dirs
7973 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7974 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7975 { (exit 1); exit 1; }; }; }
7976
7977 rm -f $ac_file
7978 mv $tmp/config.h $ac_file
7979 fi
7980 else
7981 cat $tmp/config.h
7982 rm -f $tmp/config.h
7983 fi
7984 done
7985 _ACEOF
7986
7987 cat >>$CONFIG_STATUS <<\_ACEOF
7988
7989 { (exit 0); exit 0; }
7990 _ACEOF
7991 chmod +x $CONFIG_STATUS
7992 ac_clean_files=$ac_clean_files_save
7993
7994
7995 # configure is writing to config.log, and then calls config.status.
7996 # config.status does its own redirection, appending to config.log.
7997 # Unfortunately, on DOS this fails, as config.log is still kept open
7998 # by configure, so config.status won't be able to write to it; its
7999 # output is simply discarded. So we exec the FD to /dev/null,
8000 # effectively closing config.log, so it can be properly (re)opened and
8001 # appended to by config.status. When coming back to configure, we
8002 # need to make the FD available again.
8003 if test "$no_create" != yes; then
8004 ac_cs_success=:
8005 ac_config_status_args=
8006 test "$silent" = yes &&
8007 ac_config_status_args="$ac_config_status_args --quiet"
8008 exec 5>/dev/null
8009 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8010 exec 5>>config.log
8011 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8012 # would make configure fail if this is the last instruction.
8013 $ac_cs_success || { (exit 1); exit 1; }
8014 fi
8015
8016 for dir in \
8017 common console debug fonts jwz libvbi vbistuff x11 structs \
8018 libng libng/plugins libng/contrib-plugins mk
8019 do
8020 test -d $dir && continue
8021 mkdir -p $dir
8022 done
|
This page was automatically generated by the
LXR engine.
|