~ubuntu-branches/ubuntu/lucid/gauche-c-wrapper/lucid

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): NIIBE Yutaka
  • Date: 2008-04-07 09:15:03 UTC
  • Revision ID: james.westby@ubuntu.com-20080407091503-wu0h414koe95kj4i
Tags: upstream-0.5.2
ImportĀ upstreamĀ versionĀ 0.5.2

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.59 for c-wrapper 0.5.2.
 
4
#
 
5
# Report bugs to <naoki@koguro.net>.
 
6
#
 
7
# Copyright (C) 2003 Free Software Foundation, Inc.
 
8
# This configure script is free software; the Free Software Foundation
 
9
# gives unlimited permission to copy, distribute and modify it.
 
10
## --------------------- ##
 
11
## M4sh Initialization.  ##
 
12
## --------------------- ##
 
13
 
 
14
# Be Bourne compatible
 
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
16
  emulate sh
 
17
  NULLCMD=:
 
18
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
19
  # is contrary to our usage.  Disable this feature.
 
20
  alias -g '${1+"$@"}'='"$@"'
 
21
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
22
  set -o posix
 
23
fi
 
24
DUALCASE=1; export DUALCASE # for MKS sh
 
25
 
 
26
# Support unset when possible.
 
27
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
28
  as_unset=unset
 
29
else
 
30
  as_unset=false
 
31
fi
 
32
 
 
33
 
 
34
# Work around bugs in pre-3.0 UWIN ksh.
 
35
$as_unset ENV MAIL MAILPATH
 
36
PS1='$ '
 
37
PS2='> '
 
38
PS4='+ '
 
39
 
 
40
# NLS nuisances.
 
41
for as_var in \
 
42
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
43
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
44
  LC_TELEPHONE LC_TIME
 
45
do
 
46
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
47
    eval $as_var=C; export $as_var
 
48
  else
 
49
    $as_unset $as_var
 
50
  fi
 
51
done
 
52
 
 
53
# Required to use basename.
 
54
if expr a : '\(a\)' >/dev/null 2>&1; then
 
55
  as_expr=expr
 
56
else
 
57
  as_expr=false
 
58
fi
 
59
 
 
60
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
61
  as_basename=basename
 
62
else
 
63
  as_basename=false
 
64
fi
 
65
 
 
66
 
 
67
# Name of the executable.
 
68
as_me=`$as_basename "$0" ||
 
69
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
70
         X"$0" : 'X\(//\)$' \| \
 
71
         X"$0" : 'X\(/\)$' \| \
 
72
         .     : '\(.\)' 2>/dev/null ||
 
73
echo X/"$0" |
 
74
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
75
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
76
          /^X\/\(\/\).*/{ s//\1/; q; }
 
77
          s/.*/./; q'`
 
78
 
 
79
 
 
80
# PATH needs CR, and LINENO needs CR and PATH.
 
81
# Avoid depending upon Character Ranges.
 
82
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
83
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
84
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
85
as_cr_digits='0123456789'
 
86
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
87
 
 
88
# The user is always right.
 
89
if test "${PATH_SEPARATOR+set}" != set; then
 
90
  echo "#! /bin/sh" >conf$$.sh
 
91
  echo  "exit 0"   >>conf$$.sh
 
92
  chmod +x conf$$.sh
 
93
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
94
    PATH_SEPARATOR=';'
 
95
  else
 
96
    PATH_SEPARATOR=:
 
97
  fi
 
98
  rm -f conf$$.sh
 
99
fi
 
100
 
 
101
 
 
102
  as_lineno_1=$LINENO
 
103
  as_lineno_2=$LINENO
 
104
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
105
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
106
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
107
  # Find who we are.  Look in the path if we contain no path at all
 
108
  # relative or not.
 
109
  case $0 in
 
110
    *[\\/]* ) as_myself=$0 ;;
 
111
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
112
for as_dir in $PATH
 
113
do
 
114
  IFS=$as_save_IFS
 
115
  test -z "$as_dir" && as_dir=.
 
116
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
117
done
 
118
 
 
119
       ;;
 
120
  esac
 
121
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
122
  # in which case we are not to be found in the path.
 
123
  if test "x$as_myself" = x; then
 
124
    as_myself=$0
 
125
  fi
 
126
  if test ! -f "$as_myself"; then
 
127
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
128
   { (exit 1); exit 1; }; }
 
129
  fi
 
130
  case $CONFIG_SHELL in
 
131
  '')
 
132
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
133
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
134
do
 
135
  IFS=$as_save_IFS
 
136
  test -z "$as_dir" && as_dir=.
 
137
  for as_base in sh bash ksh sh5; do
 
138
         case $as_dir in
 
139
         /*)
 
140
           if ("$as_dir/$as_base" -c '
 
141
  as_lineno_1=$LINENO
 
142
  as_lineno_2=$LINENO
 
143
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
144
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
145
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
146
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
147
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
148
             CONFIG_SHELL=$as_dir/$as_base
 
149
             export CONFIG_SHELL
 
150
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
151
           fi;;
 
152
         esac
 
153
       done
 
154
done
 
155
;;
 
156
  esac
 
157
 
 
158
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
159
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
160
  # line-number line before each line; the second 'sed' does the real
 
161
  # work.  The second script uses 'N' to pair each line-number line
 
162
  # with the numbered line, and appends trailing '-' during
 
163
  # substitution so that $LINENO is not a special case at line end.
 
164
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
165
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
166
  sed '=' <$as_myself |
 
167
    sed '
 
168
      N
 
169
      s,$,-,
 
170
      : loop
 
171
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
172
      t loop
 
173
      s,-$,,
 
174
      s,^['$as_cr_digits']*\n,,
 
175
    ' >$as_me.lineno &&
 
176
  chmod +x $as_me.lineno ||
 
177
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
178
   { (exit 1); exit 1; }; }
 
179
 
 
180
  # Don't try to exec as it changes $[0], causing all sort of problems
 
181
  # (the dirname of $[0] is not the place where we might find the
 
182
  # original and so on.  Autoconf is especially sensible to this).
 
183
  . ./$as_me.lineno
 
184
  # Exit status is that of the last command.
 
185
  exit
 
186
}
 
187
 
 
188
 
 
189
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
190
  *c*,-n*) ECHO_N= ECHO_C='
 
191
' ECHO_T='      ' ;;
 
192
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
193
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
194
esac
 
195
 
 
196
if expr a : '\(a\)' >/dev/null 2>&1; then
 
197
  as_expr=expr
 
198
else
 
199
  as_expr=false
 
200
fi
 
201
 
 
202
rm -f conf$$ conf$$.exe conf$$.file
 
203
echo >conf$$.file
 
204
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
205
  # We could just check for DJGPP; but this test a) works b) is more generic
 
206
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
207
  if test -f conf$$.exe; then
 
208
    # Don't use ln at all; we don't have any links
 
209
    as_ln_s='cp -p'
 
210
  else
 
211
    as_ln_s='ln -s'
 
212
  fi
 
213
elif ln conf$$.file conf$$ 2>/dev/null; then
 
214
  as_ln_s=ln
 
215
else
 
216
  as_ln_s='cp -p'
 
217
fi
 
218
rm -f conf$$ conf$$.exe conf$$.file
 
219
 
 
220
if mkdir -p . 2>/dev/null; then
 
221
  as_mkdir_p=:
 
222
else
 
223
  test -d ./-p && rmdir ./-p
 
224
  as_mkdir_p=false
 
225
fi
 
226
 
 
227
as_executable_p="test -f"
 
228
 
 
229
# Sed expression to map a string onto a valid CPP name.
 
230
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
231
 
 
232
# Sed expression to map a string onto a valid variable name.
 
233
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
234
 
 
235
 
 
236
# IFS
 
237
# We need space, tab and new line, in precisely that order.
 
238
as_nl='
 
239
'
 
240
IFS="   $as_nl"
 
241
 
 
242
# CDPATH.
 
243
$as_unset CDPATH
 
244
 
 
245
 
 
246
# Name of the host.
 
247
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
248
# so uname gets run too.
 
249
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
250
 
 
251
exec 6>&1
 
252
 
 
253
#
 
254
# Initializations.
 
255
#
 
256
ac_default_prefix=/usr/local
 
257
ac_config_libobj_dir=.
 
258
cross_compiling=no
 
259
subdirs=
 
260
MFLAGS=
 
261
MAKEFLAGS=
 
262
SHELL=${CONFIG_SHELL-/bin/sh}
 
263
 
 
264
# Maximum number of lines to put in a shell here document.
 
265
# This variable seems obsolete.  It should probably be removed, and
 
266
# only ac_max_sed_lines should be used.
 
267
: ${ac_max_here_lines=38}
 
268
 
 
269
# Identity of this package.
 
270
PACKAGE_NAME='c-wrapper'
 
271
PACKAGE_TARNAME='c-wrapper'
 
272
PACKAGE_VERSION='0.5.2'
 
273
PACKAGE_STRING='c-wrapper 0.5.2'
 
274
PACKAGE_BUGREPORT='naoki@koguro.net'
 
275
 
 
276
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os GOSH GAUCHE_CONFIG GAUCHE_PACKAGE GAUCHE_INSTALL GAUCHE_CESCONV SOEXT OBJEXT EXEEXT DYLIBEXT GAUCHE_PKGINCDIR GAUCHE_PKGLIBDIR GAUCHE_PKGARCHDIR CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC MAKEINFO GZIP_PROGRAM SED LDCONFIG LD_LIBRARY_PATH_ENVS TESTLIB_CFLAGS TESTLIB_LDFLAGS OBJC_ENABLE_TRUE STUBGEN_FFI_MODULE LDCONFIG_CMD SYS_LIBRARY_PATHS LIBOBJS LTLIBOBJS'
 
277
ac_subst_files=''
 
278
 
 
279
# Initialize some variables set by options.
 
280
ac_init_help=
 
281
ac_init_version=false
 
282
# The variables have the same names as the options, with
 
283
# dashes changed to underlines.
 
284
cache_file=/dev/null
 
285
exec_prefix=NONE
 
286
no_create=
 
287
no_recursion=
 
288
prefix=NONE
 
289
program_prefix=NONE
 
290
program_suffix=NONE
 
291
program_transform_name=s,x,x,
 
292
silent=
 
293
site=
 
294
srcdir=
 
295
verbose=
 
296
x_includes=NONE
 
297
x_libraries=NONE
 
298
 
 
299
# Installation directory options.
 
300
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
301
# and all the variables that are supposed to be based on exec_prefix
 
302
# by default will actually change.
 
303
# Use braces instead of parens because sh, perl, etc. also accept them.
 
304
bindir='${exec_prefix}/bin'
 
305
sbindir='${exec_prefix}/sbin'
 
306
libexecdir='${exec_prefix}/libexec'
 
307
datadir='${prefix}/share'
 
308
sysconfdir='${prefix}/etc'
 
309
sharedstatedir='${prefix}/com'
 
310
localstatedir='${prefix}/var'
 
311
libdir='${exec_prefix}/lib'
 
312
includedir='${prefix}/include'
 
313
oldincludedir='/usr/include'
 
314
infodir='${prefix}/info'
 
315
mandir='${prefix}/man'
 
316
 
 
317
ac_prev=
 
318
for ac_option
 
319
do
 
320
  # If the previous option needs an argument, assign it.
 
321
  if test -n "$ac_prev"; then
 
322
    eval "$ac_prev=\$ac_option"
 
323
    ac_prev=
 
324
    continue
 
325
  fi
 
326
 
 
327
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
328
 
 
329
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
330
 
 
331
  case $ac_option in
 
332
 
 
333
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
334
    ac_prev=bindir ;;
 
335
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
336
    bindir=$ac_optarg ;;
 
337
 
 
338
  -build | --build | --buil | --bui | --bu)
 
339
    ac_prev=build_alias ;;
 
340
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
341
    build_alias=$ac_optarg ;;
 
342
 
 
343
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
344
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
345
    ac_prev=cache_file ;;
 
346
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
347
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
348
    cache_file=$ac_optarg ;;
 
349
 
 
350
  --config-cache | -C)
 
351
    cache_file=config.cache ;;
 
352
 
 
353
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
354
    ac_prev=datadir ;;
 
355
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
356
  | --da=*)
 
357
    datadir=$ac_optarg ;;
 
358
 
 
359
  -disable-* | --disable-*)
 
360
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
361
    # Reject names that are not valid shell variable names.
 
362
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
363
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
364
   { (exit 1); exit 1; }; }
 
365
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
366
    eval "enable_$ac_feature=no" ;;
 
367
 
 
368
  -enable-* | --enable-*)
 
369
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
370
    # Reject names that are not valid shell variable names.
 
371
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
372
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
373
   { (exit 1); exit 1; }; }
 
374
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
375
    case $ac_option in
 
376
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
377
      *) ac_optarg=yes ;;
 
378
    esac
 
379
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
380
 
 
381
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
382
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
383
  | --exec | --exe | --ex)
 
384
    ac_prev=exec_prefix ;;
 
385
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
386
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
387
  | --exec=* | --exe=* | --ex=*)
 
388
    exec_prefix=$ac_optarg ;;
 
389
 
 
390
  -gas | --gas | --ga | --g)
 
391
    # Obsolete; use --with-gas.
 
392
    with_gas=yes ;;
 
393
 
 
394
  -help | --help | --hel | --he | -h)
 
395
    ac_init_help=long ;;
 
396
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
397
    ac_init_help=recursive ;;
 
398
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
399
    ac_init_help=short ;;
 
400
 
 
401
  -host | --host | --hos | --ho)
 
402
    ac_prev=host_alias ;;
 
403
  -host=* | --host=* | --hos=* | --ho=*)
 
404
    host_alias=$ac_optarg ;;
 
405
 
 
406
  -includedir | --includedir | --includedi | --included | --include \
 
407
  | --includ | --inclu | --incl | --inc)
 
408
    ac_prev=includedir ;;
 
409
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
410
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
411
    includedir=$ac_optarg ;;
 
412
 
 
413
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
414
    ac_prev=infodir ;;
 
415
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
416
    infodir=$ac_optarg ;;
 
417
 
 
418
  -libdir | --libdir | --libdi | --libd)
 
419
    ac_prev=libdir ;;
 
420
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
421
    libdir=$ac_optarg ;;
 
422
 
 
423
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
424
  | --libexe | --libex | --libe)
 
425
    ac_prev=libexecdir ;;
 
426
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
427
  | --libexe=* | --libex=* | --libe=*)
 
428
    libexecdir=$ac_optarg ;;
 
429
 
 
430
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
431
  | --localstate | --localstat | --localsta | --localst \
 
432
  | --locals | --local | --loca | --loc | --lo)
 
433
    ac_prev=localstatedir ;;
 
434
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
435
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
436
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
437
    localstatedir=$ac_optarg ;;
 
438
 
 
439
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
440
    ac_prev=mandir ;;
 
441
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
442
    mandir=$ac_optarg ;;
 
443
 
 
444
  -nfp | --nfp | --nf)
 
445
    # Obsolete; use --without-fp.
 
446
    with_fp=no ;;
 
447
 
 
448
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
449
  | --no-cr | --no-c | -n)
 
450
    no_create=yes ;;
 
451
 
 
452
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
453
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
454
    no_recursion=yes ;;
 
455
 
 
456
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
457
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
458
  | --oldin | --oldi | --old | --ol | --o)
 
459
    ac_prev=oldincludedir ;;
 
460
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
461
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
462
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
463
    oldincludedir=$ac_optarg ;;
 
464
 
 
465
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
466
    ac_prev=prefix ;;
 
467
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
468
    prefix=$ac_optarg ;;
 
469
 
 
470
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
471
  | --program-pre | --program-pr | --program-p)
 
472
    ac_prev=program_prefix ;;
 
473
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
474
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
475
    program_prefix=$ac_optarg ;;
 
476
 
 
477
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
478
  | --program-suf | --program-su | --program-s)
 
479
    ac_prev=program_suffix ;;
 
480
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
481
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
482
    program_suffix=$ac_optarg ;;
 
483
 
 
484
  -program-transform-name | --program-transform-name \
 
485
  | --program-transform-nam | --program-transform-na \
 
486
  | --program-transform-n | --program-transform- \
 
487
  | --program-transform | --program-transfor \
 
488
  | --program-transfo | --program-transf \
 
489
  | --program-trans | --program-tran \
 
490
  | --progr-tra | --program-tr | --program-t)
 
491
    ac_prev=program_transform_name ;;
 
492
  -program-transform-name=* | --program-transform-name=* \
 
493
  | --program-transform-nam=* | --program-transform-na=* \
 
494
  | --program-transform-n=* | --program-transform-=* \
 
495
  | --program-transform=* | --program-transfor=* \
 
496
  | --program-transfo=* | --program-transf=* \
 
497
  | --program-trans=* | --program-tran=* \
 
498
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
499
    program_transform_name=$ac_optarg ;;
 
500
 
 
501
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
502
  | -silent | --silent | --silen | --sile | --sil)
 
503
    silent=yes ;;
 
504
 
 
505
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
506
    ac_prev=sbindir ;;
 
507
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
508
  | --sbi=* | --sb=*)
 
509
    sbindir=$ac_optarg ;;
 
510
 
 
511
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
512
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
513
  | --sharedst | --shareds | --shared | --share | --shar \
 
514
  | --sha | --sh)
 
515
    ac_prev=sharedstatedir ;;
 
516
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
517
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
518
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
519
  | --sha=* | --sh=*)
 
520
    sharedstatedir=$ac_optarg ;;
 
521
 
 
522
  -site | --site | --sit)
 
523
    ac_prev=site ;;
 
524
  -site=* | --site=* | --sit=*)
 
525
    site=$ac_optarg ;;
 
526
 
 
527
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
528
    ac_prev=srcdir ;;
 
529
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
530
    srcdir=$ac_optarg ;;
 
531
 
 
532
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
533
  | --syscon | --sysco | --sysc | --sys | --sy)
 
534
    ac_prev=sysconfdir ;;
 
535
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
536
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
537
    sysconfdir=$ac_optarg ;;
 
538
 
 
539
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
540
    ac_prev=target_alias ;;
 
541
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
542
    target_alias=$ac_optarg ;;
 
543
 
 
544
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
545
    verbose=yes ;;
 
546
 
 
547
  -version | --version | --versio | --versi | --vers | -V)
 
548
    ac_init_version=: ;;
 
549
 
 
550
  -with-* | --with-*)
 
551
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
552
    # Reject names that are not valid shell variable names.
 
553
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
554
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
555
   { (exit 1); exit 1; }; }
 
556
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
557
    case $ac_option in
 
558
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
559
      *) ac_optarg=yes ;;
 
560
    esac
 
561
    eval "with_$ac_package='$ac_optarg'" ;;
 
562
 
 
563
  -without-* | --without-*)
 
564
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
565
    # Reject names that are not valid shell variable names.
 
566
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
567
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
568
   { (exit 1); exit 1; }; }
 
569
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
570
    eval "with_$ac_package=no" ;;
 
571
 
 
572
  --x)
 
573
    # Obsolete; use --with-x.
 
574
    with_x=yes ;;
 
575
 
 
576
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
577
  | --x-incl | --x-inc | --x-in | --x-i)
 
578
    ac_prev=x_includes ;;
 
579
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
580
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
581
    x_includes=$ac_optarg ;;
 
582
 
 
583
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
584
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
585
    ac_prev=x_libraries ;;
 
586
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
587
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
588
    x_libraries=$ac_optarg ;;
 
589
 
 
590
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
591
Try \`$0 --help' for more information." >&2
 
592
   { (exit 1); exit 1; }; }
 
593
    ;;
 
594
 
 
595
  *=*)
 
596
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
597
    # Reject names that are not valid shell variable names.
 
598
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
599
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
600
   { (exit 1); exit 1; }; }
 
601
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
602
    eval "$ac_envvar='$ac_optarg'"
 
603
    export $ac_envvar ;;
 
604
 
 
605
  *)
 
606
    # FIXME: should be removed in autoconf 3.0.
 
607
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
608
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
609
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
610
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
611
    ;;
 
612
 
 
613
  esac
 
614
done
 
615
 
 
616
if test -n "$ac_prev"; then
 
617
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
618
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
619
   { (exit 1); exit 1; }; }
 
620
fi
 
621
 
 
622
# Be sure to have absolute paths.
 
623
for ac_var in exec_prefix prefix
 
624
do
 
625
  eval ac_val=$`echo $ac_var`
 
626
  case $ac_val in
 
627
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
628
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
629
   { (exit 1); exit 1; }; };;
 
630
  esac
 
631
done
 
632
 
 
633
# Be sure to have absolute paths.
 
634
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
635
              localstatedir libdir includedir oldincludedir infodir mandir
 
636
do
 
637
  eval ac_val=$`echo $ac_var`
 
638
  case $ac_val in
 
639
    [\\/$]* | ?:[\\/]* ) ;;
 
640
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
641
   { (exit 1); exit 1; }; };;
 
642
  esac
 
643
done
 
644
 
 
645
# There might be people who depend on the old broken behavior: `$host'
 
646
# used to hold the argument of --host etc.
 
647
# FIXME: To remove some day.
 
648
build=$build_alias
 
649
host=$host_alias
 
650
target=$target_alias
 
651
 
 
652
# FIXME: To remove some day.
 
653
if test "x$host_alias" != x; then
 
654
  if test "x$build_alias" = x; then
 
655
    cross_compiling=maybe
 
656
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
657
    If a cross compiler is detected then cross compile mode will be used." >&2
 
658
  elif test "x$build_alias" != "x$host_alias"; then
 
659
    cross_compiling=yes
 
660
  fi
 
661
fi
 
662
 
 
663
ac_tool_prefix=
 
664
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
665
 
 
666
test "$silent" = yes && exec 6>/dev/null
 
667
 
 
668
 
 
669
# Find the source files, if location was not specified.
 
670
if test -z "$srcdir"; then
 
671
  ac_srcdir_defaulted=yes
 
672
  # Try the directory containing this script, then its parent.
 
673
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
674
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
675
         X"$0" : 'X\(//\)[^/]' \| \
 
676
         X"$0" : 'X\(//\)$' \| \
 
677
         X"$0" : 'X\(/\)' \| \
 
678
         .     : '\(.\)' 2>/dev/null ||
 
679
echo X"$0" |
 
680
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
681
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
682
          /^X\(\/\/\)$/{ s//\1/; q; }
 
683
          /^X\(\/\).*/{ s//\1/; q; }
 
684
          s/.*/./; q'`
 
685
  srcdir=$ac_confdir
 
686
  if test ! -r $srcdir/$ac_unique_file; then
 
687
    srcdir=..
 
688
  fi
 
689
else
 
690
  ac_srcdir_defaulted=no
 
691
fi
 
692
if test ! -r $srcdir/$ac_unique_file; then
 
693
  if test "$ac_srcdir_defaulted" = yes; then
 
694
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
695
   { (exit 1); exit 1; }; }
 
