~ubuntu-branches/ubuntu/hardy/texmacs/hardy

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Ralf Treinen
  • Date: 2004-04-19 20:34:00 UTC
  • Revision ID: james.westby@ubuntu.com-20040419203400-g4e34ih0315wcn8v
Tags: upstream-1.0.3-R2
ImportĀ upstreamĀ versionĀ 1.0.3-R2

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