Switch to unified view

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