696
  else
 
697
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
698
   { (exit 1); exit 1; }; }
 
699
  fi
 
700
fi
 
701
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
702
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
703
   { (exit 1); exit 1; }; }
 
704
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
705
ac_env_build_alias_set=${build_alias+set}
 
706
ac_env_build_alias_value=$build_alias
 
707
ac_cv_env_build_alias_set=${build_alias+set}
 
708
ac_cv_env_build_alias_value=$build_alias
 
709
ac_env_host_alias_set=${host_alias+set}
 
710
ac_env_host_alias_value=$host_alias
 
711
ac_cv_env_host_alias_set=${host_alias+set}
 
712
ac_cv_env_host_alias_value=$host_alias
 
713
ac_env_target_alias_set=${target_alias+set}
 
714
ac_env_target_alias_value=$target_alias
 
715
ac_cv_env_target_alias_set=${target_alias+set}
 
716
ac_cv_env_target_alias_value=$target_alias
 
717
ac_env_CC_set=${CC+set}
 
718
ac_env_CC_value=$CC
 
719
ac_cv_env_CC_set=${CC+set}
 
720
ac_cv_env_CC_value=$CC
 
721
ac_env_CFLAGS_set=${CFLAGS+set}
 
722
ac_env_CFLAGS_value=$CFLAGS
 
723
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
724
ac_cv_env_CFLAGS_value=$CFLAGS
 
725
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
726
ac_env_LDFLAGS_value=$LDFLAGS
 
727
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
728
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
729
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
730
ac_env_CPPFLAGS_value=$CPPFLAGS
 
731
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
732
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
733
 
 
734
#
 
735
# Report the --help message.
 
736
#
 
737
if test "$ac_init_help" = "long"; then
 
738
  # Omit some internal or obsolete options to make the list less imposing.
 
739
  # This message is too long to be a string in the A/UX 3.1 sh.
 
740
  cat <<_ACEOF
 
741
\`configure' configures c-wrapper 0.5.2 to adapt to many kinds of systems.
 
742
 
 
743
Usage: $0 [OPTION]... [VAR=VALUE]...
 
744
 
 
745
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
746
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
747
 
 
748
Defaults for the options are specified in brackets.
 
749
 
 
750
Configuration:
 
751
  -h, --help              display this help and exit
 
752
      --help=short        display options specific to this package
 
753
      --help=recursive    display the short help of all the included packages
 
754
  -V, --version           display version information and exit
 
755
  -q, --quiet, --silent   do not print \`checking...' messages
 
756
      --cache-file=FILE   cache test results in FILE [disabled]
 
757
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
758
  -n, --no-create         do not create output files
 
759
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
760
 
 
761
_ACEOF
 
762
 
 
763
  cat <<_ACEOF
 
764
Installation directories:
 
765
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
766
                          [$ac_default_prefix]
 
767
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
768
                          [PREFIX]
 
769
 
 
770
By default, \`make install' will install all the files in
 
771
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
772
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
773
for instance \`--prefix=\$HOME'.
 
774
 
 
775
For better control, use the options below.
 
776
 
 
777
Fine tuning of the installation directories:
 
778
  --bindir=DIR           user executables [EPREFIX/bin]
 
779
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
780
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
781
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
782
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
783
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
784
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
785
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
786
  --includedir=DIR       C header files [PREFIX/include]
 
787
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
788
  --infodir=DIR          info documentation [PREFIX/info]
 
789
  --mandir=DIR           man documentation [PREFIX/man]
 
790
_ACEOF
 
791
 
 
792
  cat <<\_ACEOF
 
793
 
 
794
System types:
 
795
  --build=BUILD     configure for building on BUILD [guessed]
 
796
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
797
  --target=TARGET   configure for building compilers for TARGET [HOST]
 
798
_ACEOF
 
799
fi
 
800
 
 
801
if test -n "$ac_init_help"; then
 
802
  case $ac_init_help in
 
803
     short | recursive ) echo "Configuration of c-wrapper 0.5.2:";;
 
804
   esac
 
805
  cat <<\_ACEOF
 
806
 
 
807
Optional Features:
 
808
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
809
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
810
  --enable-objc           turn on Objective-C support
 
811
 
 
812
Some influential environment variables:
 
813
  CC          C compiler command
 
814
  CFLAGS      C compiler flags
 
815
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
816
              nonstandard directory <lib dir>
 
817
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
818
              headers in a nonstandard directory <include dir>
 
819
 
 
820
Use these variables to override the choices made by `configure' or to help
 
821
it to find libraries and programs with nonstandard names/locations.
 
822
 
 
823
Report bugs to <naoki@koguro.net>.
 
824
_ACEOF
 
825
fi
 
826
 
 
827
if test "$ac_init_help" = "recursive"; then
 
828
  # If there are subdirs, report their specific --help.
 
829
  ac_popdir=`pwd`
 
830
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
831
    test -d $ac_dir || continue
 
832
    ac_builddir=.
 
833
 
 
834
if test "$ac_dir" != .; then
 
835
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
836
  # A "../" for each directory in $ac_dir_suffix.
 
837
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
838
else
 
839
  ac_dir_suffix= ac_top_builddir=
 
840
fi
 
841
 
 
842
case $srcdir in
 
843
  .)  # No --srcdir option.  We are building in place.
 
844
    ac_srcdir=.
 
845
    if test -z "$ac_top_builddir"; then
 
846
       ac_top_srcdir=.
 
847
    else
 
848
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
849
    fi ;;
 
850
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
851
    ac_srcdir=$srcdir$ac_dir_suffix;
 
852
    ac_top_srcdir=$srcdir ;;
 
853
  *) # Relative path.
 
854
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
855
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
856
esac
 
857
 
 
858
# Do not use `cd foo && pwd` to compute absolute paths, because
 
859
# the directories may not exist.
 
860
case `pwd` in
 
861
.) ac_abs_builddir="$ac_dir";;
 
862
*)
 
863
  case "$ac_dir" in
 
864
  .) ac_abs_builddir=`pwd`;;
 
865
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
866
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
867
  esac;;
 
868
esac
 
869
case $ac_abs_builddir in
 
870
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
871
*)
 
872
  case ${ac_top_builddir}. in
 
873
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
874
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
875
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
876
  esac;;
 
877
esac
 
878
case $ac_abs_builddir in
 
879
.) ac_abs_srcdir=$ac_srcdir;;
 
880
*)
 
881
  case $ac_srcdir in
 
882
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
883
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
884
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
885
  esac;;
 
886
esac
 
887
case $ac_abs_builddir in
 
888
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
889
*)
 
890
  case $ac_top_srcdir in
 
891
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
892
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
893
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
894
  esac;;
 
895
esac
 
896
 
 
897
    cd $ac_dir
 
898
    # Check for guested configure; otherwise get Cygnus style configure.
 
899
    if test -f $ac_srcdir/configure.gnu; then
 
900
      echo
 
901
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
902
    elif test -f $ac_srcdir/configure; then
 
903
      echo
 
904
      $SHELL $ac_srcdir/configure  --help=recursive
 
905
    elif test -f $ac_srcdir/configure.ac ||
 
906
           test -f $ac_srcdir/configure.in; then
 
907
      echo
 
908
      $ac_configure --help
 
909
    else
 
910
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
911
    fi
 
912
    cd $ac_popdir
 
913
  done
 
914
fi
 
915
 
 
916
test -n "$ac_init_help" && exit 0
 
917
if $ac_init_version; then
 
918
  cat <<\_ACEOF
 
919
c-wrapper configure 0.5.2
 
920
generated by GNU Autoconf 2.59
 
921
 
 
922
Copyright (C) 2003 Free Software Foundation, Inc.
 
923
This configure script is free software; the Free Software Foundation
 
924
gives unlimited permission to copy, distribute and modify it.
 
925
_ACEOF
 
926
  exit 0
 
927
fi
 
928
exec 5>config.log
 
929
cat >&5 <<_ACEOF
 
930
This file contains any messages produced by compilers while
 
931
running configure, to aid debugging if configure makes a mistake.
 
932
 
 
933
It was created by c-wrapper $as_me 0.5.2, which was
 
934
generated by GNU Autoconf 2.59.  Invocation command line was
 
935
 
 
936
  $ $0 $@
 
937
 
 
938
_ACEOF
 
939
{
 
940
cat <<_ASUNAME
 
941
## --------- ##
 
942
## Platform. ##
 
943
## --------- ##
 
944
 
 
945
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
946
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
947
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
948
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
949
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
950
 
 
951
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
952
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
953
 
 
954
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
955
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
956
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
957
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
958
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
959
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
960
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
961
 
 
962
_ASUNAME
 
963
 
 
964
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
965
for as_dir in $PATH
 
966
do
 
967
  IFS=$as_save_IFS
 
968
  test -z "$as_dir" && as_dir=.
 
969
  echo "PATH: $as_dir"
 
970
done
 
971
 
 
972
} >&5
 
