~ubuntu-branches/ubuntu/dapper/terminatorx/dapper

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Mike Furr
  • Date: 2004-04-26 21:20:09 UTC
  • Revision ID: james.westby@ubuntu.com-20040426212009-acjw8flkt05j945f
Tags: upstream-3.81
ImportĀ upstreamĀ versionĀ 3.81

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.57.
 
4
#
 
5
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
 
6
# Free Software Foundation, Inc.
 
7
# This configure script is free software; the Free Software Foundation
 
8
# gives unlimited permission to copy, distribute and modify it.
 
9
## --------------------- ##
 
10
## M4sh Initialization.  ##
 
11
## --------------------- ##
 
12
 
 
13
# Be Bourne compatible
 
14
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
15
  emulate sh
 
16
  NULLCMD=:
 
17
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
18
  # is contrary to our usage.  Disable this feature.
 
19
  alias -g '${1+"$@"}'='"$@"'
 
20
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
21
  set -o posix
 
22
fi
 
23
 
 
24
# Support unset when possible.
 
25
if (FOO=FOO; unset FOO) >/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 -n "`(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
  as_mkdir_p=false
 
222
fi
 
223
 
 
224
as_executable_p="test -f"
 
225
 
 
226
# Sed expression to map a string onto a valid CPP name.
 
227
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
 
228
 
 
229
# Sed expression to map a string onto a valid variable name.
 
230
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 
231
 
 
232
 
 
233
# IFS
 
234
# We need space, tab and new line, in precisely that order.
 
235
as_nl='
 
236
'
 
237
IFS="   $as_nl"
 
238
 
 
239
# CDPATH.
 
240
$as_unset CDPATH
 
241
 
 
242
 
 
243
# Name of the host.
 
244
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
245
# so uname gets run too.
 
246
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
247
 
 
248
exec 6>&1
 
249
 
 
250
#
 
251
# Initializations.
 
252
#
 
253
ac_default_prefix=/usr/local
 
254
ac_config_libobj_dir=.
 
255
cross_compiling=no
 
256
subdirs=
 
257
MFLAGS=
 
258
MAKEFLAGS=
 
259
SHELL=${CONFIG_SHELL-/bin/sh}
 
260
 
 
261
# Maximum number of lines to put in a shell here document.
 
262
# This variable seems obsolete.  It should probably be removed, and
 
263
# only ac_max_sed_lines should be used.
 
264
: ${ac_max_here_lines=38}
 
265
 
 
266
# Identity of this package.
 
267
PACKAGE_NAME=
 
268
PACKAGE_TARNAME=
 
269
PACKAGE_VERSION=
 
270
PACKAGE_STRING=
 
271
PACKAGE_BUGREPORT=
 
272
 
 
273
ac_unique_file="src/tX_global.h"
 
274
# Factoring default headers for most tests.
 
275
ac_includes_default="\
 
276
#include <stdio.h>
 
277
#if HAVE_SYS_TYPES_H
 
278
# include <sys/types.h>
 
279
#endif
 
280
#if HAVE_SYS_STAT_H
 
281
# include <sys/stat.h>
 
282
#endif
 
283
#if STDC_HEADERS
 
284
# include <stdlib.h>
 
285
# include <stddef.h>
 
286
#else
 
287
# if HAVE_STDLIB_H
 
288
#  include <stdlib.h>
 
289
# endif
 
290
#endif
 
291
#if HAVE_STRING_H
 
292
# if !STDC_HEADERS && HAVE_MEMORY_H
 
293
#  include <memory.h>
 
294
# endif
 
295
# include <string.h>
 
296
#endif
 
297
#if HAVE_STRINGS_H
 
298
# include <strings.h>
 
299
#endif
 
300
#if HAVE_INTTYPES_H
 
301
# include <inttypes.h>
 
302
#else
 
303
# if HAVE_STDINT_H
 
304
#  include <stdint.h>
 
305
# endif
 
306
#endif
 
307
#if HAVE_UNISTD_H
 
308
# include <unistd.h>
 
309
#endif"
 
310
 
 
311
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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE LN_S RANLIB ac_ct_RANLIB PKG_CONFIG GTK_CFLAGS GTK_LIBS CPP EGREP SOX_PROG af_config MPG123_PROG OGG123_PROG XSETPOINTER_PROG DEPRECATED_FLAGS gnomepresent gnomeconfig gnomedatadir GNOMEpresent_TRUE GNOMEpresent_FALSE XML2_CONFIG XML_CONFIG XML_LIBS XML_CFLAGS SK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS x_libraries LIBOBJS LTLIBOBJS'
 
312
ac_subst_files=''
 
313
 
 
314
# Initialize some variables set by options.
 
315
ac_init_help=
 
316
ac_init_version=false
 
317
# The variables have the same names as the options, with
 
318
# dashes changed to underlines.
 
319
cache_file=/dev/null
 
320
exec_prefix=NONE
 
321
no_create=
 
322
no_recursion=
 
323
prefix=NONE
 
324
program_prefix=NONE
 
325
program_suffix=NONE
 
326
program_transform_name=s,x,x,
 
327
silent=
 
328
site=
 
329
srcdir=
 
330
verbose=
 
331
x_includes=NONE
 
332
x_libraries=NONE
 
333
 
 
334
# Installation directory options.
 
335
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
336
# and all the variables that are supposed to be based on exec_prefix
 
337
# by default will actually change.
 
338
# Use braces instead of parens because sh, perl, etc. also accept them.
 
339
bindir='${exec_prefix}/bin'
 
340
sbindir='${exec_prefix}/sbin'
 
341
libexecdir='${exec_prefix}/libexec'
 
342
datadir='${prefix}/share'
 
343
sysconfdir='${prefix}/etc'
 
344
sharedstatedir='${prefix}/com'
 
345
localstatedir='${prefix}/var'
 
346
libdir='${exec_prefix}/lib'
 
347
includedir='${prefix}/include'
 
348
oldincludedir='/usr/include'
 
349
infodir='${prefix}/info'
 
350
mandir='${prefix}/man'
 
351
 
 
352
ac_prev=
 
353
for ac_option
 
354
do
 
355
  # If the previous option needs an argument, assign it.
 
356
  if test -n "$ac_prev"; then
 
357
    eval "$ac_prev=\$ac_option"
 
358
    ac_prev=
 
359
    continue
 
360
  fi
 
361
 
 
362
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
363
 
 
364
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
365
 
 
366
  case $ac_option in
 
367
 
 
368
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
369
    ac_prev=bindir ;;
 
370
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
371
    bindir=$ac_optarg ;;
 
372
 
 
373
  -build | --build | --buil | --bui | --bu)
 
374
    ac_prev=build_alias ;;
 
375
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
376
    build_alias=$ac_optarg ;;
 
377
 
 
378
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
379
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
380
    ac_prev=cache_file ;;
 
381
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
382
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
383
    cache_file=$ac_optarg ;;
 
384
 
 
385
  --config-cache | -C)
 
386
    cache_file=config.cache ;;
 
387
 
 
388
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
389
    ac_prev=datadir ;;
 
390
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
391
  | --da=*)
 
392
    datadir=$ac_optarg ;;
 
393
 
 
394
  -disable-* | --disable-*)
 
395
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
396
    # Reject names that are not valid shell variable names.
 
397
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
398
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
399
   { (exit 1); exit 1; }; }
 
400
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
401
    eval "enable_$ac_feature=no" ;;
 
402
 
 
403
  -enable-* | --enable-*)
 
404
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
405
    # Reject names that are not valid shell variable names.
 
406
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
407
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
408
   { (exit 1); exit 1; }; }
 
409
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
410
    case $ac_option in
 
411
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
412
      *) ac_optarg=yes ;;
 
413
    esac
 
414
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
415
 
 
416
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
417
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
418
  | --exec | --exe | --ex)
 
419
    ac_prev=exec_prefix ;;
 
420
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
421
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
422
  | --exec=* | --exe=* | --ex=*)
 
423
    exec_prefix=$ac_optarg ;;
 
424
 
 
425
  -gas | --gas | --ga | --g)
 
426
    # Obsolete; use --with-gas.
 
427
    with_gas=yes ;;
 
428
 
 
429
  -help | --help | --hel | --he | -h)
 
430
    ac_init_help=long ;;
 
431
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
432
    ac_init_help=recursive ;;
 
433
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
434
    ac_init_help=short ;;
 
435
 
 
436
  -host | --host | --hos | --ho)
 
437
    ac_prev=host_alias ;;
 
438
  -host=* | --host=* | --hos=* | --ho=*)
 
439
    host_alias=$ac_optarg ;;
 
440
 
 
441
  -includedir | --includedir | --includedi | --included | --include \
 
442
  | --includ | --inclu | --incl | --inc)
 
443
    ac_prev=includedir ;;
 
444
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
445
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
446
    includedir=$ac_optarg ;;
 
447
 
 
448
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
449
    ac_prev=infodir ;;
 
450
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
451
    infodir=$ac_optarg ;;
 
452
 
 
453
  -libdir | --libdir | --libdi | --libd)
 
454
    ac_prev=libdir ;;
 
455
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
456
    libdir=$ac_optarg ;;
 
457
 
 
458
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
459
  | --libexe | --libex | --libe)
 
460
    ac_prev=libexecdir ;;
 
461
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
462
  | --libexe=* | --libex=* | --libe=*)
 
463
    libexecdir=$ac_optarg ;;
 
464
 
 
465
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
466
  | --localstate | --localstat | --localsta | --localst \
 
467
  | --locals | --local | --loca | --loc | --lo)
 
468
    ac_prev=localstatedir ;;
 
469
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
470
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
471
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
472
    localstatedir=$ac_optarg ;;
 
473
 
 
474
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
475
    ac_prev=mandir ;;
 
476
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
477
    mandir=$ac_optarg ;;
 
478
 
 
479
  -nfp | --nfp | --nf)
 
480
    # Obsolete; use --without-fp.
 
481
    with_fp=no ;;
 
482
 
 
483
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
484
  | --no-cr | --no-c | -n)
 
485
    no_create=yes ;;
 
486
 
 
487
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
488
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
489
    no_recursion=yes ;;
 
490
 
 
491
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
492
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
493
  | --oldin | --oldi | --old | --ol | --o)
 
494
    ac_prev=oldincludedir ;;
 
495
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
496
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
497
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
498
    oldincludedir=$ac_optarg ;;
 
499
 
 
500
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
501
    ac_prev=prefix ;;
 
502
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
503
    prefix=$ac_optarg ;;
 
504
 
 
505
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
506
  | --program-pre | --program-pr | --program-p)
 
507
    ac_prev=program_prefix ;;
 
508
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
509
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
510
    program_prefix=$ac_optarg ;;
 
511
 
 
512
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
513
  | --program-suf | --program-su | --program-s)
 
514
    ac_prev=program_suffix ;;
 
515
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
516
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
517
    program_suffix=$ac_optarg ;;
 
518
 
 
519
  -program-transform-name | --program-transform-name \
 
520
  | --program-transform-nam | --program-transform-na \
 
521
  | --program-transform-n | --program-transform- \
 
522
  | --program-transform | --program-transfor \
 
523
  | --program-transfo | --program-transf \
 
524
  | --program-trans | --program-tran \
 
525
  | --progr-tra | --program-tr | --program-t)
 
526
    ac_prev=program_transform_name ;;
 
527
  -program-transform-name=* | --program-transform-name=* \
 
528
  | --program-transform-nam=* | --program-transform-na=* \
 
529
  | --program-transform-n=* | --program-transform-=* \
 
530
  | --program-transform=* | --program-transfor=* \
 
531
  | --program-transfo=* | --program-transf=* \
 
532
  | --program-trans=* | --program-tran=* \
 
533
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
534
    program_transform_name=$ac_optarg ;;
 
535
 
 
536
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
537
  | -silent | --silent | --silen | --sile | --sil)
 
538
    silent=yes ;;
 
539
 
 
540
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
541
    ac_prev=sbindir ;;
 
542
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
543
  | --sbi=* | --sb=*)
 
544
    sbindir=$ac_optarg ;;
 
545
 
 
546
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
547
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
548
  | --sharedst | --shareds | --shared | --share | --shar \
 
549
  | --sha | --sh)
 
550
    ac_prev=sharedstatedir ;;
 
551
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
552
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
553
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
554
  | --sha=* | --sh=*)
 
555
    sharedstatedir=$ac_optarg ;;
 
556
 
 
557
  -site | --site | --sit)
 
558
    ac_prev=site ;;
 
559
  -site=* | --site=* | --sit=*)
 
560
    site=$ac_optarg ;;
 
561
 
 
562
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
563
    ac_prev=srcdir ;;
 
564
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
565
    srcdir=$ac_optarg ;;
 
566
 
 
567
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
568
  | --syscon | --sysco | --sysc | --sys | --sy)
 
569
    ac_prev=sysconfdir ;;
 
570
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
571
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
572
    sysconfdir=$ac_optarg ;;
 
573
 
 
574
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
575
    ac_prev=target_alias ;;
 
576
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
577
    target_alias=$ac_optarg ;;
 
578
 
 
579
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
580
    verbose=yes ;;
 
581
 
 
582
  -version | --version | --versio | --versi | --vers | -V)
 
583
    ac_init_version=: ;;
 
584
 
 
585
  -with-* | --with-*)
 
586
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
587
    # Reject names that are not valid shell variable names.
 
588
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
589
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
590
   { (exit 1); exit 1; }; }
 
591
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
592
    case $ac_option in
 
593
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
594
      *) ac_optarg=yes ;;
 
595
    esac
 
596
    eval "with_$ac_package='$ac_optarg'" ;;
 
597
 
 
598
  -without-* | --without-*)
 
599
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
600
    # Reject names that are not valid shell variable names.
 
601
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
602
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
603
   { (exit 1); exit 1; }; }
 
604
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
605
    eval "with_$ac_package=no" ;;
 
606
 
 
607
  --x)
 
608
    # Obsolete; use --with-x.
 
609
    with_x=yes ;;
 
610
 
 
611
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
612
  | --x-incl | --x-inc | --x-in | --x-i)
 
613
    ac_prev=x_includes ;;
 
614
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
615
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
616
    x_includes=$ac_optarg ;;
 
617
 
 
618
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
619
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
620
    ac_prev=x_libraries ;;
 
621
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
622
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
623
    x_libraries=$ac_optarg ;;
 
624
 
 
625
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
626
Try \`$0 --help' for more information." >&2
 
627
   { (exit 1); exit 1; }; }
 
628
    ;;
 
629
 
 
630
  *=*)
 
631
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
632
    # Reject names that are not valid shell variable names.
 
633
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
634
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
635
   { (exit 1); exit 1; }; }
 
636
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
637
    eval "$ac_envvar='$ac_optarg'"
 
638
    export $ac_envvar ;;
 
639
 
 
640
  *)
 
641
    # FIXME: should be removed in autoconf 3.0.
 
642
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
643
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
644
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
645
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
646
    ;;
 
647
 
 
648
  esac
 
649
done
 
650
 
 
651
if test -n "$ac_prev"; then
 
652
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
653
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
654
   { (exit 1); exit 1; }; }
 
655
fi
 
656
 
 
657
# Be sure to have absolute paths.
 
658
for ac_var in exec_prefix prefix
 
659
do
 
660
  eval ac_val=$`echo $ac_var`
 
661
  case $ac_val in
 
662
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
663
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
664
   { (exit 1); exit 1; }; };;
 
665
  esac
 
666
done
 
667
 
 
668
# Be sure to have absolute paths.
 
669
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
670
              localstatedir libdir includedir oldincludedir infodir mandir
 
671
do
 
672
  eval ac_val=$`echo $ac_var`
 
673
  case $ac_val in
 
674
    [\\/$]* | ?:[\\/]* ) ;;
 
675
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
676
   { (exit 1); exit 1; }; };;
 
677
  esac
 
678
done
 
679
 
 
680
# There might be people who depend on the old broken behavior: `$host'
 
681
# used to hold the argument of --host etc.
 
682
# FIXME: To remove some day.
 
683
build=$build_alias
 
684
host=$host_alias
 
685
target=$target_alias
 
686
 
 
687
# FIXME: To remove some day.
 
688
if test "x$host_alias" != x; then
 
689
  if test "x$build_alias" = x; then
 
690
    cross_compiling=maybe
 
691
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
692
    If a cross compiler is detected then cross compile mode will be used." >&2
 
693
  elif test "x$build_alias" != "x$host_alias"; then
 
694
    cross_compiling=yes
 
695
  fi
 
696
fi
 
697
 
 
698
ac_tool_prefix=
 
699
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
700
 
 
701
test "$silent" = yes && exec 6>/dev/null
 
702
 
 
703
 
 
704
# Find the source files, if location was not specified.
 
705
if test -z "$srcdir"; then
 
706
  ac_srcdir_defaulted=yes
 
707
  # Try the directory containing this script, then its parent.
 
708
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
709
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
710
         X"$0" : 'X\(//\)[^/]' \| \
 
711
         X"$0" : 'X\(//\)$' \| \
 
712
         X"$0" : 'X\(/\)' \| \
 
713
         .     : '\(.\)' 2>/dev/null ||
 
714
echo X"$0" |
 
715
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
716
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
717
          /^X\(\/\/\)$/{ s//\1/; q; }
 
718
          /^X\(\/\).*/{ s//\1/; q; }
 
719
          s/.*/./; q'`
 
720
  srcdir=$ac_confdir
 
721
  if test ! -r $srcdir/$ac_unique_file; then
 
722
    srcdir=..
 
723
  fi
 
724
else
 
725
  ac_srcdir_defaulted=no
 
726
fi
 
727
if test ! -r $srcdir/$ac_unique_file; then
 
728
  if test "$ac_srcdir_defaulted" = yes; then
 
729
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
730
   { (exit 1); exit 1; }; }
 
731
  else
 
732
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
733
   { (exit 1); exit 1; }; }
 
734
  fi
 
735
fi
 
736
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
737
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
738
   { (exit 1); exit 1; }; }
 
739
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
740
ac_env_build_alias_set=${build_alias+set}
 
741
ac_env_build_alias_value=$build_alias
 
742
ac_cv_env_build_alias_set=${build_alias+set}
 
743
ac_cv_env_build_alias_value=$build_alias
 
744
ac_env_host_alias_set=${host_alias+set}
 
745
ac_env_host_alias_value=$host_alias
 
746
ac_cv_env_host_alias_set=${host_alias+set}
 
747
ac_cv_env_host_alias_value=$host_alias
 
748
ac_env_target_alias_set=${target_alias+set}
 
749
ac_env_target_alias_value=$target_alias
 
750
ac_cv_env_target_alias_set=${target_alias+set}
 
751
ac_cv_env_target_alias_value=$target_alias
 
752
ac_env_CC_set=${CC+set}
 
753
ac_env_CC_value=$CC
 
754
ac_cv_env_CC_set=${CC+set}
 
755
ac_cv_env_CC_value=$CC
 
756
ac_env_CFLAGS_set=${CFLAGS+set}
 
757
ac_env_CFLAGS_value=$CFLAGS
 
758
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
759
ac_cv_env_CFLAGS_value=$CFLAGS
 
760
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
761
ac_env_LDFLAGS_value=$LDFLAGS
 
762
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
763
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
764
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
765
ac_env_CPPFLAGS_value=$CPPFLAGS
 
766
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
767
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
768
ac_env_CXX_set=${CXX+set}
 
769
ac_env_CXX_value=$CXX
 
770
ac_cv_env_CXX_set=${CXX+set}
 
771
ac_cv_env_CXX_value=$CXX
 
772
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
 
773
ac_env_CXXFLAGS_value=$CXXFLAGS
 
774
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
 
775
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
 
776
ac_env_CPP_set=${CPP+set}
 
777
ac_env_CPP_value=$CPP
 
778
ac_cv_env_CPP_set=${CPP+set}
 
779
ac_cv_env_CPP_value=$CPP
 
780
 
 
781
#
 
782
# Report the --help message.
 
783
#
 
784
if test "$ac_init_help" = "long"; then
 
785
  # Omit some internal or obsolete options to make the list less imposing.
 
786
  # This message is too long to be a string in the A/UX 3.1 sh.
 
787
  cat <<_ACEOF
 
788
\`configure' configures this package to adapt to many kinds of systems.
 
789
 
 
790
Usage: $0 [OPTION]... [VAR=VALUE]...
 
791
 
 
792
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
793
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
794
 
 
795
Defaults for the options are specified in brackets.
 
796
 
 
797
Configuration:
 
798
  -h, --help              display this help and exit
 
799
      --help=short        display options specific to this package
 
800
      --help=recursive    display the short help of all the included packages
 
801
  -V, --version           display version information and exit
 
802
  -q, --quiet, --silent   do not print \`checking...' messages
 
803
      --cache-file=FILE   cache test results in FILE [disabled]
 
804
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
805
  -n, --no-create         do not create output files
 
806
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
807
 
 
808
_ACEOF
 
809
 
 
810
  cat <<_ACEOF
 
811
Installation directories:
 
812
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
813
                          [$ac_default_prefix]
 
814
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
815
                          [PREFIX]
 
816
 
 
817
By default, \`make install' will install all the files in
 
818
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
819
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
820
for instance \`--prefix=\$HOME'.
 
821
 
 
822
For better control, use the options below.
 
823
 
 
824
Fine tuning of the installation directories:
 
825
  --bindir=DIR           user executables [EPREFIX/bin]
 
826
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
827
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
828
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
829
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
830
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
831
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
832
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
833
  --includedir=DIR       C header files [PREFIX/include]
 
834
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
835
  --infodir=DIR          info documentation [PREFIX/info]
 
836
  --mandir=DIR           man documentation [PREFIX/man]
 
837
_ACEOF
 
838
 
 
839
  cat <<\_ACEOF
 
840
 
 
841
Program names:
 
842
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
843
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
844
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
845
 
 
846
X features:
 
847
  --x-includes=DIR    X include files are in DIR
 
848
  --x-libraries=DIR   X library files are in DIR
 
849
_ACEOF
 
850
fi
 
851
 
 
852
if test -n "$ac_init_help"; then
 
853
 
 
854
  cat <<\_ACEOF
 
855
 
 
856
Optional Features:
 
857
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
858
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
859
  --enable-sox            use sox as input converter. (default=auto)
 
860
  --enable-mpg123         use mpg123 as input converter. (default=auto)
 
861
  --enable-ogg123         use ogg123 as input converter. (default=auto)
 
862
  --enable-scheduler      enable rt-scheduling (default=auto)
 
863
  --enable-debug          enable debug output. (default=no)
 
864
  --enable-wav            enables the built-in wav-loader (default=yes)
 
865
  --enable-xsetpointer    enables executing of xsetpointer (default=auto)
 
866
  --enable-alsa           use ALSA for sound output (default=auto)
 
867
  --enable-jack           use JACK for sound output (default=auto)
 
868
  --enable-oss            use OSS for sound output (default=auto)
 
869
  --disable-libxml2       use libxml even if verion 2 detected (default=auto)
 
870
  --disable-mad           disable mad for mp3 support (default=auto)
 
871
  --disable-vorbis        disable libvorbis support (default=auto)
 
872
  --disable-audiofile     disable audiofile support (default=auto)
 
873
  --enable-legacy         enable support for old terminatorX files (default=no)
 
874
  --disable-alsamidi      disable support  ALSA MIDI in (default=auto)
 
875
  --disable-lrdf          disable support for liblrdf (default=auto)
 
876
  --enable-suidroot       enable old suid-root exec method (default=no)
 
877
  --enable-capabilities   an alternative suid-root method (default=auto)
 
878
  --disable-deprecated    compile without deprecated G*-headers (default=no)
 
879
  --disable-dependency-tracking Speeds up one-time builds
 
880
  --enable-dependency-tracking  Do not reject slow dependency extractors
 
881
  --disable-gtktest       do not try to compile and run a test GTK+ program
 
882
 
 
883
Optional Packages:
 
884
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
885
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
886
  --with-docdir=/some/dir the final location the docs will be installed to.
 
887
  --with-x                use the X Window System
 
888
 
 
889
Some influential environment variables:
 
890
  CC          C compiler command
 
891
  CFLAGS      C compiler flags
 
892
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
893
              nonstandard directory <lib dir>
 
894
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
895
              headers in a nonstandard directory <include dir>
 
896
  CXX         C++ compiler command
 
897
  CXXFLAGS    C++ compiler flags
 
898
  CPP         C preprocessor
 
899
 
 
900
Use these variables to override the choices made by `configure' or to help
 
901
it to find libraries and programs with nonstandard names/locations.
 
902
 
 
903
_ACEOF
 
904
fi
 
905
 
 
906
if test "$ac_init_help" = "recursive"; then
 
907
  # If there are subdirs, report their specific --help.
 
908
  ac_popdir=`pwd`
 
909
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
910
    test -d $ac_dir || continue
 
911
    ac_builddir=.
 
912
 
 
913
if test "$ac_dir" != .; then
 
914
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
915
  # A "../" for each directory in $ac_dir_suffix.
 
916
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
917
else
 
918
  ac_dir_suffix= ac_top_builddir=
 
919
fi
 
920
 
 
921
case $srcdir in
 
922
  .)  # No --srcdir option.  We are building in place.
 
923
    ac_srcdir=.
 
924
    if test -z "$ac_top_builddir"; then
 
925
       ac_top_srcdir=.
 
926
    else
 
927
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
928
    fi ;;
 
929
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
930
    ac_srcdir=$srcdir$ac_dir_suffix;
 
931
    ac_top_srcdir=$srcdir ;;
 
932
  *) # Relative path.
 
933
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
934
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
935
esac
 
936
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
 
937
# absolute.
 
938
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
 
939
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
 
940
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
 
941
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
942
 
 
943
    cd $ac_dir
 
944
    # Check for guested configure; otherwise get Cygnus style configure.
 
945
    if test -f $ac_srcdir/configure.gnu; then
 
946
      echo
 
947
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
948
    elif test -f $ac_srcdir/configure; then
 
949
      echo
 
950
      $SHELL $ac_srcdir/configure  --help=recursive
 
951
    elif test -f $ac_srcdir/configure.ac ||
 
952
           test -f $ac_srcdir/configure.in; then
 
953
      echo
 
954
      $ac_configure --help
 
955
    else
 
956
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
957
    fi
 
958
    cd $ac_popdir
 
959
  done
 
960
fi
 
961
 
 
962
test -n "$ac_init_help" && exit 0
 
963
if $ac_init_version; then
 
964
  cat <<\_ACEOF
 
965
 
 
966
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
 
967
Free Software Foundation, Inc.
 
968
This configure script is free software; the Free Software Foundation
 
969
gives unlimited permission to copy, distribute and modify it.
 
970
_ACEOF
 
971
  exit 0
 
972
fi
 
973
exec 5>config.log
 
974
cat >&5 <<_ACEOF
 
975
This file contains any messages produced by compilers while
 
976
running configure, to aid debugging if configure makes a mistake.
 
977
 
 
978
It was created by $as_me, which was
 
979
generated by GNU Autoconf 2.57.  Invocation command line was
 
980
 
 
981
  $ $0 $@
 
982
 
 
983
_ACEOF
 
984
{
 
985
cat <<_ASUNAME
 
986
## --------- ##
 
987
## Platform. ##
 
988
## --------- ##
 
989
 
 
990
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
991
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
992
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
993
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
994
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
995
 
 
996
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
997
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
998
 
 
999
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1000
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1001
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1002
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1003
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1004
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1005
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1006
 
 
1007
_ASUNAME
 
1008
 
 
1009
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1010
for as_dir in $PATH
 
1011
do
 
1012
  IFS=$as_save_IFS
 
1013
  test -z "$as_dir" && as_dir=.
 
1014
  echo "PATH: $as_dir"
 
1015
done
 
1016
 
 
1017
} >&5
 
1018
 
 
1019
cat >&5 <<_ACEOF
 
1020
 
 
1021
 
 
1022
## ----------- ##
 
1023
## Core tests. ##
 
1024
## ----------- ##
 
1025
 
 
1026
_ACEOF
 
1027
 
 
1028
 
 
1029
# Keep a trace of the command line.
 
1030
# Strip out --no-create and --no-recursion so they do not pile up.
 
1031
# Strip out --silent because we don't want to record it for future runs.
 
1032
# Also quote any args containing shell meta-characters.
 
1033
# Make two passes to allow for proper duplicate-argument suppression.
 
1034
ac_configure_args=
 
1035
ac_configure_args0=
 
1036
ac_configure_args1=
 
1037
ac_sep=
 
1038
ac_must_keep_next=false
 
1039
for ac_pass in 1 2
 
1040
do
 
1041
  for ac_arg
 
1042
  do
 
1043
    case $ac_arg in
 
1044
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1045
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1046
    | -silent | --silent | --silen | --sile | --sil)
 
1047
      continue ;;
 
1048
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1049
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1050
    esac
 
1051
    case $ac_pass in
 
1052
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1053
    2)
 
1054
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1055
      if test $ac_must_keep_next = true; then
 
1056
        ac_must_keep_next=false # Got value, back to normal.
 
1057
      else
 
1058
        case $ac_arg in
 
1059
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1060
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1061
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1062
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1063
            case "$ac_configure_args0 " in
 
1064
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1065
            esac
 
1066
            ;;
 
1067
          -* ) ac_must_keep_next=true ;;
 
1068
        esac
 
1069
      fi
 
1070
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1071
      # Get rid of the leading space.
 
1072
      ac_sep=" "
 
1073
      ;;
 
1074
    esac
 
1075
  done
 
1076
done
 
1077
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1078
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1079
 
 
1080
# When interrupted or exit'd, cleanup temporary files, and complete
 
1081
# config.log.  We remove comments because anyway the quotes in there
 
1082
# would cause problems or look ugly.
 
1083
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1084
# such as our DU 5.0 friend, will then `close' the trap.
 
1085
trap 'exit_status=$?
 
1086
  # Save into config.log some information that might help in debugging.
 
1087
  {
 
1088
    echo
 
1089
 
 
1090
    cat <<\_ASBOX
 
1091
## ---------------- ##
 
1092
## Cache variables. ##
 
1093
## ---------------- ##
 
1094
_ASBOX
 
1095
    echo
 
1096
    # The following way of writing the cache mishandles newlines in values,
 
1097
{
 
1098
  (set) 2>&1 |
 
1099
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1100
    *ac_space=\ *)
 
1101
      sed -n \
 
1102
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1103
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1104
      ;;
 
1105
    *)
 
1106
      sed -n \
 
1107
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1108
      ;;
 
1109
    esac;
 
1110
}
 
1111
    echo
 
1112
 
 
1113
    cat <<\_ASBOX
 
1114
## ----------------- ##
 
1115
## Output variables. ##
 
1116
## ----------------- ##
 
1117
_ASBOX
 
1118
    echo
 
1119
    for ac_var in $ac_subst_vars
 
1120
    do
 
1121
      eval ac_val=$`echo $ac_var`
 
1122
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1123
    done | sort
 
1124
    echo
 
1125
 
 
1126
    if test -n "$ac_subst_files"; then
 
1127
      cat <<\_ASBOX
 
1128
## ------------- ##
 
1129
## Output files. ##
 
1130
## ------------- ##
 
1131
_ASBOX
 
1132
      echo
 
1133
      for ac_var in $ac_subst_files
 
1134
      do
 
1135
        eval ac_val=$`echo $ac_var`
 
1136
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1137
      done | sort
 
1138
      echo
 
1139
    fi
 
1140
 
 
1141
    if test -s confdefs.h; then
 
1142
      cat <<\_ASBOX
 
1143
## ----------- ##
 
1144
## confdefs.h. ##
 
1145
## ----------- ##
 
1146
_ASBOX
 
1147
      echo
 
1148
      sed "/^$/d" confdefs.h | sort
 
1149
      echo
 
1150
    fi
 
1151
    test "$ac_signal" != 0 &&
 
1152
      echo "$as_me: caught signal $ac_signal"
 
1153
    echo "$as_me: exit $exit_status"
 
1154
  } >&5
 
1155
  rm -f core *.core &&
 
1156
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1157
    exit $exit_status
 
1158
     ' 0
 
1159
for ac_signal in 1 2 13 15; do
 
1160
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1161
done
 
1162
ac_signal=0
 
1163
 
 
1164
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1165
rm -rf conftest* confdefs.h
 
1166
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1167
echo >confdefs.h
 
1168
 
 
1169
# Predefined preprocessor variables.
 
1170
 
 
1171
cat >>confdefs.h <<_ACEOF
 
1172
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1173
_ACEOF
 
1174
 
 
1175
 
 
1176
cat >>confdefs.h <<_ACEOF
 
1177
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1178
_ACEOF
 
1179
 
 
1180
 
 
1181
cat >>confdefs.h <<_ACEOF
 
1182
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1183
_ACEOF
 
1184
 
 
1185
 
 
1186
cat >>confdefs.h <<_ACEOF
 
1187
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1188
_ACEOF
 
1189
 
 
1190
 
 
1191
cat >>confdefs.h <<_ACEOF
 
1192
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1193
_ACEOF
 
1194
 
 
1195
 
 
1196
# Let the site file select an alternate cache file if it wants to.
 
1197
# Prefer explicitly selected file to automatically selected ones.
 
1198
if test -z "$CONFIG_SITE"; then
 
1199
  if test "x$prefix" != xNONE; then
 
1200
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1201
  else
 
1202
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1203
  fi
 
1204
fi
 
1205
for ac_site_file in $CONFIG_SITE; do
 
1206
  if test -r "$ac_site_file"; then
 
1207
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1208
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1209
    sed 's/^/| /' "$ac_site_file" >&5
 
1210
    . "$ac_site_file"
 
1211
  fi
 
1212
done
 
1213
 
 
1214
if test -r "$cache_file"; then
 
1215
  # Some versions of bash will fail to source /dev/null (special
 
1216
  # files actually), so we avoid doing that.
 
1217
  if test -f "$cache_file"; then
 
1218
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1219
echo "$as_me: loading cache $cache_file" >&6;}
 
1220
    case $cache_file in
 
1221
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1222
      *)                      . ./$cache_file;;
 
1223
    esac
 
1224
  fi
 
1225
else
 
1226
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1227
echo "$as_me: creating cache $cache_file" >&6;}
 
1228
  >$cache_file
 
1229
fi
 
1230
 
 
1231
# Check that the precious variables saved in the cache have kept the same
 
1232
# value.
 
1233
ac_cache_corrupted=false
 
1234
for ac_var in `(set) 2>&1 |
 
1235
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1236
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1237
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1238
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1239
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1240
  case $ac_old_set,$ac_new_set in
 
1241
    set,)
 
1242
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1243
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1244
      ac_cache_corrupted=: ;;
 
1245
    ,set)
 
1246
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1247
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1248
      ac_cache_corrupted=: ;;
 
1249
    ,);;
 
1250
    *)
 
1251
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1252
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1253
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1254
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1255
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1256
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1257
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1258
        ac_cache_corrupted=:
 
1259
      fi;;
 
1260
  esac
 
1261
  # Pass precious variables to config.status.
 
1262
  if test "$ac_new_set" = set; then
 
1263
    case $ac_new_val in
 
1264
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1265
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1266
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1267
    esac
 
1268
    case " $ac_configure_args " in
 
1269
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1270
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1271
    esac
 
1272
  fi
 
1273
done
 
1274
if $ac_cache_corrupted; then
 
1275
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1276
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1277
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1278
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1279
   { (exit 1); exit 1; }; }
 
1280
fi
 
1281
 
 
1282
ac_ext=c
 
1283
ac_cpp='$CPP $CPPFLAGS'
 
1284
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1285
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1286
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1287
 
 
1288
 
 
1289
 
 
1290
 
 
1291
 
 
1292
 
 
1293
 
 
1294
 
 
1295
 
 
1296
 
 
1297
 
 
1298
 
 
1299
 
 
1300
 
 
1301
 
 
1302
 
 
1303
 
 
1304
 
 
1305
 
 
1306
am__api_version="1.7"
 
1307
ac_aux_dir=
 
1308
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
1309
  if test -f $ac_dir/install-sh; then
 
1310
    ac_aux_dir=$ac_dir
 
1311
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1312
    break
 
1313
  elif test -f $ac_dir/install.sh; then
 
1314
    ac_aux_dir=$ac_dir
 
1315
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1316
    break
 
1317
  elif test -f $ac_dir/shtool; then
 
1318
    ac_aux_dir=$ac_dir
 
1319
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1320
    break
 
1321
  fi
 
1322
done
 
1323
if test -z "$ac_aux_dir"; then
 
1324
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
1325
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
1326
   { (exit 1); exit 1; }; }
 
1327
fi
 
1328
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1329
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1330
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1331
 
 
1332
# Find a good install program.  We prefer a C program (faster),
 
1333
# so one script is as good as another.  But avoid the broken or
 
1334
# incompatible versions:
 
1335
# SysV /etc/install, /usr/sbin/install
 
1336
# SunOS /usr/etc/install
 
1337
# IRIX /sbin/install
 
1338
# AIX /bin/install
 
1339
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
1340
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
1341
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
1342
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1343
# ./install, which can be erroneously created by make from ./install.sh.
 
1344
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1345
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
1346
if test -z "$INSTALL"; then
 
1347
if test "${ac_cv_path_install+set}" = set; then
 
1348
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1349
else
 
1350
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1351
for as_dir in $PATH
 
1352
do
 
1353
  IFS=$as_save_IFS
 
1354
  test -z "$as_dir" && as_dir=.
 
1355
  # Account for people who put trailing slashes in PATH elements.
 
1356
case $as_dir/ in
 
1357
  ./ | .// | /cC/* | \
 
1358
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1359
  /usr/ucb/* ) ;;
 
1360
  *)
 
1361
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1362
    # Don't use installbsd from OSF since it installs stuff as root
 
1363
    # by default.
 
1364
    for ac_prog in ginstall scoinst install; do
 
1365
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1366
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
1367
          if test $ac_prog = install &&
 
1368
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1369
            # AIX install.  It has an incompatible calling convention.
 
1370
            :
 
1371
          elif test $ac_prog = install &&
 
1372
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1373
            # program-specific install script used by HP pwplus--don't use.
 
1374
            :
 
1375
          else
 
1376
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1377
            break 3
 
1378
          fi
 
1379
        fi
 
1380
      done
 
1381
    done
 
1382
    ;;
 
1383
esac
 
1384
done
 
1385
 
 
1386
 
 
1387
fi
 
1388
  if test "${ac_cv_path_install+set}" = set; then
 
1389
    INSTALL=$ac_cv_path_install
 
1390
  else
 
1391
    # As a last resort, use the slow shell script.  We don't cache a
 
1392
    # path for INSTALL within a source directory, because that will
 
1393
    # break other packages using the cache if that directory is
 
1394
    # removed, or if the path is relative.
 
1395
    INSTALL=$ac_install_sh
 
1396
  fi
 
1397
fi
 
1398
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1399
echo "${ECHO_T}$INSTALL" >&6
 
1400
 
 
1401
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
1402
# It thinks the first close brace ends the variable substitution.
 
1403
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
1404
 
 
1405
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
1406
 
 
1407
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
1408
 
 
1409
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1410
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
1411
# Just in case
 
1412
sleep 1
 
1413
echo timestamp > conftest.file
 
1414
# Do `set' in a subshell so we don't clobber the current shell's
 
1415
# arguments.  Must try -L first in case configure is actually a
 
1416
# symlink; some systems play weird games with the mod time of symlinks
 
1417
# (eg FreeBSD returns the mod time of the symlink's containing
 
1418
# directory).
 
1419
if (
 
1420
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
1421
   if test "$*" = "X"; then
 
1422
      # -L didn't work.
 
1423
      set X `ls -t $srcdir/configure conftest.file`
 
1424
   fi
 
1425
   rm -f conftest.file
 
1426
   if test "$*" != "X $srcdir/configure conftest.file" \
 
1427
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
1428
 
 
1429
      # If neither matched, then we have a broken ls.  This can happen
 
1430
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1431
      # broken ls alias from the environment.  This has actually
 
1432
      # happened.  Such a system could not be considered "sane".
 
1433
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
1434
alias in your environment" >&5
 
1435
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
1436
alias in your environment" >&2;}
 
1437
   { (exit 1); exit 1; }; }
 
1438
   fi
 
1439
 
 
1440
   test "$2" = conftest.file
 
1441
   )
 
1442
then
 
1443
   # Ok.
 
1444
   :
 
1445
else
 
1446
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
1447
Check your system clock" >&5
 
1448
echo "$as_me: error: newly created file is older than distributed files!
 
1449
Check your system clock" >&2;}
 
1450
   { (exit 1); exit 1; }; }
 
1451
fi
 
1452
echo "$as_me:$LINENO: result: yes" >&5
 
1453
echo "${ECHO_T}yes" >&6
 
1454
test "$program_prefix" != NONE &&
 
1455
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
1456
# Use a double $ so make ignores it.
 
1457
test "$program_suffix" != NONE &&
 
1458
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
1459
# Double any \ or $.  echo might interpret backslashes.
 
1460
# By default was `s,x,x', remove it if useless.
 
1461
cat <<\_ACEOF >conftest.sed
 
1462
s/[\\$]/&&/g;s/;s,x,x,$//
 
1463
_ACEOF
 
1464
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1465
rm conftest.sed
 
1466
 
 
1467
 
 
1468
# expand $ac_aux_dir to an absolute path
 
1469
am_aux_dir=`cd $ac_aux_dir && pwd`
 
1470
 
 
1471
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1472
# Use eval to expand $SHELL
 
1473
if eval "$MISSING --run true"; then
 
1474
  am_missing_run="$MISSING --run "
 
1475
else
 
1476
  am_missing_run=
 
1477
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
1478
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
1479
fi
 
1480
 
 
1481
for ac_prog in gawk mawk nawk awk
 
1482
do
 
1483
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1484
set dummy $ac_prog; ac_word=$2
 
1485
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1486
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1487
if test "${ac_cv_prog_AWK+set}" = set; then
 
1488
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1489
else
 
1490
  if test -n "$AWK"; then
 
1491
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
1492
else
 
1493
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1494
for as_dir in $PATH
 
1495
do
 
1496
  IFS=$as_save_IFS
 
1497
  test -z "$as_dir" && as_dir=.
 
1498
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1499
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1500
    ac_cv_prog_AWK="$ac_prog"
 
1501
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1502
    break 2
 
1503
  fi
 
1504
done
 
1505
done
 
1506
 
 
1507
fi
 
1508
fi
 
1509
AWK=$ac_cv_prog_AWK
 
1510
if test -n "$AWK"; then
 
1511
  echo "$as_me:$LINENO: result: $AWK" >&5
 
1512
echo "${ECHO_T}$AWK" >&6
 
1513
else
 
1514
  echo "$as_me:$LINENO: result: no" >&5
 
1515
echo "${ECHO_T}no" >&6
 
1516
fi
 
1517
 
 
1518
  test -n "$AWK" && break
 
1519
done
 
1520
 
 
1521
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1522
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1523
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
 
1524
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
1525
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1526
else
 
1527
  cat >conftest.make <<\_ACEOF
 
1528
all:
 
1529
        @echo 'ac_maketemp="$(MAKE)"'
 
1530
_ACEOF
 
1531
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
1532
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
1533
if test -n "$ac_maketemp"; then
 
1534
  eval ac_cv_prog_make_${ac_make}_set=yes
 
1535
else
 
1536
  eval ac_cv_prog_make_${ac_make}_set=no
 
1537
fi
 
1538
rm -f conftest.make
 
1539
fi
 
1540
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
1541
  echo "$as_me:$LINENO: result: yes" >&5
 
1542
echo "${ECHO_T}yes" >&6
 
1543
  SET_MAKE=
 
1544
else
 
1545
  echo "$as_me:$LINENO: result: no" >&5
 
1546
echo "${ECHO_T}no" >&6
 
1547
  SET_MAKE="MAKE=${MAKE-make}"
 
1548
fi
 
1549
 
 
1550
rm -rf .tst 2>/dev/null
 
1551
mkdir .tst 2>/dev/null
 
1552
if test -d .tst; then
 
1553
  am__leading_dot=.
 
1554
else
 
1555
  am__leading_dot=_
 
1556
fi
 
1557
rmdir .tst 2>/dev/null
 
1558
 
 
1559
 # test to see if srcdir already configured
 
1560
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
1561
   test -f $srcdir/config.status; then
 
1562
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
1563
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
1564
   { (exit 1); exit 1; }; }
 
1565
fi
 
1566
 
 
1567
# test whether we have cygpath
 
1568
if test -z "$CYGPATH_W"; then
 
1569
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
1570
    CYGPATH_W='cygpath -w'
 
1571
  else
 
1572
    CYGPATH_W=echo
 
1573
  fi
 
1574
fi
 
1575
 
 
1576
 
 
1577
# Define the identity of the package.
 
1578
 PACKAGE=terminatorX
 
1579
 VERSION=3.81
 
1580
 
 
1581
 
 
1582
cat >>confdefs.h <<_ACEOF
 
1583
#define PACKAGE "$PACKAGE"
 
1584
_ACEOF
 
1585
 
 
1586
 
 
1587
cat >>confdefs.h <<_ACEOF
 
1588
#define VERSION "$VERSION"
 
1589
_ACEOF
 
1590
 
 
1591
# Some tools Automake needs.
 
1592
 
 
1593
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
1594
 
 
1595
 
 
1596
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
1597
 
 
1598
 
 
1599
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
1600
 
 
1601
 
 
1602
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
1603
 
 
1604
 
 
1605
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
1606
 
 
1607
 
 
1608
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
1609
 
 
1610
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
1611
 
 
1612
# Installed binaries are usually stripped using `strip' when the user
 
1613
# run `make install-strip'.  However `strip' might not be the right
 
1614
# tool to use in cross-compilation environments, therefore Automake
 
1615
# will honor the `STRIP' environment variable to overrule this program.
 
1616
if test "$cross_compiling" != no; then
 
1617
  if test -n "$ac_tool_prefix"; then
 
1618
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
1619
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
1620
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1621
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1622
if test "${ac_cv_prog_STRIP+set}" = set; then
 
1623
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1624
else
 
1625
  if test -n "$STRIP"; then
 
1626
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
1627
else
 
1628
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1629
for as_dir in $PATH
 
1630
do
 
1631
  IFS=$as_save_IFS
 
1632
  test -z "$as_dir" && as_dir=.
 
1633
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1634
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1635
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
1636
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1637
    break 2
 
1638
  fi
 
1639
done
 
1640
done
 
1641
 
 
1642
fi
 
1643
fi
 
1644
STRIP=$ac_cv_prog_STRIP
 
1645
if test -n "$STRIP"; then
 
1646
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
1647
echo "${ECHO_T}$STRIP" >&6
 
1648
else
 
1649
  echo "$as_me:$LINENO: result: no" >&5
 
1650
echo "${ECHO_T}no" >&6
 
1651
fi
 
1652
 
 
1653
fi
 
1654
if test -z "$ac_cv_prog_STRIP"; then
 
1655
  ac_ct_STRIP=$STRIP
 
1656
  # Extract the first word of "strip", so it can be a program name with args.
 
1657
set dummy strip; ac_word=$2
 
1658
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1659
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1660
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
1661
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1662
else
 
1663
  if test -n "$ac_ct_STRIP"; then
 
1664
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
1665
else
 
1666
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1667
for as_dir in $PATH
 
1668
do
 
1669
  IFS=$as_save_IFS
 
1670
  test -z "$as_dir" && as_dir=.
 
1671
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1672
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1673
    ac_cv_prog_ac_ct_STRIP="strip"
 
1674
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1675
    break 2
 
1676
  fi
 
1677
done
 
1678
done
 
1679
 
 
1680
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
1681
fi
 
1682
fi
 
1683
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
1684
if test -n "$ac_ct_STRIP"; then
 
1685
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
1686
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
1687
else
 
1688
  echo "$as_me:$LINENO: result: no" >&5
 
1689
echo "${ECHO_T}no" >&6
 
1690
fi
 
1691
 
 
1692
  STRIP=$ac_ct_STRIP
 
1693
else
 
1694
  STRIP="$ac_cv_prog_STRIP"
 
1695
fi
 
1696
 
 
1697
fi
 
1698
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
1699
 
 
1700
# We need awk for the "check" target.  The system "awk" is bad on
 
1701
# some platforms.
 
1702
 
 
1703
 
 
1704
 
 
1705
          ac_config_headers="$ac_config_headers config.h"
 
1706
 
 
1707
 
 
1708
# Check whether --enable-sox or --disable-sox was given.
 
1709
if test "${enable_sox+set}" = set; then
 
1710
  enableval="$enable_sox"
 
1711
 
 
1712
fi;
 
1713
# Check whether --enable-mpg123 or --disable-mpg123 was given.
 
1714
if test "${enable_mpg123+set}" = set; then
 
1715
  enableval="$enable_mpg123"
 
1716
 
 
1717
fi;
 
1718
# Check whether --enable-ogg123 or --disable-ogg123 was given.
 
1719
if test "${enable_ogg123+set}" = set; then
 
1720
  enableval="$enable_ogg123"
 
1721
 
 
1722
fi;
 
1723
# Check whether --enable-scheduler or --disable-scheduler was given.
 
1724
if test "${enable_scheduler+set}" = set; then
 
1725
  enableval="$enable_scheduler"
 
1726
 
 
1727
fi;
 
1728
# Check whether --enable-debug or --disable-debug was given.
 
1729
if test "${enable_debug+set}" = set; then
 
1730
  enableval="$enable_debug"
 
1731
 
 
1732
fi;
 
1733
# Check whether --enable-wav or --disable-wav was given.
 
1734
if test "${enable_wav+set}" = set; then
 
1735
  enableval="$enable_wav"
 
1736
 
 
1737
fi;
 
1738
# Check whether --enable-xsetpointer or --disable-xsetpointer was given.
 
1739
if test "${enable_xsetpointer+set}" = set; then
 
1740
  enableval="$enable_xsetpointer"
 
1741
 
 
1742
fi;
 
1743
# Check whether --enable-alsa or --disable-alsa was given.
 
1744
if test "${enable_alsa+set}" = set; then
 
1745
  enableval="$enable_alsa"
 
1746
 
 
1747
fi;
 
1748
# Check whether --enable-jack or --disable-jack was given.
 
1749
if test "${enable_jack+set}" = set; then
 
1750
  enableval="$enable_jack"
 
1751
 
 
1752
fi;
 
1753
# Check whether --enable-oss or --disable-oss was given.
 
1754
if test "${enable_oss+set}" = set; then
 
1755
  enableval="$enable_oss"
 
1756
 
 
1757
fi;
 
1758
# Check whether --enable-libxml2 or --disable-libxml2 was given.
 
1759
if test "${enable_libxml2+set}" = set; then
 
1760
  enableval="$enable_libxml2"
 
1761
 
 
1762
fi;
 
1763
# Check whether --enable-mad or --disable-mad was given.
 
1764
if test "${enable_mad+set}" = set; then
 
1765
  enableval="$enable_mad"
 
1766
 
 
1767
fi;
 
1768
# Check whether --enable-vorbis or --disable-vorbis was given.
 
1769
if test "${enable_vorbis+set}" = set; then
 
1770
  enableval="$enable_vorbis"
 
1771
 
 
1772
fi;
 
1773
# Check whether --enable-audiofile or --disable-audiofile was given.
 
1774
if test "${enable_audiofile+set}" = set; then
 
1775
  enableval="$enable_audiofile"
 
1776
 
 
1777
fi;
 
1778
# Check whether --enable-legacy or --disable-legacy was given.
 
1779
if test "${enable_legacy+set}" = set; then
 
1780
  enableval="$enable_legacy"
 
1781
 
 
1782
fi;
 
1783
# Check whether --enable-alsamidi or --disable-alsamidi was given.
 
1784
if test "${enable_alsamidi+set}" = set; then
 
1785
  enableval="$enable_alsamidi"
 
1786
 
 
1787
fi;
 
1788
# Check whether --enable-lrdf or --disable-lrdf was given.
 
1789
if test "${enable_lrdf+set}" = set; then
 
1790
  enableval="$enable_lrdf"
 
1791
 
 
1792
fi;
 
1793
# Check whether --enable-suidroot or --disable-suidroot was given.
 
1794
if test "${enable_suidroot+set}" = set; then
 
1795
  enableval="$enable_suidroot"
 
1796
 
 
1797
fi;
 
1798
# Check whether --enable-capabilities or --disable-capabilities was given.
 
1799
if test "${enable_capabilities+set}" = set; then
 
1800
  enableval="$enable_capabilities"
 
1801
 
 
1802
fi;
 
1803
# Check whether --enable-deprecated or --disable-deprecated was given.
 
1804
if test "${enable_deprecated+set}" = set; then
 
1805
  enableval="$enable_deprecated"
 
1806
 
 
1807
fi;
 
1808
 
 
1809
# Check whether --with-docdir or --without-docdir was given.
 
1810
if test "${with_docdir+set}" = set; then
 
1811
  withval="$with_docdir"
 
1812
 
 
1813
fi;
 
1814
 
 
1815
for ac_prog in gawk mawk nawk awk
 
1816
do
 
1817
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1818
set dummy $ac_prog; ac_word=$2
 
1819
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1820
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1821
if test "${ac_cv_prog_AWK+set}" = set; then
 
1822
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1823
else
 
1824
  if test -n "$AWK"; then
 
1825
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
1826
else
 
1827
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1828
for as_dir in $PATH
 
1829
do
 
1830
  IFS=$as_save_IFS
 
1831
  test -z "$as_dir" && as_dir=.
 
1832
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1833
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1834
    ac_cv_prog_AWK="$ac_prog"
 
1835
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1836
    break 2
 
1837
  fi
 
1838
done
 
1839
done
 
1840
 
 
1841
fi
 
1842
fi
 
1843
AWK=$ac_cv_prog_AWK
 
1844
if test -n "$AWK"; then
 
1845
  echo "$as_me:$LINENO: result: $AWK" >&5
 
1846
echo "${ECHO_T}$AWK" >&6
 
1847
else
 
1848
  echo "$as_me:$LINENO: result: no" >&5
 
1849
echo "${ECHO_T}no" >&6
 
1850
fi
 
1851
 
 
1852
  test -n "$AWK" && break
 
1853
done
 
1854
 
 
1855
ac_ext=c
 
1856
ac_cpp='$CPP $CPPFLAGS'
 
1857
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1858
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1859
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1860
if test -n "$ac_tool_prefix"; then
 
1861
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
1862
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
1863
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1864
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1865
if test "${ac_cv_prog_CC+set}" = set; then
 
1866
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1867
else
 
1868
  if test -n "$CC"; then
 
1869
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1870
else
 
1871
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1872
for as_dir in $PATH
 
1873
do
 
1874
  IFS=$as_save_IFS
 
1875
  test -z "$as_dir" && as_dir=.
 
1876
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1877
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1878
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
1879
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1880
    break 2
 
1881
  fi
 
1882
done
 
1883
done
 
1884
 
 
1885
fi
 
1886
fi
 
1887
CC=$ac_cv_prog_CC
 
1888
if test -n "$CC"; then
 
1889
  echo "$as_me:$LINENO: result: $CC" >&5
 
1890
echo "${ECHO_T}$CC" >&6
 
1891
else
 
1892
  echo "$as_me:$LINENO: result: no" >&5
 
1893
echo "${ECHO_T}no" >&6
 
1894
fi
 
1895
 
 
1896
fi
 
1897
if test -z "$ac_cv_prog_CC"; then
 
1898
  ac_ct_CC=$CC
 
1899
  # Extract the first word of "gcc", so it can be a program name with args.
 
1900
set dummy gcc; ac_word=$2
 
1901
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1902
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1903
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1904
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1905
else
 
1906
  if test -n "$ac_ct_CC"; then
 
1907
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1908
else
 
1909
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1910
for as_dir in $PATH
 
1911
do
 
1912
  IFS=$as_save_IFS
 
1913
  test -z "$as_dir" && as_dir=.
 
1914
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1915
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1916
    ac_cv_prog_ac_ct_CC="gcc"
 
1917
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1918
    break 2
 
1919
  fi
 
1920
done
 
1921
done
 
1922
 
 
1923
fi
 
1924
fi
 
1925
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1926
if test -n "$ac_ct_CC"; then
 
1927
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1928
echo "${ECHO_T}$ac_ct_CC" >&6
 
1929
else
 
1930
  echo "$as_me:$LINENO: result: no" >&5
 
1931
echo "${ECHO_T}no" >&6
 
1932
fi
 
1933
 
 
1934
  CC=$ac_ct_CC
 
1935
else
 
1936
  CC="$ac_cv_prog_CC"
 
1937
fi
 
1938
 
 
1939
if test -z "$CC"; then
 
1940
  if test -n "$ac_tool_prefix"; then
 
1941
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
1942
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
1943
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1944
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1945
if test "${ac_cv_prog_CC+set}" = set; then
 
1946
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1947
else
 
1948
  if test -n "$CC"; then
 
1949
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1950
else
 
1951
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1952
for as_dir in $PATH
 
1953
do
 
1954
  IFS=$as_save_IFS
 
1955
  test -z "$as_dir" && as_dir=.
 
1956
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1957
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1958
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
1959
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1960
    break 2
 
1961
  fi
 
1962
done
 
1963
done
 
1964
 
 
1965
fi
 
1966
fi
 
1967
CC=$ac_cv_prog_CC
 
1968
if test -n "$CC"; then
 
1969
  echo "$as_me:$LINENO: result: $CC" >&5
 
1970
echo "${ECHO_T}$CC" >&6
 
1971
else
 
1972
  echo "$as_me:$LINENO: result: no" >&5
 
1973
echo "${ECHO_T}no" >&6
 
1974
fi
 
1975
 
 
1976
fi
 
1977
if test -z "$ac_cv_prog_CC"; then
 
1978
  ac_ct_CC=$CC
 
1979
  # Extract the first word of "cc", so it can be a program name with args.
 
1980
set dummy cc; ac_word=$2
 
1981
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1982
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1983
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1984
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1985
else
 
1986
  if test -n "$ac_ct_CC"; then
 
1987
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1988
else
 
1989
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1990
for as_dir in $PATH
 
1991
do
 
1992
  IFS=$as_save_IFS
 
1993
  test -z "$as_dir" && as_dir=.
 
1994
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1995
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1996
    ac_cv_prog_ac_ct_CC="cc"
 
1997
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1998
    break 2
 
1999
  fi
 
2000
done
 
2001
done
 
2002
 
 
2003
fi
 
2004
fi
 
2005
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2006
if test -n "$ac_ct_CC"; then
 
2007
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2008
echo "${ECHO_T}$ac_ct_CC" >&6
 
2009
else
 
2010
  echo "$as_me:$LINENO: result: no" >&5
 
2011
echo "${ECHO_T}no" >&6
 
2012
fi
 
2013
 
 
2014
  CC=$ac_ct_CC
 
2015
else
 
2016
  CC="$ac_cv_prog_CC"
 
2017
fi
 
2018
 
 
2019
fi
 
2020
if test -z "$CC"; then
 
2021
  # Extract the first word of "cc", so it can be a program name with args.
 
2022
set dummy cc; ac_word=$2
 
2023
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2024
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2025
if test "${ac_cv_prog_CC+set}" = set; then
 
2026
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2027
else
 
2028
  if test -n "$CC"; then
 
2029
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2030
else
 
2031
  ac_prog_rejected=no
 
2032
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2033
for as_dir in $PATH
 
2034
do
 
2035
  IFS=$as_save_IFS
 
2036
  test -z "$as_dir" && as_dir=.
 
2037
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2038
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2039
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2040
       ac_prog_rejected=yes
 
2041
       continue
 
2042
     fi
 
2043
    ac_cv_prog_CC="cc"
 
2044
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2045
    break 2
 
2046
  fi
 
2047
done
 
2048
done
 
2049
 
 
2050
if test $ac_prog_rejected = yes; then
 
2051
  # We found a bogon in the path, so make sure we never use it.
 
2052
  set dummy $ac_cv_prog_CC
 
2053
  shift
 
2054
  if test $# != 0; then
 
2055
    # We chose a different compiler from the bogus one.
 
2056
    # However, it has the same basename, so the bogon will be chosen
 
2057
    # first if we set CC to just the basename; use the full file name.
 
2058
    shift
 
2059
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2060
  fi
 
2061
fi
 
2062
fi
 
2063
fi
 
2064
CC=$ac_cv_prog_CC
 
2065
if test -n "$CC"; then
 
2066
  echo "$as_me:$LINENO: result: $CC" >&5
 
2067
echo "${ECHO_T}$CC" >&6
 
2068
else
 
2069
  echo "$as_me:$LINENO: result: no" >&5
 
2070
echo "${ECHO_T}no" >&6
 
2071
fi
 
2072
 
 
2073
fi
 
2074
if test -z "$CC"; then
 
2075
  if test -n "$ac_tool_prefix"; then
 
2076
  for ac_prog in cl
 
2077
  do
 
2078
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2079
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2080
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2081
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2082
if test "${ac_cv_prog_CC+set}" = set; then
 
2083
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2084
else
 
2085
  if test -n "$CC"; then
 
2086
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2087
else
 
2088
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2089
for as_dir in $PATH
 
2090
do
 
2091
  IFS=$as_save_IFS
 
2092
  test -z "$as_dir" && as_dir=.
 
2093
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2094
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2095
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2096
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2097
    break 2
 
2098
  fi
 
2099
done
 
2100
done
 
2101
 
 
2102
fi
 
2103
fi
 
2104
CC=$ac_cv_prog_CC
 
2105
if test -n "$CC"; then
 
2106
  echo "$as_me:$LINENO: result: $CC" >&5
 
2107
echo "${ECHO_T}$CC" >&6
 
2108
else
 
2109
  echo "$as_me:$LINENO: result: no" >&5
 
2110
echo "${ECHO_T}no" >&6
 
2111
fi
 
2112
 
 
2113
    test -n "$CC" && break
 
2114
  done
 
2115
fi
 
2116
if test -z "$CC"; then
 
2117
  ac_ct_CC=$CC
 
2118
  for ac_prog in cl
 
2119
do
 
2120
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2121
set dummy $ac_prog; ac_word=$2
 
2122
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2123
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2124
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2125
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2126
else
 
2127
  if test -n "$ac_ct_CC"; then
 
2128
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2129
else
 
2130
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2131
for as_dir in $PATH
 
2132
do
 
2133
  IFS=$as_save_IFS
 
2134
  test -z "$as_dir" && as_dir=.
 
2135
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2136
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2137
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2138
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2139
    break 2
 
2140
  fi
 
2141
done
 
2142
done
 
2143
 
 
2144
fi
 
2145
fi
 
2146
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2147
if test -n "$ac_ct_CC"; then
 
2148
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2149
echo "${ECHO_T}$ac_ct_CC" >&6
 
2150
else
 
2151
  echo "$as_me:$LINENO: result: no" >&5
 
2152
echo "${ECHO_T}no" >&6
 
2153
fi
 
2154
 
 
2155
  test -n "$ac_ct_CC" && break
 
2156
done
 
2157
 
 
2158
  CC=$ac_ct_CC
 
2159
fi
 
2160
 
 
2161
fi
 
2162
 
 
2163
 
 
2164
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2165
See \`config.log' for more details." >&5
 
2166
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2167
See \`config.log' for more details." >&2;}
 
2168
   { (exit 1); exit 1; }; }
 
2169
 
 
2170
# Provide some information about the compiler.
 
2171
echo "$as_me:$LINENO:" \
 
2172
     "checking for C compiler version" >&5
 
2173
ac_compiler=`set X $ac_compile; echo $2`
 
2174
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2175
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2176
  ac_status=$?
 
2177
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2178
  (exit $ac_status); }
 
2179
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2180
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2181
  ac_status=$?
 
2182
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2183
  (exit $ac_status); }
 
2184
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2185
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2186
  ac_status=$?
 
2187
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2188
  (exit $ac_status); }
 
2189
 
 
2190
cat >conftest.$ac_ext <<_ACEOF
 
2191
#line $LINENO "configure"
 
2192
/* confdefs.h.  */
 
2193
_ACEOF
 
2194
cat confdefs.h >>conftest.$ac_ext
 
2195
cat >>conftest.$ac_ext <<_ACEOF
 
2196
/* end confdefs.h.  */
 
2197
 
 
2198
int
 
2199
main ()
 
2200
{
 
2201
 
 
2202
  ;
 
2203
  return 0;
 
2204
}
 
2205
_ACEOF
 
2206
ac_clean_files_save=$ac_clean_files
 
2207
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2208
# Try to create an executable without -o first, disregard a.out.
 
2209
# It will help us diagnose broken compilers, and finding out an intuition
 
2210
# of exeext.
 
2211
echo "$as_me:$LINENO: checking for C compiler default output" >&5
 
2212
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
 
2213
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2214
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
2215
  (eval $ac_link_default) 2>&5
 
2216
  ac_status=$?
 
2217
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2218
  (exit $ac_status); }; then
 
2219
  # Find the output, starting from the most likely.  This scheme is
 
2220
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
2221
# resort.
 
2222
 
 
2223
# Be careful to initialize this variable, since it used to be cached.
 
2224
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2225
ac_cv_exeext=
 
2226
# b.out is created by i960 compilers.
 
2227
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2228
do
 
2229
  test -f "$ac_file" || continue
 
2230
  case $ac_file in
 
2231
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2232
        ;;
 
2233
    conftest.$ac_ext )
 
2234
        # This is the source file.
 
2235
        ;;
 
2236
    [ab].out )
 
2237
        # We found the default executable, but exeext='' is most
 
2238
        # certainly right.
 
2239
        break;;
 
2240
    *.* )
 
2241
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2242
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2243
        # but it would be cool to find out if it's true.  Does anybody
 
2244
        # maintain Libtool? --akim.
 
2245
        export ac_cv_exeext
 
2246
        break;;
 
2247
    * )
 
2248
        break;;
 
2249
  esac
 
2250
done
 
2251
else
 
2252
  echo "$as_me: failed program was:" >&5
 
2253
sed 's/^/| /' conftest.$ac_ext >&5
 
2254
 
 
2255
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2256
See \`config.log' for more details." >&5
 
2257
echo "$as_me: error: C compiler cannot create executables
 
2258
See \`config.log' for more details." >&2;}
 
2259
   { (exit 77); exit 77; }; }
 
2260
fi
 
2261
 
 
2262
ac_exeext=$ac_cv_exeext
 
2263
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2264
echo "${ECHO_T}$ac_file" >&6
 
2265
 
 
2266
# Check the compiler produces executables we can run.  If not, either
 
2267
# the compiler is broken, or we cross compile.
 
2268
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2269
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
2270
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2271
# If not cross compiling, check that we can run a simple program.
 
2272
if test "$cross_compiling" != yes; then
 
2273
  if { ac_try='./$ac_file'
 
2274
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2275
  (eval $ac_try) 2>&5
 
2276
  ac_status=$?
 
2277
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2278
  (exit $ac_status); }; }; then
 
2279
    cross_compiling=no
 
2280
  else
 
2281
    if test "$cross_compiling" = maybe; then
 
2282
        cross_compiling=yes
 
2283
    else
 
2284
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2285
If you meant to cross compile, use \`--host'.
 
2286
See \`config.log' for more details." >&5
 
2287
echo "$as_me: error: cannot run C compiled programs.
 
2288
If you meant to cross compile, use \`--host'.
 
2289
See \`config.log' for more details." >&2;}
 
2290
   { (exit 1); exit 1; }; }
 
2291
    fi
 
2292
  fi
 
2293
fi
 
2294
echo "$as_me:$LINENO: result: yes" >&5
 
2295
echo "${ECHO_T}yes" >&6
 
2296
 
 
2297
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2298
ac_clean_files=$ac_clean_files_save
 
2299
# Check the compiler produces executables we can run.  If not, either
 
2300
# the compiler is broken, or we cross compile.
 
2301
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2302
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
2303
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2304
echo "${ECHO_T}$cross_compiling" >&6
 
2305
 
 
2306
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2307
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2308
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2309
  (eval $ac_link) 2>&5
 
2310
  ac_status=$?
 
2311
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2312
  (exit $ac_status); }; then
 
2313
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2314
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2315
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2316
# `rm'.
 
2317
for ac_file in conftest.exe conftest conftest.*; do
 
2318
  test -f "$ac_file" || continue
 
2319
  case $ac_file in
 
2320
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2321
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2322
          export ac_cv_exeext
 
2323
          break;;
 
2324
    * ) break;;
 
2325
  esac
 
2326
done
 
2327
else
 
2328
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2329
See \`config.log' for more details." >&5
 
2330
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2331
See \`config.log' for more details." >&2;}
 
2332
   { (exit 1); exit 1; }; }
 
2333
fi
 
2334
 
 
2335
rm -f conftest$ac_cv_exeext
 
2336
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2337
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2338
 
 
2339
rm -f conftest.$ac_ext
 
2340
EXEEXT=$ac_cv_exeext
 
2341
ac_exeext=$EXEEXT
 
2342
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2343
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2344
if test "${ac_cv_objext+set}" = set; then
 
2345
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2346
else
 
2347
  cat >conftest.$ac_ext <<_ACEOF
 
2348
#line $LINENO "configure"
 
2349
/* confdefs.h.  */
 
2350
_ACEOF
 
2351
cat confdefs.h >>conftest.$ac_ext
 
2352
cat >>conftest.$ac_ext <<_ACEOF
 
2353
/* end confdefs.h.  */
 
2354
 
 
2355
int
 
2356
main ()
 
2357
{
 
2358
 
 
2359
  ;
 
2360
  return 0;
 
2361
}
 
2362
_ACEOF
 
2363
rm -f conftest.o conftest.obj
 
2364
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2365
  (eval $ac_compile) 2>&5
 
2366
  ac_status=$?
 
2367
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2368
  (exit $ac_status); }; then
 
2369
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2370
  case $ac_file in
 
2371
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2372
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2373
       break;;
 
2374
  esac
 
2375
done
 
2376
else
 
2377
  echo "$as_me: failed program was:" >&5
 
2378
sed 's/^/| /' conftest.$ac_ext >&5
 
2379
 
 
2380
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2381
See \`config.log' for more details." >&5
 
2382
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2383
See \`config.log' for more details." >&2;}
 
2384
   { (exit 1); exit 1; }; }
 
2385
fi
 
2386
 
 
2387
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2388
fi
 
2389
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2390
echo "${ECHO_T}$ac_cv_objext" >&6
 
2391
OBJEXT=$ac_cv_objext
 
2392
ac_objext=$OBJEXT
 
2393
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2394
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2395
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2396
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2397
else
 
2398
  cat >conftest.$ac_ext <<_ACEOF
 
2399
#line $LINENO "configure"
 
2400
/* confdefs.h.  */
 
2401
_ACEOF
 
2402
cat confdefs.h >>conftest.$ac_ext
 
2403
cat >>conftest.$ac_ext <<_ACEOF
 
2404
/* end confdefs.h.  */
 
2405
 
 
2406
int
 
2407
main ()
 
2408
{
 
2409
#ifndef __GNUC__
 
2410
       choke me
 
2411
#endif
 
2412
 
 
2413
  ;
 
2414
  return 0;
 
2415
}
 
2416
_ACEOF
 
2417
rm -f conftest.$ac_objext
 
2418
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2419
  (eval $ac_compile) 2>&5
 
2420
  ac_status=$?
 
2421
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2422
  (exit $ac_status); } &&
 
2423
         { ac_try='test -s conftest.$ac_objext'
 
2424
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2425
  (eval $ac_try) 2>&5
 
2426
  ac_status=$?
 
2427
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2428
  (exit $ac_status); }; }; then
 
2429
  ac_compiler_gnu=yes
 
2430
else
 
2431
  echo "$as_me: failed program was:" >&5
 
2432
sed 's/^/| /' conftest.$ac_ext >&5
 
2433
 
 
2434
ac_compiler_gnu=no
 
2435
fi
 
2436
rm -f conftest.$ac_objext conftest.$ac_ext
 
2437
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2438
 
 
2439
fi
 
2440
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2441
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2442
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2443
ac_test_CFLAGS=${CFLAGS+set}
 
2444
ac_save_CFLAGS=$CFLAGS
 
2445
CFLAGS="-g"
 
2446
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2447
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2448
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2449
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2450
else
 
2451
  cat >conftest.$ac_ext <<_ACEOF
 
2452
#line $LINENO "configure"
 
2453
/* confdefs.h.  */
 
2454
_ACEOF
 
2455
cat confdefs.h >>conftest.$ac_ext
 
2456
cat >>conftest.$ac_ext <<_ACEOF
 
2457
/* end confdefs.h.  */
 
2458
 
 
2459
int
 
2460
main ()
 
2461
{
 
2462
 
 
2463
  ;
 
2464
  return 0;
 
2465
}
 
2466
_ACEOF
 
2467
rm -f conftest.$ac_objext
 
2468
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2469
  (eval $ac_compile) 2>&5
 
2470
  ac_status=$?
 
2471
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2472
  (exit $ac_status); } &&
 
2473
         { ac_try='test -s conftest.$ac_objext'
 
2474
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2475
  (eval $ac_try) 2>&5
 
2476
  ac_status=$?
 
2477
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2478
  (exit $ac_status); }; }; then
 
2479
  ac_cv_prog_cc_g=yes
 
2480
else
 
2481
  echo "$as_me: failed program was:" >&5
 
2482
sed 's/^/| /' conftest.$ac_ext >&5
 
2483
 
 
2484
ac_cv_prog_cc_g=no
 
2485
fi
 
2486
rm -f conftest.$ac_objext conftest.$ac_ext
 
2487
fi
 
2488
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2489
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
2490
if test "$ac_test_CFLAGS" = set; then
 
2491
  CFLAGS=$ac_save_CFLAGS
 
2492
elif test $ac_cv_prog_cc_g = yes; then
 
2493
  if test "$GCC" = yes; then
 
2494
    CFLAGS="-g -O2"
 
2495
  else
 
2496
    CFLAGS="-g"
 
2497
  fi
 
2498
else
 
2499
  if test "$GCC" = yes; then
 
2500
    CFLAGS="-O2"
 
2501
  else
 
2502
    CFLAGS=
 
2503
  fi
 
2504
fi
 
2505
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2506
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2507
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2508
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2509
else
 
2510
  ac_cv_prog_cc_stdc=no
 
2511
ac_save_CC=$CC
 
2512
cat >conftest.$ac_ext <<_ACEOF
 
2513
#line $LINENO "configure"
 
2514
/* confdefs.h.  */
 
2515
_ACEOF
 
2516
cat confdefs.h >>conftest.$ac_ext
 
2517
cat >>conftest.$ac_ext <<_ACEOF
 
2518
/* end confdefs.h.  */
 
2519
#include <stdarg.h>
 
2520
#include <stdio.h>
 
2521
#include <sys/types.h>
 
2522
#include <sys/stat.h>
 
2523
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2524
struct buf { int x; };
 
2525
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2526
static char *e (p, i)
 
2527
     char **p;
 
2528
     int i;
 
2529
{
 
2530
  return p[i];
 
2531
}
 
2532
static char *f (char * (*g) (char **, int), char **p, ...)
 
2533
{
 
2534
  char *s;
 
2535
  va_list v;
 
2536
  va_start (v,p);
 
2537
  s = g (p, va_arg (v,int));
 
2538
  va_end (v);
 
2539
  return s;
 
2540
}
 
2541
int test (int i, double x);
 
2542
struct s1 {int (*f) (int a);};
 
2543
struct s2 {int (*f) (double a);};
 
2544
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2545
int argc;
 
2546
char **argv;
 
2547
int
 
2548
main ()
 
2549
{
 
2550
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2551
  ;
 
2552
  return 0;
 
2553
}
 
2554
_ACEOF
 
2555
# Don't try gcc -ansi; that turns off useful extensions and
 
2556
# breaks some systems' header files.
 
2557
# AIX                   -qlanglvl=ansi
 
2558
# Ultrix and OSF/1      -std1
 
2559
# HP-UX 10.20 and later -Ae
 
2560
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2561
# SVR4                  -Xc -D__EXTENSIONS__
 
2562
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2563
do
 
2564
  CC="$ac_save_CC $ac_arg"
 
2565
  rm -f conftest.$ac_objext
 
2566
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2567
  (eval $ac_compile) 2>&5
 
2568
  ac_status=$?
 
2569
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2570
  (exit $ac_status); } &&
 
2571
         { ac_try='test -s conftest.$ac_objext'
 
2572
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2573
  (eval $ac_try) 2>&5
 
2574
  ac_status=$?
 
2575
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2576
  (exit $ac_status); }; }; then
 
2577
  ac_cv_prog_cc_stdc=$ac_arg
 
2578
break
 
2579
else
 
2580
  echo "$as_me: failed program was:" >&5
 
2581
sed 's/^/| /' conftest.$ac_ext >&5
 
2582
 
 
2583
fi
 
2584
rm -f conftest.$ac_objext
 
2585
done
 
2586
rm -f conftest.$ac_ext conftest.$ac_objext
 
2587
CC=$ac_save_CC
 
2588
 
 
2589
fi
 
2590
 
 
2591
case "x$ac_cv_prog_cc_stdc" in
 
2592
  x|xno)
 
2593
    echo "$as_me:$LINENO: result: none needed" >&5
 
2594
echo "${ECHO_T}none needed" >&6 ;;
 
2595
  *)
 
2596
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2597
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2598
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2599
esac
 
2600
 
 
2601
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2602
# in C++ we need to declare it.  In case someone uses the same compiler
 
2603
# for both compiling C and C++ we need to have the C++ compiler decide
 
2604
# the declaration of exit, since it's the most demanding environment.
 
2605
cat >conftest.$ac_ext <<_ACEOF
 
2606
#ifndef __cplusplus
 
2607
  choke me
 
2608
#endif
 
2609
_ACEOF
 
2610
rm -f conftest.$ac_objext
 
2611
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2612
  (eval $ac_compile) 2>&5
 
2613
  ac_status=$?
 
2614
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2615
  (exit $ac_status); } &&
 
2616
         { ac_try='test -s conftest.$ac_objext'
 
2617
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2618
  (eval $ac_try) 2>&5
 
2619
  ac_status=$?
 
2620
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2621
  (exit $ac_status); }; }; then
 
2622
  for ac_declaration in \
 
2623
   '' \
 
2624
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2625
   'extern "C" void std::exit (int); using std::exit;' \
 
2626
   'extern "C" void exit (int) throw ();' \
 
2627
   'extern "C" void exit (int);' \
 
2628
   'void exit (int);'
 
2629
do
 
2630
  cat >conftest.$ac_ext <<_ACEOF
 
2631
#line $LINENO "configure"
 
2632
/* confdefs.h.  */
 
2633
_ACEOF
 
2634
cat confdefs.h >>conftest.$ac_ext
 
2635
cat >>conftest.$ac_ext <<_ACEOF
 
2636
/* end confdefs.h.  */
 
2637
$ac_declaration
 
2638
#include <stdlib.h>
 
2639
int
 
2640
main ()
 
2641
{
 
2642
exit (42);
 
2643
  ;
 
2644
  return 0;
 
2645
}
 
2646
_ACEOF
 
2647
rm -f conftest.$ac_objext
 
2648
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2649
  (eval $ac_compile) 2>&5
 
2650
  ac_status=$?
 
2651
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2652
  (exit $ac_status); } &&
 
2653
         { ac_try='test -s conftest.$ac_objext'
 
2654
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2655
  (eval $ac_try) 2>&5
 
2656
  ac_status=$?
 
2657
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2658
  (exit $ac_status); }; }; then
 
2659
  :
 
2660
else
 
2661
  echo "$as_me: failed program was:" >&5
 
2662
sed 's/^/| /' conftest.$ac_ext >&5
 
2663
 
 
2664
continue
 
2665
fi
 
2666
rm -f conftest.$ac_objext conftest.$ac_ext
 
2667
  cat >conftest.$ac_ext <<_ACEOF
 
2668
#line $LINENO "configure"
 
2669
/* confdefs.h.  */
 
2670
_ACEOF
 
2671
cat confdefs.h >>conftest.$ac_ext
 
2672
cat >>conftest.$ac_ext <<_ACEOF
 
2673
/* end confdefs.h.  */
 
2674
$ac_declaration
 
2675
int
 
2676
main ()
 
2677
{
 
2678
exit (42);
 
2679
  ;
 
2680
  return 0;
 
2681
}
 
2682
_ACEOF
 
2683
rm -f conftest.$ac_objext
 
2684
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2685
  (eval $ac_compile) 2>&5
 
2686
  ac_status=$?
 
2687
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2688
  (exit $ac_status); } &&
 
2689
         { ac_try='test -s conftest.$ac_objext'
 
2690
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2691
  (eval $ac_try) 2>&5
 
2692
  ac_status=$?
 
2693
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2694
  (exit $ac_status); }; }; then
 
2695
  break
 
2696
else
 
2697
  echo "$as_me: failed program was:" >&5
 
2698
sed 's/^/| /' conftest.$ac_ext >&5
 
2699
 
 
2700
fi
 
2701
rm -f conftest.$ac_objext conftest.$ac_ext
 
2702
done
 
2703
rm -f conftest*
 
2704
if test -n "$ac_declaration"; then
 
2705
  echo '#ifdef __cplusplus' >>confdefs.h
 
2706
  echo $ac_declaration      >>confdefs.h
 
2707
  echo '#endif'             >>confdefs.h
 
2708
fi
 
2709
 
 
2710
else
 
2711
  echo "$as_me: failed program was:" >&5
 
2712
sed 's/^/| /' conftest.$ac_ext >&5
 
2713
 
 
2714
fi
 
2715
rm -f conftest.$ac_objext conftest.$ac_ext
 
2716
ac_ext=c
 
2717
ac_cpp='$CPP $CPPFLAGS'
 
2718
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2719
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2720
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2721
DEPDIR="${am__leading_dot}deps"
 
2722
 
 
2723
          ac_config_commands="$ac_config_commands depfiles"
 
2724
 
 
2725
 
 
2726
am_make=${MAKE-make}
 
2727
cat > confinc << 'END'
 
2728
am__doit:
 
2729
        @echo done
 
2730
.PHONY: am__doit
 
2731
END
 
2732
# If we don't find an include directive, just comment out the code.
 
2733
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2734
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
2735
am__include="#"
 
2736
am__quote=
 
2737
_am_result=none
 
2738
# First try GNU make style include.
 
2739
echo "include confinc" > confmf
 
2740
# We grep out `Entering directory' and `Leaving directory'
 
2741
# messages which can occur if `w' ends up in MAKEFLAGS.
 
2742
# In particular we don't look at `^make:' because GNU make might
 
2743
# be invoked under some other name (usually "gmake"), in which
 
2744
# case it prints its new name instead of `make'.
 
2745
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
2746
   am__include=include
 
2747
   am__quote=
 
2748
   _am_result=GNU
 
2749
fi
 
2750
# Now try BSD make style include.
 
2751
if test "$am__include" = "#"; then
 
2752
   echo '.include "confinc"' > confmf
 
2753
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
2754
      am__include=.include
 
2755
      am__quote="\""
 
2756
      _am_result=BSD
 
2757
   fi
 
2758
fi
 
2759
 
 
2760
 
 
2761
echo "$as_me:$LINENO: result: $_am_result" >&5
 
2762
echo "${ECHO_T}$_am_result" >&6
 
2763
rm -f confinc confmf
 
2764
 
 
2765
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
2766
if test "${enable_dependency_tracking+set}" = set; then
 
2767
  enableval="$enable_dependency_tracking"
 
2768
 
 
2769
fi;
 
2770
if test "x$enable_dependency_tracking" != xno; then
 
2771
  am_depcomp="$ac_aux_dir/depcomp"
 
2772
  AMDEPBACKSLASH='\'
 
2773
fi
 
2774
 
 
2775
 
 
2776
if test "x$enable_dependency_tracking" != xno; then
 
2777
  AMDEP_TRUE=
 
2778
  AMDEP_FALSE='#'
 
2779
else
 
2780
  AMDEP_TRUE='#'
 
2781
  AMDEP_FALSE=
 
2782
fi
 
2783
 
 
2784
 
 
2785
 
 
2786
 
 
2787
depcc="$CC"   am_compiler_list=
 
2788
 
 
2789
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
2790
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
2791
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
2792
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2793
else
 
2794
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
2795
  # We make a subdir and do the tests there.  Otherwise we can end up
 
2796
  # making bogus files that we don't know about and never remove.  For
 
2797
  # instance it was reported that on HP-UX the gcc test will end up
 
2798
  # making a dummy file named `D' -- because `-MD' means `put the output
 
2799
  # in D'.
 
2800
  mkdir conftest.dir
 
2801
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
2802
  # using a relative directory.
 
2803
  cp "$am_depcomp" conftest.dir
 
2804
  cd conftest.dir
 
2805
  # We will build objects and dependencies in a subdirectory because
 
2806
  # it helps to detect inapplicable dependency modes.  For instance
 
2807
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
2808
  # side effect of compilation, but ICC will put the dependencies in
 
2809
  # the current directory while Tru64 will put them in the object
 
2810
  # directory.
 
2811
  mkdir sub
 
2812
 
 
2813
  am_cv_CC_dependencies_compiler_type=none
 
2814
  if test "$am_compiler_list" = ""; then
 
2815
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
2816
  fi
 
2817
  for depmode in $am_compiler_list; do
 
2818
    # Setup a source with many dependencies, because some compilers
 
2819
    # like to wrap large dependency lists on column 80 (with \), and
 
2820
    # we should not choose a depcomp mode which is confused by this.
 
2821
    #
 
2822
    # We need to recreate these files for each test, as the compiler may
 
2823
    # overwrite some of them when testing with obscure command lines.
 
2824
    # This happens at least with the AIX C compiler.
 
2825
    : > sub/conftest.c
 
2826
    for i in 1 2 3 4 5 6; do
 
2827
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
2828
      : > sub/conftst$i.h
 
2829
    done
 
2830
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
2831
 
 
2832
    case $depmode in
 
2833
    nosideeffect)
 
2834
      # after this tag, mechanisms are not by side-effect, so they'll
 
2835
      # only be used when explicitly requested
 
2836
      if test "x$enable_dependency_tracking" = xyes; then
 
2837
        continue
 
2838
      else
 
2839
        break
 
2840
      fi
 
2841
      ;;
 
2842
    none) break ;;
 
2843
    esac
 
2844
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
2845
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
2846
    # handle `-M -o', and we need to detect this.
 
2847
    if depmode=$depmode \
 
2848
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
2849
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
2850
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
2851
         >/dev/null 2>conftest.err &&
 
2852
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
2853
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
2854
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
2855
      # icc doesn't choke on unknown options, it will just issue warnings
 
2856
      # (even with -Werror).  So we grep stderr for any message
 
2857
      # that says an option was ignored.
 
2858
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
2859
        am_cv_CC_dependencies_compiler_type=$depmode
 
2860
        break
 
2861
      fi
 
2862
    fi
 
2863
  done
 
2864
 
 
2865
  cd ..
 
2866
  rm -rf conftest.dir
 
2867
else
 
2868
  am_cv_CC_dependencies_compiler_type=none
 
2869
fi
 
2870
 
 
2871
fi
 
2872
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
2873
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
2874
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
2875
 
 
2876
 
 
2877
 
 
2878
if
 
2879
  test "x$enable_dependency_tracking" != xno \
 
2880
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
2881
  am__fastdepCC_TRUE=
 
2882
  am__fastdepCC_FALSE='#'
 
2883
else
 
2884
  am__fastdepCC_TRUE='#'
 
2885
  am__fastdepCC_FALSE=
 
2886
fi
 
2887
 
 
2888
 
 
2889
ac_ext=cc
 
2890
ac_cpp='$CXXCPP $CPPFLAGS'
 
2891
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2892
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2893
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
2894
if test -n "$ac_tool_prefix"; then
 
2895
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
2896
  do
 
2897
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2898
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2899
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2900
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2901
if test "${ac_cv_prog_CXX+set}" = set; then
 
2902
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2903
else
 
2904
  if test -n "$CXX"; then
 
2905
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
2906
else
 
2907
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2908
for as_dir in $PATH
 
2909
do
 
2910
  IFS=$as_save_IFS
 
2911
  test -z "$as_dir" && as_dir=.
 
2912
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2913
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2914
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
2915
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2916
    break 2
 
2917
  fi
 
2918
done
 
2919
done
 
2920
 
 
2921
fi
 
2922
fi
 
2923
CXX=$ac_cv_prog_CXX
 
2924
if test -n "$CXX"; then
 
2925
  echo "$as_me:$LINENO: result: $CXX" >&5
 
2926
echo "${ECHO_T}$CXX" >&6
 
2927
else
 
2928
  echo "$as_me:$LINENO: result: no" >&5
 
2929
echo "${ECHO_T}no" >&6
 
2930
fi
 
2931
 
 
2932
    test -n "$CXX" && break
 
2933
  done
 
2934
fi
 
2935
if test -z "$CXX"; then
 
2936
  ac_ct_CXX=$CXX
 
2937
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
2938
do
 
2939
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2940
set dummy $ac_prog; ac_word=$2
 
2941
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2942
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2943
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
2944
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2945
else
 
2946
  if test -n "$ac_ct_CXX"; then
 
2947
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
2948
else
 
2949
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2950
for as_dir in $PATH
 
2951
do
 
2952
  IFS=$as_save_IFS
 
2953
  test -z "$as_dir" && as_dir=.
 
2954
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2955
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2956
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
2957
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2958
    break 2
 
2959
  fi
 
2960
done
 
2961
done
 
2962
 
 
2963
fi
 
2964
fi
 
2965
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
2966
if test -n "$ac_ct_CXX"; then
 
2967
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
2968
echo "${ECHO_T}$ac_ct_CXX" >&6
 
2969
else
 
2970
  echo "$as_me:$LINENO: result: no" >&5
 
2971
echo "${ECHO_T}no" >&6
 
2972
fi
 
2973
 
 
2974
  test -n "$ac_ct_CXX" && break
 
2975
done
 
2976
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
2977
 
 
2978
  CXX=$ac_ct_CXX
 
2979
fi
 
2980
 
 
2981
 
 
2982
# Provide some information about the compiler.
 
2983
echo "$as_me:$LINENO:" \
 
2984
     "checking for C++ compiler version" >&5
 
2985
ac_compiler=`set X $ac_compile; echo $2`
 
2986
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2987
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2988
  ac_status=$?
 
2989
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2990
  (exit $ac_status); }
 
2991
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2992
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2993
  ac_status=$?
 
2994
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2995
  (exit $ac_status); }
 
2996
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2997
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2998
  ac_status=$?
 
2999
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3000
  (exit $ac_status); }
 
3001
 
 
3002
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
3003
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
3004
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
3005
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3006
else
 
3007
  cat >conftest.$ac_ext <<_ACEOF
 
3008
#line $LINENO "configure"
 
3009
/* confdefs.h.  */
 
3010
_ACEOF
 
3011
cat confdefs.h >>conftest.$ac_ext
 
3012
cat >>conftest.$ac_ext <<_ACEOF
 
3013
/* end confdefs.h.  */
 
3014
 
 
3015
int
 
3016
main ()
 
3017
{
 
3018
#ifndef __GNUC__
 
3019
       choke me
 
3020
#endif
 
3021
 
 
3022
  ;
 
3023
  return 0;
 
3024
}
 
3025
_ACEOF
 
3026
rm -f conftest.$ac_objext
 
3027
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3028
  (eval $ac_compile) 2>&5
 
3029
  ac_status=$?
 
3030
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3031
  (exit $ac_status); } &&
 
3032
         { ac_try='test -s conftest.$ac_objext'
 
3033
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3034
  (eval $ac_try) 2>&5
 
3035
  ac_status=$?
 
3036
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3037
  (exit $ac_status); }; }; then
 
3038
  ac_compiler_gnu=yes
 
3039
else
 
3040
  echo "$as_me: failed program was:" >&5
 
3041
sed 's/^/| /' conftest.$ac_ext >&5
 
3042
 
 
3043
ac_compiler_gnu=no
 
3044
fi
 
3045
rm -f conftest.$ac_objext conftest.$ac_ext
 
3046
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
3047
 
 
3048
fi
 
3049
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
3050
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
3051
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
3052
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
3053
ac_save_CXXFLAGS=$CXXFLAGS
 
3054
CXXFLAGS="-g"
 
3055
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
3056
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
3057
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
3058
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3059
else
 
3060
  cat >conftest.$ac_ext <<_ACEOF
 
3061
#line $LINENO "configure"
 
3062
/* confdefs.h.  */
 
3063
_ACEOF
 
3064
cat confdefs.h >>conftest.$ac_ext
 
3065
cat >>conftest.$ac_ext <<_ACEOF
 
3066
/* end confdefs.h.  */
 
3067
 
 
3068
int
 
3069
main ()
 
3070
{
 
3071
 
 
3072
  ;
 
3073
  return 0;
 
3074
}
 
3075
_ACEOF
 
3076
rm -f conftest.$ac_objext
 
3077
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3078
  (eval $ac_compile) 2>&5
 
3079
  ac_status=$?
 
3080
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3081
  (exit $ac_status); } &&
 
3082
         { ac_try='test -s conftest.$ac_objext'
 
3083
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3084
  (eval $ac_try) 2>&5
 
3085
  ac_status=$?
 
3086
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3087
  (exit $ac_status); }; }; then
 
3088
  ac_cv_prog_cxx_g=yes
 
3089
else
 
3090
  echo "$as_me: failed program was:" >&5
 
3091
sed 's/^/| /' conftest.$ac_ext >&5
 
3092
 
 
3093
ac_cv_prog_cxx_g=no
 
3094
fi
 
3095
rm -f conftest.$ac_objext conftest.$ac_ext
 
3096
fi
 
3097
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
3098
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
3099
if test "$ac_test_CXXFLAGS" = set; then
 
3100
  CXXFLAGS=$ac_save_CXXFLAGS
 
3101
elif test $ac_cv_prog_cxx_g = yes; then
 
3102
  if test "$GXX" = yes; then
 
3103
    CXXFLAGS="-g -O2"
 
3104
  else
 
3105
    CXXFLAGS="-g"
 
3106
  fi
 
3107
else
 
3108
  if test "$GXX" = yes; then
 
3109
    CXXFLAGS="-O2"
 
3110
  else
 
3111
    CXXFLAGS=
 
3112
  fi
 
3113
fi
 
3114
for ac_declaration in \
 
3115
   '' \
 
3116
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
3117
   'extern "C" void std::exit (int); using std::exit;' \
 
3118
   'extern "C" void exit (int) throw ();' \
 
3119
   'extern "C" void exit (int);' \
 
3120
   'void exit (int);'
 
3121
do
 
3122
  cat >conftest.$ac_ext <<_ACEOF
 
3123
#line $LINENO "configure"
 
3124
/* confdefs.h.  */
 
3125
_ACEOF
 
3126
cat confdefs.h >>conftest.$ac_ext
 
3127
cat >>conftest.$ac_ext <<_ACEOF
 
3128
/* end confdefs.h.  */
 
3129
$ac_declaration
 
3130
#include <stdlib.h>
 
3131
int
 
3132
main ()
 
3133
{
 
3134
exit (42);
 
3135
  ;
 
3136
  return 0;
 
3137
}
 
3138
_ACEOF
 
3139
rm -f conftest.$ac_objext
 
3140
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3141
  (eval $ac_compile) 2>&5
 
3142
  ac_status=$?
 
3143
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3144
  (exit $ac_status); } &&
 
3145
         { ac_try='test -s conftest.$ac_objext'
 
3146
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3147
  (eval $ac_try) 2>&5
 
3148
  ac_status=$?
 
3149
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3150
  (exit $ac_status); }; }; then
 
3151
  :
 
3152
else
 
3153
  echo "$as_me: failed program was:" >&5
 
3154
sed 's/^/| /' conftest.$ac_ext >&5
 
3155
 
 
3156
continue
 
3157
fi
 
3158
rm -f conftest.$ac_objext conftest.$ac_ext
 
3159
  cat >conftest.$ac_ext <<_ACEOF
 
3160
#line $LINENO "configure"
 
3161
/* confdefs.h.  */
 
3162
_ACEOF
 
3163
cat confdefs.h >>conftest.$ac_ext
 
3164
cat >>conftest.$ac_ext <<_ACEOF
 
3165
/* end confdefs.h.  */
 
3166
$ac_declaration
 
3167
int
 
3168
main ()
 
3169
{
 
3170
exit (42);
 
3171
  ;
 
3172
  return 0;
 
3173
}
 
3174
_ACEOF
 
3175
rm -f conftest.$ac_objext
 
3176
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3177
  (eval $ac_compile) 2>&5
 
3178
  ac_status=$?
 
3179
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3180
  (exit $ac_status); } &&
 
3181
         { ac_try='test -s conftest.$ac_objext'
 
3182
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3183
  (eval $ac_try) 2>&5
 
3184
  ac_status=$?
 
3185
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3186
  (exit $ac_status); }; }; then
 
3187
  break
 
3188
else
 
3189
  echo "$as_me: failed program was:" >&5
 
3190
sed 's/^/| /' conftest.$ac_ext >&5
 
3191
 
 
3192
fi
 
3193
rm -f conftest.$ac_objext conftest.$ac_ext
 
3194
done
 
3195
rm -f conftest*
 
3196
if test -n "$ac_declaration"; then
 
3197
  echo '#ifdef __cplusplus' >>confdefs.h
 
3198
  echo $ac_declaration      >>confdefs.h
 
3199
  echo '#endif'             >>confdefs.h
 
3200
fi
 
3201
 
 
3202
ac_ext=c
 
3203
ac_cpp='$CPP $CPPFLAGS'
 
3204
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3205
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3206
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3207
 
 
3208
depcc="$CXX"  am_compiler_list=
 
3209
 
 
3210
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3211
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
3212
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
3213
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3214
else
 
3215
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3216
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3217
  # making bogus files that we don't know about and never remove.  For
 
3218
  # instance it was reported that on HP-UX the gcc test will end up
 
3219
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3220
  # in D'.
 
3221
  mkdir conftest.dir
 
3222
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3223
  # using a relative directory.
 
3224
  cp "$am_depcomp" conftest.dir
 
3225
  cd conftest.dir
 
3226
  # We will build objects and dependencies in a subdirectory because
 
3227
  # it helps to detect inapplicable dependency modes.  For instance
 
3228
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3229
  # side effect of compilation, but ICC will put the dependencies in
 
3230
  # the current directory while Tru64 will put them in the object
 
3231
  # directory.
 
3232
  mkdir sub
 
3233
 
 
3234
  am_cv_CXX_dependencies_compiler_type=none
 
3235
  if test "$am_compiler_list" = ""; then
 
3236
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3237
  fi
 
3238
  for depmode in $am_compiler_list; do
 
3239
    # Setup a source with many dependencies, because some compilers
 
3240
    # like to wrap large dependency lists on column 80 (with \), and
 
3241
    # we should not choose a depcomp mode which is confused by this.
 
3242
    #
 
3243
    # We need to recreate these files for each test, as the compiler may
 
3244
    # overwrite some of them when testing with obscure command lines.
 
3245
    # This happens at least with the AIX C compiler.
 
3246
    : > sub/conftest.c
 
3247
    for i in 1 2 3 4 5 6; do
 
3248
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3249
      : > sub/conftst$i.h
 
3250
    done
 
3251
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3252
 
 
3253
    case $depmode in
 
3254
    nosideeffect)
 
3255
      # after this tag, mechanisms are not by side-effect, so they'll
 
3256
      # only be used when explicitly requested
 
3257
      if test "x$enable_dependency_tracking" = xyes; then
 
3258
        continue
 
3259
      else
 
3260
        break
 
3261
      fi
 
3262
      ;;
 
3263
    none) break ;;
 
3264
    esac
 
3265
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3266
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3267
    # handle `-M -o', and we need to detect this.
 
3268
    if depmode=$depmode \
 
3269
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3270
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3271
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3272
         >/dev/null 2>conftest.err &&
 
3273
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3274
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3275
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3276
      # icc doesn't choke on unknown options, it will just issue warnings
 
3277
      # (even with -Werror).  So we grep stderr for any message
 
3278
      # that says an option was ignored.
 
3279
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
3280
        am_cv_CXX_dependencies_compiler_type=$depmode
 
3281
        break
 
3282
      fi
 
3283
    fi
 
3284
  done
 
3285
 
 
3286
  cd ..
 
3287
  rm -rf conftest.dir
 
3288
else
 
3289
  am_cv_CXX_dependencies_compiler_type=none
 
3290
fi
 
3291
 
 
3292
fi
 
3293
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
3294
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
 
3295
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
3296
 
 
3297
 
 
3298
 
 
3299
if
 
3300
  test "x$enable_dependency_tracking" != xno \
 
3301
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
3302
  am__fastdepCXX_TRUE=
 
3303
  am__fastdepCXX_FALSE='#'
 
3304
else
 
3305
  am__fastdepCXX_TRUE='#'
 
3306
  am__fastdepCXX_FALSE=
 
3307
fi
 
3308
 
 
3309
 
 
3310
# Find a good install program.  We prefer a C program (faster),
 
3311
# so one script is as good as another.  But avoid the broken or
 
3312
# incompatible versions:
 
3313
# SysV /etc/install, /usr/sbin/install
 
3314
# SunOS /usr/etc/install
 
3315
# IRIX /sbin/install
 
3316
# AIX /bin/install
 
3317
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
3318
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
3319
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
3320
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
3321
# ./install, which can be erroneously created by make from ./install.sh.
 
3322
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
3323
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
3324
if test -z "$INSTALL"; then
 
3325
if test "${ac_cv_path_install+set}" = set; then
 
3326
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3327
else
 
3328
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3329
for as_dir in $PATH
 
3330
do
 
3331
  IFS=$as_save_IFS
 
3332
  test -z "$as_dir" && as_dir=.
 
3333
  # Account for people who put trailing slashes in PATH elements.
 
3334
case $as_dir/ in
 
3335
  ./ | .// | /cC/* | \
 
3336
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
3337
  /usr/ucb/* ) ;;
 
3338
  *)
 
3339
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
3340
    # Don't use installbsd from OSF since it installs stuff as root
 
3341
    # by default.
 
3342
    for ac_prog in ginstall scoinst install; do
 
3343
      for ac_exec_ext in '' $ac_executable_extensions; do
 
3344
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
3345
          if test $ac_prog = install &&
 
3346
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3347
            # AIX install.  It has an incompatible calling convention.
 
3348
            :
 
3349
          elif test $ac_prog = install &&
 
3350
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3351
            # program-specific install script used by HP pwplus--don't use.
 
3352
            :
 
3353
          else
 
3354
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
3355
            break 3
 
3356
          fi
 
3357
        fi
 
3358
      done
 
3359
    done
 
3360
    ;;
 
3361
esac
 
3362
done
 
3363
 
 
3364
 
 
3365
fi
 
3366
  if test "${ac_cv_path_install+set}" = set; then
 
3367
    INSTALL=$ac_cv_path_install
 
3368
  else
 
3369
    # As a last resort, use the slow shell script.  We don't cache a
 
3370
    # path for INSTALL within a source directory, because that will
 
3371
    # break other packages using the cache if that directory is
 
3372
    # removed, or if the path is relative.
 
3373
    INSTALL=$ac_install_sh
 
3374
  fi
 
3375
fi
 
3376
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
3377
echo "${ECHO_T}$INSTALL" >&6
 
3378
 
 
3379
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
3380
# It thinks the first close brace ends the variable substitution.
 
3381
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
3382
 
 
3383
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
3384
 
 
3385
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
3386
 
 
3387
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
3388
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
3389
LN_S=$as_ln_s
 
3390
if test "$LN_S" = "ln -s"; then
 
3391
  echo "$as_me:$LINENO: result: yes" >&5
 
3392
echo "${ECHO_T}yes" >&6
 
3393
else
 
3394
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
3395
echo "${ECHO_T}no, using $LN_S" >&6
 
3396
fi
 
3397
 
 
3398
if test -n "$ac_tool_prefix"; then
 
3399
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
3400
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
3401
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3402
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3403
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
3404
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3405
else
 
3406
  if test -n "$RANLIB"; then
 
3407
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
3408
else
 
3409
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3410
for as_dir in $PATH
 
3411
do
 
3412
  IFS=$as_save_IFS
 
3413
  test -z "$as_dir" && as_dir=.
 
3414
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3415
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3416
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
3417
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3418
    break 2
 
3419
  fi
 
3420
done
 
3421
done
 
3422
 
 
3423
fi
 
3424
fi
 
3425
RANLIB=$ac_cv_prog_RANLIB
 
3426
if test -n "$RANLIB"; then
 
3427
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
3428
echo "${ECHO_T}$RANLIB" >&6
 
3429
else
 
3430
  echo "$as_me:$LINENO: result: no" >&5
 
3431
echo "${ECHO_T}no" >&6
 
3432
fi
 
3433
 
 
3434
fi
 
3435
if test -z "$ac_cv_prog_RANLIB"; then
 
3436
  ac_ct_RANLIB=$RANLIB
 
3437
  # Extract the first word of "ranlib", so it can be a program name with args.
 
3438
set dummy ranlib; ac_word=$2
 
3439
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3440
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3441
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
3442
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3443
else
 
3444
  if test -n "$ac_ct_RANLIB"; then
 
3445
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
3446
else
 
3447
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3448
for as_dir in $PATH
 
3449
do
 
3450
  IFS=$as_save_IFS
 
3451
  test -z "$as_dir" && as_dir=.
 
3452
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3453
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3454
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
3455
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3456
    break 2
 
3457
  fi
 
3458
done
 
3459
done
 
3460
 
 
3461
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
3462
fi
 
3463
fi
 
3464
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
3465
if test -n "$ac_ct_RANLIB"; then
 
3466
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
3467
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
3468
else
 
3469
  echo "$as_me:$LINENO: result: no" >&5
 
3470
echo "${ECHO_T}no" >&6
 
3471
fi
 
3472
 
 
3473
  RANLIB=$ac_ct_RANLIB
 
3474
else
 
3475
  RANLIB="$ac_cv_prog_RANLIB"
 
3476
fi
 
3477
 
 
3478
 
 
3479
OPTION_OSS="no"
 
3480
OPTION_ALSA="no"
 
3481
OPTION_JACK="no"
 
3482
OPTION_SOX="no"
 
3483
OPTION_MPG123="no"
 
3484
OPTION_MAD="no"
 
3485
OPTION_OGG123="no"
 
3486
OPTION_VORBIS="no"
 
3487
OPTION_AUDIOFILE="no"
 
3488
OPTION_WAV="no"
 
3489
OPTION_GNOME="no"
 
3490
OPTION_SCHEDULER="no"
 
3491
OPTION_ALSAMIDI="no"
 
3492
OPTION_LEGACY="no"
 
3493
OPTION_LRDF="no"
 
3494
OPTION_SUIDROOT="no"
 
3495
OPTION_CAP="no"
 
3496
 
 
3497
 
 
3498
 
 
3499
echo "$as_me:$LINENO: checking for floor in -lm" >&5
 
3500
echo $ECHO_N "checking for floor in -lm... $ECHO_C" >&6
 
3501
if test "${ac_cv_lib_m_floor+set}" = set; then
 
3502
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3503
else
 
3504
  ac_check_lib_save_LIBS=$LIBS
 
3505
LIBS="-lm  $LIBS"
 
3506
cat >conftest.$ac_ext <<_ACEOF
 
3507
#line $LINENO "configure"
 
3508
/* confdefs.h.  */
 
3509
_ACEOF
 
3510
cat confdefs.h >>conftest.$ac_ext
 
3511
cat >>conftest.$ac_ext <<_ACEOF
 
3512
/* end confdefs.h.  */
 
3513
 
 
3514
/* Override any gcc2 internal prototype to avoid an error.  */
 
3515
#ifdef __cplusplus
 
3516
extern "C"
 
3517
#endif
 
3518
/* We use char because int might match the return type of a gcc2
 
3519
   builtin and then its argument prototype would still apply.  */
 
3520
char floor ();
 
3521
int
 
3522
main ()
 
3523
{
 
3524
floor ();
 
3525
  ;
 
3526
  return 0;
 
3527
}
 
3528
_ACEOF
 
3529
rm -f conftest.$ac_objext conftest$ac_exeext
 
3530
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3531
  (eval $ac_link) 2>&5
 
3532
  ac_status=$?
 
3533
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3534
  (exit $ac_status); } &&
 
3535
         { ac_try='test -s conftest$ac_exeext'
 
3536
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3537
  (eval $ac_try) 2>&5
 
3538
  ac_status=$?
 
3539
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3540
  (exit $ac_status); }; }; then
 
3541
  ac_cv_lib_m_floor=yes
 
3542
else
 
3543
  echo "$as_me: failed program was:" >&5
 
3544
sed 's/^/| /' conftest.$ac_ext >&5
 
3545
 
 
3546
ac_cv_lib_m_floor=no
 
3547
fi
 
3548
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3549
LIBS=$ac_check_lib_save_LIBS
 
3550
fi
 
3551
echo "$as_me:$LINENO: result: $ac_cv_lib_m_floor" >&5
 
3552
echo "${ECHO_T}$ac_cv_lib_m_floor" >&6
 
3553
if test $ac_cv_lib_m_floor = yes; then
 
3554
  cat >>confdefs.h <<_ACEOF
 
3555
#define HAVE_LIBM 1
 
3556
_ACEOF
 
3557
 
 
3558
  LIBS="-lm $LIBS"
 
3559
 
 
3560
else
 
3561
  { { echo "$as_me:$LINENO: error: ** math-lib not installed or broken **" >&5
 
3562
echo "$as_me: error: ** math-lib not installed or broken **" >&2;}
 
3563
   { (exit 1); exit 1; }; }
 
3564
fi
 
3565
 
 
3566
 
 
3567
 
 
3568
tX_threads=no
 
3569
 
 
3570
 
 
3571
echo "$as_me:$LINENO: checking whether pthreads works without switches" >&5
 
3572
echo $ECHO_N "checking whether pthreads works without switches... $ECHO_C" >&6
 
3573
        no_threads_flags=no
 
3574
 
 
3575
 
 
3576
        ac_ext=c
 
3577
ac_cpp='$CPP $CPPFLAGS'
 
3578
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3579
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3580
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3581
 
 
3582
        cat >conftest.$ac_ext <<_ACEOF
 
3583
#line $LINENO "configure"
 
3584
/* confdefs.h.  */
 
3585
_ACEOF
 
3586
cat confdefs.h >>conftest.$ac_ext
 
3587
cat >>conftest.$ac_ext <<_ACEOF
 
3588
/* end confdefs.h.  */
 
3589
#include <pthread.h>
 
3590
int
 
3591
main ()
 
3592
{
 
3593
 pthread_t thread; pthread_create(&thread, NULL, NULL, NULL);
 
3594
  ;
 
3595
  return 0;
 
3596
}
 
3597
_ACEOF
 
3598
rm -f conftest.$ac_objext conftest$ac_exeext
 
3599
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3600
  (eval $ac_link) 2>&5
 
3601
  ac_status=$?
 
3602
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3603
  (exit $ac_status); } &&
 
3604
         { ac_try='test -s conftest$ac_exeext'
 
3605
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3606
  (eval $ac_try) 2>&5
 
3607
  ac_status=$?
 
3608
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3609
  (exit $ac_status); }; }; then
 
3610
  no_threads_flags=yes
 
3611
else
 
3612
  echo "$as_me: failed program was:" >&5
 
3613
sed 's/^/| /' conftest.$ac_ext >&5
 
3614
 
 
3615
no_threads_flags=no
 
3616
 
 
3617
fi
 
3618
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3619
        ac_ext=c
 
3620
ac_cpp='$CPP $CPPFLAGS'
 
3621
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3622
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3623
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3624
 
 
3625
echo "$as_me:$LINENO: result: $no_threads_flags" >&5
 
3626
echo "${ECHO_T}$no_threads_flags" >&6
 
3627
 
 
3628
if test "$no_threads_flags" = "yes"; then
 
3629
        tX_threads=auto
 
3630
fi
 
3631
 
 
3632
 
 
3633
if test "$tX_threads" = "no"; then
 
3634
        pthread_lib=no
 
3635
        echo "$as_me:$LINENO: checking for pthread_detach in -lpthread" >&5
 
3636
echo $ECHO_N "checking for pthread_detach in -lpthread... $ECHO_C" >&6
 
3637
if test "${ac_cv_lib_pthread_pthread_detach+set}" = set; then
 
3638
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3639
else
 
3640
  ac_check_lib_save_LIBS=$LIBS
 
3641
LIBS="-lpthread  $LIBS"
 
3642
cat >conftest.$ac_ext <<_ACEOF
 
3643
#line $LINENO "configure"
 
3644
/* confdefs.h.  */
 
3645
_ACEOF
 
3646
cat confdefs.h >>conftest.$ac_ext
 
3647
cat >>conftest.$ac_ext <<_ACEOF
 
3648
/* end confdefs.h.  */
 
3649
 
 
3650
/* Override any gcc2 internal prototype to avoid an error.  */
 
3651
#ifdef __cplusplus
 
3652
extern "C"
 
3653
#endif
 
3654
/* We use char because int might match the return type of a gcc2
 
3655
   builtin and then its argument prototype would still apply.  */
 
3656
char pthread_detach ();
 
3657
int
 
3658
main ()
 
3659
{
 
3660
pthread_detach ();
 
3661
  ;
 
3662
  return 0;
 
3663
}
 
3664
_ACEOF
 
3665
rm -f conftest.$ac_objext conftest$ac_exeext
 
3666
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3667
  (eval $ac_link) 2>&5
 
3668
  ac_status=$?
 
3669
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3670
  (exit $ac_status); } &&
 
3671
         { ac_try='test -s conftest$ac_exeext'
 
3672
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3673
  (eval $ac_try) 2>&5
 
3674
  ac_status=$?
 
3675
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3676
  (exit $ac_status); }; }; then
 
3677
  ac_cv_lib_pthread_pthread_detach=yes
 
3678
else
 
3679
  echo "$as_me: failed program was:" >&5
 
3680
sed 's/^/| /' conftest.$ac_ext >&5
 
3681
 
 
3682
ac_cv_lib_pthread_pthread_detach=no
 
3683
fi
 
3684
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3685
LIBS=$ac_check_lib_save_LIBS
 
3686
fi
 
3687
echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_detach" >&5
 
3688
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_detach" >&6
 
3689
if test $ac_cv_lib_pthread_pthread_detach = yes; then
 
3690
  pthread_lib=yes
 
3691
else
 
3692
  pthread_lib=no
 
3693
fi
 
3694
 
 
3695
 
 
3696
        if test "$pthread_lib" = "yes"; then
 
3697
                tX_threads=lpthread
 
3698
                LIBS="$LIBS -lpthread"
 
3699
        fi
 
3700
fi
 
3701
 
 
3702
 
 
3703
if test "$tX_threads" = "no"; then
 
3704
        echo "$as_me:$LINENO: checking whether -pthread is required for pthreads" >&5
 
3705
echo $ECHO_N "checking whether -pthread is required for pthreads... $ECHO_C" >&6
 
3706
                use_gcc_threads=no
 
3707
                ac_save_CFLAGS=$CFLAGS
 
3708
                CFLAGS="$CFLAGS -pthread"
 
3709
 
 
3710
 
 
3711
                ac_ext=c
 
3712
ac_cpp='$CPP $CPPFLAGS'
 
3713
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3714
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3715
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3716
 
 
3717
                cat >conftest.$ac_ext <<_ACEOF
 
3718
#line $LINENO "configure"
 
3719
/* confdefs.h.  */
 
3720
_ACEOF
 
3721
cat confdefs.h >>conftest.$ac_ext
 
3722
cat >>conftest.$ac_ext <<_ACEOF
 
3723
/* end confdefs.h.  */
 
3724
#include <pthread.h>
 
3725
int
 
3726
main ()
 
3727
{
 
3728
 pthread_t thread; pthread_create(&thread, NULL, NULL, NULL);
 
3729
  ;
 
3730
  return 0;
 
3731
}
 
3732
_ACEOF
 
3733
rm -f conftest.$ac_objext conftest$ac_exeext
 
3734
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3735
  (eval $ac_link) 2>&5
 
3736
  ac_status=$?
 
3737
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3738
  (exit $ac_status); } &&
 
3739
         { ac_try='test -s conftest$ac_exeext'
 
3740
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3741
  (eval $ac_try) 2>&5
 
3742
  ac_status=$?
 
3743
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3744
  (exit $ac_status); }; }; then
 
3745
  use_gcc_threads=yes
 
3746
else
 
3747
  echo "$as_me: failed program was:" >&5
 
3748
sed 's/^/| /' conftest.$ac_ext >&5
 
3749
 
 
3750
use_gcc_threads=no
 
3751
 
 
3752
fi
 
3753
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3754
                ac_ext=c
 
3755
ac_cpp='$CPP $CPPFLAGS'
 
3756
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3757
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3758
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3759
 
 
3760
                CFLAGS=$ac_save_CFLAGS
 
3761
        echo "$as_me:$LINENO: result: $use_gcc_threads" >&5
 
3762
echo "${ECHO_T}$use_gcc_threads" >&6
 
3763
 
 
3764
        if test "$use_gcc_threads" = "yes"; then
 
3765
                tX_threads=gcc
 
3766
                CFLAGS="$CFLAGS -pthread"
 
3767
        fi
 
3768
fi
 
3769
 
 
3770
 
 
3771
if test "$tX_threads" = "no"; then
 
3772
        { { echo "$as_me:$LINENO: error: ** failed to detect pthreads implementation **" >&5
 
3773
echo "$as_me: error: ** failed to detect pthreads implementation **" >&2;}
 
3774
   { (exit 1); exit 1; }; }
 
3775
fi
 
3776
 
 
3777
# Check whether --enable-gtktest or --disable-gtktest was given.
 
3778
if test "${enable_gtktest+set}" = set; then
 
3779
  enableval="$enable_gtktest"
 
3780
 
 
3781
else
 
3782
  enable_gtktest=yes
 
3783
fi;
 
3784
 
 
3785
  pkg_config_args=gtk+-2.0
 
3786
  for module in .
 
3787
  do
 
3788
      case "$module" in
 
3789
         gthread)
 
3790
             pkg_config_args="$pkg_config_args gthread-2.0"
 
3791
         ;;
 
3792
      esac
 
3793
  done
 
3794
 
 
3795
  no_gtk=""
 
3796
 
 
3797
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
3798
set dummy pkg-config; ac_word=$2
 
3799
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3800
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3801
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
3802
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3803
else
 
3804
  case $PKG_CONFIG in
 
3805
  [\\/]* | ?:[\\/]*)
 
3806
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
3807
  ;;
 
3808
  *)
 
3809
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3810
for as_dir in $PATH
 
3811
do
 
3812
  IFS=$as_save_IFS
 
3813
  test -z "$as_dir" && as_dir=.
 
3814
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3815
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3816
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
3817
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3818
    break 2
 
3819
  fi
 
3820
done
 
3821
done
 
3822
 
 
3823
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 
3824
  ;;
 
3825
esac
 
3826
fi
 
3827
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
3828
 
 
3829
if test -n "$PKG_CONFIG"; then
 
3830
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
3831
echo "${ECHO_T}$PKG_CONFIG" >&6
 
3832
else
 
3833
  echo "$as_me:$LINENO: result: no" >&5
 
3834
echo "${ECHO_T}no" >&6
 
3835
fi
 
3836
 
 
3837
 
 
3838
  if test x$PKG_CONFIG != xno ; then
 
3839
    if pkg-config --atleast-pkgconfig-version 0.7 ; then
 
3840
      :
 
3841
    else
 
3842
      echo *** pkg-config too old; version 0.7 or better required.
 
3843
      no_gtk=yes
 
3844
      PKG_CONFIG=no
 
3845
    fi
 
3846
  else
 
3847
    no_gtk=yes
 
3848
  fi
 
3849
 
 
3850
  min_gtk_version=2.0.0
 
3851
  echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
 
3852
echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
 
3853
 
 
3854
  if test x$PKG_CONFIG != xno ; then
 
3855
    ## don't try to run the test against uninstalled libtool libs
 
3856
    if $PKG_CONFIG --uninstalled $pkg_config_args; then
 
3857
          echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
 
3858
          enable_gtktest=no
 
3859
    fi
 
3860
 
 
3861
    if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
 
3862
          :
 
3863
    else
 
3864
          no_gtk=yes
 
3865
    fi
 
3866
  fi
 
3867
 
 
3868
  if test x"$no_gtk" = x ; then
 
3869
    GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
 
3870
    GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
 
3871
    gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
 
3872
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
 
3873
    gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
 
3874
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
 
3875
    gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
 
3876
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
 
3877
    if test "x$enable_gtktest" = "xyes" ; then
 
3878
      ac_save_CFLAGS="$CFLAGS"
 
3879
      ac_save_LIBS="$LIBS"
 
3880
      CFLAGS="$CFLAGS $GTK_CFLAGS"
 
3881
      LIBS="$GTK_LIBS $LIBS"
 
3882
      rm -f conf.gtktest
 
3883
      if test "$cross_compiling" = yes; then
 
3884
  echo $ac_n "cross compiling; assumed OK... $ac_c"
 
3885
else
 
3886
  cat >conftest.$ac_ext <<_ACEOF
 
3887
#line $LINENO "configure"
 
3888
/* confdefs.h.  */
 
3889
_ACEOF
 
3890
cat confdefs.h >>conftest.$ac_ext
 
3891
cat >>conftest.$ac_ext <<_ACEOF
 
3892
/* end confdefs.h.  */
 
3893
 
 
3894
#include <gtk/gtk.h>
 
3895
#include <stdio.h>
 
3896
#include <stdlib.h>
 
3897
 
 
3898
int
 
3899
main ()
 
3900
{
 
3901
  int major, minor, micro;
 
3902
  char *tmp_version;
 
3903
 
 
3904
  system ("touch conf.gtktest");
 
3905
 
 
3906
  /* HP/UX 9 (%@#!) writes to sscanf strings */
 
3907
  tmp_version = g_strdup("$min_gtk_version");
 
3908
  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
 
3909
     printf("%s, bad version string\n", "$min_gtk_version");
 
3910
     exit(1);
 
3911
   }
 
3912
 
 
3913
  if ((gtk_major_version != $gtk_config_major_version) ||
 
3914
      (gtk_minor_version != $gtk_config_minor_version) ||
 
3915
      (gtk_micro_version != $gtk_config_micro_version))
 
3916
    {
 
3917
      printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
 
3918
             $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
 
3919
             gtk_major_version, gtk_minor_version, gtk_micro_version);
 
3920
      printf ("*** was found! If pkg-config was correct, then it is best\n");
 
3921
      printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
 
3922
      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
 
3923
      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
 
3924
      printf("*** required on your system.\n");
 
3925
      printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
 
3926
      printf("*** to point to the correct configuration files\n");
 
3927
    }
 
3928
  else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
 
3929
           (gtk_minor_version != GTK_MINOR_VERSION) ||
 
3930
           (gtk_micro_version != GTK_MICRO_VERSION))
 
3931
    {
 
3932
      printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
 
3933
             GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
 
3934
      printf("*** library (version %d.%d.%d)\n",
 
3935
             gtk_major_version, gtk_minor_version, gtk_micro_version);
 
3936
    }
 
3937
  else
 
3938
    {
 
3939
      if ((gtk_major_version > major) ||
 
3940
        ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
 
3941
        ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
 
3942
      {
 
3943
        return 0;
 
3944
       }
 
3945
     else
 
3946
      {
 
3947
        printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
 
3948
               gtk_major_version, gtk_minor_version, gtk_micro_version);
 
3949
        printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
 
3950
               major, minor, micro);
 
3951
        printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
 
3952
        printf("***\n");
 
3953
        printf("*** If you have already installed a sufficiently new version, this error\n");
 
3954
        printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
 
3955
        printf("*** being found. The easiest way to fix this is to remove the old version\n");
 
3956
        printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
 
3957
        printf("*** correct copy of pkg-config. (In this case, you will have to\n");
 
3958
        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
 
3959
        printf("*** so that the correct libraries are found at run-time))\n");
 
3960
      }
 
3961
    }
 
3962
  return 1;
 
3963
}
 
3964
 
 
3965
_ACEOF
 
3966
rm -f conftest$ac_exeext
 
3967
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3968
  (eval $ac_link) 2>&5
 
3969
  ac_status=$?
 
3970
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3971
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
3972
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3973
  (eval $ac_try) 2>&5
 
3974
  ac_status=$?
 
3975
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3976
  (exit $ac_status); }; }; then
 
3977
  :
 
3978
else
 
3979
  echo "$as_me: program exited with status $ac_status" >&5
 
3980
echo "$as_me: failed program was:" >&5
 
3981
sed 's/^/| /' conftest.$ac_ext >&5
 
3982
 
 
3983
( exit $ac_status )
 
3984
no_gtk=yes
 
3985
fi
 
3986
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
3987
fi
 
3988
       CFLAGS="$ac_save_CFLAGS"
 
3989
       LIBS="$ac_save_LIBS"
 
3990
     fi
 
3991
  fi
 
3992
  if test "x$no_gtk" = x ; then
 
3993
     echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
 
3994
echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
 
3995
 
 
3996
  GTK2_CFLAGS="$GTK_CFLAGS"
 
3997
  GTK2_LIBS="$GTK_LIBS"
 
3998
  gtk2="yes"
 
3999
  GTK2_VERSION="`$PKG_CONFIG --modversion gtk+-2.0`"
 
4000
  else
 
4001
     echo "$as_me:$LINENO: result: no" >&5
 
4002
echo "${ECHO_T}no" >&6
 
4003
     if test "$PKG_CONFIG" = "no" ; then
 
4004
       echo "*** A new enough version of pkg-config was not found."
 
4005
       echo "*** See http://pkgconfig.sourceforge.net"
 
4006
     else
 
4007
       if test -f conf.gtktest ; then
 
4008
        :
 
4009
       else
 
4010
          echo "*** Could not run GTK+ test program, checking why..."
 
4011
          ac_save_CFLAGS="$CFLAGS"
 
4012
          ac_save_LIBS="$LIBS"
 
4013
          CFLAGS="$CFLAGS $GTK_CFLAGS"
 
4014
          LIBS="$LIBS $GTK_LIBS"
 
4015
          cat >conftest.$ac_ext <<_ACEOF
 
4016
#line $LINENO "configure"
 
4017
/* confdefs.h.  */
 
4018
_ACEOF
 
4019
cat confdefs.h >>conftest.$ac_ext
 
4020
cat >>conftest.$ac_ext <<_ACEOF
 
4021
/* end confdefs.h.  */
 
4022
 
 
4023
#include <gtk/gtk.h>
 
4024
#include <stdio.h>
 
4025
 
 
4026
int
 
4027
main ()
 
4028
{
 
4029
 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
 
4030
  ;
 
4031
  return 0;
 
4032
}
 
4033
_ACEOF
 
4034
rm -f conftest.$ac_objext conftest$ac_exeext
 
4035
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4036
  (eval $ac_link) 2>&5
 
4037
  ac_status=$?
 
4038
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4039
  (exit $ac_status); } &&
 
4040
         { ac_try='test -s conftest$ac_exeext'
 
4041
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4042
  (eval $ac_try) 2>&5
 
4043
  ac_status=$?
 
4044
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4045
  (exit $ac_status); }; }; then
 
4046
   echo "*** The test program compiled, but did not run. This usually means"
 
4047
          echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
 
4048
          echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
 
4049
          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
 
4050
          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
 
4051
          echo "*** is required on your system"
 
4052
          echo "***"
 
4053
          echo "*** If you have an old version installed, it is best to remove it, although"
 
4054
          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
 
4055
else
 
4056
  echo "$as_me: failed program was:" >&5
 
4057
sed 's/^/| /' conftest.$ac_ext >&5
 
4058
 
 
4059
 echo "*** The test program failed to compile or link. See the file config.log for the"
 
4060
          echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
 
4061
fi
 
4062
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4063
          CFLAGS="$ac_save_CFLAGS"
 
4064
          LIBS="$ac_save_LIBS"
 
4065
       fi
 
4066
     fi
 
4067
     GTK_CFLAGS=""
 
4068
     GTK_LIBS=""
 
4069
      gtk2="yes"
 
4070
  fi
 
4071
 
 
4072
 
 
4073
  rm -f conf.gtktest
 
4074
 
 
4075
  OPTION_GTK_VERSION="Version 2 - ($GTK2_VERSION)"
 
4076
 
 
4077
if test "$gtk2" = "no"; then
 
4078
        { { echo "$as_me:$LINENO: error: ** couldn't find gtk+ > Version 2. Please upgrade (http://www.gtk.org). **" >&5
 
4079
echo "$as_me: error: ** couldn't find gtk+ > Version 2. Please upgrade (http://www.gtk.org). **" >&2;}
 
4080
   { (exit 1); exit 1; }; }
 
4081
fi
 
4082
 
 
4083
ac_ext=c
 
4084
ac_cpp='$CPP $CPPFLAGS'
 
4085
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4086
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4087
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4088
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
4089
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
4090
# On Suns, sometimes $CPP names a directory.
 
4091
if test -n "$CPP" && test -d "$CPP"; then
 
4092
  CPP=
 
4093
fi
 
4094
if test -z "$CPP"; then
 
4095
  if test "${ac_cv_prog_CPP+set}" = set; then
 
4096
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4097
else
 
4098
      # Double quotes because CPP needs to be expanded
 
4099
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
4100
    do
 
4101
      ac_preproc_ok=false
 
4102
for ac_c_preproc_warn_flag in '' yes
 
4103
do
 
4104
  # Use a header file that comes with gcc, so configuring glibc
 
4105
  # with a fresh cross-compiler works.
 
4106
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4107
  # <limits.h> exists even on freestanding compilers.
 
4108
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4109
  # not just through cpp. "Syntax error" is here to catch this case.
 
4110
  cat >conftest.$ac_ext <<_ACEOF
 
4111
#line $LINENO "configure"
 
4112
/* confdefs.h.  */
 
4113
_ACEOF
 
4114
cat confdefs.h >>conftest.$ac_ext
 
4115
cat >>conftest.$ac_ext <<_ACEOF
 
4116
/* end confdefs.h.  */
 
4117
#ifdef __STDC__
 
4118
# include <limits.h>
 
4119
#else
 
4120
# include <assert.h>
 
4121
#endif
 
4122
                     Syntax error
 
4123
_ACEOF
 
4124
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4125
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4126
  ac_status=$?
 
4127
  grep -v '^ *+' conftest.er1 >conftest.err
 
4128
  rm -f conftest.er1
 
4129
  cat conftest.err >&5
 
4130
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4131
  (exit $ac_status); } >/dev/null; then
 
4132
  if test -s conftest.err; then
 
4133
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4134
  else
 
4135
    ac_cpp_err=
 
4136
  fi
 
4137
else
 
4138
  ac_cpp_err=yes
 
4139
fi
 
4140
if test -z "$ac_cpp_err"; then
 
4141
  :
 
4142
else
 
4143
  echo "$as_me: failed program was:" >&5
 
4144
sed 's/^/| /' conftest.$ac_ext >&5
 
4145
 
 
4146
  # Broken: fails on valid input.
 
4147
continue
 
4148
fi
 
4149
rm -f conftest.err conftest.$ac_ext
 
4150
 
 
4151
  # OK, works on sane cases.  Now check whether non-existent headers
 
4152
  # can be detected and how.
 
4153
  cat >conftest.$ac_ext <<_ACEOF
 
4154
#line $LINENO "configure"
 
4155
/* confdefs.h.  */
 
4156
_ACEOF
 
4157
cat confdefs.h >>conftest.$ac_ext
 
4158
cat >>conftest.$ac_ext <<_ACEOF
 
4159
/* end confdefs.h.  */
 
4160
#include <ac_nonexistent.h>
 
4161
_ACEOF
 
4162
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4163
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4164
  ac_status=$?
 
4165
  grep -v '^ *+' conftest.er1 >conftest.err
 
4166
  rm -f conftest.er1
 
4167
  cat conftest.err >&5
 
4168
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4169
  (exit $ac_status); } >/dev/null; then
 
4170
  if test -s conftest.err; then
 
4171
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4172
  else
 
4173
    ac_cpp_err=
 
4174
  fi
 
4175
else
 
4176
  ac_cpp_err=yes
 
4177
fi
 
4178
if test -z "$ac_cpp_err"; then
 
4179
  # Broken: success on invalid input.
 
4180
continue
 
4181
else
 
4182
  echo "$as_me: failed program was:" >&5
 
4183
sed 's/^/| /' conftest.$ac_ext >&5
 
4184
 
 
4185
  # Passes both tests.
 
4186
ac_preproc_ok=:
 
4187
break
 
4188
fi
 
4189
rm -f conftest.err conftest.$ac_ext
 
4190
 
 
4191
done
 
4192
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4193
rm -f conftest.err conftest.$ac_ext
 
4194
if $ac_preproc_ok; then
 
4195
  break
 
4196
fi
 
4197
 
 
4198
    done
 
4199
    ac_cv_prog_CPP=$CPP
 
4200
 
 
4201
fi
 
4202
  CPP=$ac_cv_prog_CPP
 
4203
else
 
4204
  ac_cv_prog_CPP=$CPP
 
4205
fi
 
4206
echo "$as_me:$LINENO: result: $CPP" >&5
 
4207
echo "${ECHO_T}$CPP" >&6
 
4208
ac_preproc_ok=false
 
4209
for ac_c_preproc_warn_flag in '' yes
 
4210
do
 
4211
  # Use a header file that comes with gcc, so configuring glibc
 
4212
  # with a fresh cross-compiler works.
 
4213
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4214
  # <limits.h> exists even on freestanding compilers.
 
4215
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4216
  # not just through cpp. "Syntax error" is here to catch this case.
 
4217
  cat >conftest.$ac_ext <<_ACEOF
 
4218
#line $LINENO "configure"
 
4219
/* confdefs.h.  */
 
4220
_ACEOF
 
4221
cat confdefs.h >>conftest.$ac_ext
 
4222
cat >>conftest.$ac_ext <<_ACEOF
 
4223
/* end confdefs.h.  */
 
4224
#ifdef __STDC__
 
4225
# include <limits.h>
 
4226
#else
 
4227
# include <assert.h>
 
4228
#endif
 
4229
                     Syntax error
 
4230
_ACEOF
 
4231
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4232
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4233
  ac_status=$?
 
4234
  grep -v '^ *+' conftest.er1 >conftest.err
 
4235
  rm -f conftest.er1
 
4236
  cat conftest.err >&5
 
4237
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4238
  (exit $ac_status); } >/dev/null; then
 
4239
  if test -s conftest.err; then
 
4240
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4241
  else
 
4242
    ac_cpp_err=
 
4243
  fi
 
4244
else
 
4245
  ac_cpp_err=yes
 
4246
fi
 
4247
if test -z "$ac_cpp_err"; then
 
4248
  :
 
4249
else
 
4250
  echo "$as_me: failed program was:" >&5
 
4251
sed 's/^/| /' conftest.$ac_ext >&5
 
4252
 
 
4253
  # Broken: fails on valid input.
 
4254
continue
 
4255
fi
 
4256
rm -f conftest.err conftest.$ac_ext
 
4257
 
 
4258
  # OK, works on sane cases.  Now check whether non-existent headers
 
4259
  # can be detected and how.
 
4260
  cat >conftest.$ac_ext <<_ACEOF
 
4261
#line $LINENO "configure"
 
4262
/* confdefs.h.  */
 
4263
_ACEOF
 
4264
cat confdefs.h >>conftest.$ac_ext
 
4265
cat >>conftest.$ac_ext <<_ACEOF
 
4266
/* end confdefs.h.  */
 
4267
#include <ac_nonexistent.h>
 
4268
_ACEOF
 
4269
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4270
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4271
  ac_status=$?
 
4272
  grep -v '^ *+' conftest.er1 >conftest.err
 
4273
  rm -f conftest.er1
 
4274
  cat conftest.err >&5
 
4275
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4276
  (exit $ac_status); } >/dev/null; then
 
4277
  if test -s conftest.err; then
 
4278
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4279
  else
 
4280
    ac_cpp_err=
 
4281
  fi
 
4282
else
 
4283
  ac_cpp_err=yes
 
4284
fi
 
4285
if test -z "$ac_cpp_err"; then
 
4286
  # Broken: success on invalid input.
 
4287
continue
 
4288
else
 
4289
  echo "$as_me: failed program was:" >&5
 
4290
sed 's/^/| /' conftest.$ac_ext >&5
 
4291
 
 
4292
  # Passes both tests.
 
4293
ac_preproc_ok=:
 
4294
break
 
4295
fi
 
4296
rm -f conftest.err conftest.$ac_ext
 
4297
 
 
4298
done
 
4299
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4300
rm -f conftest.err conftest.$ac_ext
 
4301
if $ac_preproc_ok; then
 
4302
  :
 
4303
else
 
4304
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4305
See \`config.log' for more details." >&5
 
4306
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4307
See \`config.log' for more details." >&2;}
 
4308
   { (exit 1); exit 1; }; }
 
4309
fi
 
4310
 
 
4311
ac_ext=c
 
4312
ac_cpp='$CPP $CPPFLAGS'
 
4313
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4314
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4315
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4316
 
 
4317
 
 
4318
echo "$as_me:$LINENO: checking for egrep" >&5
 
4319
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
4320
if test "${ac_cv_prog_egrep+set}" = set; then
 
4321
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4322
else
 
4323
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
4324
    then ac_cv_prog_egrep='grep -E'
 
4325
    else ac_cv_prog_egrep='egrep'
 
4326
    fi
 
4327
fi
 
4328
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
4329
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
4330
 EGREP=$ac_cv_prog_egrep
 
4331
 
 
4332
 
 
4333
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4334
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
4335
if test "${ac_cv_header_stdc+set}" = set; then
 
4336
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4337
else
 
4338
  cat >conftest.$ac_ext <<_ACEOF
 
4339
#line $LINENO "configure"
 
4340
/* confdefs.h.  */
 
4341
_ACEOF
 
4342
cat confdefs.h >>conftest.$ac_ext
 
4343
cat >>conftest.$ac_ext <<_ACEOF
 
4344
/* end confdefs.h.  */
 
4345
#include <stdlib.h>
 
4346
#include <stdarg.h>
 
4347
#include <string.h>
 
4348
#include <float.h>
 
4349
 
 
4350
int
 
4351
main ()
 
4352
{
 
4353
 
 
4354
  ;
 
4355
  return 0;
 
4356
}
 
4357
_ACEOF
 
4358
rm -f conftest.$ac_objext
 
4359
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4360
  (eval $ac_compile) 2>&5
 
4361
  ac_status=$?
 
4362
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4363
  (exit $ac_status); } &&
 
4364
         { ac_try='test -s conftest.$ac_objext'
 
4365
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4366
  (eval $ac_try) 2>&5
 
4367
  ac_status=$?
 
4368
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4369
  (exit $ac_status); }; }; then
 
4370
  ac_cv_header_stdc=yes
 
4371
else
 
4372
  echo "$as_me: failed program was:" >&5
 
4373
sed 's/^/| /' conftest.$ac_ext >&5
 
4374
 
 
4375
ac_cv_header_stdc=no
 
4376
fi
 
4377
rm -f conftest.$ac_objext conftest.$ac_ext
 
4378
 
 
4379
if test $ac_cv_header_stdc = yes; then
 
4380
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4381
  cat >conftest.$ac_ext <<_ACEOF
 
4382
#line $LINENO "configure"
 
4383
/* confdefs.h.  */
 
4384
_ACEOF
 
4385
cat confdefs.h >>conftest.$ac_ext
 
4386
cat >>conftest.$ac_ext <<_ACEOF
 
4387
/* end confdefs.h.  */
 
4388
#include <string.h>
 
4389
 
 
4390
_ACEOF
 
4391
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4392
  $EGREP "memchr" >/dev/null 2>&1; then
 
4393
  :
 
4394
else
 
4395
  ac_cv_header_stdc=no
 
4396
fi
 
4397
rm -f conftest*
 
4398
 
 
4399
fi
 
4400
 
 
4401
if test $ac_cv_header_stdc = yes; then
 
4402
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4403
  cat >conftest.$ac_ext <<_ACEOF
 
4404
#line $LINENO "configure"
 
4405
/* confdefs.h.  */
 
4406
_ACEOF
 
4407
cat confdefs.h >>conftest.$ac_ext
 
4408
cat >>conftest.$ac_ext <<_ACEOF
 
4409
/* end confdefs.h.  */
 
4410
#include <stdlib.h>
 
4411
 
 
4412
_ACEOF
 
4413
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4414
  $EGREP "free" >/dev/null 2>&1; then
 
4415
  :
 
4416
else
 
4417
  ac_cv_header_stdc=no
 
4418
fi
 
4419
rm -f conftest*
 
4420
 
 
4421
fi
 
4422
 
 
4423
if test $ac_cv_header_stdc = yes; then
 
4424
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4425
  if test "$cross_compiling" = yes; then
 
4426
  :
 
4427
else
 
4428
  cat >conftest.$ac_ext <<_ACEOF
 
4429
#line $LINENO "configure"
 
4430
/* confdefs.h.  */
 
4431
_ACEOF
 
4432
cat confdefs.h >>conftest.$ac_ext
 
4433
cat >>conftest.$ac_ext <<_ACEOF
 
4434
/* end confdefs.h.  */
 
4435
#include <ctype.h>
 
4436
#if ((' ' & 0x0FF) == 0x020)
 
4437
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4438
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4439
#else
 
4440
# define ISLOWER(c) \
 
4441
                   (('a' <= (c) && (c) <= 'i') \
 
4442
                     || ('j' <= (c) && (c) <= 'r') \
 
4443
                     || ('s' <= (c) && (c) <= 'z'))
 
4444
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4445
#endif
 
4446
 
 
4447
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4448
int
 
4449
main ()
 
4450
{
 
4451
  int i;
 
4452
  for (i = 0; i < 256; i++)
 
4453
    if (XOR (islower (i), ISLOWER (i))
 
4454
        || toupper (i) != TOUPPER (i))
 
4455
      exit(2);
 
4456
  exit (0);
 
4457
}
 
4458
_ACEOF
 
4459
rm -f conftest$ac_exeext
 
4460
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4461
  (eval $ac_link) 2>&5
 
4462
  ac_status=$?
 
4463
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4464
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4465
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4466
  (eval $ac_try) 2>&5
 
4467
  ac_status=$?
 
4468
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4469
  (exit $ac_status); }; }; then
 
4470
  :
 
4471
else
 
4472
  echo "$as_me: program exited with status $ac_status" >&5
 
4473
echo "$as_me: failed program was:" >&5
 
4474
sed 's/^/| /' conftest.$ac_ext >&5
 
4475
 
 
4476
( exit $ac_status )
 
4477
ac_cv_header_stdc=no
 
4478
fi
 
4479
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4480
fi
 
4481
fi
 
4482
fi
 
4483
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4484
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
4485
if test $ac_cv_header_stdc = yes; then
 
4486
 
 
4487
cat >>confdefs.h <<\_ACEOF
 
4488
#define STDC_HEADERS 1
 
4489
_ACEOF
 
4490
 
 
4491
fi
 
4492
 
 
4493
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4494
 
 
4495
 
 
4496
 
 
4497
 
 
4498
 
 
4499
 
 
4500
 
 
4501
 
 
4502
 
 
4503
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4504
                  inttypes.h stdint.h unistd.h
 
4505
do
 
4506
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4507
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4508
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4509
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4510
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4511
else
 
4512
  cat >conftest.$ac_ext <<_ACEOF
 
4513
#line $LINENO "configure"
 
4514
/* confdefs.h.  */
 
4515
_ACEOF
 
4516
cat confdefs.h >>conftest.$ac_ext
 
4517
cat >>conftest.$ac_ext <<_ACEOF
 
4518
/* end confdefs.h.  */
 
4519
$ac_includes_default
 
4520
 
 
4521
#include <$ac_header>
 
4522
_ACEOF
 
4523
rm -f conftest.$ac_objext
 
4524
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4525
  (eval $ac_compile) 2>&5
 
4526
  ac_status=$?
 
4527
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4528
  (exit $ac_status); } &&
 
4529
         { ac_try='test -s conftest.$ac_objext'
 
4530
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4531
  (eval $ac_try) 2>&5
 
4532
  ac_status=$?
 
4533
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4534
  (exit $ac_status); }; }; then
 
4535
  eval "$as_ac_Header=yes"
 
4536
else
 
4537
  echo "$as_me: failed program was:" >&5
 
4538
sed 's/^/| /' conftest.$ac_ext >&5
 
4539
 
 
4540
eval "$as_ac_Header=no"
 
4541
fi
 
4542
rm -f conftest.$ac_objext conftest.$ac_ext
 
4543
fi
 
4544
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4545
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4546
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4547
  cat >>confdefs.h <<_ACEOF
 
4548
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4549
_ACEOF
 
4550
 
 
4551
fi
 
4552
 
 
4553
done
 
4554
 
 
4555
 
 
4556
 
 
4557
 
 
4558
 
 
4559
 
 
4560
for ac_header in fcntl.h limits.h malloc.h unistd.h
 
4561
do
 
4562
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4563
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4564
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4565
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4566
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4567
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4568
fi
 
4569
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4570
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4571
else
 
4572
  # Is the header compilable?
 
4573
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4574
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
4575
cat >conftest.$ac_ext <<_ACEOF
 
4576
#line $LINENO "configure"
 
4577
/* confdefs.h.  */
 
4578
_ACEOF
 
4579
cat confdefs.h >>conftest.$ac_ext
 
4580
cat >>conftest.$ac_ext <<_ACEOF
 
4581
/* end confdefs.h.  */
 
4582
$ac_includes_default
 
4583
#include <$ac_header>
 
4584
_ACEOF
 
4585
rm -f conftest.$ac_objext
 
4586
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4587
  (eval $ac_compile) 2>&5
 
4588
  ac_status=$?
 
4589
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4590
  (exit $ac_status); } &&
 
4591
         { ac_try='test -s conftest.$ac_objext'
 
4592
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4593
  (eval $ac_try) 2>&5
 
4594
  ac_status=$?
 
4595
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4596
  (exit $ac_status); }; }; then
 
4597
  ac_header_compiler=yes
 
4598
else
 
4599
  echo "$as_me: failed program was:" >&5
 
4600
sed 's/^/| /' conftest.$ac_ext >&5
 
4601
 
 
4602
ac_header_compiler=no
 
4603
fi
 
4604
rm -f conftest.$ac_objext conftest.$ac_ext
 
4605
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4606
echo "${ECHO_T}$ac_header_compiler" >&6
 
4607
 
 
4608
# Is the header present?
 
4609
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4610
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
4611
cat >conftest.$ac_ext <<_ACEOF
 
4612
#line $LINENO "configure"
 
4613
/* confdefs.h.  */
 
4614
_ACEOF
 
4615
cat confdefs.h >>conftest.$ac_ext
 
4616
cat >>conftest.$ac_ext <<_ACEOF
 
4617
/* end confdefs.h.  */
 
4618
#include <$ac_header>
 
4619
_ACEOF
 
4620
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4621
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4622
  ac_status=$?
 
4623
  grep -v '^ *+' conftest.er1 >conftest.err
 
4624
  rm -f conftest.er1
 
4625
  cat conftest.err >&5
 
4626
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4627
  (exit $ac_status); } >/dev/null; then
 
4628
  if test -s conftest.err; then
 
4629
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4630
  else
 
4631
    ac_cpp_err=
 
4632
  fi
 
4633
else
 
4634
  ac_cpp_err=yes
 
4635
fi
 
4636
if test -z "$ac_cpp_err"; then
 
4637
  ac_header_preproc=yes
 
4638
else
 
4639
  echo "$as_me: failed program was:" >&5
 
4640
sed 's/^/| /' conftest.$ac_ext >&5
 
4641
 
 
4642
  ac_header_preproc=no
 
4643
fi
 
4644
rm -f conftest.err conftest.$ac_ext
 
4645
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4646
echo "${ECHO_T}$ac_header_preproc" >&6
 
4647
 
 
4648
# So?  What about this header?
 
4649
case $ac_header_compiler:$ac_header_preproc in
 
4650
  yes:no )
 
4651
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4652
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4653
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4654
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4655
    (
 
4656
      cat <<\_ASBOX
 
4657
## ------------------------------------ ##
 
4658
## Report this to bug-autoconf@gnu.org. ##
 
4659
## ------------------------------------ ##
 
4660
_ASBOX
 
4661
    ) |
 
4662
      sed "s/^/$as_me: WARNING:     /" >&2
 
4663
    ;;
 
4664
  no:yes )
 
4665
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4666
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4667
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
4668
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
4669
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4670
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4671
    (
 
4672
      cat <<\_ASBOX
 
4673
## ------------------------------------ ##
 
4674
## Report this to bug-autoconf@gnu.org. ##
 
4675
## ------------------------------------ ##
 
4676
_ASBOX
 
4677
    ) |
 
4678
      sed "s/^/$as_me: WARNING:     /" >&2
 
4679
    ;;
 
4680
esac
 
4681
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4682
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4683
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4684
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4685
else
 
4686
  eval "$as_ac_Header=$ac_header_preproc"
 
4687
fi
 
4688
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4689
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4690
 
 
4691
fi
 
4692
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4693
  cat >>confdefs.h <<_ACEOF
 
4694
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4695
_ACEOF
 
4696
 
 
4697
fi
 
4698
 
 
4699
done
 
4700
 
 
4701
 
 
4702
unset ac_cv_header_ladspa_h
 
4703
 
 
4704
have_ladspa=no
 
4705
 
 
4706
for ac_header in ladspa.h
 
4707
do
 
4708
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4709
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4710
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4711
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4712
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4713
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4714
fi
 
4715
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4716
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4717
else
 
4718
  # Is the header compilable?
 
4719
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4720
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
4721
cat >conftest.$ac_ext <<_ACEOF
 
4722
#line $LINENO "configure"
 
4723
/* confdefs.h.  */
 
4724
_ACEOF
 
4725
cat confdefs.h >>conftest.$ac_ext
 
4726
cat >>conftest.$ac_ext <<_ACEOF
 
4727
/* end confdefs.h.  */
 
4728
$ac_includes_default
 
4729
#include <$ac_header>
 
4730
_ACEOF
 
4731
rm -f conftest.$ac_objext
 
4732
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4733
  (eval $ac_compile) 2>&5
 
4734
  ac_status=$?
 
4735
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4736
  (exit $ac_status); } &&
 
4737
         { ac_try='test -s conftest.$ac_objext'
 
4738
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4739
  (eval $ac_try) 2>&5
 
4740
  ac_status=$?
 
4741
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4742
  (exit $ac_status); }; }; then
 
4743
  ac_header_compiler=yes
 
4744
else
 
4745
  echo "$as_me: failed program was:" >&5
 
4746
sed 's/^/| /' conftest.$ac_ext >&5
 
4747
 
 
4748
ac_header_compiler=no
 
4749
fi
 
4750
rm -f conftest.$ac_objext conftest.$ac_ext
 
4751
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4752
echo "${ECHO_T}$ac_header_compiler" >&6
 
4753
 
 
4754
# Is the header present?
 
4755
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4756
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
4757
cat >conftest.$ac_ext <<_ACEOF
 
4758
#line $LINENO "configure"
 
4759
/* confdefs.h.  */
 
4760
_ACEOF
 
4761
cat confdefs.h >>conftest.$ac_ext
 
4762
cat >>conftest.$ac_ext <<_ACEOF
 
4763
/* end confdefs.h.  */
 
4764
#include <$ac_header>
 
4765
_ACEOF
 
4766
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4767
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4768
  ac_status=$?
 
4769
  grep -v '^ *+' conftest.er1 >conftest.err
 
4770
  rm -f conftest.er1
 
4771
  cat conftest.err >&5
 
4772
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4773
  (exit $ac_status); } >/dev/null; then
 
4774
  if test -s conftest.err; then
 
4775
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4776
  else
 
4777
    ac_cpp_err=
 
4778
  fi
 
4779
else
 
4780
  ac_cpp_err=yes
 
4781
fi
 
4782
if test -z "$ac_cpp_err"; then
 
4783
  ac_header_preproc=yes
 
4784
else
 
4785
  echo "$as_me: failed program was:" >&5
 
4786
sed 's/^/| /' conftest.$ac_ext >&5
 
4787
 
 
4788
  ac_header_preproc=no
 
4789
fi
 
4790
rm -f conftest.err conftest.$ac_ext
 
4791
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4792
echo "${ECHO_T}$ac_header_preproc" >&6
 
4793
 
 
4794
# So?  What about this header?
 
4795
case $ac_header_compiler:$ac_header_preproc in
 
4796
  yes:no )
 
4797
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4798
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4799
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4800
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4801
    (
 
4802
      cat <<\_ASBOX
 
4803
## ------------------------------------ ##
 
4804
## Report this to bug-autoconf@gnu.org. ##
 
4805
## ------------------------------------ ##
 
4806
_ASBOX
 
4807
    ) |
 
4808
      sed "s/^/$as_me: WARNING:     /" >&2
 
4809
    ;;
 
4810
  no:yes )
 
4811
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4812
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4813
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
4814
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
4815
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4816
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4817
    (
 
4818
      cat <<\_ASBOX
 
4819
## ------------------------------------ ##
 
4820
## Report this to bug-autoconf@gnu.org. ##
 
4821
## ------------------------------------ ##
 
4822
_ASBOX
 
4823
    ) |
 
4824
      sed "s/^/$as_me: WARNING:     /" >&2
 
4825
    ;;
 
4826
esac
 
4827
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4828
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4829
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4830
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4831
else
 
4832
  eval "$as_ac_Header=$ac_header_preproc"
 
4833
fi
 
4834
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4835
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4836
 
 
4837
fi
 
4838
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4839
  cat >>confdefs.h <<_ACEOF
 
4840
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4841
_ACEOF
 
4842
 have_ladspa=yes
 
4843
else
 
4844
  have_ladspa=no
 
4845
fi
 
4846
 
 
4847
done
 
4848
 
 
4849
 
 
4850
unset ac_cv_header_ladspa_h
 
4851
 
 
4852
 
 
4853
if test "$have_ladspa" = "no"; then
 
4854
        ac_save_CFLAGS=$CFLAGS
 
4855
        CFLAGS="$CFLAGS -I/usr/local/include"
 
4856
 
 
4857
for ac_header in ladspa.h
 
4858
do
 
4859
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4860
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4861
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4862
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4863
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4864
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4865
fi
 
4866
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4867
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4868
else
 
4869
  # Is the header compilable?
 
4870
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4871
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
4872
cat >conftest.$ac_ext <<_ACEOF
 
4873
#line $LINENO "configure"
 
4874
/* confdefs.h.  */
 
4875
_ACEOF
 
4876
cat confdefs.h >>conftest.$ac_ext
 
4877
cat >>conftest.$ac_ext <<_ACEOF
 
4878
/* end confdefs.h.  */
 
4879
$ac_includes_default
 
4880
#include <$ac_header>
 
4881
_ACEOF
 
4882
rm -f conftest.$ac_objext
 
4883
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4884
  (eval $ac_compile) 2>&5
 
4885
  ac_status=$?
 
4886
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4887
  (exit $ac_status); } &&
 
4888
         { ac_try='test -s conftest.$ac_objext'
 
4889
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4890
  (eval $ac_try) 2>&5
 
4891
  ac_status=$?
 
4892
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4893
  (exit $ac_status); }; }; then
 
4894
  ac_header_compiler=yes
 
4895
else
 
4896
  echo "$as_me: failed program was:" >&5
 
4897
sed 's/^/| /' conftest.$ac_ext >&5
 
4898
 
 
4899
ac_header_compiler=no
 
4900
fi
 
4901
rm -f conftest.$ac_objext conftest.$ac_ext
 
4902
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4903
echo "${ECHO_T}$ac_header_compiler" >&6
 
4904
 
 
4905
# Is the header present?
 
4906
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4907
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
4908
cat >conftest.$ac_ext <<_ACEOF
 
4909
#line $LINENO "configure"
 
4910
/* confdefs.h.  */
 
4911
_ACEOF
 
4912
cat confdefs.h >>conftest.$ac_ext
 
4913
cat >>conftest.$ac_ext <<_ACEOF
 
4914
/* end confdefs.h.  */
 
4915
#include <$ac_header>
 
4916
_ACEOF
 
4917
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4918
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4919
  ac_status=$?
 
4920
  grep -v '^ *+' conftest.er1 >conftest.err
 
4921
  rm -f conftest.er1
 
4922
  cat conftest.err >&5
 
4923
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4924
  (exit $ac_status); } >/dev/null; then
 
4925
  if test -s conftest.err; then
 
4926
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4927
  else
 
4928
    ac_cpp_err=
 
4929
  fi
 
4930
else
 
4931
  ac_cpp_err=yes
 
4932
fi
 
4933
if test -z "$ac_cpp_err"; then
 
4934
  ac_header_preproc=yes
 
4935
else
 
4936
  echo "$as_me: failed program was:" >&5
 
4937
sed 's/^/| /' conftest.$ac_ext >&5
 
4938
 
 
4939
  ac_header_preproc=no
 
4940
fi
 
4941
rm -f conftest.err conftest.$ac_ext
 
4942
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4943
echo "${ECHO_T}$ac_header_preproc" >&6
 
4944
 
 
4945
# So?  What about this header?
 
4946
case $ac_header_compiler:$ac_header_preproc in
 
4947
  yes:no )
 
4948
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4949
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4950
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4951
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4952
    (
 
4953
      cat <<\_ASBOX
 
4954
## ------------------------------------ ##
 
4955
## Report this to bug-autoconf@gnu.org. ##
 
4956
## ------------------------------------ ##
 
4957
_ASBOX
 
4958
    ) |
 
4959
      sed "s/^/$as_me: WARNING:     /" >&2
 
4960
    ;;
 
4961
  no:yes )
 
4962
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4963
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4964
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
4965
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
4966
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4967
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4968
    (
 
4969
      cat <<\_ASBOX
 
4970
## ------------------------------------ ##
 
4971
## Report this to bug-autoconf@gnu.org. ##
 
4972
## ------------------------------------ ##
 
4973
_ASBOX
 
4974
    ) |
 
4975
      sed "s/^/$as_me: WARNING:     /" >&2
 
4976
    ;;
 
4977
esac
 
4978
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4979
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4980
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4981
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4982
else
 
4983
  eval "$as_ac_Header=$ac_header_preproc"
 
4984
fi
 
4985
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4986
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4987
 
 
4988
fi
 
4989
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4990
  cat >>confdefs.h <<_ACEOF
 
4991
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4992
_ACEOF
 
4993
 have_ladspa=yes
 
4994
else
 
4995
  have_ladspa=no
 
4996
fi
 
4997
 
 
4998
done
 
4999
 
 
5000
        CFLAGS=$ac_save_CFLAGS
 
5001
 
 
5002
        if test "$have_ladspa" = "yes"; then
 
5003
                CFLAGS="$CFLAGS -I/usr/local/include"
 
5004
        fi
 
5005
fi
 
5006
 
 
5007
if test "$have_ladspa" = "no"; then
 
5008
        { { echo "$as_me:$LINENO: error: ** couldn't find ladspa.h - Install the LADSPA SDK from http://www.ladspa.org first. **" >&5
 
5009
echo "$as_me: error: ** couldn't find ladspa.h - Install the LADSPA SDK from http://www.ladspa.org first. **" >&2;}
 
5010
   { (exit 1); exit 1; }; }
 
5011
fi
 
5012
 
 
5013
 
 
5014
for ac_header in zlib.h
 
5015
do
 
5016
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5017
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5018
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5019
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5020
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5021
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5022
fi
 
5023
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5024
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5025
else
 
5026
  # Is the header compilable?
 
5027
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5028
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
5029
cat >conftest.$ac_ext <<_ACEOF
 
5030
#line $LINENO "configure"
 
5031
/* confdefs.h.  */
 
5032
_ACEOF
 
5033
cat confdefs.h >>conftest.$ac_ext
 
5034
cat >>conftest.$ac_ext <<_ACEOF
 
5035
/* end confdefs.h.  */
 
5036
$ac_includes_default
 
5037
#include <$ac_header>
 
5038
_ACEOF
 
5039
rm -f conftest.$ac_objext
 
5040
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5041
  (eval $ac_compile) 2>&5
 
5042
  ac_status=$?
 
5043
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5044
  (exit $ac_status); } &&
 
5045
         { ac_try='test -s conftest.$ac_objext'
 
5046
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5047
  (eval $ac_try) 2>&5
 
5048
  ac_status=$?
 
5049
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5050
  (exit $ac_status); }; }; then
 
5051
  ac_header_compiler=yes
 
5052
else
 
5053
  echo "$as_me: failed program was:" >&5
 
5054
sed 's/^/| /' conftest.$ac_ext >&5
 
5055
 
 
5056
ac_header_compiler=no
 
5057
fi
 
5058
rm -f conftest.$ac_objext conftest.$ac_ext
 
5059
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5060
echo "${ECHO_T}$ac_header_compiler" >&6
 
5061
 
 
5062
# Is the header present?
 
5063
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5064
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
5065
cat >conftest.$ac_ext <<_ACEOF
 
5066
#line $LINENO "configure"
 
5067
/* confdefs.h.  */
 
5068
_ACEOF
 
5069
cat confdefs.h >>conftest.$ac_ext
 
5070
cat >>conftest.$ac_ext <<_ACEOF
 
5071
/* end confdefs.h.  */
 
5072
#include <$ac_header>
 
5073
_ACEOF
 
5074
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5075
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5076
  ac_status=$?
 
5077
  grep -v '^ *+' conftest.er1 >conftest.err
 
5078
  rm -f conftest.er1
 
5079
  cat conftest.err >&5
 
5080
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5081
  (exit $ac_status); } >/dev/null; then
 
5082
  if test -s conftest.err; then
 
5083
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5084
  else
 
5085
    ac_cpp_err=
 
5086
  fi
 
5087
else
 
5088
  ac_cpp_err=yes
 
5089
fi
 
5090
if test -z "$ac_cpp_err"; then
 
5091
  ac_header_preproc=yes
 
5092
else
 
5093
  echo "$as_me: failed program was:" >&5
 
5094
sed 's/^/| /' conftest.$ac_ext >&5
 
5095
 
 
5096
  ac_header_preproc=no
 
5097
fi
 
5098
rm -f conftest.err conftest.$ac_ext
 
5099
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5100
echo "${ECHO_T}$ac_header_preproc" >&6
 
5101
 
 
5102
# So?  What about this header?
 
5103
case $ac_header_compiler:$ac_header_preproc in
 
5104
  yes:no )
 
5105
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5106
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5107
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5108
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5109
    (
 
5110
      cat <<\_ASBOX
 
5111
## ------------------------------------ ##
 
5112
## Report this to bug-autoconf@gnu.org. ##
 
5113
## ------------------------------------ ##
 
5114
_ASBOX
 
5115
    ) |
 
5116
      sed "s/^/$as_me: WARNING:     /" >&2
 
5117
    ;;
 
5118
  no:yes )
 
5119
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5120
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5121
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
5122
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
5123
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5124
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5125
    (
 
5126
      cat <<\_ASBOX
 
5127
## ------------------------------------ ##
 
5128
## Report this to bug-autoconf@gnu.org. ##
 
5129
## ------------------------------------ ##
 
5130
_ASBOX
 
5131
    ) |
 
5132
      sed "s/^/$as_me: WARNING:     /" >&2
 
5133
    ;;
 
5134
esac
 
5135
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5136
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5137
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5138
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5139
else
 
5140
  eval "$as_ac_Header=$ac_header_preproc"
 
5141
fi
 
5142
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5143
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5144
 
 
5145
fi
 
5146
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5147
  cat >>confdefs.h <<_ACEOF
 
5148
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5149
_ACEOF
 
5150
 
 
5151
else
 
5152
  { { echo "$as_me:$LINENO: error: ** couldn't find zlib.h **" >&5
 
5153
echo "$as_me: error: ** couldn't find zlib.h **" >&2;}
 
5154
   { (exit 1); exit 1; }; }
 
5155
fi
 
5156
 
 
5157
done
 
5158
 
 
5159
echo "$as_me:$LINENO: checking for gzprintf in -lz" >&5
 
5160
echo $ECHO_N "checking for gzprintf in -lz... $ECHO_C" >&6
 
5161
if test "${ac_cv_lib_z_gzprintf+set}" = set; then
 
5162
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5163
else
 
5164
  ac_check_lib_save_LIBS=$LIBS
 
5165
LIBS="-lz  $LIBS"
 
5166
cat >conftest.$ac_ext <<_ACEOF
 
5167
#line $LINENO "configure"
 
5168
/* confdefs.h.  */
 
5169
_ACEOF
 
5170
cat confdefs.h >>conftest.$ac_ext
 
5171
cat >>conftest.$ac_ext <<_ACEOF
 
5172
/* end confdefs.h.  */
 
5173
 
 
5174
/* Override any gcc2 internal prototype to avoid an error.  */
 
5175
#ifdef __cplusplus
 
5176
extern "C"
 
5177
#endif
 
5178
/* We use char because int might match the return type of a gcc2
 
5179
   builtin and then its argument prototype would still apply.  */
 
5180
char gzprintf ();
 
5181
int
 
5182
main ()
 
5183
{
 
5184
gzprintf ();
 
5185
  ;
 
5186
  return 0;
 
5187
}
 
5188
_ACEOF
 
5189
rm -f conftest.$ac_objext conftest$ac_exeext
 
5190
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5191
  (eval $ac_link) 2>&5
 
5192
  ac_status=$?
 
5193
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5194
  (exit $ac_status); } &&
 
5195
         { ac_try='test -s conftest$ac_exeext'
 
5196
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5197
  (eval $ac_try) 2>&5
 
5198
  ac_status=$?
 
5199
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5200
  (exit $ac_status); }; }; then
 
5201
  ac_cv_lib_z_gzprintf=yes
 
5202
else
 
5203
  echo "$as_me: failed program was:" >&5
 
5204
sed 's/^/| /' conftest.$ac_ext >&5
 
5205
 
 
5206
ac_cv_lib_z_gzprintf=no
 
5207
fi
 
5208
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
5209
LIBS=$ac_check_lib_save_LIBS
 
5210
fi
 
5211
echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzprintf" >&5
 
5212
echo "${ECHO_T}$ac_cv_lib_z_gzprintf" >&6
 
5213
if test $ac_cv_lib_z_gzprintf = yes; then
 
5214
  LIBS="$LIBS -lz"
 
5215
else
 
5216
  { { echo "$as_me:$LINENO: error: ** couldn't find libz library **" >&5
 
5217
echo "$as_me: error: ** couldn't find libz library **" >&2;}
 
5218
   { (exit 1); exit 1; }; }
 
5219
fi
 
5220
 
 
5221
 
 
5222
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
 
5223
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
 
5224
if test "${ac_cv_c_bigendian+set}" = set; then
 
5225
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5226
else
 
5227
  # See if sys/param.h defines the BYTE_ORDER macro.
 
5228
cat >conftest.$ac_ext <<_ACEOF
 
5229
#line $LINENO "configure"
 
5230
/* confdefs.h.  */
 
5231
_ACEOF
 
5232
cat confdefs.h >>conftest.$ac_ext
 
5233
cat >>conftest.$ac_ext <<_ACEOF
 
5234
/* end confdefs.h.  */
 
5235
#include <sys/types.h>
 
5236
#include <sys/param.h>
 
5237
 
 
5238
int
 
5239
main ()
 
5240
{
 
5241
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 
5242
 bogus endian macros
 
5243
#endif
 
5244
 
 
5245
  ;
 
5246
  return 0;
 
5247
}
 
5248
_ACEOF
 
5249
rm -f conftest.$ac_objext
 
5250
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5251
  (eval $ac_compile) 2>&5
 
5252
  ac_status=$?
 
5253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5254
  (exit $ac_status); } &&
 
5255
         { ac_try='test -s conftest.$ac_objext'
 
5256
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5257
  (eval $ac_try) 2>&5
 
5258
  ac_status=$?
 
5259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5260
  (exit $ac_status); }; }; then
 
5261
  # It does; now see whether it defined to BIG_ENDIAN or not.
 
5262
cat >conftest.$ac_ext <<_ACEOF
 
5263
#line $LINENO "configure"
 
5264
/* confdefs.h.  */
 
5265
_ACEOF
 
5266
cat confdefs.h >>conftest.$ac_ext
 
5267
cat >>conftest.$ac_ext <<_ACEOF
 
5268
/* end confdefs.h.  */
 
5269
#include <sys/types.h>
 
5270
#include <sys/param.h>
 
5271
 
 
5272
int
 
5273
main ()
 
5274
{
 
5275
#if BYTE_ORDER != BIG_ENDIAN
 
5276
 not big endian
 
5277
#endif
 
5278
 
 
5279
  ;
 
5280
  return 0;
 
5281
}
 
5282
_ACEOF
 
5283
rm -f conftest.$ac_objext
 
5284
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5285
  (eval $ac_compile) 2>&5
 
5286
  ac_status=$?
 
5287
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5288
  (exit $ac_status); } &&
 
5289
         { ac_try='test -s conftest.$ac_objext'
 
5290
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5291
  (eval $ac_try) 2>&5
 
5292
  ac_status=$?
 
5293
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5294
  (exit $ac_status); }; }; then
 
5295
  ac_cv_c_bigendian=yes
 
5296
else
 
5297
  echo "$as_me: failed program was:" >&5
 
5298
sed 's/^/| /' conftest.$ac_ext >&5
 
5299
 
 
5300
ac_cv_c_bigendian=no
 
5301
fi
 
5302
rm -f conftest.$ac_objext conftest.$ac_ext
 
5303
else
 
5304
  echo "$as_me: failed program was:" >&5
 
5305
sed 's/^/| /' conftest.$ac_ext >&5
 
5306
 
 
5307
# It does not; compile a test program.
 
5308
if test "$cross_compiling" = yes; then
 
5309
  # try to guess the endianness by grepping values into an object file
 
5310
  ac_cv_c_bigendian=unknown
 
5311
  cat >conftest.$ac_ext <<_ACEOF
 
5312
#line $LINENO "configure"
 
5313
/* confdefs.h.  */
 
5314
_ACEOF
 
5315
cat confdefs.h >>conftest.$ac_ext
 
5316
cat >>conftest.$ac_ext <<_ACEOF
 
5317
/* end confdefs.h.  */
 
5318
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
5319
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
5320
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
 
5321
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
5322
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
5323
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
 
5324
int
 
5325
main ()
 
5326
{
 
5327
 _ascii (); _ebcdic ();
 
5328
  ;
 
5329
  return 0;
 
5330
}
 
5331
_ACEOF
 
5332
rm -f conftest.$ac_objext
 
5333
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5334
  (eval $ac_compile) 2>&5
 
5335
  ac_status=$?
 
5336
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5337
  (exit $ac_status); } &&
 
5338
         { ac_try='test -s conftest.$ac_objext'
 
5339
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5340
  (eval $ac_try) 2>&5
 
5341
  ac_status=$?
 
5342
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5343
  (exit $ac_status); }; }; then
 
5344
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
 
5345
  ac_cv_c_bigendian=yes
 
5346
fi
 
5347
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
5348
  if test "$ac_cv_c_bigendian" = unknown; then
 
5349
    ac_cv_c_bigendian=no
 
5350
  else
 
5351
    # finding both strings is unlikely to happen, but who knows?
 
5352
    ac_cv_c_bigendian=unknown
 
5353
  fi
 
5354
fi
 
5355
else
 
5356
  echo "$as_me: failed program was:" >&5
 
5357
sed 's/^/| /' conftest.$ac_ext >&5
 
5358
 
 
5359
fi
 
5360
rm -f conftest.$ac_objext conftest.$ac_ext
 
5361
else
 
5362
  cat >conftest.$ac_ext <<_ACEOF
 
5363
#line $LINENO "configure"
 
5364
/* confdefs.h.  */
 
5365
_ACEOF
 
5366
cat confdefs.h >>conftest.$ac_ext
 
5367
cat >>conftest.$ac_ext <<_ACEOF
 
5368
/* end confdefs.h.  */
 
5369
int
 
5370
main ()
 
5371
{
 
5372
  /* Are we little or big endian?  From Harbison&Steele.  */
 
5373
  union
 
5374
  {
 
5375
    long l;
 
5376
    char c[sizeof (long)];
 
5377
  } u;
 
5378
  u.l = 1;
 
5379
  exit (u.c[sizeof (long) - 1] == 1);
 
5380
}
 
5381
_ACEOF
 
5382
rm -f conftest$ac_exeext
 
5383
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5384
  (eval $ac_link) 2>&5
 
5385
  ac_status=$?
 
5386
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5387
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5388
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5389
  (eval $ac_try) 2>&5
 
5390
  ac_status=$?
 
5391
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5392
  (exit $ac_status); }; }; then
 
5393
  ac_cv_c_bigendian=no
 
5394
else
 
5395
  echo "$as_me: program exited with status $ac_status" >&5
 
5396
echo "$as_me: failed program was:" >&5
 
5397
sed 's/^/| /' conftest.$ac_ext >&5
 
5398
 
 
5399
( exit $ac_status )
 
5400
ac_cv_c_bigendian=yes
 
5401
fi
 
5402
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5403
fi
 
5404
fi
 
5405
rm -f conftest.$ac_objext conftest.$ac_ext
 
5406
fi
 
5407
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
 
5408
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
 
5409
case $ac_cv_c_bigendian in
 
5410
  yes)
 
5411
 
 
5412
cat >>confdefs.h <<\_ACEOF
 
5413
#define WORDS_BIGENDIAN 1
 
5414
_ACEOF
 
5415
 ;;
 
5416
  no)
 
5417
     ;;
 
5418
  *)
 
5419
    { { echo "$as_me:$LINENO: error: unknown endianness
 
5420
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
 
5421
echo "$as_me: error: unknown endianness
 
5422
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
 
5423
   { (exit 1); exit 1; }; } ;;
 
5424
esac
 
5425
 
 
5426
echo "$as_me:$LINENO: checking for size_t" >&5
 
5427
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
 
5428
if test "${ac_cv_type_size_t+set}" = set; then
 
5429
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5430
else
 
5431
  cat >conftest.$ac_ext <<_ACEOF
 
5432
#line $LINENO "configure"
 
5433
/* confdefs.h.  */
 
5434
_ACEOF
 
5435
cat confdefs.h >>conftest.$ac_ext
 
5436
cat >>conftest.$ac_ext <<_ACEOF
 
5437
/* end confdefs.h.  */
 
5438
$ac_includes_default
 
5439
int
 
5440
main ()
 
5441
{
 
5442
if ((size_t *) 0)
 
5443
  return 0;
 
5444
if (sizeof (size_t))
 
5445
  return 0;
 
5446
  ;
 
5447
  return 0;
 
5448
}
 
5449
_ACEOF
 
5450
rm -f conftest.$ac_objext
 
5451
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5452
  (eval $ac_compile) 2>&5
 
5453
  ac_status=$?
 
5454
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5455
  (exit $ac_status); } &&
 
5456
         { ac_try='test -s conftest.$ac_objext'
 
5457
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5458
  (eval $ac_try) 2>&5
 
5459
  ac_status=$?
 
5460
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5461
  (exit $ac_status); }; }; then
 
5462
  ac_cv_type_size_t=yes
 
5463
else
 
5464
  echo "$as_me: failed program was:" >&5
 
5465
sed 's/^/| /' conftest.$ac_ext >&5
 
5466
 
 
5467
ac_cv_type_size_t=no
 
5468
fi
 
5469
rm -f conftest.$ac_objext conftest.$ac_ext
 
5470
fi
 
5471
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
5472
echo "${ECHO_T}$ac_cv_type_size_t" >&6
 
5473
if test $ac_cv_type_size_t = yes; then
 
5474
  :
 
5475
else
 
5476
 
 
5477
cat >>confdefs.h <<_ACEOF
 
5478
#define size_t unsigned
 
5479
_ACEOF
 
5480
 
 
5481
fi
 
5482
 
 
5483
 
 
5484
if test $ac_cv_c_compiler_gnu = yes; then
 
5485
    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
 
5486
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
 
5487
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
 
5488
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5489
else
 
5490
    ac_pattern="Autoconf.*'x'"
 
5491
  cat >conftest.$ac_ext <<_ACEOF
 
5492
#line $LINENO "configure"
 
5493
/* confdefs.h.  */
 
5494
_ACEOF
 
5495
cat confdefs.h >>conftest.$ac_ext
 
5496
cat >>conftest.$ac_ext <<_ACEOF
 
5497
/* end confdefs.h.  */
 
5498
#include <sgtty.h>
 
5499
Autoconf TIOCGETP
 
5500
_ACEOF
 
5501
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5502
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
 
5503
  ac_cv_prog_gcc_traditional=yes
 
5504
else
 
5505
  ac_cv_prog_gcc_traditional=no
 
5506
fi
 
5507
rm -f conftest*
 
5508
 
 
5509
 
 
5510
  if test $ac_cv_prog_gcc_traditional = no; then
 
5511
    cat >conftest.$ac_ext <<_ACEOF
 
5512
#line $LINENO "configure"
 
5513
/* confdefs.h.  */
 
5514
_ACEOF
 
5515
cat confdefs.h >>conftest.$ac_ext
 
5516
cat >>conftest.$ac_ext <<_ACEOF
 
5517
/* end confdefs.h.  */
 
5518
#include <termio.h>
 
5519
Autoconf TCGETA
 
5520
_ACEOF
 
5521
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5522
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
 
5523
  ac_cv_prog_gcc_traditional=yes
 
5524
fi
 
5525
rm -f conftest*
 
5526
 
 
5527
  fi
 
5528
fi
 
5529
echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
 
5530
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
 
5531
  if test $ac_cv_prog_gcc_traditional = yes; then
 
5532
    CC="$CC -traditional"
 
5533
  fi
 
5534
fi
 
5535
 
 
5536
 
 
5537
if test "$enable_closedev" = "no"; then
 
5538
 
 
5539
cat >>confdefs.h <<_ACEOF
 
5540
#define KEEP_DEV_OPEN 1
 
5541
_ACEOF
 
5542
 
 
5543
fi
 
5544
 
 
5545
 
 
5546
if test "$enable_sox" != "no"; then
 
5547
        # Extract the first word of "sox", so it can be a program name with args.
 
5548
set dummy sox; ac_word=$2
 
5549
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5550
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5551
if test "${ac_cv_prog_SOX_PROG+set}" = set; then
 
5552
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5553
else
 
5554
  if test -n "$SOX_PROG"; then
 
5555
  ac_cv_prog_SOX_PROG="$SOX_PROG" # Let the user override the test.
 
5556
else
 
5557
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5558
for as_dir in $PATH
 
5559
do
 
5560
  IFS=$as_save_IFS
 
5561
  test -z "$as_dir" && as_dir=.
 
5562
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5563
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5564
    ac_cv_prog_SOX_PROG="yes"
 
5565
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5566
    break 2
 
5567
  fi
 
5568
done
 
5569
done
 
5570
 
 
5571
fi
 
5572
fi
 
5573
SOX_PROG=$ac_cv_prog_SOX_PROG
 
5574
if test -n "$SOX_PROG"; then
 
5575
  echo "$as_me:$LINENO: result: $SOX_PROG" >&5
 
5576
echo "${ECHO_T}$SOX_PROG" >&6
 
5577
else
 
5578
  echo "$as_me:$LINENO: result: no" >&5
 
5579
echo "${ECHO_T}no" >&6
 
5580
fi
 
5581
 
 
5582
        if test "$SOX_PROG" = "yes"; then
 
5583
 
 
5584
cat >>confdefs.h <<_ACEOF
 
5585
#define USE_SOX_INPUT 1
 
5586
_ACEOF
 
5587
 
 
5588
                OPTION_SOX="yes"
 
5589
        fi
 
5590
fi
 
5591
 
 
5592
if test "$enable_mad" != "no"; then
 
5593
 
 
5594
for ac_header in mad.h
 
5595
do
 
5596
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5597
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5598
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5599
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5600
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5601
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5602
fi
 
5603
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5604
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5605
else
 
5606
  # Is the header compilable?
 
5607
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5608
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
5609
cat >conftest.$ac_ext <<_ACEOF
 
5610
#line $LINENO "configure"
 
5611
/* confdefs.h.  */
 
5612
_ACEOF
 
5613
cat confdefs.h >>conftest.$ac_ext
 
5614
cat >>conftest.$ac_ext <<_ACEOF
 
5615
/* end confdefs.h.  */
 
5616
$ac_includes_default
 
5617
#include <$ac_header>
 
5618
_ACEOF
 
5619
rm -f conftest.$ac_objext
 
5620
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5621
  (eval $ac_compile) 2>&5
 
5622
  ac_status=$?
 
5623
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5624
  (exit $ac_status); } &&
 
5625
         { ac_try='test -s conftest.$ac_objext'
 
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_header_compiler=yes
 
5632
else
 
5633
  echo "$as_me: failed program was:" >&5
 
5634
sed 's/^/| /' conftest.$ac_ext >&5
 
5635
 
 
5636
ac_header_compiler=no
 
5637
fi
 
5638
rm -f conftest.$ac_objext conftest.$ac_ext
 
5639
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5640
echo "${ECHO_T}$ac_header_compiler" >&6
 
5641
 
 
5642
# Is the header present?
 
5643
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5644
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
5645
cat >conftest.$ac_ext <<_ACEOF
 
5646
#line $LINENO "configure"
 
5647
/* confdefs.h.  */
 
5648
_ACEOF
 
5649
cat confdefs.h >>conftest.$ac_ext
 
5650
cat >>conftest.$ac_ext <<_ACEOF
 
5651
/* end confdefs.h.  */
 
5652
#include <$ac_header>
 
5653
_ACEOF
 
5654
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5655
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5656
  ac_status=$?
 
5657
  grep -v '^ *+' conftest.er1 >conftest.err
 
5658
  rm -f conftest.er1
 
5659
  cat conftest.err >&5
 
5660
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5661
  (exit $ac_status); } >/dev/null; then
 
5662
  if test -s conftest.err; then
 
5663
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5664
  else
 
5665
    ac_cpp_err=
 
5666
  fi
 
5667
else
 
5668
  ac_cpp_err=yes
 
5669
fi
 
5670
if test -z "$ac_cpp_err"; then
 
5671
  ac_header_preproc=yes
 
5672
else
 
5673
  echo "$as_me: failed program was:" >&5
 
5674
sed 's/^/| /' conftest.$ac_ext >&5
 
5675
 
 
5676
  ac_header_preproc=no
 
5677
fi
 
5678
rm -f conftest.err conftest.$ac_ext
 
5679
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5680
echo "${ECHO_T}$ac_header_preproc" >&6
 
5681
 
 
5682
# So?  What about this header?
 
5683
case $ac_header_compiler:$ac_header_preproc in
 
5684
  yes:no )
 
5685
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5686
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5687
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5688
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5689
    (
 
5690
      cat <<\_ASBOX
 
5691
## ------------------------------------ ##
 
5692
## Report this to bug-autoconf@gnu.org. ##
 
5693
## ------------------------------------ ##
 
5694
_ASBOX
 
5695
    ) |
 
5696
      sed "s/^/$as_me: WARNING:     /" >&2
 
5697
    ;;
 
5698
  no:yes )
 
5699
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5700
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5701
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
5702
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
5703
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5704
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5705
    (
 
5706
      cat <<\_ASBOX
 
5707
## ------------------------------------ ##
 
5708
## Report this to bug-autoconf@gnu.org. ##
 
5709
## ------------------------------------ ##
 
5710
_ASBOX
 
5711
    ) |
 
5712
      sed "s/^/$as_me: WARNING:     /" >&2
 
5713
    ;;
 
5714
esac
 
5715
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5716
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5717
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5718
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5719
else
 
5720
  eval "$as_ac_Header=$ac_header_preproc"
 
5721
fi
 
5722
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5723
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5724
 
 
5725
fi
 
5726
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5727
  cat >>confdefs.h <<_ACEOF
 
5728
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5729
_ACEOF
 
5730
 madheader=yes
 
5731
else
 
5732
  madheader=no
 
5733
fi
 
5734
 
 
5735
done
 
5736
 
 
5737
        if test "$madheader" = "yes"; then
 
5738
                echo "$as_me:$LINENO: checking for mad_decoder_init in -lmad" >&5
 
5739
echo $ECHO_N "checking for mad_decoder_init in -lmad... $ECHO_C" >&6
 
5740
if test "${ac_cv_lib_mad_mad_decoder_init+set}" = set; then
 
5741
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5742
else
 
5743
  ac_check_lib_save_LIBS=$LIBS
 
5744
LIBS="-lmad  $LIBS"
 
5745
cat >conftest.$ac_ext <<_ACEOF
 
5746
#line $LINENO "configure"
 
5747
/* confdefs.h.  */
 
5748
_ACEOF
 
5749
cat confdefs.h >>conftest.$ac_ext
 
5750
cat >>conftest.$ac_ext <<_ACEOF
 
5751
/* end confdefs.h.  */
 
5752
 
 
5753
/* Override any gcc2 internal prototype to avoid an error.  */
 
5754
#ifdef __cplusplus
 
5755
extern "C"
 
5756
#endif
 
5757
/* We use char because int might match the return type of a gcc2
 
5758
   builtin and then its argument prototype would still apply.  */
 
5759
char mad_decoder_init ();
 
5760
int
 
5761
main ()
 
5762
{
 
5763
mad_decoder_init ();
 
5764
  ;
 
5765
  return 0;
 
5766
}
 
5767
_ACEOF
 
5768
rm -f conftest.$ac_objext conftest$ac_exeext
 
5769
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5770
  (eval $ac_link) 2>&5
 
5771
  ac_status=$?
 
5772
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5773
  (exit $ac_status); } &&
 
5774
         { ac_try='test -s conftest$ac_exeext'
 
5775
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5776
  (eval $ac_try) 2>&5
 
5777
  ac_status=$?
 
5778
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5779
  (exit $ac_status); }; }; then
 
5780
  ac_cv_lib_mad_mad_decoder_init=yes
 
5781
else
 
5782
  echo "$as_me: failed program was:" >&5
 
5783
sed 's/^/| /' conftest.$ac_ext >&5
 
5784
 
 
5785
ac_cv_lib_mad_mad_decoder_init=no
 
5786
fi
 
5787
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
5788
LIBS=$ac_check_lib_save_LIBS
 
5789
fi
 
5790
echo "$as_me:$LINENO: result: $ac_cv_lib_mad_mad_decoder_init" >&5
 
5791
echo "${ECHO_T}$ac_cv_lib_mad_mad_decoder_init" >&6
 
5792
if test $ac_cv_lib_mad_mad_decoder_init = yes; then
 
5793
  madlib=yes
 
5794
else
 
5795
  madlib=no
 
5796
fi
 
5797
 
 
5798
                if test "$madlib" = "yes"; then
 
5799
                        LIBS="$LIBS -lmad"
 
5800
 
 
5801
cat >>confdefs.h <<_ACEOF
 
5802
#define USE_MAD_INPUT 1
 
5803
_ACEOF
 
5804
 
 
5805
                        OPTION_MAD="yes"
 
5806
                fi
 
5807
        fi
 
5808
fi
 
5809
 
 
5810
if test "$enable_vorbis" != "no"; then
 
5811
 
 
5812
 
 
5813
for ac_header in vorbis/codec.h vorbis/vorbisfile.h
 
5814
do
 
5815
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5816
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5817
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5818
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5819
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5820
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5821
fi
 
5822
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5823
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5824
else
 
5825
  # Is the header compilable?
 
5826
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5827
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
5828
cat >conftest.$ac_ext <<_ACEOF
 
5829
#line $LINENO "configure"
 
5830
/* confdefs.h.  */
 
5831
_ACEOF
 
5832
cat confdefs.h >>conftest.$ac_ext
 
5833
cat >>conftest.$ac_ext <<_ACEOF
 
5834
/* end confdefs.h.  */
 
5835
$ac_includes_default
 
5836
#include <$ac_header>
 
5837
_ACEOF
 
5838
rm -f conftest.$ac_objext
 
5839
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5840
  (eval $ac_compile) 2>&5
 
5841
  ac_status=$?
 
5842
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5843
  (exit $ac_status); } &&
 
5844
         { ac_try='test -s conftest.$ac_objext'
 
5845
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5846
  (eval $ac_try) 2>&5
 
5847
  ac_status=$?
 
5848
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5849
  (exit $ac_status); }; }; then
 
5850
  ac_header_compiler=yes
 
5851
else
 
5852
  echo "$as_me: failed program was:" >&5
 
5853
sed 's/^/| /' conftest.$ac_ext >&5
 
5854
 
 
5855
ac_header_compiler=no
 
5856
fi
 
5857
rm -f conftest.$ac_objext conftest.$ac_ext
 
5858
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5859
echo "${ECHO_T}$ac_header_compiler" >&6
 
5860
 
 
5861
# Is the header present?
 
5862
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5863
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
5864
cat >conftest.$ac_ext <<_ACEOF
 
5865
#line $LINENO "configure"
 
5866
/* confdefs.h.  */
 
5867
_ACEOF
 
5868
cat confdefs.h >>conftest.$ac_ext
 
5869
cat >>conftest.$ac_ext <<_ACEOF
 
5870
/* end confdefs.h.  */
 
5871
#include <$ac_header>
 
5872
_ACEOF
 
5873
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5874
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5875
  ac_status=$?
 
5876
  grep -v '^ *+' conftest.er1 >conftest.err
 
5877
  rm -f conftest.er1
 
5878
  cat conftest.err >&5
 
5879
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5880
  (exit $ac_status); } >/dev/null; then
 
5881
  if test -s conftest.err; then
 
5882
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5883
  else
 
5884
    ac_cpp_err=
 
5885
  fi
 
5886
else
 
5887
  ac_cpp_err=yes
 
5888
fi
 
5889
if test -z "$ac_cpp_err"; then
 
5890
  ac_header_preproc=yes
 
5891
else
 
5892
  echo "$as_me: failed program was:" >&5
 
5893
sed 's/^/| /' conftest.$ac_ext >&5
 
5894
 
 
5895
  ac_header_preproc=no
 
5896
fi
 
5897
rm -f conftest.err conftest.$ac_ext
 
5898
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5899
echo "${ECHO_T}$ac_header_preproc" >&6
 
5900
 
 
5901
# So?  What about this header?
 
5902
case $ac_header_compiler:$ac_header_preproc in
 
5903
  yes:no )
 
5904
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5905
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5906
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5907
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5908
    (
 
5909
      cat <<\_ASBOX
 
5910
## ------------------------------------ ##
 
5911
## Report this to bug-autoconf@gnu.org. ##
 
5912
## ------------------------------------ ##
 
5913
_ASBOX
 
5914
    ) |
 
5915
      sed "s/^/$as_me: WARNING:     /" >&2
 
5916
    ;;
 
5917
  no:yes )
 
5918
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5919
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5920
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
5921
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
5922
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5923
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5924
    (
 
5925
      cat <<\_ASBOX
 
5926
## ------------------------------------ ##
 
5927
## Report this to bug-autoconf@gnu.org. ##
 
5928
## ------------------------------------ ##
 
5929
_ASBOX
 
5930
    ) |
 
5931
      sed "s/^/$as_me: WARNING:     /" >&2
 
5932
    ;;
 
5933
esac
 
5934
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5935
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5936
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5937
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5938
else
 
5939
  eval "$as_ac_Header=$ac_header_preproc"
 
5940
fi
 
5941
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5942
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5943
 
 
5944
fi
 
5945
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5946
  cat >>confdefs.h <<_ACEOF
 
5947
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5948
_ACEOF
 
5949
 vorbis_headers=yes
 
5950
else
 
5951
  vorbis_headers="no"
 
5952
fi
 
5953
 
 
5954
done
 
5955
 
 
5956
        if test "$vorbis_headers" = "yes"; then
 
5957
                echo "$as_me:$LINENO: checking for vorbis_info_init in -lvorbis" >&5
 
5958
echo $ECHO_N "checking for vorbis_info_init in -lvorbis... $ECHO_C" >&6
 
5959
if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then
 
5960
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5961
else
 
5962
  ac_check_lib_save_LIBS=$LIBS
 
5963
LIBS="-lvorbis  $LIBS"
 
5964
cat >conftest.$ac_ext <<_ACEOF
 
5965
#line $LINENO "configure"
 
5966
/* confdefs.h.  */
 
5967
_ACEOF
 
5968
cat confdefs.h >>conftest.$ac_ext
 
5969
cat >>conftest.$ac_ext <<_ACEOF
 
5970
/* end confdefs.h.  */
 
5971
 
 
5972
/* Override any gcc2 internal prototype to avoid an error.  */
 
5973
#ifdef __cplusplus
 
5974
extern "C"
 
5975
#endif
 
5976
/* We use char because int might match the return type of a gcc2
 
5977
   builtin and then its argument prototype would still apply.  */
 
5978
char vorbis_info_init ();
 
5979
int
 
5980
main ()
 
5981
{
 
5982
vorbis_info_init ();
 
5983
  ;
 
5984
  return 0;
 
5985
}
 
5986
_ACEOF
 
5987
rm -f conftest.$ac_objext conftest$ac_exeext
 
5988
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5989
  (eval $ac_link) 2>&5
 
5990
  ac_status=$?
 
5991
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5992
  (exit $ac_status); } &&
 
5993
         { ac_try='test -s conftest$ac_exeext'
 
5994
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5995
  (eval $ac_try) 2>&5
 
5996
  ac_status=$?
 
5997
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5998
  (exit $ac_status); }; }; then
 
5999
  ac_cv_lib_vorbis_vorbis_info_init=yes
 
6000
else
 
6001
  echo "$as_me: failed program was:" >&5
 
6002
sed 's/^/| /' conftest.$ac_ext >&5
 
6003
 
 
6004
ac_cv_lib_vorbis_vorbis_info_init=no
 
6005
fi
 
6006
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6007
LIBS=$ac_check_lib_save_LIBS
 
6008
fi
 
6009
echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5
 
6010
echo "${ECHO_T}$ac_cv_lib_vorbis_vorbis_info_init" >&6
 
6011
if test $ac_cv_lib_vorbis_vorbis_info_init = yes; then
 
6012
  vorbis_libs=yes
 
6013
else
 
6014
  vorbis_libs=no
 
6015
fi
 
6016
 
 
6017
                if test "$vorbis_libs" = "yes"; then
 
6018
                        PREV_LIBS=LIBS
 
6019
                        LIBS="$LIBS -lvorbis"
 
6020
                        echo "$as_me:$LINENO: checking for ov_open_callbacks in -lvorbisfile" >&5
 
6021
echo $ECHO_N "checking for ov_open_callbacks in -lvorbisfile... $ECHO_C" >&6
 
6022
if test "${ac_cv_lib_vorbisfile_ov_open_callbacks+set}" = set; then
 
6023
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6024
else
 
6025
  ac_check_lib_save_LIBS=$LIBS
 
6026
LIBS="-lvorbisfile  $LIBS"
 
6027
cat >conftest.$ac_ext <<_ACEOF
 
6028
#line $LINENO "configure"
 
6029
/* confdefs.h.  */
 
6030
_ACEOF
 
6031
cat confdefs.h >>conftest.$ac_ext
 
6032
cat >>conftest.$ac_ext <<_ACEOF
 
6033
/* end confdefs.h.  */
 
6034
 
 
6035
/* Override any gcc2 internal prototype to avoid an error.  */
 
6036
#ifdef __cplusplus
 
6037
extern "C"
 
6038
#endif
 
6039
/* We use char because int might match the return type of a gcc2
 
6040
   builtin and then its argument prototype would still apply.  */
 
6041
char ov_open_callbacks ();
 
6042
int
 
6043
main ()
 
6044
{
 
6045
ov_open_callbacks ();
 
6046
  ;
 
6047
  return 0;
 
6048
}
 
6049
_ACEOF
 
6050
rm -f conftest.$ac_objext conftest$ac_exeext
 
6051
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6052
  (eval $ac_link) 2>&5
 
6053
  ac_status=$?
 
6054
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6055
  (exit $ac_status); } &&
 
6056
         { ac_try='test -s conftest$ac_exeext'
 
6057
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6058
  (eval $ac_try) 2>&5
 
6059
  ac_status=$?
 
6060
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6061
  (exit $ac_status); }; }; then
 
6062
  ac_cv_lib_vorbisfile_ov_open_callbacks=yes
 
6063
else
 
6064
  echo "$as_me: failed program was:" >&5
 
6065
sed 's/^/| /' conftest.$ac_ext >&5
 
6066
 
 
6067
ac_cv_lib_vorbisfile_ov_open_callbacks=no
 
6068
fi
 
6069
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6070
LIBS=$ac_check_lib_save_LIBS
 
6071
fi
 
6072
echo "$as_me:$LINENO: result: $ac_cv_lib_vorbisfile_ov_open_callbacks" >&5
 
6073
echo "${ECHO_T}$ac_cv_lib_vorbisfile_ov_open_callbacks" >&6
 
6074
if test $ac_cv_lib_vorbisfile_ov_open_callbacks = yes; then
 
6075
  vorbisfile_libs=yes
 
6076
else
 
6077
  vorbisfile_libs=no
 
6078
fi
 
6079
 
 
6080
                        if test "$vorbisfile_libs" = "yes"; then
 
6081
                                LIBS="$LIBS -lvorbisfile"
 
6082
 
 
6083
cat >>confdefs.h <<_ACEOF
 
6084
#define USE_VORBIS_INPUT 1
 
6085
_ACEOF
 
6086
 
 
6087
                                OPTION_VORBIS="yes"
 
6088
                        else
 
6089
                                LIBS=PREV_LIBS
 
6090
                        fi
 
6091
                fi
 
6092
        fi
 
6093
fi
 
6094
 
 
6095
if test "$enable_audiofile" != "no"; then
 
6096
        # Extract the first word of "audiofile-config", so it can be a program name with args.
 
6097
set dummy audiofile-config; ac_word=$2
 
6098
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6099
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6100
if test "${ac_cv_prog_af_config+set}" = set; then
 
6101
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6102
else
 
6103
  if test -n "$af_config"; then
 
6104
  ac_cv_prog_af_config="$af_config" # Let the user override the test.
 
6105
else
 
6106
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6107
for as_dir in $PATH
 
6108
do
 
6109
  IFS=$as_save_IFS
 
6110
  test -z "$as_dir" && as_dir=.
 
6111
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6112
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6113
    ac_cv_prog_af_config="yes"
 
6114
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6115
    break 2
 
6116
  fi
 
6117
done
 
6118
done
 
6119
 
 
6120
  test -z "$ac_cv_prog_af_config" && ac_cv_prog_af_config="no"
 
6121
fi
 
6122
fi
 
6123
af_config=$ac_cv_prog_af_config
 
6124
if test -n "$af_config"; then
 
6125
  echo "$as_me:$LINENO: result: $af_config" >&5
 
6126
echo "${ECHO_T}$af_config" >&6
 
6127
else
 
6128
  echo "$as_me:$LINENO: result: no" >&5
 
6129
echo "${ECHO_T}no" >&6
 
6130
fi
 
6131
 
 
6132
        if test "$af_config" = "yes"; then
 
6133
                af_cflags=`audiofile-config --cflags`
 
6134
                if test "$af_cflags" != ""; then
 
6135
                        CFLAGS="$CFLAGS $af_cflags"
 
6136
                fi
 
6137
                af_libs=`audiofile-config --libs`
 
6138
                LIBS="$LIBS $af_libs"
 
6139
 
 
6140
cat >>confdefs.h <<_ACEOF
 
6141
#define USE_AUDIOFILE_INPUT 1
 
6142
_ACEOF
 
6143
 
 
6144
                OPTION_AUDIOFILE="yes"
 
6145
        else
 
6146
 
 
6147
for ac_header in audiofile.h
 
6148
do
 
6149
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6150
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6151
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6152
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6153
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6154
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6155
fi
 
6156
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6157
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6158
else
 
6159
  # Is the header compilable?
 
6160
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
6161
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
6162
cat >conftest.$ac_ext <<_ACEOF
 
6163
#line $LINENO "configure"
 
6164
/* confdefs.h.  */
 
6165
_ACEOF
 
6166
cat confdefs.h >>conftest.$ac_ext
 
6167
cat >>conftest.$ac_ext <<_ACEOF
 
6168
/* end confdefs.h.  */
 
6169
$ac_includes_default
 
6170
#include <$ac_header>
 
6171
_ACEOF
 
6172
rm -f conftest.$ac_objext
 
6173
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6174
  (eval $ac_compile) 2>&5
 
6175
  ac_status=$?
 
6176
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6177
  (exit $ac_status); } &&
 
6178
         { ac_try='test -s conftest.$ac_objext'
 
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_header_compiler=yes
 
6185
else
 
6186
  echo "$as_me: failed program was:" >&5
 
6187
sed 's/^/| /' conftest.$ac_ext >&5
 
6188
 
 
6189
ac_header_compiler=no
 
6190
fi
 
6191
rm -f conftest.$ac_objext conftest.$ac_ext
 
6192
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
6193
echo "${ECHO_T}$ac_header_compiler" >&6
 
6194
 
 
6195
# Is the header present?
 
6196
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
6197
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
6198
cat >conftest.$ac_ext <<_ACEOF
 
6199
#line $LINENO "configure"
 
6200
/* confdefs.h.  */
 
6201
_ACEOF
 
6202
cat confdefs.h >>conftest.$ac_ext
 
6203
cat >>conftest.$ac_ext <<_ACEOF
 
6204
/* end confdefs.h.  */
 
6205
#include <$ac_header>
 
6206
_ACEOF
 
6207
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6208
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6209
  ac_status=$?
 
6210
  grep -v '^ *+' conftest.er1 >conftest.err
 
6211
  rm -f conftest.er1
 
6212
  cat conftest.err >&5
 
6213
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6214
  (exit $ac_status); } >/dev/null; then
 
6215
  if test -s conftest.err; then
 
6216
    ac_cpp_err=$ac_c_preproc_warn_flag
 
6217
  else
 
6218
    ac_cpp_err=
 
6219
  fi
 
6220
else
 
6221
  ac_cpp_err=yes
 
6222
fi
 
6223
if test -z "$ac_cpp_err"; then
 
6224
  ac_header_preproc=yes
 
6225
else
 
6226
  echo "$as_me: failed program was:" >&5
 
6227
sed 's/^/| /' conftest.$ac_ext >&5
 
6228
 
 
6229
  ac_header_preproc=no
 
6230
fi
 
6231
rm -f conftest.err conftest.$ac_ext
 
6232
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
6233
echo "${ECHO_T}$ac_header_preproc" >&6
 
6234
 
 
6235
# So?  What about this header?
 
6236
case $ac_header_compiler:$ac_header_preproc in
 
6237
  yes:no )
 
6238
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
6239
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
6240
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
6241
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
6242
    (
 
6243
      cat <<\_ASBOX
 
6244
## ------------------------------------ ##
 
6245
## Report this to bug-autoconf@gnu.org. ##
 
6246
## ------------------------------------ ##
 
6247
_ASBOX
 
6248
    ) |
 
6249
      sed "s/^/$as_me: WARNING:     /" >&2
 
6250
    ;;
 
6251
  no:yes )
 
6252
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
6253
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
6254
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
6255
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
6256
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
6257
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
6258
    (
 
6259
      cat <<\_ASBOX
 
6260
## ------------------------------------ ##
 
6261
## Report this to bug-autoconf@gnu.org. ##
 
6262
## ------------------------------------ ##
 
6263
_ASBOX
 
6264
    ) |
 
6265
      sed "s/^/$as_me: WARNING:     /" >&2
 
6266
    ;;
 
6267
esac
 
6268
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6269
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6270
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6271
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6272
else
 
6273
  eval "$as_ac_Header=$ac_header_preproc"
 
6274
fi
 
6275
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6276
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6277
 
 
6278
fi
 
6279
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
6280
  cat >>confdefs.h <<_ACEOF
 
6281
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6282
_ACEOF
 
6283
 audiofile_headers=yes
 
6284
else
 
6285
  audiofile_headers=no
 
6286
fi
 
6287
 
 
6288
done
 
6289
 
 
6290
                if test "$audiofile_headers" = "yes"; then
 
6291
                        echo "$as_me:$LINENO: checking for afOpenFile in -laudiofile" >&5
 
6292
echo $ECHO_N "checking for afOpenFile in -laudiofile... $ECHO_C" >&6
 
6293
if test "${ac_cv_lib_audiofile_afOpenFile+set}" = set; then
 
6294
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6295
else
 
6296
  ac_check_lib_save_LIBS=$LIBS
 
6297
LIBS="-laudiofile  $LIBS"
 
6298
cat >conftest.$ac_ext <<_ACEOF
 
6299
#line $LINENO "configure"
 
6300
/* confdefs.h.  */
 
6301
_ACEOF
 
6302
cat confdefs.h >>conftest.$ac_ext
 
6303
cat >>conftest.$ac_ext <<_ACEOF
 
6304
/* end confdefs.h.  */
 
6305
 
 
6306
/* Override any gcc2 internal prototype to avoid an error.  */
 
6307
#ifdef __cplusplus
 
6308
extern "C"
 
6309
#endif
 
6310
/* We use char because int might match the return type of a gcc2
 
6311
   builtin and then its argument prototype would still apply.  */
 
6312
char afOpenFile ();
 
6313
int
 
6314
main ()
 
6315
{
 
6316
afOpenFile ();
 
6317
  ;
 
6318
  return 0;
 
6319
}
 
6320
_ACEOF
 
6321
rm -f conftest.$ac_objext conftest$ac_exeext
 
6322
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6323
  (eval $ac_link) 2>&5
 
6324
  ac_status=$?
 
6325
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6326
  (exit $ac_status); } &&
 
6327
         { ac_try='test -s conftest$ac_exeext'
 
6328
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6329
  (eval $ac_try) 2>&5
 
6330
  ac_status=$?
 
6331
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6332
  (exit $ac_status); }; }; then
 
6333
  ac_cv_lib_audiofile_afOpenFile=yes
 
6334
else
 
6335
  echo "$as_me: failed program was:" >&5
 
6336
sed 's/^/| /' conftest.$ac_ext >&5
 
6337
 
 
6338
ac_cv_lib_audiofile_afOpenFile=no
 
6339
fi
 
6340
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6341
LIBS=$ac_check_lib_save_LIBS
 
6342
fi
 
6343
echo "$as_me:$LINENO: result: $ac_cv_lib_audiofile_afOpenFile" >&5
 
6344
echo "${ECHO_T}$ac_cv_lib_audiofile_afOpenFile" >&6
 
6345
if test $ac_cv_lib_audiofile_afOpenFile = yes; then
 
6346
  audiofile_libs=yes
 
6347
else
 
6348
  audiofile_libs=no
 
6349
fi
 
6350
 
 
6351
                        if test "$audiofile_libs" = "yes"; then
 
6352
                                LIBS="$LIBS -laudiofile"
 
6353
 
 
6354
cat >>confdefs.h <<_ACEOF
 
6355
#define USE_AUDIOFILE_INPUT 1
 
6356
_ACEOF
 
6357
 
 
6358
                                OPTION_AUDIOFILE="yes"
 
6359
                        fi
 
6360
                fi
 
6361
        fi
 
6362
fi
 
6363
 
 
6364
if test "$enable_mpg123" != "no"; then
 
6365
        # Extract the first word of "mpg123", so it can be a program name with args.
 
6366
set dummy mpg123; ac_word=$2
 
6367
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6368
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6369
if test "${ac_cv_prog_MPG123_PROG+set}" = set; then
 
6370
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6371
else
 
6372
  if test -n "$MPG123_PROG"; then
 
6373
  ac_cv_prog_MPG123_PROG="$MPG123_PROG" # Let the user override the test.
 
6374
else
 
6375
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6376
for as_dir in $PATH
 
6377
do
 
6378
  IFS=$as_save_IFS
 
6379
  test -z "$as_dir" && as_dir=.
 
6380
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6381
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6382
    ac_cv_prog_MPG123_PROG="yes"
 
6383
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6384
    break 2
 
6385
  fi
 
6386
done
 
6387
done
 
6388
 
 
6389
fi
 
6390
fi
 
6391
MPG123_PROG=$ac_cv_prog_MPG123_PROG
 
6392
if test -n "$MPG123_PROG"; then
 
6393
  echo "$as_me:$LINENO: result: $MPG123_PROG" >&5
 
6394
echo "${ECHO_T}$MPG123_PROG" >&6
 
6395
else
 
6396
  echo "$as_me:$LINENO: result: no" >&5
 
6397
echo "${ECHO_T}no" >&6
 
6398
fi
 
6399
 
 
6400
        if test "$MPG123_PROG" = "yes"; then
 
6401
                if test "$SOX_PROG" = "yes"; then
 
6402
 
 
6403
cat >>confdefs.h <<_ACEOF
 
6404
#define USE_MPG123_INPUT 1
 
6405
_ACEOF
 
6406
 
 
6407
                        OPTION_MPG123="yes"
 
6408
                else
 
6409
                        # Extract the first word of "sox", so it can be a program name with args.
 
6410
set dummy sox; ac_word=$2
 
6411
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6412
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6413
if test "${ac_cv_prog_SOX_PROG+set}" = set; then
 
6414
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6415
else
 
6416
  if test -n "$SOX_PROG"; then
 
6417
  ac_cv_prog_SOX_PROG="$SOX_PROG" # Let the user override the test.
 
6418
else
 
6419
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6420
for as_dir in $PATH
 
6421
do
 
6422
  IFS=$as_save_IFS
 
6423
  test -z "$as_dir" && as_dir=.
 
6424
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6425
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6426
    ac_cv_prog_SOX_PROG="yes"
 
6427
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6428
    break 2
 
6429
  fi
 
6430
done
 
6431
done
 
6432
 
 
6433
fi
 
6434
fi
 
6435
SOX_PROG=$ac_cv_prog_SOX_PROG
 
6436
if test -n "$SOX_PROG"; then
 
6437
  echo "$as_me:$LINENO: result: $SOX_PROG" >&5
 
6438
echo "${ECHO_T}$SOX_PROG" >&6
 
6439
else
 
6440
  echo "$as_me:$LINENO: result: no" >&5
 
6441
echo "${ECHO_T}no" >&6
 
6442
fi
 
6443
 
 
6444
                        if test "$SOX_PROG" = "yes"; then
 
6445
 
 
6446
cat >>confdefs.h <<_ACEOF
 
6447
#define USE_MPG123_INPUT 1
 
6448
_ACEOF
 
6449
 
 
6450
                                OPTION_MPG123="yes"
 
6451
                        else
 
6452
                                echo "$as_me:$LINENO: result: ** mpg123 support disabled: couldn't find sox! **" >&5
 
6453
echo "${ECHO_T}** mpg123 support disabled: couldn't find sox! **" >&6
 
6454
                        fi
 
6455
                fi
 
6456
        fi
 
6457
fi
 
6458
 
 
6459
if test "$enable_ogg123" != "no"; then
 
6460
        # Extract the first word of "ogg123", so it can be a program name with args.
 
6461
set dummy ogg123; ac_word=$2
 
6462
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6463
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6464
if test "${ac_cv_prog_OGG123_PROG+set}" = set; then
 
6465
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6466
else
 
6467
  if test -n "$OGG123_PROG"; then
 
6468
  ac_cv_prog_OGG123_PROG="$OGG123_PROG" # Let the user override the test.
 
6469
else
 
6470
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6471
for as_dir in $PATH
 
6472
do
 
6473
  IFS=$as_save_IFS
 
6474
  test -z "$as_dir" && as_dir=.
 
6475
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6476
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6477
    ac_cv_prog_OGG123_PROG="yes"
 
6478
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6479
    break 2
 
6480
  fi
 
6481
done
 
6482
done
 
6483
 
 
6484
fi
 
6485
fi
 
6486
OGG123_PROG=$ac_cv_prog_OGG123_PROG
 
6487
if test -n "$OGG123_PROG"; then
 
6488
  echo "$as_me:$LINENO: result: $OGG123_PROG" >&5
 
6489
echo "${ECHO_T}$OGG123_PROG" >&6
 
6490
else
 
6491
  echo "$as_me:$LINENO: result: no" >&5
 
6492
echo "${ECHO_T}no" >&6
 
6493
fi
 
6494
 
 
6495
        if test "$OGG123_PROG" = "yes"; then
 
6496
 
 
6497
cat >>confdefs.h <<_ACEOF
 
6498
#define USE_OGG123_INPUT 1
 
6499
_ACEOF
 
6500
 
 
6501
                OPTION_OGG123="yes"
 
6502
        fi
 
6503
fi
 
6504
 
 
6505
if test "$enable_xsetpointer" != "no"; then
 
6506
        # Extract the first word of "xsetpointer", so it can be a program name with args.
 
6507
set dummy xsetpointer; ac_word=$2
 
6508
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6509
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6510
if test "${ac_cv_prog_XSETPOINTER_PROG+set}" = set; then
 
6511
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6512
else
 
6513
  if test -n "$XSETPOINTER_PROG"; then
 
6514
  ac_cv_prog_XSETPOINTER_PROG="$XSETPOINTER_PROG" # Let the user override the test.
 
6515
else
 
6516
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6517
for as_dir in $PATH
 
6518
do
 
6519
  IFS=$as_save_IFS
 
6520
  test -z "$as_dir" && as_dir=.
 
6521
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6522
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6523
    ac_cv_prog_XSETPOINTER_PROG="yes"
 
6524
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6525
    break 2
 
6526
  fi
 
6527
done
 
6528
done
 
6529
 
 
6530
fi
 
6531
fi
 
6532
XSETPOINTER_PROG=$ac_cv_prog_XSETPOINTER_PROG
 
6533
if test -n "$XSETPOINTER_PROG"; then
 
6534
  echo "$as_me:$LINENO: result: $XSETPOINTER_PROG" >&5
 
6535
echo "${ECHO_T}$XSETPOINTER_PROG" >&6
 
6536
else
 
6537
  echo "$as_me:$LINENO: result: no" >&5
 
6538
echo "${ECHO_T}no" >&6
 
6539
fi
 
6540
 
 
6541
        if test "$XSETPOINTER_PROG" = "yes"; then
 
6542
 
 
6543
cat >>confdefs.h <<_ACEOF
 
6544
#define USE_XSETPOINTER 1
 
6545
_ACEOF
 
6546
 
 
6547
        else
 
6548
                if test "$enable_xsetpointer" = "yes"; then
 
6549
                        { { echo "$as_me:$LINENO: error: ** xsetpointer not found. **" >&5
 
6550
echo "$as_me: error: ** xsetpointer not found. **" >&2;}
 
6551
   { (exit 1); exit 1; }; }
 
6552
                fi
 
6553
        fi
 
6554
fi
 
6555
 
 
6556
if test "$enable_movqfix" = "no"; then
 
6557
 
 
6558
cat >>confdefs.h <<_ACEOF
 
6559
#define OVERRIDE_MOVQ_AUTODETECT 1
 
6560
_ACEOF
 
6561
 
 
6562
fi
 
6563
 
 
6564
using_alsa=no
 
6565
using_oss=no
 
6566
using_jack=no
 
6567
 
 
6568
if test "$enable_alsa" != "no"; then
 
6569
    echo "$as_me:$LINENO: checking for snd_pcm_writei in -lasound" >&5
 
6570
echo $ECHO_N "checking for snd_pcm_writei in -lasound... $ECHO_C" >&6
 
6571
if test "${ac_cv_lib_asound_snd_pcm_writei+set}" = set; then
 
6572
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6573
else
 
6574
  ac_check_lib_save_LIBS=$LIBS
 
6575
LIBS="-lasound  $LIBS"
 
6576
cat >conftest.$ac_ext <<_ACEOF
 
6577
#line $LINENO "configure"
 
6578
/* confdefs.h.  */
 
6579
_ACEOF
 
6580
cat confdefs.h >>conftest.$ac_ext
 
6581
cat >>conftest.$ac_ext <<_ACEOF
 
6582
/* end confdefs.h.  */
 
6583
 
 
6584
/* Override any gcc2 internal prototype to avoid an error.  */
 
6585
#ifdef __cplusplus
 
6586
extern "C"
 
6587
#endif
 
6588
/* We use char because int might match the return type of a gcc2
 
6589
   builtin and then its argument prototype would still apply.  */
 
6590
char snd_pcm_writei ();
 
6591
int
 
6592
main ()
 
6593
{
 
6594
snd_pcm_writei ();
 
6595
  ;
 
6596
  return 0;
 
6597
}
 
6598
_ACEOF
 
6599
rm -f conftest.$ac_objext conftest$ac_exeext
 
6600
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6601
  (eval $ac_link) 2>&5
 
6602
  ac_status=$?
 
6603
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6604
  (exit $ac_status); } &&
 
6605
         { ac_try='test -s conftest$ac_exeext'
 
6606
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6607
  (eval $ac_try) 2>&5
 
6608
  ac_status=$?
 
6609
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6610
  (exit $ac_status); }; }; then
 
6611
  ac_cv_lib_asound_snd_pcm_writei=yes
 
6612
else
 
6613
  echo "$as_me: failed program was:" >&5
 
6614
sed 's/^/| /' conftest.$ac_ext >&5
 
6615
 
 
6616
ac_cv_lib_asound_snd_pcm_writei=no
 
6617
fi
 
6618
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6619
LIBS=$ac_check_lib_save_LIBS
 
6620
fi
 
6621
echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_writei" >&5
 
6622
echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_writei" >&6
 
6623
if test $ac_cv_lib_asound_snd_pcm_writei = yes; then
 
6624
  alsalib=yes
 
6625
else
 
6626
  alsalib=no
 
6627
fi
 
6628
 
 
6629
 
 
6630
for ac_header in alsa/asoundlib.h
 
6631
do
 
6632
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6633
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6634
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6635
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6636
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6637
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6638
fi
 
6639
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6640
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6641
else
 
6642
  # Is the header compilable?
 
6643
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
6644
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
6645
cat >conftest.$ac_ext <<_ACEOF
 
6646
#line $LINENO "configure"
 
6647
/* confdefs.h.  */
 
6648
_ACEOF
 
6649
cat confdefs.h >>conftest.$ac_ext
 
6650
cat >>conftest.$ac_ext <<_ACEOF
 
6651
/* end confdefs.h.  */
 
6652
$ac_includes_default
 
6653
#include <$ac_header>
 
6654
_ACEOF
 
6655
rm -f conftest.$ac_objext
 
6656
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6657
  (eval $ac_compile) 2>&5
 
6658
  ac_status=$?
 
6659
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6660
  (exit $ac_status); } &&
 
6661
         { ac_try='test -s conftest.$ac_objext'
 
6662
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6663
  (eval $ac_try) 2>&5
 
6664
  ac_status=$?
 
6665
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6666
  (exit $ac_status); }; }; then
 
6667
  ac_header_compiler=yes
 
6668
else
 
6669
  echo "$as_me: failed program was:" >&5
 
6670
sed 's/^/| /' conftest.$ac_ext >&5
 
6671
 
 
6672
ac_header_compiler=no
 
6673
fi
 
6674
rm -f conftest.$ac_objext conftest.$ac_ext
 
6675
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
6676
echo "${ECHO_T}$ac_header_compiler" >&6
 
6677
 
 
6678
# Is the header present?
 
6679
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
6680
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
6681
cat >conftest.$ac_ext <<_ACEOF
 
6682
#line $LINENO "configure"
 
6683
/* confdefs.h.  */
 
6684
_ACEOF
 
6685
cat confdefs.h >>conftest.$ac_ext
 
6686
cat >>conftest.$ac_ext <<_ACEOF
 
6687
/* end confdefs.h.  */
 
6688
#include <$ac_header>
 
6689
_ACEOF
 
6690
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6691
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6692
  ac_status=$?
 
6693
  grep -v '^ *+' conftest.er1 >conftest.err
 
6694
  rm -f conftest.er1
 
6695
  cat conftest.err >&5
 
6696
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6697
  (exit $ac_status); } >/dev/null; then
 
6698
  if test -s conftest.err; then
 
6699
    ac_cpp_err=$ac_c_preproc_warn_flag
 
6700
  else
 
6701
    ac_cpp_err=
 
6702
  fi
 
6703
else
 
6704
  ac_cpp_err=yes
 
6705
fi
 
6706
if test -z "$ac_cpp_err"; then
 
6707
  ac_header_preproc=yes
 
6708
else
 
6709
  echo "$as_me: failed program was:" >&5
 
6710
sed 's/^/| /' conftest.$ac_ext >&5
 
6711
 
 
6712
  ac_header_preproc=no
 
6713
fi
 
6714
rm -f conftest.err conftest.$ac_ext
 
6715
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
6716
echo "${ECHO_T}$ac_header_preproc" >&6
 
6717
 
 
6718
# So?  What about this header?
 
6719
case $ac_header_compiler:$ac_header_preproc in
 
6720
  yes:no )
 
6721
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
6722
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
6723
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
6724
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
6725
    (
 
6726
      cat <<\_ASBOX
 
6727
## ------------------------------------ ##
 
6728
## Report this to bug-autoconf@gnu.org. ##
 
6729
## ------------------------------------ ##
 
6730
_ASBOX
 
6731
    ) |
 
6732
      sed "s/^/$as_me: WARNING:     /" >&2
 
6733
    ;;
 
6734
  no:yes )
 
6735
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
6736
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
6737
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
6738
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
6739
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
6740
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
6741
    (
 
6742
      cat <<\_ASBOX
 
6743
## ------------------------------------ ##
 
6744
## Report this to bug-autoconf@gnu.org. ##
 
6745
## ------------------------------------ ##
 
6746
_ASBOX
 
6747
    ) |
 
6748
      sed "s/^/$as_me: WARNING:     /" >&2
 
6749
    ;;
 
6750
esac
 
6751
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6752
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6753
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6754
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6755
else
 
6756
  eval "$as_ac_Header=$ac_header_preproc"
 
6757
fi
 
6758
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6759
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6760
 
 
6761
fi
 
6762
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
6763
  cat >>confdefs.h <<_ACEOF
 
6764
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6765
_ACEOF
 
6766
 alsaheader=yes
 
6767
else
 
6768
  alsaheader=no
 
6769
fi
 
6770
 
 
6771
done
 
6772
 
 
6773
 
 
6774
    if test "$alsalib" = "yes"; then
 
6775
            if test "$alsaheader" = "yes"; then
 
6776
 
 
6777
cat >>confdefs.h <<_ACEOF
 
6778
#define USE_ALSA 1
 
6779
_ACEOF
 
6780
 
 
6781
                    LIBS="$LIBS -lasound"
 
6782
                    using_alsa=yes
 
6783
                    OPTION_ALSA=yes
 
6784
            else
 
6785
                    if test "$enable_alsa" = "yes"; then
 
6786
                            { { echo "$as_me:$LINENO: error: ** Coulnd't find ALSA header file sys/asoundlib.h **" >&5
 
6787
echo "$as_me: error: ** Coulnd't find ALSA header file sys/asoundlib.h **" >&2;}
 
6788
   { (exit 1); exit 1; }; }
 
6789
                    fi
 
6790
            fi
 
6791
    else
 
6792
            if test "$enable_alsa" = "yes"; then
 
6793
                    { { echo "$as_me:$LINENO: error: ** Coulnd'f find ALSA library libasound. **" >&5
 
6794
echo "$as_me: error: ** Coulnd'f find ALSA library libasound. **" >&2;}
 
6795
   { (exit 1); exit 1; }; }
 
6796
            fi
 
6797
    fi
 
6798
fi
 
6799
 
 
6800
if test "$enable_jack" != "no"; then
 
6801
    echo "$as_me:$LINENO: checking for jack_activate in -ljack" >&5
 
6802
echo $ECHO_N "checking for jack_activate in -ljack... $ECHO_C" >&6
 
6803
if test "${ac_cv_lib_jack_jack_activate+set}" = set; then
 
6804
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6805
else
 
6806
  ac_check_lib_save_LIBS=$LIBS
 
6807
LIBS="-ljack  $LIBS"
 
6808
cat >conftest.$ac_ext <<_ACEOF
 
6809
#line $LINENO "configure"
 
6810
/* confdefs.h.  */
 
6811
_ACEOF
 
6812
cat confdefs.h >>conftest.$ac_ext
 
6813
cat >>conftest.$ac_ext <<_ACEOF
 
6814
/* end confdefs.h.  */
 
6815
 
 
6816
/* Override any gcc2 internal prototype to avoid an error.  */
 
6817
#ifdef __cplusplus
 
6818
extern "C"
 
6819
#endif
 
6820
/* We use char because int might match the return type of a gcc2
 
6821
   builtin and then its argument prototype would still apply.  */
 
6822
char jack_activate ();
 
6823
int
 
6824
main ()
 
6825
{
 
6826
jack_activate ();
 
6827
  ;
 
6828
  return 0;
 
6829
}
 
6830
_ACEOF
 
6831
rm -f conftest.$ac_objext conftest$ac_exeext
 
6832
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6833
  (eval $ac_link) 2>&5
 
6834
  ac_status=$?
 
6835
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6836
  (exit $ac_status); } &&
 
6837
         { ac_try='test -s conftest$ac_exeext'
 
6838
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6839
  (eval $ac_try) 2>&5
 
6840
  ac_status=$?
 
6841
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6842
  (exit $ac_status); }; }; then
 
6843
  ac_cv_lib_jack_jack_activate=yes
 
6844
else
 
6845
  echo "$as_me: failed program was:" >&5
 
6846
sed 's/^/| /' conftest.$ac_ext >&5
 
6847
 
 
6848
ac_cv_lib_jack_jack_activate=no
 
6849
fi
 
6850
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6851
LIBS=$ac_check_lib_save_LIBS
 
6852
fi
 
6853
echo "$as_me:$LINENO: result: $ac_cv_lib_jack_jack_activate" >&5
 
6854
echo "${ECHO_T}$ac_cv_lib_jack_jack_activate" >&6
 
6855
if test $ac_cv_lib_jack_jack_activate = yes; then
 
6856
  jacklib=yes
 
6857
else
 
6858
  jacklib=no
 
6859
fi
 
6860
 
 
6861
 
 
6862
for ac_header in jack/jack.h
 
6863
do
 
6864
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6865
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6866
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6867
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6868
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6869
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6870
fi
 
6871
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6872
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6873
else
 
6874
  # Is the header compilable?
 
6875
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
6876
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
6877
cat >conftest.$ac_ext <<_ACEOF
 
6878
#line $LINENO "configure"
 
6879
/* confdefs.h.  */
 
6880
_ACEOF
 
6881
cat confdefs.h >>conftest.$ac_ext
 
6882
cat >>conftest.$ac_ext <<_ACEOF
 
6883
/* end confdefs.h.  */
 
6884
$ac_includes_default
 
6885
#include <$ac_header>
 
6886
_ACEOF
 
6887
rm -f conftest.$ac_objext
 
6888
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6889
  (eval $ac_compile) 2>&5
 
6890
  ac_status=$?
 
6891
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6892
  (exit $ac_status); } &&
 
6893
         { ac_try='test -s conftest.$ac_objext'
 
6894
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6895
  (eval $ac_try) 2>&5
 
6896
  ac_status=$?
 
6897
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6898
  (exit $ac_status); }; }; then
 
6899
  ac_header_compiler=yes
 
6900
else
 
6901
  echo "$as_me: failed program was:" >&5
 
6902
sed 's/^/| /' conftest.$ac_ext >&5
 
6903
 
 
6904
ac_header_compiler=no
 
6905
fi
 
6906
rm -f conftest.$ac_objext conftest.$ac_ext
 
6907
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
6908
echo "${ECHO_T}$ac_header_compiler" >&6
 
6909
 
 
6910
# Is the header present?
 
6911
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
6912
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
6913
cat >conftest.$ac_ext <<_ACEOF
 
6914
#line $LINENO "configure"
 
6915
/* confdefs.h.  */
 
6916
_ACEOF
 
6917
cat confdefs.h >>conftest.$ac_ext
 
6918
cat >>conftest.$ac_ext <<_ACEOF
 
6919
/* end confdefs.h.  */
 
6920
#include <$ac_header>
 
6921
_ACEOF
 
6922
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6923
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6924
  ac_status=$?
 
6925
  grep -v '^ *+' conftest.er1 >conftest.err
 
6926
  rm -f conftest.er1
 
6927
  cat conftest.err >&5
 
6928
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6929
  (exit $ac_status); } >/dev/null; then
 
6930
  if test -s conftest.err; then
 
6931
    ac_cpp_err=$ac_c_preproc_warn_flag
 
6932
  else
 
6933
    ac_cpp_err=
 
6934
  fi
 
6935
else
 
6936
  ac_cpp_err=yes
 
6937
fi
 
6938
if test -z "$ac_cpp_err"; then
 
6939
  ac_header_preproc=yes
 
6940
else
 
6941
  echo "$as_me: failed program was:" >&5
 
6942
sed 's/^/| /' conftest.$ac_ext >&5
 
6943
 
 
6944
  ac_header_preproc=no
 
6945
fi
 
6946
rm -f conftest.err conftest.$ac_ext
 
6947
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
6948
echo "${ECHO_T}$ac_header_preproc" >&6
 
6949
 
 
6950
# So?  What about this header?
 
6951
case $ac_header_compiler:$ac_header_preproc in
 
6952
  yes:no )
 
6953
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
6954
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
6955
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
6956
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
6957
    (
 
6958
      cat <<\_ASBOX
 
6959
## ------------------------------------ ##
 
6960
## Report this to bug-autoconf@gnu.org. ##
 
6961
## ------------------------------------ ##
 
6962
_ASBOX
 
6963
    ) |
 
6964
      sed "s/^/$as_me: WARNING:     /" >&2
 
6965
    ;;
 
6966
  no:yes )
 
6967
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
6968
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
6969
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
6970
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
6971
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
6972
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
6973
    (
 
6974
      cat <<\_ASBOX
 
6975
## ------------------------------------ ##
 
6976
## Report this to bug-autoconf@gnu.org. ##
 
6977
## ------------------------------------ ##
 
6978
_ASBOX
 
6979
    ) |
 
6980
      sed "s/^/$as_me: WARNING:     /" >&2
 
6981
    ;;
 
6982
esac
 
6983
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6984
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6985
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6986
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6987
else
 
6988
  eval "$as_ac_Header=$ac_header_preproc"
 
6989
fi
 
6990
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6991
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6992
 
 
6993
fi
 
6994
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
6995
  cat >>confdefs.h <<_ACEOF
 
6996
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6997
_ACEOF
 
6998
 jackheader=yes
 
6999
else
 
7000
  jackheader=no
 
7001
fi
 
7002
 
 
7003
done
 
7004
 
 
7005
 
 
7006
    if test "$jacklib" = "yes"; then
 
7007
            if test "$jackheader" = "yes"; then
 
7008
 
 
7009
cat >>confdefs.h <<_ACEOF
 
7010
#define USE_JACK 1
 
7011
_ACEOF
 
7012
 
 
7013
                    LIBS="$LIBS -ljack"
 
7014
                    using_jack=yes
 
7015
                    OPTION_JACK=yes
 
7016
            else
 
7017
                    if test "$enable_jack" = "yes"; then
 
7018
                            { { echo "$as_me:$LINENO: error: ** Coulnd't find JACK header file jack/jack.h **" >&5
 
7019
echo "$as_me: error: ** Coulnd't find JACK header file jack/jack.h **" >&2;}
 
7020
   { (exit 1); exit 1; }; }
 
7021
                    fi
 
7022
            fi
 
7023
    else
 
7024
            if test "$enable_jack" = "yes"; then
 
7025
                    { { echo "$as_me:$LINENO: error: ** Coulnd'f find JACK library libjack. **" >&5
 
7026
echo "$as_me: error: ** Coulnd'f find JACK library libjack. **" >&2;}
 
7027
   { (exit 1); exit 1; }; }
 
7028
            fi
 
7029
    fi
 
7030
fi
 
7031
 
 
7032
 
 
7033
if test "$enable_oss" != "no"; then
 
7034
 
 
7035
 
 
7036
for ac_header in sys/ioctl.h sys/soundcard.h
 
7037
do
 
7038
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7039
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7040
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7041
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
7042
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7043
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7044
fi
 
7045
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
7046
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
7047
else
 
7048
  # Is the header compilable?
 
7049
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
7050
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
7051
cat >conftest.$ac_ext <<_ACEOF
 
7052
#line $LINENO "configure"
 
7053
/* confdefs.h.  */
 
7054
_ACEOF
 
7055
cat confdefs.h >>conftest.$ac_ext
 
7056
cat >>conftest.$ac_ext <<_ACEOF
 
7057
/* end confdefs.h.  */
 
7058
$ac_includes_default
 
7059
#include <$ac_header>
 
7060
_ACEOF
 
7061
rm -f conftest.$ac_objext
 
7062
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7063
  (eval $ac_compile) 2>&5
 
7064
  ac_status=$?
 
7065
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7066
  (exit $ac_status); } &&
 
7067
         { ac_try='test -s conftest.$ac_objext'
 
7068
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7069
  (eval $ac_try) 2>&5
 
7070
  ac_status=$?
 
7071
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7072
  (exit $ac_status); }; }; then
 
7073
  ac_header_compiler=yes
 
7074
else
 
7075
  echo "$as_me: failed program was:" >&5
 
7076
sed 's/^/| /' conftest.$ac_ext >&5
 
7077
 
 
7078
ac_header_compiler=no
 
7079
fi
 
7080
rm -f conftest.$ac_objext conftest.$ac_ext
 
7081
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
7082
echo "${ECHO_T}$ac_header_compiler" >&6
 
7083
 
 
7084
# Is the header present?
 
7085
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
7086
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
7087
cat >conftest.$ac_ext <<_ACEOF
 
7088
#line $LINENO "configure"
 
7089
/* confdefs.h.  */
 
7090
_ACEOF
 
7091
cat confdefs.h >>conftest.$ac_ext
 
7092
cat >>conftest.$ac_ext <<_ACEOF
 
7093
/* end confdefs.h.  */
 
7094
#include <$ac_header>
 
7095
_ACEOF
 
7096
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
7097
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
7098
  ac_status=$?
 
7099
  grep -v '^ *+' conftest.er1 >conftest.err
 
7100
  rm -f conftest.er1
 
7101
  cat conftest.err >&5
 
7102
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7103
  (exit $ac_status); } >/dev/null; then
 
7104
  if test -s conftest.err; then
 
7105
    ac_cpp_err=$ac_c_preproc_warn_flag
 
7106
  else
 
7107
    ac_cpp_err=
 
7108
  fi
 
7109
else
 
7110
  ac_cpp_err=yes
 
7111
fi
 
7112
if test -z "$ac_cpp_err"; then
 
7113
  ac_header_preproc=yes
 
7114
else
 
7115
  echo "$as_me: failed program was:" >&5
 
7116
sed 's/^/| /' conftest.$ac_ext >&5
 
7117
 
 
7118
  ac_header_preproc=no
 
7119
fi
 
7120
rm -f conftest.err conftest.$ac_ext
 
7121
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
7122
echo "${ECHO_T}$ac_header_preproc" >&6
 
7123
 
 
7124
# So?  What about this header?
 
7125
case $ac_header_compiler:$ac_header_preproc in
 
7126
  yes:no )
 
7127
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
7128
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
7129
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
7130
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
7131
    (
 
7132
      cat <<\_ASBOX
 
7133
## ------------------------------------ ##
 
7134
## Report this to bug-autoconf@gnu.org. ##
 
7135
## ------------------------------------ ##
 
7136
_ASBOX
 
7137
    ) |
 
7138
      sed "s/^/$as_me: WARNING:     /" >&2
 
7139
    ;;
 
7140
  no:yes )
 
7141
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
7142
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
7143
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
7144
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
7145
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
7146
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
7147
    (
 
7148
      cat <<\_ASBOX
 
7149
## ------------------------------------ ##
 
7150
## Report this to bug-autoconf@gnu.org. ##
 
7151
## ------------------------------------ ##
 
7152
_ASBOX
 
7153
    ) |
 
7154
      sed "s/^/$as_me: WARNING:     /" >&2
 
7155
    ;;
 
7156
esac
 
7157
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7158
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
7159
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7160
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7161
else
 
7162
  eval "$as_ac_Header=$ac_header_preproc"
 
7163
fi
 
7164
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
7165
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
7166
 
 
7167
fi
 
7168
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
7169
  cat >>confdefs.h <<_ACEOF
 
7170
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7171
_ACEOF
 
7172
 oss=yes
 
7173
else
 
7174
  oss=no
 
7175
fi
 
7176
 
 
7177
done
 
7178
 
 
7179
 
 
7180
        if test "$oss" = "yes"; then
 
7181
 
 
7182
cat >>confdefs.h <<_ACEOF
 
7183
#define USE_OSS 1
 
7184
_ACEOF
 
7185
 
 
7186
                OPTION_OSS=yes
 
7187
                using_oss=yes;
 
7188
        else
 
7189
                if test "$enable_oss" = "yes"; then
 
7190
                        { { echo "$as_me:$LINENO: error: ** Couldn't find OSS header files. ***" >&5
 
7191
echo "$as_me: error: ** Couldn't find OSS header files. ***" >&2;}
 
7192
   { (exit 1); exit 1; }; }
 
7193
                fi
 
7194
        fi
 
7195
fi
 
7196
 
 
7197
if test "$enable_alsamidi" != "no"; then
 
7198
        if test "$using_alsa" = "yes"; then
 
7199
 
 
7200
cat >>confdefs.h <<_ACEOF
 
7201
#define USE_ALSA_MIDI_IN 1
 
7202
_ACEOF
 
7203
 
 
7204
                OPTION_ALSAMIDI="yes"
 
7205
        else
 
7206
                echo "$as_me:$LINENO: checking for snd_seq_open in -lasound" >&5
 
7207
echo $ECHO_N "checking for snd_seq_open in -lasound... $ECHO_C" >&6
 
7208
if test "${ac_cv_lib_asound_snd_seq_open+set}" = set; then
 
7209
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7210
else
 
7211
  ac_check_lib_save_LIBS=$LIBS
 
7212
LIBS="-lasound  $LIBS"
 
7213
cat >conftest.$ac_ext <<_ACEOF
 
7214
#line $LINENO "configure"
 
7215
/* confdefs.h.  */
 
7216
_ACEOF
 
7217
cat confdefs.h >>conftest.$ac_ext
 
7218
cat >>conftest.$ac_ext <<_ACEOF
 
7219
/* end confdefs.h.  */
 
7220
 
 
7221
/* Override any gcc2 internal prototype to avoid an error.  */
 
7222
#ifdef __cplusplus
 
7223
extern "C"
 
7224
#endif
 
7225
/* We use char because int might match the return type of a gcc2
 
7226
   builtin and then its argument prototype would still apply.  */
 
7227
char snd_seq_open ();
 
7228
int
 
7229
main ()
 
7230
{
 
7231
snd_seq_open ();
 
7232
  ;
 
7233
  return 0;
 
7234
}
 
7235
_ACEOF
 
7236
rm -f conftest.$ac_objext conftest$ac_exeext
 
7237
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7238
  (eval $ac_link) 2>&5
 
7239
  ac_status=$?
 
7240
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7241
  (exit $ac_status); } &&
 
7242
         { ac_try='test -s conftest$ac_exeext'
 
7243
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7244
  (eval $ac_try) 2>&5
 
7245
  ac_status=$?
 
7246
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7247
  (exit $ac_status); }; }; then
 
7248
  ac_cv_lib_asound_snd_seq_open=yes
 
7249
else
 
7250
  echo "$as_me: failed program was:" >&5
 
7251
sed 's/^/| /' conftest.$ac_ext >&5
 
7252
 
 
7253
ac_cv_lib_asound_snd_seq_open=no
 
7254
fi
 
7255
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7256
LIBS=$ac_check_lib_save_LIBS
 
7257
fi
 
7258
echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_seq_open" >&5
 
7259
echo "${ECHO_T}$ac_cv_lib_asound_snd_seq_open" >&6
 
7260
if test $ac_cv_lib_asound_snd_seq_open = yes; then
 
7261
  alsalib=yes
 
7262
else
 
7263
  alsalib=no
 
7264
fi
 
7265
 
 
7266
 
 
7267
for ac_header in alsa/asoundlib.h
 
7268
do
 
7269
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7270
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7271
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7272
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
7273
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7274
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7275
fi
 
7276
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
7277
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
7278
else
 
7279
  # Is the header compilable?
 
7280
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
7281
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
7282
cat >conftest.$ac_ext <<_ACEOF
 
7283
#line $LINENO "configure"
 
7284
/* confdefs.h.  */
 
7285
_ACEOF
 
7286
cat confdefs.h >>conftest.$ac_ext
 
7287
cat >>conftest.$ac_ext <<_ACEOF
 
7288
/* end confdefs.h.  */
 
7289
$ac_includes_default
 
7290
#include <$ac_header>
 
7291
_ACEOF
 
7292
rm -f conftest.$ac_objext
 
7293
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7294
  (eval $ac_compile) 2>&5
 
7295
  ac_status=$?
 
7296
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7297
  (exit $ac_status); } &&
 
7298
         { ac_try='test -s conftest.$ac_objext'
 
7299
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7300
  (eval $ac_try) 2>&5
 
7301
  ac_status=$?
 
7302
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7303
  (exit $ac_status); }; }; then
 
7304
  ac_header_compiler=yes
 
7305
else
 
7306
  echo "$as_me: failed program was:" >&5
 
7307
sed 's/^/| /' conftest.$ac_ext >&5
 
7308
 
 
7309
ac_header_compiler=no
 
7310
fi
 
7311
rm -f conftest.$ac_objext conftest.$ac_ext
 
7312
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
7313
echo "${ECHO_T}$ac_header_compiler" >&6
 
7314
 
 
7315
# Is the header present?
 
7316
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
7317
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
7318
cat >conftest.$ac_ext <<_ACEOF
 
7319
#line $LINENO "configure"
 
7320
/* confdefs.h.  */
 
7321
_ACEOF
 
7322
cat confdefs.h >>conftest.$ac_ext
 
7323
cat >>conftest.$ac_ext <<_ACEOF
 
7324
/* end confdefs.h.  */
 
7325
#include <$ac_header>
 
7326
_ACEOF
 
7327
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
7328
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
7329
  ac_status=$?
 
7330
  grep -v '^ *+' conftest.er1 >conftest.err
 
7331
  rm -f conftest.er1
 
7332
  cat conftest.err >&5
 
7333
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7334
  (exit $ac_status); } >/dev/null; then
 
7335
  if test -s conftest.err; then
 
7336
    ac_cpp_err=$ac_c_preproc_warn_flag
 
7337
  else
 
7338
    ac_cpp_err=
 
7339
  fi
 
7340
else
 
7341
  ac_cpp_err=yes
 
7342
fi
 
7343
if test -z "$ac_cpp_err"; then
 
7344
  ac_header_preproc=yes
 
7345
else
 
7346
  echo "$as_me: failed program was:" >&5
 
7347
sed 's/^/| /' conftest.$ac_ext >&5
 
7348
 
 
7349
  ac_header_preproc=no
 
7350
fi
 
7351
rm -f conftest.err conftest.$ac_ext
 
7352
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
7353
echo "${ECHO_T}$ac_header_preproc" >&6
 
7354
 
 
7355
# So?  What about this header?
 
7356
case $ac_header_compiler:$ac_header_preproc in
 
7357
  yes:no )
 
7358
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
7359
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
7360
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
7361
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
7362
    (
 
7363
      cat <<\_ASBOX
 
7364
## ------------------------------------ ##
 
7365
## Report this to bug-autoconf@gnu.org. ##
 
7366
## ------------------------------------ ##
 
7367
_ASBOX
 
7368
    ) |
 
7369
      sed "s/^/$as_me: WARNING:     /" >&2
 
7370
    ;;
 
7371
  no:yes )
 
7372
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
7373
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
7374
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
7375
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
7376
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
7377
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
7378
    (
 
7379
      cat <<\_ASBOX
 
7380
## ------------------------------------ ##
 
7381
## Report this to bug-autoconf@gnu.org. ##
 
7382
## ------------------------------------ ##
 
7383
_ASBOX
 
7384
    ) |
 
7385
      sed "s/^/$as_me: WARNING:     /" >&2
 
7386
    ;;
 
7387
esac
 
7388
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7389
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
7390
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7391
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7392
else
 
7393
  eval "$as_ac_Header=$ac_header_preproc"
 
7394
fi
 
7395
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
7396
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
7397
 
 
7398
fi
 
7399
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
7400
  cat >>confdefs.h <<_ACEOF
 
7401
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7402
_ACEOF
 
7403
 alsaheader=yes
 
7404
else
 
7405
  alsaheader=no
 
7406
fi
 
7407
 
 
7408
done
 
7409
 
 
7410
 
 
7411
                if test "$alsalib" = "yes"; then
 
7412
                        if test "$alsaheader" = "yes"; then
 
7413
 
 
7414
cat >>confdefs.h <<_ACEOF
 
7415
#define USE_ALSA_MIDI_IN 1
 
7416
_ACEOF
 
7417
 
 
7418
                                LIBS="$LIBS -lasound"
 
7419
                                OPTION_ALSAMIDI="yes"
 
7420
                        else
 
7421
                                if test "$enable_alsamidi" = "yes"; then
 
7422
                                        { { echo "$as_me:$LINENO: error: ** Coulnd't find ALSA header file alsa/asoundlib.h **" >&5
 
7423
echo "$as_me: error: ** Coulnd't find ALSA header file alsa/asoundlib.h **" >&2;}
 
7424
   { (exit 1); exit 1; }; }
 
7425
                                fi
 
7426
                        fi
 
7427
                else
 
7428
                        if test "$enable_alsamidin" = "yes"; then
 
7429
                                { { echo "$as_me:$LINENO: error: ** Couldn't find ALSA library libasound. **" >&5
 
7430
echo "$as_me: error: ** Couldn't find ALSA library libasound. **" >&2;}
 
7431
   { (exit 1); exit 1; }; }
 
7432
                        fi
 
7433
                fi
 
7434
        fi
 
7435
fi
 
7436
 
 
7437
if test "$using_alsa" != "yes"; then
 
7438
        if test "$using_oss" != "yes"; then
 
7439
                if test "$using_jack" != "yes"; then
 
7440
                        { { echo "$as_me:$LINENO: error: ** Found neither OSS, ALSA nor JACK - no output device! **" >&5
 
7441
echo "$as_me: error: ** Found neither OSS, ALSA nor JACK - no output device! **" >&2;}
 
7442
   { (exit 1); exit 1; }; }
 
7443
                fi
 
7444
        fi
 
7445
fi
 
7446
 
 
7447
if test "$enable_wav" != "no";
 
7448
then
 
7449
 
 
7450
cat >>confdefs.h <<_ACEOF
 
7451
#define USE_BUILTIN_WAV 1
 
7452
_ACEOF
 
7453
 
 
7454
        OPTION_WAV="yes"
 
7455
fi
 
7456
 
 
7457
if test "$enable_3dnow" = "yes"; then
 
7458
 
 
7459
cat >>confdefs.h <<_ACEOF
 
7460
#define USE_3DNOW 1
 
7461
_ACEOF
 
7462
 
 
7463
fi
 
7464
 
 
7465
if test "$enable_scheduler" != "no"; then
 
7466
        OPTION_SCHEDULER="yes";
 
7467
 
 
7468
cat >>confdefs.h <<_ACEOF
 
7469
#define USE_SCHEDULER 1
 
7470
_ACEOF
 
7471
 
 
7472
fi
 
7473
 
 
7474
if test "$enable_debug" = yes; then
 
7475
 
 
7476
cat >>confdefs.h <<_ACEOF
 
7477
#define ENABLE_DEBUG_OUTPUT 1
 
7478
_ACEOF
 
7479
 
 
7480
fi
 
7481
 
 
7482
if test "$enable_benchmark" = yes; then
 
7483
 
 
7484
cat >>confdefs.h <<_ACEOF
 
7485
#define CREATE_BENCHMARK 1
 
7486
_ACEOF
 
7487
 
 
7488
fi
 
7489
 
 
7490
if test "$enable_suidroot" = yes; then
 
7491
        OPTION_SUIDROOT="yes";
 
7492
 
 
7493
cat >>confdefs.h <<_ACEOF
 
7494
#define ALLOW_SUID_ROOT 1
 
7495
_ACEOF
 
7496
 
 
7497
fi
 
7498
 
 
7499
if test "$enable_capabilities" != "no"; then
 
7500
 
 
7501
for ac_header in sys/capability.h
 
7502
do
 
7503
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7504
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7505
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7506
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
7507
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7508
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7509
fi
 
7510
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
7511
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
7512
else
 
7513
  # Is the header compilable?
 
7514
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
7515
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
7516
cat >conftest.$ac_ext <<_ACEOF
 
7517
#line $LINENO "configure"
 
7518
/* confdefs.h.  */
 
7519
_ACEOF
 
7520
cat confdefs.h >>conftest.$ac_ext
 
7521
cat >>conftest.$ac_ext <<_ACEOF
 
7522
/* end confdefs.h.  */
 
7523
$ac_includes_default
 
7524
#include <$ac_header>
 
7525
_ACEOF
 
7526
rm -f conftest.$ac_objext
 
7527
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7528
  (eval $ac_compile) 2>&5
 
7529
  ac_status=$?
 
7530
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7531
  (exit $ac_status); } &&
 
7532
         { ac_try='test -s conftest.$ac_objext'
 
7533
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7534
  (eval $ac_try) 2>&5
 
7535
  ac_status=$?
 
7536
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7537
  (exit $ac_status); }; }; then
 
7538
  ac_header_compiler=yes
 
7539
else
 
7540
  echo "$as_me: failed program was:" >&5
 
7541
sed 's/^/| /' conftest.$ac_ext >&5
 
7542
 
 
7543
ac_header_compiler=no
 
7544
fi
 
7545
rm -f conftest.$ac_objext conftest.$ac_ext
 
7546
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
7547
echo "${ECHO_T}$ac_header_compiler" >&6
 
7548
 
 
7549
# Is the header present?
 
7550
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
7551
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
7552
cat >conftest.$ac_ext <<_ACEOF
 
7553
#line $LINENO "configure"
 
7554
/* confdefs.h.  */
 
7555
_ACEOF
 
7556
cat confdefs.h >>conftest.$ac_ext
 
7557
cat >>conftest.$ac_ext <<_ACEOF
 
7558
/* end confdefs.h.  */
 
7559
#include <$ac_header>
 
7560
_ACEOF
 
7561
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
7562
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
7563
  ac_status=$?
 
7564
  grep -v '^ *+' conftest.er1 >conftest.err
 
7565
  rm -f conftest.er1
 
7566
  cat conftest.err >&5
 
7567
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7568
  (exit $ac_status); } >/dev/null; then
 
7569
  if test -s conftest.err; then
 
7570
    ac_cpp_err=$ac_c_preproc_warn_flag
 
7571
  else
 
7572
    ac_cpp_err=
 
7573
  fi
 
7574
else
 
7575
  ac_cpp_err=yes
 
7576
fi
 
7577
if test -z "$ac_cpp_err"; then
 
7578
  ac_header_preproc=yes
 
7579
else
 
7580
  echo "$as_me: failed program was:" >&5
 
7581
sed 's/^/| /' conftest.$ac_ext >&5
 
7582
 
 
7583
  ac_header_preproc=no
 
7584
fi
 
7585
rm -f conftest.err conftest.$ac_ext
 
7586
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
7587
echo "${ECHO_T}$ac_header_preproc" >&6
 
7588
 
 
7589
# So?  What about this header?
 
7590
case $ac_header_compiler:$ac_header_preproc in
 
7591
  yes:no )
 
7592
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
7593
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
7594
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
7595
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
7596
    (
 
7597
      cat <<\_ASBOX
 
7598
## ------------------------------------ ##
 
7599
## Report this to bug-autoconf@gnu.org. ##
 
7600
## ------------------------------------ ##
 
7601
_ASBOX
 
7602
    ) |
 
7603
      sed "s/^/$as_me: WARNING:     /" >&2
 
7604
    ;;
 
7605
  no:yes )
 
7606
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
7607
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
7608
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
7609
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
7610
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
7611
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
7612
    (
 
7613
      cat <<\_ASBOX
 
7614
## ------------------------------------ ##
 
7615
## Report this to bug-autoconf@gnu.org. ##
 
7616
## ------------------------------------ ##
 
7617
_ASBOX
 
7618
    ) |
 
7619
      sed "s/^/$as_me: WARNING:     /" >&2
 
7620
    ;;
 
7621
esac
 
7622
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7623
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
7624
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7625
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7626
else
 
7627
  eval "$as_ac_Header=$ac_header_preproc"
 
7628
fi
 
7629
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
7630
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
7631
 
 
7632
fi
 
7633
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
7634
  cat >>confdefs.h <<_ACEOF
 
7635
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7636
_ACEOF
 
7637
 capheader=yes
 
7638
else
 
7639
  capheader=no
 
7640
fi
 
7641
 
 
7642
done
 
7643
 
 
7644
 
 
7645
for ac_header in sys/prctl.h
 
7646
do
 
7647
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7648
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7649
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7650
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
7651
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7652
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7653
fi
 
7654
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
7655
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
7656
else
 
7657
  # Is the header compilable?
 
7658
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
7659
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
7660
cat >conftest.$ac_ext <<_ACEOF
 
7661
#line $LINENO "configure"
 
7662
/* confdefs.h.  */
 
7663
_ACEOF
 
7664
cat confdefs.h >>conftest.$ac_ext
 
7665
cat >>conftest.$ac_ext <<_ACEOF
 
7666
/* end confdefs.h.  */
 
7667
$ac_includes_default
 
7668
#include <$ac_header>
 
7669
_ACEOF
 
7670
rm -f conftest.$ac_objext
 
7671
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7672
  (eval $ac_compile) 2>&5
 
7673
  ac_status=$?
 
7674
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7675
  (exit $ac_status); } &&
 
7676
         { ac_try='test -s conftest.$ac_objext'
 
7677
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7678
  (eval $ac_try) 2>&5
 
7679
  ac_status=$?
 
7680
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7681
  (exit $ac_status); }; }; then
 
7682
  ac_header_compiler=yes
 
7683
else
 
7684
  echo "$as_me: failed program was:" >&5
 
7685
sed 's/^/| /' conftest.$ac_ext >&5
 
7686
 
 
7687
ac_header_compiler=no
 
7688
fi
 
7689
rm -f conftest.$ac_objext conftest.$ac_ext
 
7690
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
7691
echo "${ECHO_T}$ac_header_compiler" >&6
 
7692
 
 
7693
# Is the header present?
 
7694
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
7695
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
7696
cat >conftest.$ac_ext <<_ACEOF
 
7697
#line $LINENO "configure"
 
7698
/* confdefs.h.  */
 
7699
_ACEOF
 
7700
cat confdefs.h >>conftest.$ac_ext
 
7701
cat >>conftest.$ac_ext <<_ACEOF
 
7702
/* end confdefs.h.  */
 
7703
#include <$ac_header>
 
7704
_ACEOF
 
7705
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
7706
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
7707
  ac_status=$?
 
7708
  grep -v '^ *+' conftest.er1 >conftest.err
 
7709
  rm -f conftest.er1
 
7710
  cat conftest.err >&5
 
7711
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7712
  (exit $ac_status); } >/dev/null; then
 
7713
  if test -s conftest.err; then
 
7714
    ac_cpp_err=$ac_c_preproc_warn_flag
 
7715
  else
 
7716
    ac_cpp_err=
 
7717
  fi
 
7718
else
 
7719
  ac_cpp_err=yes
 
7720
fi
 
7721
if test -z "$ac_cpp_err"; then
 
7722
  ac_header_preproc=yes
 
7723
else
 
7724
  echo "$as_me: failed program was:" >&5
 
7725
sed 's/^/| /' conftest.$ac_ext >&5
 
7726
 
 
7727
  ac_header_preproc=no
 
7728
fi
 
7729
rm -f conftest.err conftest.$ac_ext
 
7730
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
7731
echo "${ECHO_T}$ac_header_preproc" >&6
 
7732
 
 
7733
# So?  What about this header?
 
7734
case $ac_header_compiler:$ac_header_preproc in
 
7735
  yes:no )
 
7736
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
7737
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
7738
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
7739
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
7740
    (
 
7741
      cat <<\_ASBOX
 
7742
## ------------------------------------ ##
 
7743
## Report this to bug-autoconf@gnu.org. ##
 
7744
## ------------------------------------ ##
 
7745
_ASBOX
 
7746
    ) |
 
7747
      sed "s/^/$as_me: WARNING:     /" >&2
 
7748
    ;;
 
7749
  no:yes )
 
7750
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
7751
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
7752
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
7753
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
7754
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
7755
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
7756
    (
 
7757
      cat <<\_ASBOX
 
7758
## ------------------------------------ ##
 
7759
## Report this to bug-autoconf@gnu.org. ##
 
7760
## ------------------------------------ ##
 
7761
_ASBOX
 
7762
    ) |
 
7763
      sed "s/^/$as_me: WARNING:     /" >&2
 
7764
    ;;
 
7765
esac
 
7766
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7767
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
7768
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7769
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7770
else
 
7771
  eval "$as_ac_Header=$ac_header_preproc"
 
7772
fi
 
7773
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
7774
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
7775
 
 
7776
fi
 
7777
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
7778
  cat >>confdefs.h <<_ACEOF
 
7779
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7780
_ACEOF
 
7781
 prctlheader=yes
 
7782
else
 
7783
  prctlheader=no
 
7784
fi
 
7785
 
 
7786
done
 
7787
 
 
7788
 
 
7789
        if test "$capheader" = "yes"; then
 
7790
                if test "$prctlheader" = "yes"; then
 
7791
                        echo "$as_me:$LINENO: checking for cap_get_proc in -lcap" >&5
 
7792
echo $ECHO_N "checking for cap_get_proc in -lcap... $ECHO_C" >&6
 
7793
if test "${ac_cv_lib_cap_cap_get_proc+set}" = set; then
 
7794
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7795
else
 
7796
  ac_check_lib_save_LIBS=$LIBS
 
7797
LIBS="-lcap  $LIBS"
 
7798
cat >conftest.$ac_ext <<_ACEOF
 
7799
#line $LINENO "configure"
 
7800
/* confdefs.h.  */
 
7801
_ACEOF
 
7802
cat confdefs.h >>conftest.$ac_ext
 
7803
cat >>conftest.$ac_ext <<_ACEOF
 
7804
/* end confdefs.h.  */
 
7805
 
 
7806
/* Override any gcc2 internal prototype to avoid an error.  */
 
7807
#ifdef __cplusplus
 
7808
extern "C"
 
7809
#endif
 
7810
/* We use char because int might match the return type of a gcc2
 
7811
   builtin and then its argument prototype would still apply.  */
 
7812
char cap_get_proc ();
 
7813
int
 
7814
main ()
 
7815
{
 
7816
cap_get_proc ();
 
7817
  ;
 
7818
  return 0;
 
7819
}
 
7820
_ACEOF
 
7821
rm -f conftest.$ac_objext conftest$ac_exeext
 
7822
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7823
  (eval $ac_link) 2>&5
 
7824
  ac_status=$?
 
7825
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7826
  (exit $ac_status); } &&
 
7827
         { ac_try='test -s conftest$ac_exeext'
 
7828
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7829
  (eval $ac_try) 2>&5
 
7830
  ac_status=$?
 
7831
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7832
  (exit $ac_status); }; }; then
 
7833
  ac_cv_lib_cap_cap_get_proc=yes
 
7834
else
 
7835
  echo "$as_me: failed program was:" >&5
 
7836
sed 's/^/| /' conftest.$ac_ext >&5
 
7837
 
 
7838
ac_cv_lib_cap_cap_get_proc=no
 
7839
fi
 
7840
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7841
LIBS=$ac_check_lib_save_LIBS
 
7842
fi
 
7843
echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_get_proc" >&5
 
7844
echo "${ECHO_T}$ac_cv_lib_cap_cap_get_proc" >&6
 
7845
if test $ac_cv_lib_cap_cap_get_proc = yes; then
 
7846
  caplib=yes
 
7847
else
 
7848
  caplib=no
 
7849
fi
 
7850
 
 
7851
                        if test "$caplib" = "yes"; then
 
7852
                                LIBS="$LIBS -lcap"
 
7853
 
 
7854
cat >>confdefs.h <<_ACEOF
 
7855
#define USE_CAPABILITIES 1
 
7856
_ACEOF
 
7857
 
 
7858
                                OPTION_CAP="yes"
 
7859
                        fi
 
7860
                fi
 
7861
        fi
 
7862
fi
 
7863
 
 
7864
if test "$enable_capabilities" = "yes"; then
 
7865
        if test "$OPTION_CAP" != "yes"; then
 
7866
                { { echo "$as_me:$LINENO: error: ** This system doesn't support capabilities. **" >&5
 
7867
echo "$as_me: error: ** This system doesn't support capabilities. **" >&2;}
 
7868
   { (exit 1); exit 1; }; }
 
7869
        fi
 
7870
fi
 
7871
 
 
7872
 
 
7873
 
 
7874
if test "$enable_deprecated" = "no"; then
 
7875
        DEPRECATED_FLAGS="-DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DG_DISABLE_DEPRECATED"
 
7876
else
 
7877
    DEPRECATED_FLAGS=""
 
7878
fi
 
7879
 
 
7880
 
 
7881
 
 
7882
echo "$as_me:$LINENO: checking for necessary scratching skillz" >&5
 
7883
echo $ECHO_N "checking for necessary scratching skillz... $ECHO_C" >&6
 
7884
echo "$as_me:$LINENO: result: yes" >&5
 
7885
echo "${ECHO_T}yes" >&6
 
7886
 
 
7887
 
 
7888
cat >>confdefs.h <<_ACEOF
 
7889
#define USE_DIAL 1
 
7890
_ACEOF
 
7891
 
 
7892
 
 
7893
 
 
7894
if test "$enable_legacy" = yes; then
 
7895
 
 
7896
cat >>confdefs.h <<_ACEOF
 
7897
#define ENABLE_TX_LEGACY 1
 
7898
_ACEOF
 
7899
 
 
7900
        OPTION_LEGACY="yes"
 
7901
fi
 
7902
 
 
7903
 
 
7904
GNOMEpresent=fl
 
7905
 
 
7906
echo "$as_me:$LINENO: checking for GNOME" >&5
 
7907
echo $ECHO_N "checking for GNOME... $ECHO_C" >&6
 
7908
        echo "$as_me:$LINENO: result: in progress" >&5
 
7909
echo "${ECHO_T}in progress" >&6
 
7910
        # Extract the first word of "gnome-name-service", so it can be a program name with args.
 
7911
set dummy gnome-name-service; ac_word=$2
 
7912
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7913
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7914
if test "${ac_cv_prog_gnomepresent+set}" = set; then
 
7915
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7916
else
 
7917
  if test -n "$gnomepresent"; then
 
7918
  ac_cv_prog_gnomepresent="$gnomepresent" # Let the user override the test.
 
7919
else
 
7920
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7921
for as_dir in $PATH
 
7922
do
 
7923
  IFS=$as_save_IFS
 
7924
  test -z "$as_dir" && as_dir=.
 
7925
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7926
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7927
    ac_cv_prog_gnomepresent="yes"
 
7928
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7929
    break 2
 
7930
  fi
 
7931
done
 
7932
done
 
7933
 
 
7934
  test -z "$ac_cv_prog_gnomepresent" && ac_cv_prog_gnomepresent="no"
 
7935
fi
 
7936
fi
 
7937
gnomepresent=$ac_cv_prog_gnomepresent
 
7938
if test -n "$gnomepresent"; then
 
7939
  echo "$as_me:$LINENO: result: $gnomepresent" >&5
 
7940
echo "${ECHO_T}$gnomepresent" >&6
 
7941
else
 
7942
  echo "$as_me:$LINENO: result: no" >&5
 
7943
echo "${ECHO_T}no" >&6
 
7944
fi
 
7945
 
 
7946
        if test "$gnomepresent" = yes; then
 
7947
                # Extract the first word of "gnome-config", so it can be a program name with args.
 
7948
set dummy gnome-config; ac_word=$2
 
7949
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7950
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7951
if test "${ac_cv_prog_gnomeconfig+set}" = set; then
 
7952
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7953
else
 
7954
  if test -n "$gnomeconfig"; then
 
7955
  ac_cv_prog_gnomeconfig="$gnomeconfig" # Let the user override the test.
 
7956
else
 
7957
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7958
for as_dir in $PATH
 
7959
do
 
7960
  IFS=$as_save_IFS
 
7961
  test -z "$as_dir" && as_dir=.
 
7962
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7963
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7964
    ac_cv_prog_gnomeconfig="yes"
 
7965
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7966
    break 2
 
7967
  fi
 
7968
done
 
7969
done
 
7970
 
 
7971
fi
 
7972
fi
 
7973
gnomeconfig=$ac_cv_prog_gnomeconfig
 
7974
if test -n "$gnomeconfig"; then
 
7975
  echo "$as_me:$LINENO: result: $gnomeconfig" >&5
 
7976
echo "${ECHO_T}$gnomeconfig" >&6
 
7977
else
 
7978
  echo "$as_me:$LINENO: result: no" >&5
 
7979
echo "${ECHO_T}no" >&6
 
7980
fi
 
7981
 
 
7982
                if test "$gnomeconfig" = yes; then
 
7983
                        gnomedatadir=`gnome-config --datadir`
 
7984
                else
 
7985
                        gnomedatadir=${datadir}
 
7986
                fi
 
7987
 
 
7988
                echo "$as_me:$LINENO: result: Found GNOME - installing terminatorX.desktop." >&5
 
7989
echo "${ECHO_T}Found GNOME - installing terminatorX.desktop." >&6
 
7990
                OPTION_GNOME="yes"
 
7991
        else
 
7992
                echo "$as_me:$LINENO: result: GNOME not found." >&5
 
7993
echo "${ECHO_T}GNOME not found." >&6
 
7994
        fi
 
7995
 
 
7996
 
 
7997
if test "$gnomepresent" = yes; then
 
7998
  GNOMEpresent_TRUE=
 
7999
  GNOMEpresent_FALSE='#'
 
8000
else
 
8001
  GNOMEpresent_TRUE='#'
 
8002
  GNOMEpresent_FALSE=
 
8003
fi
 
8004
 
 
8005
 
 
8006
 
 
8007
found_libxml=false
 
8008
 
 
8009
if test "$enable_libxml2" != "no"; then
 
8010
        if ! $found_libxml; then
 
8011
          # Extract the first word of "xml2-config", so it can be a program name with args.
 
8012
set dummy xml2-config; ac_word=$2
 
8013
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8014
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8015
if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
 
8016
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8017
else
 
8018
  if test -n "$XML2_CONFIG"; then
 
8019
  ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
 
8020
else
 
8021
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8022
for as_dir in $PATH
 
8023
do
 
8024
  IFS=$as_save_IFS
 
8025
  test -z "$as_dir" && as_dir=.
 
8026
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8027
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8028
    ac_cv_prog_XML2_CONFIG="xml2-config"
 
8029
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8030
    break 2
 
8031
  fi
 
8032
done
 
8033
done
 
8034
 
 
8035
fi
 
8036
fi
 
8037
XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
 
8038
if test -n "$XML2_CONFIG"; then
 
8039
  echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
 
8040
echo "${ECHO_T}$XML2_CONFIG" >&6
 
8041
else
 
8042
  echo "$as_me:$LINENO: result: no" >&5
 
8043
echo "${ECHO_T}no" >&6
 
8044
fi
 
8045
 
 
8046
          if test "x$XML2_CONFIG" != x ; then
 
8047
            echo "$as_me:$LINENO: checking for libxml >= 2.3.9" >&5
 
8048
echo $ECHO_N "checking for libxml >= 2.3.9... $ECHO_C" >&6
 
8049
            vers=`$XML2_CONFIG --version | sed -e "s/libxml //" | awk 'BEGIN {FS=".";} { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
 
8050
 
 
8051
            if test "$vers" -ge 2003009; then
 
8052
              echo "$as_me:$LINENO: result: yes" >&5
 
8053
echo "${ECHO_T}yes" >&6
 
8054
              found_libxml=true
 
8055
              XML_LIBS="`$XML2_CONFIG --libs`"
 
8056
              XML_CFLAGS="`$XML2_CONFIG --cflags`"
 
8057
            else
 
8058
              echo "$as_me:$LINENO: result: no" >&5
 
8059
echo "${ECHO_T}no" >&6
 
8060
            fi
 
8061
          fi
 
8062
        fi
 
8063
fi
 
8064
 
 
8065
if ! $found_libxml
 
8066
then
 
8067
        # Extract the first word of "xml-config", so it can be a program name with args.
 
8068
set dummy xml-config; ac_word=$2
 
8069
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8070
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8071
if test "${ac_cv_prog_XML_CONFIG+set}" = set; then
 
8072
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8073
else
 
8074
  if test -n "$XML_CONFIG"; then
 
8075
  ac_cv_prog_XML_CONFIG="$XML_CONFIG" # Let the user override the test.
 
8076
else
 
8077
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8078
for as_dir in $PATH
 
8079
do
 
8080
  IFS=$as_save_IFS
 
8081
  test -z "$as_dir" && as_dir=.
 
8082
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8083
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8084
    ac_cv_prog_XML_CONFIG="xml-config"
 
8085
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8086
    break 2
 
8087
  fi
 
8088
done
 
8089
done
 
8090
 
 
8091
fi
 
8092
fi
 
8093
XML_CONFIG=$ac_cv_prog_XML_CONFIG
 
8094
if test -n "$XML_CONFIG"; then
 
8095
  echo "$as_me:$LINENO: result: $XML_CONFIG" >&5
 
8096
echo "${ECHO_T}$XML_CONFIG" >&6
 
8097
else
 
8098
  echo "$as_me:$LINENO: result: no" >&5
 
8099
echo "${ECHO_T}no" >&6
 
8100
fi
 
8101
 
 
8102
        if test "x$XML_CONFIG" != x ; then
 
8103
          echo "$as_me:$LINENO: checking for libxml >= 1.8.14" >&5
 
8104
echo $ECHO_N "checking for libxml >= 1.8.14... $ECHO_C" >&6
 
8105
          vers=`$XML_CONFIG --version | sed -e "s/libxml //" | awk 'BEGIN {FS=".";} { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
 
8106
 
 
8107
                  if test "$vers" -ge 1008014; then
 
8108
            echo "$as_me:$LINENO: result: yes" >&5
 
8109
echo "${ECHO_T}yes" >&6
 
8110
            found_libxml=true
 
8111
            XML_LIBS="`$XML_CONFIG --libs`"
 
8112
            XML_CFLAGS="`$XML_CONFIG --cflags`"
 
8113
          else
 
8114
            echo "$as_me:$LINENO: result: no" >&5
 
8115
echo "${ECHO_T}no" >&6
 
8116
          fi
 
8117
        fi
 
8118
fi
 
8119
 
 
8120
if ! $found_libxml; then
 
8121
    { { echo "$as_me:$LINENO: error: ** libxml not found. Get libxml(2) at http://www.libxml.org **" >&5
 
8122
echo "$as_me: error: ** libxml not found. Get libxml(2) at http://www.libxml.org **" >&2;}
 
8123
   { (exit 1); exit 1; }; }
 
8124
fi
 
8125
 
 
8126
 
 
8127
 
 
8128
 
 
8129
if test "$prefix" != "NONE"; then
 
8130
        xml_man="\\\"$datadir/terminatorX/doc/terminatorX-manual/C/terminatorX-manual.xml\\\""
 
8131
else
 
8132
        xml_man="\\\"/usr/local/share/terminatorX/doc/terminatorX-manual/C/terminatorX-manual.xml\\\""
 
8133
fi
 
8134
 
 
8135
if test "$with_docdir" != ""; then
 
8136
        xml_man="\\\"$with_docdir/terminatorX/doc/terminatorX-manual/C/terminatorX-manual.xml\\\""
 
8137
fi
 
8138
 
 
8139
if test "$enable_lrdf" != "no"; then
 
8140
    echo "$as_me:$LINENO: checking for liblrdf >= 0.2.4" >&5
 
8141
echo $ECHO_N "checking for liblrdf >= 0.2.4... $ECHO_C" >&6
 
8142
        LRDF_VERS=`$PKG_CONFIG --modversion lrdf | sed -e "s/libxml //" | awk 'BEGIN {FS=".";} { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
 
8143
        if test "$LRDF_VERS" -ge 2004; then
 
8144
                echo "$as_me:$LINENO: result: yes" >&5
 
8145
echo "${ECHO_T}yes" >&6
 
8146
                OPTION_LRDF=yes
 
8147
 
 
8148
                lrdf_cflags=`$PKG_CONFIG --cflags lrdf`
 
8149
                if test "$lrdf_cflags" != ""; then
 
8150
                        CFLAGS="$CFLAGS $lrdf_cflags"
 
8151
                fi
 
8152
                lrdf_libs=`$PKG_CONFIG --libs lrdf`
 
8153
                LIBS="$LIBS $lrdf_libs"
 
8154
 
 
8155
cat >>confdefs.h <<_ACEOF
 
8156
#define USE_LRDF 1
 
8157
_ACEOF
 
8158
 
 
8159
                OPTION_AUDIOFILE="yes"
 
8160
        else
 
8161
                echo "$as_me:$LINENO: result: no" >&5
 
8162
echo "${ECHO_T}no" >&6
 
8163
        fi
 
8164
 
 
8165
fi
 
8166
 
 
8167
# Extract the first word of "scrollkeeper-config", so it can be a program name with args.
 
8168
set dummy scrollkeeper-config; ac_word=$2
 
8169
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8170
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8171
if test "${ac_cv_path_SK_CONFIG+set}" = set; then
 
8172
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8173
else
 
8174
  case $SK_CONFIG in
 
8175
  [\\/]* | ?:[\\/]*)
 
8176
  ac_cv_path_SK_CONFIG="$SK_CONFIG" # Let the user override the test with a path.
 
8177
  ;;
 
8178
  *)
 
8179
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8180
for as_dir in $PATH
 
8181
do
 
8182
  IFS=$as_save_IFS
 
8183
  test -z "$as_dir" && as_dir=.
 
8184
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8185
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8186
    ac_cv_path_SK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
8187
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8188
    break 2
 
8189
  fi
 
8190
done
 
8191
done
 
8192
 
 
8193
  test -z "$ac_cv_path_SK_CONFIG" && ac_cv_path_SK_CONFIG="no"
 
8194
  ;;
 
8195
esac
 
8196
fi
 
8197
SK_CONFIG=$ac_cv_path_SK_CONFIG
 
8198
 
 
8199
if test -n "$SK_CONFIG"; then
 
8200
  echo "$as_me:$LINENO: result: $SK_CONFIG" >&5
 
8201
echo "${ECHO_T}$SK_CONFIG" >&6
 
8202
else
 
8203
  echo "$as_me:$LINENO: result: no" >&5
 
8204
echo "${ECHO_T}no" >&6
 
8205
fi
 
8206
 
 
8207
if test x$SK_CONFIG = xno; then
 
8208
  { { echo "$as_me:$LINENO: error: Couldn't find scrollkeeper-config. Please install the scrollkeeper package: http://scrollkeeper.sourceforge.net" >&5
 
8209
echo "$as_me: error: Couldn't find scrollkeeper-config. Please install the scrollkeeper package: http://scrollkeeper.sourceforge.net" >&2;}
 
8210
   { (exit 1); exit 1; }; }
 
8211
fi
 
8212
 
 
8213
echo "$as_me:$LINENO: checking for X" >&5
 
8214
echo $ECHO_N "checking for X... $ECHO_C" >&6
 
8215
 
 
8216
 
 
8217
# Check whether --with-x or --without-x was given.
 
8218
if test "${with_x+set}" = set; then
 
8219
  withval="$with_x"
 
8220
 
 
8221
fi;
 
8222
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
 
8223
if test "x$with_x" = xno; then
 
8224
  # The user explicitly disabled X.
 
8225
  have_x=disabled
 
8226
else
 
8227
  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
 
8228
    # Both variables are already set.
 
8229
    have_x=yes
 
8230
  else
 
8231
    if test "${ac_cv_have_x+set}" = set; then
 
8232
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8233
else
 
8234
  # One or both of the vars are not set, and there is no cached value.
 
8235
ac_x_includes=no ac_x_libraries=no
 
8236
rm -fr conftest.dir
 
8237
if mkdir conftest.dir; then
 
8238
  cd conftest.dir
 
8239
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
 
8240
  cat >Imakefile <<'_ACEOF'
 
8241
acfindx:
 
8242
        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
 
8243
_ACEOF
 
8244
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
 
8245
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
8246
    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
 
8247
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
 
8248
    for ac_extension in a so sl; do
 
8249
      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
 
8250
         test -f $ac_im_libdir/libX11.$ac_extension; then
 
8251
        ac_im_usrlibdir=$ac_im_libdir; break
 
8252
      fi
 
8253
    done
 
8254
    # Screen out bogus values from the imake configuration.  They are
 
8255
    # bogus both because they are the default anyway, and because
 
8256
    # using them would break gcc on systems where it needs fixed includes.
 
8257
    case $ac_im_incroot in
 
8258
        /usr/include) ;;
 
8259
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
 
8260
    esac
 
8261
    case $ac_im_usrlibdir in
 
8262
        /usr/lib | /lib) ;;
 
8263
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
 
8264
    esac
 
8265
  fi
 
8266
  cd ..
 
8267
  rm -fr conftest.dir
 
8268
fi
 
8269
 
 
8270
# Standard set of common directories for X headers.
 
8271
# Check X11 before X11Rn because it is often a symlink to the current release.
 
8272
ac_x_header_dirs='
 
8273
/usr/X11/include
 
8274
/usr/X11R6/include
 
8275
/usr/X11R5/include
 
8276
/usr/X11R4/include
 
8277
 
 
8278
/usr/include/X11
 
8279
/usr/include/X11R6
 
8280
/usr/include/X11R5
 
8281
/usr/include/X11R4
 
8282
 
 
8283
/usr/local/X11/include
 
8284
/usr/local/X11R6/include
 
8285
/usr/local/X11R5/include
 
8286
/usr/local/X11R4/include
 
8287
 
 
8288
/usr/local/include/X11
 
8289
/usr/local/include/X11R6
 
8290
/usr/local/include/X11R5
 
8291
/usr/local/include/X11R4
 
8292
 
 
8293
/usr/X386/include
 
8294
/usr/x386/include
 
8295
/usr/XFree86/include/X11
 
8296
 
 
8297
/usr/include
 
8298
/usr/local/include
 
8299
/usr/unsupported/include
 
8300
/usr/athena/include
 
8301
/usr/local/x11r5/include
 
8302
/usr/lpp/Xamples/include
 
8303
 
 
8304
/usr/openwin/include
 
8305
/usr/openwin/share/include'
 
8306
 
 
8307
if test "$ac_x_includes" = no; then
 
8308
  # Guess where to find include files, by looking for Intrinsic.h.
 
8309
  # First, try using that file with no special directory specified.
 
8310
  cat >conftest.$ac_ext <<_ACEOF
 
8311
#line $LINENO "configure"
 
8312
/* confdefs.h.  */
 
8313
_ACEOF
 
8314
cat confdefs.h >>conftest.$ac_ext
 
8315
cat >>conftest.$ac_ext <<_ACEOF
 
8316
/* end confdefs.h.  */
 
8317
#include <X11/Intrinsic.h>
 
8318
_ACEOF
 
8319
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
8320
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
8321
  ac_status=$?
 
8322
  grep -v '^ *+' conftest.er1 >conftest.err
 
8323
  rm -f conftest.er1
 
8324
  cat conftest.err >&5
 
8325
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8326
  (exit $ac_status); } >/dev/null; then
 
8327
  if test -s conftest.err; then
 
8328
    ac_cpp_err=$ac_c_preproc_warn_flag
 
8329
  else
 
8330
    ac_cpp_err=
 
8331
  fi
 
8332
else
 
8333
  ac_cpp_err=yes
 
8334
fi
 
8335
if test -z "$ac_cpp_err"; then
 
8336
  # We can compile using X headers with no special include directory.
 
8337
ac_x_includes=
 
8338
else
 
8339
  echo "$as_me: failed program was:" >&5
 
8340
sed 's/^/| /' conftest.$ac_ext >&5
 
8341
 
 
8342
  for ac_dir in $ac_x_header_dirs; do
 
8343
  if test -r "$ac_dir/X11/Intrinsic.h"; then
 
8344
    ac_x_includes=$ac_dir
 
8345
    break
 
8346
  fi
 
8347
done
 
8348
fi
 
8349
rm -f conftest.err conftest.$ac_ext
 
8350
fi # $ac_x_includes = no
 
8351
 
 
8352
if test "$ac_x_libraries" = no; then
 
8353
  # Check for the libraries.
 
8354
  # See if we find them without any special options.
 
8355
  # Don't add to $LIBS permanently.
 
8356
  ac_save_LIBS=$LIBS
 
8357
  LIBS="-lXt $LIBS"
 
8358
  cat >conftest.$ac_ext <<_ACEOF
 
8359
#line $LINENO "configure"
 
8360
/* confdefs.h.  */
 
8361
_ACEOF
 
8362
cat confdefs.h >>conftest.$ac_ext
 
8363
cat >>conftest.$ac_ext <<_ACEOF
 
8364
/* end confdefs.h.  */
 
8365
#include <X11/Intrinsic.h>
 
8366
int
 
8367
main ()
 
8368
{
 
8369
XtMalloc (0)
 
8370
  ;
 
8371
  return 0;
 
8372
}
 
8373
_ACEOF
 
8374
rm -f conftest.$ac_objext conftest$ac_exeext
 
8375
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8376
  (eval $ac_link) 2>&5
 
8377
  ac_status=$?
 
8378
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8379
  (exit $ac_status); } &&
 
8380
         { ac_try='test -s conftest$ac_exeext'
 
8381
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8382
  (eval $ac_try) 2>&5
 
8383
  ac_status=$?
 
8384
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8385
  (exit $ac_status); }; }; then
 
8386
  LIBS=$ac_save_LIBS
 
8387
# We can link X programs with no special library path.
 
8388
ac_x_libraries=
 
8389
else
 
8390
  echo "$as_me: failed program was:" >&5
 
8391
sed 's/^/| /' conftest.$ac_ext >&5
 
8392
 
 
8393
LIBS=$ac_save_LIBS
 
8394
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
 
8395
do
 
8396
  # Don't even attempt the hair of trying to link an X program!
 
8397
  for ac_extension in a so sl; do
 
8398
    if test -r $ac_dir/libXt.$ac_extension; then
 
8399
      ac_x_libraries=$ac_dir
 
8400
      break 2
 
8401
    fi
 
8402
  done
 
8403
done
 
8404
fi
 
8405
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8406
fi # $ac_x_libraries = no
 
8407
 
 
8408
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
 
8409
  # Didn't find X anywhere.  Cache the known absence of X.
 
8410
  ac_cv_have_x="have_x=no"
 
8411
else
 
8412
  # Record where we found X for the cache.
 
8413
  ac_cv_have_x="have_x=yes \
 
8414
                ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
 
8415
fi
 
8416
fi
 
8417
 
 
8418
  fi
 
8419
  eval "$ac_cv_have_x"
 
8420
fi # $with_x != no
 
8421
 
 
8422
if test "$have_x" != yes; then
 
8423
  echo "$as_me:$LINENO: result: $have_x" >&5
 
8424
echo "${ECHO_T}$have_x" >&6
 
8425
  no_x=yes
 
8426
else
 
8427
  # If each of the values was on the command line, it overrides each guess.
 
8428
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
 
8429
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
 
8430
  # Update the cache value to reflect the command line values.
 
8431
  ac_cv_have_x="have_x=yes \
 
8432
                ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
 
8433
  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
 
8434
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
 
8435
fi
 
8436
 
 
8437
if test "$no_x" = yes; then
 
8438
  # Not all programs may use this symbol, but it does not hurt to define it.
 
8439
 
 
8440
cat >>confdefs.h <<\_ACEOF
 
8441
#define X_DISPLAY_MISSING 1
 
8442
_ACEOF
 
8443
 
 
8444
  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
 
8445
else
 
8446
  if test -n "$x_includes"; then
 
8447
    X_CFLAGS="$X_CFLAGS -I$x_includes"
 
8448
  fi
 
8449
 
 
8450
  # It would also be nice to do this for all -L options, not just this one.
 
8451
  if test -n "$x_libraries"; then
 
8452
    X_LIBS="$X_LIBS -L$x_libraries"
 
8453
    # For Solaris; some versions of Sun CC require a space after -R and
 
8454
    # others require no space.  Words are not sufficient . . . .
 
8455
    case `(uname -sr) 2>/dev/null` in
 
8456
    "SunOS 5"*)
 
8457
      echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
 
8458
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
 
8459
      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
 
8460
      cat >conftest.$ac_ext <<_ACEOF
 
8461
#line $LINENO "configure"
 
8462
/* confdefs.h.  */
 
8463
_ACEOF
 
8464
cat confdefs.h >>conftest.$ac_ext
 
8465
cat >>conftest.$ac_ext <<_ACEOF
 
8466
/* end confdefs.h.  */
 
8467
 
 
8468
int
 
8469
main ()
 
8470
{
 
8471
 
 
8472
  ;
 
8473
  return 0;
 
8474
}
 
8475
_ACEOF
 
8476
rm -f conftest.$ac_objext conftest$ac_exeext
 
8477
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8478
  (eval $ac_link) 2>&5
 
8479
  ac_status=$?
 
8480
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8481
  (exit $ac_status); } &&
 
8482
         { ac_try='test -s conftest$ac_exeext'
 
8483
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8484
  (eval $ac_try) 2>&5
 
8485
  ac_status=$?
 
8486
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8487
  (exit $ac_status); }; }; then
 
8488
  ac_R_nospace=yes
 
8489
else
 
8490
  echo "$as_me: failed program was:" >&5
 
8491
sed 's/^/| /' conftest.$ac_ext >&5
 
8492
 
 
8493
ac_R_nospace=no
 
8494
fi
 
8495
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8496
      if test $ac_R_nospace = yes; then
 
8497
        echo "$as_me:$LINENO: result: no" >&5
 
8498
echo "${ECHO_T}no" >&6
 
8499
        X_LIBS="$X_LIBS -R$x_libraries"
 
8500
      else
 
8501
        LIBS="$ac_xsave_LIBS -R $x_libraries"
 
8502
        cat >conftest.$ac_ext <<_ACEOF
 
8503
#line $LINENO "configure"
 
8504
/* confdefs.h.  */
 
8505
_ACEOF
 
8506
cat confdefs.h >>conftest.$ac_ext
 
8507
cat >>conftest.$ac_ext <<_ACEOF
 
8508
/* end confdefs.h.  */
 
8509
 
 
8510
int
 
8511
main ()
 
8512
{
 
8513
 
 
8514
  ;
 
8515
  return 0;
 
8516
}
 
8517
_ACEOF
 
8518
rm -f conftest.$ac_objext conftest$ac_exeext
 
8519
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8520
  (eval $ac_link) 2>&5
 
8521
  ac_status=$?
 
8522
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8523
  (exit $ac_status); } &&
 
8524
         { ac_try='test -s conftest$ac_exeext'
 
8525
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8526
  (eval $ac_try) 2>&5
 
8527
  ac_status=$?
 
8528
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8529
  (exit $ac_status); }; }; then
 
8530
  ac_R_space=yes
 
8531
else
 
8532
  echo "$as_me: failed program was:" >&5
 
8533
sed 's/^/| /' conftest.$ac_ext >&5
 
8534
 
 
8535
ac_R_space=no
 
8536
fi
 
8537
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8538
        if test $ac_R_space = yes; then
 
8539
          echo "$as_me:$LINENO: result: yes" >&5
 
8540
echo "${ECHO_T}yes" >&6
 
8541
          X_LIBS="$X_LIBS -R $x_libraries"
 
8542
        else
 
8543
          echo "$as_me:$LINENO: result: neither works" >&5
 
8544
echo "${ECHO_T}neither works" >&6
 
8545
        fi
 
8546
      fi
 
8547
      LIBS=$ac_xsave_LIBS
 
8548
    esac
 
8549
  fi
 
8550
 
 
8551
  # Check for system-dependent libraries X programs must link with.
 
8552
  # Do this before checking for the system-independent R6 libraries
 
8553
  # (-lICE), since we may need -lsocket or whatever for X linking.
 
8554
 
 
8555
  if test "$ISC" = yes; then
 
8556
    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
 
8557
  else
 
8558
    # Martyn Johnson says this is needed for Ultrix, if the X
 
8559
    # libraries were built with DECnet support.  And Karl Berry says
 
8560
    # the Alpha needs dnet_stub (dnet does not exist).
 
8561
    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
 
8562
    cat >conftest.$ac_ext <<_ACEOF
 
8563
#line $LINENO "configure"
 
8564
/* confdefs.h.  */
 
8565
_ACEOF
 
8566
cat confdefs.h >>conftest.$ac_ext
 
8567
cat >>conftest.$ac_ext <<_ACEOF
 
8568
/* end confdefs.h.  */
 
8569
 
 
8570
/* Override any gcc2 internal prototype to avoid an error.  */
 
8571
#ifdef __cplusplus
 
8572
extern "C"
 
8573
#endif
 
8574
/* We use char because int might match the return type of a gcc2
 
8575
   builtin and then its argument prototype would still apply.  */
 
8576
char XOpenDisplay ();
 
8577
int
 
8578
main ()
 
8579
{
 
8580
XOpenDisplay ();
 
8581
  ;
 
8582
  return 0;
 
8583
}
 
8584
_ACEOF
 
8585
rm -f conftest.$ac_objext conftest$ac_exeext
 
8586
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8587
  (eval $ac_link) 2>&5
 
8588
  ac_status=$?
 
8589
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8590
  (exit $ac_status); } &&
 
8591
         { ac_try='test -s conftest$ac_exeext'
 
8592
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8593
  (eval $ac_try) 2>&5
 
8594
  ac_status=$?
 
8595
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8596
  (exit $ac_status); }; }; then
 
8597
  :
 
8598
else
 
8599
  echo "$as_me: failed program was:" >&5
 
8600
sed 's/^/| /' conftest.$ac_ext >&5
 
8601
 
 
8602
echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
 
8603
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
 
8604
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
 
8605
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8606
else
 
8607
  ac_check_lib_save_LIBS=$LIBS
 
8608
LIBS="-ldnet  $LIBS"
 
8609
cat >conftest.$ac_ext <<_ACEOF
 
8610
#line $LINENO "configure"
 
8611
/* confdefs.h.  */
 
8612
_ACEOF
 
8613
cat confdefs.h >>conftest.$ac_ext
 
8614
cat >>conftest.$ac_ext <<_ACEOF
 
8615
/* end confdefs.h.  */
 
8616
 
 
8617
/* Override any gcc2 internal prototype to avoid an error.  */
 
8618
#ifdef __cplusplus
 
8619
extern "C"
 
8620
#endif
 
8621
/* We use char because int might match the return type of a gcc2
 
8622
   builtin and then its argument prototype would still apply.  */
 
8623
char dnet_ntoa ();
 
8624
int
 
8625
main ()
 
8626
{
 
8627
dnet_ntoa ();
 
8628
  ;
 
8629
  return 0;
 
8630
}
 
8631
_ACEOF
 
8632
rm -f conftest.$ac_objext conftest$ac_exeext
 
8633
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8634
  (eval $ac_link) 2>&5
 
8635
  ac_status=$?
 
8636
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8637
  (exit $ac_status); } &&
 
8638
         { ac_try='test -s conftest$ac_exeext'
 
8639
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8640
  (eval $ac_try) 2>&5
 
8641
  ac_status=$?
 
8642
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8643
  (exit $ac_status); }; }; then
 
8644
  ac_cv_lib_dnet_dnet_ntoa=yes
 
8645
else
 
8646
  echo "$as_me: failed program was:" >&5
 
8647
sed 's/^/| /' conftest.$ac_ext >&5
 
8648
 
 
8649
ac_cv_lib_dnet_dnet_ntoa=no
 
8650
fi
 
8651
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8652
LIBS=$ac_check_lib_save_LIBS
 
8653
fi
 
8654
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
 
8655
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
 
8656
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
 
8657
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
 
8658
fi
 
8659
 
 
8660
    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
 
8661
      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
 
8662
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
 
8663
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
 
8664
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8665
else
 
8666
  ac_check_lib_save_LIBS=$LIBS
 
8667
LIBS="-ldnet_stub  $LIBS"
 
8668
cat >conftest.$ac_ext <<_ACEOF
 
8669
#line $LINENO "configure"
 
8670
/* confdefs.h.  */
 
8671
_ACEOF
 
8672
cat confdefs.h >>conftest.$ac_ext
 
8673
cat >>conftest.$ac_ext <<_ACEOF
 
8674
/* end confdefs.h.  */
 
8675
 
 
8676
/* Override any gcc2 internal prototype to avoid an error.  */
 
8677
#ifdef __cplusplus
 
8678
extern "C"
 
8679
#endif
 
8680
/* We use char because int might match the return type of a gcc2
 
8681
   builtin and then its argument prototype would still apply.  */
 
8682
char dnet_ntoa ();
 
8683
int
 
8684
main ()
 
8685
{
 
8686
dnet_ntoa ();
 
8687
  ;
 
8688
  return 0;
 
8689
}
 
8690
_ACEOF
 
8691
rm -f conftest.$ac_objext conftest$ac_exeext
 
8692
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8693
  (eval $ac_link) 2>&5
 
8694
  ac_status=$?
 
8695
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8696
  (exit $ac_status); } &&
 
8697
         { ac_try='test -s conftest$ac_exeext'
 
8698
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8699
  (eval $ac_try) 2>&5
 
8700
  ac_status=$?
 
8701
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8702
  (exit $ac_status); }; }; then
 
8703
  ac_cv_lib_dnet_stub_dnet_ntoa=yes
 
8704
else
 
8705
  echo "$as_me: failed program was:" >&5
 
8706
sed 's/^/| /' conftest.$ac_ext >&5
 
8707
 
 
8708
ac_cv_lib_dnet_stub_dnet_ntoa=no
 
8709
fi
 
8710
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8711
LIBS=$ac_check_lib_save_LIBS
 
8712
fi
 
8713
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
 
8714
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
 
8715
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
 
8716
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
 
8717
fi
 
8718
 
 
8719
    fi
 
8720
fi
 
8721
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8722
    LIBS="$ac_xsave_LIBS"
 
8723
 
 
8724
    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
 
8725
    # to get the SysV transport functions.
 
8726
    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
 
8727
    # needs -lnsl.
 
8728
    # The nsl library prevents programs from opening the X display
 
8729
    # on Irix 5.2, according to T.E. Dickey.
 
8730
    # The functions gethostbyname, getservbyname, and inet_addr are
 
8731
    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
 
8732
    echo "$as_me:$LINENO: checking for gethostbyname" >&5
 
8733
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
 
8734
if test "${ac_cv_func_gethostbyname+set}" = set; then
 
8735
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8736
else
 
8737
  cat >conftest.$ac_ext <<_ACEOF
 
8738
#line $LINENO "configure"
 
8739
/* confdefs.h.  */
 
8740
_ACEOF
 
8741
cat confdefs.h >>conftest.$ac_ext
 
8742
cat >>conftest.$ac_ext <<_ACEOF
 
8743
/* end confdefs.h.  */
 
8744
/* System header to define __stub macros and hopefully few prototypes,
 
8745
    which can conflict with char gethostbyname (); below.
 
8746
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8747
    <limits.h> exists even on freestanding compilers.  */
 
8748
#ifdef __STDC__
 
8749
# include <limits.h>
 
8750
#else
 
8751
# include <assert.h>
 
8752
#endif
 
8753
/* Override any gcc2 internal prototype to avoid an error.  */
 
8754
#ifdef __cplusplus
 
8755
extern "C"
 
8756
{
 
8757
#endif
 
8758
/* We use char because int might match the return type of a gcc2
 
8759
   builtin and then its argument prototype would still apply.  */
 
8760
char gethostbyname ();
 
8761
/* The GNU C library defines this for functions which it implements
 
8762
    to always fail with ENOSYS.  Some functions are actually named
 
8763
    something starting with __ and the normal name is an alias.  */
 
8764
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
 
8765
choke me
 
8766
#else
 
8767
char (*f) () = gethostbyname;
 
8768
#endif
 
8769
#ifdef __cplusplus
 
8770
}
 
8771
#endif
 
8772
 
 
8773
int
 
8774
main ()
 
8775
{
 
8776
return f != gethostbyname;
 
8777
  ;
 
8778
  return 0;
 
8779
}
 
8780
_ACEOF
 
8781
rm -f conftest.$ac_objext conftest$ac_exeext
 
8782
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8783
  (eval $ac_link) 2>&5
 
8784
  ac_status=$?
 
8785
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8786
  (exit $ac_status); } &&
 
8787
         { ac_try='test -s conftest$ac_exeext'
 
8788
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8789
  (eval $ac_try) 2>&5
 
8790
  ac_status=$?
 
8791
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8792
  (exit $ac_status); }; }; then
 
8793
  ac_cv_func_gethostbyname=yes
 
8794
else
 
8795
  echo "$as_me: failed program was:" >&5
 
8796
sed 's/^/| /' conftest.$ac_ext >&5
 
8797
 
 
8798
ac_cv_func_gethostbyname=no
 
8799
fi
 
8800
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8801
fi
 
8802
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
 
8803
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
 
8804
 
 
8805
    if test $ac_cv_func_gethostbyname = no; then
 
8806
      echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
 
8807
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
 
8808
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
 
8809
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8810
else
 
8811
  ac_check_lib_save_LIBS=$LIBS
 
8812
LIBS="-lnsl  $LIBS"
 
8813
cat >conftest.$ac_ext <<_ACEOF
 
8814
#line $LINENO "configure"
 
8815
/* confdefs.h.  */
 
8816
_ACEOF
 
8817
cat confdefs.h >>conftest.$ac_ext
 
8818
cat >>conftest.$ac_ext <<_ACEOF
 
8819
/* end confdefs.h.  */
 
8820
 
 
8821
/* Override any gcc2 internal prototype to avoid an error.  */
 
8822
#ifdef __cplusplus
 
8823
extern "C"
 
8824
#endif
 
8825
/* We use char because int might match the return type of a gcc2
 
8826
   builtin and then its argument prototype would still apply.  */
 
8827
char gethostbyname ();
 
8828
int
 
8829
main ()
 
8830
{
 
8831
gethostbyname ();
 
8832
  ;
 
8833
  return 0;
 
8834
}
 
8835
_ACEOF
 
8836
rm -f conftest.$ac_objext conftest$ac_exeext
 
8837
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8838
  (eval $ac_link) 2>&5
 
8839
  ac_status=$?
 
8840
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8841
  (exit $ac_status); } &&
 
8842
         { ac_try='test -s conftest$ac_exeext'
 
8843
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8844
  (eval $ac_try) 2>&5
 
8845
  ac_status=$?
 
8846
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8847
  (exit $ac_status); }; }; then
 
8848
  ac_cv_lib_nsl_gethostbyname=yes
 
8849
else
 
8850
  echo "$as_me: failed program was:" >&5
 
8851
sed 's/^/| /' conftest.$ac_ext >&5
 
8852
 
 
8853
ac_cv_lib_nsl_gethostbyname=no
 
8854
fi
 
8855
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8856
LIBS=$ac_check_lib_save_LIBS
 
8857
fi
 
8858
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
 
8859
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
 
8860
if test $ac_cv_lib_nsl_gethostbyname = yes; then
 
8861
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
 
8862
fi
 
8863
 
 
8864
      if test $ac_cv_lib_nsl_gethostbyname = no; then
 
8865
        echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
 
8866
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
 
8867
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
 
8868
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8869
else
 
8870
  ac_check_lib_save_LIBS=$LIBS
 
8871
LIBS="-lbsd  $LIBS"
 
8872
cat >conftest.$ac_ext <<_ACEOF
 
8873
#line $LINENO "configure"
 
8874
/* confdefs.h.  */
 
8875
_ACEOF
 
8876
cat confdefs.h >>conftest.$ac_ext
 
8877
cat >>conftest.$ac_ext <<_ACEOF
 
8878
/* end confdefs.h.  */
 
8879
 
 
8880
/* Override any gcc2 internal prototype to avoid an error.  */
 
8881
#ifdef __cplusplus
 
8882
extern "C"
 
8883
#endif
 
8884
/* We use char because int might match the return type of a gcc2
 
8885
   builtin and then its argument prototype would still apply.  */
 
8886
char gethostbyname ();
 
8887
int
 
8888
main ()
 
8889
{
 
8890
gethostbyname ();
 
8891
  ;
 
8892
  return 0;
 
8893
}
 
8894
_ACEOF
 
8895
rm -f conftest.$ac_objext conftest$ac_exeext
 
8896
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8897
  (eval $ac_link) 2>&5
 
8898
  ac_status=$?
 
8899
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8900
  (exit $ac_status); } &&
 
8901
         { ac_try='test -s conftest$ac_exeext'
 
8902
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8903
  (eval $ac_try) 2>&5
 
8904
  ac_status=$?
 
8905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8906
  (exit $ac_status); }; }; then
 
8907
  ac_cv_lib_bsd_gethostbyname=yes
 
8908
else
 
8909
  echo "$as_me: failed program was:" >&5
 
8910
sed 's/^/| /' conftest.$ac_ext >&5
 
8911
 
 
8912
ac_cv_lib_bsd_gethostbyname=no
 
8913
fi
 
8914
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8915
LIBS=$ac_check_lib_save_LIBS
 
8916
fi
 
8917
echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
 
8918
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
 
8919
if test $ac_cv_lib_bsd_gethostbyname = yes; then
 
8920
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
 
8921
fi
 
8922
 
 
8923
      fi
 
8924
    fi
 
8925
 
 
8926
    # lieder@skyler.mavd.honeywell.com says without -lsocket,
 
8927
    # socket/setsockopt and other routines are undefined under SCO ODT
 
8928
    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
 
8929
    # on later versions), says Simon Leinen: it contains gethostby*
 
8930
    # variants that don't use the name server (or something).  -lsocket
 
8931
    # must be given before -lnsl if both are needed.  We assume that
 
8932
    # if connect needs -lnsl, so does gethostbyname.
 
8933
    echo "$as_me:$LINENO: checking for connect" >&5
 
8934
echo $ECHO_N "checking for connect... $ECHO_C" >&6
 
8935
if test "${ac_cv_func_connect+set}" = set; then
 
8936
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8937
else
 
8938
  cat >conftest.$ac_ext <<_ACEOF
 
8939
#line $LINENO "configure"
 
8940
/* confdefs.h.  */
 
8941
_ACEOF
 
8942
cat confdefs.h >>conftest.$ac_ext
 
8943
cat >>conftest.$ac_ext <<_ACEOF
 
8944
/* end confdefs.h.  */
 
8945
/* System header to define __stub macros and hopefully few prototypes,
 
8946
    which can conflict with char connect (); below.
 
8947
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8948
    <limits.h> exists even on freestanding compilers.  */
 
8949
#ifdef __STDC__
 
8950
# include <limits.h>
 
8951
#else
 
8952
# include <assert.h>
 
8953
#endif
 
8954
/* Override any gcc2 internal prototype to avoid an error.  */
 
8955
#ifdef __cplusplus
 
8956
extern "C"
 
8957
{
 
8958
#endif
 
8959
/* We use char because int might match the return type of a gcc2
 
8960
   builtin and then its argument prototype would still apply.  */
 
8961
char connect ();
 
8962
/* The GNU C library defines this for functions which it implements
 
8963
    to always fail with ENOSYS.  Some functions are actually named
 
8964
    something starting with __ and the normal name is an alias.  */
 
8965
#if defined (__stub_connect) || defined (__stub___connect)
 
8966
choke me
 
8967
#else
 
8968
char (*f) () = connect;
 
8969
#endif
 
8970
#ifdef __cplusplus
 
8971
}
 
8972
#endif
 
8973
 
 
8974
int
 
8975
main ()
 
8976
{
 
8977
return f != connect;
 
8978
  ;
 
8979
  return 0;
 
8980
}
 
8981
_ACEOF
 
8982
rm -f conftest.$ac_objext conftest$ac_exeext
 
8983
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8984
  (eval $ac_link) 2>&5
 
8985
  ac_status=$?
 
8986
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8987
  (exit $ac_status); } &&
 
8988
         { ac_try='test -s conftest$ac_exeext'
 
8989
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8990
  (eval $ac_try) 2>&5
 
8991
  ac_status=$?
 
8992
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8993
  (exit $ac_status); }; }; then
 
8994
  ac_cv_func_connect=yes
 
8995
else
 
8996
  echo "$as_me: failed program was:" >&5
 
8997
sed 's/^/| /' conftest.$ac_ext >&5
 
8998
 
 
8999
ac_cv_func_connect=no
 
9000
fi
 
9001
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9002
fi
 
9003
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
 
9004
echo "${ECHO_T}$ac_cv_func_connect" >&6
 
9005
 
 
9006
    if test $ac_cv_func_connect = no; then
 
9007
      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
 
9008
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
 
9009
if test "${ac_cv_lib_socket_connect+set}" = set; then
 
9010
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9011
else
 
9012
  ac_check_lib_save_LIBS=$LIBS
 
9013
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
 
9014
cat >conftest.$ac_ext <<_ACEOF
 
9015
#line $LINENO "configure"
 
9016
/* confdefs.h.  */
 
9017
_ACEOF
 
9018
cat confdefs.h >>conftest.$ac_ext
 
9019
cat >>conftest.$ac_ext <<_ACEOF
 
9020
/* end confdefs.h.  */
 
9021
 
 
9022
/* Override any gcc2 internal prototype to avoid an error.  */
 
9023
#ifdef __cplusplus
 
9024
extern "C"
 
9025
#endif
 
9026
/* We use char because int might match the return type of a gcc2
 
9027
   builtin and then its argument prototype would still apply.  */
 
9028
char connect ();
 
9029
int
 
9030
main ()
 
9031
{
 
9032
connect ();
 
9033
  ;
 
9034
  return 0;
 
9035
}
 
9036
_ACEOF
 
9037
rm -f conftest.$ac_objext conftest$ac_exeext
 
9038
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9039
  (eval $ac_link) 2>&5
 
9040
  ac_status=$?
 
9041
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9042
  (exit $ac_status); } &&
 
9043
         { ac_try='test -s conftest$ac_exeext'
 
9044
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9045
  (eval $ac_try) 2>&5
 
9046
  ac_status=$?
 
9047
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9048
  (exit $ac_status); }; }; then
 
9049
  ac_cv_lib_socket_connect=yes
 
9050
else
 
9051
  echo "$as_me: failed program was:" >&5
 
9052
sed 's/^/| /' conftest.$ac_ext >&5
 
9053
 
 
9054
ac_cv_lib_socket_connect=no
 
9055
fi
 
9056
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9057
LIBS=$ac_check_lib_save_LIBS
 
9058
fi
 
9059
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
 
9060
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
 
9061
if test $ac_cv_lib_socket_connect = yes; then
 
9062
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
 
9063
fi
 
9064
 
 
9065
    fi
 
9066
 
 
9067
    # Guillermo Gomez says -lposix is necessary on A/UX.
 
9068
    echo "$as_me:$LINENO: checking for remove" >&5
 
9069
echo $ECHO_N "checking for remove... $ECHO_C" >&6
 
9070
if test "${ac_cv_func_remove+set}" = set; then
 
9071
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9072
else
 
9073
  cat >conftest.$ac_ext <<_ACEOF
 
9074
#line $LINENO "configure"
 
9075
/* confdefs.h.  */
 
9076
_ACEOF
 
9077
cat confdefs.h >>conftest.$ac_ext
 
9078
cat >>conftest.$ac_ext <<_ACEOF
 
9079
/* end confdefs.h.  */
 
9080
/* System header to define __stub macros and hopefully few prototypes,
 
9081
    which can conflict with char remove (); below.
 
9082
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9083
    <limits.h> exists even on freestanding compilers.  */
 
9084
#ifdef __STDC__
 
9085
# include <limits.h>
 
9086
#else
 
9087
# include <assert.h>
 
9088
#endif
 
9089
/* Override any gcc2 internal prototype to avoid an error.  */
 
9090
#ifdef __cplusplus
 
9091
extern "C"
 
9092
{
 
9093
#endif
 
9094
/* We use char because int might match the return type of a gcc2
 
9095
   builtin and then its argument prototype would still apply.  */
 
9096
char remove ();
 
9097
/* The GNU C library defines this for functions which it implements
 
9098
    to always fail with ENOSYS.  Some functions are actually named
 
9099
    something starting with __ and the normal name is an alias.  */
 
9100
#if defined (__stub_remove) || defined (__stub___remove)
 
9101
choke me
 
9102
#else
 
9103
char (*f) () = remove;
 
9104
#endif
 
9105
#ifdef __cplusplus
 
9106
}
 
9107
#endif
 
9108
 
 
9109
int
 
9110
main ()
 
9111
{
 
9112
return f != remove;
 
9113
  ;
 
9114
  return 0;
 
9115
}
 
9116
_ACEOF
 
9117
rm -f conftest.$ac_objext conftest$ac_exeext
 
9118
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9119
  (eval $ac_link) 2>&5
 
9120
  ac_status=$?
 
9121
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9122
  (exit $ac_status); } &&
 
9123
         { ac_try='test -s conftest$ac_exeext'
 
9124
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9125
  (eval $ac_try) 2>&5
 
9126
  ac_status=$?
 
9127
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9128
  (exit $ac_status); }; }; then
 
9129
  ac_cv_func_remove=yes
 
9130
else
 
9131
  echo "$as_me: failed program was:" >&5
 
9132
sed 's/^/| /' conftest.$ac_ext >&5
 
9133
 
 
9134
ac_cv_func_remove=no
 
9135
fi
 
9136
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9137
fi
 
9138
echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
 
9139
echo "${ECHO_T}$ac_cv_func_remove" >&6
 
9140
 
 
9141
    if test $ac_cv_func_remove = no; then
 
9142
      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
 
9143
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
 
9144
if test "${ac_cv_lib_posix_remove+set}" = set; then
 
9145
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9146
else
 
9147
  ac_check_lib_save_LIBS=$LIBS
 
9148
LIBS="-lposix  $LIBS"
 
9149
cat >conftest.$ac_ext <<_ACEOF
 
9150
#line $LINENO "configure"
 
9151
/* confdefs.h.  */
 
9152
_ACEOF
 
9153
cat confdefs.h >>conftest.$ac_ext
 
9154
cat >>conftest.$ac_ext <<_ACEOF
 
9155
/* end confdefs.h.  */
 
9156
 
 
9157
/* Override any gcc2 internal prototype to avoid an error.  */
 
9158
#ifdef __cplusplus
 
9159
extern "C"
 
9160
#endif
 
9161
/* We use char because int might match the return type of a gcc2
 
9162
   builtin and then its argument prototype would still apply.  */
 
9163
char remove ();
 
9164
int
 
9165
main ()
 
9166
{
 
9167
remove ();
 
9168
  ;
 
9169
  return 0;
 
9170
}
 
9171
_ACEOF
 
9172
rm -f conftest.$ac_objext conftest$ac_exeext
 
9173
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9174
  (eval $ac_link) 2>&5
 
9175
  ac_status=$?
 
9176
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9177
  (exit $ac_status); } &&
 
9178
         { ac_try='test -s conftest$ac_exeext'
 
9179
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9180
  (eval $ac_try) 2>&5
 
9181
  ac_status=$?
 
9182
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9183
  (exit $ac_status); }; }; then
 
9184
  ac_cv_lib_posix_remove=yes
 
9185
else
 
9186
  echo "$as_me: failed program was:" >&5
 
9187
sed 's/^/| /' conftest.$ac_ext >&5
 
9188
 
 
9189
ac_cv_lib_posix_remove=no
 
9190
fi
 
9191
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9192
LIBS=$ac_check_lib_save_LIBS
 
9193
fi
 
9194
echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
 
9195
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
 
9196
if test $ac_cv_lib_posix_remove = yes; then
 
9197
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
 
9198
fi
 
9199
 
 
9200
    fi
 
9201
 
 
9202
    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
 
9203
    echo "$as_me:$LINENO: checking for shmat" >&5
 
9204
echo $ECHO_N "checking for shmat... $ECHO_C" >&6
 
9205
if test "${ac_cv_func_shmat+set}" = set; then
 
9206
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9207
else
 
9208
  cat >conftest.$ac_ext <<_ACEOF
 
9209
#line $LINENO "configure"
 
9210
/* confdefs.h.  */
 
9211
_ACEOF
 
9212
cat confdefs.h >>conftest.$ac_ext
 
9213
cat >>conftest.$ac_ext <<_ACEOF
 
9214
/* end confdefs.h.  */
 
9215
/* System header to define __stub macros and hopefully few prototypes,
 
9216
    which can conflict with char shmat (); below.
 
9217
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9218
    <limits.h> exists even on freestanding compilers.  */
 
9219
#ifdef __STDC__
 
9220
# include <limits.h>
 
9221
#else
 
9222
# include <assert.h>
 
9223
#endif
 
9224
/* Override any gcc2 internal prototype to avoid an error.  */
 
9225
#ifdef __cplusplus
 
9226
extern "C"
 
9227
{
 
9228
#endif
 
9229
/* We use char because int might match the return type of a gcc2
 
9230
   builtin and then its argument prototype would still apply.  */
 
9231
char shmat ();
 
9232
/* The GNU C library defines this for functions which it implements
 
9233
    to always fail with ENOSYS.  Some functions are actually named
 
9234
    something starting with __ and the normal name is an alias.  */
 
9235
#if defined (__stub_shmat) || defined (__stub___shmat)
 
9236
choke me
 
9237
#else
 
9238
char (*f) () = shmat;
 
9239
#endif
 
9240
#ifdef __cplusplus
 
9241
}
 
9242
#endif
 
9243
 
 
9244
int
 
9245
main ()
 
9246
{
 
9247
return f != shmat;
 
9248
  ;
 
9249
  return 0;
 
9250
}
 
9251
_ACEOF
 
9252
rm -f conftest.$ac_objext conftest$ac_exeext
 
9253
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9254
  (eval $ac_link) 2>&5
 
9255
  ac_status=$?
 
9256
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9257
  (exit $ac_status); } &&
 
9258
         { ac_try='test -s conftest$ac_exeext'
 
9259
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9260
  (eval $ac_try) 2>&5
 
9261
  ac_status=$?
 
9262
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9263
  (exit $ac_status); }; }; then
 
9264
  ac_cv_func_shmat=yes
 
9265
else
 
9266
  echo "$as_me: failed program was:" >&5
 
9267
sed 's/^/| /' conftest.$ac_ext >&5
 
9268
 
 
9269
ac_cv_func_shmat=no
 
9270
fi
 
9271
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9272
fi
 
9273
echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
 
9274
echo "${ECHO_T}$ac_cv_func_shmat" >&6
 
9275
 
 
9276
    if test $ac_cv_func_shmat = no; then
 
9277
      echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
 
9278
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
 
9279
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
 
9280
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9281
else
 
9282
  ac_check_lib_save_LIBS=$LIBS
 
9283
LIBS="-lipc  $LIBS"
 
9284
cat >conftest.$ac_ext <<_ACEOF
 
9285
#line $LINENO "configure"
 
9286
/* confdefs.h.  */
 
9287
_ACEOF
 
9288
cat confdefs.h >>conftest.$ac_ext
 
9289
cat >>conftest.$ac_ext <<_ACEOF
 
9290
/* end confdefs.h.  */
 
9291
 
 
9292
/* Override any gcc2 internal prototype to avoid an error.  */
 
9293
#ifdef __cplusplus
 
9294
extern "C"
 
9295
#endif
 
9296
/* We use char because int might match the return type of a gcc2
 
9297
   builtin and then its argument prototype would still apply.  */
 
9298
char shmat ();
 
9299
int
 
9300
main ()
 
9301
{
 
9302
shmat ();
 
9303
  ;
 
9304
  return 0;
 
9305
}
 
9306
_ACEOF
 
9307
rm -f conftest.$ac_objext conftest$ac_exeext
 
9308
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9309
  (eval $ac_link) 2>&5
 
9310
  ac_status=$?
 
9311
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9312
  (exit $ac_status); } &&
 
9313
         { ac_try='test -s conftest$ac_exeext'
 
9314
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9315
  (eval $ac_try) 2>&5
 
9316
  ac_status=$?
 
9317
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9318
  (exit $ac_status); }; }; then
 
9319
  ac_cv_lib_ipc_shmat=yes
 
9320
else
 
9321
  echo "$as_me: failed program was:" >&5
 
9322
sed 's/^/| /' conftest.$ac_ext >&5
 
9323
 
 
9324
ac_cv_lib_ipc_shmat=no
 
9325
fi
 
9326
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9327
LIBS=$ac_check_lib_save_LIBS
 
9328
fi
 
9329
echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
 
9330
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
 
9331
if test $ac_cv_lib_ipc_shmat = yes; then
 
9332
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
 
9333
fi
 
9334
 
 
9335
    fi
 
9336
  fi
 
9337
 
 
9338
  # Check for libraries that X11R6 Xt/Xaw programs need.
 
9339
  ac_save_LDFLAGS=$LDFLAGS
 
9340
  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
 
9341
  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
 
9342
  # check for ICE first), but we must link in the order -lSM -lICE or
 
9343
  # we get undefined symbols.  So assume we have SM if we have ICE.
 
9344
  # These have to be linked with before -lX11, unlike the other
 
9345
  # libraries we check for below, so use a different variable.
 
9346
  # John Interrante, Karl Berry
 
9347
  echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
 
9348
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
 
9349
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
 
9350
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9351
else
 
9352
  ac_check_lib_save_LIBS=$LIBS
 
9353
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
 
9354
cat >conftest.$ac_ext <<_ACEOF
 
9355
#line $LINENO "configure"
 
9356
/* confdefs.h.  */
 
9357
_ACEOF
 
9358
cat confdefs.h >>conftest.$ac_ext
 
9359
cat >>conftest.$ac_ext <<_ACEOF
 
9360
/* end confdefs.h.  */
 
9361
 
 
9362
/* Override any gcc2 internal prototype to avoid an error.  */
 
9363
#ifdef __cplusplus
 
9364
extern "C"
 
9365
#endif
 
9366
/* We use char because int might match the return type of a gcc2
 
9367
   builtin and then its argument prototype would still apply.  */
 
9368
char IceConnectionNumber ();
 
9369
int
 
9370
main ()
 
9371
{
 
9372
IceConnectionNumber ();
 
9373
  ;
 
9374
  return 0;
 
9375
}
 
9376
_ACEOF
 
9377
rm -f conftest.$ac_objext conftest$ac_exeext
 
9378
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9379
  (eval $ac_link) 2>&5
 
9380
  ac_status=$?
 
9381
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9382
  (exit $ac_status); } &&
 
9383
         { ac_try='test -s conftest$ac_exeext'
 
9384
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9385
  (eval $ac_try) 2>&5
 
9386
  ac_status=$?
 
9387
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9388
  (exit $ac_status); }; }; then
 
9389
  ac_cv_lib_ICE_IceConnectionNumber=yes
 
9390
else
 
9391
  echo "$as_me: failed program was:" >&5
 
9392
sed 's/^/| /' conftest.$ac_ext >&5
 
9393
 
 
9394
ac_cv_lib_ICE_IceConnectionNumber=no
 
9395
fi
 
9396
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9397
LIBS=$ac_check_lib_save_LIBS
 
9398
fi
 
9399
echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
 
9400
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
 
9401
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
 
9402
  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
 
9403
fi
 
9404
 
 
9405
  LDFLAGS=$ac_save_LDFLAGS
 
9406
 
 
9407
fi
 
9408
 
 
9409
 
 
9410
 
 
9411
 
 
9412
 
 
9413
 
 
9414
 
 
9415
 
 
9416
GTK_LIBS="$GTK_LIBS $X_LIBS"
 
9417
 
 
9418
echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
 
9419
echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
 
9420
if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
 
9421
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9422
else
 
9423
  ac_check_lib_save_LIBS=$LIBS
 
9424
LIBS="-lX11 $X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
 
9425
cat >conftest.$ac_ext <<_ACEOF
 
9426
#line $LINENO "configure"
 
9427
/* confdefs.h.  */
 
9428
_ACEOF
 
9429
cat confdefs.h >>conftest.$ac_ext
 
9430
cat >>conftest.$ac_ext <<_ACEOF
 
9431
/* end confdefs.h.  */
 
9432
 
 
9433
/* Override any gcc2 internal prototype to avoid an error.  */
 
9434
#ifdef __cplusplus
 
9435
extern "C"
 
9436
#endif
 
9437
/* We use char because int might match the return type of a gcc2
 
9438
   builtin and then its argument prototype would still apply.  */
 
9439
char XOpenDisplay ();
 
9440
int
 
9441
main ()
 
9442
{
 
9443
XOpenDisplay ();
 
9444
  ;
 
9445
  return 0;
 
9446
}
 
9447
_ACEOF
 
9448
rm -f conftest.$ac_objext conftest$ac_exeext
 
9449
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9450
  (eval $ac_link) 2>&5
 
9451
  ac_status=$?
 
9452
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9453
  (exit $ac_status); } &&
 
9454
         { ac_try='test -s conftest$ac_exeext'
 
9455
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9456
  (eval $ac_try) 2>&5
 
9457
  ac_status=$?
 
9458
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9459
  (exit $ac_status); }; }; then
 
9460
  ac_cv_lib_X11_XOpenDisplay=yes
 
9461
else
 
9462
  echo "$as_me: failed program was:" >&5
 
9463
sed 's/^/| /' conftest.$ac_ext >&5
 
9464
 
 
9465
ac_cv_lib_X11_XOpenDisplay=no
 
9466
fi
 
9467
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9468
LIBS=$ac_check_lib_save_LIBS
 
9469
fi
 
9470
echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
 
9471
echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
 
9472
if test $ac_cv_lib_X11_XOpenDisplay = yes; then
 
9473
  cat >>confdefs.h <<_ACEOF
 
9474
#define HAVE_LIBX11 1
 
9475
_ACEOF
 
9476
 
 
9477
  LIBS="-lX11 $LIBS"
 
9478
 
 
9479
else
 
9480
  { { echo "$as_me:$LINENO: error: ** X11-libs not installed or broken **" >&5
 
9481
echo "$as_me: error: ** X11-libs not installed or broken **" >&2;}
 
9482
   { (exit 1); exit 1; }; }
 
9483
fi
 
9484
 
 
9485
 
 
9486
echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
 
9487
echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
 
9488
if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
 
9489
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9490
else
 
9491
  ac_check_lib_save_LIBS=$LIBS
 
9492
LIBS="-lXext $X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
 
9493
cat >conftest.$ac_ext <<_ACEOF
 
9494
#line $LINENO "configure"
 
9495
/* confdefs.h.  */
 
9496
_ACEOF
 
9497
cat confdefs.h >>conftest.$ac_ext
 
9498
cat >>conftest.$ac_ext <<_ACEOF
 
9499
/* end confdefs.h.  */
 
9500
 
 
9501
/* Override any gcc2 internal prototype to avoid an error.  */
 
9502
#ifdef __cplusplus
 
9503
extern "C"
 
9504
#endif
 
9505
/* We use char because int might match the return type of a gcc2
 
9506
   builtin and then its argument prototype would still apply.  */
 
9507
char XShmQueryExtension ();
 
9508
int
 
9509
main ()
 
9510
{
 
9511
XShmQueryExtension ();
 
9512
  ;
 
9513
  return 0;
 
9514
}
 
9515
_ACEOF
 
9516
rm -f conftest.$ac_objext conftest$ac_exeext
 
9517
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9518
  (eval $ac_link) 2>&5
 
9519
  ac_status=$?
 
9520
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9521
  (exit $ac_status); } &&
 
9522
         { ac_try='test -s conftest$ac_exeext'
 
9523
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9524
  (eval $ac_try) 2>&5
 
9525
  ac_status=$?
 
9526
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9527
  (exit $ac_status); }; }; then
 
9528
  ac_cv_lib_Xext_XShmQueryExtension=yes
 
9529
else
 
9530
  echo "$as_me: failed program was:" >&5
 
9531
sed 's/^/| /' conftest.$ac_ext >&5
 
9532
 
 
9533
ac_cv_lib_Xext_XShmQueryExtension=no
 
9534
fi
 
9535
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9536
LIBS=$ac_check_lib_save_LIBS
 
9537
fi
 
9538
echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
 
9539
echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
 
9540
if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
 
9541
  cat >>confdefs.h <<_ACEOF
 
9542
#define HAVE_LIBXEXT 1
 
9543
_ACEOF
 
9544
 
 
9545
  LIBS="-lXext $LIBS"
 
9546
 
 
9547
else
 
9548
  { { echo "$as_me:$LINENO: error: ** Xext-libs not installed or broken **" >&5
 
9549
echo "$as_me: error: ** Xext-libs not installed or broken **" >&2;}
 
9550
   { (exit 1); exit 1; }; }
 
9551
fi
 
9552
 
 
9553
 
 
9554
echo "$as_me:$LINENO: checking for XOpenDevice in -lXi" >&5
 
9555
echo $ECHO_N "checking for XOpenDevice in -lXi... $ECHO_C" >&6
 
9556
if test "${ac_cv_lib_Xi_XOpenDevice+set}" = set; then
 
9557
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9558
else
 
9559
  ac_check_lib_save_LIBS=$LIBS
 
9560
LIBS="-lXi $X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
 
9561
cat >conftest.$ac_ext <<_ACEOF
 
9562
#line $LINENO "configure"
 
9563
/* confdefs.h.  */
 
9564
_ACEOF
 
9565
cat confdefs.h >>conftest.$ac_ext
 
9566
cat >>conftest.$ac_ext <<_ACEOF
 
9567
/* end confdefs.h.  */
 
9568
 
 
9569
/* Override any gcc2 internal prototype to avoid an error.  */
 
9570
#ifdef __cplusplus
 
9571
extern "C"
 
9572
#endif
 
9573
/* We use char because int might match the return type of a gcc2
 
9574
   builtin and then its argument prototype would still apply.  */
 
9575
char XOpenDevice ();
 
9576
int
 
9577
main ()
 
9578
{
 
9579
XOpenDevice ();
 
9580
  ;
 
9581
  return 0;
 
9582
}
 
9583
_ACEOF
 
9584
rm -f conftest.$ac_objext conftest$ac_exeext
 
9585
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9586
  (eval $ac_link) 2>&5
 
9587
  ac_status=$?
 
9588
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9589
  (exit $ac_status); } &&
 
9590
         { ac_try='test -s conftest$ac_exeext'
 
9591
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9592
  (eval $ac_try) 2>&5
 
9593
  ac_status=$?
 
9594
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9595
  (exit $ac_status); }; }; then
 
9596
  ac_cv_lib_Xi_XOpenDevice=yes
 
9597
else
 
9598
  echo "$as_me: failed program was:" >&5
 
9599
sed 's/^/| /' conftest.$ac_ext >&5
 
9600
 
 
9601
ac_cv_lib_Xi_XOpenDevice=no
 
9602
fi
 
9603
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9604
LIBS=$ac_check_lib_save_LIBS
 
9605
fi
 
9606
echo "$as_me:$LINENO: result: $ac_cv_lib_Xi_XOpenDevice" >&5
 
9607
echo "${ECHO_T}$ac_cv_lib_Xi_XOpenDevice" >&6
 
9608
if test $ac_cv_lib_Xi_XOpenDevice = yes; then
 
9609
  cat >>confdefs.h <<_ACEOF
 
9610
#define HAVE_LIBXI 1
 
9611
_ACEOF
 
9612
 
 
9613
  LIBS="-lXi $LIBS"
 
9614
 
 
9615
else
 
9616
  { { echo "$as_me:$LINENO: error: ** XInput not installed or broken **" >&5
 
9617
echo "$as_me: error: ** XInput not installed or broken **" >&2;}
 
9618
   { (exit 1); exit 1; }; }
 
9619
fi
 
9620
 
 
9621
 
 
9622
echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
 
9623
echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
 
9624
if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
 
9625
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9626
else
 
9627
  ac_check_lib_save_LIBS=$LIBS
 
9628
LIBS="-lXxf86dga $X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
 
9629
cat >conftest.$ac_ext <<_ACEOF
 
9630
#line $LINENO "configure"
 
9631
/* confdefs.h.  */
 
9632
_ACEOF
 
9633
cat confdefs.h >>conftest.$ac_ext
 
9634
cat >>conftest.$ac_ext <<_ACEOF
 
9635
/* end confdefs.h.  */
 
9636
 
 
9637
/* Override any gcc2 internal prototype to avoid an error.  */
 
9638
#ifdef __cplusplus
 
9639
extern "C"
 
9640
#endif
 
9641
/* We use char because int might match the return type of a gcc2
 
9642
   builtin and then its argument prototype would still apply.  */
 
9643
char XF86DGAQueryExtension ();
 
9644
int
 
9645
main ()
 
9646
{
 
9647
XF86DGAQueryExtension ();
 
9648
  ;
 
9649
  return 0;
 
9650
}
 
9651
_ACEOF
 
9652
rm -f conftest.$ac_objext conftest$ac_exeext
 
9653
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9654
  (eval $ac_link) 2>&5
 
9655
  ac_status=$?
 
9656
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9657
  (exit $ac_status); } &&
 
9658
         { ac_try='test -s conftest$ac_exeext'
 
9659
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9660
  (eval $ac_try) 2>&5
 
9661
  ac_status=$?
 
9662
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9663
  (exit $ac_status); }; }; then
 
9664
  ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
 
9665
else
 
9666
  echo "$as_me: failed program was:" >&5
 
9667
sed 's/^/| /' conftest.$ac_ext >&5
 
9668
 
 
9669
ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
 
9670
fi
 
9671
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9672
LIBS=$ac_check_lib_save_LIBS
 
9673
fi
 
9674
echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
 
9675
echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
 
9676
if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
 
9677
  cat >>confdefs.h <<_ACEOF
 
9678
#define HAVE_LIBXXF86DGA 1
 
9679
_ACEOF
 
9680
 
 
9681
  LIBS="-lXxf86dga $LIBS"
 
9682
 
 
9683
else
 
9684
  { { echo "$as_me:$LINENO: error: ** DGA not installed or broken **" >&5
 
9685
echo "$as_me: error: ** DGA not installed or broken **" >&2;}
 
9686
   { (exit 1); exit 1; }; }
 
9687
fi
 
9688
 
 
9689
if test "$enable_dga2" = yes; then
 
9690
 
 
9691
echo "$as_me:$LINENO: checking for XDGASelectInput in -lXxf86dga" >&5
 
9692
echo $ECHO_N "checking for XDGASelectInput in -lXxf86dga... $ECHO_C" >&6
 
9693
if test "${ac_cv_lib_Xxf86dga_XDGASelectInput+set}" = set; then
 
9694
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9695
else
 
9696
  ac_check_lib_save_LIBS=$LIBS
 
9697
LIBS="-lXxf86dga $X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
 
9698
cat >conftest.$ac_ext <<_ACEOF
 
9699
#line $LINENO "configure"
 
9700
/* confdefs.h.  */
 
9701
_ACEOF
 
9702
cat confdefs.h >>conftest.$ac_ext
 
9703
cat >>conftest.$ac_ext <<_ACEOF
 
9704
/* end confdefs.h.  */
 
9705
 
 
9706
/* Override any gcc2 internal prototype to avoid an error.  */
 
9707
#ifdef __cplusplus
 
9708
extern "C"
 
9709
#endif
 
9710
/* We use char because int might match the return type of a gcc2
 
9711
   builtin and then its argument prototype would still apply.  */
 
9712
char XDGASelectInput ();
 
9713
int
 
9714
main ()
 
9715
{
 
9716
XDGASelectInput ();
 
9717
  ;
 
9718
  return 0;
 
9719
}
 
9720
_ACEOF
 
9721
rm -f conftest.$ac_objext conftest$ac_exeext
 
9722
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9723
  (eval $ac_link) 2>&5
 
9724
  ac_status=$?
 
9725
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9726
  (exit $ac_status); } &&
 
9727
         { ac_try='test -s conftest$ac_exeext'
 
9728
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9729
  (eval $ac_try) 2>&5
 
9730
  ac_status=$?
 
9731
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9732
  (exit $ac_status); }; }; then
 
9733
  ac_cv_lib_Xxf86dga_XDGASelectInput=yes
 
9734
else
 
9735
  echo "$as_me: failed program was:" >&5
 
9736
sed 's/^/| /' conftest.$ac_ext >&5
 
9737
 
 
9738
ac_cv_lib_Xxf86dga_XDGASelectInput=no
 
9739
fi
 
9740
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9741
LIBS=$ac_check_lib_save_LIBS
 
9742
fi
 
9743
echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGASelectInput" >&5
 
9744
echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGASelectInput" >&6
 
9745
if test $ac_cv_lib_Xxf86dga_XDGASelectInput = yes; then
 
9746
  cat >>confdefs.h <<_ACEOF
 
9747
#define HAVE_LIBXXF86DGA 1
 
9748
_ACEOF
 
9749
 
 
9750
  LIBS="-lXxf86dga $LIBS"
 
9751
 
 
9752
else
 
9753
  { { echo "$as_me:$LINENO: error: ** DGA2 not installed. Try using dga1 instead. **" >&5
 
9754
echo "$as_me: error: ** DGA2 not installed. Try using dga1 instead. **" >&2;}
 
9755
   { (exit 1); exit 1; }; }
 
9756
fi
 
9757
 
 
9758
fi
 
9759
 
 
9760
CFLAGS="$XML_CFLAGS $CFLAGS -DXML_MANUAL=$xml_man"
 
9761
LIBS="$XML_LIBS $LIBS"
 
9762
 
 
9763
                                                                                                              ac_config_files="$ac_config_files Makefile src/Makefile gnome-support/Makefile gnome-support/terminatorX.keys src/gui_icons/Makefile src/smallknob/Makefile doc/Makefile doc/terminatorX-manual/Makefile doc/terminatorX-manual/C/Makefile terminatorX.spec terminatorX.1"
 
9764
cat >confcache <<\_ACEOF
 
9765
# This file is a shell script that caches the results of configure
 
9766
# tests run on this system so they can be shared between configure
 
9767
# scripts and configure runs, see configure's option --config-cache.
 
9768
# It is not useful on other systems.  If it contains results you don't
 
9769
# want to keep, you may remove or edit it.
 
9770
#
 
9771
# config.status only pays attention to the cache file if you give it
 
9772
# the --recheck option to rerun configure.
 
9773
#
 
9774
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
9775
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
9776
# following values.
 
9777
 
 
9778
_ACEOF
 
9779
 
 
9780
# The following way of writing the cache mishandles newlines in values,
 
9781
# but we know of no workaround that is simple, portable, and efficient.
 
9782
# So, don't put newlines in cache variables' values.
 
9783
# Ultrix sh set writes to stderr and can't be redirected directly,
 
9784
# and sets the high bit in the cache file unless we assign to the vars.
 
9785
{
 
9786
  (set) 2>&1 |
 
9787
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
9788
    *ac_space=\ *)
 
9789
      # `set' does not quote correctly, so add quotes (double-quote
 
9790
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
9791
      sed -n \
 
9792
        "s/'/'\\\\''/g;
 
9793
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
9794
      ;;
 
9795
    *)
 
9796
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
9797
      sed -n \
 
9798
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
9799
      ;;
 
9800
    esac;
 
9801
} |
 
9802
  sed '
 
9803
     t clear
 
9804
     : clear
 
9805
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
9806
     t end
 
9807
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
9808
     : end' >>confcache
 
9809
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
9810
  if test -w $cache_file; then
 
9811
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
9812
    cat confcache >$cache_file
 
9813
  else
 
9814
    echo "not updating unwritable cache $cache_file"
 
9815
  fi
 
9816
fi
 
9817
rm -f confcache
 
9818
 
 
9819
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
9820
# Let make expand exec_prefix.
 
9821
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
9822
 
 
9823
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
9824
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
9825
# trailing colons and then remove the whole line if VPATH becomes empty
 
9826
# (actually we leave an empty line to preserve line numbers).
 
9827
if test "x$srcdir" = x.; then
 
9828
  ac_vpsub='/^[         ]*VPATH[        ]*=/{
 
9829
s/:*\$(srcdir):*/:/;
 
9830
s/:*\${srcdir}:*/:/;
 
9831
s/:*@srcdir@:*/:/;
 
9832
s/^\([^=]*=[    ]*\):*/\1/;
 
9833
s/:*$//;
 
9834
s/^[^=]*=[      ]*$//;
 
9835
}'
 
9836
fi
 
9837
 
 
9838
DEFS=-DHAVE_CONFIG_H
 
9839
 
 
9840
ac_libobjs=
 
9841
ac_ltlibobjs=
 
9842
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
9843
  # 1. Remove the extension, and $U if already installed.
 
9844
  ac_i=`echo "$ac_i" |
 
9845
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
9846
  # 2. Add them.
 
9847
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
9848
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
9849
done
 
9850
LIBOBJS=$ac_libobjs
 
9851
 
 
9852
LTLIBOBJS=$ac_ltlibobjs
 
9853
 
 
9854
 
 
9855
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
9856
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
9857
Usually this means the macro was only invoked conditionally." >&5
 
9858
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
9859
Usually this means the macro was only invoked conditionally." >&2;}
 
9860
   { (exit 1); exit 1; }; }
 
9861
fi
 
9862
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
9863
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
9864
Usually this means the macro was only invoked conditionally." >&5
 
9865
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
9866
Usually this means the macro was only invoked conditionally." >&2;}
 
9867
   { (exit 1); exit 1; }; }
 
9868
fi
 
9869
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
9870
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
9871
Usually this means the macro was only invoked conditionally." >&5
 
9872
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
9873
Usually this means the macro was only invoked conditionally." >&2;}
 
9874
   { (exit 1); exit 1; }; }
 
9875
fi
 
9876
if test -z "${GNOMEpresent_TRUE}" && test -z "${GNOMEpresent_FALSE}"; then
 
9877
  { { echo "$as_me:$LINENO: error: conditional \"GNOMEpresent\" was never defined.
 
9878
Usually this means the macro was only invoked conditionally." >&5
 
9879
echo "$as_me: error: conditional \"GNOMEpresent\" was never defined.
 
9880
Usually this means the macro was only invoked conditionally." >&2;}
 
9881
   { (exit 1); exit 1; }; }
 
9882
fi
 
9883
 
 
9884
: ${CONFIG_STATUS=./config.status}
 
9885
ac_clean_files_save=$ac_clean_files
 
9886
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
9887
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
9888
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
9889
cat >$CONFIG_STATUS <<_ACEOF
 
9890
#! $SHELL
 
9891
# Generated by $as_me.
 
9892
# Run this file to recreate the current configuration.
 
9893
# Compiler output produced by configure, useful for debugging
 
9894
# configure, is in config.log if it exists.
 
9895
 
 
9896
debug=false
 
9897
ac_cs_recheck=false
 
9898
ac_cs_silent=false
 
9899
SHELL=\${CONFIG_SHELL-$SHELL}
 
9900
_ACEOF
 
9901
 
 
9902
cat >>$CONFIG_STATUS <<\_ACEOF
 
9903
## --------------------- ##
 
9904
## M4sh Initialization.  ##
 
9905
## --------------------- ##
 
9906
 
 
9907
# Be Bourne compatible
 
9908
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
9909
  emulate sh
 
9910
  NULLCMD=:
 
9911
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
9912
  # is contrary to our usage.  Disable this feature.
 
9913
  alias -g '${1+"$@"}'='"$@"'
 
9914
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
9915
  set -o posix
 
9916
fi
 
9917
 
 
9918
# Support unset when possible.
 
9919
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
9920
  as_unset=unset
 
9921
else
 
9922
  as_unset=false
 
9923
fi
 
9924
 
 
9925
 
 
9926
# Work around bugs in pre-3.0 UWIN ksh.
 
9927
$as_unset ENV MAIL MAILPATH
 
9928
PS1='$ '
 
9929
PS2='> '
 
9930
PS4='+ '
 
9931
 
 
9932
# NLS nuisances.
 
9933
for as_var in \
 
9934
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
9935
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
9936
  LC_TELEPHONE LC_TIME
 
9937
do
 
9938
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
9939
    eval $as_var=C; export $as_var
 
9940
  else
 
9941
    $as_unset $as_var
 
9942
  fi
 
9943
done
 
9944
 
 
9945
# Required to use basename.
 
9946
if expr a : '\(a\)' >/dev/null 2>&1; then
 
9947
  as_expr=expr
 
9948
else
 
9949
  as_expr=false
 
9950
fi
 
9951
 
 
9952
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
9953
  as_basename=basename
 
9954
else
 
9955
  as_basename=false
 
9956
fi
 
9957
 
 
9958
 
 
9959
# Name of the executable.
 
9960
as_me=`$as_basename "$0" ||
 
9961
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
9962
         X"$0" : 'X\(//\)$' \| \
 
9963
         X"$0" : 'X\(/\)$' \| \
 
9964
         .     : '\(.\)' 2>/dev/null ||
 
9965
echo X/"$0" |
 
9966
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
9967
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
9968
          /^X\/\(\/\).*/{ s//\1/; q; }
 
9969
          s/.*/./; q'`
 
9970
 
 
9971
 
 
9972
# PATH needs CR, and LINENO needs CR and PATH.
 
9973
# Avoid depending upon Character Ranges.
 
9974
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
9975
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
9976
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
9977
as_cr_digits='0123456789'
 
9978
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
9979
 
 
9980
# The user is always right.
 
9981
if test "${PATH_SEPARATOR+set}" != set; then
 
9982
  echo "#! /bin/sh" >conf$$.sh
 
9983
  echo  "exit 0"   >>conf$$.sh
 
9984
  chmod +x conf$$.sh
 
9985
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
9986
    PATH_SEPARATOR=';'
 
9987
  else
 
9988
    PATH_SEPARATOR=:
 
9989
  fi
 
9990
  rm -f conf$$.sh
 
9991
fi
 
9992
 
 
9993
 
 
9994
  as_lineno_1=$LINENO
 
9995
  as_lineno_2=$LINENO
 
9996
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
9997
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
9998
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
9999
  # Find who we are.  Look in the path if we contain no path at all
 
10000
  # relative or not.
 
10001
  case $0 in
 
10002
    *[\\/]* ) as_myself=$0 ;;
 
10003
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
10004
for as_dir in $PATH
 
10005
do
 
10006
  IFS=$as_save_IFS
 
10007
  test -z "$as_dir" && as_dir=.
 
10008
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
10009
done
 
10010
 
 
10011
       ;;
 
10012
  esac
 
10013
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
10014
  # in which case we are not to be found in the path.
 
10015
  if test "x$as_myself" = x; then
 
10016
    as_myself=$0
 
10017
  fi
 
10018
  if test ! -f "$as_myself"; then
 
10019
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
10020
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
10021
   { (exit 1); exit 1; }; }
 
10022
  fi
 
10023
  case $CONFIG_SHELL in
 
10024
  '')
 
10025
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
10026
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
10027
do
 
10028
  IFS=$as_save_IFS
 
10029
  test -z "$as_dir" && as_dir=.
 
10030
  for as_base in sh bash ksh sh5; do
 
10031
         case $as_dir in
 
10032
         /*)
 
10033
           if ("$as_dir/$as_base" -c '
 
10034
  as_lineno_1=$LINENO
 
10035
  as_lineno_2=$LINENO
 
10036
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
10037
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
10038
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
10039
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
10040
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
10041
             CONFIG_SHELL=$as_dir/$as_base
 
10042
             export CONFIG_SHELL
 
10043
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
10044
           fi;;
 
10045
         esac
 
10046
       done
 
10047
done
 
10048
;;
 
10049
  esac
 
10050
 
 
10051
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
10052
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
10053
  # line-number line before each line; the second 'sed' does the real
 
10054
  # work.  The second script uses 'N' to pair each line-number line
 
10055
  # with the numbered line, and appends trailing '-' during
 
10056
  # substitution so that $LINENO is not a special case at line end.
 
10057
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
10058
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
10059
  sed '=' <$as_myself |
 
10060
    sed '
 
10061
      N
 
10062
      s,$,-,
 
10063
      : loop
 
10064
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
10065
      t loop
 
10066
      s,-$,,
 
10067
      s,^['$as_cr_digits']*\n,,
 
10068
    ' >$as_me.lineno &&
 
10069
  chmod +x $as_me.lineno ||
 
10070
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
10071
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
10072
   { (exit 1); exit 1; }; }
 
10073
 
 
10074
  # Don't try to exec as it changes $[0], causing all sort of problems
 
10075
  # (the dirname of $[0] is not the place where we might find the
 
10076
  # original and so on.  Autoconf is especially sensible to this).
 
10077
  . ./$as_me.lineno
 
10078
  # Exit status is that of the last command.
 
10079
  exit
 
10080
}
 
10081
 
 
10082
 
 
10083
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
10084
  *c*,-n*) ECHO_N= ECHO_C='
 
10085
' ECHO_T='      ' ;;
 
10086
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
10087
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
10088
esac
 
10089
 
 
10090
if expr a : '\(a\)' >/dev/null 2>&1; then
 
10091
  as_expr=expr
 
10092
else
 
10093
  as_expr=false
 
10094
fi
 
10095
 
 
10096
rm -f conf$$ conf$$.exe conf$$.file
 
10097
echo >conf$$.file
 
10098
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
10099
  # We could just check for DJGPP; but this test a) works b) is more generic
 
10100
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
10101
  if test -f conf$$.exe; then
 
10102
    # Don't use ln at all; we don't have any links
 
10103
    as_ln_s='cp -p'
 
10104
  else
 
10105
    as_ln_s='ln -s'
 
10106
  fi
 
10107
elif ln conf$$.file conf$$ 2>/dev/null; then
 
10108
  as_ln_s=ln
 
10109
else
 
10110
  as_ln_s='cp -p'
 
10111
fi
 
10112
rm -f conf$$ conf$$.exe conf$$.file
 
10113
 
 
10114
if mkdir -p . 2>/dev/null; then
 
10115
  as_mkdir_p=:
 
10116
else
 
10117
  as_mkdir_p=false
 
10118
fi
 
10119
 
 
10120
as_executable_p="test -f"
 
10121
 
 
10122
# Sed expression to map a string onto a valid CPP name.
 
10123
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
 
10124
 
 
10125
# Sed expression to map a string onto a valid variable name.
 
10126
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 
10127
 
 
10128
 
 
10129
# IFS
 
10130
# We need space, tab and new line, in precisely that order.
 
10131
as_nl='
 
10132
'
 
10133
IFS="   $as_nl"
 
10134
 
 
10135
# CDPATH.
 
10136
$as_unset CDPATH
 
10137
 
 
10138
exec 6>&1
 
10139
 
 
10140
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
10141
# report actual input values of CONFIG_FILES etc. instead of their
 
10142
# values after options handling.  Logging --version etc. is OK.
 
10143
exec 5>>config.log
 
10144
{
 
10145
  echo
 
10146
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
10147
## Running $as_me. ##
 
10148
_ASBOX
 
10149
} >&5
 
10150
cat >&5 <<_CSEOF
 
10151
 
 
10152
This file was extended by $as_me, which was
 
10153
generated by GNU Autoconf 2.57.  Invocation command line was
 
10154
 
 
10155
  CONFIG_FILES    = $CONFIG_FILES
 
10156
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
10157
  CONFIG_LINKS    = $CONFIG_LINKS
 
10158
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
10159
  $ $0 $@
 
10160
 
 
10161
_CSEOF
 
10162
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
10163
echo >&5
 
10164
_ACEOF
 
10165
 
 
10166
# Files that config.status was made for.
 
10167
if test -n "$ac_config_files"; then
 
10168
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
10169
fi
 
10170
 
 
10171
if test -n "$ac_config_headers"; then
 
10172
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
10173
fi
 
10174
 
 
10175
if test -n "$ac_config_links"; then
 
10176
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
10177
fi
 
10178
 
 
10179
if test -n "$ac_config_commands"; then
 
10180
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
10181
fi
 
10182
 
 
10183
cat >>$CONFIG_STATUS <<\_ACEOF
 
10184
 
 
10185
ac_cs_usage="\
 
10186
\`$as_me' instantiates files from templates according to the
 
10187
current configuration.
 
10188
 
 
10189
Usage: $0 [OPTIONS] [FILE]...
 
10190
 
 
10191
  -h, --help       print this help, then exit
 
10192
  -V, --version    print version number, then exit
 
10193
  -q, --quiet      do not print progress messages
 
10194
  -d, --debug      don't remove temporary files
 
10195
      --recheck    update $as_me by reconfiguring in the same conditions
 
10196
  --file=FILE[:TEMPLATE]
 
10197
                   instantiate the configuration file FILE
 
10198
  --header=FILE[:TEMPLATE]
 
10199
                   instantiate the configuration header FILE
 
10200
 
 
10201
Configuration files:
 
10202
$config_files
 
10203
 
 
10204
Configuration headers:
 
10205
$config_headers
 
10206
 
 
10207
Configuration commands:
 
10208
$config_commands
 
10209
 
 
10210
Report bugs to <bug-autoconf@gnu.org>."
 
10211
_ACEOF
 
10212
 
 
10213
cat >>$CONFIG_STATUS <<_ACEOF
 
10214
ac_cs_version="\\
 
10215
config.status
 
10216
configured by $0, generated by GNU Autoconf 2.57,
 
10217
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
10218
 
 
10219
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
 
10220
Free Software Foundation, Inc.
 
10221
This config.status script is free software; the Free Software Foundation
 
10222
gives unlimited permission to copy, distribute and modify it."
 
10223
srcdir=$srcdir
 
10224
INSTALL="$INSTALL"
 
10225
_ACEOF
 
10226
 
 
10227
cat >>$CONFIG_STATUS <<\_ACEOF
 
10228
# If no file are specified by the user, then we need to provide default
 
10229
# value.  By we need to know if files were specified by the user.
 
10230
ac_need_defaults=:
 
10231
while test $# != 0
 
10232
do
 
10233
  case $1 in
 
10234
  --*=*)
 
10235
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
10236
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
10237
    ac_shift=:
 
10238
    ;;
 
10239
  -*)
 
10240
    ac_option=$1
 
10241
    ac_optarg=$2
 
10242
    ac_shift=shift
 
10243
    ;;
 
10244
  *) # This is not an option, so the user has probably given explicit
 
10245
     # arguments.
 
10246
     ac_option=$1
 
10247
     ac_need_defaults=false;;
 
10248
  esac
 
10249
 
 
10250
  case $ac_option in
 
10251
  # Handling of the options.
 
10252
_ACEOF
 
10253
cat >>$CONFIG_STATUS <<\_ACEOF
 
10254
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
10255
    ac_cs_recheck=: ;;
 
10256
  --version | --vers* | -V )
 
10257
    echo "$ac_cs_version"; exit 0 ;;
 
10258
  --he | --h)
 
10259
    # Conflict between --help and --header
 
10260
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
10261
Try \`$0 --help' for more information." >&5
 
10262
echo "$as_me: error: ambiguous option: $1
 
10263
Try \`$0 --help' for more information." >&2;}
 
10264
   { (exit 1); exit 1; }; };;
 
10265
  --help | --hel | -h )
 
10266
    echo "$ac_cs_usage"; exit 0 ;;
 
10267
  --debug | --d* | -d )
 
10268
    debug=: ;;
 
10269
  --file | --fil | --fi | --f )
 
10270
    $ac_shift
 
10271
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
10272
    ac_need_defaults=false;;
 
10273
  --header | --heade | --head | --hea )
 
10274
    $ac_shift
 
10275
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
10276
    ac_need_defaults=false;;
 
10277
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
10278
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
10279
    ac_cs_silent=: ;;
 
10280
 
 
10281
  # This is an error.
 
10282
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
10283
Try \`$0 --help' for more information." >&5
 
10284
echo "$as_me: error: unrecognized option: $1
 
10285
Try \`$0 --help' for more information." >&2;}
 
10286
   { (exit 1); exit 1; }; } ;;
 
10287
 
 
10288
  *) ac_config_targets="$ac_config_targets $1" ;;
 
10289
 
 
10290
  esac
 
10291
  shift
 
10292
done
 
10293
 
 
10294
ac_configure_extra_args=
 
10295
 
 
10296
if $ac_cs_silent; then
 
10297
  exec 6>/dev/null
 
10298
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
10299
fi
 
10300
 
 
10301
_ACEOF
 
10302
cat >>$CONFIG_STATUS <<_ACEOF
 
10303
if \$ac_cs_recheck; then
 
10304
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
10305
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
10306
fi
 
10307
 
 
10308
_ACEOF
 
10309
 
 
10310
cat >>$CONFIG_STATUS <<_ACEOF
 
10311
#
 
10312
# INIT-COMMANDS section.
 
10313
#
 
10314
 
 
10315
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
10316
 
 
10317
_ACEOF
 
10318
 
 
10319
 
 
10320
 
 
10321
cat >>$CONFIG_STATUS <<\_ACEOF
 
10322
for ac_config_target in $ac_config_targets
 
10323
do
 
10324
  case "$ac_config_target" in
 
10325
  # Handling of arguments.
 
10326
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
10327
  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
10328
  "gnome-support/Makefile" ) CONFIG_FILES="$CONFIG_FILES gnome-support/Makefile" ;;
 
10329
  "gnome-support/terminatorX.keys" ) CONFIG_FILES="$CONFIG_FILES gnome-support/terminatorX.keys" ;;
 
10330
  "src/gui_icons/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gui_icons/Makefile" ;;
 
10331
  "src/smallknob/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/smallknob/Makefile" ;;
 
10332
  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
 
10333
  "doc/terminatorX-manual/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/terminatorX-manual/Makefile" ;;
 
10334
  "doc/terminatorX-manual/C/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/terminatorX-manual/C/Makefile" ;;
 
10335
  "terminatorX.spec" ) CONFIG_FILES="$CONFIG_FILES terminatorX.spec" ;;
 
10336
  "terminatorX.1" ) CONFIG_FILES="$CONFIG_FILES terminatorX.1" ;;
 
10337
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
10338
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
10339
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
10340
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
10341
   { (exit 1); exit 1; }; };;
 
10342
  esac
 
10343
done
 
10344
 
 
10345
# If the user did not use the arguments to specify the items to instantiate,
 
10346
# then the envvar interface is used.  Set only those that are not.
 
10347
# We use the long form for the default assignment because of an extremely
 
10348
# bizarre bug on SunOS 4.1.3.
 
10349
if $ac_need_defaults; then
 
10350
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
10351
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
10352
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
10353
fi
 
10354
 
 
10355
# Have a temporary directory for convenience.  Make it in the build tree
 
10356
# simply because there is no reason to put it here, and in addition,
 
10357
# creating and moving files from /tmp can sometimes cause problems.
 
10358
# Create a temporary directory, and hook for its removal unless debugging.
 
10359
$debug ||
 
10360
{
 
10361
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
10362
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
10363
}
 
10364
 
 
10365
# Create a (secure) tmp directory for tmp files.
 
10366
 
 
10367
{
 
10368
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
10369
  test -n "$tmp" && test -d "$tmp"
 
10370
}  ||
 
10371
{
 
10372
  tmp=./confstat$$-$RANDOM
 
10373
  (umask 077 && mkdir $tmp)
 
10374
} ||
 
10375
{
 
10376
   echo "$me: cannot create a temporary directory in ." >&2
 
10377
   { (exit 1); exit 1; }
 
10378
}
 
10379
 
 
10380
_ACEOF
 
10381
 
 
10382
cat >>$CONFIG_STATUS <<_ACEOF
 
10383
 
 
10384
#
 
10385
# CONFIG_FILES section.
 
10386
#
 
10387
 
 
10388
# No need to generate the scripts if there are no CONFIG_FILES.
 
10389
# This happens for instance when ./config.status config.h
 
10390
if test -n "\$CONFIG_FILES"; then
 
10391
  # Protect against being on the right side of a sed subst in config.status.
 
10392
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
10393
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
10394
s,@SHELL@,$SHELL,;t t
 
10395
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
10396
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
10397
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
10398
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
10399
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
10400
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
10401
s,@exec_prefix@,$exec_prefix,;t t
 
10402
s,@prefix@,$prefix,;t t
 
10403
s,@program_transform_name@,$program_transform_name,;t t
 
10404
s,@bindir@,$bindir,;t t
 
10405
s,@sbindir@,$sbindir,;t t
 
10406
s,@libexecdir@,$libexecdir,;t t
 
10407
s,@datadir@,$datadir,;t t
 
10408
s,@sysconfdir@,$sysconfdir,;t t
 
10409
s,@sharedstatedir@,$sharedstatedir,;t t
 
10410
s,@localstatedir@,$localstatedir,;t t
 
10411
s,@libdir@,$libdir,;t t
 
10412
s,@includedir@,$includedir,;t t
 
10413
s,@oldincludedir@,$oldincludedir,;t t
 
10414
s,@infodir@,$infodir,;t t
 
10415
s,@mandir@,$mandir,;t t
 
10416
s,@build_alias@,$build_alias,;t t
 
10417
s,@host_alias@,$host_alias,;t t
 
10418
s,@target_alias@,$target_alias,;t t
 
10419
s,@DEFS@,$DEFS,;t t
 
10420
s,@ECHO_C@,$ECHO_C,;t t
 
10421
s,@ECHO_N@,$ECHO_N,;t t
 
10422
s,@ECHO_T@,$ECHO_T,;t t
 
10423
s,@LIBS@,$LIBS,;t t
 
10424
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
10425
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
10426
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
10427
s,@CYGPATH_W@,$CYGPATH_W,;t t
 
10428
s,@PACKAGE@,$PACKAGE,;t t
 
10429
s,@VERSION@,$VERSION,;t t
 
10430
s,@ACLOCAL@,$ACLOCAL,;t t
 
10431
s,@AUTOCONF@,$AUTOCONF,;t t
 
10432
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
10433
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
10434
s,@MAKEINFO@,$MAKEINFO,;t t
 
10435
s,@AMTAR@,$AMTAR,;t t
 
10436
s,@install_sh@,$install_sh,;t t
 
10437
s,@STRIP@,$STRIP,;t t
 
10438
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
10439
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
10440
s,@AWK@,$AWK,;t t
 
10441
s,@SET_MAKE@,$SET_MAKE,;t t
 
10442
s,@am__leading_dot@,$am__leading_dot,;t t
 
10443
s,@CC@,$CC,;t t
 
10444
s,@CFLAGS@,$CFLAGS,;t t
 
10445
s,@LDFLAGS@,$LDFLAGS,;t t
 
10446
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
10447
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
10448
s,@EXEEXT@,$EXEEXT,;t t
 
10449
s,@OBJEXT@,$OBJEXT,;t t
 
10450
s,@DEPDIR@,$DEPDIR,;t t
 
10451
s,@am__include@,$am__include,;t t
 
10452
s,@am__quote@,$am__quote,;t t
 
10453
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 
10454
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 
10455
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
 
10456
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
10457
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
 
10458
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
 
10459
s,@CXX@,$CXX,;t t
 
10460
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
10461
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
10462
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
 
10463
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
 
10464
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
 
10465
s,@LN_S@,$LN_S,;t t
 
10466
s,@RANLIB@,$RANLIB,;t t
 
10467
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
10468
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
 
10469
s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
 
10470
s,@GTK_LIBS@,$GTK_LIBS,;t t
 
10471
s,@CPP@,$CPP,;t t
 
10472
s,@EGREP@,$EGREP,;t t
 
10473
s,@SOX_PROG@,$SOX_PROG,;t t
 
10474
s,@af_config@,$af_config,;t t
 
10475
s,@MPG123_PROG@,$MPG123_PROG,;t t
 
10476
s,@OGG123_PROG@,$OGG123_PROG,;t t
 
10477
s,@XSETPOINTER_PROG@,$XSETPOINTER_PROG,;t t
 
10478
s,@DEPRECATED_FLAGS@,$DEPRECATED_FLAGS,;t t
 
10479
s,@gnomepresent@,$gnomepresent,;t t
 
10480
s,@gnomeconfig@,$gnomeconfig,;t t
 
10481
s,@gnomedatadir@,$gnomedatadir,;t t
 
10482
s,@GNOMEpresent_TRUE@,$GNOMEpresent_TRUE,;t t
 
10483
s,@GNOMEpresent_FALSE@,$GNOMEpresent_FALSE,;t t
 
10484
s,@XML2_CONFIG@,$XML2_CONFIG,;t t
 
10485
s,@XML_CONFIG@,$XML_CONFIG,;t t
 
10486
s,@XML_LIBS@,$XML_LIBS,;t t
 
10487
s,@XML_CFLAGS@,$XML_CFLAGS,;t t
 
10488
s,@SK_CONFIG@,$SK_CONFIG,;t t
 
10489
s,@X_CFLAGS@,$X_CFLAGS,;t t
 
10490
s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
 
10491
s,@X_LIBS@,$X_LIBS,;t t
 
10492
s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
 
10493
s,@x_libraries@,$x_libraries,;t t
 
10494
s,@LIBOBJS@,$LIBOBJS,;t t
 
10495
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
10496
CEOF
 
10497
 
 
10498
_ACEOF
 
10499
 
 
10500
  cat >>$CONFIG_STATUS <<\_ACEOF
 
10501
  # Split the substitutions into bite-sized pieces for seds with
 
10502
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
10503
  ac_max_sed_lines=48
 
10504
  ac_sed_frag=1 # Number of current file.
 
10505
  ac_beg=1 # First line for current file.
 
10506
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
10507
  ac_more_lines=:
 
10508
  ac_sed_cmds=
 
10509
  while $ac_more_lines; do
 
10510
    if test $ac_beg -gt 1; then
 
10511
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
10512
    else
 
10513
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
10514
    fi
 
10515
    if test ! -s $tmp/subs.frag; then
 
10516
      ac_more_lines=false
 
10517
    else
 
10518
      # The purpose of the label and of the branching condition is to
 
10519
      # speed up the sed processing (if there are no `@' at all, there
 
10520
      # is no need to browse any of the substitutions).
 
10521
      # These are the two extra sed commands mentioned above.
 
10522
      (echo ':t
 
10523
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
10524
      if test -z "$ac_sed_cmds"; then
 
10525
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
10526
      else
 
10527
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
10528
      fi
 
10529
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
10530
      ac_beg=$ac_end
 
10531
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
10532
    fi
 
10533
  done
 
10534
  if test -z "$ac_sed_cmds"; then
 
10535
    ac_sed_cmds=cat
 
10536
  fi
 
10537
fi # test -n "$CONFIG_FILES"
 
10538
 
 
10539
_ACEOF
 
10540
cat >>$CONFIG_STATUS <<\_ACEOF
 
10541
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
10542
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
10543
  case $ac_file in
 
10544
  - | *:- | *:-:* ) # input from stdin
 
10545
        cat >$tmp/stdin
 
10546
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
10547
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
10548
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
10549
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
10550
  * )   ac_file_in=$ac_file.in ;;
 
10551
  esac
 
10552
 
 
10553
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
10554
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
10555
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
10556
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
10557
         X"$ac_file" : 'X\(//\)$' \| \
 
10558
         X"$ac_file" : 'X\(/\)' \| \
 
10559
         .     : '\(.\)' 2>/dev/null ||
 
10560
echo X"$ac_file" |
 
10561
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
10562
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
10563
          /^X\(\/\/\)$/{ s//\1/; q; }
 
10564
          /^X\(\/\).*/{ s//\1/; q; }
 
10565
          s/.*/./; q'`
 
10566
  { if $as_mkdir_p; then
 
10567
    mkdir -p "$ac_dir"
 
10568
  else
 
10569
    as_dir="$ac_dir"
 
10570
    as_dirs=
 
10571
    while test ! -d "$as_dir"; do
 
10572
      as_dirs="$as_dir $as_dirs"
 
10573
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
10574
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
10575
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
10576
         X"$as_dir" : 'X\(//\)$' \| \
 
10577
         X"$as_dir" : 'X\(/\)' \| \
 
10578
         .     : '\(.\)' 2>/dev/null ||
 
10579
echo X"$as_dir" |
 
10580
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
10581
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
10582
          /^X\(\/\/\)$/{ s//\1/; q; }
 
10583
          /^X\(\/\).*/{ s//\1/; q; }
 
10584
          s/.*/./; q'`
 
10585
    done
 
10586
    test ! -n "$as_dirs" || mkdir $as_dirs
 
10587
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
10588
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
10589
   { (exit 1); exit 1; }; }; }
 
10590
 
 
10591
  ac_builddir=.
 
10592
 
 
10593
if test "$ac_dir" != .; then
 
10594
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
10595
  # A "../" for each directory in $ac_dir_suffix.
 
10596
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
10597
else
 
10598
  ac_dir_suffix= ac_top_builddir=
 
10599
fi
 
10600
 
 
10601
case $srcdir in
 
10602
  .)  # No --srcdir option.  We are building in place.
 
10603
    ac_srcdir=.
 
10604
    if test -z "$ac_top_builddir"; then
 
10605
       ac_top_srcdir=.
 
10606
    else
 
10607
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
10608
    fi ;;
 
10609
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
10610
    ac_srcdir=$srcdir$ac_dir_suffix;
 
10611
    ac_top_srcdir=$srcdir ;;
 
10612
  *) # Relative path.
 
10613
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
10614
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
10615
esac
 
10616
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
 
10617
# absolute.
 
10618
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
 
10619
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
 
10620
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
 
10621
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
10622
 
 
10623
 
 
10624
  case $INSTALL in
 
10625
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
10626
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
10627
  esac
 
10628
 
 
10629
  if test x"$ac_file" != x-; then
 
10630
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
10631
echo "$as_me: creating $ac_file" >&6;}
 
10632
    rm -f "$ac_file"
 
10633
  fi
 
10634
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
10635
  # use $as_me), people would be surprised to read:
 
10636
  #    /* config.h.  Generated by config.status.  */
 
10637
  if test x"$ac_file" = x-; then
 
10638
    configure_input=
 
10639
  else
 
10640
    configure_input="$ac_file.  "
 
10641
  fi
 
10642
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
10643
                                     sed 's,.*/,,'` by configure."
 
10644
 
 
10645
  # First look for the input files in the build tree, otherwise in the
 
10646
  # src tree.
 
10647
  ac_file_inputs=`IFS=:
 
10648
    for f in $ac_file_in; do
 
10649
      case $f in
 
10650
      -) echo $tmp/stdin ;;
 
10651
      [\\/$]*)
 
10652
         # Absolute (can't be DOS-style, as IFS=:)
 
10653
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
10654
echo "$as_me: error: cannot find input file: $f" >&2;}
 
10655
   { (exit 1); exit 1; }; }
 
10656
         echo $f;;
 
10657
      *) # Relative
 
10658
         if test -f "$f"; then
 
10659
           # Build tree
 
10660
           echo $f
 
10661
         elif test -f "$srcdir/$f"; then
 
10662
           # Source tree
 
10663
           echo $srcdir/$f
 
10664
         else
 
10665
           # /dev/null tree
 
10666
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
10667
echo "$as_me: error: cannot find input file: $f" >&2;}
 
10668
   { (exit 1); exit 1; }; }
 
10669
         fi;;
 
10670
      esac
 
10671
    done` || { (exit 1); exit 1; }
 
10672
_ACEOF
 
10673
cat >>$CONFIG_STATUS <<_ACEOF
 
10674
  sed "$ac_vpsub
 
10675
$extrasub
 
10676
_ACEOF
 
10677
cat >>$CONFIG_STATUS <<\_ACEOF
 
10678
:t
 
10679
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
10680
s,@configure_input@,$configure_input,;t t
 
10681
s,@srcdir@,$ac_srcdir,;t t
 
10682
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
10683
s,@top_srcdir@,$ac_top_srcdir,;t t
 
10684
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
10685
s,@builddir@,$ac_builddir,;t t
 
10686
s,@abs_builddir@,$ac_abs_builddir,;t t
 
10687
s,@top_builddir@,$ac_top_builddir,;t t
 
10688
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
10689
s,@INSTALL@,$ac_INSTALL,;t t
 
10690
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
10691
  rm -f $tmp/stdin
 
10692
  if test x"$ac_file" != x-; then
 
10693
    mv $tmp/out $ac_file
 
10694
  else
 
10695
    cat $tmp/out
 
10696
    rm -f $tmp/out
 
10697
  fi
 
10698
 
 
10699
done
 
10700
_ACEOF
 
10701
cat >>$CONFIG_STATUS <<\_ACEOF
 
10702
 
 
10703
#
 
10704
# CONFIG_HEADER section.
 
10705
#
 
10706
 
 
10707
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
10708
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
10709
#
 
10710
# ac_d sets the value in "#define NAME VALUE" lines.
 
10711
ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
 
10712
ac_dB='[        ].*$,\1#\2'
 
10713
ac_dC=' '
 
10714
ac_dD=',;t'
 
10715
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
10716
ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
10717
ac_uB='$,\1#\2define\3'
 
10718
ac_uC=' '
 
10719
ac_uD=',;t'
 
10720
 
 
10721
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
10722
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
10723
  case $ac_file in
 
10724
  - | *:- | *:-:* ) # input from stdin
 
10725
        cat >$tmp/stdin
 
10726
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
10727
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
10728
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
10729
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
10730
  * )   ac_file_in=$ac_file.in ;;
 
10731
  esac
 
10732
 
 
10733
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
10734
echo "$as_me: creating $ac_file" >&6;}
 
10735
 
 
10736
  # First look for the input files in the build tree, otherwise in the
 
10737
  # src tree.
 
10738
  ac_file_inputs=`IFS=:
 
10739
    for f in $ac_file_in; do
 
10740
      case $f in
 
10741
      -) echo $tmp/stdin ;;
 
10742
      [\\/$]*)
 
10743
         # Absolute (can't be DOS-style, as IFS=:)
 
10744
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
10745
echo "$as_me: error: cannot find input file: $f" >&2;}
 
10746
   { (exit 1); exit 1; }; }
 
10747
         echo $f;;
 
10748
      *) # Relative
 
10749
         if test -f "$f"; then
 
10750
           # Build tree
 
10751
           echo $f
 
10752
         elif test -f "$srcdir/$f"; then
 
10753
           # Source tree
 
10754
           echo $srcdir/$f
 
10755
         else
 
10756
           # /dev/null tree
 
10757
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
10758
echo "$as_me: error: cannot find input file: $f" >&2;}
 
10759
   { (exit 1); exit 1; }; }
 
10760
         fi;;
 
10761
      esac
 
10762
    done` || { (exit 1); exit 1; }
 
10763
  # Remove the trailing spaces.
 
10764
  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
 
10765
 
 
10766
_ACEOF
 
10767
 
 
10768
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
10769
# `conftest.undefs', that substitutes the proper values into
 
10770
# config.h.in to produce config.h.  The first handles `#define'
 
10771
# templates, and the second `#undef' templates.
 
10772
# And first: Protect against being on the right side of a sed subst in
 
10773
# config.status.  Protect against being in an unquoted here document
 
10774
# in config.status.
 
10775
rm -f conftest.defines conftest.undefs
 
10776
# Using a here document instead of a string reduces the quoting nightmare.
 
10777
# Putting comments in sed scripts is not portable.
 
10778
#
 
10779
# `end' is used to avoid that the second main sed command (meant for
 
10780
# 0-ary CPP macros) applies to n-ary macro definitions.
 
10781
# See the Autoconf documentation for `clear'.
 
10782
cat >confdef2sed.sed <<\_ACEOF
 
10783
s/[\\&,]/\\&/g
 
10784
s,[\\$`],\\&,g
 
10785
t clear
 
10786
: clear
 
10787
s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
10788
t end
 
10789
s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
10790
: end
 
10791
_ACEOF
 
10792
# If some macros were called several times there might be several times
 
10793
# the same #defines, which is useless.  Nevertheless, we may not want to
 
10794
# sort them, since we want the *last* AC-DEFINE to be honored.
 
10795
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
10796
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
10797
rm -f confdef2sed.sed
 
10798
 
 
10799
# This sed command replaces #undef with comments.  This is necessary, for
 
10800
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
10801
# on some systems where configure will not decide to define it.
 
10802
cat >>conftest.undefs <<\_ACEOF
 
10803
s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
10804
_ACEOF
 
10805
 
 
10806
# Break up conftest.defines because some shells have a limit on the size
 
10807
# of here documents, and old seds have small limits too (100 cmds).
 
10808
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
10809
echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
10810
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
10811
echo '  :' >>$CONFIG_STATUS
 
10812
rm -f conftest.tail
 
10813
while grep . conftest.defines >/dev/null
 
10814
do
 
10815
  # Write a limited-size here document to $tmp/defines.sed.
 
10816
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
10817
  # Speed up: don't consider the non `#define' lines.
 
10818
  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
10819
  # Work around the forget-to-reset-the-flag bug.
 
10820
  echo 't clr' >>$CONFIG_STATUS
 
10821
  echo ': clr' >>$CONFIG_STATUS
 
10822
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
10823
  echo 'CEOF
 
10824
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
10825
  rm -f $tmp/in
 
10826
  mv $tmp/out $tmp/in
 
10827
' >>$CONFIG_STATUS
 
10828
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
10829
  rm -f conftest.defines
 
10830
  mv conftest.tail conftest.defines
 
10831
done
 
10832
rm -f conftest.defines
 
10833
echo '  fi # grep' >>$CONFIG_STATUS
 
10834
echo >>$CONFIG_STATUS
 
10835
 
 
10836
# Break up conftest.undefs because some shells have a limit on the size
 
10837
# of here documents, and old seds have small limits too (100 cmds).
 
10838
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
10839
rm -f conftest.tail
 
10840
while grep . conftest.undefs >/dev/null
 
10841
do
 
10842
  # Write a limited-size here document to $tmp/undefs.sed.
 
10843
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
10844
  # Speed up: don't consider the non `#undef'
 
10845
  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
10846
  # Work around the forget-to-reset-the-flag bug.
 
10847
  echo 't clr' >>$CONFIG_STATUS
 
10848
  echo ': clr' >>$CONFIG_STATUS
 
10849
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
10850
  echo 'CEOF
 
10851
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
10852
  rm -f $tmp/in
 
10853
  mv $tmp/out $tmp/in
 
10854
' >>$CONFIG_STATUS
 
10855
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
10856
  rm -f conftest.undefs
 
10857
  mv conftest.tail conftest.undefs
 
10858
done
 
10859
rm -f conftest.undefs
 
10860
 
 
10861
cat >>$CONFIG_STATUS <<\_ACEOF
 
10862
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
10863
  # use $as_me), people would be surprised to read:
 
10864
  #    /* config.h.  Generated by config.status.  */
 
10865
  if test x"$ac_file" = x-; then
 
10866
    echo "/* Generated by configure.  */" >$tmp/config.h
 
10867
  else
 
10868
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
10869
  fi
 
10870
  cat $tmp/in >>$tmp/config.h
 
10871
  rm -f $tmp/in
 
10872
  if test x"$ac_file" != x-; then
 
10873
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
10874
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
10875
echo "$as_me: $ac_file is unchanged" >&6;}
 
10876
    else
 
10877
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
10878
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
10879
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
10880
         X"$ac_file" : 'X\(//\)$' \| \
 
10881
         X"$ac_file" : 'X\(/\)' \| \
 
10882
         .     : '\(.\)' 2>/dev/null ||
 
10883
echo X"$ac_file" |
 
10884
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
10885
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
10886
          /^X\(\/\/\)$/{ s//\1/; q; }
 
10887
          /^X\(\/\).*/{ s//\1/; q; }
 
10888
          s/.*/./; q'`
 
10889
      { if $as_mkdir_p; then
 
10890
    mkdir -p "$ac_dir"
 
10891
  else
 
10892
    as_dir="$ac_dir"
 
10893
    as_dirs=
 
10894
    while test ! -d "$as_dir"; do
 
10895
      as_dirs="$as_dir $as_dirs"
 
10896
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
10897
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
10898
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
10899
         X"$as_dir" : 'X\(//\)$' \| \
 
10900
         X"$as_dir" : 'X\(/\)' \| \
 
10901
         .     : '\(.\)' 2>/dev/null ||
 
10902
echo X"$as_dir" |
 
10903
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
10904
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
10905
          /^X\(\/\/\)$/{ s//\1/; q; }
 
10906
          /^X\(\/\).*/{ s//\1/; q; }
 
10907
          s/.*/./; q'`
 
10908
    done
 
10909
    test ! -n "$as_dirs" || mkdir $as_dirs
 
10910
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
10911
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
10912
   { (exit 1); exit 1; }; }; }
 
10913
 
 
10914
      rm -f $ac_file
 
10915
      mv $tmp/config.h $ac_file
 
10916
    fi
 
10917
  else
 
10918
    cat $tmp/config.h
 
10919
    rm -f $tmp/config.h
 
10920
  fi
 
10921
# Compute $ac_file's index in $config_headers.
 
10922
_am_stamp_count=1
 
10923
for _am_header in $config_headers :; do
 
10924
  case $_am_header in
 
10925
    $ac_file | $ac_file:* )
 
10926
      break ;;
 
10927
    * )
 
10928
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
10929
  esac
 
10930
done
 
10931
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
 
10932
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
10933
         X$ac_file : 'X\(//\)[^/]' \| \
 
10934
         X$ac_file : 'X\(//\)$' \| \
 
10935
         X$ac_file : 'X\(/\)' \| \
 
10936
         .     : '\(.\)' 2>/dev/null ||
 
10937
echo X$ac_file |
 
10938
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
10939
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
10940
          /^X\(\/\/\)$/{ s//\1/; q; }
 
10941
          /^X\(\/\).*/{ s//\1/; q; }
 
10942
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
10943
done
 
10944
_ACEOF
 
10945
cat >>$CONFIG_STATUS <<\_ACEOF
 
10946
 
 
10947
#
 
10948
# CONFIG_COMMANDS section.
 
10949
#
 
10950
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
10951
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
10952
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
10953
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
10954
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
10955
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
10956
         X"$ac_dest" : 'X\(//\)$' \| \
 
10957
         X"$ac_dest" : 'X\(/\)' \| \
 
10958
         .     : '\(.\)' 2>/dev/null ||
 
10959
echo X"$ac_dest" |
 
10960
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
10961
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
10962
          /^X\(\/\/\)$/{ s//\1/; q; }
 
10963
          /^X\(\/\).*/{ s//\1/; q; }
 
10964
          s/.*/./; q'`
 
10965
  ac_builddir=.
 
10966
 
 
10967
if test "$ac_dir" != .; then
 
10968
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
10969
  # A "../" for each directory in $ac_dir_suffix.
 
10970
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
10971
else
 
10972
  ac_dir_suffix= ac_top_builddir=
 
10973
fi
 
10974
 
 
10975
case $srcdir in
 
10976
  .)  # No --srcdir option.  We are building in place.
 
10977
    ac_srcdir=.
 
10978
    if test -z "$ac_top_builddir"; then
 
10979
       ac_top_srcdir=.
 
10980
    else
 
10981
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
10982
    fi ;;
 
10983
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
10984
    ac_srcdir=$srcdir$ac_dir_suffix;
 
10985
    ac_top_srcdir=$srcdir ;;
 
10986
  *) # Relative path.
 
10987
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
10988
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
10989
esac
 
10990
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
 
10991
# absolute.
 
10992
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
 
10993
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
 
10994
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
 
10995
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
10996
 
 
10997
 
 
10998
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
10999
echo "$as_me: executing $ac_dest commands" >&6;}
 
11000
  case $ac_dest in
 
11001
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
11002
  # Strip MF so we end up with the name of the file.
 
11003
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
11004
  # Check whether this is an Automake generated Makefile or not.
 
11005
  # We used to match only the files named `Makefile.in', but
 
11006
  # some people rename them; so instead we look at the file content.
 
11007
  # Grep'ing the first line is not enough: some people post-process
 
11008
  # each Makefile.in and add a new line on top of each file to say so.
 
11009
  # So let's grep whole file.
 
11010
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
11011
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
11012
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
11013
         X"$mf" : 'X\(//\)[^/]' \| \
 
11014
         X"$mf" : 'X\(//\)$' \| \
 
11015
         X"$mf" : 'X\(/\)' \| \
 
11016
         .     : '\(.\)' 2>/dev/null ||
 
11017
echo X"$mf" |
 
11018
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
11019
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
11020
          /^X\(\/\/\)$/{ s//\1/; q; }
 
11021
          /^X\(\/\).*/{ s//\1/; q; }
 
11022
          s/.*/./; q'`
 
11023
  else
 
11024
    continue
 
11025
  fi
 
11026
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
 
11027
  # Extract the definition of DEP_FILES from the Makefile without
 
11028
  # running `make'.
 
11029
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
 
11030
  test -z "$DEPDIR" && continue
 
11031
  # When using ansi2knr, U may be empty or an underscore; expand it
 
11032
  U=`sed -n -e '/^U = / s///p' < "$mf"`
 
11033
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
 
11034
  # We invoke sed twice because it is the simplest approach to
 
11035
  # changing $(DEPDIR) to its actual value in the expansion.
 
11036
  for file in `sed -n -e '
 
11037
    /^DEP_FILES = .*\\\\$/ {
 
11038
      s/^DEP_FILES = //
 
11039
      :loop
 
11040
        s/\\\\$//
 
11041
        p
 
11042
        n
 
11043
        /\\\\$/ b loop
 
11044
      p
 
11045
    }
 
11046
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
11047
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
11048
    # Make sure the directory exists.
 
11049
    test -f "$dirpart/$file" && continue
 
11050
    fdir=`(dirname "$file") 2>/dev/null ||
 
11051
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
11052
         X"$file" : 'X\(//\)[^/]' \| \
 
11053
         X"$file" : 'X\(//\)$' \| \
 
11054
         X"$file" : 'X\(/\)' \| \
 
11055
         .     : '\(.\)' 2>/dev/null ||
 
11056
echo X"$file" |
 
11057
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
11058
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
11059
          /^X\(\/\/\)$/{ s//\1/; q; }
 
11060
          /^X\(\/\).*/{ s//\1/; q; }
 
11061
          s/.*/./; q'`
 
11062
    { if $as_mkdir_p; then
 
11063
    mkdir -p $dirpart/$fdir
 
11064
  else
 
11065
    as_dir=$dirpart/$fdir
 
11066
    as_dirs=
 
11067
    while test ! -d "$as_dir"; do
 
11068
      as_dirs="$as_dir $as_dirs"
 
11069
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
11070
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
11071
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
11072
         X"$as_dir" : 'X\(//\)$' \| \
 
11073
         X"$as_dir" : 'X\(/\)' \| \
 
11074
         .     : '\(.\)' 2>/dev/null ||
 
11075
echo X"$as_dir" |
 
11076
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
11077
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
11078
          /^X\(\/\/\)$/{ s//\1/; q; }
 
11079
          /^X\(\/\).*/{ s//\1/; q; }
 
11080
          s/.*/./; q'`
 
11081
    done
 
11082
    test ! -n "$as_dirs" || mkdir $as_dirs
 
11083
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
 
11084
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
11085
   { (exit 1); exit 1; }; }; }
 
11086
 
 
11087
    # echo "creating $dirpart/$file"
 
11088
    echo '# dummy' > "$dirpart/$file"
 
11089
  done
 
11090
done
 
11091
 ;;
 
11092
  esac
 
11093
done
 
11094
_ACEOF
 
11095
 
 
11096
cat >>$CONFIG_STATUS <<\_ACEOF
 
11097
 
 
11098
{ (exit 0); exit 0; }
 
11099
_ACEOF
 
11100
chmod +x $CONFIG_STATUS
 
11101
ac_clean_files=$ac_clean_files_save
 
11102
 
 
11103
 
 
11104
# configure is writing to config.log, and then calls config.status.
 
11105
# config.status does its own redirection, appending to config.log.
 
11106
# Unfortunately, on DOS this fails, as config.log is still kept open
 
11107
# by configure, so config.status won't be able to write to it; its
 
11108
# output is simply discarded.  So we exec the FD to /dev/null,
 
11109
# effectively closing config.log, so it can be properly (re)opened and
 
11110
# appended to by config.status.  When coming back to configure, we
 
11111
# need to make the FD available again.
 
11112
if test "$no_create" != yes; then
 
11113
  ac_cs_success=:
 
11114
  ac_config_status_args=
 
11115
  test "$silent" = yes &&
 
11116
    ac_config_status_args="$ac_config_status_args --quiet"
 
11117
  exec 5>/dev/null
 
11118
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
11119
  exec 5>>config.log
 
11120
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
11121
  # would make configure fail if this is the last instruction.
 
11122
  $ac_cs_success || { (exit 1); exit 1; }
 
11123
fi
 
11124
 
 
11125
 
 
11126
option_info() {
 
11127
        echo "$option support: $option_val"
 
11128
        if test "$option_val" != "yes"; then
 
11129
                echo "  - If you want $option support get $option from"
 
11130
                echo "  -       $option_url"
 
11131
                echo "  - and reconfigure terminatorX"
 
11132
        fi
 
11133
}
 
11134
 
 
11135
echo
 
11136
echo configured terminatorX for:
 
11137
echo ---------------------------
 
11138
echo
 
11139
 
 
11140
echo manual: $xml_man
 
11141
 
 
11142
option=sox; option_val=$OPTION_SOX; option_url=http://sox.sourceforge.net/
 
11143
option_info;
 
11144
 
 
11145
echo "mpg123 support: $OPTION_MPG123"
 
11146
if test "$OPTION_MPG123" = "no"; then
 
11147
echo "  - If you want mpg123 support get either mpg321 from"
 
11148
echo "  -       http://mpg321.sourceforge.net/ or mpg123 from"
 
11149
echo "  -       http://www.mpg123.de/"
 
11150
echo "  - and reconfigure terminatorX"
 
11151
fi
 
11152
 
 
11153
 
 
11154
option=oss; option_val=$OPTION_OSS; option_url=http://www.kernel.org
 
11155
option_info;
 
11156
 
 
11157
option=alsa; option_val=$OPTION_ALSA; option_url=http://www.alsa-project.org
 
11158
option_info;
 
11159
 
 
11160
option=jack; option_val=$OPTION_JACK; option_url=http://jackit.sourceforge.net
 
11161
option_info;
 
11162
 
 
11163
option=mad; option_val=$OPTION_MAD; option_url=http://www.mars.org/home/rob/proj/mpeg/
 
11164
option_info;
 
11165
 
 
11166
option=ogg123; option_val=$OPTION_OGG123; option_url=http://www.xiph.org/ogg/vorbis/
 
11167
option_info;
 
11168
 
 
11169
option=libvorbis; option_val=$OPTION_VORBIS; option_url=http://www.xiph.org/ogg/vorbis/
 
11170
option_info;
 
11171
 
 
11172
option=audiofile; option_val=$OPTION_AUDIOFILE; option_url=http://www.68k.org/~michael/audiofile/
 
11173
option_info;
 
11174
 
 
11175
option="ALSA (MIDI in)"; option_val=$OPTION_ALSAMIDI; option_url=http://www.alsa-project.org
 
11176
option_info;
 
11177
 
 
11178
option=lrdf; option_val=$OPTION_LRDF; option_url=http://plugin.org.uk/releases/lrdf/
 
11179
option_info;
 
11180
 
 
11181
echo "legacy files support: $OPTION_LEGACY"
 
11182
echo "builtin-wav support: $OPTION_WAV"
 
11183
echo "enhanced scheduling support: $OPTION_SCHEDULER"
 
11184
echo "old suid-root support: $OPTION_SUIDROOT"
 
11185
echo "capabilities support: $OPTION_CAP"
 
11186
echo "GNOME support: $OPTION_GNOME"
 
11187
echo
 
11188
echo You can now run \'make\' to compile terminatorX