~ubuntu-branches/debian/squeeze/rmysql/squeeze

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Dirk Eddelbuettel
  • Date: 2007-08-22 06:07:51 UTC
  • mfrom: (2.1.6 gutsy)
  • Revision ID: james.westby@ubuntu.com-20070822060751-p40asvlcowm7u7au
Tags: 0.6.0-2
* debian/control: Updated (Build-)Depends: on r-cran-dbi (Closes: #439093)
* debian/control: Upgraded (Build-)Depends: to r-base-core (>= 2.5.1)

Show diffs side-by-side

added added

removed removed

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