973
 
 
974
cat >&5 <<_ACEOF
 
975
 
 
976
 
 
977
## ----------- ##
 
978
## Core tests. ##
 
979
## ----------- ##
 
980
 
 
981
_ACEOF
 
982
 
 
983
 
 
984
# Keep a trace of the command line.
 
985
# Strip out --no-create and --no-recursion so they do not pile up.
 
986
# Strip out --silent because we don't want to record it for future runs.
 
987
# Also quote any args containing shell meta-characters.
 
988
# Make two passes to allow for proper duplicate-argument suppression.
 
989
ac_configure_args=
 
990
ac_configure_args0=
 
991
ac_configure_args1=
 
992
ac_sep=
 
993
ac_must_keep_next=false
 
994
for ac_pass in 1 2
 
995
do
 
996
  for ac_arg
 
997
  do
 
998
    case $ac_arg in
 
999
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1000
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1001
    | -silent | --silent | --silen | --sile | --sil)
 
1002
      continue ;;
 
1003
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1004
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1005
    esac
 
1006
    case $ac_pass in
 
1007
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1008
    2)
 
1009
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1010
      if test $ac_must_keep_next = true; then
 
1011
        ac_must_keep_next=false # Got value, back to normal.
 
1012
      else
 
1013
        case $ac_arg in
 
1014
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1015
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1016
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1017
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1018
            case "$ac_configure_args0 " in
 
1019
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1020
            esac
 
1021
            ;;
 
1022
          -* ) ac_must_keep_next=true ;;
 
1023
        esac
 
1024
      fi
 
1025
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1026
      # Get rid of the leading space.
 
1027
      ac_sep=" "
 
1028
      ;;
 
1029
    esac
 
1030
  done
 
1031
done
 
1032
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1033
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1034
 
 
1035
# When interrupted or exit'd, cleanup temporary files, and complete
 
1036
# config.log.  We remove comments because anyway the quotes in there
 
1037
# would cause problems or look ugly.
 
1038
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1039
# such as our DU 5.0 friend, will then `close' the trap.
 
1040
trap 'exit_status=$?
 
1041
  # Save into config.log some information that might help in debugging.
 
1042
  {
 
1043
    echo
 
1044
 
 
1045
    cat <<\_ASBOX
 
1046
## ---------------- ##
 
1047
## Cache variables. ##
 
1048
## ---------------- ##
 
1049
_ASBOX
 
1050
    echo
 
1051
    # The following way of writing the cache mishandles newlines in values,
 
1052
{
 
1053
  (set) 2>&1 |
 
1054
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1055
    *ac_space=\ *)
 
1056
      sed -n \
 
1057
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1058
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1059
      ;;
 
1060
    *)
 
1061
      sed -n \
 
1062
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1063
      ;;
 
1064
    esac;
 
1065
}
 
1066
    echo
 
1067
 
 
1068
    cat <<\_ASBOX
 
1069
## ----------------- ##
 
1070
## Output variables. ##
 
1071
## ----------------- ##
 
1072
_ASBOX
 
1073
    echo
 
1074
    for ac_var in $ac_subst_vars
 
1075
    do
 
1076
      eval ac_val=$`echo $ac_var`
 
1077
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1078
    done | sort
 
1079
    echo
 
1080
 
 
1081
    if test -n "$ac_subst_files"; then
 
1082
      cat <<\_ASBOX
 
1083
## ------------- ##
 
1084
## Output files. ##
 
1085
## ------------- ##
 
1086
_ASBOX
 
1087
      echo
 
1088
      for ac_var in $ac_subst_files
 
1089
      do
 
1090
        eval ac_val=$`echo $ac_var`
 
1091
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1092
      done | sort
 
1093
      echo
 
1094
    fi
 
1095
 
 
1096
    if test -s confdefs.h; then
 
1097
      cat <<\_ASBOX
 
1098
## ----------- ##
 
1099
## confdefs.h. ##
 
1100
## ----------- ##
 
1101
_ASBOX
 
1102
      echo
 
1103
      sed "/^$/d" confdefs.h | sort
 
1104
      echo
 
1105
    fi
 
1106
    test "$ac_signal" != 0 &&
 
1107
      echo "$as_me: caught signal $ac_signal"
 
1108
    echo "$as_me: exit $exit_status"
 
1109
  } >&5
 
1110
  rm -f core *.core &&
 
1111
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1112
    exit $exit_status
 
1113
     ' 0
 
1114
for ac_signal in 1 2 13 15; do
 
1115
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1116
done
 
1117
ac_signal=0
 
1118
 
 
1119
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1120
rm -rf conftest* confdefs.h
 
1121
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1122
echo >confdefs.h
 
1123
 
 
1124
# Predefined preprocessor variables.
 
1125
 
 
1126
cat >>confdefs.h <<_ACEOF
 
1127
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1128
_ACEOF
 
1129
 
 
1130
 
 
1131
cat >>confdefs.h <<_ACEOF
 
1132
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1133
_ACEOF
 
1134
 
 
1135
 
 
1136
cat >>confdefs.h <<_ACEOF
 
1137
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1138
_ACEOF
 
1139
 
 
1140
 
 
1141
cat >>confdefs.h <<_ACEOF
 
1142
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1143
_ACEOF
 
1144
 
 
1145
 
 
1146
cat >>confdefs.h <<_ACEOF
 
1147
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1148
_ACEOF
 
1149
 
 
1150
 
 
1151
# Let the site file select an alternate cache file if it wants to.
 
1152
# Prefer explicitly selected file to automatically selected ones.
 
1153
if test -z "$CONFIG_SITE"; then
 
1154
  if test "x$prefix" != xNONE; then
 
1155
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1156
  else
 
1157
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1158
  fi
 
1159
fi
 
1160
for ac_site_file in $CONFIG_SITE; do
 
1161
  if test -r "$ac_site_file"; then
 
1162
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1163
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1164
    sed 's/^/| /' "$ac_site_file" >&5
 
1165
    . "$ac_site_file"
 
1166
  fi
 
1167
done
 
1168
 
 
1169
if test -r "$cache_file"; then
 
1170
  # Some versions of bash will fail to source /dev/null (special
 
1171
  # files actually), so we avoid doing that.
 
1172
  if test -f "$cache_file"; then
 
1173
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1174
echo "$as_me: loading cache $cache_file" >&6;}
 
1175
    case $cache_file in
 
1176
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1177
      *)                      . ./$cache_file;;
 
1178
    esac
 
1179
  fi
 
1180
else
 
1181
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1182
echo "$as_me: creating cache $cache_file" >&6;}
 
1183
  >$cache_file
 
1184
fi
 
1185
 
 
1186
# Check that the precious variables saved in the cache have kept the same
 
1187
# value.
 
1188
ac_cache_corrupted=false
 
1189
for ac_var in `(set) 2>&1 |
 
1190
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1191
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1192
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1193
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1194
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1195
  case $ac_old_set,$ac_new_set in
 
1196
    set,)
 
1197
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1198
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1199
      ac_cache_corrupted=: ;;
 
1200
    ,set)
 
1201
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1202
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1203
      ac_cache_corrupted=: ;;
 
1204
    ,);;
 
1205
    *)
 
1206
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1207
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1208
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1209
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1210
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1211
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1212
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1213
        ac_cache_corrupted=:
 
1214
      fi;;
 
1215
  esac
 
1216
  # Pass precious variables to config.status.
 
1217
  if test "$ac_new_set" = set; then
 
1218
    case $ac_new_val in
 
1219
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1220
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1221
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1222
    esac
 
1223
    case " $ac_configure_args " in
 
1224
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1225
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1226
    esac
 
1227
  fi
 
1228
done
 
1229
if $ac_cache_corrupted; then
 
1230
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1231
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1232
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1233
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1234
   { (exit 1); exit 1; }; }
 
1235
fi
 
1236
 
 
1237
ac_ext=c
 
1238
ac_cpp='$CPP $CPPFLAGS'
 
1239
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1240
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1241
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1242
 
 
1243
 
 
1244
 
 
1245
 
 
1246
 
 
1247
 
 
1248
 
 
1249
 
 
1250
 
 
1251
 
 
1252
 
 
1253
 
 
1254
 
 
1255
 
 
1256
 
 
1257
 
 
1258
 
 
1259
 
 
1260
 
 
1261
 
 
1262
 
 
1263
 
 
1264
 
 
1265
 
 
1266
 
 
1267
 
 
1268
 
 
1269
ac_aux_dir=
 
1270
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
1271
  if test -f $ac_dir/install-sh; then
 
1272
    ac_aux_dir=$ac_dir
 
1273
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1274
    break
 
1275
  elif test -f $ac_dir/install.sh; then
 
1276
    ac_aux_dir=$ac_dir
 
1277
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1278
    break
 
1279
  elif test -f $ac_dir/shtool; then
 
1280
    ac_aux_dir=$ac_dir
 
1281
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1282
    break
 
1283
  fi
 
1284
done
 
1285
if test -z "$ac_aux_dir"; then
 
1286
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
1287
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
1288
   { (exit 1); exit 1; }; }
 
1289
fi
 
1290
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1291
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1292
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1293
 
 
1294
# Make sure we can run config.sub.
 
1295
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
1296
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
1297
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
1298
   { (exit 1); exit 1; }; }
 
1299
 
 
1300
echo "$as_me:$LINENO: checking build system type" >&5
 
1301
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
1302
if test "${ac_cv_build+set}" = set; then
 
1303
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1304
else
 
1305
  ac_cv_build_alias=$build_alias
 
1306
test -z "$ac_cv_build_alias" &&
 
1307
  ac_cv_build_alias=`$ac_config_guess`
 
1308
test -z "$ac_cv_build_alias" &&
 
1309
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
1310
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
1311
   { (exit 1); exit 1; }; }
 
1312
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
1313
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
1314
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
1315
   { (exit 1); exit 1; }; }
 
1316
 
 
1317
fi
 
1318
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
1319
echo "${ECHO_T}$ac_cv_build" >&6
 
1320
build=$ac_cv_build
 
1321
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1322
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1323
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1324
 
 
1325
 
 
1326
echo "$as_me:$LINENO: checking host system type" >&5
 
1327
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
1328
if test "${ac_cv_host+set}" = set; then
 
1329
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1330
else
 
1331
  ac_cv_host_alias=$host_alias
 
1332
test -z "$ac_cv_host_alias" &&
 
1333
  ac_cv_host_alias=$ac_cv_build_alias
 
1334
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
1335
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
1336
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
1337
   { (exit 1); exit 1; }; }
 
1338
 
 
1339
fi
 
1340
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
1341
echo "${ECHO_T}$ac_cv_host" >&6
 
1342
host=$ac_cv_host
 
1343
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1344
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1345
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1346
 
 
1347
 
 
1348
echo "$as_me:$LINENO: checking target system type" >&5
 
1349
echo $ECHO_N "checking target system type... $ECHO_C" >&6
 
1350
if test "${ac_cv_target+set}" = set; then
 
1351
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1352
else
 
1353
  ac_cv_target_alias=$target_alias
 
1354
test "x$ac_cv_target_alias" = "x" &&
 
1355
  ac_cv_target_alias=$ac_cv_host_alias
 
1356
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
 
1357
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
 
1358
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
 
1359
   { (exit 1); exit 1; }; }
 
1360
 
 
1361
fi
 
1362
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
 
1363
echo "${ECHO_T}$ac_cv_target" >&6
 
1364
target=$ac_cv_target
 
1365
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1366
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1367
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1368
 
 
1369
 
 
1370
# The aliases save the names the user supplied, while $host etc.
 
1371
# will get canonicalized.
 
1372
test -n "$target_alias" &&
 
1373
  test "$program_prefix$program_suffix$program_transform_name" = \
 
1374
    NONENONEs,x,x, &&
 
1375
  program_prefix=${target_alias}-
 
1376
 
 
1377
# Extract the first word of "gosh", so it can be a program name with args.
 
1378
set dummy gosh; ac_word=$2
 
1379
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1380
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1381
if test "${ac_cv_path_GOSH+set}" = set; then
 
1382
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1383
else
 
1384
  case $GOSH in
 
1385
  [\\/]* | ?:[\\/]*)
 
1386
  ac_cv_path_GOSH="$GOSH" # Let the user override the test with a path.
 
1387
  ;;
 
1388
  *)
 
1389
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1390
for as_dir in $PATH
 
1391
do
 
1392
  IFS=$as_save_IFS
 
1393
  test -z "$as_dir" && as_dir=.
 
1394
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1395
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1396
    ac_cv_path_GOSH="$as_dir/$ac_word$ac_exec_ext"
 
1397
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1398
    break 2
 
1399
  fi
 
1400
done
 
1401
done
 
1402
 
 
1403
  ;;
 
1404
esac
 
1405
fi
 
1406
GOSH=$ac_cv_path_GOSH
 
1407
 
 
1408
if test -n "$GOSH"; then
 
1409
  echo "$as_me:$LINENO: result: $GOSH" >&5
 
1410
echo "${ECHO_T}$GOSH" >&6
 
1411
else
 
1412
  echo "$as_me:$LINENO: result: no" >&5
 
1413
echo "${ECHO_T}no" >&6
 
1414
fi
 
1415
 
 
1416
# Extract the first word of "gauche-config", so it can be a program name with args.
 
1417
set dummy gauche-config; ac_word=$2
 
1418
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1419
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1420
if test "${ac_cv_path_GAUCHE_CONFIG+set}" = set; then
 
1421
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1422
else
 
1423
  case $GAUCHE_CONFIG in
 
1424
  [\\/]* | ?:[\\/]*)
 
1425
  ac_cv_path_GAUCHE_CONFIG="$GAUCHE_CONFIG" # Let the user override the test with a path.
 
1426
  ;;
 
1427
  *)
 
1428
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1429
for as_dir in $PATH
 
1430
do
 
1431
  IFS=$as_save_IFS
 
1432
  test -z "$as_dir" && as_dir=.
 
1433
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1434
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1435
    ac_cv_path_GAUCHE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
1436
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1437
    break 2
 
1438
  fi
 
1439
done
 
1440
done
 
1441
 
 
1442
  ;;
 
1443
esac
 
1444
fi
 
1445
GAUCHE_CONFIG=$ac_cv_path_GAUCHE_CONFIG
 
1446
 
 
1447
if test -n "$GAUCHE_CONFIG"; then
 
1448
  echo "$as_me:$LINENO: result: $GAUCHE_CONFIG" >&5
 
1449
echo "${ECHO_T}$GAUCHE_CONFIG" >&6
 
1450
else
 
1451
  echo "$as_me:$LINENO: result: no" >&5
 
1452
echo "${ECHO_T}no" >&6
 
1453
fi
 
1454
 
 
1455
# Extract the first word of "gauche-package", so it can be a program name with args.
 
1456
set dummy gauche-package; ac_word=$2
 
1457
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1458
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1459
if test "${ac_cv_path_GAUCHE_PACKAGE+set}" = set; then
 
1460
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1461
else
 
1462
  case $GAUCHE_PACKAGE in
 
1463
  [\\/]* | ?:[\\/]*)
 
1464
  ac_cv_path_GAUCHE_PACKAGE="$GAUCHE_PACKAGE" # Let the user override the test with a path.
 
1465
  ;;
 
1466
  *)
 
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_path_GAUCHE_PACKAGE="$as_dir/$ac_word$ac_exec_ext"
 
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
  ;;
 
1482
esac
 
1483
fi
 
1484
GAUCHE_PACKAGE=$ac_cv_path_GAUCHE_PACKAGE
 
1485
 
 
1486
if test -n "$GAUCHE_PACKAGE"; then
 
1487
  echo "$as_me:$LINENO: result: $GAUCHE_PACKAGE" >&5
 
1488
echo "${ECHO_T}$GAUCHE_PACKAGE" >&6
 
1489
else
 
1490
  echo "$as_me:$LINENO: result: no" >&5
 
1491
echo "${ECHO_T}no" >&6
 
1492
fi
 
1493
 
 
1494
# Extract the first word of "gauche-install", so it can be a program name with args.
 
1495
set dummy gauche-install; ac_word=$2
 
1496
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1497
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1498
if test "${ac_cv_path_GAUCHE_INSTALL+set}" = set; then
 
1499
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1500
else
 
1501
  case $GAUCHE_INSTALL in
 
1502
  [\\/]* | ?:[\\/]*)
 
1503
  ac_cv_path_GAUCHE_INSTALL="$GAUCHE_INSTALL" # Let the user override the test with a path.
 
1504
  ;;
 
1505
  *)
 
1506
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1507
for as_dir in $PATH
 
1508
do
 
1509
  IFS=$as_save_IFS
 
1510
  test -z "$as_dir" && as_dir=.
 
1511
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1512
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1513
    ac_cv_path_GAUCHE_INSTALL="$as_dir/$ac_word$ac_exec_ext"
 
1514
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1515
    break 2
 
1516
  fi
 
1517
done
 
1518
done
 
1519
 
 
1520
  ;;
 
1521
esac
 
1522
fi
 
1523
GAUCHE_INSTALL=$ac_cv_path_GAUCHE_INSTALL
 
1524
 
 
1525
if test -n "$GAUCHE_INSTALL"; then
 
1526
  echo "$as_me:$LINENO: result: $GAUCHE_INSTALL" >&5
 
1527
echo "${ECHO_T}$GAUCHE_INSTALL" >&6
 
1528
else
 
1529
  echo "$as_me:$LINENO: result: no" >&5
 
1530
echo "${ECHO_T}no" >&6
 
1531
fi
 
1532
 
 
1533
# Extract the first word of "gauche-cesconv", so it can be a program name with args.
 
1534
set dummy gauche-cesconv; ac_word=$2
 
1535
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1536
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1537
if test "${ac_cv_path_GAUCHE_CESCONV+set}" = set; then
 
1538
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1539
else
 
1540
  case $GAUCHE_CESCONV in
 
1541
  [\\/]* | ?:[\\/]*)
 
1542
  ac_cv_path_GAUCHE_CESCONV="$GAUCHE_CESCONV" # Let the user override the test with a path.
 
1543
  ;;
 
1544
  *)
 
1545
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1546
for as_dir in $PATH
 
1547
do
 
1548
  IFS=$as_save_IFS
 
1549
  test -z "$as_dir" && as_dir=.
 
1550
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1551
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1552
    ac_cv_path_GAUCHE_CESCONV="$as_dir/$ac_word$ac_exec_ext"
 
1553
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1554
    break 2
 
1555
  fi
 
1556
done
 
1557
done
 
1558
 
 
1559
  ;;
 
1560
esac
 
1561
fi
 
1562
GAUCHE_CESCONV=$ac_cv_path_GAUCHE_CESCONV
 
1563
 
 
1564
if test -n "$GAUCHE_CESCONV"; then
 
1565
  echo "$as_me:$LINENO: result: $GAUCHE_CESCONV" >&5
 
1566
echo "${ECHO_T}$GAUCHE_CESCONV" >&6
 
1567
else
 
1568
  echo "$as_me:$LINENO: result: no" >&5
 
1569
echo "${ECHO_T}no" >&6
 
1570
fi
 
1571
 
 
1572
 
 
1573
SOEXT=`$GAUCHE_CONFIG --so-suffix`
 
1574
OBJEXT=`$GAUCHE_CONFIG --object-suffix`
 
1575
EXEEXT=`$GAUCHE_CONFIG --executable-suffix`
 
1576
DYLIBEXT=`$GAUCHE_CONFIG --dylib-suffix`
 
1577
 
 
1578
 
 
1579
 
 
1580
 
 
1581
 
 
1582
ac_default_prefix=`$GAUCHE_CONFIG --prefix`
 
1583
 
 
1584
GAUCHE_PKGINCDIR=`$GAUCHE_CONFIG --pkgincdir`
 
1585
GAUCHE_PKGLIBDIR=`$GAUCHE_CONFIG --pkglibdir`
 
1586
GAUCHE_PKGARCHDIR=`$GAUCHE_CONFIG --pkgarchdir`
 
1587
 
 
1588
 
 
1589
 
 
1590
 
 
1591
 
 
1592
ac_ext=c
 
1593
ac_cpp='$CPP $CPPFLAGS'
 
1594
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1595
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1596
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1597
if test -n "$ac_tool_prefix"; then
 
1598
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
1599
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
1600
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1601
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1602
if test "${ac_cv_prog_CC+set}" = set; then
 
1603
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1604
else
 
1605
  if test -n "$CC"; then
 
1606
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1607
else
 
1608
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1609
for as_dir in $PATH
 
1610
do
 
1611
  IFS=$as_save_IFS
 
1612
  test -z "$as_dir" && as_dir=.
 
1613
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1614
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1615
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
1616
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1617
    break 2
 
1618
  fi
 
1619
done
 
1620
done
 
1621
 
 
1622
fi
 
1623
fi
 
1624
CC=$ac_cv_prog_CC
 
1625
if test -n "$CC"; then
 
1626
  echo "$as_me:$LINENO: result: $CC" >&5
 
1627
echo "${ECHO_T}$CC" >&6
 
1628
else
 
1629
  echo "$as_me:$LINENO: result: no" >&5
 
1630
echo "${ECHO_T}no" >&6
 
1631
fi
 
1632
 
 
1633
fi
 
1634
if test -z "$ac_cv_prog_CC"; then
 
1635
  ac_ct_CC=$CC
 
1636
  # Extract the first word of "gcc", so it can be a program name with args.
 
1637
set dummy gcc; ac_word=$2
 
1638
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1639
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1640
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1641
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1642
else
 
1643
  if test -n "$ac_ct_CC"; then
 
1644
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1645
else
 
1646
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1647
for as_dir in $PATH
 
1648
do
 
1649
  IFS=$as_save_IFS
 
1650
  test -z "$as_dir" && as_dir=.
 
1651
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1652
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1653
    ac_cv_prog_ac_ct_CC="gcc"
 
1654
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1655
    break 2
 
1656
  fi
 
1657
done
 
1658
done
 
1659
 
 
1660
fi
 
1661
fi
 
1662
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1663
if test -n "$ac_ct_CC"; then
 
1664
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1665
echo "${ECHO_T}$ac_ct_CC" >&6
 
1666
else
 
1667
  echo "$as_me:$LINENO: result: no" >&5
 
1668
echo "${ECHO_T}no" >&6
 
1669
fi
 
1670
 
 
1671
  CC=$ac_ct_CC
 
1672
else
 
1673
  CC="$ac_cv_prog_CC"
 
1674
fi
 
1675
 
 
1676
if test -z "$CC"; then
 
1677
  if test -n "$ac_tool_prefix"; then
 
1678
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
1679
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
1680
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1681
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1682
if test "${ac_cv_prog_CC+set}" = set; then
 
1683
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1684
else
 
1685
  if test -n "$CC"; then
 
1686
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1687
else
 
1688
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1689
for as_dir in $PATH
 
1690
do
 
1691
  IFS=$as_save_IFS
 
1692
  test -z "$as_dir" && as_dir=.
 
1693
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1694
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1695
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
1696
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1697
    break 2
 
1698
  fi
 
1699
done
 
1700
done
 
1701
 
 
1702
fi
 
1703
fi
 
1704
CC=$ac_cv_prog_CC
 
1705
if test -n "$CC"; then
 
1706
  echo "$as_me:$LINENO: result: $CC" >&5
 
1707
echo "${ECHO_T}$CC" >&6
 
1708
else
 
1709
  echo "$as_me:$LINENO: result: no" >&5
 
1710
echo "${ECHO_T}no" >&6
 
1711
fi
 
1712
 
 
1713
fi
 
1714
if test -z "$ac_cv_prog_CC"; then
 
1715
  ac_ct_CC=$CC
 
1716
  # Extract the first word of "cc", so it can be a program name with args.
 
1717
set dummy cc; ac_word=$2
 
1718
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1719
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1720
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1721
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1722
else
 
1723
  if test -n "$ac_ct_CC"; then
 
1724
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1725
else
 
1726
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1727
for as_dir in $PATH
 
1728
do
 
1729
  IFS=$as_save_IFS
 
1730
  test -z "$as_dir" && as_dir=.
 
1731
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1732
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1733
    ac_cv_prog_ac_ct_CC="cc"
 
1734
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1735
    break 2
 
1736
  fi
 
1737
done
 
1738
done
 
1739
 
 
1740
fi
 
1741
fi
 
1742
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1743
if test -n "$ac_ct_CC"; then
 
1744
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1745
echo "${ECHO_T}$ac_ct_CC" >&6
 
1746
else
 
1747
  echo "$as_me:$LINENO: result: no" >&5
 
1748
echo "${ECHO_T}no" >&6
 
1749
fi
 
1750
 
 
1751
  CC=$ac_ct_CC
 
1752
else
 
1753
  CC="$ac_cv_prog_CC"
 
1754
fi
 
1755
 
 
1756
fi
 
1757
if test -z "$CC"; then
 
1758
  # Extract the first word of "cc", so it can be a program name with args.
 
1759
set dummy cc; ac_word=$2
 
1760
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1761
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1762
if test "${ac_cv_prog_CC+set}" = set; then
 
1763
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1764
else
 
1765
  if test -n "$CC"; then
 
1766
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1767
else
 
1768
  ac_prog_rejected=no
 
1769
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1770
for as_dir in $PATH
 
1771
do
 
1772
  IFS=$as_save_IFS
 
1773
  test -z "$as_dir" && as_dir=.
 
1774
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1775
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1776
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
1777
       ac_prog_rejected=yes
 
1778
       continue
 
1779
     fi
 
1780
    ac_cv_prog_CC="cc"
 
1781
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1782
    break 2
 
1783
  fi
 
1784
done
 
1785
done
 
1786
 
 
1787
if test $ac_prog_rejected = yes; then
 
1788
  # We found a bogon in the path, so make sure we never use it.
 
1789
  set dummy $ac_cv_prog_CC
 
1790
  shift
 
1791
  if test $# != 0; then
 
1792
    # We chose a different compiler from the bogus one.
 
1793
    # However, it has the same basename, so the bogon will be chosen
 
1794
    # first if we set CC to just the basename; use the full file name.
 
1795
    shift
 
1796
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
1797
  fi
 
1798
fi
 
1799
fi
 
1800
fi
 
1801
CC=$ac_cv_prog_CC
 
1802
if test -n "$CC"; then
 
1803
  echo "$as_me:$LINENO: result: $CC" >&5
 
1804
echo "${ECHO_T}$CC" >&6
 
1805
else
 
1806
  echo "$as_me:$LINENO: result: no" >&5
 
1807
echo "${ECHO_T}no" >&6
 
1808
fi
 
1809
 
 
1810
fi
 
1811
if test -z "$CC"; then
 
1812
  if test -n "$ac_tool_prefix"; then
 
1813
  for ac_prog in cl
 
1814
  do
 
1815
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
1816
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
1817
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1818
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1819
if test "${ac_cv_prog_CC+set}" = set; then
 
1820
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1821
else
 
1822
  if test -n "$CC"; then
 
1823
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1824
else
 
1825
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1826
for as_dir in $PATH
 
1827
do
 
1828
  IFS=$as_save_IFS
 
1829
  test -z "$as_dir" && as_dir=.
 
1830
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1831
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1832
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
1833
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1834
    break 2
 
1835
  fi
 
1836
done
 
1837
done
 
1838
 
 
1839
fi
 
1840
fi
 
1841
CC=$ac_cv_prog_CC
 
1842
if test -n "$CC"; then
 
1843
  echo "$as_me:$LINENO: result: $CC" >&5
 
1844
echo "${ECHO_T}$CC" >&6
 
1845
else
 
1846
  echo "$as_me:$LINENO: result: no" >&5
 
1847
echo "${ECHO_T}no" >&6
 
1848
fi
 
1849
 
 
1850
    test -n "$CC" && break
 
1851
  done
 
1852
fi
 
1853
if test -z "$CC"; then
 
1854
  ac_ct_CC=$CC
 
1855
  for ac_prog in cl
 
1856
do
 
1857
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1858
set dummy $ac_prog; ac_word=$2
 
1859
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1860
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1861
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1862
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1863
else
 
1864
  if test -n "$ac_ct_CC"; then
 
1865
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1866
else
 
1867
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1868
for as_dir in $PATH
 
1869
do
 
1870
  IFS=$as_save_IFS
 
1871
  test -z "$as_dir" && as_dir=.
 
1872
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1873
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1874
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
1875
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1876
    break 2
 
1877
  fi
 
1878
done
 
1879
done
 
1880
 
 
1881
fi
 
1882
fi
 
1883
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1884
if test -n "$ac_ct_CC"; then
 
1885
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1886
echo "${ECHO_T}$ac_ct_CC" >&6
 
1887
else
 
1888
  echo "$as_me:$LINENO: result: no" >&5
 
1889
echo "${ECHO_T}no" >&6
 
1890
fi
 
1891
 
 
1892
  test -n "$ac_ct_CC" && break
 
1893
done
 
1894
 
 
1895
  CC=$ac_ct_CC
 
1896
fi
 
1897
 
 
1898
fi
 
1899
 
 
1900
 
 
1901
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
1902
See \`config.log' for more details." >&5
 
1903
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
1904
See \`config.log' for more details." >&2;}
 
1905
   { (exit 1); exit 1; }; }
 
1906
 
 
1907
# Provide some information about the compiler.
 
1908
echo "$as_me:$LINENO:" \
 
1909
     "checking for C compiler version" >&5
 
1910
ac_compiler=`set X $ac_compile; echo $2`
 
1911
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
1912
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
1913
  ac_status=$?
 
1914
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1915
  (exit $ac_status); }
 
1916
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
1917
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
1918
  ac_status=$?
 
1919
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1920
  (exit $ac_status); }
 
1921
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
1922
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
1923
  ac_status=$?
 
1924
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1925
  (exit $ac_status); }
 
1926
 
 
1927
cat >conftest.$ac_ext <<_ACEOF
 
1928
/* confdefs.h.  */
 
1929
_ACEOF
 
1930
cat confdefs.h >>conftest.$ac_ext
 
1931
cat >>conftest.$ac_ext <<_ACEOF
 
1932
/* end confdefs.h.  */
 
1933
 
 
1934
int
 
1935
main ()
 
1936
{
 
1937
 
 
1938
  ;
 
1939
  return 0;
 
1940
}
 
1941
_ACEOF
 
1942
ac_clean_files_save=$ac_clean_files
 
1943
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
1944
# Try to create an executable without -o first, disregard a.out.
 
1945
# It will help us diagnose broken compilers, and finding out an intuition
 
1946
# of exeext.
 
1947
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
1948
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
1949
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
1950
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
1951
  (eval $ac_link_default) 2>&5
 
1952
  ac_status=$?
 
1953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1954
  (exit $ac_status); }; then
 
1955
  # Find the output, starting from the most likely.  This scheme is
 
1956
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
1957
# resort.
 
1958
 
 
1959
# Be careful to initialize this variable, since it used to be cached.
 
1960
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
1961
ac_cv_exeext=
 
1962
# b.out is created by i960 compilers.
 
1963
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
1964
do
 
1965
  test -f "$ac_file" || continue
 
1966
  case $ac_file in
 
1967
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
1968
        ;;
 
1969
    conftest.$ac_ext )
 
1970
        # This is the source file.
 
1971
        ;;
 
1972
    [ab].out )
 
1973
        # We found the default executable, but exeext='' is most
 
1974
        # certainly right.
 
1975
        break;;
 
1976
    *.* )
 
1977
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
1978
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
1979
        # but it would be cool to find out if it's true.  Does anybody
 
1980
        # maintain Libtool? --akim.
 
1981
        export ac_cv_exeext
 
1982
        break;;
 
1983
    * )
 
1984
        break;;
 
1985
  esac
 
1986
done
 
1987
else
 
1988
  echo "$as_me: failed program was:" >&5
 
1989
sed 's/^/| /' conftest.$ac_ext >&5
 
1990
 
 
1991
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
1992
See \`config.log' for more details." >&5
 
1993
echo "$as_me: error: C compiler cannot create executables
 
1994
See \`config.log' for more details." >&2;}
 
1995
   { (exit 77); exit 77; }; }
 
1996
fi
 
1997
 
 
1998
ac_exeext=$ac_cv_exeext
 
1999
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2000
echo "${ECHO_T}$ac_file" >&6
 
2001
 
 
2002
# Check the compiler produces executables we can run.  If not, either
 
2003
# the compiler is broken, or we cross compile.
 
2004
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2005
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
2006
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2007
# If not cross compiling, check that we can run a simple program.
 
2008
if test "$cross_compiling" != yes; then
 
2009
  if { ac_try='./$ac_file'
 
2010
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2011
  (eval $ac_try) 2>&5
 
2012
  ac_status=$?
 
2013
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2014
  (exit $ac_status); }; }; then
 
2015
    cross_compiling=no
 
2016
  else
 
2017
    if test "$cross_compiling" = maybe; then
 
2018
        cross_compiling=yes
 
2019
    else
 
2020
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2021
If you meant to cross compile, use \`--host'.
 
2022
See \`config.log' for more details." >&5
 
2023
echo "$as_me: error: cannot run C compiled programs.
 
2024
If you meant to cross compile, use \`--host'.
 
2025
See \`config.log' for more details." >&2;}
 
2026
   { (exit 1); exit 1; }; }
 
2027
    fi
 
2028
  fi
 
2029
fi
 
2030
echo "$as_me:$LINENO: result: yes" >&5
 
2031
echo "${ECHO_T}yes" >&6
 
2032
 
 
2033
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2034
ac_clean_files=$ac_clean_files_save
 
2035
# Check the compiler produces executables we can run.  If not, either
 
2036
# the compiler is broken, or we cross compile.
 
2037
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2038
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
2039
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2040
echo "${ECHO_T}$cross_compiling" >&6
 
2041
 
 
2042
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2043
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2044
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2045
  (eval $ac_link) 2>&5
 
2046
  ac_status=$?
 
2047
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2048
  (exit $ac_status); }; then
 
2049
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2050
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2051
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2052
# `rm'.
 
2053
for ac_file in conftest.exe conftest conftest.*; do
 
2054
  test -f "$ac_file" || continue
 
2055
  case $ac_file in
 
2056
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2057
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2058
          export ac_cv_exeext
 
2059
          break;;
 
2060
    * ) break;;
 
2061
  esac
 
2062
done
 
2063
else
 
2064
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2065
See \`config.log' for more details." >&5
 
2066
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2067
See \`config.log' for more details." >&2;}
 
2068
   { (exit 1); exit 1; }; }
 
2069
fi
 
2070
 
 
2071
rm -f conftest$ac_cv_exeext
 
2072
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2073
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2074
 
 
2075
rm -f conftest.$ac_ext
 
2076
EXEEXT=$ac_cv_exeext
 
2077
ac_exeext=$EXEEXT
 
2078
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2079
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2080
if test "${ac_cv_objext+set}" = set; then
 
2081
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2082
else
 
2083
  cat >conftest.$ac_ext <<_ACEOF
 
2084
/* confdefs.h.  */
 
2085
_ACEOF
 
2086
cat confdefs.h >>conftest.$ac_ext
 
2087
cat >>conftest.$ac_ext <<_ACEOF
 
2088
/* end confdefs.h.  */
 
2089
 
 
2090
int
 
2091
main ()
 
2092
{
 
2093
 
 
2094
  ;
 
2095
  return 0;
 
2096
}
 
2097
_ACEOF
 
2098
rm -f conftest.o conftest.obj
 
2099
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2100
  (eval $ac_compile) 2>&5
 
2101
  ac_status=$?
 
2102
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2103
  (exit $ac_status); }; then
 
2104
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2105
  case $ac_file in
 
2106
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2107
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2108
       break;;
 
2109
  esac
 
2110
done
 
2111
else
 
2112
  echo "$as_me: failed program was:" >&5
 
2113
sed 's/^/| /' conftest.$ac_ext >&5
 
2114
 
 
2115
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2116
See \`config.log' for more details." >&5
 
2117
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2118
See \`config.log' for more details." >&2;}
 
2119
   { (exit 1); exit 1; }; }
 
2120
fi
 
2121
 
 
2122
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2123
fi
 
2124
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2125
echo "${ECHO_T}$ac_cv_objext" >&6
 
2126
OBJEXT=$ac_cv_objext
 
2127
ac_objext=$OBJEXT
 
2128
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2129
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2130
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2131
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2132
else
 
2133
  cat >conftest.$ac_ext <<_ACEOF
 
2134
/* confdefs.h.  */
 
2135
_ACEOF
 
2136
cat confdefs.h >>conftest.$ac_ext
 
2137
cat >>conftest.$ac_ext <<_ACEOF
 
2138
/* end confdefs.h.  */
 
2139
 
 
2140
int
 
2141
main ()
 
2142
{
 
2143
#ifndef __GNUC__
 
2144
       choke me
 
2145
#endif
 
2146
 
 
2147
  ;
 
2148
  return 0;
 
2149
}
 
2150
_ACEOF
 
2151
rm -f conftest.$ac_objext
 
2152
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2153
  (eval $ac_compile) 2>conftest.er1
 
2154
  ac_status=$?
 
2155
  grep -v '^ *+' conftest.er1 >conftest.err
 
2156
  rm -f conftest.er1
 
2157
  cat conftest.err >&5
 
2158
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2159
  (exit $ac_status); } &&
 
2160
         { ac_try='test -z "$ac_c_werror_flag"
 
2161
                         || test ! -s conftest.err'
 
2162
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2163
  (eval $ac_try) 2>&5
 
2164
  ac_status=$?
 
2165
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2166
  (exit $ac_status); }; } &&
 
2167
         { ac_try='test -s conftest.$ac_objext'
 
2168
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2169
  (eval $ac_try) 2>&5
 
2170
  ac_status=$?
 
2171
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2172
  (exit $ac_status); }; }; then
 
2173
  ac_compiler_gnu=yes
 
2174
else
 
2175
  echo "$as_me: failed program was:" >&5
 
2176
sed 's/^/| /' conftest.$ac_ext >&5
 
2177
 
 
2178
ac_compiler_gnu=no
 
2179
fi
 
2180
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2181
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2182
 
 
2183
fi
 
2184
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2185
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2186
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2187
ac_test_CFLAGS=${CFLAGS+set}
 
2188
ac_save_CFLAGS=$CFLAGS
 
2189
CFLAGS="-g"
 
2190
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2191
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2192
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2193
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2194
else
 
2195
  cat >conftest.$ac_ext <<_ACEOF
 
2196
/* confdefs.h.  */
 
2197
_ACEOF
 
2198
cat confdefs.h >>conftest.$ac_ext
 
2199
cat >>conftest.$ac_ext <<_ACEOF
 
2200
/* end confdefs.h.  */
 
2201
 
 
2202
int
 
2203
main ()
 
2204
{
 
2205
 
 
2206
  ;
 
2207
  return 0;
 
2208
}
 
2209
_ACEOF
 
2210
rm -f conftest.$ac_objext
 
2211
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2212
  (eval $ac_compile) 2>conftest.er1
 
2213
  ac_status=$?
 
2214
  grep -v '^ *+' conftest.er1 >conftest.err
 
2215
  rm -f conftest.er1
 
2216
  cat conftest.err >&5
 
2217
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2218
  (exit $ac_status); } &&
 
2219
         { ac_try='test -z "$ac_c_werror_flag"
 
2220
                         || test ! -s conftest.err'
 
2221
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2222
  (eval $ac_try) 2>&5
 
2223
  ac_status=$?
 
2224
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2225
  (exit $ac_status); }; } &&
 
2226
         { ac_try='test -s conftest.$ac_objext'
 
2227
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2228
  (eval $ac_try) 2>&5
 
2229
  ac_status=$?
 
2230
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2231
  (exit $ac_status); }; }; then
 
2232
  ac_cv_prog_cc_g=yes
 
2233
else
 
2234
  echo "$as_me: failed program was:" >&5
 
2235
sed 's/^/| /' conftest.$ac_ext >&5
 
2236
 
 
2237
ac_cv_prog_cc_g=no
 
2238
fi
 
2239
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2240
fi
 
2241
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2242
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
2243
if test "$ac_test_CFLAGS" = set; then
 
2244
  CFLAGS=$ac_save_CFLAGS
 
2245
elif test $ac_cv_prog_cc_g = yes; then
 
2246
  if test "$GCC" = yes; then
 
2247
    CFLAGS="-g -O2"
 
2248
  else
 
2249
    CFLAGS="-g"
 
2250
  fi
 
2251
else
 
2252
  if test "$GCC" = yes; then
 
2253
    CFLAGS="-O2"
 
2254
  else
 
2255
    CFLAGS=
 
2256
  fi
 
2257
fi
 
2258
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2259
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2260
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2261
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2262
else
 
2263
  ac_cv_prog_cc_stdc=no
 
2264
ac_save_CC=$CC
 
2265
cat >conftest.$ac_ext <<_ACEOF
 
2266
/* confdefs.h.  */
 
2267
_ACEOF
 
2268
cat confdefs.h >>conftest.$ac_ext
 
2269
cat >>conftest.$ac_ext <<_ACEOF
 
2270
/* end confdefs.h.  */
 
2271
#include <stdarg.h>
 
2272
#include <stdio.h>
 
2273
#include <sys/types.h>
 
2274
#include <sys/stat.h>
 
2275
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2276
struct buf { int x; };
 
2277
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2278
static char *e (p, i)
 
2279
     char **p;
 
2280
     int i;
 
2281
{
 
2282
  return p[i];
 
2283
}
 
2284
static char *f (char * (*g) (char **, int), char **p, ...)
 
2285
{
 
2286
  char *s;
 
2287
  va_list v;
 
2288
  va_start (v,p);
 
2289
  s = g (p, va_arg (v,int));
 
2290
  va_end (v);
 
2291
  return s;
 
2292
}
 
2293
 
 
2294
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2295
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2296
   These don't provoke an error unfortunately, instead are silently treated
 
2297
   as 'x'.  The following induces an error, until -std1 is added to get
 
2298
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2299
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2300
   that's true only with -std1.  */
 
2301
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2302
 
 
2303
int test (int i, double x);
 
2304
struct s1 {int (*f) (int a);};
 
2305
struct s2 {int (*f) (double a);};
 
2306
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2307
int argc;
 
2308
char **argv;
 
2309
int
 
2310
main ()
 
2311
{
 
2312
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2313
  ;
 
2314
  return 0;
 
2315
}
 
2316
_ACEOF
 
2317
# Don't try gcc -ansi; that turns off useful extensions and
 
2318
# breaks some systems' header files.
 
2319
# AIX                   -qlanglvl=ansi
 
2320
# Ultrix and OSF/1      -std1
 
2321
# HP-UX 10.20 and later -Ae
 
2322
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2323
# SVR4                  -Xc -D__EXTENSIONS__
 
2324
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2325
do
 
2326
  CC="$ac_save_CC $ac_arg"
 
2327
  rm -f conftest.$ac_objext
 
2328
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2329
  (eval $ac_compile) 2>conftest.er1
 
2330
  ac_status=$?
 
2331
  grep -v '^ *+' conftest.er1 >conftest.err
 
2332
  rm -f conftest.er1
 
2333
  cat conftest.err >&5
 
2334
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2335
  (exit $ac_status); } &&
 
2336
         { ac_try='test -z "$ac_c_werror_flag"
 
2337
                         || test ! -s conftest.err'
 
2338
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2339
  (eval $ac_try) 2>&5
 
2340
  ac_status=$?
 
2341
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2342
  (exit $ac_status); }; } &&
 
2343
         { ac_try='test -s conftest.$ac_objext'
 
2344
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2345
  (eval $ac_try) 2>&5
 
2346
  ac_status=$?
 
2347
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2348
  (exit $ac_status); }; }; then
 
2349
  ac_cv_prog_cc_stdc=$ac_arg
 
2350
break
 
2351
else
 
2352
  echo "$as_me: failed program was:" >&5
 
2353
sed 's/^/| /' conftest.$ac_ext >&5
 
2354
 
 
2355
fi
 
2356
rm -f conftest.err conftest.$ac_objext
 
2357
done
 
2358
rm -f conftest.$ac_ext conftest.$ac_objext
 
2359
CC=$ac_save_CC
 
2360
 
 
2361
fi
 
2362
 
 
2363
case "x$ac_cv_prog_cc_stdc" in
 
2364
  x|xno)
 
2365
    echo "$as_me:$LINENO: result: none needed" >&5
 
2366
echo "${ECHO_T}none needed" >&6 ;;
 
2367
  *)
 
2368
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2369
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2370
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2371
esac
 
2372
 
 
2373
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2374
# in C++ we need to declare it.  In case someone uses the same compiler
 
2375
# for both compiling C and C++ we need to have the C++ compiler decide
 
2376
# the declaration of exit, since it's the most demanding environment.
 
2377
cat >conftest.$ac_ext <<_ACEOF
 
2378
#ifndef __cplusplus
 
2379
  choke me
 
2380
#endif
 
2381
_ACEOF
 
2382
rm -f conftest.$ac_objext
 
2383
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2384
  (eval $ac_compile) 2>conftest.er1
 
2385
  ac_status=$?
 
2386
  grep -v '^ *+' conftest.er1 >conftest.err
 
2387
  rm -f conftest.er1
 
2388
  cat conftest.err >&5
 
2389
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2390
  (exit $ac_status); } &&
 
2391
         { ac_try='test -z "$ac_c_werror_flag"
 
2392
                         || test ! -s conftest.err'
 
2393
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2394
  (eval $ac_try) 2>&5
 
2395
  ac_status=$?
 
2396
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2397
  (exit $ac_status); }; } &&
 
2398
         { ac_try='test -s conftest.$ac_objext'
 
2399
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2400
  (eval $ac_try) 2>&5
 
2401
  ac_status=$?
 
2402
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2403
  (exit $ac_status); }; }; then
 
2404
  for ac_declaration in \
 
2405
   '' \
 
2406
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2407
   'extern "C" void std::exit (int); using std::exit;' \
 
2408
   'extern "C" void exit (int) throw ();' \
 
2409
   'extern "C" void exit (int);' \
 
2410
   'void exit (int);'
 
2411
do
 
2412
  cat >conftest.$ac_ext <<_ACEOF
 
2413
/* confdefs.h.  */
 
2414
_ACEOF
 
2415
cat confdefs.h >>conftest.$ac_ext
 
2416
cat >>conftest.$ac_ext <<_ACEOF
 
2417
/* end confdefs.h.  */
 
2418
$ac_declaration
 
2419
#include <stdlib.h>
 
2420
int
 
2421
main ()
 
2422
{
 
2423
exit (42);
 
2424
  ;
 
2425
  return 0;
 
2426
}
 
2427
_ACEOF
 
2428
rm -f conftest.$ac_objext
 
2429
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2430
  (eval $ac_compile) 2>conftest.er1
 
2431
  ac_status=$?
 
2432
  grep -v '^ *+' conftest.er1 >conftest.err
 
2433
  rm -f conftest.er1
 
2434
  cat conftest.err >&5
 
2435
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2436
  (exit $ac_status); } &&
 
2437
         { ac_try='test -z "$ac_c_werror_flag"
 
2438
                         || test ! -s conftest.err'
 
2439
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2440
  (eval $ac_try) 2>&5
 
2441
  ac_status=$?
 
2442
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2443
  (exit $ac_status); }; } &&
 
2444
         { ac_try='test -s conftest.$ac_objext'
 
2445
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2446
  (eval $ac_try) 2>&5
 
2447
  ac_status=$?
 
2448
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2449
  (exit $ac_status); }; }; then
 
2450
  :
 
2451
else
 
2452
  echo "$as_me: failed program was:" >&5
 
2453
sed 's/^/| /' conftest.$ac_ext >&5
 
2454
 
 
2455
continue
 
2456
fi
 
2457
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2458
  cat >conftest.$ac_ext <<_ACEOF
 
2459
/* confdefs.h.  */
 
2460
_ACEOF
 
2461
cat confdefs.h >>conftest.$ac_ext
 
2462
cat >>conftest.$ac_ext <<_ACEOF
 
2463
/* end confdefs.h.  */
 
2464
$ac_declaration
 
2465
int
 
2466
main ()
 
2467
{
 
2468
exit (42);
 
2469
  ;
 
2470
  return 0;
 
2471
}
 
2472
_ACEOF
 
2473
rm -f conftest.$ac_objext
 
2474
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2475
  (eval $ac_compile) 2>conftest.er1
 
2476
  ac_status=$?
 
2477
  grep -v '^ *+' conftest.er1 >conftest.err
 
2478
  rm -f conftest.er1
 
2479
  cat conftest.err >&5
 
2480
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2481
  (exit $ac_status); } &&
 
2482
         { ac_try='test -z "$ac_c_werror_flag"
 
2483
                         || test ! -s conftest.err'
 
2484
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2485
  (eval $ac_try) 2>&5
 
2486
  ac_status=$?
 
2487
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2488
  (exit $ac_status); }; } &&
 
2489
         { ac_try='test -s conftest.$ac_objext'
 
2490
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2491
  (eval $ac_try) 2>&5
 
2492
  ac_status=$?
 
2493
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2494
  (exit $ac_status); }; }; then
 
2495
  break
 
2496
else
 
2497
  echo "$as_me: failed program was:" >&5
 
2498
sed 's/^/| /' conftest.$ac_ext >&5
 
2499
 
 
2500
fi
 
2501
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2502
done
 
2503
rm -f conftest*
 
2504
if test -n "$ac_declaration"; then
 
2505
  echo '#ifdef __cplusplus' >>confdefs.h
 
2506
  echo $ac_declaration      >>confdefs.h
 
2507
  echo '#endif'             >>confdefs.h
 
2508
fi
 
2509
 
 
2510
else
 
2511
  echo "$as_me: failed program was:" >&5
 
2512
sed 's/^/| /' conftest.$ac_ext >&5
 
2513
 
 
2514
fi
 
2515
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2516
ac_ext=c
 
2517
ac_cpp='$CPP $CPPFLAGS'
 
2518
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2519
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2520
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2521
 
 
2522
for ac_prog in makeinfo
 
2523
do
 
2524
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2525
set dummy $ac_prog; ac_word=$2
 
2526
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2527
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2528
if test "${ac_cv_prog_MAKEINFO+set}" = set; then
 
2529
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2530
else
 
2531
  if test -n "$MAKEINFO"; then
 
2532
  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
 
2533
else
 
2534
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2535
for as_dir in $PATH
 
2536
do
 
2537
  IFS=$as_save_IFS
 
2538
  test -z "$as_dir" && as_dir=.
 
2539
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2540
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2541
    ac_cv_prog_MAKEINFO="$ac_prog"
 
2542
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2543
    break 2
 
2544
  fi
 
2545
done
 
2546
done
 
2547
 
 
2548
fi
 
2549
fi
 
2550
MAKEINFO=$ac_cv_prog_MAKEINFO
 
2551
if test -n "$MAKEINFO"; then
 
2552
  echo "$as_me:$LINENO: result: $MAKEINFO" >&5
 
2553
echo "${ECHO_T}$MAKEINFO" >&6
 
2554
else
 
2555
  echo "$as_me:$LINENO: result: no" >&5
 
2556
echo "${ECHO_T}no" >&6
 
2557
fi
 
2558
 
 
2559
  test -n "$MAKEINFO" && break
 
2560
done
 
2561
 
 
2562
for ac_prog in gzip
 
2563
do
 
2564
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2565
set dummy $ac_prog; ac_word=$2
 
2566
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2567
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2568
if test "${ac_cv_prog_GZIP_PROGRAM+set}" = set; then
 
2569
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2570
else
 
2571
  if test -n "$GZIP_PROGRAM"; then
 
2572
  ac_cv_prog_GZIP_PROGRAM="$GZIP_PROGRAM" # Let the user override the test.
 
2573
else
 
2574
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2575
for as_dir in $PATH
 
2576
do
 
2577
  IFS=$as_save_IFS
 
2578
  test -z "$as_dir" && as_dir=.
 
2579
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2580
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2581
    ac_cv_prog_GZIP_PROGRAM="$ac_prog"
 
2582
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2583
    break 2
 
2584
  fi
 
2585
done
 
2586
done
 
2587
 
 
2588
fi
 
2589
fi
 
2590
GZIP_PROGRAM=$ac_cv_prog_GZIP_PROGRAM
 
2591
if test -n "$GZIP_PROGRAM"; then
 
2592
  echo "$as_me:$LINENO: result: $GZIP_PROGRAM" >&5
 
2593
echo "${ECHO_T}$GZIP_PROGRAM" >&6
 
2594
else
 
2595
  echo "$as_me:$LINENO: result: no" >&5
 
2596
echo "${ECHO_T}no" >&6
 
2597
fi
 
2598
 
 
2599
  test -n "$GZIP_PROGRAM" && break
 
2600
done
 
2601
 
 
2602
for ac_prog in sed
 
2603
do
 
2604
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2605
set dummy $ac_prog; ac_word=$2
 
2606
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2607
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2608
if test "${ac_cv_prog_SED+set}" = set; then
 
2609
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2610
else
 
2611
  if test -n "$SED"; then
 
2612
  ac_cv_prog_SED="$SED" # Let the user override the test.
 
2613
else
 
2614
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2615
for as_dir in $PATH
 
2616
do
 
2617
  IFS=$as_save_IFS
 
2618
  test -z "$as_dir" && as_dir=.
 
2619
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2620
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2621
    ac_cv_prog_SED="$ac_prog"
 
2622
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2623
    break 2
 
2624
  fi
 
2625
done
 
2626
done
 
2627
 
 
2628
fi
 
2629
fi
 
2630
SED=$ac_cv_prog_SED
 
2631
if test -n "$SED"; then
 
2632
  echo "$as_me:$LINENO: result: $SED" >&5
 
2633
echo "${ECHO_T}$SED" >&6
 
2634
else
 
2635
  echo "$as_me:$LINENO: result: no" >&5
 
2636
echo "${ECHO_T}no" >&6
 
2637
fi
 
2638
 
 
2639
  test -n "$SED" && break
 
2640
done
 
2641
 
 
2642
for ac_prog in ldconfig
 
2643
do
 
2644
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2645
set dummy $ac_prog; ac_word=$2
 
2646
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2647
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2648
if test "${ac_cv_prog_LDCONFIG+set}" = set; then
 
2649
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2650
else
 
2651
  if test -n "$LDCONFIG"; then
 
2652
  ac_cv_prog_LDCONFIG="$LDCONFIG" # Let the user override the test.
 
2653
else
 
2654
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2655
for as_dir in $PATH
 
2656
do
 
2657
  IFS=$as_save_IFS
 
2658
  test -z "$as_dir" && as_dir=.
 
2659
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2660
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2661
    ac_cv_prog_LDCONFIG="$ac_prog"
 
2662
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2663
    break 2
 
2664
  fi
 
2665
done
 
2666
done
 
2667
 
 
2668
fi
 
2669
fi
 
2670
LDCONFIG=$ac_cv_prog_LDCONFIG
 
2671
if test -n "$LDCONFIG"; then
 
2672
  echo "$as_me:$LINENO: result: $LDCONFIG" >&5
 
2673
echo "${ECHO_T}$LDCONFIG" >&6
 
2674
else
 
2675
  echo "$as_me:$LINENO: result: no" >&5
 
2676
echo "${ECHO_T}no" >&6
 
2677
fi
 
2678
 
 
2679
  test -n "$LDCONFIG" && break
 
2680
done
 
2681
 
 
2682
 
 
2683
 
 
2684
# Check whether --enable-objc or --disable-objc was given.
 
2685
if test "${enable_objc+set}" = set; then
 
2686
  enableval="$enable_objc"
 
2687
 
 
2688
fi;
 
2689
 
 
2690
STUBGEN_FFI_MODULE=c-wrapper.c-ffi
 
2691
LDCONFIG_CMD=""
 
2692
LD_LIBRARY_PATH_ENVS='"LD_LIBRARY_PATH"'
 
2693
TESTLIB_CFLAGS="-c -fPIC -o"
 
2694
TESTLIB_LDFLAGS="-shared -o"
 
2695
SYS_LIBRARY_PATHS="/usr/lib /lib"
 
2696
case "$target" in
 
2697
    *darwin*)
 
2698
        if test "$enable_objc" != "no"; then
 
2699
           enable_objc="yes"
 
2700
        fi
 
2701
        LD_LIBRARY_PATH_ENVS='"LD_LIBRARY_PATH" "DYLD_LIBRARY_PATH"'
 
2702
        TESTLIB_CFLAGS="-c -fPIC -o"
 
2703
        TESTLIB_LDFLAGS="-dynamiclib -r -nostartfiles -install_name ffitest -single_module -o"
 
2704
        STUBGEN_FFI_MODULE=c-wrapper.objc-ffi
 
2705
        ;;
 
2706
    *linux*)
 
2707
        CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
 
2708
        if test "X$LDCONFIG" != "X" -a "X$SED" != "X"; then
 
2709
            LDCONFIG_CMD="$LDCONFIG -p | $SED -n '/^    /s/^.*=> //p'"
 
2710
        fi
 
2711
        ;;
 
2712
    *freebsd*|*netbsd*)
 
2713
        if test "X$LDCONFIG" != "X" -a "X$SED" != "X"; then
 
2714
            LDCONFIG_CMD="$LDCONFIG -r | $SED -n '/^    /s/^.*=> //p'"
 
2715
        fi
 
2716
        ;;
 
2717
esac
 
2718
 
 
2719
if test "$enable_objc" = "yes"; then
 
2720
   CPPFLAGS="$CPPFLAGS -x objective-c -fobjc-exceptions"
 
2721
   LDFLAGS="$LDFLAGS -framework Foundation"
 
2722
   OBJC_ENABLE_TRUE=""
 
2723
else
 
2724
   OBJC_ENABLE_TRUE="#"
 
2725
fi
 
2726
 
 
2727
 
 
2728
 
 
2729
 
 
2730
 
 
2731
 
 
2732
 
 
2733
 
 
2734
GAUCHE_PACKAGE_CONFIGURE_ARGS="`echo ""$ac_configure_args"" | sed 's/\\""\`\$/\\\&/g'`"
 
2735
{ echo "$as_me:$LINENO: creating ${PACKAGE_NAME}.gpd" >&5
 
2736
echo "$as_me: creating ${PACKAGE_NAME}.gpd" >&6;}
 
2737
$GAUCHE_PACKAGE make-gpd "$PACKAGE_NAME" \
 
2738
  -version "$PACKAGE_VERSION" \
 
2739
  -configure "./configure $GAUCHE_PACKAGE_CONFIGURE_ARGS"
 
2740
 
 
2741
echo $PACKAGE_VERSION > VERSION
 
2742
                                                                                          ac_config_files="$ac_config_files Makefile src/Makefile lib/Makefile objc/Makefile testsuite/Makefile src/cwcompile lib/c-wrapper/config.scm lib/c-wrapper/stubgen.scm doc/Makefile"
 
2743
cat >confcache <<\_ACEOF
 
2744
# This file is a shell script that caches the results of configure
 
2745
# tests run on this system so they can be shared between configure
 
2746
# scripts and configure runs, see configure's option --config-cache.
 
2747
# It is not useful on other systems.  If it contains results you don't
 
2748
# want to keep, you may remove or edit it.
 
2749
#
 
2750
# config.status only pays attention to the cache file if you give it
 
2751
# the --recheck option to rerun configure.
 
2752
#
 
2753
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
2754
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
2755
# following values.
 
2756
 
 
2757
_ACEOF
 
2758
 
 
2759
# The following way of writing the cache mishandles newlines in values,
 
2760
# but we know of no workaround that is simple, portable, and efficient.
 
2761
# So, don't put newlines in cache variables' values.
 
2762
# Ultrix sh set writes to stderr and can't be redirected directly,
 
2763
# and sets the high bit in the cache file unless we assign to the vars.
 
2764
{
 
2765
  (set) 2>&1 |
 
2766
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
2767
    *ac_space=\ *)
 
2768
      # `set' does not quote correctly, so add quotes (double-quote
 
2769
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
2770
      sed -n \
 
2771
        "s/'/'\\\\''/g;
 
2772
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
2773
      ;;
 
2774
    *)
 
2775
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
2776
      sed -n \
 
2777
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
2778
      ;;
 
2779
    esac;
 
2780
} |
 
2781
  sed '
 
2782
     t clear
 
2783
     : clear
 
2784
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
2785
     t end
 
2786
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
2787
     : end' >>confcache
 
2788
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
2789
  if test -w $cache_file; then
 
2790
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
2791
    cat confcache >$cache_file
 
2792
  else
 
2793
    echo "not updating unwritable cache $cache_file"
 
2794
  fi
 
2795
fi
 
2796
rm -f confcache
 
2797
 
 
2798
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
2799
# Let make expand exec_prefix.
 
2800
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
2801
 
 
2802
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
2803
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
2804
# trailing colons and then remove the whole line if VPATH becomes empty
 
2805
# (actually we leave an empty line to preserve line numbers).
 
2806
if test "x$srcdir" = x.; then
 
2807
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
2808
s/:*\$(srcdir):*/:/;
 
2809
s/:*\${srcdir}:*/:/;
 
2810
s/:*@srcdir@:*/:/;
 
2811
s/^\([^=]*=[     ]*\):*/\1/;
 
2812
s/:*$//;
 
2813
s/^[^=]*=[       ]*$//;
 
2814
}'
 
2815
fi
 
2816
 
 
2817
# Transform confdefs.h into DEFS.
 
2818
# Protect against shell expansion while executing Makefile rules.
 
2819
# Protect against Makefile macro expansion.
 
2820
#
 
2821
# If the first sed substitution is executed (which looks for macros that
 
2822
# take arguments), then we branch to the quote section.  Otherwise,
 
2823
# look for a macro that doesn't take arguments.
 
2824
cat >confdef2opt.sed <<\_ACEOF
 
2825
t clear
 
2826
: clear
 
2827
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
 
2828
t quote
 
2829
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
 
2830
t quote
 
2831
d
 
2832
: quote
 
2833
s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
 
2834
s,\[,\\&,g
 
2835
s,\],\\&,g
 
2836
s,\$,$$,g
 
2837
p
 
2838
_ACEOF
 
2839
# We use echo to avoid assuming a particular line-breaking character.
 
2840
# The extra dot is to prevent the shell from consuming trailing
 
2841
# line-breaks from the sub-command output.  A line-break within
 
2842
# single-quotes doesn't work because, if this script is created in a
 
2843
# platform that uses two characters for line-breaks (e.g., DOS), tr
 
2844
# would break.
 
2845
ac_LF_and_DOT=`echo; echo .`
 
2846
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
 
2847
rm -f confdef2opt.sed
 
2848
 
 
2849
 
 
2850
ac_libobjs=
 
2851
ac_ltlibobjs=
 
2852
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
2853
  # 1. Remove the extension, and $U if already installed.
 
2854
  ac_i=`echo "$ac_i" |
 
2855
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
2856
  # 2. Add them.
 
2857
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
2858
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
2859
done
 
2860
LIBOBJS=$ac_libobjs
 
2861
 
 
2862
LTLIBOBJS=$ac_ltlibobjs
 
2863
 
 
2864
 
 
2865
 
 
2866
: ${CONFIG_STATUS=./config.status}
 
2867
ac_clean_files_save=$ac_clean_files
 
2868
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
2869
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
2870
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
2871
cat >$CONFIG_STATUS <<_ACEOF
 
2872
#! $SHELL
 
2873
# Generated by $as_me.
 
2874
# Run this file to recreate the current configuration.
 
2875
# Compiler output produced by configure, useful for debugging
 
2876
# configure, is in config.log if it exists.
 
2877
 
 
2878
debug=false
 
2879
ac_cs_recheck=false
 
2880
ac_cs_silent=false
 
2881
SHELL=\${CONFIG_SHELL-$SHELL}
 
2882
_ACEOF
 
2883
 
 
2884
cat >>$CONFIG_STATUS <<\_ACEOF
 
2885
## --------------------- ##
 
2886
## M4sh Initialization.  ##
 
2887
## --------------------- ##
 
2888
 
 
2889
# Be Bourne compatible
 
2890
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
2891
  emulate sh
 
2892
  NULLCMD=:
 
2893
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
2894
  # is contrary to our usage.  Disable this feature.
 
2895
  alias -g '${1+"$@"}'='"$@"'
 
2896
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
2897
  set -o posix
 
2898
fi
 
2899
DUALCASE=1; export DUALCASE # for MKS sh
 
2900
 
 
2901
# Support unset when possible.
 
2902
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
2903
  as_unset=unset
 
2904
else
 
2905
  as_unset=false
 
2906
fi
 
2907
 
 
2908
 
 
2909
# Work around bugs in pre-3.0 UWIN ksh.
 
2910
$as_unset ENV MAIL MAILPATH
 
2911
PS1='$ '
 
2912
PS2='> '
 
2913
PS4='+ '
 
2914
 
 
2915
# NLS nuisances.
 
2916
for as_var in \
 
2917
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
2918
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
2919
  LC_TELEPHONE LC_TIME
 
2920
do
 
2921
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
2922
    eval $as_var=C; export $as_var
 
2923
  else
 
2924
    $as_unset $as_var
 
2925
  fi
 
2926
done
 
2927
 
 
2928
# Required to use basename.
 
2929
if expr a : '\(a\)' >/dev/null 2>&1; then
 
2930
  as_expr=expr
 
2931
else
 
2932
  as_expr=false
 
2933
fi
 
2934
 
 
2935
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
2936
  as_basename=basename
 
2937
else
 
2938
  as_basename=false
 
2939
fi
 
2940
 
 
2941
 
 
2942
# Name of the executable.
 
2943
as_me=`$as_basename "$0" ||
 
2944
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
2945
         X"$0" : 'X\(//\)$' \| \
 
2946
         X"$0" : 'X\(/\)$' \| \
 
2947
         .     : '\(.\)' 2>/dev/null ||
 
2948
echo X/"$0" |
 
2949
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
2950
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
2951
          /^X\/\(\/\).*/{ s//\1/; q; }
 
2952
          s/.*/./; q'`
 
2953
 
 
2954
 
 
2955
# PATH needs CR, and LINENO needs CR and PATH.
 
2956
# Avoid depending upon Character Ranges.
 
2957
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
2958
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
2959
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
2960
as_cr_digits='0123456789'
 
2961
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
2962
 
 
2963
# The user is always right.
 
2964
if test "${PATH_SEPARATOR+set}" != set; then
 
2965
  echo "#! /bin/sh" >conf$$.sh
 
2966
  echo  "exit 0"   >>conf$$.sh
 
2967
  chmod +x conf$$.sh
 
2968
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
2969
    PATH_SEPARATOR=';'
 
2970
  else
 
2971
    PATH_SEPARATOR=:
 
2972
  fi
 
2973
  rm -f conf$$.sh
 
2974
fi
 
2975
 
 
2976
 
 
2977
  as_lineno_1=$LINENO
 
2978
  as_lineno_2=$LINENO
 
2979
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
2980
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
2981
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
2982
  # Find who we are.  Look in the path if we contain no path at all
 
2983
  # relative or not.
 
2984
  case $0 in
 
2985
    *[\\/]* ) as_myself=$0 ;;
 
2986
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2987
for as_dir in $PATH
 
2988
do
 
2989
  IFS=$as_save_IFS
 
2990
  test -z "$as_dir" && as_dir=.
 
2991
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
2992
done
 
2993
 
 
2994
       ;;
 
2995
  esac
 
2996
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
2997
  # in which case we are not to be found in the path.
 
2998
  if test "x$as_myself" = x; then
 
2999
    as_myself=$0
 
3000
  fi
 
3001
  if test ! -f "$as_myself"; then
 
3002
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
3003
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
3004
   { (exit 1); exit 1; }; }
 
3005
  fi
 
3006
  case $CONFIG_SHELL in
 
3007
  '')
 
3008
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3009
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
3010
do
 
3011
  IFS=$as_save_IFS
 
3012
  test -z "$as_dir" && as_dir=.
 
3013
  for as_base in sh bash ksh sh5; do
 
3014
         case $as_dir in
 
3015
         /*)
 
3016
           if ("$as_dir/$as_base" -c '
 
3017
  as_lineno_1=$LINENO
 
3018
  as_lineno_2=$LINENO
 
3019
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
3020
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
3021
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
3022
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
3023
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
3024
             CONFIG_SHELL=$as_dir/$as_base
 
3025
             export CONFIG_SHELL
 
3026
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
3027
           fi;;
 
3028
         esac
 
3029
       done
 
3030
done
 
3031
;;
 
3032
  esac
 
3033
 
 
3034
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
3035
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
3036
  # line-number line before each line; the second 'sed' does the real
 
3037
  # work.  The second script uses 'N' to pair each line-number line
 
3038
  # with the numbered line, and appends trailing '-' during
 
3039
  # substitution so that $LINENO is not a special case at line end.
 
3040
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
3041
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
3042
  sed '=' <$as_myself |
 
3043
    sed '
 
3044
      N
 
3045
      s,$,-,
 
3046
      : loop
 
3047
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
3048
      t loop
 
3049
      s,-$,,
 
3050
      s,^['$as_cr_digits']*\n,,
 
3051
    ' >$as_me.lineno &&
 
3052
  chmod +x $as_me.lineno ||
 
3053
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
3054
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
3055
   { (exit 1); exit 1; }; }
 
3056
 
 
3057
  # Don't try to exec as it changes $[0], causing all sort of problems
 
3058
  # (the dirname of $[0] is not the place where we might find the
 
3059
  # original and so on.  Autoconf is especially sensible to this).
 
3060
  . ./$as_me.lineno
 
3061
  # Exit status is that of the last command.
 
3062
  exit
 
3063
}
 
3064
 
 
3065
 
 
3066
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
3067
  *c*,-n*) ECHO_N= ECHO_C='
 
3068
' ECHO_T='      ' ;;
 
3069
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
3070
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
3071
esac
 
3072
 
 
3073
if expr a : '\(a\)' >/dev/null 2>&1; then
 
3074
  as_expr=expr
 
3075
else
 
3076
  as_expr=false
 
3077
fi
 
3078
 
 
3079
rm -f conf$$ conf$$.exe conf$$.file
 
3080
echo >conf$$.file
 
3081
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
3082
  # We could just check for DJGPP; but this test a) works b) is more generic
 
3083
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
3084
  if test -f conf$$.exe; then
 
3085
    # Don't use ln at all; we don't have any links
 
3086
    as_ln_s='cp -p'
 
3087
  else
 
3088
    as_ln_s='ln -s'
 
3089
  fi
 
3090
elif ln conf$$.file conf$$ 2>/dev/null; then
 
3091
  as_ln_s=ln
 
3092
else
 
3093
  as_ln_s='cp -p'
 
3094
fi
 
3095
rm -f conf$$ conf$$.exe conf$$.file
 
3096
 
 
3097
if mkdir -p . 2>/dev/null; then
 
3098
  as_mkdir_p=:
 
3099
else
 
3100
  test -d ./-p && rmdir ./-p
 
3101
  as_mkdir_p=false
 
3102
fi
 
3103
 
 
3104
as_executable_p="test -f"
 
3105
 
 
3106
# Sed expression to map a string onto a valid CPP name.
 
3107
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
3108
 
 
3109
# Sed expression to map a string onto a valid variable name.
 
3110
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
3111
 
 
3112
 
 
3113
# IFS
 
3114
# We need space, tab and new line, in precisely that order.
 
3115
as_nl='
 
3116
'
 
3117
IFS="   $as_nl"
 
3118
 
 
3119
# CDPATH.
 
3120
$as_unset CDPATH
 
3121
 
 
3122
exec 6>&1
 
3123
 
 
3124
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
3125
# report actual input values of CONFIG_FILES etc. instead of their
 
3126
# values after options handling.  Logging --version etc. is OK.
 
3127
exec 5>>config.log
 
3128
{
 
3129
  echo
 
3130
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
3131
## Running $as_me. ##
 
3132
_ASBOX
 
3133
} >&5
 
3134
cat >&5 <<_CSEOF
 
3135
 
 
3136
This file was extended by c-wrapper $as_me 0.5.2, which was
 
3137
generated by GNU Autoconf 2.59.  Invocation command line was
 
3138
 
 
3139
  CONFIG_FILES    = $CONFIG_FILES
 
3140
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
3141
  CONFIG_LINKS    = $CONFIG_LINKS
 
3142
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
3143
  $ $0 $@
 
3144
 
 
3145
_CSEOF
 
3146
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
3147
echo >&5
 
3148
_ACEOF
 
3149
 
 
3150
# Files that config.status was made for.
 
3151
if test -n "$ac_config_files"; then
 
3152
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
3153
fi
 
3154
 
 
3155
if test -n "$ac_config_headers"; then
 
3156
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
3157
fi
 
3158
 
 
3159
if test -n "$ac_config_links"; then
 
3160
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
3161
fi
 
3162
 
 
3163
if test -n "$ac_config_commands"; then
 
3164
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
3165
fi
 
3166
 
 
3167
cat >>$CONFIG_STATUS <<\_ACEOF
 
3168
 
 
3169
ac_cs_usage="\
 
3170
\`$as_me' instantiates files from templates according to the
 
3171
current configuration.
 
3172
 
 
3173
Usage: $0 [OPTIONS] [FILE]...
 
3174
 
 
3175
  -h, --help       print this help, then exit
 
3176
  -V, --version    print version number, then exit
 
3177
  -q, --quiet      do not print progress messages
 
3178
  -d, --debug      don't remove temporary files
 
3179
      --recheck    update $as_me by reconfiguring in the same conditions
 
3180
  --file=FILE[:TEMPLATE]
 
3181
                   instantiate the configuration file FILE
 
3182
 
 
3183
Configuration files:
 
3184
$config_files
 
3185
 
 
3186
Report bugs to <bug-autoconf@gnu.org>."
 
3187
_ACEOF
 
3188
 
 
3189
cat >>$CONFIG_STATUS <<_ACEOF
 
3190
ac_cs_version="\\
 
3191
c-wrapper config.status 0.5.2
 
3192
configured by $0, generated by GNU Autoconf 2.59,
 
3193
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
3194
 
 
3195
Copyright (C) 2003 Free Software Foundation, Inc.
 
3196
This config.status script is free software; the Free Software Foundation
 
3197
gives unlimited permission to copy, distribute and modify it."
 
3198
srcdir=$srcdir
 
3199
_ACEOF
 
3200
 
 
3201
cat >>$CONFIG_STATUS <<\_ACEOF
 
3202
# If no file are specified by the user, then we need to provide default
 
3203
# value.  By we need to know if files were specified by the user.
 
3204
ac_need_defaults=:
 
3205
while test $# != 0
 
3206
do
 
3207
  case $1 in
 
3208
  --*=*)
 
3209
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
3210
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
3211
    ac_shift=:
 
3212
    ;;
 
3213
  -*)
 
3214
    ac_option=$1
 
3215
    ac_optarg=$2
 
3216
    ac_shift=shift
 
3217
    ;;
 
3218
  *) # This is not an option, so the user has probably given explicit
 
3219
     # arguments.
 
3220
     ac_option=$1
 
3221
     ac_need_defaults=false;;
 
3222
  esac
 
3223
 
 
3224
  case $ac_option in
 
3225
  # Handling of the options.
 
3226
_ACEOF
 
3227
cat >>$CONFIG_STATUS <<\_ACEOF
 
3228
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
3229
    ac_cs_recheck=: ;;
 
3230
  --version | --vers* | -V )
 
3231
    echo "$ac_cs_version"; exit 0 ;;
 
3232
  --he | --h)
 
3233
    # Conflict between --help and --header
 
3234
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
3235
Try \`$0 --help' for more information." >&5
 
3236
echo "$as_me: error: ambiguous option: $1
 
3237
Try \`$0 --help' for more information." >&2;}
 
3238
   { (exit 1); exit 1; }; };;
 
3239
  --help | --hel | -h )
 
3240
    echo "$ac_cs_usage"; exit 0 ;;
 
3241
  --debug | --d* | -d )
 
3242
    debug=: ;;
 
3243
  --file | --fil | --fi | --f )
 
3244
    $ac_shift
 
3245
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
3246
    ac_need_defaults=false;;
 
3247
  --header | --heade | --head | --hea )
 
3248
    $ac_shift
 
3249
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
3250
    ac_need_defaults=false;;
 
3251
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
3252
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
3253
    ac_cs_silent=: ;;
 
3254
 
 
3255
  # This is an error.
 
3256
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
3257
Try \`$0 --help' for more information." >&5
 
3258
echo "$as_me: error: unrecognized option: $1
 
3259
Try \`$0 --help' for more information." >&2;}
 
3260
   { (exit 1); exit 1; }; } ;;
 
3261
 
 
3262
  *) ac_config_targets="$ac_config_targets $1" ;;
 
3263
 
 
3264
  esac
 
3265
  shift
 
3266
done
 
3267
 
 
3268
ac_configure_extra_args=
 
3269
 
 
3270
if $ac_cs_silent; then
 
3271
  exec 6>/dev/null
 
3272
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
3273
fi
 
3274
 
 
3275
_ACEOF
 
3276
cat >>$CONFIG_STATUS <<_ACEOF
 
3277
if \$ac_cs_recheck; then
 
3278
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
3279
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
3280
fi
 
3281
 
 
3282
_ACEOF
 
3283
 
 
3284
 
 
3285
 
 
3286
 
 
3287
 
 
3288
cat >>$CONFIG_STATUS <<\_ACEOF
 
3289
for ac_config_target in $ac_config_targets
 
3290
do
 
3291
  case "$ac_config_target" in
 
3292
  # Handling of arguments.
 
3293
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
3294
  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
3295
  "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
 
3296
  "objc/Makefile" ) CONFIG_FILES="$CONFIG_FILES objc/Makefile" ;;
 
3297
  "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
 
3298
  "src/cwcompile" ) CONFIG_FILES="$CONFIG_FILES src/cwcompile" ;;
 
3299
  "lib/c-wrapper/config.scm" ) CONFIG_FILES="$CONFIG_FILES lib/c-wrapper/config.scm" ;;
 
3300
  "lib/c-wrapper/stubgen.scm" ) CONFIG_FILES="$CONFIG_FILES lib/c-wrapper/stubgen.scm" ;;
 
3301
  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
 
3302
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
3303
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
3304
   { (exit 1); exit 1; }; };;
 
3305
  esac
 
3306
done
 
3307
 
 
3308
# If the user did not use the arguments to specify the items to instantiate,
 
3309
# then the envvar interface is used.  Set only those that are not.
 
3310
# We use the long form for the default assignment because of an extremely
 
3311
# bizarre bug on SunOS 4.1.3.
 
3312
if $ac_need_defaults; then
 
3313
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
3314
fi
 
3315
 
 
3316
# Have a temporary directory for convenience.  Make it in the build tree
 
3317
# simply because there is no reason to put it here, and in addition,
 
3318
# creating and moving files from /tmp can sometimes cause problems.
 
3319
# Create a temporary directory, and hook for its removal unless debugging.
 
3320
$debug ||
 
3321
{
 
3322
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
3323
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
3324
}
 
3325
 
 
3326
# Create a (secure) tmp directory for tmp files.
 
3327
 
 
3328
{
 
3329
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
3330
  test -n "$tmp" && test -d "$tmp"
 
3331
}  ||
 
3332
{
 
3333
  tmp=./confstat$$-$RANDOM
 
3334
  (umask 077 && mkdir $tmp)
 
3335
} ||
 
3336
{
 
3337
   echo "$me: cannot create a temporary directory in ." >&2
 
3338
   { (exit 1); exit 1; }
 
3339
}
 
3340
 
 
3341
_ACEOF
 
3342
 
 
3343
cat >>$CONFIG_STATUS <<_ACEOF
 
3344
 
 
3345
#
 
3346
# CONFIG_FILES section.
 
3347
#
 
3348
 
 
3349
# No need to generate the scripts if there are no CONFIG_FILES.
 
3350
# This happens for instance when ./config.status config.h
 
3351
if test -n "\$CONFIG_FILES"; then
 
3352
  # Protect against being on the right side of a sed subst in config.status.
 
3353
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
3354
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
3355
s,@SHELL@,$SHELL,;t t
 
3356
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
3357
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
3358
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
3359
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
3360
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
3361
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
3362
s,@exec_prefix@,$exec_prefix,;t t
 
3363
s,@prefix@,$prefix,;t t
 
3364
s,@program_transform_name@,$program_transform_name,;t t
 
3365
s,@bindir@,$bindir,;t t
 
3366
s,@sbindir@,$sbindir,;t t
 
3367
s,@libexecdir@,$libexecdir,;t t
 
3368
s,@datadir@,$datadir,;t t
 
3369
s,@sysconfdir@,$sysconfdir,;t t
 
3370
s,@sharedstatedir@,$sharedstatedir,;t t
 
3371
s,@localstatedir@,$localstatedir,;t t
 
3372
s,@libdir@,$libdir,;t t
 
3373
s,@includedir@,$includedir,;t t
 
3374
s,@oldincludedir@,$oldincludedir,;t t
 
3375
s,@infodir@,$infodir,;t t
 
3376
s,@mandir@,$mandir,;t t
 
3377
s,@build_alias@,$build_alias,;t t
 
3378
s,@host_alias@,$host_alias,;t t
 
3379
s,@target_alias@,$target_alias,;t t
 
3380
s,@DEFS@,$DEFS,;t t
 
3381
s,@ECHO_C@,$ECHO_C,;t t
 
3382
s,@ECHO_N@,$ECHO_N,;t t
 
3383
s,@ECHO_T@,$ECHO_T,;t t
 
3384
s,@LIBS@,$LIBS,;t t
 
3385
s,@build@,$build,;t t
 
3386
s,@build_cpu@,$build_cpu,;t t
 
3387
s,@build_vendor@,$build_vendor,;t t
 
3388
s,@build_os@,$build_os,;t t
 
3389
s,@host@,$host,;t t
 
3390
s,@host_cpu@,$host_cpu,;t t
 
3391
s,@host_vendor@,$host_vendor,;t t
 
3392
s,@host_os@,$host_os,;t t
 
3393
s,@target@,$target,;t t
 
3394
s,@target_cpu@,$target_cpu,;t t
 
3395
s,@target_vendor@,$target_vendor,;t t
 
3396
s,@target_os@,$target_os,;t t
 
3397
s,@GOSH@,$GOSH,;t t
 
3398
s,@GAUCHE_CONFIG@,$GAUCHE_CONFIG,;t t
 
3399
s,@GAUCHE_PACKAGE@,$GAUCHE_PACKAGE,;t t
 
3400
s,@GAUCHE_INSTALL@,$GAUCHE_INSTALL,;t t
 
3401
s,@GAUCHE_CESCONV@,$GAUCHE_CESCONV,;t t
 
3402
s,@SOEXT@,$SOEXT,;t t
 
3403
s,@OBJEXT@,$OBJEXT,;t t
 
3404
s,@EXEEXT@,$EXEEXT,;t t
 
3405
s,@DYLIBEXT@,$DYLIBEXT,;t t
 
3406
s,@GAUCHE_PKGINCDIR@,$GAUCHE_PKGINCDIR,;t t
 
3407
s,@GAUCHE_PKGLIBDIR@,$GAUCHE_PKGLIBDIR,;t t
 
3408
s,@GAUCHE_PKGARCHDIR@,$GAUCHE_PKGARCHDIR,;t t
 
3409
s,@CC@,$CC,;t t
 
3410
s,@CFLAGS@,$CFLAGS,;t t
 
3411
s,@LDFLAGS@,$LDFLAGS,;t t
 
3412
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
3413
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
3414
s,@MAKEINFO@,$MAKEINFO,;t t
 
3415
s,@GZIP_PROGRAM@,$GZIP_PROGRAM,;t t
 
3416
s,@SED@,$SED,;t t
 
3417
s,@LDCONFIG@,$LDCONFIG,;t t
 
3418
s,@LD_LIBRARY_PATH_ENVS@,$LD_LIBRARY_PATH_ENVS,;t t
 
3419
s,@TESTLIB_CFLAGS@,$TESTLIB_CFLAGS,;t t
 
3420
s,@TESTLIB_LDFLAGS@,$TESTLIB_LDFLAGS,;t t
 
3421
s,@OBJC_ENABLE_TRUE@,$OBJC_ENABLE_TRUE,;t t
 
3422
s,@STUBGEN_FFI_MODULE@,$STUBGEN_FFI_MODULE,;t t
 
3423
s,@LDCONFIG_CMD@,$LDCONFIG_CMD,;t t
 
3424
s,@SYS_LIBRARY_PATHS@,$SYS_LIBRARY_PATHS,;t t
 
3425
s,@LIBOBJS@,$LIBOBJS,;t t
 
3426
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
3427
CEOF
 
3428
 
 
3429
_ACEOF
 
3430
 
 
3431
  cat >>$CONFIG_STATUS <<\_ACEOF
 
3432
  # Split the substitutions into bite-sized pieces for seds with
 
3433
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
3434
  ac_max_sed_lines=48
 
3435
  ac_sed_frag=1 # Number of current file.
 
3436
  ac_beg=1 # First line for current file.
 
3437
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
3438
  ac_more_lines=:
 
3439
  ac_sed_cmds=
 
3440
  while $ac_more_lines; do
 
3441
    if test $ac_beg -gt 1; then
 
3442
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
3443
    else
 
3444
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
3445
    fi
 
3446
    if test ! -s $tmp/subs.frag; then
 
3447
      ac_more_lines=false
 
3448
    else
 
3449
      # The purpose of the label and of the branching condition is to
 
3450
      # speed up the sed processing (if there are no `@' at all, there
 
3451
      # is no need to browse any of the substitutions).
 
3452
      # These are the two extra sed commands mentioned above.
 
3453
      (echo ':t
 
3454
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
3455
      if test -z "$ac_sed_cmds"; then
 
3456
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
3457
      else
 
3458
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
3459
      fi
 
3460
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
3461
      ac_beg=$ac_end
 
3462
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
3463
    fi
 
3464
  done
 
3465
  if test -z "$ac_sed_cmds"; then
 
3466
    ac_sed_cmds=cat
 
3467
  fi
 
3468
fi # test -n "$CONFIG_FILES"
 
3469
 
 
3470
_ACEOF
 
3471
cat >>$CONFIG_STATUS <<\_ACEOF
 
3472
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
3473
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
3474
  case $ac_file in
 
3475
  - | *:- | *:-:* ) # input from stdin
 
3476
        cat >$tmp/stdin
 
3477
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
3478
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
3479
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
3480
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
3481
  * )   ac_file_in=$ac_file.in ;;
 
3482
  esac
 
3483
 
 
3484
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
3485
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
3486
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
3487
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
3488
         X"$ac_file" : 'X\(//\)$' \| \
 
3489
         X"$ac_file" : 'X\(/\)' \| \
 
3490
         .     : '\(.\)' 2>/dev/null ||
 
3491
echo X"$ac_file" |
 
3492
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
3493
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
3494
          /^X\(\/\/\)$/{ s//\1/; q; }
 
3495
          /^X\(\/\).*/{ s//\1/; q; }
 
3496
          s/.*/./; q'`
 
3497
  { if $as_mkdir_p; then
 
3498
    mkdir -p "$ac_dir"
 
3499
  else
 
3500
    as_dir="$ac_dir"
 
3501
    as_dirs=
 
3502
    while test ! -d "$as_dir"; do
 
3503
      as_dirs="$as_dir $as_dirs"
 
3504
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
3505
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
3506
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
3507
         X"$as_dir" : 'X\(//\)$' \| \
 
3508
         X"$as_dir" : 'X\(/\)' \| \
 
3509
         .     : '\(.\)' 2>/dev/null ||
 
3510
echo X"$as_dir" |
 
3511
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
3512
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
3513
          /^X\(\/\/\)$/{ s//\1/; q; }
 
3514
          /^X\(\/\).*/{ s//\1/; q; }
 
3515
          s/.*/./; q'`
 
3516
    done
 
3517
    test ! -n "$as_dirs" || mkdir $as_dirs
 
3518
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
3519
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
3520
   { (exit 1); exit 1; }; }; }
 
3521
 
 
3522
  ac_builddir=.
 
3523
 
 
3524
if test "$ac_dir" != .; then
 
3525
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
3526
  # A "../" for each directory in $ac_dir_suffix.
 
3527
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
3528
else
 
3529
  ac_dir_suffix= ac_top_builddir=
 
3530
fi
 
3531
 
 
3532
case $srcdir in
 
3533
  .)  # No --srcdir option.  We are building in place.
 
3534
    ac_srcdir=.
 
3535
    if test -z "$ac_top_builddir"; then
 
3536
       ac_top_srcdir=.
 
3537
    else
 
3538
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
3539
    fi ;;
 
3540
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
3541
    ac_srcdir=$srcdir$ac_dir_suffix;
 
3542
    ac_top_srcdir=$srcdir ;;
 
3543
  *) # Relative path.
 
3544
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
3545
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
3546
esac
 
3547
 
 
3548
# Do not use `cd foo && pwd` to compute absolute paths, because
 
3549
# the directories may not exist.
 
3550
case `pwd` in
 
3551
.) ac_abs_builddir="$ac_dir";;
 
3552
*)
 
3553
  case "$ac_dir" in
 
3554
  .) ac_abs_builddir=`pwd`;;
 
3555
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
3556
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
3557
  esac;;
 
3558
esac
 
3559
case $ac_abs_builddir in
 
3560
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
3561
*)
 
3562
  case ${ac_top_builddir}. in
 
3563
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
3564
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
3565
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
3566
  esac;;
 
3567
esac
 
3568
case $ac_abs_builddir in
 
3569
.) ac_abs_srcdir=$ac_srcdir;;
 
3570
*)
 
3571
  case $ac_srcdir in
 
3572
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
3573
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
3574
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
3575
  esac;;
 
3576
esac
 
3577
case $ac_abs_builddir in
 
3578
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
3579
*)
 
3580
  case $ac_top_srcdir in
 
3581
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
3582
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
3583
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
3584
  esac;;
 
3585
esac
 
3586
 
 
3587
 
 
3588
 
 
3589
  if test x"$ac_file" != x-; then
 
3590
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
3591
echo "$as_me: creating $ac_file" >&6;}
 
3592
    rm -f "$ac_file"
 
3593
  fi
 
3594
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
3595
  # use $as_me), people would be surprised to read:
 
3596
  #    /* config.h.  Generated by config.status.  */
 
3597
  if test x"$ac_file" = x-; then
 
3598
    configure_input=
 
3599
  else
 
3600
    configure_input="$ac_file.  "
 
3601
  fi
 
3602
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
3603
                                     sed 's,.*/,,'` by configure."
 
3604
 
 
3605
  # First look for the input files in the build tree, otherwise in the
 
3606
  # src tree.
 
3607
  ac_file_inputs=`IFS=:
 
3608
    for f in $ac_file_in; do
 
3609
      case $f in
 
3610
      -) echo $tmp/stdin ;;
 
3611
      [\\/$]*)
 
3612
         # Absolute (can't be DOS-style, as IFS=:)
 
3613
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
3614
echo "$as_me: error: cannot find input file: $f" >&2;}
 
3615
   { (exit 1); exit 1; }; }
 
3616
         echo "$f";;
 
3617
      *) # Relative
 
3618
         if test -f "$f"; then
 
3619
           # Build tree
 
3620
           echo "$f"
 
3621
         elif test -f "$srcdir/$f"; then
 
3622
           # Source tree
 
3623
           echo "$srcdir/$f"
 
3624
         else
 
3625
           # /dev/null tree
 
3626
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
3627
echo "$as_me: error: cannot find input file: $f" >&2;}
 
3628
   { (exit 1); exit 1; }; }
 
3629
         fi;;
 
3630
      esac
 
3631
    done` || { (exit 1); exit 1; }
 
3632
_ACEOF
 
3633
cat >>$CONFIG_STATUS <<_ACEOF
 
3634
  sed "$ac_vpsub
 
3635
$extrasub
 
3636
_ACEOF
 
3637
cat >>$CONFIG_STATUS <<\_ACEOF
 
3638
:t
 
3639
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
3640
s,@configure_input@,$configure_input,;t t
 
3641
s,@srcdir@,$ac_srcdir,;t t
 
3642
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
3643
s,@top_srcdir@,$ac_top_srcdir,;t t
 
3644
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
3645
s,@builddir@,$ac_builddir,;t t
 
3646
s,@abs_builddir@,$ac_abs_builddir,;t t
 
3647
s,@top_builddir@,$ac_top_builddir,;t t
 
3648
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
3649
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
3650
  rm -f $tmp/stdin
 
3651
  if test x"$ac_file" != x-; then
 
3652
    mv $tmp/out $ac_file
 
3653
  else
 
3654
    cat $tmp/out
 
3655
    rm -f $tmp/out
 
3656
  fi
 
3657
 
 
3658
done
 
3659
_ACEOF
 
3660
 
 
3661
cat >>$CONFIG_STATUS <<\_ACEOF
 
3662
 
 
3663
{ (exit 0); exit 0; }
 
3664
_ACEOF
 
3665
chmod +x $CONFIG_STATUS
 
3666
ac_clean_files=$ac_clean_files_save
 
3667
 
 
3668
 
 
3669
# configure is writing to config.log, and then calls config.status.
 
3670
# config.status does its own redirection, appending to config.log.
 
3671
# Unfortunately, on DOS this fails, as config.log is still kept open
 
3672
# by configure, so config.status won't be able to write to it; its
 
3673
# output is simply discarded.  So we exec the FD to /dev/null,
 
3674
# effectively closing config.log, so it can be properly (re)opened and
 
3675
# appended to by config.status.  When coming back to configure, we
 
3676
# need to make the FD available again.
 
3677
if test "$no_create" != yes; then
 
3678
  ac_cs_success=:
 
3679
  ac_config_status_args=
 
3680
  test "$silent" = yes &&
 
3681
    ac_config_status_args="$ac_config_status_args --quiet"
 
3682
  exec 5>/dev/null
 
3683
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
3684
  exec 5>>config.log
 
3685
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
3686
  # would make configure fail if this is the last instruction.
 
3687
  $ac_cs_success || { (exit 1); exit 1; }
 
3688
fi
 
3689
 
 
3690