Switch to unified view

a/src/configure b/src/configure
1
#! /bin/sh
1
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59 for Recoll 1.6.
3
# Generated by GNU Autoconf 2.61 for Recoll 1.6.
4
#
4
#
5
# Copyright (C) 2003 Free Software Foundation, Inc.
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
6
# This configure script is free software; the Free Software Foundation
7
# This configure script is free software; the Free Software Foundation
7
# gives unlimited permission to copy, distribute and modify it.
8
# gives unlimited permission to copy, distribute and modify it.
8
## --------------------- ##
9
## --------------------- ##
9
## M4sh Initialization.  ##
10
## M4sh Initialization.  ##
10
## --------------------- ##
11
## --------------------- ##
11
12
12
# Be Bourne compatible
13
# Be more Bourne compatible
14
DUALCASE=1; export DUALCASE # for MKS sh
13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14
  emulate sh
16
  emulate sh
15
  NULLCMD=:
17
  NULLCMD=:
16
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17
  # is contrary to our usage.  Disable this feature.
19
  # is contrary to our usage.  Disable this feature.
18
  alias -g '${1+"$@"}'='"$@"'
20
  alias -g '${1+"$@"}'='"$@"'
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21
  setopt NO_GLOB_SUBST
20
  set -o posix
21
fi
22
DUALCASE=1; export DUALCASE # for MKS sh
23
24
# Support unset when possible.
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26
  as_unset=unset
27
else
28
  as_unset=false
29
fi
30
31
32
# Work around bugs in pre-3.0 UWIN ksh.
33
$as_unset ENV MAIL MAILPATH
34
PS1='$ '
35
PS2='> '
36
PS4='+ '
37
38
# NLS nuisances.
39
for as_var in \
40
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42
  LC_TELEPHONE LC_TIME
43
do
44
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
    eval $as_var=C; export $as_var
46
  else
22
else
47
    $as_unset $as_var
23
  case `(set -o) 2>/dev/null` in
24
  *posix*) set -o posix ;;
25
esac
26
48
  fi
27
fi
49
done
50
28
51
# Required to use basename.
52
if expr a : '\(a\)' >/dev/null 2>&1; then
53
  as_expr=expr
54
else
55
  as_expr=false
56
fi
57
29
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59
  as_basename=basename
60
else
61
  as_basename=false
62
fi
63
30
64
31
65
# Name of the executable.
32
# PATH needs CR
66
as_me=`$as_basename "$0" ||
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
   X"$0" : 'X\(//\)$' \| \
69
   X"$0" : 'X\(/\)$' \| \
70
   .     : '\(.\)' 2>/dev/null ||
71
echo X/"$0" |
72
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73
        /^X\/\(\/\/\)$/{ s//\1/; q; }
74
        /^X\/\(\/\).*/{ s//\1/; q; }
75
        s/.*/./; q'`
76
77
78
# PATH needs CR, and LINENO needs CR and PATH.
79
# Avoid depending upon Character Ranges.
33
# Avoid depending upon Character Ranges.
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83
as_cr_digits='0123456789'
37
as_cr_digits='0123456789'
...
...
94
    PATH_SEPARATOR=:
48
    PATH_SEPARATOR=:
95
  fi
49
  fi
96
  rm -f conf$$.sh
50
  rm -f conf$$.sh
97
fi
51
fi
98
52
53
# Support unset when possible.
54
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55
  as_unset=unset
56
else
57
  as_unset=false
58
fi
99
59
100
  as_lineno_1=$LINENO
60
101
  as_lineno_2=$LINENO
61
# IFS
102
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
62
# We need space, tab and new line, in precisely that order.  Quoting is
103
  test "x$as_lineno_1" != "x$as_lineno_2" &&
63
# there to prevent editors from complaining about space-tab.
104
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
64
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65
# splitting by setting IFS to empty value.)
66
as_nl='
67
'
68
IFS=" ""  $as_nl"
69
105
  # Find who we are.  Look in the path if we contain no path at all
70
# Find who we are.  Look in the path if we contain no directory separator.
106
  # relative or not.
107
  case $0 in
71
case $0 in
108
    *[\\/]* ) as_myself=$0 ;;
72
  *[\\/]* ) as_myself=$0 ;;
109
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110
for as_dir in $PATH
74
for as_dir in $PATH
111
do
75
do
112
  IFS=$as_save_IFS
76
  IFS=$as_save_IFS
113
  test -z "$as_dir" && as_dir=.
77
  test -z "$as_dir" && as_dir=.
114
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
78
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115
done
79
done
80
IFS=$as_save_IFS
116
81
117
       ;;
82
     ;;
118
  esac
83
esac
119
  # We did not find ourselves, most probably we were run as `sh COMMAND'
84
# We did not find ourselves, most probably we were run as `sh COMMAND'
120
  # in which case we are not to be found in the path.
85
# in which case we are not to be found in the path.
121
  if test "x$as_myself" = x; then
86
if test "x$as_myself" = x; then
122
    as_myself=$0
87
  as_myself=$0
88
fi
89
if test ! -f "$as_myself"; then
90
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91
  { (exit 1); exit 1; }
92
fi
93
94
# Work around bugs in pre-3.0 UWIN ksh.
95
for as_var in ENV MAIL MAILPATH
96
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97
done
98
PS1='$ '
99
PS2='> '
100
PS4='+ '
101
102
# NLS nuisances.
103
for as_var in \
104
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106
  LC_TELEPHONE LC_TIME
107
do
108
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109
    eval $as_var=C; export $as_var
110
  else
111
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123
  fi
112
  fi
124
  if test ! -f "$as_myself"; then
113
done
125
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
114
126
   { (exit 1); exit 1; }; }
115
# Required to use basename.
116
if expr a : '\(a\)' >/dev/null 2>&1 &&
117
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
118
  as_expr=expr
119
else
120
  as_expr=false
127
  fi
121
fi
128
  case $CONFIG_SHELL in
122
129
  '')
123
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124
  as_basename=basename
125
else
126
  as_basename=false
127
fi
128
129
130
# Name of the executable.
131
as_me=`$as_basename -- "$0" ||
132
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133
   X"$0" : 'X\(//\)$' \| \
134
   X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135
echo X/"$0" |
136
    sed '/^.*\/\([^/][^/]*\)\/*$/{
137
      s//\1/
138
      q
139
    }
140
    /^X\/\(\/\/\)$/{
141
      s//\1/
142
      q
143
    }
144
    /^X\/\(\/\).*/{
145
      s//\1/
146
      q
147
    }
148
    s/.*/./; q'`
149
150
# CDPATH.
151
$as_unset CDPATH
152
153
154
if test "x$CONFIG_SHELL" = x; then
155
  if (eval ":") 2>/dev/null; then
156
  as_have_required=yes
157
else
158
  as_have_required=no
159
fi
160
161
  if test $as_have_required = yes &&   (eval ":
162
(as_func_return () {
163
  (exit \$1)
164
}
165
as_func_success () {
166
  as_func_return 0
167
}
168
as_func_failure () {
169
  as_func_return 1
170
}
171
as_func_ret_success () {
172
  return 0
173
}
174
as_func_ret_failure () {
175
  return 1
176
}
177
178
exitcode=0
179
if as_func_success; then
180
  :
181
else
182
  exitcode=1
183
  echo as_func_success failed.
184
fi
185
186
if as_func_failure; then
187
  exitcode=1
188
  echo as_func_failure succeeded.
189
fi
190
191
if as_func_ret_success; then
192
  :
193
else
194
  exitcode=1
195
  echo as_func_ret_success failed.
196
fi
197
198
if as_func_ret_failure; then
199
  exitcode=1
200
  echo as_func_ret_failure succeeded.
201
fi
202
203
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204
  :
205
else
206
  exitcode=1
207
  echo positional parameters were not saved.
208
fi
209
210
test \$exitcode = 0) || { (exit 1); exit 1; }
211
212
(
213
  as_lineno_1=\$LINENO
214
  as_lineno_2=\$LINENO
215
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217
") 2> /dev/null; then
218
  :
219
else
220
  as_candidate_shells=
130
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132
do
223
do
133
  IFS=$as_save_IFS
224
  IFS=$as_save_IFS
134
  test -z "$as_dir" && as_dir=.
225
  test -z "$as_dir" && as_dir=.
135
  for as_base in sh bash ksh sh5; do
136
   case $as_dir in
226
  case $as_dir in
137
     /*)
227
     /*)
138
     if ("$as_dir/$as_base" -c '
228
     for as_base in sh bash ksh sh5; do
229
       as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230
     done;;
231
       esac
232
done
233
IFS=$as_save_IFS
234
235
236
      for as_shell in $as_candidate_shells $SHELL; do
237
   # Try only shells that exist, to save several forks.
238
   if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239
      { ("$as_shell") 2> /dev/null <<\_ASEOF
240
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241
  emulate sh
242
  NULLCMD=:
243
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244
  # is contrary to our usage.  Disable this feature.
245
  alias -g '${1+"$@"}'='"$@"'
246
  setopt NO_GLOB_SUBST
247
else
248
  case `(set -o) 2>/dev/null` in
249
  *posix*) set -o posix ;;
250
esac
251
252
fi
253
254
255
:
256
_ASEOF
257
}; then
258
  CONFIG_SHELL=$as_shell
259
         as_have_required=yes
260
         if { "$as_shell" 2> /dev/null <<\_ASEOF
261
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262
  emulate sh
263
  NULLCMD=:
264
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265
  # is contrary to our usage.  Disable this feature.
266
  alias -g '${1+"$@"}'='"$@"'
267
  setopt NO_GLOB_SUBST
268
else
269
  case `(set -o) 2>/dev/null` in
270
  *posix*) set -o posix ;;
271
esac
272
273
fi
274
275
276
:
277
(as_func_return () {
278
  (exit $1)
279
}
280
as_func_success () {
281
  as_func_return 0
282
}
283
as_func_failure () {
284
  as_func_return 1
285
}
286
as_func_ret_success () {
287
  return 0
288
}
289
as_func_ret_failure () {
290
  return 1
291
}
292
293
exitcode=0
294
if as_func_success; then
295
  :
296
else
297
  exitcode=1
298
  echo as_func_success failed.
299
fi
300
301
if as_func_failure; then
302
  exitcode=1
303
  echo as_func_failure succeeded.
304
fi
305
306
if as_func_ret_success; then
307
  :
308
else
309
  exitcode=1
310
  echo as_func_ret_success failed.
311
fi
312
313
if as_func_ret_failure; then
314
  exitcode=1
315
  echo as_func_ret_failure succeeded.
316
fi
317
318
if ( set x; as_func_ret_success y && test x = "$1" ); then
319
  :
320
else
321
  exitcode=1
322
  echo positional parameters were not saved.
323
fi
324
325
test $exitcode = 0) || { (exit 1); exit 1; }
326
327
(
139
  as_lineno_1=$LINENO
328
  as_lineno_1=$LINENO
140
  as_lineno_2=$LINENO
329
  as_lineno_2=$LINENO
141
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142
  test "x$as_lineno_1" != "x$as_lineno_2" &&
330
  test "x$as_lineno_1" != "x$as_lineno_2" &&
143
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
331
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
144
       $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
332
145
       $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
333
_ASEOF
146
       CONFIG_SHELL=$as_dir/$as_base
334
}; then
147
       export CONFIG_SHELL
335
  break
148
       exec "$CONFIG_SHELL" "$0" ${1+"$@"}
336
fi
149
     fi;;
337
150
   esac
338
fi
339
340
      done
341
342
      if test "x$CONFIG_SHELL" != x; then
343
  for as_var in BASH_ENV ENV
344
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
151
       done
345
        done
152
done
346
        export CONFIG_SHELL
153
;;
347
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
154
  esac
348
fi
349
350
351
    if test $as_have_required = no; then
352
  echo This script requires a shell more modern than all the
353
      echo shells that I found on your system.  Please install a
354
      echo modern shell, or manually run the script under such a
355
      echo shell if you do have one.
356
      { (exit 1); exit 1; }
357
fi
358
359
360
fi
361
362
fi
363
364
365
366
(eval "as_func_return () {
367
  (exit \$1)
368
}
369
as_func_success () {
370
  as_func_return 0
371
}
372
as_func_failure () {
373
  as_func_return 1
374
}
375
as_func_ret_success () {
376
  return 0
377
}
378
as_func_ret_failure () {
379
  return 1
380
}
381
382
exitcode=0
383
if as_func_success; then
384
  :
385
else
386
  exitcode=1
387
  echo as_func_success failed.
388
fi
389
390
if as_func_failure; then
391
  exitcode=1
392
  echo as_func_failure succeeded.
393
fi
394
395
if as_func_ret_success; then
396
  :
397
else
398
  exitcode=1
399
  echo as_func_ret_success failed.
400
fi
401
402
if as_func_ret_failure; then
403
  exitcode=1
404
  echo as_func_ret_failure succeeded.
405
fi
406
407
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408
  :
409
else
410
  exitcode=1
411
  echo positional parameters were not saved.
412
fi
413
414
test \$exitcode = 0") || {
415
  echo No shell found that supports shell functions.
416
  echo Please tell autoconf@gnu.org about your system,
417
  echo including any error possibly output before this
418
  echo message
419
}
420
421
422
423
  as_lineno_1=$LINENO
424
  as_lineno_2=$LINENO
425
  test "x$as_lineno_1" != "x$as_lineno_2" &&
426
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
155
427
156
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
428
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157
  # uniformly replaced by the line number.  The first 'sed' inserts a
429
  # uniformly replaced by the line number.  The first 'sed' inserts a
158
  # line-number line before each line; the second 'sed' does the real
430
  # line-number line after each line using $LINENO; the second 'sed'
159
  # work.  The second script uses 'N' to pair each line-number line
431
  # does the real work.  The second script uses 'N' to pair each
160
  # with the numbered line, and appends trailing '-' during
432
  # line-number line with the line containing $LINENO, and appends
161
  # substitution so that $LINENO is not a special case at line end.
433
  # trailing '-' during substitution so that $LINENO is not a special
434
  # case at line end.
162
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
435
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
436
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
437
  # E. McMahon (1931-1989) for sed's syntax.  :-)
438
  sed -n '
439
    p
440
    /[$]LINENO/=
164
  sed '=' <$as_myself |
441
  ' <$as_myself |
165
    sed '
442
    sed '
443
      s/[$]LINENO.*/&-/
444
      t lineno
445
      b
446
      :lineno
166
      N
447
      N
167
      s,$,-,
168
      : loop
448
      :loop
169
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
449
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
170
      t loop
450
      t loop
171
      s,-$,,
451
      s/-\n.*//
172
      s,^['$as_cr_digits']*\n,,
173
    ' >$as_me.lineno &&
452
    ' >$as_me.lineno &&
174
  chmod +x $as_me.lineno ||
453
  chmod +x "$as_me.lineno" ||
175
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
454
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176
   { (exit 1); exit 1; }; }
455
   { (exit 1); exit 1; }; }
177
456
178
  # Don't try to exec as it changes $[0], causing all sort of problems
457
  # Don't try to exec as it changes $[0], causing all sort of problems
179
  # (the dirname of $[0] is not the place where we might find the
458
  # (the dirname of $[0] is not the place where we might find the
180
  # original and so on.  Autoconf is especially sensible to this).
459
  # original and so on.  Autoconf is especially sensitive to this).
181
  . ./$as_me.lineno
460
  . "./$as_me.lineno"
182
  # Exit status is that of the last command.
461
  # Exit status is that of the last command.
183
  exit
462
  exit
184
}
463
}
185
464
186
465
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
466
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
188
  *c*,-n*) ECHO_N= ECHO_C='
467
  as_dirname=dirname
468
else
469
  as_dirname=false
470
fi
471
472
ECHO_C= ECHO_N= ECHO_T=
473
case `echo -n x` in
474
-n*)
475
  case `echo 'x\c'` in
476
  *c*) ECHO_T='   ';; # ECHO_T is single tab character.
477
  *)   ECHO_C='\c';;
478
  esac;;
479
*)
189
' ECHO_T='  ' ;;
480
  ECHO_N='-n';;
190
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192
esac
481
esac
193
482
194
if expr a : '\(a\)' >/dev/null 2>&1; then
483
if expr a : '\(a\)' >/dev/null 2>&1 &&
484
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
195
  as_expr=expr
485
  as_expr=expr
196
else
486
else
197
  as_expr=false
487
  as_expr=false
198
fi
488
fi
199
489
200
rm -f conf$$ conf$$.exe conf$$.file
490
rm -f conf$$ conf$$.exe conf$$.file
491
if test -d conf$$.dir; then
492
  rm -f conf$$.dir/conf$$.file
493
else
494
  rm -f conf$$.dir
495
  mkdir conf$$.dir
496
fi
201
echo >conf$$.file
497
echo >conf$$.file
202
if ln -s conf$$.file conf$$ 2>/dev/null; then
498
if ln -s conf$$.file conf$$ 2>/dev/null; then
203
  # We could just check for DJGPP; but this test a) works b) is more generic
499
  as_ln_s='ln -s'
204
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
500
  # ... but there are two gotchas:
205
  if test -f conf$$.exe; then
501
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
206
    # Don't use ln at all; we don't have any links
502
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503
  # In both cases, we have to default to `cp -p'.
504
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
207
    as_ln_s='cp -p'
505
    as_ln_s='cp -p'
208
  else
209
    as_ln_s='ln -s'
210
  fi
211
elif ln conf$$.file conf$$ 2>/dev/null; then
506
elif ln conf$$.file conf$$ 2>/dev/null; then
212
  as_ln_s=ln
507
  as_ln_s=ln
213
else
508
else
214
  as_ln_s='cp -p'
509
  as_ln_s='cp -p'
215
fi
510
fi
216
rm -f conf$$ conf$$.exe conf$$.file
511
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512
rmdir conf$$.dir 2>/dev/null
217
513
218
if mkdir -p . 2>/dev/null; then
514
if mkdir -p . 2>/dev/null; then
219
  as_mkdir_p=:
515
  as_mkdir_p=:
220
else
516
else
221
  test -d ./-p && rmdir ./-p
517
  test -d ./-p && rmdir ./-p
222
  as_mkdir_p=false
518
  as_mkdir_p=false
223
fi
519
fi
224
520
521
if test -x / >/dev/null 2>&1; then
522
  as_test_x='test -x'
523
else
524
  if ls -dL / >/dev/null 2>&1; then
525
    as_ls_L_option=L
526
  else
527
    as_ls_L_option=
528
  fi
529
  as_test_x='
530
    eval sh -c '\''
531
      if test -d "$1"; then
532
        test -d "$1/.";
533
      else
534
  case $1 in
535
        -*)set "./$1";;
536
  esac;
537
  case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538
  ???[sx]*):;;*)false;;esac;fi
539
    '\'' sh
540
  '
541
fi
225
as_executable_p="test -f"
542
as_executable_p=$as_test_x
226
543
227
# Sed expression to map a string onto a valid CPP name.
544
# Sed expression to map a string onto a valid CPP name.
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
545
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
546
230
# Sed expression to map a string onto a valid variable name.
547
# Sed expression to map a string onto a valid variable name.
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
548
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
549
233
550
234
# IFS
235
# We need space, tab and new line, in precisely that order.
236
as_nl='
237
'
238
IFS="     $as_nl"
239
551
240
# CDPATH.
552
exec 7<&0 </dev/null 6>&1
241
$as_unset CDPATH
242
243
553
244
# Name of the host.
554
# Name of the host.
245
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
555
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246
# so uname gets run too.
556
# so uname gets run too.
247
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
558
249
exec 6>&1
250
251
#
559
#
252
# Initializations.
560
# Initializations.
253
#
561
#
254
ac_default_prefix=/usr/local
562
ac_default_prefix=/usr/local
563
ac_clean_files=
255
ac_config_libobj_dir=.
564
ac_config_libobj_dir=.
565
LIBOBJS=
256
cross_compiling=no
566
cross_compiling=no
257
subdirs=
567
subdirs=
258
MFLAGS=
568
MFLAGS=
259
MAKEFLAGS=
569
MAKEFLAGS=
260
SHELL=${CONFIG_SHELL-/bin/sh}
570
SHELL=${CONFIG_SHELL-/bin/sh}
261
262
# Maximum number of lines to put in a shell here document.
263
# This variable seems obsolete.  It should probably be removed, and
264
# only ac_max_sed_lines should be used.
265
: ${ac_max_here_lines=38}
266
571
267
# Identity of this package.
572
# Identity of this package.
268
PACKAGE_NAME='Recoll'
573
PACKAGE_NAME='Recoll'
269
PACKAGE_TARNAME='recoll'
574
PACKAGE_TARNAME='recoll'
270
PACKAGE_VERSION='1.6'
575
PACKAGE_VERSION='1.6'
271
PACKAGE_STRING='Recoll 1.6'
576
PACKAGE_STRING='Recoll 1.6'
272
PACKAGE_BUGREPORT=''
577
PACKAGE_BUGREPORT=''
273
578
274
ac_unique_file="index/recollindex.cpp"
579
ac_unique_file="index/recollindex.cpp"
275
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS aspellProg CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT XAPIAN_CONFIG QMAKE UIC3 CXXCPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS INCICONV LIBICONV LIBXAPIAN LIBFAM QTGUI QTRECOLL_DATADIR XAPIANCXXFLAGS LIBOBJS LTLIBOBJS'
580
ac_subst_vars='SHELL
581
PATH_SEPARATOR
582
PACKAGE_NAME
583
PACKAGE_TARNAME
584
PACKAGE_VERSION
585
PACKAGE_STRING
586
PACKAGE_BUGREPORT
587
exec_prefix
588
prefix
589
program_transform_name
590
bindir
591
sbindir
592
libexecdir
593
datarootdir
594
datadir
595
sysconfdir
596
sharedstatedir
597
localstatedir
598
includedir
599
oldincludedir
600
docdir
601
infodir
602
htmldir
603
dvidir
604
pdfdir
605
psdir
606
libdir
607
localedir
608
mandir
609
DEFS
610
ECHO_C
611
ECHO_N
612
ECHO_T
613
LIBS
614
build_alias
615
host_alias
616
target_alias
617
aspellProg
618
CC
619
CFLAGS
620
LDFLAGS
621
CPPFLAGS
622
ac_ct_CC
623
EXEEXT
624
OBJEXT
625
CXX
626
CXXFLAGS
627
ac_ct_CXX
628
XAPIAN_CONFIG
629
QMAKE
630
UIC3
631
XMKMF
632
CXXCPP
633
X_CFLAGS
634
X_PRE_LIBS
635
X_LIBS
636
X_EXTRA_LIBS
637
INCICONV
638
LIBICONV
639
LIBXAPIAN
640
LIBFAM
641
QTGUI
642
QTRECOLL_DATADIR
643
XAPIANCXXFLAGS
644
HAVE_MKDTEMP
645
LIBOBJS
646
LTLIBOBJS'
276
ac_subst_files=''
647
ac_subst_files=''
648
      ac_precious_vars='build_alias
649
host_alias
650
target_alias
651
CC
652
CFLAGS
653
LDFLAGS
654
LIBS
655
CPPFLAGS
656
CXX
657
CXXFLAGS
658
CCC
659
XMKMF
660
CXXCPP'
661
277
662
278
# Initialize some variables set by options.
663
# Initialize some variables set by options.
279
ac_init_help=
664
ac_init_help=
280
ac_init_version=false
665
ac_init_version=false
281
# The variables have the same names as the options, with
666
# The variables have the same names as the options, with
...
...
298
# Installation directory options.
683
# Installation directory options.
299
# These are left unexpanded so users can "make install exec_prefix=/foo"
684
# These are left unexpanded so users can "make install exec_prefix=/foo"
300
# and all the variables that are supposed to be based on exec_prefix
685
# and all the variables that are supposed to be based on exec_prefix
301
# by default will actually change.
686
# by default will actually change.
302
# Use braces instead of parens because sh, perl, etc. also accept them.
687
# Use braces instead of parens because sh, perl, etc. also accept them.
688
# (The list follows the same order as the GNU Coding Standards.)
303
bindir='${exec_prefix}/bin'
689
bindir='${exec_prefix}/bin'
304
sbindir='${exec_prefix}/sbin'
690
sbindir='${exec_prefix}/sbin'
305
libexecdir='${exec_prefix}/libexec'
691
libexecdir='${exec_prefix}/libexec'
306
datadir='${prefix}/share'
692
datarootdir='${prefix}/share'
693
datadir='${datarootdir}'
307
sysconfdir='${prefix}/etc'
694
sysconfdir='${prefix}/etc'
308
sharedstatedir='${prefix}/com'
695
sharedstatedir='${prefix}/com'
309
localstatedir='${prefix}/var'
696
localstatedir='${prefix}/var'
310
libdir='${exec_prefix}/lib'
311
includedir='${prefix}/include'
697
includedir='${prefix}/include'
312
oldincludedir='/usr/include'
698
oldincludedir='/usr/include'
699
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
313
infodir='${prefix}/info'
700
infodir='${datarootdir}/info'
314
mandir='${prefix}/man'
701
htmldir='${docdir}'
702
dvidir='${docdir}'
703
pdfdir='${docdir}'
704
psdir='${docdir}'
705
libdir='${exec_prefix}/lib'
706
localedir='${datarootdir}/locale'
707
mandir='${datarootdir}/man'
315
708
316
ac_prev=
709
ac_prev=
710
ac_dashdash=
317
for ac_option
711
for ac_option
318
do
712
do
319
  # If the previous option needs an argument, assign it.
713
  # If the previous option needs an argument, assign it.
320
  if test -n "$ac_prev"; then
714
  if test -n "$ac_prev"; then
321
    eval "$ac_prev=\$ac_option"
715
    eval $ac_prev=\$ac_option
322
    ac_prev=
716
    ac_prev=
323
    continue
717
    continue
324
  fi
718
  fi
325
719
720
  case $ac_option in
326
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
721
  *=*)    ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
722
  *)  ac_optarg=yes ;;
723
  esac
327
724
328
  # Accept the important Cygnus configure options, so we can diagnose typos.
725
  # Accept the important Cygnus configure options, so we can diagnose typos.
329
726
330
  case $ac_option in
727
  case $ac_dashdash$ac_option in
728
  --)
729
    ac_dashdash=yes ;;
331
730
332
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
731
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
333
    ac_prev=bindir ;;
732
    ac_prev=bindir ;;
334
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
733
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
335
    bindir=$ac_optarg ;;
734
    bindir=$ac_optarg ;;
...
...
347
    cache_file=$ac_optarg ;;
746
    cache_file=$ac_optarg ;;
348
747
349
  --config-cache | -C)
748
  --config-cache | -C)
350
    cache_file=config.cache ;;
749
    cache_file=config.cache ;;
351
750
352
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
751
  -datadir | --datadir | --datadi | --datad)
353
    ac_prev=datadir ;;
752
    ac_prev=datadir ;;
354
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
753
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
355
  | --da=*)
356
    datadir=$ac_optarg ;;
754
    datadir=$ac_optarg ;;
755
756
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
757
  | --dataroo | --dataro | --datar)
758
    ac_prev=datarootdir ;;
759
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
760
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
761
    datarootdir=$ac_optarg ;;
357
762
358
  -disable-* | --disable-*)
763
  -disable-* | --disable-*)
359
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
764
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
360
    # Reject names that are not valid shell variable names.
765
    # Reject names that are not valid shell variable names.
361
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
362
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
767
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363
   { (exit 1); exit 1; }; }
768
   { (exit 1); exit 1; }; }
364
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
769
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
365
    eval "enable_$ac_feature=no" ;;
770
    eval enable_$ac_feature=no ;;
771
772
  -docdir | --docdir | --docdi | --doc | --do)
773
    ac_prev=docdir ;;
774
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
775
    docdir=$ac_optarg ;;
776
777
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
778
    ac_prev=dvidir ;;
779
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
780
    dvidir=$ac_optarg ;;
366
781
367
  -enable-* | --enable-*)
782
  -enable-* | --enable-*)
368
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
783
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
369
    # Reject names that are not valid shell variable names.
784
    # Reject names that are not valid shell variable names.
370
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
785
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
371
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
786
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372
   { (exit 1); exit 1; }; }
787
   { (exit 1); exit 1; }; }
373
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
788
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
374
    case $ac_option in
375
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
376
      *) ac_optarg=yes ;;
377
    esac
378
    eval "enable_$ac_feature='$ac_optarg'" ;;
789
    eval enable_$ac_feature=\$ac_optarg ;;
379
790
380
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
791
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
792
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382
  | --exec | --exe | --ex)
793
  | --exec | --exe | --ex)
383
    ac_prev=exec_prefix ;;
794
    ac_prev=exec_prefix ;;
...
...
400
  -host | --host | --hos | --ho)
811
  -host | --host | --hos | --ho)
401
    ac_prev=host_alias ;;
812
    ac_prev=host_alias ;;
402
  -host=* | --host=* | --hos=* | --ho=*)
813
  -host=* | --host=* | --hos=* | --ho=*)
403
    host_alias=$ac_optarg ;;
814
    host_alias=$ac_optarg ;;
404
815
816
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
817
    ac_prev=htmldir ;;
818
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
819
  | --ht=*)
820
    htmldir=$ac_optarg ;;
821
405
  -includedir | --includedir | --includedi | --included | --include \
822
  -includedir | --includedir | --includedi | --included | --include \
406
  | --includ | --inclu | --incl | --inc)
823
  | --includ | --inclu | --incl | --inc)
407
    ac_prev=includedir ;;
824
    ac_prev=includedir ;;
408
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
825
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409
  | --includ=* | --inclu=* | --incl=* | --inc=*)
826
  | --includ=* | --inclu=* | --incl=* | --inc=*)
...
...
424
    ac_prev=libexecdir ;;
841
    ac_prev=libexecdir ;;
425
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
842
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426
  | --libexe=* | --libex=* | --libe=*)
843
  | --libexe=* | --libex=* | --libe=*)
427
    libexecdir=$ac_optarg ;;
844
    libexecdir=$ac_optarg ;;
428
845
846
  -localedir | --localedir | --localedi | --localed | --locale)
847
    ac_prev=localedir ;;
848
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
849
    localedir=$ac_optarg ;;
850
429
  -localstatedir | --localstatedir | --localstatedi | --localstated \
851
  -localstatedir | --localstatedir | --localstatedi | --localstated \
430
  | --localstate | --localstat | --localsta | --localst \
852
  | --localstate | --localstat | --localsta | --localst | --locals)
431
  | --locals | --local | --loca | --loc | --lo)
432
    ac_prev=localstatedir ;;
853
    ac_prev=localstatedir ;;
433
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
854
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
855
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
435
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
436
    localstatedir=$ac_optarg ;;
856
    localstatedir=$ac_optarg ;;
437
857
438
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
858
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439
    ac_prev=mandir ;;
859
    ac_prev=mandir ;;
440
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
860
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
...
...
495
  | --program-transfo=* | --program-transf=* \
915
  | --program-transfo=* | --program-transf=* \
496
  | --program-trans=* | --program-tran=* \
916
  | --program-trans=* | --program-tran=* \
497
  | --progr-tra=* | --program-tr=* | --program-t=*)
917
  | --progr-tra=* | --program-tr=* | --program-t=*)
498
    program_transform_name=$ac_optarg ;;
918
    program_transform_name=$ac_optarg ;;
499
919
920
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
921
    ac_prev=pdfdir ;;
922
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
923
    pdfdir=$ac_optarg ;;
924
925
  -psdir | --psdir | --psdi | --psd | --ps)
926
    ac_prev=psdir ;;
927
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
928
    psdir=$ac_optarg ;;
929
500
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
930
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501
  | -silent | --silent | --silen | --sile | --sil)
931
  | -silent | --silent | --silen | --sile | --sil)
502
    silent=yes ;;
932
    silent=yes ;;
503
933
504
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
934
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
...
...
547
    ac_init_version=: ;;
977
    ac_init_version=: ;;
548
978
549
  -with-* | --with-*)
979
  -with-* | --with-*)
550
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
980
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
551
    # Reject names that are not valid shell variable names.
981
    # Reject names that are not valid shell variable names.
552
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
982
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
553
      { echo "$as_me: error: invalid package name: $ac_package" >&2
983
      { echo "$as_me: error: invalid package name: $ac_package" >&2
554
   { (exit 1); exit 1; }; }
984
   { (exit 1); exit 1; }; }
555
    ac_package=`echo $ac_package| sed 's/-/_/g'`
985
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
556
    case $ac_option in
557
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
558
      *) ac_optarg=yes ;;
559
    esac
560
    eval "with_$ac_package='$ac_optarg'" ;;
986
    eval with_$ac_package=\$ac_optarg ;;
561
987
562
  -without-* | --without-*)
988
  -without-* | --without-*)
563
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
989
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
564
    # Reject names that are not valid shell variable names.
990
    # Reject names that are not valid shell variable names.
565
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
991
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
566
      { echo "$as_me: error: invalid package name: $ac_package" >&2
992
      { echo "$as_me: error: invalid package name: $ac_package" >&2
567
   { (exit 1); exit 1; }; }
993
   { (exit 1); exit 1; }; }
568
    ac_package=`echo $ac_package | sed 's/-/_/g'`
994
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
569
    eval "with_$ac_package=no" ;;
995
    eval with_$ac_package=no ;;
570
996
571
  --x)
997
  --x)
572
    # Obsolete; use --with-x.
998
    # Obsolete; use --with-x.
573
    with_x=yes ;;
999
    with_x=yes ;;
574
1000
...
...
595
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1021
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596
    # Reject names that are not valid shell variable names.
1022
    # Reject names that are not valid shell variable names.
597
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1023
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1024
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599
   { (exit 1); exit 1; }; }
1025
   { (exit 1); exit 1; }; }
600
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601
    eval "$ac_envvar='$ac_optarg'"
1026
    eval $ac_envvar=\$ac_optarg
602
    export $ac_envvar ;;
1027
    export $ac_envvar ;;
603
1028
604
  *)
1029
  *)
605
    # FIXME: should be removed in autoconf 3.0.
1030
    # FIXME: should be removed in autoconf 3.0.
606
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1031
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
...
...
616
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1041
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617
  { echo "$as_me: error: missing argument to $ac_option" >&2
1042
  { echo "$as_me: error: missing argument to $ac_option" >&2
618
   { (exit 1); exit 1; }; }
1043
   { (exit 1); exit 1; }; }
619
fi
1044
fi
620
1045
621
# Be sure to have absolute paths.
1046
# Be sure to have absolute directory names.
622
for ac_var in exec_prefix prefix
1047
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1048
      datadir sysconfdir sharedstatedir localstatedir includedir \
1049
      oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1050
      libdir localedir mandir
623
do
1051
do
624
  eval ac_val=$`echo $ac_var`
1052
  eval ac_val=\$$ac_var
625
  case $ac_val in
1053
  case $ac_val in
626
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
1054
    [\\/$]* | ?:[\\/]* )  continue;;
627
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1055
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
628
   { (exit 1); exit 1; }; };;
629
  esac
1056
  esac
630
done
631
632
# Be sure to have absolute paths.
633
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634
        localstatedir libdir includedir oldincludedir infodir mandir
635
do
636
  eval ac_val=$`echo $ac_var`
637
  case $ac_val in
638
    [\\/$]* | ?:[\\/]* ) ;;
639
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1057
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640
   { (exit 1); exit 1; }; };;
1058
   { (exit 1); exit 1; }; }
641
  esac
642
done
1059
done
643
1060
644
# There might be people who depend on the old broken behavior: `$host'
1061
# There might be people who depend on the old broken behavior: `$host'
645
# used to hold the argument of --host etc.
1062
# used to hold the argument of --host etc.
646
# FIXME: To remove some day.
1063
# FIXME: To remove some day.
...
...
663
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1080
test -n "$host_alias" && ac_tool_prefix=$host_alias-
664
1081
665
test "$silent" = yes && exec 6>/dev/null
1082
test "$silent" = yes && exec 6>/dev/null
666
1083
667
1084
1085
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1086
ac_ls_di=`ls -di .` &&
1087
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1088
  { echo "$as_me: error: Working directory cannot be determined" >&2
1089
   { (exit 1); exit 1; }; }
1090
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1091
  { echo "$as_me: error: pwd does not report name of working directory" >&2
1092
   { (exit 1); exit 1; }; }
1093
1094
668
# Find the source files, if location was not specified.
1095
# Find the source files, if location was not specified.
669
if test -z "$srcdir"; then
1096
if test -z "$srcdir"; then
670
  ac_srcdir_defaulted=yes
1097
  ac_srcdir_defaulted=yes
671
  # Try the directory containing this script, then its parent.
1098
  # Try the directory containing this script, then the parent directory.
672
  ac_confdir=`(dirname "$0") 2>/dev/null ||
1099
  ac_confdir=`$as_dirname -- "$0" ||
673
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1100
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674
     X"$0" : 'X\(//\)[^/]' \| \
1101
     X"$0" : 'X\(//\)[^/]' \| \
675
     X"$0" : 'X\(//\)$' \| \
1102
     X"$0" : 'X\(//\)$' \| \
676
   X"$0" : 'X\(/\)' \| \
677
     .     : '\(.\)' 2>/dev/null ||
1103
     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
678
echo X"$0" |
1104
echo X"$0" |
679
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1105
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1106
      s//\1/
1107
      q
1108
    }
680
       /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1109
      /^X\(\/\/\)[^/].*/{
681
        /^X\(\/\/\)$/{ s//\1/; q; }
1110
      s//\1/
682
        /^X\(\/\).*/{ s//\1/; q; }
1111
      q
1112
    }
1113
    /^X\(\/\/\)$/{
1114
      s//\1/
1115
      q
1116
    }
1117
    /^X\(\/\).*/{
1118
      s//\1/
1119
      q
1120
    }
683
       s/.*/./; q'`
1121
      s/.*/./; q'`
684
  srcdir=$ac_confdir
1122
  srcdir=$ac_confdir
685
  if test ! -r $srcdir/$ac_unique_file; then
1123
  if test ! -r "$srcdir/$ac_unique_file"; then
686
    srcdir=..
1124
    srcdir=..
687
  fi
1125
  fi
688
else
1126
else
689
  ac_srcdir_defaulted=no
1127
  ac_srcdir_defaulted=no
690
fi
1128
fi
691
if test ! -r $srcdir/$ac_unique_file; then
1129
if test ! -r "$srcdir/$ac_unique_file"; then
692
  if test "$ac_srcdir_defaulted" = yes; then
1130
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
693
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
1131
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
694
   { (exit 1); exit 1; }; }
1132
   { (exit 1); exit 1; }; }
695
  else
1133
fi
696
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1134
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1135
ac_abs_confdir=`(
1136
  cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
697
   { (exit 1); exit 1; }; }
1137
   { (exit 1); exit 1; }; }
1138
  pwd)`
1139
# When building in place, set srcdir=.
1140
if test "$ac_abs_confdir" = "$ac_pwd"; then
1141
  srcdir=.
698
  fi
1142
fi
699
fi
1143
# Remove unnecessary trailing slashes from srcdir.
700
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
1144
# Double slashes in file names in object file debugging info
701
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
1145
# mess up M-x gdb in Emacs.
702
   { (exit 1); exit 1; }; }
1146
case $srcdir in
703
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
1147
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
704
ac_env_build_alias_set=${build_alias+set}
1148
esac
705
ac_env_build_alias_value=$build_alias
1149
for ac_var in $ac_precious_vars; do
706
ac_cv_env_build_alias_set=${build_alias+set}
1150
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
707
ac_cv_env_build_alias_value=$build_alias
1151
  eval ac_env_${ac_var}_value=\$${ac_var}
708
ac_env_host_alias_set=${host_alias+set}
1152
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
709
ac_env_host_alias_value=$host_alias
1153
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
710
ac_cv_env_host_alias_set=${host_alias+set}
1154
done
711
ac_cv_env_host_alias_value=$host_alias
712
ac_env_target_alias_set=${target_alias+set}
713
ac_env_target_alias_value=$target_alias
714
ac_cv_env_target_alias_set=${target_alias+set}
715
ac_cv_env_target_alias_value=$target_alias
716
ac_env_CXX_set=${CXX+set}
717
ac_env_CXX_value=$CXX
718
ac_cv_env_CXX_set=${CXX+set}
719
ac_cv_env_CXX_value=$CXX
720
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
721
ac_env_CXXFLAGS_value=$CXXFLAGS
722
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
723
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
724
ac_env_LDFLAGS_set=${LDFLAGS+set}
725
ac_env_LDFLAGS_value=$LDFLAGS
726
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727
ac_cv_env_LDFLAGS_value=$LDFLAGS
728
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729
ac_env_CPPFLAGS_value=$CPPFLAGS
730
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
732
ac_env_CXXCPP_set=${CXXCPP+set}
733
ac_env_CXXCPP_value=$CXXCPP
734
ac_cv_env_CXXCPP_set=${CXXCPP+set}
735
ac_cv_env_CXXCPP_value=$CXXCPP
736
1155
737
#
1156
#
738
# Report the --help message.
1157
# Report the --help message.
739
#
1158
#
740
if test "$ac_init_help" = "long"; then
1159
if test "$ac_init_help" = "long"; then
...
...
759
      --cache-file=FILE   cache test results in FILE [disabled]
1178
      --cache-file=FILE   cache test results in FILE [disabled]
760
  -C, --config-cache      alias for \`--cache-file=config.cache'
1179
  -C, --config-cache      alias for \`--cache-file=config.cache'
761
  -n, --no-create         do not create output files
1180
  -n, --no-create         do not create output files
762
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1181
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
763
1182
764
_ACEOF
765
766
  cat <<_ACEOF
767
Installation directories:
1183
Installation directories:
768
  --prefix=PREFIX         install architecture-independent files in PREFIX
1184
  --prefix=PREFIX         install architecture-independent files in PREFIX
769
              [$ac_default_prefix]
1185
              [$ac_default_prefix]
770
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1186
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
771
              [PREFIX]
1187
              [PREFIX]
...
...
779
1195
780
Fine tuning of the installation directories:
1196
Fine tuning of the installation directories:
781
  --bindir=DIR           user executables [EPREFIX/bin]
1197
  --bindir=DIR           user executables [EPREFIX/bin]
782
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1198
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
783
  --libexecdir=DIR       program executables [EPREFIX/libexec]
1199
  --libexecdir=DIR       program executables [EPREFIX/libexec]
784
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
785
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1200
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
786
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1201
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
787
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1202
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
788
  --libdir=DIR           object code libraries [EPREFIX/lib]
1203
  --libdir=DIR           object code libraries [EPREFIX/lib]
789
  --includedir=DIR       C header files [PREFIX/include]
1204
  --includedir=DIR       C header files [PREFIX/include]
790
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1205
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1206
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1207
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
791
  --infodir=DIR          info documentation [PREFIX/info]
1208
  --infodir=DIR          info documentation [DATAROOTDIR/info]
1209
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
792
  --mandir=DIR           man documentation [PREFIX/man]
1210
  --mandir=DIR           man documentation [DATAROOTDIR/man]
1211
  --docdir=DIR           documentation root [DATAROOTDIR/doc/recoll]
1212
  --htmldir=DIR          html documentation [DOCDIR]
1213
  --dvidir=DIR           dvi documentation [DOCDIR]
1214
  --pdfdir=DIR           pdf documentation [DOCDIR]
1215
  --psdir=DIR            ps documentation [DOCDIR]
793
_ACEOF
1216
_ACEOF
794
1217
795
  cat <<\_ACEOF
1218
  cat <<\_ACEOF
796
1219
797
X features:
1220
X features:
...
...
818
  --with-inotify          Use inotify for almost real time indexing of
1241
  --with-inotify          Use inotify for almost real time indexing of
819
                          modified files.
1242
                          modified files.
820
  --with-x                use the X Window System
1243
  --with-x                use the X Window System
821
1244
822
Some influential environment variables:
1245
Some influential environment variables:
1246
  CC          C compiler command
1247
  CFLAGS      C compiler flags
1248
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1249
              nonstandard directory <lib dir>
1250
  LIBS        libraries to pass to the linker, e.g. -l<library>
1251
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1252
              you have headers in a nonstandard directory <include dir>
823
  CXX         C++ compiler command
1253
  CXX         C++ compiler command
824
  CXXFLAGS    C++ compiler flags
1254
  CXXFLAGS    C++ compiler flags
825
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1255
  XMKMF       Path to xmkmf, Makefile generator for X Window System
826
              nonstandard directory <lib dir>
827
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
828
              headers in a nonstandard directory <include dir>
829
  CXXCPP      C++ preprocessor
1256
  CXXCPP      C++ preprocessor
830
1257
831
Use these variables to override the choices made by `configure' or to help
1258
Use these variables to override the choices made by `configure' or to help
832
it to find libraries and programs with nonstandard names/locations.
1259
it to find libraries and programs with nonstandard names/locations.
833
1260
834
_ACEOF
1261
_ACEOF
1262
ac_status=$?
835
fi
1263
fi
836
1264
837
if test "$ac_init_help" = "recursive"; then
1265
if test "$ac_init_help" = "recursive"; then
838
  # If there are subdirs, report their specific --help.
1266
  # If there are subdirs, report their specific --help.
839
  ac_popdir=`pwd`
840
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1267
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
841
    test -d $ac_dir || continue
1268
    test -d "$ac_dir" || continue
842
    ac_builddir=.
1269
    ac_builddir=.
843
1270
844
if test "$ac_dir" != .; then
1271
case "$ac_dir" in
1272
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1273
*)
845
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1274
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
846
  # A "../" for each directory in $ac_dir_suffix.
1275
  # A ".." for each directory in $ac_dir_suffix.
847
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1276
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
848
else
1277
  case $ac_top_builddir_sub in
849
  ac_dir_suffix= ac_top_builddir=
1278
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
850
fi
1279
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1280
  esac ;;
1281
esac
1282
ac_abs_top_builddir=$ac_pwd
1283
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1284
# for backward compatibility:
1285
ac_top_builddir=$ac_top_build_prefix
851
1286
852
case $srcdir in
1287
case $srcdir in
853
  .)  # No --srcdir option.  We are building in place.
1288
  .)  # We are building in place.
854
    ac_srcdir=.
1289
    ac_srcdir=.
855
    if test -z "$ac_top_builddir"; then
1290
    ac_top_srcdir=$ac_top_builddir_sub
856
       ac_top_srcdir=.
1291
    ac_abs_top_srcdir=$ac_pwd ;;
857
    else
858
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
859
    fi ;;
860
  [\\/]* | ?:[\\/]* )  # Absolute path.
1292
  [\\/]* | ?:[\\/]* )  # Absolute name.
861
    ac_srcdir=$srcdir$ac_dir_suffix;
1293
    ac_srcdir=$srcdir$ac_dir_suffix;
862
    ac_top_srcdir=$srcdir ;;
1294
    ac_top_srcdir=$srcdir
1295
    ac_abs_top_srcdir=$srcdir ;;
863
  *) # Relative path.
1296
  *) # Relative name.
864
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1297
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
865
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1298
    ac_top_srcdir=$ac_top_build_prefix$srcdir
866
esac
867
868
# Do not use `cd foo && pwd` to compute absolute paths, because
869
# the directories may not exist.
870
case `pwd` in
871
.) ac_abs_builddir="$ac_dir";;
872
*)
873
  case "$ac_dir" in
874
  .) ac_abs_builddir=`pwd`;;
875
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
876
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
877
  esac;;
878
esac
879
case $ac_abs_builddir in
880
.) ac_abs_top_builddir=${ac_top_builddir}.;;
881
*)
882
  case ${ac_top_builddir}. in
883
  .) ac_abs_top_builddir=$ac_abs_builddir;;
884
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
885
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
886
  esac;;
887
esac
888
case $ac_abs_builddir in
889
.) ac_abs_srcdir=$ac_srcdir;;
890
*)
891
  case $ac_srcdir in
892
  .) ac_abs_srcdir=$ac_abs_builddir;;
893
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
894
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
895
  esac;;
896
esac
897
case $ac_abs_builddir in
898
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1299
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
899
*)
900
  case $ac_top_srcdir in
901
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
902
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
903
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
904
  esac;;
905
esac
1300
esac
1301
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
906
1302
907
    cd $ac_dir
1303
    cd "$ac_dir" || { ac_status=$?; continue; }
908
    # Check for guested configure; otherwise get Cygnus style configure.
1304
    # Check for guested configure.
909
    if test -f $ac_srcdir/configure.gnu; then
1305
    if test -f "$ac_srcdir/configure.gnu"; then
910
      echo
1306
      echo &&
911
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1307
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
912
    elif test -f $ac_srcdir/configure; then
1308
    elif test -f "$ac_srcdir/configure"; then
913
      echo
1309
      echo &&
914
      $SHELL $ac_srcdir/configure  --help=recursive
1310
      $SHELL "$ac_srcdir/configure" --help=recursive
915
    elif test -f $ac_srcdir/configure.ac ||
916
     test -f $ac_srcdir/configure.in; then
917
      echo
918
      $ac_configure --help
919
    else
1311
    else
920
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1312
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
921
    fi
1313
    fi || ac_status=$?
922
    cd $ac_popdir
1314
    cd "$ac_pwd" || { ac_status=$?; break; }
923
  done
1315
  done
924
fi
1316
fi
925
1317
926
test -n "$ac_init_help" && exit 0
1318
test -n "$ac_init_help" && exit $ac_status
927
if $ac_init_version; then
1319
if $ac_init_version; then
928
  cat <<\_ACEOF
1320
  cat <<\_ACEOF
929
Recoll configure 1.6
1321
Recoll configure 1.6
930
generated by GNU Autoconf 2.59
1322
generated by GNU Autoconf 2.61
931
1323
932
Copyright (C) 2003 Free Software Foundation, Inc.
1324
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1325
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
933
This configure script is free software; the Free Software Foundation
1326
This configure script is free software; the Free Software Foundation
934
gives unlimited permission to copy, distribute and modify it.
1327
gives unlimited permission to copy, distribute and modify it.
935
_ACEOF
1328
_ACEOF
936
  exit 0
1329
  exit
937
fi
1330
fi
938
exec 5>config.log
1331
cat >config.log <<_ACEOF
939
cat >&5 <<_ACEOF
940
This file contains any messages produced by compilers while
1332
This file contains any messages produced by compilers while
941
running configure, to aid debugging if configure makes a mistake.
1333
running configure, to aid debugging if configure makes a mistake.
942
1334
943
It was created by Recoll $as_me 1.6, which was
1335
It was created by Recoll $as_me 1.6, which was
944
generated by GNU Autoconf 2.59.  Invocation command line was
1336
generated by GNU Autoconf 2.61.  Invocation command line was
945
1337
946
  $ $0 $@
1338
  $ $0 $@
947
1339
948
_ACEOF
1340
_ACEOF
1341
exec 5>>config.log
949
{
1342
{
950
cat <<_ASUNAME
1343
cat <<_ASUNAME
951
## --------- ##
1344
## --------- ##
952
## Platform. ##
1345
## Platform. ##
953
## --------- ##
1346
## --------- ##
...
...
962
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1355
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
963
1356
964
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1357
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
965
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1358
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
966
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1359
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
967
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1360
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
968
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1361
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
969
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1362
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
970
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1363
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
971
1364
972
_ASUNAME
1365
_ASUNAME
...
...
976
do
1369
do
977
  IFS=$as_save_IFS
1370
  IFS=$as_save_IFS
978
  test -z "$as_dir" && as_dir=.
1371
  test -z "$as_dir" && as_dir=.
979
  echo "PATH: $as_dir"
1372
  echo "PATH: $as_dir"
980
done
1373
done
1374
IFS=$as_save_IFS
981
1375
982
} >&5
1376
} >&5
983
1377
984
cat >&5 <<_ACEOF
1378
cat >&5 <<_ACEOF
985
1379
...
...
997
# Also quote any args containing shell meta-characters.
1391
# Also quote any args containing shell meta-characters.
998
# Make two passes to allow for proper duplicate-argument suppression.
1392
# Make two passes to allow for proper duplicate-argument suppression.
999
ac_configure_args=
1393
ac_configure_args=
1000
ac_configure_args0=
1394
ac_configure_args0=
1001
ac_configure_args1=
1395
ac_configure_args1=
1002
ac_sep=
1003
ac_must_keep_next=false
1396
ac_must_keep_next=false
1004
for ac_pass in 1 2
1397
for ac_pass in 1 2
1005
do
1398
do
1006
  for ac_arg
1399
  for ac_arg
1007
  do
1400
  do
1008
    case $ac_arg in
1401
    case $ac_arg in
1009
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1402
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1010
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1403
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1011
    | -silent | --silent | --silen | --sile | --sil)
1404
    | -silent | --silent | --silen | --sile | --sil)
1012
      continue ;;
1405
      continue ;;
1013
    *" "*|*"  "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1406
    *\'*)
1014
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1407
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1015
    esac
1408
    esac
1016
    case $ac_pass in
1409
    case $ac_pass in
1017
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1410
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1018
    2)
1411
    2)
...
...
1030
        esac
1423
        esac
1031
        ;;
1424
        ;;
1032
      -* ) ac_must_keep_next=true ;;
1425
      -* ) ac_must_keep_next=true ;;
1033
    esac
1426
    esac
1034
      fi
1427
      fi
1035
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1428
      ac_configure_args="$ac_configure_args '$ac_arg'"
1036
      # Get rid of the leading space.
1037
      ac_sep=" "
1038
      ;;
1429
      ;;
1039
    esac
1430
    esac
1040
  done
1431
  done
1041
done
1432
done
1042
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1433
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1043
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1434
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1044
1435
1045
# When interrupted or exit'd, cleanup temporary files, and complete
1436
# When interrupted or exit'd, cleanup temporary files, and complete
1046
# config.log.  We remove comments because anyway the quotes in there
1437
# config.log.  We remove comments because anyway the quotes in there
1047
# would cause problems or look ugly.
1438
# would cause problems or look ugly.
1048
# WARNING: Be sure not to use single quotes in there, as some shells,
1439
# WARNING: Use '\'' to represent an apostrophe within the trap.
1049
# such as our DU 5.0 friend, will then `close' the trap.
1440
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1050
trap 'exit_status=$?
1441
trap 'exit_status=$?
1051
  # Save into config.log some information that might help in debugging.
1442
  # Save into config.log some information that might help in debugging.
1052
  {
1443
  {
1053
    echo
1444
    echo
1054
1445
...
...
1057
## Cache variables. ##
1448
## Cache variables. ##
1058
## ---------------- ##
1449
## ---------------- ##
1059
_ASBOX
1450
_ASBOX
1060
    echo
1451
    echo
1061
    # The following way of writing the cache mishandles newlines in values,
1452
    # The following way of writing the cache mishandles newlines in values,
1062
{
1453
(
1454
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1455
    eval ac_val=\$$ac_var
1456
    case $ac_val in #(
1457
    *${as_nl}*)
1458
      case $ac_var in #(
1459
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1460
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1461
      esac
1462
      case $ac_var in #(
1463
      _ | IFS | as_nl) ;; #(
1464
      *) $as_unset $ac_var ;;
1465
      esac ;;
1466
    esac
1467
  done
1063
  (set) 2>&1 |
1468
  (set) 2>&1 |
1064
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1469
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1065
    *ac_space=\ *)
1470
    *${as_nl}ac_space=\ *)
1066
      sed -n \
1471
      sed -n \
1067
    "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1472
    "s/'\''/'\''\\\\'\'''\''/g;
1068
      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1473
      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1474
      ;; #(
1475
    *)
1476
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1069
      ;;
1477
      ;;
1070
    *)
1071
      sed -n \
1072
  "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1073
      ;;
1074
    esac;
1478
    esac |
1075
}
1479
    sort
1480
)
1076
    echo
1481
    echo
1077
1482
1078
    cat <<\_ASBOX
1483
    cat <<\_ASBOX
1079
## ----------------- ##
1484
## ----------------- ##
1080
## Output variables. ##
1485
## Output variables. ##
1081
## ----------------- ##
1486
## ----------------- ##
1082
_ASBOX
1487
_ASBOX
1083
    echo
1488
    echo
1084
    for ac_var in $ac_subst_vars
1489
    for ac_var in $ac_subst_vars
1085
    do
1490
    do
1086
      eval ac_val=$`echo $ac_var`
1491
      eval ac_val=\$$ac_var
1492
      case $ac_val in
1493
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1494
      esac
1087
      echo "$ac_var='"'"'$ac_val'"'"'"
1495
      echo "$ac_var='\''$ac_val'\''"
1088
    done | sort
1496
    done | sort
1089
    echo
1497
    echo
1090
1498
1091
    if test -n "$ac_subst_files"; then
1499
    if test -n "$ac_subst_files"; then
1092
      cat <<\_ASBOX
1500
      cat <<\_ASBOX
1093
## ------------- ##
1501
## ------------------- ##
1094
## Output files. ##
1502
## File substitutions. ##
1095
## ------------- ##
1503
## ------------------- ##
1096
_ASBOX
1504
_ASBOX
1097
      echo
1505
      echo
1098
      for ac_var in $ac_subst_files
1506
      for ac_var in $ac_subst_files
1099
      do
1507
      do
1100
    eval ac_val=$`echo $ac_var`
1508
    eval ac_val=\$$ac_var
1509
  case $ac_val in
1510
  *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1511
  esac
1101
    echo "$ac_var='"'"'$ac_val'"'"'"
1512
    echo "$ac_var='\''$ac_val'\''"
1102
      done | sort
1513
      done | sort
1103
      echo
1514
      echo
1104
    fi
1515
    fi
1105
1516
1106
    if test -s confdefs.h; then
1517
    if test -s confdefs.h; then
...
...
1108
## ----------- ##
1519
## ----------- ##
1109
## confdefs.h. ##
1520
## confdefs.h. ##
1110
## ----------- ##
1521
## ----------- ##
1111
_ASBOX
1522
_ASBOX
1112
      echo
1523
      echo
1113
      sed "/^$/d" confdefs.h | sort
1524
      cat confdefs.h
1114
      echo
1525
      echo
1115
    fi
1526
    fi
1116
    test "$ac_signal" != 0 &&
1527
    test "$ac_signal" != 0 &&
1117
      echo "$as_me: caught signal $ac_signal"
1528
      echo "$as_me: caught signal $ac_signal"
1118
    echo "$as_me: exit $exit_status"
1529
    echo "$as_me: exit $exit_status"
1119
  } >&5
1530
  } >&5
1120
  rm -f core *.core &&
1531
  rm -f core *.core core.conftest.* &&
1121
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1532
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1122
    exit $exit_status
1533
    exit $exit_status
1123
     ' 0
1534
' 0
1124
for ac_signal in 1 2 13 15; do
1535
for ac_signal in 1 2 13 15; do
1125
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1536
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1126
done
1537
done
1127
ac_signal=0
1538
ac_signal=0
1128
1539
1129
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1540
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1130
rm -rf conftest* confdefs.h
1541
rm -f -r conftest* confdefs.h
1131
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1132
echo >confdefs.h
1133
1542
1134
# Predefined preprocessor variables.
1543
# Predefined preprocessor variables.
1135
1544
1136
cat >>confdefs.h <<_ACEOF
1545
cat >>confdefs.h <<_ACEOF
1137
#define PACKAGE_NAME "$PACKAGE_NAME"
1546
#define PACKAGE_NAME "$PACKAGE_NAME"
...
...
1158
_ACEOF
1567
_ACEOF
1159
1568
1160
1569
1161
# Let the site file select an alternate cache file if it wants to.
1570
# Let the site file select an alternate cache file if it wants to.
1162
# Prefer explicitly selected file to automatically selected ones.
1571
# Prefer explicitly selected file to automatically selected ones.
1163
if test -z "$CONFIG_SITE"; then
1572
if test -n "$CONFIG_SITE"; then
1573
  set x "$CONFIG_SITE"
1164
  if test "x$prefix" != xNONE; then
1574
elif test "x$prefix" != xNONE; then
1165
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1575
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1166
  else
1576
else
1167
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1577
  set x "$ac_default_prefix/share/config.site" \
1578
  "$ac_default_prefix/etc/config.site"
1168
  fi
1579
fi
1169
fi
1580
shift
1170
for ac_site_file in $CONFIG_SITE; do
1581
for ac_site_file
1582
do
1171
  if test -r "$ac_site_file"; then
1583
  if test -r "$ac_site_file"; then
1172
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1584
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1173
echo "$as_me: loading site script $ac_site_file" >&6;}
1585
echo "$as_me: loading site script $ac_site_file" >&6;}
1174
    sed 's/^/| /' "$ac_site_file" >&5
1586
    sed 's/^/| /' "$ac_site_file" >&5
1175
    . "$ac_site_file"
1587
    . "$ac_site_file"
...
...
1181
  # files actually), so we avoid doing that.
1593
  # files actually), so we avoid doing that.
1182
  if test -f "$cache_file"; then
1594
  if test -f "$cache_file"; then
1183
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1595
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1184
echo "$as_me: loading cache $cache_file" >&6;}
1596
echo "$as_me: loading cache $cache_file" >&6;}
1185
    case $cache_file in
1597
    case $cache_file in
1186
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1598
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1187
      *)                      . ./$cache_file;;
1599
      *)                      . "./$cache_file";;
1188
    esac
1600
    esac
1189
  fi
1601
  fi
1190
else
1602
else
1191
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1603
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1192
echo "$as_me: creating cache $cache_file" >&6;}
1604
echo "$as_me: creating cache $cache_file" >&6;}
...
...
1194
fi
1606
fi
1195
1607
1196
# Check that the precious variables saved in the cache have kept the same
1608
# Check that the precious variables saved in the cache have kept the same
1197
# value.
1609
# value.
1198
ac_cache_corrupted=false
1610
ac_cache_corrupted=false
1199
for ac_var in `(set) 2>&1 |
1611
for ac_var in $ac_precious_vars; do
1200
         sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1201
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1612
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1202
  eval ac_new_set=\$ac_env_${ac_var}_set
1613
  eval ac_new_set=\$ac_env_${ac_var}_set
1203
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1614
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1204
  eval ac_new_val="\$ac_env_${ac_var}_value"
1615
  eval ac_new_val=\$ac_env_${ac_var}_value
1205
  case $ac_old_set,$ac_new_set in
1616
  case $ac_old_set,$ac_new_set in
1206
    set,)
1617
    set,)
1207
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1618
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1208
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1619
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1209
      ac_cache_corrupted=: ;;
1620
      ac_cache_corrupted=: ;;
...
...
1224
      fi;;
1635
      fi;;
1225
  esac
1636
  esac
1226
  # Pass precious variables to config.status.
1637
  # Pass precious variables to config.status.
1227
  if test "$ac_new_set" = set; then
1638
  if test "$ac_new_set" = set; then
1228
    case $ac_new_val in
1639
    case $ac_new_val in
1229
    *" "*|*"  "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1230
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1640
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1231
    *) ac_arg=$ac_var=$ac_new_val ;;
1641
    *) ac_arg=$ac_var=$ac_new_val ;;
1232
    esac
1642
    esac
1233
    case " $ac_configure_args " in
1643
    case " $ac_configure_args " in
1234
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1644
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1235
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1645
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
...
...
1242
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1652
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1243
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1653
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1244
   { (exit 1); exit 1; }; }
1654
   { (exit 1); exit 1; }; }
1245
fi
1655
fi
1246
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1247
ac_ext=c
1681
ac_ext=c
1248
ac_cpp='$CPP $CPPFLAGS'
1682
ac_cpp='$CPP $CPPFLAGS'
1249
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1683
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1250
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1684
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1251
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1685
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1252
1686
1253
1687
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
          ac_config_headers="$ac_config_headers common/autoconfig.h"
1688
ac_config_headers="$ac_config_headers common/autoconfig.h"
1280
1689
1281
1690
1282
1691
1283
1692
1284
sys=`uname`
1693
sys=`uname`
...
...
1296
# Use aspell to provide spelling expansions ?
1705
# Use aspell to provide spelling expansions ?
1297
# The default is yes. If we do find an aspell installation, we use it. Else
1706
# The default is yes. If we do find an aspell installation, we use it. Else
1298
# we do compile the aspell module using an internal copy of aspell.h
1707
# we do compile the aspell module using an internal copy of aspell.h
1299
# Only --with-aspell=no will completely disable aspell support
1708
# Only --with-aspell=no will completely disable aspell support
1300
1709
1301
# Check whether --with-aspell or --without-aspell was given.
1710
# Check whether --with-aspell was given.
1302
if test "${with_aspell+set}" = set; then
1711
if test "${with_aspell+set}" = set; then
1303
  withval="$with_aspell"
1712
  withval=$with_aspell; withAspell=$withval
1304
  withAspell=$withval
1305
else
1713
else
1306
  withAspell=yes
1714
  withAspell=yes
1307
fi;
1715
fi
1716
1308
case $withAspell in
1717
case $withAspell in
1309
     no);;
1718
     no);;
1310
     yes)
1719
     yes)
1311
     # Extract the first word of "aspell", so it can be a program name with args.
1720
     # Extract the first word of "aspell", so it can be a program name with args.
1312
set dummy aspell; ac_word=$2
1721
set dummy aspell; ac_word=$2
1313
echo "$as_me:$LINENO: checking for $ac_word" >&5
1722
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1314
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1723
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1315
if test "${ac_cv_path_aspellProg+set}" = set; then
1724
if test "${ac_cv_path_aspellProg+set}" = set; then
1316
  echo $ECHO_N "(cached) $ECHO_C" >&6
1725
  echo $ECHO_N "(cached) $ECHO_C" >&6
1317
else
1726
else
1318
  case $aspellProg in
1727
  case $aspellProg in
1319
  [\\/]* | ?:[\\/]*)
1728
  [\\/]* | ?:[\\/]*)
...
...
1324
for as_dir in $PATH
1733
for as_dir in $PATH
1325
do
1734
do
1326
  IFS=$as_save_IFS
1735
  IFS=$as_save_IFS
1327
  test -z "$as_dir" && as_dir=.
1736
  test -z "$as_dir" && as_dir=.
1328
  for ac_exec_ext in '' $ac_executable_extensions; do
1737
  for ac_exec_ext in '' $ac_executable_extensions; do
1329
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1738
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1330
    ac_cv_path_aspellProg="$as_dir/$ac_word$ac_exec_ext"
1739
    ac_cv_path_aspellProg="$as_dir/$ac_word$ac_exec_ext"
1331
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1740
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1332
    break 2
1741
    break 2
1333
  fi
1742
  fi
1334
done
1743
done
1335
done
1744
done
1745
IFS=$as_save_IFS
1336
1746
1337
  ;;
1747
  ;;
1338
esac
1748
esac
1339
fi
1749
fi
1340
aspellProg=$ac_cv_path_aspellProg
1750
aspellProg=$ac_cv_path_aspellProg
1341
1342
if test -n "$aspellProg"; then
1751
if test -n "$aspellProg"; then
1343
  echo "$as_me:$LINENO: result: $aspellProg" >&5
1752
  { echo "$as_me:$LINENO: result: $aspellProg" >&5
1344
echo "${ECHO_T}$aspellProg" >&6
1753
echo "${ECHO_T}$aspellProg" >&6; }
1345
else
1754
else
1346
  echo "$as_me:$LINENO: result: no" >&5
1755
  { echo "$as_me:$LINENO: result: no" >&5
1347
echo "${ECHO_T}no" >&6
1756
echo "${ECHO_T}no" >&6; }
1348
fi
1757
fi
1758
1349
1759
1350
     ;;
1760
     ;;
1351
     *) # The argument should be the path to the aspell program
1761
     *) # The argument should be the path to the aspell program
1352
     aspellProg=$withAspell
1762
     aspellProg=$withAspell
1353
     ;;
1763
     ;;
...
...
1392
   fi
1802
   fi
1393
fi
1803
fi
1394
1804
1395
# Real time monitoring with FAM
1805
# Real time monitoring with FAM
1396
1806
1397
# Check whether --with-fam or --without-fam was given.
1807
# Check whether --with-fam was given.
1398
if test "${with_fam+set}" = set; then
1808
if test "${with_fam+set}" = set; then
1399
  withval="$with_fam"
1809
  withval=$with_fam; withFam=$withval
1400
  withFam=$withval
1401
else
1810
else
1402
  withFam=no
1811
  withFam=no
1403
fi;
1812
fi
1813
1404
case $withFam in
1814
case $withFam in
1405
     no);;
1815
     no);;
1406
     yes)
1816
     yes)
1407
    for dir in /usr/local/lib ${libdir};do
1817
    for dir in /usr/local/lib ${libdir};do
1408
     if test -f $dir/libfam.so ; then famLib=$dir/libfam.so;break;fi
1818
     if test -f $dir/libfam.so ; then famLib=$dir/libfam.so;break;fi
...
...
1454
   inot_default=no
1864
   inot_default=no
1455
fi
1865
fi
1456
1866
1457
# Real time monitoring with inotify
1867
# Real time monitoring with inotify
1458
1868
1459
# Check whether --with-inotify or --without-inotify was given.
1869
# Check whether --with-inotify was given.
1460
if test "${with_inotify+set}" = set; then
1870
if test "${with_inotify+set}" = set; then
1461
  withval="$with_inotify"
1871
  withval=$with_inotify; withInotify=$withval
1462
  withInotify=$withval
1463
else
1872
else
1464
  withInotify=$inot_default
1873
  withInotify=$inot_default
1465
fi;
1874
fi
1875
1466
1876
1467
if test X$withInotify != Xno ; then
1877
if test X$withInotify != Xno ; then
1468
   { echo "$as_me:$LINENO: enabled support for inotify monitoring" >&5
1878
   { echo "$as_me:$LINENO: enabled support for inotify monitoring" >&5
1469
echo "$as_me: enabled support for inotify monitoring" >&6;}
1879
echo "$as_me: enabled support for inotify monitoring" >&6;}
1470
1880
...
...
1480
else
1890
else
1481
   { echo "$as_me:$LINENO: inotify monitoring disabled" >&5
1891
   { echo "$as_me:$LINENO: inotify monitoring disabled" >&5
1482
echo "$as_me: inotify monitoring disabled" >&6;}
1892
echo "$as_me: inotify monitoring disabled" >&6;}
1483
fi
1893
fi
1484
1894
1485
##### Look for iconv. We first look for libiconv in /usr/local/lib:/usr/lib
1486
##    then in libc (Linux, solaris)
1487
ac_ext=cc
1895
ac_ext=c
1488
ac_cpp='$CXXCPP $CPPFLAGS'
1896
ac_cpp='$CPP $CPPFLAGS'
1489
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1897
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1490
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1898
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1491
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1899
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1492
1493
LIBICONV=""
1494
S_LDFLAGS=$LDFLAGS
1495
dir=/usr/local/lib
1496
LDFLAGS="$S_LDFLAGS -L$dir"
1497
unset ac_cv_lib_iconv_iconv_open
1498
ac_ext=cc
1499
ac_cpp='$CXXCPP $CPPFLAGS'
1500
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1501
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1502
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1503
if test -n "$ac_tool_prefix"; then
1900
if test -n "$ac_tool_prefix"; then
1504
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1505
  do
1506
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1901
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1507
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1902
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1508
echo "$as_me:$LINENO: checking for $ac_word" >&5
1903
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1509
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1904
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1510
if test "${ac_cv_prog_CXX+set}" = set; then
1905
if test "${ac_cv_prog_CC+set}" = set; then
1511
  echo $ECHO_N "(cached) $ECHO_C" >&6
1906
  echo $ECHO_N "(cached) $ECHO_C" >&6
1512
else
1907
else
1513
  if test -n "$CXX"; then
1908
  if test -n "$CC"; then
1514
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1909
  ac_cv_prog_CC="$CC" # Let the user override the test.
1515
else
1910
else
1516
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1517
for as_dir in $PATH
1912
for as_dir in $PATH
1518
do
1913
do
1519
  IFS=$as_save_IFS
1914
  IFS=$as_save_IFS
1520
  test -z "$as_dir" && as_dir=.
1915
  test -z "$as_dir" && as_dir=.
1521
  for ac_exec_ext in '' $ac_executable_extensions; do
1916
  for ac_exec_ext in '' $ac_executable_extensions; do
1522
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1917
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1523
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1918
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1524
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1919
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1525
    break 2
1920
    break 2
1526
  fi
1921
  fi
1527
done
1922
done
1528
done
1923
done
1924
IFS=$as_save_IFS
1529
1925
1530
fi
1926
fi
1531
fi
1927
fi
1532
CXX=$ac_cv_prog_CXX
1928
CC=$ac_cv_prog_CC
1533
if test -n "$CXX"; then
1929
if test -n "$CC"; then
1534
  echo "$as_me:$LINENO: result: $CXX" >&5
1930
  { echo "$as_me:$LINENO: result: $CC" >&5
1535
echo "${ECHO_T}$CXX" >&6
1931
echo "${ECHO_T}$CC" >&6; }
1536
else
1932
else
1537
  echo "$as_me:$LINENO: result: no" >&5
1933
  { echo "$as_me:$LINENO: result: no" >&5
1538
echo "${ECHO_T}no" >&6
1934
echo "${ECHO_T}no" >&6; }
1539
fi
1935
fi
1540
1936
1541
    test -n "$CXX" && break
1937
1542
  done
1543
fi
1938
fi
1544
if test -z "$CXX"; then
1939
if test -z "$ac_cv_prog_CC"; then
1545
  ac_ct_CXX=$CXX
1940
  ac_ct_CC=$CC
1546
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1547
do
1548
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1941
  # Extract the first word of "gcc", so it can be a program name with args.
1549
set dummy $ac_prog; ac_word=$2
1942
set dummy gcc; ac_word=$2
1550
echo "$as_me:$LINENO: checking for $ac_word" >&5
1943
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1551
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1944
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1552
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1945
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1553
  echo $ECHO_N "(cached) $ECHO_C" >&6
1946
  echo $ECHO_N "(cached) $ECHO_C" >&6
1554
else
1947
else
1555
  if test -n "$ac_ct_CXX"; then
1948
  if test -n "$ac_ct_CC"; then
1556
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1949
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1557
else
1950
else
1558
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1951
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1559
for as_dir in $PATH
1952
for as_dir in $PATH
1560
do
1953
do
1561
  IFS=$as_save_IFS
1954
  IFS=$as_save_IFS
1562
  test -z "$as_dir" && as_dir=.
1955
  test -z "$as_dir" && as_dir=.
1563
  for ac_exec_ext in '' $ac_executable_extensions; do
1956
  for ac_exec_ext in '' $ac_executable_extensions; do
1564
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1957
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1565
    ac_cv_prog_ac_ct_CXX="$ac_prog"
1958
    ac_cv_prog_ac_ct_CC="gcc"
1566
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1959
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1567
    break 2
1960
    break 2
1568
  fi
1961
  fi
1569
done
1962
done
1570
done
1963
done
1964
IFS=$as_save_IFS
1571
1965
1572
fi
1966
fi
1573
fi
1967
fi
1574
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1968
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1575
if test -n "$ac_ct_CXX"; then
1969
if test -n "$ac_ct_CC"; then
1576
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1970
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1577
echo "${ECHO_T}$ac_ct_CXX" >&6
1971
echo "${ECHO_T}$ac_ct_CC" >&6; }
1578
else
1972
else
1579
  echo "$as_me:$LINENO: result: no" >&5
1973
  { echo "$as_me:$LINENO: result: no" >&5
1580
echo "${ECHO_T}no" >&6
1974
echo "${ECHO_T}no" >&6; }
1975
fi
1976
1977
  if test "x$ac_ct_CC" = x; then
1978
    CC=""
1979
  else
1980
    case $cross_compiling:$ac_tool_warned in
1981
yes:)
1982
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1983
whose name does not start with the host triplet.  If you think this
1984
configuration is useful to you, please write to autoconf@gnu.org." >&5
1985
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1986
whose name does not start with the host triplet.  If you think this
1987
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1988
ac_tool_warned=yes ;;
1989
esac
1990
    CC=$ac_ct_CC
1581
fi
1991
  fi
1992
else
1993
  CC="$ac_cv_prog_CC"
1994
fi
1582
1995
1583
  test -n "$ac_ct_CXX" && break
1996
if test -z "$CC"; then
1997
          if test -n "$ac_tool_prefix"; then
1998
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1999
set dummy ${ac_tool_prefix}cc; ac_word=$2
2000
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2001
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2002
if test "${ac_cv_prog_CC+set}" = set; then
2003
  echo $ECHO_N "(cached) $ECHO_C" >&6
2004
else
2005
  if test -n "$CC"; then
2006
  ac_cv_prog_CC="$CC" # Let the user override the test.
2007
else
2008
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009
for as_dir in $PATH
2010
do
2011
  IFS=$as_save_IFS
2012
  test -z "$as_dir" && as_dir=.
2013
  for ac_exec_ext in '' $ac_executable_extensions; do
2014
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2015
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2016
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2017
    break 2
2018
  fi
1584
done
2019
done
1585
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2020
done
2021
IFS=$as_save_IFS
1586
2022
2023
fi
2024
fi
2025
CC=$ac_cv_prog_CC
2026
if test -n "$CC"; then
2027
  { echo "$as_me:$LINENO: result: $CC" >&5
2028
echo "${ECHO_T}$CC" >&6; }
2029
else
2030
  { echo "$as_me:$LINENO: result: no" >&5
2031
echo "${ECHO_T}no" >&6; }
2032
fi
2033
2034
2035
  fi
2036
fi
2037
if test -z "$CC"; then
2038
  # Extract the first word of "cc", so it can be a program name with args.
2039
set dummy cc; ac_word=$2
2040
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2041
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2042
if test "${ac_cv_prog_CC+set}" = set; then
2043
  echo $ECHO_N "(cached) $ECHO_C" >&6
2044
else
2045
  if test -n "$CC"; then
2046
  ac_cv_prog_CC="$CC" # Let the user override the test.
2047
else
2048
  ac_prog_rejected=no
2049
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050
for as_dir in $PATH
2051
do
2052
  IFS=$as_save_IFS
2053
  test -z "$as_dir" && as_dir=.
2054
  for ac_exec_ext in '' $ac_executable_extensions; do
2055
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2056
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2057
       ac_prog_rejected=yes
2058
       continue
2059
     fi
2060
    ac_cv_prog_CC="cc"
2061
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062
    break 2
2063
  fi
2064
done
2065
done
2066
IFS=$as_save_IFS
2067
2068
if test $ac_prog_rejected = yes; then
2069
  # We found a bogon in the path, so make sure we never use it.
2070
  set dummy $ac_cv_prog_CC
2071
  shift
2072
  if test $# != 0; then
2073
    # We chose a different compiler from the bogus one.
2074
    # However, it has the same basename, so the bogon will be chosen
2075
    # first if we set CC to just the basename; use the full file name.
2076
    shift
2077
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2078
  fi
2079
fi
2080
fi
2081
fi
2082
CC=$ac_cv_prog_CC
2083
if test -n "$CC"; then
2084
  { echo "$as_me:$LINENO: result: $CC" >&5
2085
echo "${ECHO_T}$CC" >&6; }
2086
else
2087
  { echo "$as_me:$LINENO: result: no" >&5
2088
echo "${ECHO_T}no" >&6; }
2089
fi
2090
2091
2092
fi
2093
if test -z "$CC"; then
2094
  if test -n "$ac_tool_prefix"; then
2095
  for ac_prog in cl.exe
2096
  do
2097
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2098
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2099
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2100
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2101
if test "${ac_cv_prog_CC+set}" = set; then
2102
  echo $ECHO_N "(cached) $ECHO_C" >&6
2103
else
2104
  if test -n "$CC"; then
2105
  ac_cv_prog_CC="$CC" # Let the user override the test.
2106
else
2107
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2108
for as_dir in $PATH
2109
do
2110
  IFS=$as_save_IFS
2111
  test -z "$as_dir" && as_dir=.
2112
  for ac_exec_ext in '' $ac_executable_extensions; do
2113
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2114
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2115
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2116
    break 2
2117
  fi
2118
done
2119
done
2120
IFS=$as_save_IFS
2121
2122
fi
2123
fi
2124
CC=$ac_cv_prog_CC
2125
if test -n "$CC"; then
2126
  { echo "$as_me:$LINENO: result: $CC" >&5
2127
echo "${ECHO_T}$CC" >&6; }
2128
else
2129
  { echo "$as_me:$LINENO: result: no" >&5
2130
echo "${ECHO_T}no" >&6; }
2131
fi
2132
2133
2134
    test -n "$CC" && break
2135
  done
2136
fi
2137
if test -z "$CC"; then
2138
  ac_ct_CC=$CC
2139
  for ac_prog in cl.exe
2140
do
2141
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2142
set dummy $ac_prog; ac_word=$2
2143
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2144
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2145
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2146
  echo $ECHO_N "(cached) $ECHO_C" >&6
2147
else
2148
  if test -n "$ac_ct_CC"; then
2149
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2150
else
2151
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152
for as_dir in $PATH
2153
do
2154
  IFS=$as_save_IFS
2155
  test -z "$as_dir" && as_dir=.
2156
  for ac_exec_ext in '' $ac_executable_extensions; do
2157
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2158
    ac_cv_prog_ac_ct_CC="$ac_prog"
2159
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2160
    break 2
2161
  fi
2162
done
2163
done
2164
IFS=$as_save_IFS
2165
2166
fi
2167
fi
2168
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2169
if test -n "$ac_ct_CC"; then
2170
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2171
echo "${ECHO_T}$ac_ct_CC" >&6; }
2172
else
2173
  { echo "$as_me:$LINENO: result: no" >&5
2174
echo "${ECHO_T}no" >&6; }
2175
fi
2176
2177
2178
  test -n "$ac_ct_CC" && break
2179
done
2180
2181
  if test "x$ac_ct_CC" = x; then
2182
    CC=""
2183
  else
2184
    case $cross_compiling:$ac_tool_warned in
2185
yes:)
2186
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2187
whose name does not start with the host triplet.  If you think this
2188
configuration is useful to you, please write to autoconf@gnu.org." >&5
2189
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2190
whose name does not start with the host triplet.  If you think this
2191
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2192
ac_tool_warned=yes ;;
2193
esac
1587
  CXX=$ac_ct_CXX
2194
    CC=$ac_ct_CC
1588
fi
2195
  fi
2196
fi
1589
2197
2198
fi
2199
2200
2201
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2202
See \`config.log' for more details." >&5
2203
echo "$as_me: error: no acceptable C compiler found in \$PATH
2204
See \`config.log' for more details." >&2;}
2205
   { (exit 1); exit 1; }; }
1590
2206
1591
# Provide some information about the compiler.
2207
# Provide some information about the compiler.
1592
echo "$as_me:$LINENO:" \
1593
     "checking for C++ compiler version" >&5
2208
echo "$as_me:$LINENO: checking for C compiler version" >&5
1594
ac_compiler=`set X $ac_compile; echo $2`
2209
ac_compiler=`set X $ac_compile; echo $2`
1595
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2210
{ (ac_try="$ac_compiler --version >&5"
2211
case "(($ac_try" in
2212
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2213
  *) ac_try_echo=$ac_try;;
2214
esac
2215
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1596
  (eval $ac_compiler --version </dev/null >&5) 2>&5
2216
  (eval "$ac_compiler --version >&5") 2>&5
1597
  ac_status=$?
2217
  ac_status=$?
1598
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1599
  (exit $ac_status); }
2219
  (exit $ac_status); }
1600
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2220
{ (ac_try="$ac_compiler -v >&5"
2221
case "(($ac_try" in
2222
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2223
  *) ac_try_echo=$ac_try;;
2224
esac
2225
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1601
  (eval $ac_compiler -v </dev/null >&5) 2>&5
2226
  (eval "$ac_compiler -v >&5") 2>&5
1602
  ac_status=$?
2227
  ac_status=$?
1603
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1604
  (exit $ac_status); }
2229
  (exit $ac_status); }
1605
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2230
{ (ac_try="$ac_compiler -V >&5"
2231
case "(($ac_try" in
2232
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2233
  *) ac_try_echo=$ac_try;;
2234
esac
2235
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1606
  (eval $ac_compiler -V </dev/null >&5) 2>&5
2236
  (eval "$ac_compiler -V >&5") 2>&5
1607
  ac_status=$?
2237
  ac_status=$?
1608
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1609
  (exit $ac_status); }
2239
  (exit $ac_status); }
1610
2240
1611
cat >conftest.$ac_ext <<_ACEOF
2241
cat >conftest.$ac_ext <<_ACEOF
...
...
1626
ac_clean_files_save=$ac_clean_files
2256
ac_clean_files_save=$ac_clean_files
1627
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2257
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1628
# Try to create an executable without -o first, disregard a.out.
2258
# Try to create an executable without -o first, disregard a.out.
1629
# It will help us diagnose broken compilers, and finding out an intuition
2259
# It will help us diagnose broken compilers, and finding out an intuition
1630
# of exeext.
2260
# of exeext.
1631
echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2261
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1632
echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2262
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
1633
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2263
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2264
#
2265
# List of possible output files, starting from the most likely.
2266
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2267
# only as a last resort.  b.out is created by i960 compilers.
2268
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2269
#
2270
# The IRIX 6 linker writes into existing files which may not be
2271
# executable, retaining their permissions.  Remove them first so a
2272
# subsequent execution test works.
2273
ac_rmfiles=
2274
for ac_file in $ac_files
2275
do
2276
  case $ac_file in
2277
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2278
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2279
  esac
2280
done
2281
rm -f $ac_rmfiles
2282
2283
if { (ac_try="$ac_link_default"
2284
case "(($ac_try" in
2285
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2286
  *) ac_try_echo=$ac_try;;
2287
esac
1634
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2288
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1635
  (eval $ac_link_default) 2>&5
2289
  (eval "$ac_link_default") 2>&5
1636
  ac_status=$?
2290
  ac_status=$?
1637
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1638
  (exit $ac_status); }; then
2292
  (exit $ac_status); }; then
1639
  # Find the output, starting from the most likely.  This scheme is
2293
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
1640
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2294
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
1641
# resort.
2295
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
1642
2296
# so that the user can short-circuit this test for compilers unknown to
1643
# Be careful to initialize this variable, since it used to be cached.
2297
# Autoconf.
1644
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2298
for ac_file in $ac_files ''
1645
ac_cv_exeext=
1646
# b.out is created by i960 compilers.
1647
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1648
do
2299
do
1649
  test -f "$ac_file" || continue
2300
  test -f "$ac_file" || continue
1650
  case $ac_file in
2301
  case $ac_file in
1651
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2302
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
1652
  ;;
1653
    conftest.$ac_ext )
1654
  # This is the source file.
1655
    ;;
2303
    ;;
1656
    [ab].out )
2304
    [ab].out )
1657
    # We found the default executable, but exeext='' is most
2305
    # We found the default executable, but exeext='' is most
1658
    # certainly right.
2306
    # certainly right.
1659
    break;;
2307
    break;;
1660
    *.* )
2308
    *.* )
2309
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2310
  then :; else
1661
    ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2311
       ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1662
  # FIXME: I believe we export ac_cv_exeext for Libtool,
2312
  fi
1663
  # but it would be cool to find out if it's true.  Does anybody
2313
  # We set ac_cv_exeext here because the later test for it is not
1664
  # maintain Libtool? --akim.
2314
  # safe: cross compilers may not add the suffix if given an `-o'
1665
  export ac_cv_exeext
2315
  # argument, so we may need to know it at that point already.
2316
  # Even if this section looks crufty: it has the advantage of
2317
  # actually working.
1666
    break;;
2318
    break;;
1667
    * )
2319
    * )
1668
    break;;
2320
    break;;
1669
  esac
2321
  esac
1670
done
2322
done
2323
test "$ac_cv_exeext" = no && ac_cv_exeext=
2324
1671
else
2325
else
2326
  ac_file=''
2327
fi
2328
2329
{ echo "$as_me:$LINENO: result: $ac_file" >&5
2330
echo "${ECHO_T}$ac_file" >&6; }
2331
if test -z "$ac_file"; then
1672
  echo "$as_me: failed program was:" >&5
2332
  echo "$as_me: failed program was:" >&5
1673
sed 's/^/| /' conftest.$ac_ext >&5
2333
sed 's/^/| /' conftest.$ac_ext >&5
1674
2334
1675
{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2335
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1676
See \`config.log' for more details." >&5
2336
See \`config.log' for more details." >&5
1677
echo "$as_me: error: C++ compiler cannot create executables
2337
echo "$as_me: error: C compiler cannot create executables
1678
See \`config.log' for more details." >&2;}
2338
See \`config.log' for more details." >&2;}
1679
   { (exit 77); exit 77; }; }
2339
   { (exit 77); exit 77; }; }
1680
fi
2340
fi
1681
2341
1682
ac_exeext=$ac_cv_exeext
2342
ac_exeext=$ac_cv_exeext
1683
echo "$as_me:$LINENO: result: $ac_file" >&5
1684
echo "${ECHO_T}$ac_file" >&6
1685
2343
1686
# Check the compiler produces executables we can run.  If not, either
2344
# Check that the compiler produces executables we can run.  If not, either
1687
# the compiler is broken, or we cross compile.
2345
# the compiler is broken, or we cross compile.
1688
echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2346
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1689
echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2347
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
1690
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2348
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1691
# If not cross compiling, check that we can run a simple program.
2349
# If not cross compiling, check that we can run a simple program.
1692
if test "$cross_compiling" != yes; then
2350
if test "$cross_compiling" != yes; then
1693
  if { ac_try='./$ac_file'
2351
  if { ac_try='./$ac_file'
2352
  { (case "(($ac_try" in
2353
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2354
  *) ac_try_echo=$ac_try;;
2355
esac
1694
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2356
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1695
  (eval $ac_try) 2>&5
2357
  (eval "$ac_try") 2>&5
1696
  ac_status=$?
2358
  ac_status=$?
1697
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1698
  (exit $ac_status); }; }; then
2360
  (exit $ac_status); }; }; then
1699
    cross_compiling=no
2361
    cross_compiling=no
1700
  else
2362
  else
1701
    if test "$cross_compiling" = maybe; then
2363
    if test "$cross_compiling" = maybe; then
1702
    cross_compiling=yes
2364
    cross_compiling=yes
1703
    else
2365
    else
1704
    { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2366
    { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1705
If you meant to cross compile, use \`--host'.
2367
If you meant to cross compile, use \`--host'.
1706
See \`config.log' for more details." >&5
2368
See \`config.log' for more details." >&5
1707
echo "$as_me: error: cannot run C++ compiled programs.
2369
echo "$as_me: error: cannot run C compiled programs.
1708
If you meant to cross compile, use \`--host'.
2370
If you meant to cross compile, use \`--host'.
1709
See \`config.log' for more details." >&2;}
2371
See \`config.log' for more details." >&2;}
1710
   { (exit 1); exit 1; }; }
2372
   { (exit 1); exit 1; }; }
1711
    fi
2373
    fi
1712
  fi
2374
  fi
1713
fi
2375
fi
1714
echo "$as_me:$LINENO: result: yes" >&5
2376
{ echo "$as_me:$LINENO: result: yes" >&5
1715
echo "${ECHO_T}yes" >&6
2377
echo "${ECHO_T}yes" >&6; }
1716
2378
1717
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2379
rm -f a.out a.exe conftest$ac_cv_exeext b.out
1718
ac_clean_files=$ac_clean_files_save
2380
ac_clean_files=$ac_clean_files_save
1719
# Check the compiler produces executables we can run.  If not, either
2381
# Check that the compiler produces executables we can run.  If not, either
1720
# the compiler is broken, or we cross compile.
2382
# the compiler is broken, or we cross compile.
1721
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2383
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1722
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2384
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
1723
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2385
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
1724
echo "${ECHO_T}$cross_compiling" >&6
2386
echo "${ECHO_T}$cross_compiling" >&6; }
1725
2387
1726
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2388
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
1727
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2389
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2390
if { (ac_try="$ac_link"
2391
case "(($ac_try" in
2392
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2393
  *) ac_try_echo=$ac_try;;
2394
esac
1728
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2395
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1729
  (eval $ac_link) 2>&5
2396
  (eval "$ac_link") 2>&5
1730
  ac_status=$?
2397
  ac_status=$?
1731
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1732
  (exit $ac_status); }; then
2399
  (exit $ac_status); }; then
1733
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2400
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1734
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2401
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1735
# work properly (i.e., refer to `conftest.exe'), while it won't with
2402
# work properly (i.e., refer to `conftest.exe'), while it won't with
1736
# `rm'.
2403
# `rm'.
1737
for ac_file in conftest.exe conftest conftest.*; do
2404
for ac_file in conftest.exe conftest conftest.*; do
1738
  test -f "$ac_file" || continue
2405
  test -f "$ac_file" || continue
1739
  case $ac_file in
2406
  case $ac_file in
1740
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2407
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1741
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2408
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1742
    export ac_cv_exeext
1743
      break;;
2409
      break;;
1744
    * ) break;;
2410
    * ) break;;
1745
  esac
2411
  esac
1746
done
2412
done
1747
else
2413
else
...
...
1751
See \`config.log' for more details." >&2;}
2417
See \`config.log' for more details." >&2;}
1752
   { (exit 1); exit 1; }; }
2418
   { (exit 1); exit 1; }; }
1753
fi
2419
fi
1754
2420
1755
rm -f conftest$ac_cv_exeext
2421
rm -f conftest$ac_cv_exeext
1756
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2422
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1757
echo "${ECHO_T}$ac_cv_exeext" >&6
2423
echo "${ECHO_T}$ac_cv_exeext" >&6; }
1758
2424
1759
rm -f conftest.$ac_ext
2425
rm -f conftest.$ac_ext
1760
EXEEXT=$ac_cv_exeext
2426
EXEEXT=$ac_cv_exeext
1761
ac_exeext=$EXEEXT
2427
ac_exeext=$EXEEXT
1762
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2428
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
1763
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2429
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
1764
if test "${ac_cv_objext+set}" = set; then
2430
if test "${ac_cv_objext+set}" = set; then
1765
  echo $ECHO_N "(cached) $ECHO_C" >&6
2431
  echo $ECHO_N "(cached) $ECHO_C" >&6
1766
else
2432
else
1767
  cat >conftest.$ac_ext <<_ACEOF
2433
  cat >conftest.$ac_ext <<_ACEOF
1768
/* confdefs.h.  */
2434
/* confdefs.h.  */
...
...
1778
  ;
2444
  ;
1779
  return 0;
2445
  return 0;
1780
}
2446
}
1781
_ACEOF
2447
_ACEOF
1782
rm -f conftest.o conftest.obj
2448
rm -f conftest.o conftest.obj
2449
if { (ac_try="$ac_compile"
2450
case "(($ac_try" in
2451
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2452
  *) ac_try_echo=$ac_try;;
2453
esac
1783
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2454
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1784
  (eval $ac_compile) 2>&5
2455
  (eval "$ac_compile") 2>&5
1785
  ac_status=$?
2456
  ac_status=$?
1786
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1787
  (exit $ac_status); }; then
2458
  (exit $ac_status); }; then
1788
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2459
  for ac_file in conftest.o conftest.obj conftest.*; do
2460
  test -f "$ac_file" || continue;
1789
  case $ac_file in
2461
  case $ac_file in
1790
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2462
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
1791
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2463
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1792
       break;;
2464
       break;;
1793
  esac
2465
  esac
1794
done
2466
done
1795
else
2467
else
...
...
1803
   { (exit 1); exit 1; }; }
2475
   { (exit 1); exit 1; }; }
1804
fi
2476
fi
1805
2477
1806
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2478
rm -f conftest.$ac_cv_objext conftest.$ac_ext
1807
fi
2479
fi
1808
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2480
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1809
echo "${ECHO_T}$ac_cv_objext" >&6
2481
echo "${ECHO_T}$ac_cv_objext" >&6; }
1810
OBJEXT=$ac_cv_objext
2482
OBJEXT=$ac_cv_objext
1811
ac_objext=$OBJEXT
2483
ac_objext=$OBJEXT
1812
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2484
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1813
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2485
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
1814
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2486
if test "${ac_cv_c_compiler_gnu+set}" = set; then
1815
  echo $ECHO_N "(cached) $ECHO_C" >&6
2487
  echo $ECHO_N "(cached) $ECHO_C" >&6
1816
else
2488
else
1817
  cat >conftest.$ac_ext <<_ACEOF
2489
  cat >conftest.$ac_ext <<_ACEOF
1818
/* confdefs.h.  */
2490
/* confdefs.h.  */
1819
_ACEOF
2491
_ACEOF
...
...
1831
  ;
2503
  ;
1832
  return 0;
2504
  return 0;
1833
}
2505
}
1834
_ACEOF
2506
_ACEOF
1835
rm -f conftest.$ac_objext
2507
rm -f conftest.$ac_objext
2508
if { (ac_try="$ac_compile"
2509
case "(($ac_try" in
2510
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2511
  *) ac_try_echo=$ac_try;;
2512
esac
1836
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2513
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1837
  (eval $ac_compile) 2>conftest.er1
2514
  (eval "$ac_compile") 2>conftest.er1
1838
  ac_status=$?
2515
  ac_status=$?
1839
  grep -v '^ *+' conftest.er1 >conftest.err
2516
  grep -v '^ *+' conftest.er1 >conftest.err
1840
  rm -f conftest.er1
2517
  rm -f conftest.er1
1841
  cat conftest.err >&5
2518
  cat conftest.err >&5
1842
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1843
  (exit $ac_status); } &&
2520
  (exit $ac_status); } && {
1844
     { ac_try='test -z "$ac_cxx_werror_flag"
2521
     test -z "$ac_c_werror_flag" ||
1845
           || test ! -s conftest.err'
2522
     test ! -s conftest.err
1846
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2523
       } && test -s conftest.$ac_objext; then
1847
  (eval $ac_try) 2>&5
1848
  ac_status=$?
1849
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1850
  (exit $ac_status); }; } &&
1851
   { ac_try='test -s conftest.$ac_objext'
1852
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1853
  (eval $ac_try) 2>&5
1854
  ac_status=$?
1855
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1856
  (exit $ac_status); }; }; then
1857
  ac_compiler_gnu=yes
2524
  ac_compiler_gnu=yes
1858
else
2525
else
1859
  echo "$as_me: failed program was:" >&5
2526
  echo "$as_me: failed program was:" >&5
1860
sed 's/^/| /' conftest.$ac_ext >&5
2527
sed 's/^/| /' conftest.$ac_ext >&5
1861
2528
1862
ac_compiler_gnu=no
2529
  ac_compiler_gnu=no
1863
fi
2530
fi
2531
1864
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2532
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1865
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2533
ac_cv_c_compiler_gnu=$ac_compiler_gnu
1866
2534
1867
fi
2535
fi
1868
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2536
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1869
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2537
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
1870
GXX=`test $ac_compiler_gnu = yes && echo yes`
2538
GCC=`test $ac_compiler_gnu = yes && echo yes`
1871
ac_test_CXXFLAGS=${CXXFLAGS+set}
2539
ac_test_CFLAGS=${CFLAGS+set}
1872
ac_save_CXXFLAGS=$CXXFLAGS
2540
ac_save_CFLAGS=$CFLAGS
1873
CXXFLAGS="-g"
1874
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2541
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1875
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2542
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
1876
if test "${ac_cv_prog_cxx_g+set}" = set; then
2543
if test "${ac_cv_prog_cc_g+set}" = set; then
1877
  echo $ECHO_N "(cached) $ECHO_C" >&6
2544
  echo $ECHO_N "(cached) $ECHO_C" >&6
1878
else
2545
else
2546
  ac_save_c_werror_flag=$ac_c_werror_flag
2547
   ac_c_werror_flag=yes
2548
   ac_cv_prog_cc_g=no
2549
   CFLAGS="-g"
1879
  cat >conftest.$ac_ext <<_ACEOF
2550
   cat >conftest.$ac_ext <<_ACEOF
1880
/* confdefs.h.  */
2551
/* confdefs.h.  */
1881
_ACEOF
2552
_ACEOF
1882
cat confdefs.h >>conftest.$ac_ext
2553
cat confdefs.h >>conftest.$ac_ext
1883
cat >>conftest.$ac_ext <<_ACEOF
2554
cat >>conftest.$ac_ext <<_ACEOF
1884
/* end confdefs.h.  */
2555
/* end confdefs.h.  */
...
...
1890
  ;
2561
  ;
1891
  return 0;
2562
  return 0;
1892
}
2563
}
1893
_ACEOF
2564
_ACEOF
1894
rm -f conftest.$ac_objext
2565
rm -f conftest.$ac_objext
2566
if { (ac_try="$ac_compile"
2567
case "(($ac_try" in
2568
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569
  *) ac_try_echo=$ac_try;;
2570
esac
1895
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2571
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1896
  (eval $ac_compile) 2>conftest.er1
2572
  (eval "$ac_compile") 2>conftest.er1
1897
  ac_status=$?
2573
  ac_status=$?
1898
  grep -v '^ *+' conftest.er1 >conftest.err
2574
  grep -v '^ *+' conftest.er1 >conftest.err
1899
  rm -f conftest.er1
2575
  rm -f conftest.er1
1900
  cat conftest.err >&5
2576
  cat conftest.err >&5
1901
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1902
  (exit $ac_status); } &&
2578
  (exit $ac_status); } && {
1903
     { ac_try='test -z "$ac_cxx_werror_flag"
2579
     test -z "$ac_c_werror_flag" ||
1904
           || test ! -s conftest.err'
2580
     test ! -s conftest.err
2581
       } && test -s conftest.$ac_objext; then
2582
  ac_cv_prog_cc_g=yes
2583
else
2584
  echo "$as_me: failed program was:" >&5
2585
sed 's/^/| /' conftest.$ac_ext >&5
2586
2587
  CFLAGS=""
2588
      cat >conftest.$ac_ext <<_ACEOF
2589
/* confdefs.h.  */
2590
_ACEOF
2591
cat confdefs.h >>conftest.$ac_ext
2592
cat >>conftest.$ac_ext <<_ACEOF
2593
/* end confdefs.h.  */
2594
2595
int
2596
main ()
2597
{
2598
2599
  ;
2600
  return 0;
2601
}
2602
_ACEOF
2603
rm -f conftest.$ac_objext
2604
if { (ac_try="$ac_compile"
2605
case "(($ac_try" in
2606
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2607
  *) ac_try_echo=$ac_try;;
2608
esac
1905
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1906
  (eval $ac_try) 2>&5
2610
  (eval "$ac_compile") 2>conftest.er1
2611
  ac_status=$?
2612
  grep -v '^ *+' conftest.er1 >conftest.err
2613
  rm -f conftest.er1
2614
  cat conftest.err >&5
2615
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616
  (exit $ac_status); } && {
2617
   test -z "$ac_c_werror_flag" ||
2618
   test ! -s conftest.err
2619
       } && test -s conftest.$ac_objext; then
2620
  :
2621
else
2622
  echo "$as_me: failed program was:" >&5
2623
sed 's/^/| /' conftest.$ac_ext >&5
2624
2625
  ac_c_werror_flag=$ac_save_c_werror_flag
2626
   CFLAGS="-g"
2627
   cat >conftest.$ac_ext <<_ACEOF
2628
/* confdefs.h.  */
2629
_ACEOF
2630
cat confdefs.h >>conftest.$ac_ext
2631
cat >>conftest.$ac_ext <<_ACEOF
2632
/* end confdefs.h.  */
2633
2634
int
2635
main ()
2636
{
2637
2638
  ;
2639
  return 0;
2640
}
2641
_ACEOF
2642
rm -f conftest.$ac_objext
2643
if { (ac_try="$ac_compile"
2644
case "(($ac_try" in
2645
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2646
  *) ac_try_echo=$ac_try;;
2647
esac
2648
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2649
  (eval "$ac_compile") 2>conftest.er1
2650
  ac_status=$?
2651
  grep -v '^ *+' conftest.er1 >conftest.err
2652
  rm -f conftest.er1
2653
  cat conftest.err >&5
2654
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655
  (exit $ac_status); } && {
2656
   test -z "$ac_c_werror_flag" ||
2657
   test ! -s conftest.err
2658
       } && test -s conftest.$ac_objext; then
2659
  ac_cv_prog_cc_g=yes
2660
else
2661
  echo "$as_me: failed program was:" >&5
2662
sed 's/^/| /' conftest.$ac_ext >&5
2663
2664
2665
fi
2666
2667
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2668
fi
2669
2670
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2671
fi
2672
2673
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2674
   ac_c_werror_flag=$ac_save_c_werror_flag
2675
fi
2676
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2677
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2678
if test "$ac_test_CFLAGS" = set; then
2679
  CFLAGS=$ac_save_CFLAGS
2680
elif test $ac_cv_prog_cc_g = yes; then
2681
  if test "$GCC" = yes; then
2682
    CFLAGS="-g -O2"
2683
  else
2684
    CFLAGS="-g"
2685
  fi
2686
else
2687
  if test "$GCC" = yes; then
2688
    CFLAGS="-O2"
2689
  else
2690
    CFLAGS=
2691
  fi
2692
fi
2693
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2694
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2695
if test "${ac_cv_prog_cc_c89+set}" = set; then
2696
  echo $ECHO_N "(cached) $ECHO_C" >&6
2697
else
2698
  ac_cv_prog_cc_c89=no
2699
ac_save_CC=$CC
2700
cat >conftest.$ac_ext <<_ACEOF
2701
/* confdefs.h.  */
2702
_ACEOF
2703
cat confdefs.h >>conftest.$ac_ext
2704
cat >>conftest.$ac_ext <<_ACEOF
2705
/* end confdefs.h.  */
2706
#include <stdarg.h>
2707
#include <stdio.h>
2708
#include <sys/types.h>
2709
#include <sys/stat.h>
2710
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2711
struct buf { int x; };
2712
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2713
static char *e (p, i)
2714
     char **p;
2715
     int i;
2716
{
2717
  return p[i];
2718
}
2719
static char *f (char * (*g) (char **, int), char **p, ...)
2720
{
2721
  char *s;
2722
  va_list v;
2723
  va_start (v,p);
2724
  s = g (p, va_arg (v,int));
2725
  va_end (v);
2726
  return s;
2727
}
2728
2729
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2730
   function prototypes and stuff, but not '\xHH' hex character constants.
2731
   These don't provoke an error unfortunately, instead are silently treated
2732
   as 'x'.  The following induces an error, until -std is added to get
2733
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2734
   array size at least.  It's necessary to write '\x00'==0 to get something
2735
   that's true only with -std.  */
2736
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2737
2738
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2739
   inside strings and character constants.  */
2740
#define FOO(x) 'x'
2741
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2742
2743
int test (int i, double x);
2744
struct s1 {int (*f) (int a);};
2745
struct s2 {int (*f) (double a);};
2746
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2747
int argc;
2748
char **argv;
2749
int
2750
main ()
2751
{
2752
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2753
  ;
2754
  return 0;
2755
}
2756
_ACEOF
2757
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2758
  -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2759
do
2760
  CC="$ac_save_CC $ac_arg"
2761
  rm -f conftest.$ac_objext
2762
if { (ac_try="$ac_compile"
2763
case "(($ac_try" in
2764
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2765
  *) ac_try_echo=$ac_try;;
2766
esac
2767
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2768
  (eval "$ac_compile") 2>conftest.er1
2769
  ac_status=$?
2770
  grep -v '^ *+' conftest.er1 >conftest.err
2771
  rm -f conftest.er1
2772
  cat conftest.err >&5
2773
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774
  (exit $ac_status); } && {
2775
   test -z "$ac_c_werror_flag" ||
2776
   test ! -s conftest.err
2777
       } && test -s conftest.$ac_objext; then
2778
  ac_cv_prog_cc_c89=$ac_arg
2779
else
2780
  echo "$as_me: failed program was:" >&5
2781
sed 's/^/| /' conftest.$ac_ext >&5
2782
2783
2784
fi
2785
2786
rm -f core conftest.err conftest.$ac_objext
2787
  test "x$ac_cv_prog_cc_c89" != "xno" && break
2788
done
2789
rm -f conftest.$ac_ext
2790
CC=$ac_save_CC
2791
2792
fi
2793
# AC_CACHE_VAL
2794
case "x$ac_cv_prog_cc_c89" in
2795
  x)
2796
    { echo "$as_me:$LINENO: result: none needed" >&5
2797
echo "${ECHO_T}none needed" >&6; } ;;
2798
  xno)
2799
    { echo "$as_me:$LINENO: result: unsupported" >&5
2800
echo "${ECHO_T}unsupported" >&6; } ;;
2801
  *)
2802
    CC="$CC $ac_cv_prog_cc_c89"
2803
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2804
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2805
esac
2806
2807
2808
ac_ext=c
2809
ac_cpp='$CPP $CPPFLAGS'
2810
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2811
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2812
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2813
2814
2815
2816
for ac_func in mkdtemp
2817
do
2818
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2819
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
2820
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
2821
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2822
  echo $ECHO_N "(cached) $ECHO_C" >&6
2823
else
2824
  cat >conftest.$ac_ext <<_ACEOF
2825
/* confdefs.h.  */
2826
_ACEOF
2827
cat confdefs.h >>conftest.$ac_ext
2828
cat >>conftest.$ac_ext <<_ACEOF
2829
/* end confdefs.h.  */
2830
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2831
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2832
#define $ac_func innocuous_$ac_func
2833
2834
/* System header to define __stub macros and hopefully few prototypes,
2835
    which can conflict with char $ac_func (); below.
2836
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2837
    <limits.h> exists even on freestanding compilers.  */
2838
2839
#ifdef __STDC__
2840
# include <limits.h>
2841
#else
2842
# include <assert.h>
2843
#endif
2844
2845
#undef $ac_func
2846
2847
/* Override any GCC internal prototype to avoid an error.
2848
   Use char because int might match the return type of a GCC
2849
   builtin and then its argument prototype would still apply.  */
2850
#ifdef __cplusplus
2851
extern "C"
2852
#endif
2853
char $ac_func ();
2854
/* The GNU C library defines this for functions which it implements
2855
    to always fail with ENOSYS.  Some functions are actually named
2856
    something starting with __ and the normal name is an alias.  */
2857
#if defined __stub_$ac_func || defined __stub___$ac_func
2858
choke me
2859
#endif
2860
2861
int
2862
main ()
2863
{
2864
return $ac_func ();
2865
  ;
2866
  return 0;
2867
}
2868
_ACEOF
2869
rm -f conftest.$ac_objext conftest$ac_exeext
2870
if { (ac_try="$ac_link"
2871
case "(($ac_try" in
2872
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873
  *) ac_try_echo=$ac_try;;
2874
esac
2875
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2876
  (eval "$ac_link") 2>conftest.er1
2877
  ac_status=$?
2878
  grep -v '^ *+' conftest.er1 >conftest.err
2879
  rm -f conftest.er1
2880
  cat conftest.err >&5
2881
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882
  (exit $ac_status); } && {
2883
   test -z "$ac_c_werror_flag" ||
2884
   test ! -s conftest.err
2885
       } && test -s conftest$ac_exeext &&
2886
       $as_test_x conftest$ac_exeext; then
2887
  eval "$as_ac_var=yes"
2888
else
2889
  echo "$as_me: failed program was:" >&5
2890
sed 's/^/| /' conftest.$ac_ext >&5
2891
2892
  eval "$as_ac_var=no"
2893
fi
2894
2895
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2896
      conftest$ac_exeext conftest.$ac_ext
2897
fi
2898
ac_res=`eval echo '${'$as_ac_var'}'`
2899
         { echo "$as_me:$LINENO: result: $ac_res" >&5
2900
echo "${ECHO_T}$ac_res" >&6; }
2901
if test `eval echo '${'$as_ac_var'}'` = yes; then
2902
  cat >>confdefs.h <<_ACEOF
2903
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2904
_ACEOF
2905
2906
fi
2907
done
2908
2909
2910
##### Look for iconv. We first look for libiconv in /usr/local/lib:/usr/lib
2911
##    then in libc (Linux, solaris)
2912
ac_ext=cpp
2913
ac_cpp='$CXXCPP $CPPFLAGS'
2914
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2915
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2916
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2917
2918
LIBICONV=""
2919
S_LDFLAGS=$LDFLAGS
2920
dir=/usr/local/lib
2921
LDFLAGS="$S_LDFLAGS -L$dir"
2922
unset ac_cv_lib_iconv_iconv_open
2923
ac_ext=cpp
2924
ac_cpp='$CXXCPP $CPPFLAGS'
2925
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2926
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2927
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2928
if test -z "$CXX"; then
2929
  if test -n "$CCC"; then
2930
    CXX=$CCC
2931
  else
2932
    if test -n "$ac_tool_prefix"; then
2933
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2934
  do
2935
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2936
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2937
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2938
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2939
if test "${ac_cv_prog_CXX+set}" = set; then
2940
  echo $ECHO_N "(cached) $ECHO_C" >&6
2941
else
2942
  if test -n "$CXX"; then
2943
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2944
else
2945
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946
for as_dir in $PATH
2947
do
2948
  IFS=$as_save_IFS
2949
  test -z "$as_dir" && as_dir=.
2950
  for ac_exec_ext in '' $ac_executable_extensions; do
2951
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2952
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2953
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2954
    break 2
2955
  fi
2956
done
2957
done
2958
IFS=$as_save_IFS
2959
2960
fi
2961
fi
2962
CXX=$ac_cv_prog_CXX
2963
if test -n "$CXX"; then
2964
  { echo "$as_me:$LINENO: result: $CXX" >&5
2965
echo "${ECHO_T}$CXX" >&6; }
2966
else
2967
  { echo "$as_me:$LINENO: result: no" >&5
2968
echo "${ECHO_T}no" >&6; }
2969
fi
2970
2971
2972
    test -n "$CXX" && break
2973
  done
2974
fi
2975
if test -z "$CXX"; then
2976
  ac_ct_CXX=$CXX
2977
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2978
do
2979
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2980
set dummy $ac_prog; ac_word=$2
2981
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2982
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2983
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2984
  echo $ECHO_N "(cached) $ECHO_C" >&6
2985
else
2986
  if test -n "$ac_ct_CXX"; then
2987
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2988
else
2989
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990
for as_dir in $PATH
2991
do
2992
  IFS=$as_save_IFS
2993
  test -z "$as_dir" && as_dir=.
2994
  for ac_exec_ext in '' $ac_executable_extensions; do
2995
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2996
    ac_cv_prog_ac_ct_CXX="$ac_prog"
2997
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2998
    break 2
2999
  fi
3000
done
3001
done
3002
IFS=$as_save_IFS
3003
3004
fi
3005
fi
3006
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3007
if test -n "$ac_ct_CXX"; then
3008
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3009
echo "${ECHO_T}$ac_ct_CXX" >&6; }
3010
else
3011
  { echo "$as_me:$LINENO: result: no" >&5
3012
echo "${ECHO_T}no" >&6; }
3013
fi
3014
3015
3016
  test -n "$ac_ct_CXX" && break
3017
done
3018
3019
  if test "x$ac_ct_CXX" = x; then
3020
    CXX="g++"
3021
  else
3022
    case $cross_compiling:$ac_tool_warned in
3023
yes:)
3024
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3025
whose name does not start with the host triplet.  If you think this
3026
configuration is useful to you, please write to autoconf@gnu.org." >&5
3027
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3028
whose name does not start with the host triplet.  If you think this
3029
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3030
ac_tool_warned=yes ;;
3031
esac
3032
    CXX=$ac_ct_CXX
3033
  fi
3034
fi
3035
3036
  fi
3037
fi
3038
# Provide some information about the compiler.
3039
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3040
ac_compiler=`set X $ac_compile; echo $2`
3041
{ (ac_try="$ac_compiler --version >&5"
3042
case "(($ac_try" in
3043
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044
  *) ac_try_echo=$ac_try;;
3045
esac
3046
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047
  (eval "$ac_compiler --version >&5") 2>&5
1907
  ac_status=$?
3048
  ac_status=$?
1908
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1909
  (exit $ac_status); }; } &&
3050
  (exit $ac_status); }
1910
   { ac_try='test -s conftest.$ac_objext'
3051
{ (ac_try="$ac_compiler -v >&5"
3052
case "(($ac_try" in
3053
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054
  *) ac_try_echo=$ac_try;;
3055
esac
1911
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3056
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1912
  (eval $ac_try) 2>&5
3057
  (eval "$ac_compiler -v >&5") 2>&5
1913
  ac_status=$?
3058
  ac_status=$?
1914
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1915
  (exit $ac_status); }; }; then
3060
  (exit $ac_status); }
1916
  ac_cv_prog_cxx_g=yes
3061
{ (ac_try="$ac_compiler -V >&5"
3062
case "(($ac_try" in
3063
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064
  *) ac_try_echo=$ac_try;;
3065
esac
3066
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067
  (eval "$ac_compiler -V >&5") 2>&5
3068
  ac_status=$?
3069
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070
  (exit $ac_status); }
3071
3072
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3073
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3074
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3075
  echo $ECHO_N "(cached) $ECHO_C" >&6
3076
else
3077
  cat >conftest.$ac_ext <<_ACEOF
3078
/* confdefs.h.  */
3079
_ACEOF
3080
cat confdefs.h >>conftest.$ac_ext
3081
cat >>conftest.$ac_ext <<_ACEOF
3082
/* end confdefs.h.  */
3083
3084
int
3085
main ()
3086
{
3087
#ifndef __GNUC__
3088
       choke me
3089
#endif
3090
3091
  ;
3092
  return 0;
3093
}
3094
_ACEOF
3095
rm -f conftest.$ac_objext
3096
if { (ac_try="$ac_compile"
3097
case "(($ac_try" in
3098
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099
  *) ac_try_echo=$ac_try;;
3100
esac
3101
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102
  (eval "$ac_compile") 2>conftest.er1
3103
  ac_status=$?
3104
  grep -v '^ *+' conftest.er1 >conftest.err
3105
  rm -f conftest.er1
3106
  cat conftest.err >&5
3107
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108
  (exit $ac_status); } && {
3109
   test -z "$ac_cxx_werror_flag" ||
3110
   test ! -s conftest.err
3111
       } && test -s conftest.$ac_objext; then
3112
  ac_compiler_gnu=yes
1917
else
3113
else
1918
  echo "$as_me: failed program was:" >&5
3114
  echo "$as_me: failed program was:" >&5
1919
sed 's/^/| /' conftest.$ac_ext >&5
3115
sed 's/^/| /' conftest.$ac_ext >&5
1920
3116
1921
ac_cv_prog_cxx_g=no
3117
  ac_compiler_gnu=no
1922
fi
3118
fi
3119
1923
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3120
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3121
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3122
1924
fi
3123
fi
3124
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3125
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3126
GXX=`test $ac_compiler_gnu = yes && echo yes`
3127
ac_test_CXXFLAGS=${CXXFLAGS+set}
3128
ac_save_CXXFLAGS=$CXXFLAGS
3129
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3130
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3131
if test "${ac_cv_prog_cxx_g+set}" = set; then
3132
  echo $ECHO_N "(cached) $ECHO_C" >&6
3133
else
3134
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3135
   ac_cxx_werror_flag=yes
3136
   ac_cv_prog_cxx_g=no
3137
   CXXFLAGS="-g"
3138
   cat >conftest.$ac_ext <<_ACEOF
3139
/* confdefs.h.  */
3140
_ACEOF
3141
cat confdefs.h >>conftest.$ac_ext
3142
cat >>conftest.$ac_ext <<_ACEOF
3143
/* end confdefs.h.  */
3144
3145
int
3146
main ()
3147
{
3148
3149
  ;
3150
  return 0;
3151
}
3152
_ACEOF
3153
rm -f conftest.$ac_objext
3154
if { (ac_try="$ac_compile"
3155
case "(($ac_try" in
3156
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157
  *) ac_try_echo=$ac_try;;
3158
esac
3159
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3160
  (eval "$ac_compile") 2>conftest.er1
3161
  ac_status=$?
3162
  grep -v '^ *+' conftest.er1 >conftest.err
3163
  rm -f conftest.er1
3164
  cat conftest.err >&5
3165
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166
  (exit $ac_status); } && {
3167
   test -z "$ac_cxx_werror_flag" ||
3168
   test ! -s conftest.err
3169
       } && test -s conftest.$ac_objext; then
3170
  ac_cv_prog_cxx_g=yes
3171
else
3172
  echo "$as_me: failed program was:" >&5
3173
sed 's/^/| /' conftest.$ac_ext >&5
3174
3175
  CXXFLAGS=""
3176
      cat >conftest.$ac_ext <<_ACEOF
3177
/* confdefs.h.  */
3178
_ACEOF
3179
cat confdefs.h >>conftest.$ac_ext
3180
cat >>conftest.$ac_ext <<_ACEOF
3181
/* end confdefs.h.  */
3182
3183
int
3184
main ()
3185
{
3186
3187
  ;
3188
  return 0;
3189
}
3190
_ACEOF
3191
rm -f conftest.$ac_objext
3192
if { (ac_try="$ac_compile"
3193
case "(($ac_try" in
3194
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195
  *) ac_try_echo=$ac_try;;
3196
esac
3197
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198
  (eval "$ac_compile") 2>conftest.er1
3199
  ac_status=$?
3200
  grep -v '^ *+' conftest.er1 >conftest.err
3201
  rm -f conftest.er1
3202
  cat conftest.err >&5
3203
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204
  (exit $ac_status); } && {
3205
   test -z "$ac_cxx_werror_flag" ||
3206
   test ! -s conftest.err
3207
       } && test -s conftest.$ac_objext; then
3208
  :
3209
else
3210
  echo "$as_me: failed program was:" >&5
3211
sed 's/^/| /' conftest.$ac_ext >&5
3212
3213
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3214
   CXXFLAGS="-g"
3215
   cat >conftest.$ac_ext <<_ACEOF
3216
/* confdefs.h.  */
3217
_ACEOF
3218
cat confdefs.h >>conftest.$ac_ext
3219
cat >>conftest.$ac_ext <<_ACEOF
3220
/* end confdefs.h.  */
3221
3222
int
3223
main ()
3224
{
3225
3226
  ;
3227
  return 0;
3228
}
3229
_ACEOF
3230
rm -f conftest.$ac_objext
3231
if { (ac_try="$ac_compile"
3232
case "(($ac_try" in
3233
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234
  *) ac_try_echo=$ac_try;;
3235
esac
3236
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237
  (eval "$ac_compile") 2>conftest.er1
3238
  ac_status=$?
3239
  grep -v '^ *+' conftest.er1 >conftest.err
3240
  rm -f conftest.er1
3241
  cat conftest.err >&5
3242
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243
  (exit $ac_status); } && {
3244
   test -z "$ac_cxx_werror_flag" ||
3245
   test ! -s conftest.err
3246
       } && test -s conftest.$ac_objext; then
3247
  ac_cv_prog_cxx_g=yes
3248
else
3249
  echo "$as_me: failed program was:" >&5
3250
sed 's/^/| /' conftest.$ac_ext >&5
3251
3252
3253
fi
3254
3255
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3256
fi
3257
3258
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3259
fi
3260
3261
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3262
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3263
fi
1925
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3264
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
1926
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3265
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
1927
if test "$ac_test_CXXFLAGS" = set; then
3266
if test "$ac_test_CXXFLAGS" = set; then
1928
  CXXFLAGS=$ac_save_CXXFLAGS
3267
  CXXFLAGS=$ac_save_CXXFLAGS
1929
elif test $ac_cv_prog_cxx_g = yes; then
3268
elif test $ac_cv_prog_cxx_g = yes; then
1930
  if test "$GXX" = yes; then
3269
  if test "$GXX" = yes; then
1931
    CXXFLAGS="-g -O2"
3270
    CXXFLAGS="-g -O2"
...
...
1937
    CXXFLAGS="-O2"
3276
    CXXFLAGS="-O2"
1938
  else
3277
  else
1939
    CXXFLAGS=
3278
    CXXFLAGS=
1940
  fi
3279
  fi
1941
fi
3280
fi
1942
for ac_declaration in \
3281
ac_ext=cpp
1943
   '' \
3282
ac_cpp='$CXXCPP $CPPFLAGS'
1944
   'extern "C" void std::exit (int) throw (); using std::exit;' \
3283
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1945
   'extern "C" void std::exit (int); using std::exit;' \
3284
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1946
   'extern "C" void exit (int) throw ();' \
3285
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1947
   'extern "C" void exit (int);' \
3286
1948
   'void exit (int);'
3287
1949
do
3288
{ echo "$as_me:$LINENO: checking for iconv_open in -liconv" >&5
3289
echo $ECHO_N "checking for iconv_open in -liconv... $ECHO_C" >&6; }
3290
if test "${ac_cv_lib_iconv_iconv_open+set}" = set; then
3291
  echo $ECHO_N "(cached) $ECHO_C" >&6
3292
else
3293
  ac_check_lib_save_LIBS=$LIBS
3294
LIBS="-liconv  $LIBS"
1950
  cat >conftest.$ac_ext <<_ACEOF
3295
cat >conftest.$ac_ext <<_ACEOF
1951
/* confdefs.h.  */
3296
/* confdefs.h.  */
1952
_ACEOF
3297
_ACEOF
1953
cat confdefs.h >>conftest.$ac_ext
3298
cat confdefs.h >>conftest.$ac_ext
1954
cat >>conftest.$ac_ext <<_ACEOF
3299
cat >>conftest.$ac_ext <<_ACEOF
1955
/* end confdefs.h.  */
3300
/* end confdefs.h.  */
1956
$ac_declaration
3301
1957
#include <stdlib.h>
3302
/* Override any GCC internal prototype to avoid an error.
3303
   Use char because int might match the return type of a GCC
3304
   builtin and then its argument prototype would still apply.  */
3305
#ifdef __cplusplus
3306
extern "C"
3307
#endif
3308
char iconv_open ();
1958
int
3309
int
1959
main ()
3310
main ()
1960
{
3311
{
1961
exit (42);
3312
return iconv_open ();
1962
  ;
3313
  ;
1963
  return 0;
3314
  return 0;
1964
}
3315
}
1965
_ACEOF
3316
_ACEOF
1966
rm -f conftest.$ac_objext
3317
rm -f conftest.$ac_objext conftest$ac_exeext
3318
if { (ac_try="$ac_link"
3319
case "(($ac_try" in
3320
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321
  *) ac_try_echo=$ac_try;;
3322
esac
1967
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3323
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1968
  (eval $ac_compile) 2>conftest.er1
3324
  (eval "$ac_link") 2>conftest.er1
1969
  ac_status=$?
3325
  ac_status=$?
1970
  grep -v '^ *+' conftest.er1 >conftest.err
3326
  grep -v '^ *+' conftest.er1 >conftest.err
1971
  rm -f conftest.er1
3327
  rm -f conftest.er1
1972
  cat conftest.err >&5
3328
  cat conftest.err >&5
1973
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974
  (exit $ac_status); } &&
3330
  (exit $ac_status); } && {
1975
     { ac_try='test -z "$ac_cxx_werror_flag"
3331
     test -z "$ac_cxx_werror_flag" ||
1976
           || test ! -s conftest.err'
3332
     test ! -s conftest.err
1977
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3333
       } && test -s conftest$ac_exeext &&
1978
  (eval $ac_try) 2>&5
3334
       $as_test_x conftest$ac_exeext; then
1979
  ac_status=$?
3335
  ac_cv_lib_iconv_iconv_open=yes
1980
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1981
  (exit $ac_status); }; } &&
1982
   { ac_try='test -s conftest.$ac_objext'
1983
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1984
  (eval $ac_try) 2>&5
1985
  ac_status=$?
1986
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1987
  (exit $ac_status); }; }; then
1988
  :
1989
else
3336
else
1990
  echo "$as_me: failed program was:" >&5
3337
  echo "$as_me: failed program was:" >&5
1991
sed 's/^/| /' conftest.$ac_ext >&5
3338
sed 's/^/| /' conftest.$ac_ext >&5
1992
3339
1993
continue
3340
  ac_cv_lib_iconv_iconv_open=no
1994
fi
3341
fi
3342
1995
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3343
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3344
      conftest$ac_exeext conftest.$ac_ext
3345
LIBS=$ac_check_lib_save_LIBS
3346
fi
3347
{ echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv_open" >&5
3348
echo "${ECHO_T}$ac_cv_lib_iconv_iconv_open" >&6; }
3349
if test $ac_cv_lib_iconv_iconv_open = yes; then
3350
  LIBICONV="-L$dir -liconv";INCICONV=-I/usr/local/include
3351
fi
3352
3353
if test A"$LIBICONV" = A ; then
3354
  dir=${libdir}
3355
  LDFLAGS="$S_LDFLAGS -L$dir"
3356
  unset ac_cv_lib_iconv_iconv_open
3357
  { echo "$as_me:$LINENO: checking for iconv_open in -liconv" >&5
3358
echo $ECHO_N "checking for iconv_open in -liconv... $ECHO_C" >&6; }
3359
if test "${ac_cv_lib_iconv_iconv_open+set}" = set; then
3360
  echo $ECHO_N "(cached) $ECHO_C" >&6
3361
else
3362
  ac_check_lib_save_LIBS=$LIBS
3363
LIBS="-liconv  $LIBS"
1996
  cat >conftest.$ac_ext <<_ACEOF
3364
cat >conftest.$ac_ext <<_ACEOF
1997
/* confdefs.h.  */
3365
/* confdefs.h.  */
1998
_ACEOF
3366
_ACEOF
1999
cat confdefs.h >>conftest.$ac_ext
3367
cat confdefs.h >>conftest.$ac_ext
2000
cat >>conftest.$ac_ext <<_ACEOF
3368
cat >>conftest.$ac_ext <<_ACEOF
2001
/* end confdefs.h.  */
3369
/* end confdefs.h.  */
2002
$ac_declaration
3370
3371
/* Override any GCC internal prototype to avoid an error.
3372
   Use char because int might match the return type of a GCC
3373
   builtin and then its argument prototype would still apply.  */
3374
#ifdef __cplusplus
3375
extern "C"
3376
#endif
3377
char iconv_open ();
2003
int
3378
int
2004
main ()
3379
main ()
2005
{
3380
{
2006
exit (42);
3381
return iconv_open ();
2007
  ;
3382
  ;
2008
  return 0;
3383
  return 0;
2009
}
3384
}
2010
_ACEOF
3385
_ACEOF
2011
rm -f conftest.$ac_objext
3386
rm -f conftest.$ac_objext conftest$ac_exeext
3387
if { (ac_try="$ac_link"
3388
case "(($ac_try" in
3389
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390
  *) ac_try_echo=$ac_try;;
3391
esac
2012
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3392
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2013
  (eval $ac_compile) 2>conftest.er1
3393
  (eval "$ac_link") 2>conftest.er1
2014
  ac_status=$?
3394
  ac_status=$?
2015
  grep -v '^ *+' conftest.er1 >conftest.err
3395
  grep -v '^ *+' conftest.er1 >conftest.err
2016
  rm -f conftest.er1
3396
  rm -f conftest.er1
2017
  cat conftest.err >&5
3397
  cat conftest.err >&5
2018
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2019
  (exit $ac_status); } &&
3399
  (exit $ac_status); } && {
2020
     { ac_try='test -z "$ac_cxx_werror_flag"
3400
     test -z "$ac_cxx_werror_flag" ||
2021
           || test ! -s conftest.err'
3401
     test ! -s conftest.err
2022
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3402
       } && test -s conftest$ac_exeext &&
2023
  (eval $ac_try) 2>&5
3403
       $as_test_x conftest$ac_exeext; then
2024
  ac_status=$?
3404
  ac_cv_lib_iconv_iconv_open=yes
2025
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2026
  (exit $ac_status); }; } &&
2027
   { ac_try='test -s conftest.$ac_objext'
2028
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2029
  (eval $ac_try) 2>&5
2030
  ac_status=$?
2031
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032
  (exit $ac_status); }; }; then
2033
  break
2034
else
3405
else
2035
  echo "$as_me: failed program was:" >&5
3406
  echo "$as_me: failed program was:" >&5
2036
sed 's/^/| /' conftest.$ac_ext >&5
3407
sed 's/^/| /' conftest.$ac_ext >&5
2037
3408
3409
  ac_cv_lib_iconv_iconv_open=no
2038
fi
3410
fi
3411
2039
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3412
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2040
done
3413
      conftest$ac_exeext conftest.$ac_ext
2041
rm -f conftest*
3414
LIBS=$ac_check_lib_save_LIBS
2042
if test -n "$ac_declaration"; then
2043
  echo '#ifdef __cplusplus' >>confdefs.h
2044
  echo $ac_declaration      >>confdefs.h
2045
  echo '#endif'             >>confdefs.h
2046
fi
3415
fi
3416
{ echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv_open" >&5
3417
echo "${ECHO_T}$ac_cv_lib_iconv_iconv_open" >&6; }
3418
if test $ac_cv_lib_iconv_iconv_open = yes; then
3419
  LIBICONV="-L$dir -liconv";INCICONV=-I/usr/include
3420
fi
2047
3421
2048
ac_ext=cc
3422
  if test A"$LIBICONV" = A; then
2049
ac_cpp='$CXXCPP $CPPFLAGS'
3423
    dir=${libdir}
2050
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3424
    LDFLAGS="$S_LDFLAGS -L$dir"
2051
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3425
    unset ac_cv_lib_iconv_iconv_open
2052
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2053
2054
2055
echo "$as_me:$LINENO: checking for iconv_open in -liconv" >&5
3426
    { echo "$as_me:$LINENO: checking for iconv_open in -lc" >&5
2056
echo $ECHO_N "checking for iconv_open in -liconv... $ECHO_C" >&6
3427
echo $ECHO_N "checking for iconv_open in -lc... $ECHO_C" >&6; }
2057
if test "${ac_cv_lib_iconv_iconv_open+set}" = set; then
3428
if test "${ac_cv_lib_c_iconv_open+set}" = set; then
2058
  echo $ECHO_N "(cached) $ECHO_C" >&6
3429
  echo $ECHO_N "(cached) $ECHO_C" >&6
2059
else
3430
else
2060
  ac_check_lib_save_LIBS=$LIBS
3431
  ac_check_lib_save_LIBS=$LIBS
2061
LIBS="-liconv  $LIBS"
3432
LIBS="-lc  $LIBS"
2062
cat >conftest.$ac_ext <<_ACEOF
3433
cat >conftest.$ac_ext <<_ACEOF
2063
/* confdefs.h.  */
3434
/* confdefs.h.  */
2064
_ACEOF
3435
_ACEOF
2065
cat confdefs.h >>conftest.$ac_ext
3436
cat confdefs.h >>conftest.$ac_ext
2066
cat >>conftest.$ac_ext <<_ACEOF
3437
cat >>conftest.$ac_ext <<_ACEOF
2067
/* end confdefs.h.  */
3438
/* end confdefs.h.  */
2068
3439
2069
/* Override any gcc2 internal prototype to avoid an error.  */
3440
/* Override any GCC internal prototype to avoid an error.
3441
   Use char because int might match the return type of a GCC
3442
   builtin and then its argument prototype would still apply.  */
2070
#ifdef __cplusplus
3443
#ifdef __cplusplus
2071
extern "C"
3444
extern "C"
2072
#endif
3445
#endif
2073
/* We use char because int might match the return type of a gcc2
2074
   builtin and then its argument prototype would still apply.  */
2075
char iconv_open ();
3446
char iconv_open ();
2076
int
3447
int
2077
main ()
3448
main ()
2078
{
3449
{
2079
iconv_open ();
3450
return iconv_open ();
2080
  ;
3451
  ;
2081
  return 0;
3452
  return 0;
2082
}
3453
}
2083
_ACEOF
3454
_ACEOF
2084
rm -f conftest.$ac_objext conftest$ac_exeext
3455
rm -f conftest.$ac_objext conftest$ac_exeext
3456
if { (ac_try="$ac_link"
3457
case "(($ac_try" in
3458
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459
  *) ac_try_echo=$ac_try;;
3460
esac
2085
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3461
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2086
  (eval $ac_link) 2>conftest.er1
3462
  (eval "$ac_link") 2>conftest.er1
2087
  ac_status=$?
3463
  ac_status=$?
2088
  grep -v '^ *+' conftest.er1 >conftest.err
3464
  grep -v '^ *+' conftest.er1 >conftest.err
2089
  rm -f conftest.er1
3465
  rm -f conftest.er1
2090
  cat conftest.err >&5
3466
  cat conftest.err >&5
2091
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092
  (exit $ac_status); } &&
3468
  (exit $ac_status); } && {
2093
     { ac_try='test -z "$ac_cxx_werror_flag"
3469
     test -z "$ac_cxx_werror_flag" ||
2094
           || test ! -s conftest.err'
3470
     test ! -s conftest.err
2095
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3471
       } && test -s conftest$ac_exeext &&
2096
  (eval $ac_try) 2>&5
3472
       $as_test_x conftest$ac_exeext; then
2097
  ac_status=$?
2098
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099
  (exit $ac_status); }; } &&
2100
   { ac_try='test -s conftest$ac_exeext'
2101
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2102
  (eval $ac_try) 2>&5
2103
  ac_status=$?
2104
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105
  (exit $ac_status); }; }; then
2106
  ac_cv_lib_iconv_iconv_open=yes
3473
  ac_cv_lib_c_iconv_open=yes
2107
else
3474
else
2108
  echo "$as_me: failed program was:" >&5
3475
  echo "$as_me: failed program was:" >&5
2109
sed 's/^/| /' conftest.$ac_ext >&5
3476
sed 's/^/| /' conftest.$ac_ext >&5
2110
3477
2111
ac_cv_lib_iconv_iconv_open=no
3478
  ac_cv_lib_c_iconv_open=no
2112
fi
3479
fi
2113
rm -f conftest.err conftest.$ac_objext \
3480
3481
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2114
      conftest$ac_exeext conftest.$ac_ext
3482
      conftest$ac_exeext conftest.$ac_ext
2115
LIBS=$ac_check_lib_save_LIBS
3483
LIBS=$ac_check_lib_save_LIBS
2116
fi
3484
fi
2117
echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv_open" >&5
2118
echo "${ECHO_T}$ac_cv_lib_iconv_iconv_open" >&6
2119
if test $ac_cv_lib_iconv_iconv_open = yes; then
2120
  LIBICONV="-L$dir -liconv";INCICONV=-I/usr/local/include
2121
fi
2122
2123
if test A"$LIBICONV" = A ; then
2124
  dir=${libdir}
2125
  LDFLAGS="$S_LDFLAGS -L$dir"
2126
  unset ac_cv_lib_iconv_iconv_open
2127
  echo "$as_me:$LINENO: checking for iconv_open in -liconv" >&5
2128
echo $ECHO_N "checking for iconv_open in -liconv... $ECHO_C" >&6
2129
if test "${ac_cv_lib_iconv_iconv_open+set}" = set; then
2130
  echo $ECHO_N "(cached) $ECHO_C" >&6
2131
else
2132
  ac_check_lib_save_LIBS=$LIBS
2133
LIBS="-liconv  $LIBS"
2134
cat >conftest.$ac_ext <<_ACEOF
2135
/* confdefs.h.  */
2136
_ACEOF
2137
cat confdefs.h >>conftest.$ac_ext
2138
cat >>conftest.$ac_ext <<_ACEOF
2139
/* end confdefs.h.  */
2140
2141
/* Override any gcc2 internal prototype to avoid an error.  */
2142
#ifdef __cplusplus
2143
extern "C"
2144
#endif
2145
/* We use char because int might match the return type of a gcc2
2146
   builtin and then its argument prototype would still apply.  */
2147
char iconv_open ();
2148
int
2149
main ()
2150
{
2151
iconv_open ();
2152
  ;
2153
  return 0;
2154
}
2155
_ACEOF
2156
rm -f conftest.$ac_objext conftest$ac_exeext
2157
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2158
  (eval $ac_link) 2>conftest.er1
2159
  ac_status=$?
2160
  grep -v '^ *+' conftest.er1 >conftest.err
2161
  rm -f conftest.er1
2162
  cat conftest.err >&5
2163
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164
  (exit $ac_status); } &&
2165
   { ac_try='test -z "$ac_cxx_werror_flag"
2166
           || test ! -s conftest.err'
2167
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2168
  (eval $ac_try) 2>&5
2169
  ac_status=$?
2170
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171
  (exit $ac_status); }; } &&
2172
   { ac_try='test -s conftest$ac_exeext'
2173
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2174
  (eval $ac_try) 2>&5
2175
  ac_status=$?
2176
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177
  (exit $ac_status); }; }; then
2178
  ac_cv_lib_iconv_iconv_open=yes
2179
else
2180
  echo "$as_me: failed program was:" >&5
2181
sed 's/^/| /' conftest.$ac_ext >&5
2182
2183
ac_cv_lib_iconv_iconv_open=no
2184
fi
2185
rm -f conftest.err conftest.$ac_objext \
2186
      conftest$ac_exeext conftest.$ac_ext
2187
LIBS=$ac_check_lib_save_LIBS
2188
fi
2189
echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv_open" >&5
2190
echo "${ECHO_T}$ac_cv_lib_iconv_iconv_open" >&6
2191
if test $ac_cv_lib_iconv_iconv_open = yes; then
2192
  LIBICONV="-L$dir -liconv";INCICONV=-I/usr/include
2193
fi
2194
2195
  if test A"$LIBICONV" = A; then
2196
    dir=${libdir}
2197
    LDFLAGS="$S_LDFLAGS -L$dir"
2198
    unset ac_cv_lib_iconv_iconv_open
2199
    echo "$as_me:$LINENO: checking for iconv_open in -lc" >&5
2200
echo $ECHO_N "checking for iconv_open in -lc... $ECHO_C" >&6
2201
if test "${ac_cv_lib_c_iconv_open+set}" = set; then
2202
  echo $ECHO_N "(cached) $ECHO_C" >&6
2203
else
2204
  ac_check_lib_save_LIBS=$LIBS
2205
LIBS="-lc  $LIBS"
2206
cat >conftest.$ac_ext <<_ACEOF
2207
/* confdefs.h.  */
2208
_ACEOF
2209
cat confdefs.h >>conftest.$ac_ext
2210
cat >>conftest.$ac_ext <<_ACEOF
2211
/* end confdefs.h.  */
2212
2213
/* Override any gcc2 internal prototype to avoid an error.  */
2214
#ifdef __cplusplus
2215
extern "C"
2216
#endif
2217
/* We use char because int might match the return type of a gcc2
2218
   builtin and then its argument prototype would still apply.  */
2219
char iconv_open ();
2220
int
2221
main ()
2222
{
2223
iconv_open ();
2224
  ;
2225
  return 0;
2226
}
2227
_ACEOF
2228
rm -f conftest.$ac_objext conftest$ac_exeext
2229
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2230
  (eval $ac_link) 2>conftest.er1
2231
  ac_status=$?
2232
  grep -v '^ *+' conftest.er1 >conftest.err
2233
  rm -f conftest.er1
2234
  cat conftest.err >&5
2235
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236
  (exit $ac_status); } &&
2237
   { ac_try='test -z "$ac_cxx_werror_flag"
2238
           || test ! -s conftest.err'
2239
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2240
  (eval $ac_try) 2>&5
2241
  ac_status=$?
2242
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243
  (exit $ac_status); }; } &&
2244
   { ac_try='test -s conftest$ac_exeext'
2245
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2246
  (eval $ac_try) 2>&5
2247
  ac_status=$?
2248
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249
  (exit $ac_status); }; }; then
2250
  ac_cv_lib_c_iconv_open=yes
2251
else
2252
  echo "$as_me: failed program was:" >&5
2253
sed 's/^/| /' conftest.$ac_ext >&5
2254
2255
ac_cv_lib_c_iconv_open=no
2256
fi
2257
rm -f conftest.err conftest.$ac_objext \
2258
      conftest$ac_exeext conftest.$ac_ext
2259
LIBS=$ac_check_lib_save_LIBS
2260
fi
2261
echo "$as_me:$LINENO: result: $ac_cv_lib_c_iconv_open" >&5
3485
{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_iconv_open" >&5
2262
echo "${ECHO_T}$ac_cv_lib_c_iconv_open" >&6
3486
echo "${ECHO_T}$ac_cv_lib_c_iconv_open" >&6; }
2263
if test $ac_cv_lib_c_iconv_open = yes; then
3487
if test $ac_cv_lib_c_iconv_open = yes; then
2264
  LIBICONV=NONE;INCICONV=-I/usr/include
3488
  LIBICONV=NONE;INCICONV=-I/usr/include
2265
fi
3489
fi
2266
3490
2267
  fi
3491
  fi
...
...
2278
fi
3502
fi
2279
#echo LIBICONV $LIBICONV
3503
#echo LIBICONV $LIBICONV
2280
#echo INCICONV $INCICONV
3504
#echo INCICONV $INCICONV
2281
3505
2282
CPPFLAGS="$CPPFLAGS $INCICONV"
3506
CPPFLAGS="$CPPFLAGS $INCICONV"
2283
echo "$as_me:$LINENO: checking for type of inbuf parameter to iconv" >&5
3507
{ echo "$as_me:$LINENO: checking for type of inbuf parameter to iconv" >&5
2284
echo $ECHO_N "checking for type of inbuf parameter to iconv... $ECHO_C" >&6
3508
echo $ECHO_N "checking for type of inbuf parameter to iconv... $ECHO_C" >&6; }
2285
cat >conftest.$ac_ext <<_ACEOF
3509
cat >conftest.$ac_ext <<_ACEOF
2286
/* confdefs.h.  */
3510
/* confdefs.h.  */
2287
_ACEOF
3511
_ACEOF
2288
cat confdefs.h >>conftest.$ac_ext
3512
cat confdefs.h >>conftest.$ac_ext
2289
cat >>conftest.$ac_ext <<_ACEOF
3513
cat >>conftest.$ac_ext <<_ACEOF
...
...
2301
  ;
3525
  ;
2302
  return 0;
3526
  return 0;
2303
}
3527
}
2304
_ACEOF
3528
_ACEOF
2305
rm -f conftest.$ac_objext
3529
rm -f conftest.$ac_objext
3530
if { (ac_try="$ac_compile"
3531
case "(($ac_try" in
3532
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533
  *) ac_try_echo=$ac_try;;
3534
esac
2306
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3535
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2307
  (eval $ac_compile) 2>conftest.er1
3536
  (eval "$ac_compile") 2>conftest.er1
2308
  ac_status=$?
3537
  ac_status=$?
2309
  grep -v '^ *+' conftest.er1 >conftest.err
3538
  grep -v '^ *+' conftest.er1 >conftest.err
2310
  rm -f conftest.er1
3539
  rm -f conftest.er1
2311
  cat conftest.err >&5
3540
  cat conftest.err >&5
2312
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313
  (exit $ac_status); } &&
3542
  (exit $ac_status); } && {
2314
     { ac_try='test -z "$ac_cxx_werror_flag"
3543
     test -z "$ac_cxx_werror_flag" ||
2315
           || test ! -s conftest.err'
3544
     test ! -s conftest.err
2316
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545
       } && test -s conftest.$ac_objext; then
2317
  (eval $ac_try) 2>&5
2318
  ac_status=$?
2319
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320
  (exit $ac_status); }; } &&
2321
   { ac_try='test -s conftest.$ac_objext'
2322
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323
  (eval $ac_try) 2>&5
2324
  ac_status=$?
2325
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326
  (exit $ac_status); }; }; then
2327
  rcl_iconv_inbuf_const="1"
3546
  rcl_iconv_inbuf_const="1"
2328
else
3547
else
2329
  echo "$as_me: failed program was:" >&5
3548
  echo "$as_me: failed program was:" >&5
2330
sed 's/^/| /' conftest.$ac_ext >&5
3549
sed 's/^/| /' conftest.$ac_ext >&5
2331
3550
2332
rcl_iconv_inbuf_const="0"
3551
  rcl_iconv_inbuf_const="0"
2333
fi
3552
fi
3553
2334
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3554
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2335
if test X$rcl_iconv_inbuf_const = X1 ; then
3555
if test X$rcl_iconv_inbuf_const = X1 ; then
2336
3556
2337
cat >>confdefs.h <<\_ACEOF
3557
cat >>confdefs.h <<\_ACEOF
2338
#define RCL_ICONV_INBUF_CONST 1
3558
#define RCL_ICONV_INBUF_CONST 1
2339
_ACEOF
3559
_ACEOF
2340
3560
2341
fi
3561
fi
2342
3562
2343
3563
2344
echo "$as_me:$LINENO: checking for type of string parameter to putenv" >&5
3564
{ echo "$as_me:$LINENO: checking for type of string parameter to putenv" >&5
2345
echo $ECHO_N "checking for type of string parameter to putenv... $ECHO_C" >&6
3565
echo $ECHO_N "checking for type of string parameter to putenv... $ECHO_C" >&6; }
2346
cat >conftest.$ac_ext <<_ACEOF
3566
cat >conftest.$ac_ext <<_ACEOF
2347
/* confdefs.h.  */
3567
/* confdefs.h.  */
2348
_ACEOF
3568
_ACEOF
2349
cat confdefs.h >>conftest.$ac_ext
3569
cat confdefs.h >>conftest.$ac_ext
2350
cat >>conftest.$ac_ext <<_ACEOF
3570
cat >>conftest.$ac_ext <<_ACEOF
...
...
2361
  ;
3581
  ;
2362
  return 0;
3582
  return 0;
2363
}
3583
}
2364
_ACEOF
3584
_ACEOF
2365
rm -f conftest.$ac_objext
3585
rm -f conftest.$ac_objext
3586
if { (ac_try="$ac_compile"
3587
case "(($ac_try" in
3588
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589
  *) ac_try_echo=$ac_try;;
3590
esac
2366
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3591
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2367
  (eval $ac_compile) 2>conftest.er1
3592
  (eval "$ac_compile") 2>conftest.er1
2368
  ac_status=$?
3593
  ac_status=$?
2369
  grep -v '^ *+' conftest.er1 >conftest.err
3594
  grep -v '^ *+' conftest.er1 >conftest.err
2370
  rm -f conftest.er1
3595
  rm -f conftest.er1
2371
  cat conftest.err >&5
3596
  cat conftest.err >&5
2372
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373
  (exit $ac_status); } &&
3598
  (exit $ac_status); } && {
2374
     { ac_try='test -z "$ac_cxx_werror_flag"
3599
     test -z "$ac_cxx_werror_flag" ||
2375
           || test ! -s conftest.err'
3600
     test ! -s conftest.err
2376
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3601
       } && test -s conftest.$ac_objext; then
2377
  (eval $ac_try) 2>&5
2378
  ac_status=$?
2379
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380
  (exit $ac_status); }; } &&
2381
   { ac_try='test -s conftest.$ac_objext'
2382
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2383
  (eval $ac_try) 2>&5
2384
  ac_status=$?
2385
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386
  (exit $ac_status); }; }; then
2387
  rcl_putenv_string_const="1"
3602
  rcl_putenv_string_const="1"
2388
else
3603
else
2389
  echo "$as_me: failed program was:" >&5
3604
  echo "$as_me: failed program was:" >&5
2390
sed 's/^/| /' conftest.$ac_ext >&5
3605
sed 's/^/| /' conftest.$ac_ext >&5
2391
3606
2392
rcl_putenv_string_const="0"
3607
  rcl_putenv_string_const="0"
2393
fi
3608
fi
3609
2394
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3610
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2395
if test X$rcl_putenv_string_const = X1 ; then
3611
if test X$rcl_putenv_string_const = X1 ; then
2396
3612
2397
cat >>confdefs.h <<\_ACEOF
3613
cat >>confdefs.h <<\_ACEOF
2398
#define PUTENV_ARG_CONST 1
3614
#define PUTENV_ARG_CONST 1
2399
_ACEOF
3615
_ACEOF
...
...
2401
fi
3617
fi
2402
3618
2403
#### Look for Xapian
3619
#### Look for Xapian
2404
# Extract the first word of "xapian-config", so it can be a program name with args.
3620
# Extract the first word of "xapian-config", so it can be a program name with args.
2405
set dummy xapian-config; ac_word=$2
3621
set dummy xapian-config; ac_word=$2
2406
echo "$as_me:$LINENO: checking for $ac_word" >&5
3622
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2407
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3623
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2408
if test "${ac_cv_path_XAPIAN_CONFIG+set}" = set; then
3624
if test "${ac_cv_path_XAPIAN_CONFIG+set}" = set; then
2409
  echo $ECHO_N "(cached) $ECHO_C" >&6
3625
  echo $ECHO_N "(cached) $ECHO_C" >&6
2410
else
3626
else
2411
  case $XAPIAN_CONFIG in
3627
  case $XAPIAN_CONFIG in
2412
  [\\/]* | ?:[\\/]*)
3628
  [\\/]* | ?:[\\/]*)
...
...
2417
for as_dir in $PATH
3633
for as_dir in $PATH
2418
do
3634
do
2419
  IFS=$as_save_IFS
3635
  IFS=$as_save_IFS
2420
  test -z "$as_dir" && as_dir=.
3636
  test -z "$as_dir" && as_dir=.
2421
  for ac_exec_ext in '' $ac_executable_extensions; do
3637
  for ac_exec_ext in '' $ac_executable_extensions; do
2422
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3638
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2423
    ac_cv_path_XAPIAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3639
    ac_cv_path_XAPIAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2424
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3640
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2425
    break 2
3641
    break 2
2426
  fi
3642
  fi
2427
done
3643
done
2428
done
3644
done
3645
IFS=$as_save_IFS
2429
3646
2430
  test -z "$ac_cv_path_XAPIAN_CONFIG" && ac_cv_path_XAPIAN_CONFIG="no"
3647
  test -z "$ac_cv_path_XAPIAN_CONFIG" && ac_cv_path_XAPIAN_CONFIG="no"
2431
  ;;
3648
  ;;
2432
esac
3649
esac
2433
fi
3650
fi
2434
XAPIAN_CONFIG=$ac_cv_path_XAPIAN_CONFIG
3651
XAPIAN_CONFIG=$ac_cv_path_XAPIAN_CONFIG
2435
2436
if test -n "$XAPIAN_CONFIG"; then
3652
if test -n "$XAPIAN_CONFIG"; then
2437
  echo "$as_me:$LINENO: result: $XAPIAN_CONFIG" >&5
3653
  { echo "$as_me:$LINENO: result: $XAPIAN_CONFIG" >&5
2438
echo "${ECHO_T}$XAPIAN_CONFIG" >&6
3654
echo "${ECHO_T}$XAPIAN_CONFIG" >&6; }
2439
else
3655
else
2440
  echo "$as_me:$LINENO: result: no" >&5
3656
  { echo "$as_me:$LINENO: result: no" >&5
2441
echo "${ECHO_T}no" >&6
3657
echo "${ECHO_T}no" >&6; }
2442
fi
3658
fi
3659
2443
3660
2444
if test "$XAPIAN_CONFIG" = "no" ; then
3661
if test "$XAPIAN_CONFIG" = "no" ; then
2445
   { { echo "$as_me:$LINENO: error: Cannot find xapian-config command in $PATH. Is
3662
   { { echo "$as_me:$LINENO: error: Cannot find xapian-config command in $PATH. Is
2446
xapian-core installed ?" >&5
3663
xapian-core installed ?" >&5
2447
echo "$as_me: error: Cannot find xapian-config command in $PATH. Is
3664
echo "$as_me: error: Cannot find xapian-config command in $PATH. Is
...
...
2506
    #AC_SUBST(QMAKESPEC_SPEC)
3723
    #AC_SUBST(QMAKESPEC_SPEC)
2507
fi
3724
fi
2508
3725
2509
# Extract the first word of "qmake", so it can be a program name with args.
3726
# Extract the first word of "qmake", so it can be a program name with args.
2510
set dummy qmake; ac_word=$2
3727
set dummy qmake; ac_word=$2
2511
echo "$as_me:$LINENO: checking for $ac_word" >&5
3728
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2512
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3729
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2513
if test "${ac_cv_path_QMAKE+set}" = set; then
3730
if test "${ac_cv_path_QMAKE+set}" = set; then
2514
  echo $ECHO_N "(cached) $ECHO_C" >&6
3731
  echo $ECHO_N "(cached) $ECHO_C" >&6
2515
else
3732
else
2516
  case $QMAKE in
3733
  case $QMAKE in
2517
  [\\/]* | ?:[\\/]*)
3734
  [\\/]* | ?:[\\/]*)
...
...
2522
for as_dir in $PATH
3739
for as_dir in $PATH
2523
do
3740
do
2524
  IFS=$as_save_IFS
3741
  IFS=$as_save_IFS
2525
  test -z "$as_dir" && as_dir=.
3742
  test -z "$as_dir" && as_dir=.
2526
  for ac_exec_ext in '' $ac_executable_extensions; do
3743
  for ac_exec_ext in '' $ac_executable_extensions; do
2527
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3744
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2528
    ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
3745
    ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
2529
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3746
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2530
    break 2
3747
    break 2
2531
  fi
3748
  fi
2532
done
3749
done
2533
done
3750
done
3751
IFS=$as_save_IFS
2534
3752
2535
  test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="NOTFOUND"
3753
  test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="NOTFOUND"
2536
  ;;
3754
  ;;
2537
esac
3755
esac
2538
fi
3756
fi
2539
QMAKE=$ac_cv_path_QMAKE
3757
QMAKE=$ac_cv_path_QMAKE
2540
2541
if test -n "$QMAKE"; then
3758
if test -n "$QMAKE"; then
2542
  echo "$as_me:$LINENO: result: $QMAKE" >&5
3759
  { echo "$as_me:$LINENO: result: $QMAKE" >&5
2543
echo "${ECHO_T}$QMAKE" >&6
3760
echo "${ECHO_T}$QMAKE" >&6; }
2544
else
3761
else
2545
  echo "$as_me:$LINENO: result: no" >&5
3762
  { echo "$as_me:$LINENO: result: no" >&5
2546
echo "${ECHO_T}no" >&6
3763
echo "${ECHO_T}no" >&6; }
2547
fi
3764
fi
3765
2548
3766
2549
if test X$QMAKE = XNOTFOUND ; then
3767
if test X$QMAKE = XNOTFOUND ; then
2550
   { { echo "$as_me:$LINENO: error: Cannot find the qmake program. Maybe you need to install
3768
   { { echo "$as_me:$LINENO: error: Cannot find the qmake program. Maybe you need to install
2551
qt development files and tools and/or set the QTDIR environment variable?" >&5
3769
qt development files and tools and/or set the QTDIR environment variable?" >&5
2552
echo "$as_me: error: Cannot find the qmake program. Maybe you need to install
3770
echo "$as_me: error: Cannot find the qmake program. Maybe you need to install
...
...
2571
  { echo "$as_me:$LINENO: using qt version 4 user interface" >&5
3789
  { echo "$as_me:$LINENO: using qt version 4 user interface" >&5
2572
echo "$as_me: using qt version 4 user interface" >&6;}
3790
echo "$as_me: using qt version 4 user interface" >&6;}
2573
  QTGUI=qt4gui
3791
  QTGUI=qt4gui
2574
  # Extract the first word of "uic3", so it can be a program name with args.
3792
  # Extract the first word of "uic3", so it can be a program name with args.
2575
set dummy uic3; ac_word=$2
3793
set dummy uic3; ac_word=$2
2576
echo "$as_me:$LINENO: checking for $ac_word" >&5
3794
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2577
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3795
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2578
if test "${ac_cv_path_UIC3+set}" = set; then
3796
if test "${ac_cv_path_UIC3+set}" = set; then
2579
  echo $ECHO_N "(cached) $ECHO_C" >&6
3797
  echo $ECHO_N "(cached) $ECHO_C" >&6
2580
else
3798
else
2581
  case $UIC3 in
3799
  case $UIC3 in
2582
  [\\/]* | ?:[\\/]*)
3800
  [\\/]* | ?:[\\/]*)
...
...
2587
for as_dir in $PATH
3805
for as_dir in $PATH
2588
do
3806
do
2589
  IFS=$as_save_IFS
3807
  IFS=$as_save_IFS
2590
  test -z "$as_dir" && as_dir=.
3808
  test -z "$as_dir" && as_dir=.
2591
  for ac_exec_ext in '' $ac_executable_extensions; do
3809
  for ac_exec_ext in '' $ac_executable_extensions; do
2592
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3810
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2593
    ac_cv_path_UIC3="$as_dir/$ac_word$ac_exec_ext"
3811
    ac_cv_path_UIC3="$as_dir/$ac_word$ac_exec_ext"
2594
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3812
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2595
    break 2
3813
    break 2
2596
  fi
3814
  fi
2597
done
3815
done
2598
done
3816
done
3817
IFS=$as_save_IFS
2599
3818
2600
  test -z "$ac_cv_path_UIC3" && ac_cv_path_UIC3="NOTFOUND"
3819
  test -z "$ac_cv_path_UIC3" && ac_cv_path_UIC3="NOTFOUND"
2601
  ;;
3820
  ;;
2602
esac
3821
esac
2603
fi
3822
fi
2604
UIC3=$ac_cv_path_UIC3
3823
UIC3=$ac_cv_path_UIC3
2605
2606
if test -n "$UIC3"; then
3824
if test -n "$UIC3"; then
2607
  echo "$as_me:$LINENO: result: $UIC3" >&5
3825
  { echo "$as_me:$LINENO: result: $UIC3" >&5
2608
echo "${ECHO_T}$UIC3" >&6
3826
echo "${ECHO_T}$UIC3" >&6; }
2609
else
3827
else
2610
  echo "$as_me:$LINENO: result: no" >&5
3828
  { echo "$as_me:$LINENO: result: no" >&5
2611
echo "${ECHO_T}no" >&6
3829
echo "${ECHO_T}no" >&6; }
2612
fi
3830
fi
3831
2613
3832
2614
  if test X$UIC3 = XNOTFOUND ; then
3833
  if test X$UIC3 = XNOTFOUND ; then
2615
    { { echo "$as_me:$LINENO: error: Cannot find the uic3 program. Maybe you need to add
3834
    { { echo "$as_me:$LINENO: error: Cannot find the uic3 program. Maybe you need to add
2616
    the qt3 compatibility libraries and tools to your qt4 installation ?" >&5
3835
    the qt3 compatibility libraries and tools to your qt4 installation ?" >&5
2617
echo "$as_me: error: Cannot find the uic3 program. Maybe you need to add
3836
echo "$as_me: error: Cannot find the uic3 program. Maybe you need to add
...
...
2649
cd ..
3868
cd ..
2650
3869
2651
##################### End QT detection
3870
##################### End QT detection
2652
3871
2653
### X11: this is needed for the session monitoring code (in recollindex -m)
3872
### X11: this is needed for the session monitoring code (in recollindex -m)
2654
ac_ext=cc
3873
ac_ext=cpp
2655
ac_cpp='$CXXCPP $CPPFLAGS'
3874
ac_cpp='$CXXCPP $CPPFLAGS'
2656
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3875
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2657
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3876
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2658
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3877
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2659
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3878
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2660
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3879
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
2661
if test -z "$CXXCPP"; then
3880
if test -z "$CXXCPP"; then
2662
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
3881
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
2663
  echo $ECHO_N "(cached) $ECHO_C" >&6
3882
  echo $ECHO_N "(cached) $ECHO_C" >&6
2664
else
3883
else
2665
      # Double quotes because CXXCPP needs to be expanded
3884
      # Double quotes because CXXCPP needs to be expanded
...
...
2685
#else
3904
#else
2686
# include <assert.h>
3905
# include <assert.h>
2687
#endif
3906
#endif
2688
             Syntax error
3907
             Syntax error
2689
_ACEOF
3908
_ACEOF
2690
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3909
if { (ac_try="$ac_cpp conftest.$ac_ext"
3910
case "(($ac_try" in
3911
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912
  *) ac_try_echo=$ac_try;;
3913
esac
3914
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2691
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3915
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2692
  ac_status=$?
3916
  ac_status=$?
2693
  grep -v '^ *+' conftest.er1 >conftest.err
3917
  grep -v '^ *+' conftest.er1 >conftest.err
2694
  rm -f conftest.er1
3918
  rm -f conftest.er1
2695
  cat conftest.err >&5
3919
  cat conftest.err >&5
2696
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697
  (exit $ac_status); } >/dev/null; then
3921
  (exit $ac_status); } >/dev/null && {
3922
   test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2698
  if test -s conftest.err; then
3923
   test ! -s conftest.err
2699
    ac_cpp_err=$ac_cxx_preproc_warn_flag
3924
       }; then
2700
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2701
  else
2702
    ac_cpp_err=
2703
  fi
2704
else
2705
  ac_cpp_err=yes
2706
fi
2707
if test -z "$ac_cpp_err"; then
2708
  :
3925
  :
2709
else
3926
else
2710
  echo "$as_me: failed program was:" >&5
3927
  echo "$as_me: failed program was:" >&5
2711
sed 's/^/| /' conftest.$ac_ext >&5
3928
sed 's/^/| /' conftest.$ac_ext >&5
2712
3929
2713
  # Broken: fails on valid input.
3930
  # Broken: fails on valid input.
2714
continue
3931
continue
2715
fi
3932
fi
3933
2716
rm -f conftest.err conftest.$ac_ext
3934
rm -f conftest.err conftest.$ac_ext
2717
3935
2718
  # OK, works on sane cases.  Now check whether non-existent headers
3936
  # OK, works on sane cases.  Now check whether nonexistent headers
2719
  # can be detected and how.
3937
  # can be detected and how.
2720
  cat >conftest.$ac_ext <<_ACEOF
3938
  cat >conftest.$ac_ext <<_ACEOF
2721
/* confdefs.h.  */
3939
/* confdefs.h.  */
2722
_ACEOF
3940
_ACEOF
2723
cat confdefs.h >>conftest.$ac_ext
3941
cat confdefs.h >>conftest.$ac_ext
2724
cat >>conftest.$ac_ext <<_ACEOF
3942
cat >>conftest.$ac_ext <<_ACEOF
2725
/* end confdefs.h.  */
3943
/* end confdefs.h.  */
2726
#include <ac_nonexistent.h>
3944
#include <ac_nonexistent.h>
2727
_ACEOF
3945
_ACEOF
2728
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3946
if { (ac_try="$ac_cpp conftest.$ac_ext"
3947
case "(($ac_try" in
3948
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3949
  *) ac_try_echo=$ac_try;;
3950
esac
3951
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2729
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3952
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2730
  ac_status=$?
3953
  ac_status=$?
2731
  grep -v '^ *+' conftest.er1 >conftest.err
3954
  grep -v '^ *+' conftest.er1 >conftest.err
2732
  rm -f conftest.er1
3955
  rm -f conftest.er1
2733
  cat conftest.err >&5
3956
  cat conftest.err >&5
2734
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735
  (exit $ac_status); } >/dev/null; then
3958
  (exit $ac_status); } >/dev/null && {
3959
   test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2736
  if test -s conftest.err; then
3960
   test ! -s conftest.err
2737
    ac_cpp_err=$ac_cxx_preproc_warn_flag
3961
       }; then
2738
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2739
  else
2740
    ac_cpp_err=
2741
  fi
2742
else
2743
  ac_cpp_err=yes
2744
fi
2745
if test -z "$ac_cpp_err"; then
2746
  # Broken: success on invalid input.
3962
  # Broken: success on invalid input.
2747
continue
3963
continue
2748
else
3964
else
2749
  echo "$as_me: failed program was:" >&5
3965
  echo "$as_me: failed program was:" >&5
2750
sed 's/^/| /' conftest.$ac_ext >&5
3966
sed 's/^/| /' conftest.$ac_ext >&5
2751
3967
2752
  # Passes both tests.
3968
  # Passes both tests.
2753
ac_preproc_ok=:
3969
ac_preproc_ok=:
2754
break
3970
break
2755
fi
3971
fi
3972
2756
rm -f conftest.err conftest.$ac_ext
3973
rm -f conftest.err conftest.$ac_ext
2757
3974
2758
done
3975
done
2759
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3976
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2760
rm -f conftest.err conftest.$ac_ext
3977
rm -f conftest.err conftest.$ac_ext
...
...
2768
fi
3985
fi
2769
  CXXCPP=$ac_cv_prog_CXXCPP
3986
  CXXCPP=$ac_cv_prog_CXXCPP
2770
else
3987
else
2771
  ac_cv_prog_CXXCPP=$CXXCPP
3988
  ac_cv_prog_CXXCPP=$CXXCPP
2772
fi
3989
fi
2773
echo "$as_me:$LINENO: result: $CXXCPP" >&5
3990
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
2774
echo "${ECHO_T}$CXXCPP" >&6
3991
echo "${ECHO_T}$CXXCPP" >&6; }
2775
ac_preproc_ok=false
3992
ac_preproc_ok=false
2776
for ac_cxx_preproc_warn_flag in '' yes
3993
for ac_cxx_preproc_warn_flag in '' yes
2777
do
3994
do
2778
  # Use a header file that comes with gcc, so configuring glibc
3995
  # Use a header file that comes with gcc, so configuring glibc
2779
  # with a fresh cross-compiler works.
3996
  # with a fresh cross-compiler works.
...
...
2792
#else
4009
#else
2793
# include <assert.h>
4010
# include <assert.h>
2794
#endif
4011
#endif
2795
             Syntax error
4012
             Syntax error
2796
_ACEOF
4013
_ACEOF
2797
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4014
if { (ac_try="$ac_cpp conftest.$ac_ext"
4015
case "(($ac_try" in
4016
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4017
  *) ac_try_echo=$ac_try;;
4018
esac
4019
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2798
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4020
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2799
  ac_status=$?
4021
  ac_status=$?
2800
  grep -v '^ *+' conftest.er1 >conftest.err
4022
  grep -v '^ *+' conftest.er1 >conftest.err
2801
  rm -f conftest.er1
4023
  rm -f conftest.er1
2802
  cat conftest.err >&5
4024
  cat conftest.err >&5
2803
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804
  (exit $ac_status); } >/dev/null; then
4026
  (exit $ac_status); } >/dev/null && {
4027
   test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2805
  if test -s conftest.err; then
4028
   test ! -s conftest.err
2806
    ac_cpp_err=$ac_cxx_preproc_warn_flag
4029
       }; then
2807
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2808
  else
2809
    ac_cpp_err=
2810
  fi
2811
else
2812
  ac_cpp_err=yes
2813
fi
2814
if test -z "$ac_cpp_err"; then
2815
  :
4030
  :
2816
else
4031
else
2817
  echo "$as_me: failed program was:" >&5
4032
  echo "$as_me: failed program was:" >&5
2818
sed 's/^/| /' conftest.$ac_ext >&5
4033
sed 's/^/| /' conftest.$ac_ext >&5
2819
4034
2820
  # Broken: fails on valid input.
4035
  # Broken: fails on valid input.
2821
continue
4036
continue
2822
fi
4037
fi
4038
2823
rm -f conftest.err conftest.$ac_ext
4039
rm -f conftest.err conftest.$ac_ext
2824
4040
2825
  # OK, works on sane cases.  Now check whether non-existent headers
4041
  # OK, works on sane cases.  Now check whether nonexistent headers
2826
  # can be detected and how.
4042
  # can be detected and how.
2827
  cat >conftest.$ac_ext <<_ACEOF
4043
  cat >conftest.$ac_ext <<_ACEOF
2828
/* confdefs.h.  */
4044
/* confdefs.h.  */
2829
_ACEOF
4045
_ACEOF
2830
cat confdefs.h >>conftest.$ac_ext
4046
cat confdefs.h >>conftest.$ac_ext
2831
cat >>conftest.$ac_ext <<_ACEOF
4047
cat >>conftest.$ac_ext <<_ACEOF
2832
/* end confdefs.h.  */
4048
/* end confdefs.h.  */
2833
#include <ac_nonexistent.h>
4049
#include <ac_nonexistent.h>
2834
_ACEOF
4050
_ACEOF
2835
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4051
if { (ac_try="$ac_cpp conftest.$ac_ext"
4052
case "(($ac_try" in
4053
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4054
  *) ac_try_echo=$ac_try;;
4055
esac
4056
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2836
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4057
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2837
  ac_status=$?
4058
  ac_status=$?
2838
  grep -v '^ *+' conftest.er1 >conftest.err
4059
  grep -v '^ *+' conftest.er1 >conftest.err
2839
  rm -f conftest.er1
4060
  rm -f conftest.er1
2840
  cat conftest.err >&5
4061
  cat conftest.err >&5
2841
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842
  (exit $ac_status); } >/dev/null; then
4063
  (exit $ac_status); } >/dev/null && {
4064
   test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2843
  if test -s conftest.err; then
4065
   test ! -s conftest.err
2844
    ac_cpp_err=$ac_cxx_preproc_warn_flag
4066
       }; then
2845
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2846
  else
2847
    ac_cpp_err=
2848
  fi
2849
else
2850
  ac_cpp_err=yes
2851
fi
2852
if test -z "$ac_cpp_err"; then
2853
  # Broken: success on invalid input.
4067
  # Broken: success on invalid input.
2854
continue
4068
continue
2855
else
4069
else
2856
  echo "$as_me: failed program was:" >&5
4070
  echo "$as_me: failed program was:" >&5
2857
sed 's/^/| /' conftest.$ac_ext >&5
4071
sed 's/^/| /' conftest.$ac_ext >&5
2858
4072
2859
  # Passes both tests.
4073
  # Passes both tests.
2860
ac_preproc_ok=:
4074
ac_preproc_ok=:
2861
break
4075
break
2862
fi
4076
fi
4077
2863
rm -f conftest.err conftest.$ac_ext
4078
rm -f conftest.err conftest.$ac_ext
2864
4079
2865
done
4080
done
2866
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4081
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2867
rm -f conftest.err conftest.$ac_ext
4082
rm -f conftest.err conftest.$ac_ext
...
...
2873
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4088
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2874
See \`config.log' for more details." >&2;}
4089
See \`config.log' for more details." >&2;}
2875
   { (exit 1); exit 1; }; }
4090
   { (exit 1); exit 1; }; }
2876
fi
4091
fi
2877
4092
2878
ac_ext=cc
4093
ac_ext=cpp
2879
ac_cpp='$CXXCPP $CPPFLAGS'
4094
ac_cpp='$CXXCPP $CPPFLAGS'
2880
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4095
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2881
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4096
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2882
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4097
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2883
4098
2884
4099
2885
echo "$as_me:$LINENO: checking for X" >&5
4100
{ echo "$as_me:$LINENO: checking for X" >&5
2886
echo $ECHO_N "checking for X... $ECHO_C" >&6
4101
echo $ECHO_N "checking for X... $ECHO_C" >&6; }
2887
4102
2888
4103
2889
# Check whether --with-x or --without-x was given.
4104
# Check whether --with-x was given.
2890
if test "${with_x+set}" = set; then
4105
if test "${with_x+set}" = set; then
2891
  withval="$with_x"
4106
  withval=$with_x;
2892
2893
fi;
4107
fi
4108
2894
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4109
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2895
if test "x$with_x" = xno; then
4110
if test "x$with_x" = xno; then
2896
  # The user explicitly disabled X.
4111
  # The user explicitly disabled X.
2897
  have_x=disabled
4112
  have_x=disabled
2898
else
4113
else
2899
  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4114
  case $x_includes,$x_libraries in #(
2900
    # Both variables are already set.
4115
    *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
2901
    have_x=yes
4116
echo "$as_me: error: Cannot use X directory names containing '" >&2;}
2902
  else
4117
   { (exit 1); exit 1; }; };; #(
2903
    if test "${ac_cv_have_x+set}" = set; then
4118
    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
2904
  echo $ECHO_N "(cached) $ECHO_C" >&6
4119
  echo $ECHO_N "(cached) $ECHO_C" >&6
2905
else
4120
else
2906
  # One or both of the vars are not set, and there is no cached value.
4121
  # One or both of the vars are not set, and there is no cached value.
2907
ac_x_includes=no ac_x_libraries=no
4122
ac_x_includes=no ac_x_libraries=no
2908
rm -fr conftest.dir
4123
rm -f -r conftest.dir
2909
if mkdir conftest.dir; then
4124
if mkdir conftest.dir; then
2910
  cd conftest.dir
4125
  cd conftest.dir
2911
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2912
  cat >Imakefile <<'_ACEOF'
4126
  cat >Imakefile <<'_ACEOF'
2913
acfindx:
4127
incroot:
2914
  @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4128
  @echo incroot='${INCROOT}'
4129
usrlibdir:
4130
  @echo usrlibdir='${USRLIBDIR}'
4131
libdir:
4132
  @echo libdir='${LIBDIR}'
2915
_ACEOF
4133
_ACEOF
2916
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4134
  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
2917
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4135
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2918
    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4136
    for ac_var in incroot usrlibdir libdir; do
4137
      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4138
    done
2919
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4139
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2920
    for ac_extension in a so sl; do
4140
    for ac_extension in a so sl; do
2921
      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4141
      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
2922
     test -f $ac_im_libdir/libX11.$ac_extension; then
4142
     test -f "$ac_im_libdir/libX11.$ac_extension"; then
2923
    ac_im_usrlibdir=$ac_im_libdir; break
4143
    ac_im_usrlibdir=$ac_im_libdir; break
2924
      fi
4144
      fi
2925
    done
4145
    done
2926
    # Screen out bogus values from the imake configuration.  They are
4146
    # Screen out bogus values from the imake configuration.  They are
2927
    # bogus both because they are the default anyway, and because
4147
    # bogus both because they are the default anyway, and because
2928
    # using them would break gcc on systems where it needs fixed includes.
4148
    # using them would break gcc on systems where it needs fixed includes.
2929
    case $ac_im_incroot in
4149
    case $ac_im_incroot in
2930
  /usr/include) ;;
4150
  /usr/include) ac_x_includes= ;;
2931
    *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4151
    *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2932
    esac
4152
    esac
2933
    case $ac_im_usrlibdir in
4153
    case $ac_im_usrlibdir in
2934
    /usr/lib | /lib) ;;
4154
    /usr/lib | /lib) ;;
2935
    *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4155
    *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2936
    esac
4156
    esac
2937
  fi
4157
  fi
2938
  cd ..
4158
  cd ..
2939
  rm -fr conftest.dir
4159
  rm -f -r conftest.dir
2940
fi
4160
fi
2941
4161
2942
# Standard set of common directories for X headers.
4162
# Standard set of common directories for X headers.
2943
# Check X11 before X11Rn because it is often a symlink to the current release.
4163
# Check X11 before X11Rn because it is often a symlink to the current release.
2944
ac_x_header_dirs='
4164
ac_x_header_dirs='
...
...
2975
4195
2976
/usr/openwin/include
4196
/usr/openwin/include
2977
/usr/openwin/share/include'
4197
/usr/openwin/share/include'
2978
4198
2979
if test "$ac_x_includes" = no; then
4199
if test "$ac_x_includes" = no; then
2980
  # Guess where to find include files, by looking for Intrinsic.h.
4200
  # Guess where to find include files, by looking for Xlib.h.
2981
  # First, try using that file with no special directory specified.
4201
  # First, try using that file with no special directory specified.
2982
  cat >conftest.$ac_ext <<_ACEOF
4202
  cat >conftest.$ac_ext <<_ACEOF
2983
/* confdefs.h.  */
4203
/* confdefs.h.  */
2984
_ACEOF
4204
_ACEOF
2985
cat confdefs.h >>conftest.$ac_ext
4205
cat confdefs.h >>conftest.$ac_ext
2986
cat >>conftest.$ac_ext <<_ACEOF
4206
cat >>conftest.$ac_ext <<_ACEOF
2987
/* end confdefs.h.  */
4207
/* end confdefs.h.  */
2988
#include <X11/Intrinsic.h>
4208
#include <X11/Xlib.h>
2989
_ACEOF
4209
_ACEOF
2990
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4210
if { (ac_try="$ac_cpp conftest.$ac_ext"
4211
case "(($ac_try" in
4212
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4213
  *) ac_try_echo=$ac_try;;
4214
esac
4215
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2991
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4216
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2992
  ac_status=$?
4217
  ac_status=$?
2993
  grep -v '^ *+' conftest.er1 >conftest.err
4218
  grep -v '^ *+' conftest.er1 >conftest.err
2994
  rm -f conftest.er1
4219
  rm -f conftest.er1
2995
  cat conftest.err >&5
4220
  cat conftest.err >&5
2996
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997
  (exit $ac_status); } >/dev/null; then
4222
  (exit $ac_status); } >/dev/null && {
4223
   test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2998
  if test -s conftest.err; then
4224
   test ! -s conftest.err
2999
    ac_cpp_err=$ac_cxx_preproc_warn_flag
4225
       }; then
3000
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3001
  else
3002
    ac_cpp_err=
3003
  fi
3004
else
3005
  ac_cpp_err=yes
3006
fi
3007
if test -z "$ac_cpp_err"; then
3008
  # We can compile using X headers with no special include directory.
4226
  # We can compile using X headers with no special include directory.
3009
ac_x_includes=
4227
ac_x_includes=
3010
else
4228
else
3011
  echo "$as_me: failed program was:" >&5
4229
  echo "$as_me: failed program was:" >&5
3012
sed 's/^/| /' conftest.$ac_ext >&5
4230
sed 's/^/| /' conftest.$ac_ext >&5
3013
4231
3014
  for ac_dir in $ac_x_header_dirs; do
4232
  for ac_dir in $ac_x_header_dirs; do
3015
  if test -r "$ac_dir/X11/Intrinsic.h"; then
4233
  if test -r "$ac_dir/X11/Xlib.h"; then
3016
    ac_x_includes=$ac_dir
4234
    ac_x_includes=$ac_dir
3017
    break
4235
    break
3018
  fi
4236
  fi
3019
done
4237
done
3020
fi
4238
fi
4239
3021
rm -f conftest.err conftest.$ac_ext
4240
rm -f conftest.err conftest.$ac_ext
3022
fi # $ac_x_includes = no
4241
fi # $ac_x_includes = no
3023
4242
3024
if test "$ac_x_libraries" = no; then
4243
if test "$ac_x_libraries" = no; then
3025
  # Check for the libraries.
4244
  # Check for the libraries.
3026
  # See if we find them without any special options.
4245
  # See if we find them without any special options.
3027
  # Don't add to $LIBS permanently.
4246
  # Don't add to $LIBS permanently.
3028
  ac_save_LIBS=$LIBS
4247
  ac_save_LIBS=$LIBS
3029
  LIBS="-lXt $LIBS"
4248
  LIBS="-lX11 $LIBS"
3030
  cat >conftest.$ac_ext <<_ACEOF
4249
  cat >conftest.$ac_ext <<_ACEOF
3031
/* confdefs.h.  */
4250
/* confdefs.h.  */
3032
_ACEOF
4251
_ACEOF
3033
cat confdefs.h >>conftest.$ac_ext
4252
cat confdefs.h >>conftest.$ac_ext
3034
cat >>conftest.$ac_ext <<_ACEOF
4253
cat >>conftest.$ac_ext <<_ACEOF
3035
/* end confdefs.h.  */
4254
/* end confdefs.h.  */
3036
#include <X11/Intrinsic.h>
4255
#include <X11/Xlib.h>
3037
int
4256
int
3038
main ()
4257
main ()
3039
{
4258
{
3040
XtMalloc (0)
4259
XrmInitialize ()
3041
  ;
4260
  ;
3042
  return 0;
4261
  return 0;
3043
}
4262
}
3044
_ACEOF
4263
_ACEOF
3045
rm -f conftest.$ac_objext conftest$ac_exeext
4264
rm -f conftest.$ac_objext conftest$ac_exeext
4265
if { (ac_try="$ac_link"
4266
case "(($ac_try" in
4267
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4268
  *) ac_try_echo=$ac_try;;
4269
esac
3046
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4270
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047
  (eval $ac_link) 2>conftest.er1
4271
  (eval "$ac_link") 2>conftest.er1
3048
  ac_status=$?
4272
  ac_status=$?
3049
  grep -v '^ *+' conftest.er1 >conftest.err
4273
  grep -v '^ *+' conftest.er1 >conftest.err
3050
  rm -f conftest.er1
4274
  rm -f conftest.er1
3051
  cat conftest.err >&5
4275
  cat conftest.err >&5
3052
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053
  (exit $ac_status); } &&
4277
  (exit $ac_status); } && {
3054
     { ac_try='test -z "$ac_cxx_werror_flag"
4278
     test -z "$ac_cxx_werror_flag" ||
3055
           || test ! -s conftest.err'
4279
     test ! -s conftest.err
3056
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4280
       } && test -s conftest$ac_exeext &&
3057
  (eval $ac_try) 2>&5
4281
       $as_test_x conftest$ac_exeext; then
3058
  ac_status=$?
3059
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060
  (exit $ac_status); }; } &&
3061
   { ac_try='test -s conftest$ac_exeext'
3062
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3063
  (eval $ac_try) 2>&5
3064
  ac_status=$?
3065
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066
  (exit $ac_status); }; }; then
3067
  LIBS=$ac_save_LIBS
4282
  LIBS=$ac_save_LIBS
3068
# We can link X programs with no special library path.
4283
# We can link X programs with no special library path.
3069
ac_x_libraries=
4284
ac_x_libraries=
3070
else
4285
else
3071
  echo "$as_me: failed program was:" >&5
4286
  echo "$as_me: failed program was:" >&5
3072
sed 's/^/| /' conftest.$ac_ext >&5
4287
sed 's/^/| /' conftest.$ac_ext >&5
3073
4288
3074
LIBS=$ac_save_LIBS
4289
  LIBS=$ac_save_LIBS
3075
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4290
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3076
do
4291
do
3077
  # Don't even attempt the hair of trying to link an X program!
4292
  # Don't even attempt the hair of trying to link an X program!
3078
  for ac_extension in a so sl; do
4293
  for ac_extension in a so sl; do
3079
    if test -r $ac_dir/libXt.$ac_extension; then
4294
    if test -r "$ac_dir/libX11.$ac_extension"; then
3080
      ac_x_libraries=$ac_dir
4295
      ac_x_libraries=$ac_dir
3081
      break 2
4296
      break 2
3082
    fi
4297
    fi
3083
  done
4298
  done
3084
done
4299
done
3085
fi
4300
fi
3086
rm -f conftest.err conftest.$ac_objext \
4301
4302
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3087
      conftest$ac_exeext conftest.$ac_ext
4303
      conftest$ac_exeext conftest.$ac_ext
3088
fi # $ac_x_libraries = no
4304
fi # $ac_x_libraries = no
3089
4305
3090
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
4306
case $ac_x_includes,$ac_x_libraries in #(
3091
  # Didn't find X anywhere.  Cache the known absence of X.
4307
  no,* | *,no | *\'*)
4308
    # Didn't find X, or a directory has "'" in its name.
3092
  ac_cv_have_x="have_x=no"
4309
    ac_cv_have_x="have_x=no";; #(
3093
else
4310
  *)
3094
  # Record where we found X for the cache.
4311
    # Record where we found X for the cache.
3095
  ac_cv_have_x="have_x=yes \
4312
    ac_cv_have_x="have_x=yes\
3096
      ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4313
  ac_x_includes='$ac_x_includes'\
3097
fi
4314
  ac_x_libraries='$ac_x_libraries'"
3098
fi
4315
esac
3099
3100
  fi
4316
fi
4317
;; #(
4318
    *) have_x=yes;;
4319
  esac
3101
  eval "$ac_cv_have_x"
4320
  eval "$ac_cv_have_x"
3102
fi # $with_x != no
4321
fi # $with_x != no
3103
4322
3104
if test "$have_x" != yes; then
4323
if test "$have_x" != yes; then
3105
  echo "$as_me:$LINENO: result: $have_x" >&5
4324
  { echo "$as_me:$LINENO: result: $have_x" >&5
3106
echo "${ECHO_T}$have_x" >&6
4325
echo "${ECHO_T}$have_x" >&6; }
3107
  no_x=yes
4326
  no_x=yes
3108
else
4327
else
3109
  # If each of the values was on the command line, it overrides each guess.
4328
  # If each of the values was on the command line, it overrides each guess.
3110
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4329
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3111
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4330
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3112
  # Update the cache value to reflect the command line values.
4331
  # Update the cache value to reflect the command line values.
3113
  ac_cv_have_x="have_x=yes \
4332
  ac_cv_have_x="have_x=yes\
3114
      ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4333
  ac_x_includes='$x_includes'\
4334
  ac_x_libraries='$x_libraries'"
3115
  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4335
  { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3116
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
4336
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
3117
fi
4337
fi
3118
4338
3119
if test "$no_x" = yes; then
4339
if test "$no_x" = yes; then
3120
  # Not all programs may use this symbol, but it does not hurt to define it.
4340
  # Not all programs may use this symbol, but it does not hurt to define it.
3121
4341
...
...
3132
  # It would also be nice to do this for all -L options, not just this one.
4352
  # It would also be nice to do this for all -L options, not just this one.
3133
  if test -n "$x_libraries"; then
4353
  if test -n "$x_libraries"; then
3134
    X_LIBS="$X_LIBS -L$x_libraries"
4354
    X_LIBS="$X_LIBS -L$x_libraries"
3135
    # For Solaris; some versions of Sun CC require a space after -R and
4355
    # For Solaris; some versions of Sun CC require a space after -R and
3136
    # others require no space.  Words are not sufficient . . . .
4356
    # others require no space.  Words are not sufficient . . . .
3137
    case `(uname -sr) 2>/dev/null` in
3138
    "SunOS 5"*)
3139
      echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4357
    { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3140
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
4358
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
3141
      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4359
    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4360
    ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
4361
    ac_cxx_werror_flag=yes
3142
      cat >conftest.$ac_ext <<_ACEOF
4362
    cat >conftest.$ac_ext <<_ACEOF
3143
/* confdefs.h.  */
4363
/* confdefs.h.  */
3144
_ACEOF
4364
_ACEOF
3145
cat confdefs.h >>conftest.$ac_ext
4365
cat confdefs.h >>conftest.$ac_ext
3146
cat >>conftest.$ac_ext <<_ACEOF
4366
cat >>conftest.$ac_ext <<_ACEOF
3147
/* end confdefs.h.  */
4367
/* end confdefs.h.  */
...
...
3153
  ;
4373
  ;
3154
  return 0;
4374
  return 0;
3155
}
4375
}
3156
_ACEOF
4376
_ACEOF
3157
rm -f conftest.$ac_objext conftest$ac_exeext
4377
rm -f conftest.$ac_objext conftest$ac_exeext
4378
if { (ac_try="$ac_link"
4379
case "(($ac_try" in
4380
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381
  *) ac_try_echo=$ac_try;;
4382
esac
3158
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4383
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3159
  (eval $ac_link) 2>conftest.er1
4384
  (eval "$ac_link") 2>conftest.er1
3160
  ac_status=$?
4385
  ac_status=$?
3161
  grep -v '^ *+' conftest.er1 >conftest.err
4386
  grep -v '^ *+' conftest.er1 >conftest.err
3162
  rm -f conftest.er1
4387
  rm -f conftest.er1
3163
  cat conftest.err >&5
4388
  cat conftest.err >&5
3164
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165
  (exit $ac_status); } &&
4390
  (exit $ac_status); } && {
3166
     { ac_try='test -z "$ac_cxx_werror_flag"
4391
     test -z "$ac_cxx_werror_flag" ||
3167
           || test ! -s conftest.err'
4392
     test ! -s conftest.err
3168
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4393
       } && test -s conftest$ac_exeext &&
3169
  (eval $ac_try) 2>&5
4394
       $as_test_x conftest$ac_exeext; then
3170
  ac_status=$?
4395
  { echo "$as_me:$LINENO: result: no" >&5
3171
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396
echo "${ECHO_T}no" >&6; }
3172
  (exit $ac_status); }; } &&
4397
       X_LIBS="$X_LIBS -R$x_libraries"
3173
   { ac_try='test -s conftest$ac_exeext'
3174
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3175
  (eval $ac_try) 2>&5
3176
  ac_status=$?
3177
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178
  (exit $ac_status); }; }; then
3179
  ac_R_nospace=yes
3180
else
4398
else
3181
  echo "$as_me: failed program was:" >&5
4399
  echo "$as_me: failed program was:" >&5
3182
sed 's/^/| /' conftest.$ac_ext >&5
4400
sed 's/^/| /' conftest.$ac_ext >&5
3183
4401
3184
ac_R_nospace=no
3185
fi
3186
rm -f conftest.err conftest.$ac_objext \
3187
      conftest$ac_exeext conftest.$ac_ext
3188
      if test $ac_R_nospace = yes; then
3189
  echo "$as_me:$LINENO: result: no" >&5
3190
echo "${ECHO_T}no" >&6
3191
  X_LIBS="$X_LIBS -R$x_libraries"
3192
      else
3193
    LIBS="$ac_xsave_LIBS -R $x_libraries"
4402
    LIBS="$ac_xsave_LIBS -R $x_libraries"
3194
  cat >conftest.$ac_ext <<_ACEOF
4403
       cat >conftest.$ac_ext <<_ACEOF
3195
/* confdefs.h.  */
4404
/* confdefs.h.  */
3196
_ACEOF
4405
_ACEOF
3197
cat confdefs.h >>conftest.$ac_ext
4406
cat confdefs.h >>conftest.$ac_ext
3198
cat >>conftest.$ac_ext <<_ACEOF
4407
cat >>conftest.$ac_ext <<_ACEOF
3199
/* end confdefs.h.  */
4408
/* end confdefs.h.  */
...
...
3205
  ;
4414
  ;
3206
  return 0;
4415
  return 0;
3207
}
4416
}
3208
_ACEOF
4417
_ACEOF
3209
rm -f conftest.$ac_objext conftest$ac_exeext
4418
rm -f conftest.$ac_objext conftest$ac_exeext
4419
if { (ac_try="$ac_link"
4420
case "(($ac_try" in
4421
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422
  *) ac_try_echo=$ac_try;;
4423
esac
3210
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4424
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211
  (eval $ac_link) 2>conftest.er1
4425
  (eval "$ac_link") 2>conftest.er1
3212
  ac_status=$?
4426
  ac_status=$?
3213
  grep -v '^ *+' conftest.er1 >conftest.err
4427
  grep -v '^ *+' conftest.er1 >conftest.err
3214
  rm -f conftest.er1
4428
  rm -f conftest.er1
3215
  cat conftest.err >&5
4429
  cat conftest.err >&5
3216
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217
  (exit $ac_status); } &&
4431
  (exit $ac_status); } && {
3218
     { ac_try='test -z "$ac_cxx_werror_flag"
4432
     test -z "$ac_cxx_werror_flag" ||
3219
           || test ! -s conftest.err'
4433
     test ! -s conftest.err
3220
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4434
       } && test -s conftest$ac_exeext &&
3221
  (eval $ac_try) 2>&5
4435
       $as_test_x conftest$ac_exeext; then
3222
  ac_status=$?
4436
  { echo "$as_me:$LINENO: result: yes" >&5
3223
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437
echo "${ECHO_T}yes" >&6; }
3224
  (exit $ac_status); }; } &&
4438
    X_LIBS="$X_LIBS -R $x_libraries"
3225
   { ac_try='test -s conftest$ac_exeext'
3226
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3227
  (eval $ac_try) 2>&5
3228
  ac_status=$?
3229
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230
  (exit $ac_status); }; }; then
3231
  ac_R_space=yes
3232
else
4439
else
3233
  echo "$as_me: failed program was:" >&5
4440
  echo "$as_me: failed program was:" >&5
3234
sed 's/^/| /' conftest.$ac_ext >&5
4441
sed 's/^/| /' conftest.$ac_ext >&5
3235
4442
3236
ac_R_space=no
4443
  { echo "$as_me:$LINENO: result: neither works" >&5
4444
echo "${ECHO_T}neither works" >&6; }
3237
fi
4445
fi
3238
rm -f conftest.err conftest.$ac_objext \
4446
4447
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3239
      conftest$ac_exeext conftest.$ac_ext
4448
      conftest$ac_exeext conftest.$ac_ext
3240
  if test $ac_R_space = yes; then
3241
    echo "$as_me:$LINENO: result: yes" >&5
3242
echo "${ECHO_T}yes" >&6
3243
    X_LIBS="$X_LIBS -R $x_libraries"
3244
  else
3245
    echo "$as_me:$LINENO: result: neither works" >&5
3246
echo "${ECHO_T}neither works" >&6
3247
  fi
4449
fi
3248
      fi
4450
4451
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4452
      conftest$ac_exeext conftest.$ac_ext
4453
    ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
3249
      LIBS=$ac_xsave_LIBS
4454
    LIBS=$ac_xsave_LIBS
3250
    esac
3251
  fi
4455
  fi
3252
4456
3253
  # Check for system-dependent libraries X programs must link with.
4457
  # Check for system-dependent libraries X programs must link with.
3254
  # Do this before checking for the system-independent R6 libraries
4458
  # Do this before checking for the system-independent R6 libraries
3255
  # (-lICE), since we may need -lsocket or whatever for X linking.
4459
  # (-lICE), since we may need -lsocket or whatever for X linking.
...
...
3266
_ACEOF
4470
_ACEOF
3267
cat confdefs.h >>conftest.$ac_ext
4471
cat confdefs.h >>conftest.$ac_ext
3268
cat >>conftest.$ac_ext <<_ACEOF
4472
cat >>conftest.$ac_ext <<_ACEOF
3269
/* end confdefs.h.  */
4473
/* end confdefs.h.  */
3270
4474
3271
/* Override any gcc2 internal prototype to avoid an error.  */
4475
/* Override any GCC internal prototype to avoid an error.
4476
   Use char because int might match the return type of a GCC
4477
   builtin and then its argument prototype would still apply.  */
3272
#ifdef __cplusplus
4478
#ifdef __cplusplus
3273
extern "C"
4479
extern "C"
3274
#endif
4480
#endif
3275
/* We use char because int might match the return type of a gcc2
3276
   builtin and then its argument prototype would still apply.  */
3277
char XOpenDisplay ();
4481
char XOpenDisplay ();
3278
int
4482
int
3279
main ()
4483
main ()
3280
{
4484
{
3281
XOpenDisplay ();
4485
return XOpenDisplay ();
3282
  ;
4486
  ;
3283
  return 0;
4487
  return 0;
3284
}
4488
}
3285
_ACEOF
4489
_ACEOF
3286
rm -f conftest.$ac_objext conftest$ac_exeext
4490
rm -f conftest.$ac_objext conftest$ac_exeext
4491
if { (ac_try="$ac_link"
4492
case "(($ac_try" in
4493
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4494
  *) ac_try_echo=$ac_try;;
4495
esac
3287
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4496
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3288
  (eval $ac_link) 2>conftest.er1
4497
  (eval "$ac_link") 2>conftest.er1
3289
  ac_status=$?
4498
  ac_status=$?
3290
  grep -v '^ *+' conftest.er1 >conftest.err
4499
  grep -v '^ *+' conftest.er1 >conftest.err
3291
  rm -f conftest.er1
4500
  rm -f conftest.er1
3292
  cat conftest.err >&5
4501
  cat conftest.err >&5
3293
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294
  (exit $ac_status); } &&
4503
  (exit $ac_status); } && {
3295
     { ac_try='test -z "$ac_cxx_werror_flag"
4504
     test -z "$ac_cxx_werror_flag" ||
3296
           || test ! -s conftest.err'
4505
     test ! -s conftest.err
3297
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4506
       } && test -s conftest$ac_exeext &&
3298
  (eval $ac_try) 2>&5
4507
       $as_test_x conftest$ac_exeext; then
3299
  ac_status=$?
3300
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301
  (exit $ac_status); }; } &&
3302
   { ac_try='test -s conftest$ac_exeext'
3303
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3304
  (eval $ac_try) 2>&5
3305
  ac_status=$?
3306
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307
  (exit $ac_status); }; }; then
3308
  :
4508
  :
3309
else
4509
else
3310
  echo "$as_me: failed program was:" >&5
4510
  echo "$as_me: failed program was:" >&5
3311
sed 's/^/| /' conftest.$ac_ext >&5
4511
sed 's/^/| /' conftest.$ac_ext >&5
3312
4512
3313
echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4513
  { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3314
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
4514
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
3315
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4515
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3316
  echo $ECHO_N "(cached) $ECHO_C" >&6
4516
  echo $ECHO_N "(cached) $ECHO_C" >&6
3317
else
4517
else
3318
  ac_check_lib_save_LIBS=$LIBS
4518
  ac_check_lib_save_LIBS=$LIBS
3319
LIBS="-ldnet  $LIBS"
4519
LIBS="-ldnet  $LIBS"
...
...
3322
_ACEOF
4522
_ACEOF
3323
cat confdefs.h >>conftest.$ac_ext
4523
cat confdefs.h >>conftest.$ac_ext
3324
cat >>conftest.$ac_ext <<_ACEOF
4524
cat >>conftest.$ac_ext <<_ACEOF
3325
/* end confdefs.h.  */
4525
/* end confdefs.h.  */
3326
4526
3327
/* Override any gcc2 internal prototype to avoid an error.  */
4527
/* Override any GCC internal prototype to avoid an error.
4528
   Use char because int might match the return type of a GCC
4529
   builtin and then its argument prototype would still apply.  */
3328
#ifdef __cplusplus
4530
#ifdef __cplusplus
3329
extern "C"
4531
extern "C"
3330
#endif
4532
#endif
3331
/* We use char because int might match the return type of a gcc2
3332
   builtin and then its argument prototype would still apply.  */
3333
char dnet_ntoa ();
4533
char dnet_ntoa ();
3334
int
4534
int
3335
main ()
4535
main ()
3336
{
4536
{
3337
dnet_ntoa ();
4537
return dnet_ntoa ();
3338
  ;
4538
  ;
3339
  return 0;
4539
  return 0;
3340
}
4540
}
3341
_ACEOF
4541
_ACEOF
3342
rm -f conftest.$ac_objext conftest$ac_exeext
4542
rm -f conftest.$ac_objext conftest$ac_exeext
4543
if { (ac_try="$ac_link"
4544
case "(($ac_try" in
4545
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4546
  *) ac_try_echo=$ac_try;;
4547
esac
3343
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4548
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3344
  (eval $ac_link) 2>conftest.er1
4549
  (eval "$ac_link") 2>conftest.er1
3345
  ac_status=$?
4550
  ac_status=$?
3346
  grep -v '^ *+' conftest.er1 >conftest.err
4551
  grep -v '^ *+' conftest.er1 >conftest.err
3347
  rm -f conftest.er1
4552
  rm -f conftest.er1
3348
  cat conftest.err >&5
4553
  cat conftest.err >&5
3349
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350
  (exit $ac_status); } &&
4555
  (exit $ac_status); } && {
3351
     { ac_try='test -z "$ac_cxx_werror_flag"
4556
     test -z "$ac_cxx_werror_flag" ||
3352
           || test ! -s conftest.err'
4557
     test ! -s conftest.err
3353
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4558
       } && test -s conftest$ac_exeext &&
3354
  (eval $ac_try) 2>&5
4559
       $as_test_x conftest$ac_exeext; then
3355
  ac_status=$?
3356
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357
  (exit $ac_status); }; } &&
3358
   { ac_try='test -s conftest$ac_exeext'
3359
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3360
  (eval $ac_try) 2>&5
3361
  ac_status=$?
3362
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363
  (exit $ac_status); }; }; then
3364
  ac_cv_lib_dnet_dnet_ntoa=yes
4560
  ac_cv_lib_dnet_dnet_ntoa=yes
3365
else
4561
else
3366
  echo "$as_me: failed program was:" >&5
4562
  echo "$as_me: failed program was:" >&5
3367
sed 's/^/| /' conftest.$ac_ext >&5
4563
sed 's/^/| /' conftest.$ac_ext >&5
3368
4564
3369
ac_cv_lib_dnet_dnet_ntoa=no
4565
  ac_cv_lib_dnet_dnet_ntoa=no
3370
fi
4566
fi
3371
rm -f conftest.err conftest.$ac_objext \
4567
4568
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3372
      conftest$ac_exeext conftest.$ac_ext
4569
      conftest$ac_exeext conftest.$ac_ext
3373
LIBS=$ac_check_lib_save_LIBS
4570
LIBS=$ac_check_lib_save_LIBS
3374
fi
4571
fi
3375
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4572
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3376
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
4573
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
3377
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4574
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3378
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4575
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3379
fi
4576
fi
3380
4577
3381
    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4578
    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3382
      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4579
      { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3383
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
4580
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
3384
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4581
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3385
  echo $ECHO_N "(cached) $ECHO_C" >&6
4582
  echo $ECHO_N "(cached) $ECHO_C" >&6
3386
else
4583
else
3387
  ac_check_lib_save_LIBS=$LIBS
4584
  ac_check_lib_save_LIBS=$LIBS
3388
LIBS="-ldnet_stub  $LIBS"
4585
LIBS="-ldnet_stub  $LIBS"
...
...
3391
_ACEOF
4588
_ACEOF
3392
cat confdefs.h >>conftest.$ac_ext
4589
cat confdefs.h >>conftest.$ac_ext
3393
cat >>conftest.$ac_ext <<_ACEOF
4590
cat >>conftest.$ac_ext <<_ACEOF
3394
/* end confdefs.h.  */
4591
/* end confdefs.h.  */
3395
4592
3396
/* Override any gcc2 internal prototype to avoid an error.  */
4593
/* Override any GCC internal prototype to avoid an error.
4594
   Use char because int might match the return type of a GCC
4595
   builtin and then its argument prototype would still apply.  */
3397
#ifdef __cplusplus
4596
#ifdef __cplusplus
3398
extern "C"
4597
extern "C"
3399
#endif
4598
#endif
3400
/* We use char because int might match the return type of a gcc2
3401
   builtin and then its argument prototype would still apply.  */
3402
char dnet_ntoa ();
4599
char dnet_ntoa ();
3403
int
4600
int
3404
main ()
4601
main ()
3405
{
4602
{
3406
dnet_ntoa ();
4603
return dnet_ntoa ();
3407
  ;
4604
  ;
3408
  return 0;
4605
  return 0;
3409
}
4606
}
3410
_ACEOF
4607
_ACEOF
3411
rm -f conftest.$ac_objext conftest$ac_exeext
4608
rm -f conftest.$ac_objext conftest$ac_exeext
4609
if { (ac_try="$ac_link"
4610
case "(($ac_try" in
4611
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4612
  *) ac_try_echo=$ac_try;;
4613
esac
3412
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4614
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3413
  (eval $ac_link) 2>conftest.er1
4615
  (eval "$ac_link") 2>conftest.er1
3414
  ac_status=$?
4616
  ac_status=$?
3415
  grep -v '^ *+' conftest.er1 >conftest.err
4617
  grep -v '^ *+' conftest.er1 >conftest.err
3416
  rm -f conftest.er1
4618
  rm -f conftest.er1
3417
  cat conftest.err >&5
4619
  cat conftest.err >&5
3418
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419
  (exit $ac_status); } &&
4621
  (exit $ac_status); } && {
3420
     { ac_try='test -z "$ac_cxx_werror_flag"
4622
     test -z "$ac_cxx_werror_flag" ||
3421
           || test ! -s conftest.err'
4623
     test ! -s conftest.err
3422
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4624
       } && test -s conftest$ac_exeext &&
3423
  (eval $ac_try) 2>&5
4625
       $as_test_x conftest$ac_exeext; then
3424
  ac_status=$?
3425
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426
  (exit $ac_status); }; } &&
3427
   { ac_try='test -s conftest$ac_exeext'
3428
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3429
  (eval $ac_try) 2>&5
3430
  ac_status=$?
3431
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432
  (exit $ac_status); }; }; then
3433
  ac_cv_lib_dnet_stub_dnet_ntoa=yes
4626
  ac_cv_lib_dnet_stub_dnet_ntoa=yes
3434
else
4627
else
3435
  echo "$as_me: failed program was:" >&5
4628
  echo "$as_me: failed program was:" >&5
3436
sed 's/^/| /' conftest.$ac_ext >&5
4629
sed 's/^/| /' conftest.$ac_ext >&5
3437
4630
3438
ac_cv_lib_dnet_stub_dnet_ntoa=no
4631
  ac_cv_lib_dnet_stub_dnet_ntoa=no
3439
fi
4632
fi
3440
rm -f conftest.err conftest.$ac_objext \
4633
4634
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3441
      conftest$ac_exeext conftest.$ac_ext
4635
      conftest$ac_exeext conftest.$ac_ext
3442
LIBS=$ac_check_lib_save_LIBS
4636
LIBS=$ac_check_lib_save_LIBS
3443
fi
4637
fi
3444
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4638
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3445
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
4639
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
3446
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4640
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3447
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4641
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3448
fi
4642
fi
3449
4643
3450
    fi
4644
    fi
3451
fi
4645
fi
3452
rm -f conftest.err conftest.$ac_objext \
4646
4647
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3453
      conftest$ac_exeext conftest.$ac_ext
4648
      conftest$ac_exeext conftest.$ac_ext
3454
    LIBS="$ac_xsave_LIBS"
4649
    LIBS="$ac_xsave_LIBS"
3455
4650
3456
    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4651
    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3457
    # to get the SysV transport functions.
4652
    # to get the SysV transport functions.
...
...
3459
    # needs -lnsl.
4654
    # needs -lnsl.
3460
    # The nsl library prevents programs from opening the X display
4655
    # The nsl library prevents programs from opening the X display
3461
    # on Irix 5.2, according to T.E. Dickey.
4656
    # on Irix 5.2, according to T.E. Dickey.
3462
    # The functions gethostbyname, getservbyname, and inet_addr are
4657
    # The functions gethostbyname, getservbyname, and inet_addr are
3463
    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4658
    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3464
    echo "$as_me:$LINENO: checking for gethostbyname" >&5
4659
    { echo "$as_me:$LINENO: checking for gethostbyname" >&5
3465
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
4660
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
3466
if test "${ac_cv_func_gethostbyname+set}" = set; then
4661
if test "${ac_cv_func_gethostbyname+set}" = set; then
3467
  echo $ECHO_N "(cached) $ECHO_C" >&6
4662
  echo $ECHO_N "(cached) $ECHO_C" >&6
3468
else
4663
else
3469
  cat >conftest.$ac_ext <<_ACEOF
4664
  cat >conftest.$ac_ext <<_ACEOF
3470
/* confdefs.h.  */
4665
/* confdefs.h.  */
...
...
3487
# include <assert.h>
4682
# include <assert.h>
3488
#endif
4683
#endif
3489
4684
3490
#undef gethostbyname
4685
#undef gethostbyname
3491
4686
3492
/* Override any gcc2 internal prototype to avoid an error.  */
4687
/* Override any GCC internal prototype to avoid an error.
4688
   Use char because int might match the return type of a GCC
4689
   builtin and then its argument prototype would still apply.  */
3493
#ifdef __cplusplus
4690
#ifdef __cplusplus
3494
extern "C"
4691
extern "C"
3495
{
3496
#endif
4692
#endif
3497
/* We use char because int might match the return type of a gcc2
3498
   builtin and then its argument prototype would still apply.  */
3499
char gethostbyname ();
4693
char gethostbyname ();
3500
/* The GNU C library defines this for functions which it implements
4694
/* The GNU C library defines this for functions which it implements
3501
    to always fail with ENOSYS.  Some functions are actually named
4695
    to always fail with ENOSYS.  Some functions are actually named
3502
    something starting with __ and the normal name is an alias.  */
4696
    something starting with __ and the normal name is an alias.  */
3503
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4697
#if defined __stub_gethostbyname || defined __stub___gethostbyname
3504
choke me
4698
choke me
3505
#else
3506
char (*f) () = gethostbyname;
3507
#endif
3508
#ifdef __cplusplus
3509
}
3510
#endif
4699
#endif
3511
4700
3512
int
4701
int
3513
main ()
4702
main ()
3514
{
4703
{
3515
return f != gethostbyname;
4704
return gethostbyname ();
3516
  ;
4705
  ;
3517
  return 0;
4706
  return 0;
3518
}
4707
}
3519
_ACEOF
4708
_ACEOF
3520
rm -f conftest.$ac_objext conftest$ac_exeext
4709
rm -f conftest.$ac_objext conftest$ac_exeext
4710
if { (ac_try="$ac_link"
4711
case "(($ac_try" in
4712
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4713
  *) ac_try_echo=$ac_try;;
4714
esac
3521
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4715
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3522
  (eval $ac_link) 2>conftest.er1
4716
  (eval "$ac_link") 2>conftest.er1
3523
  ac_status=$?
4717
  ac_status=$?
3524
  grep -v '^ *+' conftest.er1 >conftest.err
4718
  grep -v '^ *+' conftest.er1 >conftest.err
3525
  rm -f conftest.er1
4719
  rm -f conftest.er1
3526
  cat conftest.err >&5
4720
  cat conftest.err >&5
3527
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528
  (exit $ac_status); } &&
4722
  (exit $ac_status); } && {
3529
     { ac_try='test -z "$ac_cxx_werror_flag"
4723
     test -z "$ac_cxx_werror_flag" ||
3530
           || test ! -s conftest.err'
4724
     test ! -s conftest.err
3531
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4725
       } && test -s conftest$ac_exeext &&
3532
  (eval $ac_try) 2>&5
4726
       $as_test_x conftest$ac_exeext; then
3533
  ac_status=$?
3534
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535
  (exit $ac_status); }; } &&
3536
   { ac_try='test -s conftest$ac_exeext'
3537
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538
  (eval $ac_try) 2>&5
3539
  ac_status=$?
3540
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541
  (exit $ac_status); }; }; then
3542
  ac_cv_func_gethostbyname=yes
4727
  ac_cv_func_gethostbyname=yes
3543
else
4728
else
3544
  echo "$as_me: failed program was:" >&5
4729
  echo "$as_me: failed program was:" >&5
3545
sed 's/^/| /' conftest.$ac_ext >&5
4730
sed 's/^/| /' conftest.$ac_ext >&5
3546
4731
3547
ac_cv_func_gethostbyname=no
4732
  ac_cv_func_gethostbyname=no
3548
fi
4733
fi
3549
rm -f conftest.err conftest.$ac_objext \
4734
4735
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3550
      conftest$ac_exeext conftest.$ac_ext
4736
      conftest$ac_exeext conftest.$ac_ext
3551
fi
4737
fi
3552
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4738
{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3553
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4739
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
3554
4740
3555
    if test $ac_cv_func_gethostbyname = no; then
4741
    if test $ac_cv_func_gethostbyname = no; then
3556
      echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4742
      { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3557
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4743
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
3558
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4744
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3559
  echo $ECHO_N "(cached) $ECHO_C" >&6
4745
  echo $ECHO_N "(cached) $ECHO_C" >&6
3560
else
4746
else
3561
  ac_check_lib_save_LIBS=$LIBS
4747
  ac_check_lib_save_LIBS=$LIBS
3562
LIBS="-lnsl  $LIBS"
4748
LIBS="-lnsl  $LIBS"
...
...
3565
_ACEOF
4751
_ACEOF
3566
cat confdefs.h >>conftest.$ac_ext
4752
cat confdefs.h >>conftest.$ac_ext
3567
cat >>conftest.$ac_ext <<_ACEOF
4753
cat >>conftest.$ac_ext <<_ACEOF
3568
/* end confdefs.h.  */
4754
/* end confdefs.h.  */
3569
4755
3570
/* Override any gcc2 internal prototype to avoid an error.  */
4756
/* Override any GCC internal prototype to avoid an error.
4757
   Use char because int might match the return type of a GCC
4758
   builtin and then its argument prototype would still apply.  */
3571
#ifdef __cplusplus
4759
#ifdef __cplusplus
3572
extern "C"
4760
extern "C"
3573
#endif
4761
#endif
3574
/* We use char because int might match the return type of a gcc2
3575
   builtin and then its argument prototype would still apply.  */
3576
char gethostbyname ();
4762
char gethostbyname ();
3577
int
4763
int
3578
main ()
4764
main ()
3579
{
4765
{
3580
gethostbyname ();
4766
return gethostbyname ();
3581
  ;
4767
  ;
3582
  return 0;
4768
  return 0;
3583
}
4769
}
3584
_ACEOF
4770
_ACEOF
3585
rm -f conftest.$ac_objext conftest$ac_exeext
4771
rm -f conftest.$ac_objext conftest$ac_exeext
4772
if { (ac_try="$ac_link"
4773
case "(($ac_try" in
4774
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4775
  *) ac_try_echo=$ac_try;;
4776
esac
3586
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4777
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3587
  (eval $ac_link) 2>conftest.er1
4778
  (eval "$ac_link") 2>conftest.er1
3588
  ac_status=$?
4779
  ac_status=$?
3589
  grep -v '^ *+' conftest.er1 >conftest.err
4780
  grep -v '^ *+' conftest.er1 >conftest.err
3590
  rm -f conftest.er1
4781
  rm -f conftest.er1
3591
  cat conftest.err >&5
4782
  cat conftest.err >&5
3592
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593
  (exit $ac_status); } &&
4784
  (exit $ac_status); } && {
3594
     { ac_try='test -z "$ac_cxx_werror_flag"
4785
     test -z "$ac_cxx_werror_flag" ||
3595
           || test ! -s conftest.err'
4786
     test ! -s conftest.err
3596
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4787
       } && test -s conftest$ac_exeext &&
3597
  (eval $ac_try) 2>&5
4788
       $as_test_x conftest$ac_exeext; then
3598
  ac_status=$?
3599
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600
  (exit $ac_status); }; } &&
3601
   { ac_try='test -s conftest$ac_exeext'
3602
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3603
  (eval $ac_try) 2>&5
3604
  ac_status=$?
3605
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606
  (exit $ac_status); }; }; then
3607
  ac_cv_lib_nsl_gethostbyname=yes
4789
  ac_cv_lib_nsl_gethostbyname=yes
3608
else
4790
else
3609
  echo "$as_me: failed program was:" >&5
4791
  echo "$as_me: failed program was:" >&5
3610
sed 's/^/| /' conftest.$ac_ext >&5
4792
sed 's/^/| /' conftest.$ac_ext >&5
3611
4793
3612
ac_cv_lib_nsl_gethostbyname=no
4794
  ac_cv_lib_nsl_gethostbyname=no
3613
fi
4795
fi
3614
rm -f conftest.err conftest.$ac_objext \
4796
4797
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3615
      conftest$ac_exeext conftest.$ac_ext
4798
      conftest$ac_exeext conftest.$ac_ext
3616
LIBS=$ac_check_lib_save_LIBS
4799
LIBS=$ac_check_lib_save_LIBS
3617
fi
4800
fi
3618
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4801
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3619
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4802
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
3620
if test $ac_cv_lib_nsl_gethostbyname = yes; then
4803
if test $ac_cv_lib_nsl_gethostbyname = yes; then
3621
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4804
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3622
fi
4805
fi
3623
4806
3624
      if test $ac_cv_lib_nsl_gethostbyname = no; then
4807
      if test $ac_cv_lib_nsl_gethostbyname = no; then
3625
    echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4808
    { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3626
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
4809
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
3627
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4810
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3628
  echo $ECHO_N "(cached) $ECHO_C" >&6
4811
  echo $ECHO_N "(cached) $ECHO_C" >&6
3629
else
4812
else
3630
  ac_check_lib_save_LIBS=$LIBS
4813
  ac_check_lib_save_LIBS=$LIBS
3631
LIBS="-lbsd  $LIBS"
4814
LIBS="-lbsd  $LIBS"
...
...
3634
_ACEOF
4817
_ACEOF
3635
cat confdefs.h >>conftest.$ac_ext
4818
cat confdefs.h >>conftest.$ac_ext
3636
cat >>conftest.$ac_ext <<_ACEOF
4819
cat >>conftest.$ac_ext <<_ACEOF
3637
/* end confdefs.h.  */
4820
/* end confdefs.h.  */
3638
4821
3639
/* Override any gcc2 internal prototype to avoid an error.  */
4822
/* Override any GCC internal prototype to avoid an error.
4823
   Use char because int might match the return type of a GCC
4824
   builtin and then its argument prototype would still apply.  */
3640
#ifdef __cplusplus
4825
#ifdef __cplusplus
3641
extern "C"
4826
extern "C"
3642
#endif
4827
#endif
3643
/* We use char because int might match the return type of a gcc2
3644
   builtin and then its argument prototype would still apply.  */
3645
char gethostbyname ();
4828
char gethostbyname ();
3646
int
4829
int
3647
main ()
4830
main ()
3648
{
4831
{
3649
gethostbyname ();
4832
return gethostbyname ();
3650
  ;
4833
  ;
3651
  return 0;
4834
  return 0;
3652
}
4835
}
3653
_ACEOF
4836
_ACEOF
3654
rm -f conftest.$ac_objext conftest$ac_exeext
4837
rm -f conftest.$ac_objext conftest$ac_exeext
4838
if { (ac_try="$ac_link"
4839
case "(($ac_try" in
4840
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4841
  *) ac_try_echo=$ac_try;;
4842
esac
3655
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4843
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3656
  (eval $ac_link) 2>conftest.er1
4844
  (eval "$ac_link") 2>conftest.er1
3657
  ac_status=$?
4845
  ac_status=$?
3658
  grep -v '^ *+' conftest.er1 >conftest.err
4846
  grep -v '^ *+' conftest.er1 >conftest.err
3659
  rm -f conftest.er1
4847
  rm -f conftest.er1
3660
  cat conftest.err >&5
4848
  cat conftest.err >&5
3661
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662
  (exit $ac_status); } &&
4850
  (exit $ac_status); } && {
3663
     { ac_try='test -z "$ac_cxx_werror_flag"
4851
     test -z "$ac_cxx_werror_flag" ||
3664
           || test ! -s conftest.err'
4852
     test ! -s conftest.err
3665
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4853
       } && test -s conftest$ac_exeext &&
3666
  (eval $ac_try) 2>&5
4854
       $as_test_x conftest$ac_exeext; then
3667
  ac_status=$?
3668
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669
  (exit $ac_status); }; } &&
3670
   { ac_try='test -s conftest$ac_exeext'
3671
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672
  (eval $ac_try) 2>&5
3673
  ac_status=$?
3674
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675
  (exit $ac_status); }; }; then
3676
  ac_cv_lib_bsd_gethostbyname=yes
4855
  ac_cv_lib_bsd_gethostbyname=yes
3677
else
4856
else
3678
  echo "$as_me: failed program was:" >&5
4857
  echo "$as_me: failed program was:" >&5
3679
sed 's/^/| /' conftest.$ac_ext >&5
4858
sed 's/^/| /' conftest.$ac_ext >&5
3680
4859
3681
ac_cv_lib_bsd_gethostbyname=no
4860
  ac_cv_lib_bsd_gethostbyname=no
3682
fi
4861
fi
3683
rm -f conftest.err conftest.$ac_objext \
4862
4863
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3684
      conftest$ac_exeext conftest.$ac_ext
4864
      conftest$ac_exeext conftest.$ac_ext
3685
LIBS=$ac_check_lib_save_LIBS
4865
LIBS=$ac_check_lib_save_LIBS
3686
fi
4866
fi
3687
echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4867
{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3688
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
4868
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
3689
if test $ac_cv_lib_bsd_gethostbyname = yes; then
4869
if test $ac_cv_lib_bsd_gethostbyname = yes; then
3690
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4870
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3691
fi
4871
fi
3692
4872
3693
      fi
4873
      fi
...
...
3698
    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
4878
    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
3699
    # on later versions), says Simon Leinen: it contains gethostby*
4879
    # on later versions), says Simon Leinen: it contains gethostby*
3700
    # variants that don't use the name server (or something).  -lsocket
4880
    # variants that don't use the name server (or something).  -lsocket
3701
    # must be given before -lnsl if both are needed.  We assume that
4881
    # must be given before -lnsl if both are needed.  We assume that
3702
    # if connect needs -lnsl, so does gethostbyname.
4882
    # if connect needs -lnsl, so does gethostbyname.
3703
    echo "$as_me:$LINENO: checking for connect" >&5
4883
    { echo "$as_me:$LINENO: checking for connect" >&5
3704
echo $ECHO_N "checking for connect... $ECHO_C" >&6
4884
echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
3705
if test "${ac_cv_func_connect+set}" = set; then
4885
if test "${ac_cv_func_connect+set}" = set; then
3706
  echo $ECHO_N "(cached) $ECHO_C" >&6
4886
  echo $ECHO_N "(cached) $ECHO_C" >&6
3707
else
4887
else
3708
  cat >conftest.$ac_ext <<_ACEOF
4888
  cat >conftest.$ac_ext <<_ACEOF
3709
/* confdefs.h.  */
4889
/* confdefs.h.  */
...
...
3726
# include <assert.h>
4906
# include <assert.h>
3727
#endif
4907
#endif
3728
4908
3729
#undef connect
4909
#undef connect
3730
4910
3731
/* Override any gcc2 internal prototype to avoid an error.  */
4911
/* Override any GCC internal prototype to avoid an error.
4912
   Use char because int might match the return type of a GCC
4913
   builtin and then its argument prototype would still apply.  */
3732
#ifdef __cplusplus
4914
#ifdef __cplusplus
3733
extern "C"
4915
extern "C"
3734
{
3735
#endif
4916
#endif
3736
/* We use char because int might match the return type of a gcc2
3737
   builtin and then its argument prototype would still apply.  */
3738
char connect ();
4917
char connect ();
3739
/* The GNU C library defines this for functions which it implements
4918
/* The GNU C library defines this for functions which it implements
3740
    to always fail with ENOSYS.  Some functions are actually named
4919
    to always fail with ENOSYS.  Some functions are actually named
3741
    something starting with __ and the normal name is an alias.  */
4920
    something starting with __ and the normal name is an alias.  */
3742
#if defined (__stub_connect) || defined (__stub___connect)
4921
#if defined __stub_connect || defined __stub___connect
3743
choke me
4922
choke me
3744
#else
3745
char (*f) () = connect;
3746
#endif
3747
#ifdef __cplusplus
3748
}
3749
#endif
4923
#endif
3750
4924
3751
int
4925
int
3752
main ()
4926
main ()
3753
{
4927
{
3754
return f != connect;
4928
return connect ();
3755
  ;
4929
  ;
3756
  return 0;
4930
  return 0;
3757
}
4931
}
3758
_ACEOF
4932
_ACEOF
3759
rm -f conftest.$ac_objext conftest$ac_exeext
4933
rm -f conftest.$ac_objext conftest$ac_exeext
4934
if { (ac_try="$ac_link"
4935
case "(($ac_try" in
4936
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4937
  *) ac_try_echo=$ac_try;;
4938
esac
3760
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4939
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3761
  (eval $ac_link) 2>conftest.er1
4940
  (eval "$ac_link") 2>conftest.er1
3762
  ac_status=$?
4941
  ac_status=$?
3763
  grep -v '^ *+' conftest.er1 >conftest.err
4942
  grep -v '^ *+' conftest.er1 >conftest.err
3764
  rm -f conftest.er1
4943
  rm -f conftest.er1
3765
  cat conftest.err >&5
4944
  cat conftest.err >&5
3766
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767
  (exit $ac_status); } &&
4946
  (exit $ac_status); } && {
3768
     { ac_try='test -z "$ac_cxx_werror_flag"
4947
     test -z "$ac_cxx_werror_flag" ||
3769
           || test ! -s conftest.err'
4948
     test ! -s conftest.err
3770
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4949
       } && test -s conftest$ac_exeext &&
3771
  (eval $ac_try) 2>&5
4950
       $as_test_x conftest$ac_exeext; then
3772
  ac_status=$?
3773
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774
  (exit $ac_status); }; } &&
3775
   { ac_try='test -s conftest$ac_exeext'
3776
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3777
  (eval $ac_try) 2>&5
3778
  ac_status=$?
3779
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780
  (exit $ac_status); }; }; then
3781
  ac_cv_func_connect=yes
4951
  ac_cv_func_connect=yes
3782
else
4952
else
3783
  echo "$as_me: failed program was:" >&5
4953
  echo "$as_me: failed program was:" >&5
3784
sed 's/^/| /' conftest.$ac_ext >&5
4954
sed 's/^/| /' conftest.$ac_ext >&5
3785
4955
3786
ac_cv_func_connect=no
4956
  ac_cv_func_connect=no
3787
fi
4957
fi
3788
rm -f conftest.err conftest.$ac_objext \
4958
4959
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3789
      conftest$ac_exeext conftest.$ac_ext
4960
      conftest$ac_exeext conftest.$ac_ext
3790
fi
4961
fi
3791
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4962
{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3792
echo "${ECHO_T}$ac_cv_func_connect" >&6
4963
echo "${ECHO_T}$ac_cv_func_connect" >&6; }
3793
4964
3794
    if test $ac_cv_func_connect = no; then
4965
    if test $ac_cv_func_connect = no; then
3795
      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4966
      { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3796
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4967
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
3797
if test "${ac_cv_lib_socket_connect+set}" = set; then
4968
if test "${ac_cv_lib_socket_connect+set}" = set; then
3798
  echo $ECHO_N "(cached) $ECHO_C" >&6
4969
  echo $ECHO_N "(cached) $ECHO_C" >&6
3799
else
4970
else
3800
  ac_check_lib_save_LIBS=$LIBS
4971
  ac_check_lib_save_LIBS=$LIBS
3801
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4972
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
...
...
3804
_ACEOF
4975
_ACEOF
3805
cat confdefs.h >>conftest.$ac_ext
4976
cat confdefs.h >>conftest.$ac_ext
3806
cat >>conftest.$ac_ext <<_ACEOF
4977
cat >>conftest.$ac_ext <<_ACEOF
3807
/* end confdefs.h.  */
4978
/* end confdefs.h.  */
3808
4979
3809
/* Override any gcc2 internal prototype to avoid an error.  */
4980
/* Override any GCC internal prototype to avoid an error.
4981
   Use char because int might match the return type of a GCC
4982
   builtin and then its argument prototype would still apply.  */
3810
#ifdef __cplusplus
4983
#ifdef __cplusplus
3811
extern "C"
4984
extern "C"
3812
#endif
4985
#endif
3813
/* We use char because int might match the return type of a gcc2
3814
   builtin and then its argument prototype would still apply.  */
3815
char connect ();
4986
char connect ();
3816
int
4987
int
3817
main ()
4988
main ()
3818
{
4989
{
3819
connect ();
4990
return connect ();
3820
  ;
4991
  ;
3821
  return 0;
4992
  return 0;
3822
}
4993
}
3823
_ACEOF
4994
_ACEOF
3824
rm -f conftest.$ac_objext conftest$ac_exeext
4995
rm -f conftest.$ac_objext conftest$ac_exeext
4996
if { (ac_try="$ac_link"
4997
case "(($ac_try" in
4998
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4999
  *) ac_try_echo=$ac_try;;
5000
esac
3825
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5001
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3826
  (eval $ac_link) 2>conftest.er1
5002
  (eval "$ac_link") 2>conftest.er1
3827
  ac_status=$?
5003
  ac_status=$?
3828
  grep -v '^ *+' conftest.er1 >conftest.err
5004
  grep -v '^ *+' conftest.er1 >conftest.err
3829
  rm -f conftest.er1
5005
  rm -f conftest.er1
3830
  cat conftest.err >&5
5006
  cat conftest.err >&5
3831
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832
  (exit $ac_status); } &&
5008
  (exit $ac_status); } && {
3833
     { ac_try='test -z "$ac_cxx_werror_flag"
5009
     test -z "$ac_cxx_werror_flag" ||
3834
           || test ! -s conftest.err'
5010
     test ! -s conftest.err
3835
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5011
       } && test -s conftest$ac_exeext &&
3836
  (eval $ac_try) 2>&5
5012
       $as_test_x conftest$ac_exeext; then
3837
  ac_status=$?
3838
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839
  (exit $ac_status); }; } &&
3840
   { ac_try='test -s conftest$ac_exeext'
3841
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842
  (eval $ac_try) 2>&5
3843
  ac_status=$?
3844
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845
  (exit $ac_status); }; }; then
3846
  ac_cv_lib_socket_connect=yes
5013
  ac_cv_lib_socket_connect=yes
3847
else
5014
else
3848
  echo "$as_me: failed program was:" >&5
5015
  echo "$as_me: failed program was:" >&5
3849
sed 's/^/| /' conftest.$ac_ext >&5
5016
sed 's/^/| /' conftest.$ac_ext >&5
3850
5017
3851
ac_cv_lib_socket_connect=no
5018
  ac_cv_lib_socket_connect=no
3852
fi
5019
fi
3853
rm -f conftest.err conftest.$ac_objext \
5020
5021
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3854
      conftest$ac_exeext conftest.$ac_ext
5022
      conftest$ac_exeext conftest.$ac_ext
3855
LIBS=$ac_check_lib_save_LIBS
5023
LIBS=$ac_check_lib_save_LIBS
3856
fi
5024
fi
3857
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5025
{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3858
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5026
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
3859
if test $ac_cv_lib_socket_connect = yes; then
5027
if test $ac_cv_lib_socket_connect = yes; then
3860
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5028
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3861
fi
5029
fi
3862
5030
3863
    fi
5031
    fi
3864
5032
3865
    # Guillermo Gomez says -lposix is necessary on A/UX.
5033
    # Guillermo Gomez says -lposix is necessary on A/UX.
3866
    echo "$as_me:$LINENO: checking for remove" >&5
5034
    { echo "$as_me:$LINENO: checking for remove" >&5
3867
echo $ECHO_N "checking for remove... $ECHO_C" >&6
5035
echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
3868
if test "${ac_cv_func_remove+set}" = set; then
5036
if test "${ac_cv_func_remove+set}" = set; then
3869
  echo $ECHO_N "(cached) $ECHO_C" >&6
5037
  echo $ECHO_N "(cached) $ECHO_C" >&6
3870
else
5038
else
3871
  cat >conftest.$ac_ext <<_ACEOF
5039
  cat >conftest.$ac_ext <<_ACEOF
3872
/* confdefs.h.  */
5040
/* confdefs.h.  */
...
...
3889
# include <assert.h>
5057
# include <assert.h>
3890
#endif
5058
#endif
3891
5059
3892
#undef remove
5060
#undef remove
3893
5061
3894
/* Override any gcc2 internal prototype to avoid an error.  */
5062
/* Override any GCC internal prototype to avoid an error.
5063
   Use char because int might match the return type of a GCC
5064
   builtin and then its argument prototype would still apply.  */
3895
#ifdef __cplusplus
5065
#ifdef __cplusplus
3896
extern "C"
5066
extern "C"
3897
{
3898
#endif
5067
#endif
3899
/* We use char because int might match the return type of a gcc2
3900
   builtin and then its argument prototype would still apply.  */
3901
char remove ();
5068
char remove ();
3902
/* The GNU C library defines this for functions which it implements
5069
/* The GNU C library defines this for functions which it implements
3903
    to always fail with ENOSYS.  Some functions are actually named
5070
    to always fail with ENOSYS.  Some functions are actually named
3904
    something starting with __ and the normal name is an alias.  */
5071
    something starting with __ and the normal name is an alias.  */
3905
#if defined (__stub_remove) || defined (__stub___remove)
5072
#if defined __stub_remove || defined __stub___remove
3906
choke me
5073
choke me
3907
#else
3908
char (*f) () = remove;
3909
#endif
3910
#ifdef __cplusplus
3911
}
3912
#endif
5074
#endif
3913
5075
3914
int
5076
int
3915
main ()
5077
main ()
3916
{
5078
{
3917
return f != remove;
5079
return remove ();
3918
  ;
5080
  ;
3919
  return 0;
5081
  return 0;
3920
}
5082
}
3921
_ACEOF
5083
_ACEOF
3922
rm -f conftest.$ac_objext conftest$ac_exeext
5084
rm -f conftest.$ac_objext conftest$ac_exeext
5085
if { (ac_try="$ac_link"
5086
case "(($ac_try" in
5087
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5088
  *) ac_try_echo=$ac_try;;
5089
esac
3923
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5090
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3924
  (eval $ac_link) 2>conftest.er1
5091
  (eval "$ac_link") 2>conftest.er1
3925
  ac_status=$?
5092
  ac_status=$?
3926
  grep -v '^ *+' conftest.er1 >conftest.err
5093
  grep -v '^ *+' conftest.er1 >conftest.err
3927
  rm -f conftest.er1
5094
  rm -f conftest.er1
3928
  cat conftest.err >&5
5095
  cat conftest.err >&5
3929
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930
  (exit $ac_status); } &&
5097
  (exit $ac_status); } && {
3931
     { ac_try='test -z "$ac_cxx_werror_flag"
5098
     test -z "$ac_cxx_werror_flag" ||
3932
           || test ! -s conftest.err'
5099
     test ! -s conftest.err
3933
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5100
       } && test -s conftest$ac_exeext &&
3934
  (eval $ac_try) 2>&5
5101
       $as_test_x conftest$ac_exeext; then
3935
  ac_status=$?
3936
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937
  (exit $ac_status); }; } &&
3938
   { ac_try='test -s conftest$ac_exeext'
3939
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3940
  (eval $ac_try) 2>&5
3941
  ac_status=$?
3942
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943
  (exit $ac_status); }; }; then
3944
  ac_cv_func_remove=yes
5102
  ac_cv_func_remove=yes
3945
else
5103
else
3946
  echo "$as_me: failed program was:" >&5
5104
  echo "$as_me: failed program was:" >&5
3947
sed 's/^/| /' conftest.$ac_ext >&5
5105
sed 's/^/| /' conftest.$ac_ext >&5
3948
5106
3949
ac_cv_func_remove=no
5107
  ac_cv_func_remove=no
3950
fi
5108
fi
3951
rm -f conftest.err conftest.$ac_objext \
5109
5110
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3952
      conftest$ac_exeext conftest.$ac_ext
5111
      conftest$ac_exeext conftest.$ac_ext
3953
fi
5112
fi
3954
echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5113
{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3955
echo "${ECHO_T}$ac_cv_func_remove" >&6
5114
echo "${ECHO_T}$ac_cv_func_remove" >&6; }
3956
5115
3957
    if test $ac_cv_func_remove = no; then
5116
    if test $ac_cv_func_remove = no; then
3958
      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5117
      { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3959
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5118
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
3960
if test "${ac_cv_lib_posix_remove+set}" = set; then
5119
if test "${ac_cv_lib_posix_remove+set}" = set; then
3961
  echo $ECHO_N "(cached) $ECHO_C" >&6
5120
  echo $ECHO_N "(cached) $ECHO_C" >&6
3962
else
5121
else
3963
  ac_check_lib_save_LIBS=$LIBS
5122
  ac_check_lib_save_LIBS=$LIBS
3964
LIBS="-lposix  $LIBS"
5123
LIBS="-lposix  $LIBS"
...
...
3967
_ACEOF
5126
_ACEOF
3968
cat confdefs.h >>conftest.$ac_ext
5127
cat confdefs.h >>conftest.$ac_ext
3969
cat >>conftest.$ac_ext <<_ACEOF
5128
cat >>conftest.$ac_ext <<_ACEOF
3970
/* end confdefs.h.  */
5129
/* end confdefs.h.  */
3971
5130
3972
/* Override any gcc2 internal prototype to avoid an error.  */
5131
/* Override any GCC internal prototype to avoid an error.
5132
   Use char because int might match the return type of a GCC
5133
   builtin and then its argument prototype would still apply.  */
3973
#ifdef __cplusplus
5134
#ifdef __cplusplus
3974
extern "C"
5135
extern "C"
3975
#endif
5136
#endif
3976
/* We use char because int might match the return type of a gcc2
3977
   builtin and then its argument prototype would still apply.  */
3978
char remove ();
5137
char remove ();
3979
int
5138
int
3980
main ()
5139
main ()
3981
{
5140
{
3982
remove ();
5141
return remove ();
3983
  ;
5142
  ;
3984
  return 0;
5143
  return 0;
3985
}
5144
}
3986
_ACEOF
5145
_ACEOF
3987
rm -f conftest.$ac_objext conftest$ac_exeext
5146
rm -f conftest.$ac_objext conftest$ac_exeext
5147
if { (ac_try="$ac_link"
5148
case "(($ac_try" in
5149
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150
  *) ac_try_echo=$ac_try;;
5151
esac
3988
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5152
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3989
  (eval $ac_link) 2>conftest.er1
5153
  (eval "$ac_link") 2>conftest.er1
3990
  ac_status=$?
5154
  ac_status=$?
3991
  grep -v '^ *+' conftest.er1 >conftest.err
5155
  grep -v '^ *+' conftest.er1 >conftest.err
3992
  rm -f conftest.er1
5156
  rm -f conftest.er1
3993
  cat conftest.err >&5
5157
  cat conftest.err >&5
3994
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995
  (exit $ac_status); } &&
5159
  (exit $ac_status); } && {
3996
     { ac_try='test -z "$ac_cxx_werror_flag"
5160
     test -z "$ac_cxx_werror_flag" ||
3997
           || test ! -s conftest.err'
5161
     test ! -s conftest.err
3998
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5162
       } && test -s conftest$ac_exeext &&
3999
  (eval $ac_try) 2>&5
5163
       $as_test_x conftest$ac_exeext; then
4000
  ac_status=$?
4001
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002
  (exit $ac_status); }; } &&
4003
   { ac_try='test -s conftest$ac_exeext'
4004
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4005
  (eval $ac_try) 2>&5
4006
  ac_status=$?
4007
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008
  (exit $ac_status); }; }; then
4009
  ac_cv_lib_posix_remove=yes
5164
  ac_cv_lib_posix_remove=yes
4010
else
5165
else
4011
  echo "$as_me: failed program was:" >&5
5166
  echo "$as_me: failed program was:" >&5
4012
sed 's/^/| /' conftest.$ac_ext >&5
5167
sed 's/^/| /' conftest.$ac_ext >&5
4013
5168
4014
ac_cv_lib_posix_remove=no
5169
  ac_cv_lib_posix_remove=no
4015
fi
5170
fi
4016
rm -f conftest.err conftest.$ac_objext \
5171
5172
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4017
      conftest$ac_exeext conftest.$ac_ext
5173
      conftest$ac_exeext conftest.$ac_ext
4018
LIBS=$ac_check_lib_save_LIBS
5174
LIBS=$ac_check_lib_save_LIBS
4019
fi
5175
fi
4020
echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5176
{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4021
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5177
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
4022
if test $ac_cv_lib_posix_remove = yes; then
5178
if test $ac_cv_lib_posix_remove = yes; then
4023
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5179
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4024
fi
5180
fi
4025
5181
4026
    fi
5182
    fi
4027
5183
4028
    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5184
    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4029
    echo "$as_me:$LINENO: checking for shmat" >&5
5185
    { echo "$as_me:$LINENO: checking for shmat" >&5
4030
echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5186
echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
4031
if test "${ac_cv_func_shmat+set}" = set; then
5187
if test "${ac_cv_func_shmat+set}" = set; then
4032
  echo $ECHO_N "(cached) $ECHO_C" >&6
5188
  echo $ECHO_N "(cached) $ECHO_C" >&6
4033
else
5189
else
4034
  cat >conftest.$ac_ext <<_ACEOF
5190
  cat >conftest.$ac_ext <<_ACEOF
4035
/* confdefs.h.  */
5191
/* confdefs.h.  */
...
...
4052
# include <assert.h>
5208
# include <assert.h>
4053
#endif
5209
#endif
4054
5210
4055
#undef shmat
5211
#undef shmat
4056
5212
4057
/* Override any gcc2 internal prototype to avoid an error.  */
5213
/* Override any GCC internal prototype to avoid an error.
5214
   Use char because int might match the return type of a GCC
5215
   builtin and then its argument prototype would still apply.  */
4058
#ifdef __cplusplus
5216
#ifdef __cplusplus
4059
extern "C"
5217
extern "C"
4060
{
4061
#endif
5218
#endif
4062
/* We use char because int might match the return type of a gcc2
4063
   builtin and then its argument prototype would still apply.  */
4064
char shmat ();
5219
char shmat ();
4065
/* The GNU C library defines this for functions which it implements
5220
/* The GNU C library defines this for functions which it implements
4066
    to always fail with ENOSYS.  Some functions are actually named
5221
    to always fail with ENOSYS.  Some functions are actually named
4067
    something starting with __ and the normal name is an alias.  */
5222
    something starting with __ and the normal name is an alias.  */
4068
#if defined (__stub_shmat) || defined (__stub___shmat)
5223
#if defined __stub_shmat || defined __stub___shmat
4069
choke me
5224
choke me
4070
#else
4071
char (*f) () = shmat;
4072
#endif
4073
#ifdef __cplusplus
4074
}
4075
#endif
5225
#endif
4076
5226
4077
int
5227
int
4078
main ()
5228
main ()
4079
{
5229
{
4080
return f != shmat;
5230
return shmat ();
4081
  ;
5231
  ;
4082
  return 0;
5232
  return 0;
4083
}
5233
}
4084
_ACEOF
5234
_ACEOF
4085
rm -f conftest.$ac_objext conftest$ac_exeext
5235
rm -f conftest.$ac_objext conftest$ac_exeext
5236
if { (ac_try="$ac_link"
5237
case "(($ac_try" in
5238
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5239
  *) ac_try_echo=$ac_try;;
5240
esac
4086
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5241
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4087
  (eval $ac_link) 2>conftest.er1
5242
  (eval "$ac_link") 2>conftest.er1
4088
  ac_status=$?
5243
  ac_status=$?
4089
  grep -v '^ *+' conftest.er1 >conftest.err
5244
  grep -v '^ *+' conftest.er1 >conftest.err
4090
  rm -f conftest.er1
5245
  rm -f conftest.er1
4091
  cat conftest.err >&5
5246
  cat conftest.err >&5
4092
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093
  (exit $ac_status); } &&
5248
  (exit $ac_status); } && {
4094
     { ac_try='test -z "$ac_cxx_werror_flag"
5249
     test -z "$ac_cxx_werror_flag" ||
4095
           || test ! -s conftest.err'
5250
     test ! -s conftest.err
4096
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5251
       } && test -s conftest$ac_exeext &&
4097
  (eval $ac_try) 2>&5
5252
       $as_test_x conftest$ac_exeext; then
4098
  ac_status=$?
4099
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100
  (exit $ac_status); }; } &&
4101
   { ac_try='test -s conftest$ac_exeext'
4102
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4103
  (eval $ac_try) 2>&5
4104
  ac_status=$?
4105
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106
  (exit $ac_status); }; }; then
4107
  ac_cv_func_shmat=yes
5253
  ac_cv_func_shmat=yes
4108
else
5254
else
4109
  echo "$as_me: failed program was:" >&5
5255
  echo "$as_me: failed program was:" >&5
4110
sed 's/^/| /' conftest.$ac_ext >&5
5256
sed 's/^/| /' conftest.$ac_ext >&5
4111
5257
4112
ac_cv_func_shmat=no
5258
  ac_cv_func_shmat=no
4113
fi
5259
fi
4114
rm -f conftest.err conftest.$ac_objext \
5260
5261
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4115
      conftest$ac_exeext conftest.$ac_ext
5262
      conftest$ac_exeext conftest.$ac_ext
4116
fi
5263
fi
4117
echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5264
{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4118
echo "${ECHO_T}$ac_cv_func_shmat" >&6
5265
echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
4119
5266
4120
    if test $ac_cv_func_shmat = no; then
5267
    if test $ac_cv_func_shmat = no; then
4121
      echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5268
      { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4122
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5269
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
4123
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5270
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4124
  echo $ECHO_N "(cached) $ECHO_C" >&6
5271
  echo $ECHO_N "(cached) $ECHO_C" >&6
4125
else
5272
else
4126
  ac_check_lib_save_LIBS=$LIBS
5273
  ac_check_lib_save_LIBS=$LIBS
4127
LIBS="-lipc  $LIBS"
5274
LIBS="-lipc  $LIBS"
...
...
4130
_ACEOF
5277
_ACEOF
4131
cat confdefs.h >>conftest.$ac_ext
5278
cat confdefs.h >>conftest.$ac_ext
4132
cat >>conftest.$ac_ext <<_ACEOF
5279
cat >>conftest.$ac_ext <<_ACEOF
4133
/* end confdefs.h.  */
5280
/* end confdefs.h.  */
4134
5281
4135
/* Override any gcc2 internal prototype to avoid an error.  */
5282
/* Override any GCC internal prototype to avoid an error.
5283
   Use char because int might match the return type of a GCC
5284
   builtin and then its argument prototype would still apply.  */
4136
#ifdef __cplusplus
5285
#ifdef __cplusplus
4137
extern "C"
5286
extern "C"
4138
#endif
5287
#endif
4139
/* We use char because int might match the return type of a gcc2
4140
   builtin and then its argument prototype would still apply.  */
4141
char shmat ();
5288
char shmat ();
4142
int
5289
int
4143
main ()
5290
main ()
4144
{
5291
{
4145
shmat ();
5292
return shmat ();
4146
  ;
5293
  ;
4147
  return 0;
5294
  return 0;
4148
}
5295
}
4149
_ACEOF
5296
_ACEOF
4150
rm -f conftest.$ac_objext conftest$ac_exeext
5297
rm -f conftest.$ac_objext conftest$ac_exeext
5298
if { (ac_try="$ac_link"
5299
case "(($ac_try" in
5300
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5301
  *) ac_try_echo=$ac_try;;
5302
esac
4151
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5303
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4152
  (eval $ac_link) 2>conftest.er1
5304
  (eval "$ac_link") 2>conftest.er1
4153
  ac_status=$?
5305
  ac_status=$?
4154
  grep -v '^ *+' conftest.er1 >conftest.err
5306
  grep -v '^ *+' conftest.er1 >conftest.err
4155
  rm -f conftest.er1
5307
  rm -f conftest.er1
4156
  cat conftest.err >&5
5308
  cat conftest.err >&5
4157
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158
  (exit $ac_status); } &&
5310
  (exit $ac_status); } && {
4159
     { ac_try='test -z "$ac_cxx_werror_flag"
5311
     test -z "$ac_cxx_werror_flag" ||
4160
           || test ! -s conftest.err'
5312
     test ! -s conftest.err
4161
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313
       } && test -s conftest$ac_exeext &&
4162
  (eval $ac_try) 2>&5
5314
       $as_test_x conftest$ac_exeext; then
4163
  ac_status=$?
4164
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165
  (exit $ac_status); }; } &&
4166
   { ac_try='test -s conftest$ac_exeext'
4167
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4168
  (eval $ac_try) 2>&5
4169
  ac_status=$?
4170
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171
  (exit $ac_status); }; }; then
4172
  ac_cv_lib_ipc_shmat=yes
5315
  ac_cv_lib_ipc_shmat=yes
4173
else
5316
else
4174
  echo "$as_me: failed program was:" >&5
5317
  echo "$as_me: failed program was:" >&5
4175
sed 's/^/| /' conftest.$ac_ext >&5
5318
sed 's/^/| /' conftest.$ac_ext >&5
4176
5319
4177
ac_cv_lib_ipc_shmat=no
5320
  ac_cv_lib_ipc_shmat=no
4178
fi
5321
fi
4179
rm -f conftest.err conftest.$ac_objext \
5322
5323
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4180
      conftest$ac_exeext conftest.$ac_ext
5324
      conftest$ac_exeext conftest.$ac_ext
4181
LIBS=$ac_check_lib_save_LIBS
5325
LIBS=$ac_check_lib_save_LIBS
4182
fi
5326
fi
4183
echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5327
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4184
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
5328
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
4185
if test $ac_cv_lib_ipc_shmat = yes; then
5329
if test $ac_cv_lib_ipc_shmat = yes; then
4186
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5330
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4187
fi
5331
fi
4188
5332
4189
    fi
5333
    fi
...
...
4196
  # check for ICE first), but we must link in the order -lSM -lICE or
5340
  # check for ICE first), but we must link in the order -lSM -lICE or
4197
  # we get undefined symbols.  So assume we have SM if we have ICE.
5341
  # we get undefined symbols.  So assume we have SM if we have ICE.
4198
  # These have to be linked with before -lX11, unlike the other
5342
  # These have to be linked with before -lX11, unlike the other
4199
  # libraries we check for below, so use a different variable.
5343
  # libraries we check for below, so use a different variable.
4200
  # John Interrante, Karl Berry
5344
  # John Interrante, Karl Berry
4201
  echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5345
  { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4202
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5346
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
4203
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5347
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4204
  echo $ECHO_N "(cached) $ECHO_C" >&6
5348
  echo $ECHO_N "(cached) $ECHO_C" >&6
4205
else
5349
else
4206
  ac_check_lib_save_LIBS=$LIBS
5350
  ac_check_lib_save_LIBS=$LIBS
4207
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5351
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
...
...
4210
_ACEOF
5354
_ACEOF
4211
cat confdefs.h >>conftest.$ac_ext
5355
cat confdefs.h >>conftest.$ac_ext
4212
cat >>conftest.$ac_ext <<_ACEOF
5356
cat >>conftest.$ac_ext <<_ACEOF
4213
/* end confdefs.h.  */
5357
/* end confdefs.h.  */
4214
5358
4215
/* Override any gcc2 internal prototype to avoid an error.  */
5359
/* Override any GCC internal prototype to avoid an error.
5360
   Use char because int might match the return type of a GCC
5361
   builtin and then its argument prototype would still apply.  */
4216
#ifdef __cplusplus
5362
#ifdef __cplusplus
4217
extern "C"
5363
extern "C"
4218
#endif
5364
#endif
4219
/* We use char because int might match the return type of a gcc2
4220
   builtin and then its argument prototype would still apply.  */
4221
char IceConnectionNumber ();
5365
char IceConnectionNumber ();
4222
int
5366
int
4223
main ()
5367
main ()
4224
{
5368
{
4225
IceConnectionNumber ();
5369
return IceConnectionNumber ();
4226
  ;
5370
  ;
4227
  return 0;
5371
  return 0;
4228
}
5372
}
4229
_ACEOF
5373
_ACEOF
4230
rm -f conftest.$ac_objext conftest$ac_exeext
5374
rm -f conftest.$ac_objext conftest$ac_exeext
5375
if { (ac_try="$ac_link"
5376
case "(($ac_try" in
5377
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5378
  *) ac_try_echo=$ac_try;;
5379
esac
4231
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5380
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232
  (eval $ac_link) 2>conftest.er1
5381
  (eval "$ac_link") 2>conftest.er1
4233
  ac_status=$?
5382
  ac_status=$?
4234
  grep -v '^ *+' conftest.er1 >conftest.err
5383
  grep -v '^ *+' conftest.er1 >conftest.err
4235
  rm -f conftest.er1
5384
  rm -f conftest.er1
4236
  cat conftest.err >&5
5385
  cat conftest.err >&5
4237
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238
  (exit $ac_status); } &&
5387
  (exit $ac_status); } && {
4239
     { ac_try='test -z "$ac_cxx_werror_flag"
5388
     test -z "$ac_cxx_werror_flag" ||
4240
           || test ! -s conftest.err'
5389
     test ! -s conftest.err
4241
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5390
       } && test -s conftest$ac_exeext &&
4242
  (eval $ac_try) 2>&5
5391
       $as_test_x conftest$ac_exeext; then
4243
  ac_status=$?
4244
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245
  (exit $ac_status); }; } &&
4246
   { ac_try='test -s conftest$ac_exeext'
4247
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4248
  (eval $ac_try) 2>&5
4249
  ac_status=$?
4250
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251
  (exit $ac_status); }; }; then
4252
  ac_cv_lib_ICE_IceConnectionNumber=yes
5392
  ac_cv_lib_ICE_IceConnectionNumber=yes
4253
else
5393
else
4254
  echo "$as_me: failed program was:" >&5
5394
  echo "$as_me: failed program was:" >&5
4255
sed 's/^/| /' conftest.$ac_ext >&5
5395
sed 's/^/| /' conftest.$ac_ext >&5
4256
5396
4257
ac_cv_lib_ICE_IceConnectionNumber=no
5397
  ac_cv_lib_ICE_IceConnectionNumber=no
4258
fi
5398
fi
4259
rm -f conftest.err conftest.$ac_objext \
5399
5400
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4260
      conftest$ac_exeext conftest.$ac_ext
5401
      conftest$ac_exeext conftest.$ac_ext
4261
LIBS=$ac_check_lib_save_LIBS
5402
LIBS=$ac_check_lib_save_LIBS
4262
fi
5403
fi
4263
echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5404
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4264
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
5405
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
4265
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5406
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4266
  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5407
  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4267
fi
5408
fi
4268
5409
4269
  LDFLAGS=$ac_save_LDFLAGS
5410
  LDFLAGS=$ac_save_LDFLAGS
...
...
4292
5433
4293
5434
4294
5435
4295
5436
4296
5437
4297
          ac_config_files="$ac_config_files mk/localdefs"
5438
ac_config_files="$ac_config_files mk/localdefs"
4298
5439
4299
          ac_config_files="$ac_config_files recollinstall"
5440
ac_config_files="$ac_config_files recollinstall"
4300
5441
4301
          ac_config_files="$ac_config_files Makefile"
5442
ac_config_files="$ac_config_files Makefile"
4302
5443
4303
          ac_config_files="$ac_config_files sampleconf/recoll.conf"
5444
ac_config_files="$ac_config_files sampleconf/recoll.conf"
4304
5445
4305
          ac_config_files="$ac_config_files $QTGUI/recoll.pro"
5446
ac_config_files="$ac_config_files $QTGUI/recoll.pro"
4306
5447
4307
5448
4308
for d in bincimapmime index lib query
5449
for d in bincimapmime index lib query
4309
do
5450
do
4310
    rm -f $d/alldeps.stamp
5451
    rm -f $d/alldeps.stamp
...
...
4329
5470
4330
_ACEOF
5471
_ACEOF
4331
5472
4332
# The following way of writing the cache mishandles newlines in values,
5473
# The following way of writing the cache mishandles newlines in values,
4333
# but we know of no workaround that is simple, portable, and efficient.
5474
# but we know of no workaround that is simple, portable, and efficient.
4334
# So, don't put newlines in cache variables' values.
5475
# So, we kill variables containing newlines.
4335
# Ultrix sh set writes to stderr and can't be redirected directly,
5476
# Ultrix sh set writes to stderr and can't be redirected directly,
4336
# and sets the high bit in the cache file unless we assign to the vars.
5477
# and sets the high bit in the cache file unless we assign to the vars.
4337
{
5478
(
5479
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5480
    eval ac_val=\$$ac_var
5481
    case $ac_val in #(
5482
    *${as_nl}*)
5483
      case $ac_var in #(
5484
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
5485
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
5486
      esac
5487
      case $ac_var in #(
5488
      _ | IFS | as_nl) ;; #(
5489
      *) $as_unset $ac_var ;;
5490
      esac ;;
5491
    esac
5492
  done
5493
4338
  (set) 2>&1 |
5494
  (set) 2>&1 |
4339
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
5495
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
4340
    *ac_space=\ *)
5496
    *${as_nl}ac_space=\ *)
4341
      # `set' does not quote correctly, so add quotes (double-quote
5497
      # `set' does not quote correctly, so add quotes (double-quote
4342
      # substitution turns \\\\ into \\, and sed turns \\ into \).
5498
      # substitution turns \\\\ into \\, and sed turns \\ into \).
4343
      sed -n \
5499
      sed -n \
4344
    "s/'/'\\\\''/g;
5500
    "s/'/'\\\\''/g;
4345
      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5501
      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4346
      ;;
5502
      ;; #(
4347
    *)
5503
    *)
4348
      # `set' quotes correctly as required by POSIX, so do not add quotes.
5504
      # `set' quotes correctly as required by POSIX, so do not add quotes.
4349
      sed -n \
5505
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4350
  "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4351
      ;;
5506
      ;;
4352
    esac;
5507
    esac |
5508
    sort
4353
} |
5509
) |
4354
  sed '
5510
  sed '
5511
     /^ac_cv_env_/b end
4355
     t clear
5512
     t clear
4356
     : clear
5513
     :clear
4357
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5514
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4358
     t end
5515
     t end
4359
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5516
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4360
     : end' >>confcache
5517
     :end' >>confcache
4361
if diff $cache_file confcache >/dev/null 2>&1; then :; else
5518
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4362
  if test -w $cache_file; then
5519
  if test -w "$cache_file"; then
4363
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5520
    test "x$cache_file" != "x/dev/null" &&
5521
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
5522
echo "$as_me: updating cache $cache_file" >&6;}
4364
    cat confcache >$cache_file
5523
    cat confcache >$cache_file
4365
  else
5524
  else
5525
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
4366
    echo "not updating unwritable cache $cache_file"
5526
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4367
  fi
5527
  fi
4368
fi
5528
fi
4369
rm -f confcache
5529
rm -f confcache
4370
5530
4371
test "x$prefix" = xNONE && prefix=$ac_default_prefix
5531
test "x$prefix" = xNONE && prefix=$ac_default_prefix
4372
# Let make expand exec_prefix.
5532
# Let make expand exec_prefix.
4373
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5533
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4374
4375
# VPATH may cause trouble with some makes, so we remove $(srcdir),
4376
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4377
# trailing colons and then remove the whole line if VPATH becomes empty
4378
# (actually we leave an empty line to preserve line numbers).
4379
if test "x$srcdir" = x.; then
4380
  ac_vpsub='/^[    ]*VPATH[    ]*=/{
4381
s/:*\$(srcdir):*/:/;
4382
s/:*\${srcdir}:*/:/;
4383
s/:*@srcdir@:*/:/;
4384
s/^\([^=]*=[   ]*\):*/\1/;
4385
s/:*$//;
4386
s/^[^=]*=[     ]*$//;
4387
}'
4388
fi
4389
5534
4390
DEFS=-DHAVE_CONFIG_H
5535
DEFS=-DHAVE_CONFIG_H
4391
5536
4392
ac_libobjs=
5537
ac_libobjs=
4393
ac_ltlibobjs=
5538
ac_ltlibobjs=
4394
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5539
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4395
  # 1. Remove the extension, and $U if already installed.
5540
  # 1. Remove the extension, and $U if already installed.
4396
  ac_i=`echo "$ac_i" |
4397
   sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5541
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4398
  # 2. Add them.
5542
  ac_i=`echo "$ac_i" | sed "$ac_script"`
5543
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5544
  #    will be set to the directory where LIBOBJS objects are built.
4399
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5545
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4400
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5546
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
4401
done
5547
done
4402
LIBOBJS=$ac_libobjs
5548
LIBOBJS=$ac_libobjs
4403
5549
4404
LTLIBOBJS=$ac_ltlibobjs
5550
LTLIBOBJS=$ac_ltlibobjs
4405
5551
...
...
4426
cat >>$CONFIG_STATUS <<\_ACEOF
5572
cat >>$CONFIG_STATUS <<\_ACEOF
4427
## --------------------- ##
5573
## --------------------- ##
4428
## M4sh Initialization.  ##
5574
## M4sh Initialization.  ##
4429
## --------------------- ##
5575
## --------------------- ##
4430
5576
4431
# Be Bourne compatible
5577
# Be more Bourne compatible
5578
DUALCASE=1; export DUALCASE # for MKS sh
4432
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5579
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4433
  emulate sh
5580
  emulate sh
4434
  NULLCMD=:
5581
  NULLCMD=:
4435
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5582
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4436
  # is contrary to our usage.  Disable this feature.
5583
  # is contrary to our usage.  Disable this feature.
4437
  alias -g '${1+"$@"}'='"$@"'
5584
  alias -g '${1+"$@"}'='"$@"'
4438
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5585
  setopt NO_GLOB_SUBST
4439
  set -o posix
4440
fi
4441
DUALCASE=1; export DUALCASE # for MKS sh
4442
4443
# Support unset when possible.
4444
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4445
  as_unset=unset
4446
else
4447
  as_unset=false
4448
fi
4449
4450
4451
# Work around bugs in pre-3.0 UWIN ksh.
4452
$as_unset ENV MAIL MAILPATH
4453
PS1='$ '
4454
PS2='> '
4455
PS4='+ '
4456
4457
# NLS nuisances.
4458
for as_var in \
4459
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4460
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4461
  LC_TELEPHONE LC_TIME
4462
do
4463
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4464
    eval $as_var=C; export $as_var
4465
  else
5586
else
4466
    $as_unset $as_var
5587
  case `(set -o) 2>/dev/null` in
5588
  *posix*) set -o posix ;;
5589
esac
5590
4467
  fi
5591
fi
4468
done
4469
5592
4470
# Required to use basename.
4471
if expr a : '\(a\)' >/dev/null 2>&1; then
4472
  as_expr=expr
4473
else
4474
  as_expr=false
4475
fi
4476
5593
4477
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4478
  as_basename=basename
4479
else
4480
  as_basename=false
4481
fi
4482
5594
4483
5595
4484
# Name of the executable.
5596
# PATH needs CR
4485
as_me=`$as_basename "$0" ||
4486
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4487
   X"$0" : 'X\(//\)$' \| \
4488
   X"$0" : 'X\(/\)$' \| \
4489
   .     : '\(.\)' 2>/dev/null ||
4490
echo X/"$0" |
4491
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4492
        /^X\/\(\/\/\)$/{ s//\1/; q; }
4493
        /^X\/\(\/\).*/{ s//\1/; q; }
4494
        s/.*/./; q'`
4495
4496
4497
# PATH needs CR, and LINENO needs CR and PATH.
4498
# Avoid depending upon Character Ranges.
5597
# Avoid depending upon Character Ranges.
4499
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5598
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4500
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5599
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4501
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5600
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4502
as_cr_digits='0123456789'
5601
as_cr_digits='0123456789'
...
...
4513
    PATH_SEPARATOR=:
5612
    PATH_SEPARATOR=:
4514
  fi
5613
  fi
4515
  rm -f conf$$.sh
5614
  rm -f conf$$.sh
4516
fi
5615
fi
4517
5616
5617
# Support unset when possible.
5618
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5619
  as_unset=unset
5620
else
5621
  as_unset=false
5622
fi
4518
5623
4519
  as_lineno_1=$LINENO
5624
4520
  as_lineno_2=$LINENO
5625
# IFS
4521
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5626
# We need space, tab and new line, in precisely that order.  Quoting is
4522
  test "x$as_lineno_1" != "x$as_lineno_2" &&
5627
# there to prevent editors from complaining about space-tab.
4523
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
5628
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5629
# splitting by setting IFS to empty value.)
5630
as_nl='
5631
'
5632
IFS=" ""  $as_nl"
5633
4524
  # Find who we are.  Look in the path if we contain no path at all
5634
# Find who we are.  Look in the path if we contain no directory separator.
4525
  # relative or not.
4526
  case $0 in
5635
case $0 in
4527
    *[\\/]* ) as_myself=$0 ;;
5636
  *[\\/]* ) as_myself=$0 ;;
4528
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5637
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529
for as_dir in $PATH
5638
for as_dir in $PATH
4530
do
5639
do
4531
  IFS=$as_save_IFS
5640
  IFS=$as_save_IFS
4532
  test -z "$as_dir" && as_dir=.
5641
  test -z "$as_dir" && as_dir=.
4533
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5642
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4534
done
5643
done
5644
IFS=$as_save_IFS
4535
5645
4536
       ;;
5646
     ;;
4537
  esac
5647
esac
4538
  # We did not find ourselves, most probably we were run as `sh COMMAND'
5648
# We did not find ourselves, most probably we were run as `sh COMMAND'
4539
  # in which case we are not to be found in the path.
5649
# in which case we are not to be found in the path.
4540
  if test "x$as_myself" = x; then
5650
if test "x$as_myself" = x; then
4541
    as_myself=$0
5651
  as_myself=$0
5652
fi
5653
if test ! -f "$as_myself"; then
5654
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5655
  { (exit 1); exit 1; }
5656
fi
5657
5658
# Work around bugs in pre-3.0 UWIN ksh.
5659
for as_var in ENV MAIL MAILPATH
5660
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5661
done
5662
PS1='$ '
5663
PS2='> '
5664
PS4='+ '
5665
5666
# NLS nuisances.
5667
for as_var in \
5668
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5669
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5670
  LC_TELEPHONE LC_TIME
5671
do
5672
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5673
    eval $as_var=C; export $as_var
5674
  else
5675
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
4542
  fi
5676
  fi
4543
  if test ! -f "$as_myself"; then
4544
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4545
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4546
   { (exit 1); exit 1; }; }
4547
  fi
4548
  case $CONFIG_SHELL in
4549
  '')
4550
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4552
do
5677
done
4553
  IFS=$as_save_IFS
5678
4554
  test -z "$as_dir" && as_dir=.
5679
# Required to use basename.
4555
  for as_base in sh bash ksh sh5; do
5680
if expr a : '\(a\)' >/dev/null 2>&1 &&
4556
   case $as_dir in
5681
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
4557
   /*)
5682
  as_expr=expr
4558
     if ("$as_dir/$as_base" -c '
5683
else
5684
  as_expr=false
5685
fi
5686
5687
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5688
  as_basename=basename
5689
else
5690
  as_basename=false
5691
fi
5692
5693
5694
# Name of the executable.
5695
as_me=`$as_basename -- "$0" ||
5696
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5697
   X"$0" : 'X\(//\)$' \| \
5698
   X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5699
echo X/"$0" |
5700
    sed '/^.*\/\([^/][^/]*\)\/*$/{
5701
      s//\1/
5702
      q
5703
    }
5704
    /^X\/\(\/\/\)$/{
5705
      s//\1/
5706
      q
5707
    }
5708
    /^X\/\(\/\).*/{
5709
      s//\1/
5710
      q
5711
    }
5712
    s/.*/./; q'`
5713
5714
# CDPATH.
5715
$as_unset CDPATH
5716
5717
5718
4559
  as_lineno_1=$LINENO
5719
  as_lineno_1=$LINENO
4560
  as_lineno_2=$LINENO
5720
  as_lineno_2=$LINENO
4561
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4562
  test "x$as_lineno_1" != "x$as_lineno_2" &&
5721
  test "x$as_lineno_1" != "x$as_lineno_2" &&
4563
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
5722
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
4564
       $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4565
       $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4566
       CONFIG_SHELL=$as_dir/$as_base
4567
       export CONFIG_SHELL
4568
       exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4569
     fi;;
4570
   esac
4571
       done
4572
done
4573
;;
4574
  esac
4575
5723
4576
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5724
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4577
  # uniformly replaced by the line number.  The first 'sed' inserts a
5725
  # uniformly replaced by the line number.  The first 'sed' inserts a
4578
  # line-number line before each line; the second 'sed' does the real
5726
  # line-number line after each line using $LINENO; the second 'sed'
4579
  # work.  The second script uses 'N' to pair each line-number line
5727
  # does the real work.  The second script uses 'N' to pair each
4580
  # with the numbered line, and appends trailing '-' during
5728
  # line-number line with the line containing $LINENO, and appends
4581
  # substitution so that $LINENO is not a special case at line end.
5729
  # trailing '-' during substitution so that $LINENO is not a special
5730
  # case at line end.
4582
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5731
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4583
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
5732
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
5733
  # E. McMahon (1931-1989) for sed's syntax.  :-)
5734
  sed -n '
5735
    p
5736
    /[$]LINENO/=
4584
  sed '=' <$as_myself |
5737
  ' <$as_myself |
4585
    sed '
5738
    sed '
5739
      s/[$]LINENO.*/&-/
5740
      t lineno
5741
      b
5742
      :lineno
4586
      N
5743
      N
4587
      s,$,-,
4588
      : loop
5744
      :loop
4589
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5745
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4590
      t loop
5746
      t loop
4591
      s,-$,,
5747
      s/-\n.*//
4592
      s,^['$as_cr_digits']*\n,,
4593
    ' >$as_me.lineno &&
5748
    ' >$as_me.lineno &&
4594
  chmod +x $as_me.lineno ||
5749
  chmod +x "$as_me.lineno" ||
4595
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4596
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5750
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
4597
   { (exit 1); exit 1; }; }
5751
   { (exit 1); exit 1; }; }
4598
5752
4599
  # Don't try to exec as it changes $[0], causing all sort of problems
5753
  # Don't try to exec as it changes $[0], causing all sort of problems
4600
  # (the dirname of $[0] is not the place where we might find the
5754
  # (the dirname of $[0] is not the place where we might find the
4601
  # original and so on.  Autoconf is especially sensible to this).
5755
  # original and so on.  Autoconf is especially sensitive to this).
4602
  . ./$as_me.lineno
5756
  . "./$as_me.lineno"
4603
  # Exit status is that of the last command.
5757
  # Exit status is that of the last command.
4604
  exit
5758
  exit
4605
}
5759
}
4606
5760
4607
5761
4608
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5762
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4609
  *c*,-n*) ECHO_N= ECHO_C='
5763
  as_dirname=dirname
5764
else
5765
  as_dirname=false
5766
fi
5767
5768
ECHO_C= ECHO_N= ECHO_T=
5769
case `echo -n x` in
5770
-n*)
5771
  case `echo 'x\c'` in
5772
  *c*) ECHO_T='   ';; # ECHO_T is single tab character.
5773
  *)   ECHO_C='\c';;
5774
  esac;;
5775
*)
4610
' ECHO_T='  ' ;;
5776
  ECHO_N='-n';;
4611
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4612
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
4613
esac
5777
esac
4614
5778
4615
if expr a : '\(a\)' >/dev/null 2>&1; then
5779
if expr a : '\(a\)' >/dev/null 2>&1 &&
5780
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
4616
  as_expr=expr
5781
  as_expr=expr
4617
else
5782
else
4618
  as_expr=false
5783
  as_expr=false
4619
fi
5784
fi
4620
5785
4621
rm -f conf$$ conf$$.exe conf$$.file
5786
rm -f conf$$ conf$$.exe conf$$.file
5787
if test -d conf$$.dir; then
5788
  rm -f conf$$.dir/conf$$.file
5789
else
5790
  rm -f conf$$.dir
5791
  mkdir conf$$.dir
5792
fi
4622
echo >conf$$.file
5793
echo >conf$$.file
4623
if ln -s conf$$.file conf$$ 2>/dev/null; then
5794
if ln -s conf$$.file conf$$ 2>/dev/null; then
4624
  # We could just check for DJGPP; but this test a) works b) is more generic
5795
  as_ln_s='ln -s'
4625
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5796
  # ... but there are two gotchas:
4626
  if test -f conf$$.exe; then
5797
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4627
    # Don't use ln at all; we don't have any links
5798
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5799
  # In both cases, we have to default to `cp -p'.
5800
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4628
    as_ln_s='cp -p'
5801
    as_ln_s='cp -p'
4629
  else
4630
    as_ln_s='ln -s'
4631
  fi
4632
elif ln conf$$.file conf$$ 2>/dev/null; then
5802
elif ln conf$$.file conf$$ 2>/dev/null; then
4633
  as_ln_s=ln
5803
  as_ln_s=ln
4634
else
5804
else
4635
  as_ln_s='cp -p'
5805
  as_ln_s='cp -p'
4636
fi
5806
fi
4637
rm -f conf$$ conf$$.exe conf$$.file
5807
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5808
rmdir conf$$.dir 2>/dev/null
4638
5809
4639
if mkdir -p . 2>/dev/null; then
5810
if mkdir -p . 2>/dev/null; then
4640
  as_mkdir_p=:
5811
  as_mkdir_p=:
4641
else
5812
else
4642
  test -d ./-p && rmdir ./-p
5813
  test -d ./-p && rmdir ./-p
4643
  as_mkdir_p=false
5814
  as_mkdir_p=false
4644
fi
5815
fi
4645
5816
5817
if test -x / >/dev/null 2>&1; then
5818
  as_test_x='test -x'
5819
else
5820
  if ls -dL / >/dev/null 2>&1; then
5821
    as_ls_L_option=L
5822
  else
5823
    as_ls_L_option=
5824
  fi
5825
  as_test_x='
5826
    eval sh -c '\''
5827
      if test -d "$1"; then
5828
        test -d "$1/.";
5829
      else
5830
  case $1 in
5831
        -*)set "./$1";;
5832
  esac;
5833
  case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
5834
  ???[sx]*):;;*)false;;esac;fi
5835
    '\'' sh
5836
  '
5837
fi
4646
as_executable_p="test -f"
5838
as_executable_p=$as_test_x
4647
5839
4648
# Sed expression to map a string onto a valid CPP name.
5840
# Sed expression to map a string onto a valid CPP name.
4649
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5841
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4650
5842
4651
# Sed expression to map a string onto a valid variable name.
5843
# Sed expression to map a string onto a valid variable name.
4652
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5844
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4653
5845
4654
5846
4655
# IFS
4656
# We need space, tab and new line, in precisely that order.
4657
as_nl='
4658
'
4659
IFS="     $as_nl"
4660
4661
# CDPATH.
4662
$as_unset CDPATH
4663
4664
exec 6>&1
5847
exec 6>&1
4665
5848
4666
# Open the log real soon, to keep \$[0] and so on meaningful, and to
5849
# Save the log message, to keep $[0] and so on meaningful, and to
4667
# report actual input values of CONFIG_FILES etc. instead of their
5850
# report actual input values of CONFIG_FILES etc. instead of their
4668
# values after options handling.  Logging --version etc. is OK.
5851
# values after options handling.
4669
exec 5>>config.log
5852
ac_log="
4670
{
4671
  echo
4672
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4673
## Running $as_me. ##
4674
_ASBOX
4675
} >&5
4676
cat >&5 <<_CSEOF
4677
4678
This file was extended by Recoll $as_me 1.6, which was
5853
This file was extended by Recoll $as_me 1.6, which was
4679
generated by GNU Autoconf 2.59.  Invocation command line was
5854
generated by GNU Autoconf 2.61.  Invocation command line was
4680
5855
4681
  CONFIG_FILES    = $CONFIG_FILES
5856
  CONFIG_FILES    = $CONFIG_FILES
4682
  CONFIG_HEADERS  = $CONFIG_HEADERS
5857
  CONFIG_HEADERS  = $CONFIG_HEADERS
4683
  CONFIG_LINKS    = $CONFIG_LINKS
5858
  CONFIG_LINKS    = $CONFIG_LINKS
4684
  CONFIG_COMMANDS = $CONFIG_COMMANDS
5859
  CONFIG_COMMANDS = $CONFIG_COMMANDS
4685
  $ $0 $@
5860
  $ $0 $@
4686
5861
4687
_CSEOF
4688
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5862
on `(hostname || uname -n) 2>/dev/null | sed 1q`
4689
echo >&5
5863
"
4690
_ACEOF
4691
5864
5865
_ACEOF
5866
5867
cat >>$CONFIG_STATUS <<_ACEOF
4692
# Files that config.status was made for.
5868
# Files that config.status was made for.
4693
if test -n "$ac_config_files"; then
5869
config_files="$ac_config_files"
4694
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5870
config_headers="$ac_config_headers"
4695
fi
4696
5871
4697
if test -n "$ac_config_headers"; then
5872
_ACEOF
4698
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4699
fi
4700
4701
if test -n "$ac_config_links"; then
4702
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4703
fi
4704
4705
if test -n "$ac_config_commands"; then
4706
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4707
fi
4708
5873
4709
cat >>$CONFIG_STATUS <<\_ACEOF
5874
cat >>$CONFIG_STATUS <<\_ACEOF
4710
4711
ac_cs_usage="\
5875
ac_cs_usage="\
4712
\`$as_me' instantiates files from templates according to the
5876
\`$as_me' instantiates files from templates according to the
4713
current configuration.
5877
current configuration.
4714
5878
4715
Usage: $0 [OPTIONS] [FILE]...
5879
Usage: $0 [OPTIONS] [FILE]...
4716
5880
4717
  -h, --help       print this help, then exit
5881
  -h, --help       print this help, then exit
4718
  -V, --version    print version number, then exit
5882
  -V, --version    print version number and configuration settings, then exit
4719
  -q, --quiet      do not print progress messages
5883
  -q, --quiet      do not print progress messages
4720
  -d, --debug      don't remove temporary files
5884
  -d, --debug      don't remove temporary files
4721
      --recheck    update $as_me by reconfiguring in the same conditions
5885
      --recheck    update $as_me by reconfiguring in the same conditions
4722
  --file=FILE[:TEMPLATE]
5886
  --file=FILE[:TEMPLATE]
4723
           instantiate the configuration file FILE
5887
           instantiate the configuration file FILE
...
...
4729
5893
4730
Configuration headers:
5894
Configuration headers:
4731
$config_headers
5895
$config_headers
4732
5896
4733
Report bugs to <bug-autoconf@gnu.org>."
5897
Report bugs to <bug-autoconf@gnu.org>."
4734
_ACEOF
4735
5898
5899
_ACEOF
4736
cat >>$CONFIG_STATUS <<_ACEOF
5900
cat >>$CONFIG_STATUS <<_ACEOF
4737
ac_cs_version="\\
5901
ac_cs_version="\\
4738
Recoll config.status 1.6
5902
Recoll config.status 1.6
4739
configured by $0, generated by GNU Autoconf 2.59,
5903
configured by $0, generated by GNU Autoconf 2.61,
4740
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5904
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
4741
5905
4742
Copyright (C) 2003 Free Software Foundation, Inc.
5906
Copyright (C) 2006 Free Software Foundation, Inc.
4743
This config.status script is free software; the Free Software Foundation
5907
This config.status script is free software; the Free Software Foundation
4744
gives unlimited permission to copy, distribute and modify it."
5908
gives unlimited permission to copy, distribute and modify it."
5909
5910
ac_pwd='$ac_pwd'
4745
srcdir=$srcdir
5911
srcdir='$srcdir'
4746
_ACEOF
5912
_ACEOF
4747
5913
4748
cat >>$CONFIG_STATUS <<\_ACEOF
5914
cat >>$CONFIG_STATUS <<\_ACEOF
4749
# If no file are specified by the user, then we need to provide default
5915
# If no file are specified by the user, then we need to provide default
4750
# value.  By we need to know if files were specified by the user.
5916
# value.  By we need to know if files were specified by the user.
4751
ac_need_defaults=:
5917
ac_need_defaults=:
4752
while test $# != 0
5918
while test $# != 0
4753
do
5919
do
4754
  case $1 in
5920
  case $1 in
4755
  --*=*)
5921
  --*=*)
4756
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
5922
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
4757
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5923
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4758
    ac_shift=:
5924
    ac_shift=:
4759
    ;;
5925
    ;;
4760
  -*)
5926
  *)
4761
    ac_option=$1
5927
    ac_option=$1
4762
    ac_optarg=$2
5928
    ac_optarg=$2
4763
    ac_shift=shift
5929
    ac_shift=shift
4764
    ;;
5930
    ;;
4765
  *) # This is not an option, so the user has probably given explicit
4766
     # arguments.
4767
     ac_option=$1
4768
     ac_need_defaults=false;;
4769
  esac
5931
  esac
4770
5932
4771
  case $ac_option in
5933
  case $ac_option in
4772
  # Handling of the options.
5934
  # Handling of the options.
4773
_ACEOF
4774
cat >>$CONFIG_STATUS <<\_ACEOF
4775
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5935
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4776
    ac_cs_recheck=: ;;
5936
    ac_cs_recheck=: ;;
4777
  --version | --vers* | -V )
5937
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4778
    echo "$ac_cs_version"; exit 0 ;;
5938
    echo "$ac_cs_version"; exit ;;
4779
  --he | --h)
5939
  --debug | --debu | --deb | --de | --d | -d )
4780
    # Conflict between --help and --header
4781
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
4782
Try \`$0 --help' for more information." >&5
4783
echo "$as_me: error: ambiguous option: $1
4784
Try \`$0 --help' for more information." >&2;}
4785
   { (exit 1); exit 1; }; };;
4786
  --help | --hel | -h )
4787
    echo "$ac_cs_usage"; exit 0 ;;
4788
  --debug | --d* | -d )
4789
    debug=: ;;
5940
    debug=: ;;
4790
  --file | --fil | --fi | --f )
5941
  --file | --fil | --fi | --f )
4791
    $ac_shift
5942
    $ac_shift
4792
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5943
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4793
    ac_need_defaults=false;;
5944
    ac_need_defaults=false;;
4794
  --header | --heade | --head | --hea )
5945
  --header | --heade | --head | --hea )
4795
    $ac_shift
5946
    $ac_shift
4796
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5947
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4797
    ac_need_defaults=false;;
5948
    ac_need_defaults=false;;
5949
  --he | --h)
5950
    # Conflict between --help and --header
5951
    { echo "$as_me: error: ambiguous option: $1
5952
Try \`$0 --help' for more information." >&2
5953
   { (exit 1); exit 1; }; };;
5954
  --help | --hel | -h )
5955
    echo "$ac_cs_usage"; exit ;;
4798
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5956
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4799
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
5957
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
4800
    ac_cs_silent=: ;;
5958
    ac_cs_silent=: ;;
4801
5959
4802
  # This is an error.
5960
  # This is an error.
4803
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4804
Try \`$0 --help' for more information." >&5
4805
echo "$as_me: error: unrecognized option: $1
5961
  -*) { echo "$as_me: error: unrecognized option: $1
4806
Try \`$0 --help' for more information." >&2;}
5962
Try \`$0 --help' for more information." >&2
4807
   { (exit 1); exit 1; }; } ;;
5963
   { (exit 1); exit 1; }; } ;;
4808
5964
4809
  *) ac_config_targets="$ac_config_targets $1" ;;
5965
  *) ac_config_targets="$ac_config_targets $1"
5966
     ac_need_defaults=false ;;
4810
5967
4811
  esac
5968
  esac
4812
  shift
5969
  shift
4813
done
5970
done
4814
5971
...
...
4820
fi
5977
fi
4821
5978
4822
_ACEOF
5979
_ACEOF
4823
cat >>$CONFIG_STATUS <<_ACEOF
5980
cat >>$CONFIG_STATUS <<_ACEOF
4824
if \$ac_cs_recheck; then
5981
if \$ac_cs_recheck; then
4825
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5982
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5983
  CONFIG_SHELL=$SHELL
5984
  export CONFIG_SHELL
4826
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5985
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4827
fi
5986
fi
4828
5987
4829
_ACEOF
5988
_ACEOF
4830
4831
4832
4833
4834
4835
cat >>$CONFIG_STATUS <<\_ACEOF
5989
cat >>$CONFIG_STATUS <<\_ACEOF
5990
exec 5>>config.log
5991
{
5992
  echo
5993
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5994
## Running $as_me. ##
5995
_ASBOX
5996
  echo "$ac_log"
5997
} >&5
5998
5999
_ACEOF
6000
cat >>$CONFIG_STATUS <<_ACEOF
6001
_ACEOF
6002
6003
cat >>$CONFIG_STATUS <<\_ACEOF
6004
6005
# Handling of arguments.
4836
for ac_config_target in $ac_config_targets
6006
for ac_config_target in $ac_config_targets
4837
do
6007
do
4838
  case "$ac_config_target" in
6008
  case $ac_config_target in
4839
  # Handling of arguments.
6009
    "common/autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS common/autoconfig.h" ;;
4840
  "mk/localdefs" ) CONFIG_FILES="$CONFIG_FILES mk/localdefs" ;;
6010
    "mk/localdefs") CONFIG_FILES="$CONFIG_FILES mk/localdefs" ;;
4841
  "recollinstall" ) CONFIG_FILES="$CONFIG_FILES recollinstall" ;;
6011
    "recollinstall") CONFIG_FILES="$CONFIG_FILES recollinstall" ;;
4842
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6012
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4843
  "sampleconf/recoll.conf" ) CONFIG_FILES="$CONFIG_FILES sampleconf/recoll.conf" ;;
6013
    "sampleconf/recoll.conf") CONFIG_FILES="$CONFIG_FILES sampleconf/recoll.conf" ;;
4844
  "$QTGUI/recoll.pro" ) CONFIG_FILES="$CONFIG_FILES $QTGUI/recoll.pro" ;;
6014
    "$QTGUI/recoll.pro") CONFIG_FILES="$CONFIG_FILES $QTGUI/recoll.pro" ;;
4845
  "common/autoconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS common/autoconfig.h" ;;
6015
4846
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6016
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4847
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6017
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4848
   { (exit 1); exit 1; }; };;
6018
   { (exit 1); exit 1; }; };;
4849
  esac
6019
  esac
4850
done
6020
done
6021
4851
6022
4852
# If the user did not use the arguments to specify the items to instantiate,
6023
# If the user did not use the arguments to specify the items to instantiate,
4853
# then the envvar interface is used.  Set only those that are not.
6024
# then the envvar interface is used.  Set only those that are not.
4854
# We use the long form for the default assignment because of an extremely
6025
# We use the long form for the default assignment because of an extremely
4855
# bizarre bug on SunOS 4.1.3.
6026
# bizarre bug on SunOS 4.1.3.
...
...
4857
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6028
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4858
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6029
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4859
fi
6030
fi
4860
6031
4861
# Have a temporary directory for convenience.  Make it in the build tree
6032
# Have a temporary directory for convenience.  Make it in the build tree
4862
# simply because there is no reason to put it here, and in addition,
6033
# simply because there is no reason against having it here, and in addition,
4863
# creating and moving files from /tmp can sometimes cause problems.
6034
# creating and moving files from /tmp can sometimes cause problems.
4864
# Create a temporary directory, and hook for its removal unless debugging.
6035
# Hook for its removal unless debugging.
6036
# Note that there is a small window in which the directory will not be cleaned:
6037
# after its creation but before its name has been assigned to `$tmp'.
4865
$debug ||
6038
$debug ||
4866
{
6039
{
4867
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6040
  tmp=
6041
  trap 'exit_status=$?
6042
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6043
' 0
4868
  trap '{ (exit 1); exit 1; }' 1 2 13 15
6044
  trap '{ (exit 1); exit 1; }' 1 2 13 15
4869
}
6045
}
4870
4871
# Create a (secure) tmp directory for tmp files.
6046
# Create a (secure) tmp directory for tmp files.
4872
6047
4873
{
6048
{
4874
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6049
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4875
  test -n "$tmp" && test -d "$tmp"
6050
  test -n "$tmp" && test -d "$tmp"
4876
}  ||
6051
}  ||
4877
{
6052
{
4878
  tmp=./confstat$$-$RANDOM
6053
  tmp=./conf$$-$RANDOM
4879
  (umask 077 && mkdir $tmp)
6054
  (umask 077 && mkdir "$tmp")
4880
} ||
6055
} ||
4881
{
6056
{
4882
   echo "$me: cannot create a temporary directory in ." >&2
6057
   echo "$me: cannot create a temporary directory in ." >&2
4883
   { (exit 1); exit 1; }
6058
   { (exit 1); exit 1; }
4884
}
6059
}
4885
6060
4886
_ACEOF
4887
4888
cat >>$CONFIG_STATUS <<_ACEOF
4889
4890
#
6061
#
4891
# CONFIG_FILES section.
6062
# Set up the sed scripts for CONFIG_FILES section.
4892
#
6063
#
4893
6064
4894
# No need to generate the scripts if there are no CONFIG_FILES.
6065
# No need to generate the scripts if there are no CONFIG_FILES.
4895
# This happens for instance when ./config.status config.h
6066
# This happens for instance when ./config.status config.h
4896
if test -n "\$CONFIG_FILES"; then
6067
if test -n "$CONFIG_FILES"; then
4897
  # Protect against being on the right side of a sed subst in config.status.
6068
4898
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4899
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4900
s,@SHELL@,$SHELL,;t t
4901
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4902
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4903
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4904
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4905
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4906
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4907
s,@exec_prefix@,$exec_prefix,;t t
4908
s,@prefix@,$prefix,;t t
4909
s,@program_transform_name@,$program_transform_name,;t t
4910
s,@bindir@,$bindir,;t t
4911
s,@sbindir@,$sbindir,;t t
4912
s,@libexecdir@,$libexecdir,;t t
4913
s,@datadir@,$datadir,;t t
4914
s,@sysconfdir@,$sysconfdir,;t t
4915
s,@sharedstatedir@,$sharedstatedir,;t t
4916
s,@localstatedir@,$localstatedir,;t t
4917
s,@libdir@,$libdir,;t t
4918
s,@includedir@,$includedir,;t t
4919
s,@oldincludedir@,$oldincludedir,;t t
4920
s,@infodir@,$infodir,;t t
4921
s,@mandir@,$mandir,;t t
4922
s,@build_alias@,$build_alias,;t t
4923
s,@host_alias@,$host_alias,;t t
4924
s,@target_alias@,$target_alias,;t t
4925
s,@DEFS@,$DEFS,;t t
4926
s,@ECHO_C@,$ECHO_C,;t t
4927
s,@ECHO_N@,$ECHO_N,;t t
4928
s,@ECHO_T@,$ECHO_T,;t t
4929
s,@LIBS@,$LIBS,;t t
4930
s,@aspellProg@,$aspellProg,;t t
4931
s,@CXX@,$CXX,;t t
4932
s,@CXXFLAGS@,$CXXFLAGS,;t t
4933
s,@LDFLAGS@,$LDFLAGS,;t t
4934
s,@CPPFLAGS@,$CPPFLAGS,;t t
4935
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
4936
s,@EXEEXT@,$EXEEXT,;t t
4937
s,@OBJEXT@,$OBJEXT,;t t
4938
s,@XAPIAN_CONFIG@,$XAPIAN_CONFIG,;t t
4939
s,@QMAKE@,$QMAKE,;t t
4940
s,@UIC3@,$UIC3,;t t
4941
s,@CXXCPP@,$CXXCPP,;t t
4942
s,@X_CFLAGS@,$X_CFLAGS,;t t
4943
s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
4944
s,@X_LIBS@,$X_LIBS,;t t
4945
s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
4946
s,@INCICONV@,$INCICONV,;t t
4947
s,@LIBICONV@,$LIBICONV,;t t
4948
s,@LIBXAPIAN@,$LIBXAPIAN,;t t
4949
s,@LIBFAM@,$LIBFAM,;t t
4950
s,@QTGUI@,$QTGUI,;t t
4951
s,@QTRECOLL_DATADIR@,$QTRECOLL_DATADIR,;t t
4952
s,@XAPIANCXXFLAGS@,$XAPIANCXXFLAGS,;t t
4953
s,@LIBOBJS@,$LIBOBJS,;t t
4954
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4955
CEOF
6069
_ACEOF
4956
6070
4957
_ACEOF
4958
6071
6072
6073
ac_delim='%!_!# '
6074
for ac_last_try in false false false false false :; do
6075
  cat >conf$$subs.sed <<_ACEOF
6076
SHELL!$SHELL$ac_delim
6077
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
6078
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
6079
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
6080
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
6081
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
6082
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
6083
exec_prefix!$exec_prefix$ac_delim
6084
prefix!$prefix$ac_delim
6085
program_transform_name!$program_transform_name$ac_delim
6086
bindir!$bindir$ac_delim
6087
sbindir!$sbindir$ac_delim
6088
libexecdir!$libexecdir$ac_delim
6089
datarootdir!$datarootdir$ac_delim
6090
datadir!$datadir$ac_delim
6091
sysconfdir!$sysconfdir$ac_delim
6092
sharedstatedir!$sharedstatedir$ac_delim
6093
localstatedir!$localstatedir$ac_delim
6094
includedir!$includedir$ac_delim
6095
oldincludedir!$oldincludedir$ac_delim
6096
docdir!$docdir$ac_delim
6097
infodir!$infodir$ac_delim
6098
htmldir!$htmldir$ac_delim
6099
dvidir!$dvidir$ac_delim
6100
pdfdir!$pdfdir$ac_delim
6101
psdir!$psdir$ac_delim
6102
libdir!$libdir$ac_delim
6103
localedir!$localedir$ac_delim
6104
mandir!$mandir$ac_delim
6105
DEFS!$DEFS$ac_delim
6106
ECHO_C!$ECHO_C$ac_delim
6107
ECHO_N!$ECHO_N$ac_delim
6108
ECHO_T!$ECHO_T$ac_delim
6109
LIBS!$LIBS$ac_delim
6110
build_alias!$build_alias$ac_delim
6111
host_alias!$host_alias$ac_delim
6112
target_alias!$target_alias$ac_delim
6113
aspellProg!$aspellProg$ac_delim
6114
CC!$CC$ac_delim
6115
CFLAGS!$CFLAGS$ac_delim
6116
LDFLAGS!$LDFLAGS$ac_delim
6117
CPPFLAGS!$CPPFLAGS$ac_delim
6118
ac_ct_CC!$ac_ct_CC$ac_delim
6119
EXEEXT!$EXEEXT$ac_delim
6120
OBJEXT!$OBJEXT$ac_delim
6121
CXX!$CXX$ac_delim
6122
CXXFLAGS!$CXXFLAGS$ac_delim
6123
ac_ct_CXX!$ac_ct_CXX$ac_delim
6124
XAPIAN_CONFIG!$XAPIAN_CONFIG$ac_delim
6125
QMAKE!$QMAKE$ac_delim
6126
UIC3!$UIC3$ac_delim
6127
XMKMF!$XMKMF$ac_delim
6128
CXXCPP!$CXXCPP$ac_delim
6129
X_CFLAGS!$X_CFLAGS$ac_delim
6130
X_PRE_LIBS!$X_PRE_LIBS$ac_delim
6131
X_LIBS!$X_LIBS$ac_delim
6132
X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
6133
INCICONV!$INCICONV$ac_delim
6134
LIBICONV!$LIBICONV$ac_delim
6135
LIBXAPIAN!$LIBXAPIAN$ac_delim
6136
LIBFAM!$LIBFAM$ac_delim
6137
QTGUI!$QTGUI$ac_delim
6138
QTRECOLL_DATADIR!$QTRECOLL_DATADIR$ac_delim
6139
XAPIANCXXFLAGS!$XAPIANCXXFLAGS$ac_delim
6140
HAVE_MKDTEMP!$HAVE_MKDTEMP$ac_delim
6141
LIBOBJS!$LIBOBJS$ac_delim
6142
LTLIBOBJS!$LTLIBOBJS$ac_delim
6143
_ACEOF
6144
6145
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 67; then
6146
    break
6147
  elif $ac_last_try; then
6148
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6149
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6150
   { (exit 1); exit 1; }; }
6151
  else
6152
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6153
  fi
6154
done
6155
6156
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
6157
if test -n "$ac_eof"; then
6158
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
6159
  ac_eof=`expr $ac_eof + 1`
6160
fi
6161
6162
cat >>$CONFIG_STATUS <<_ACEOF
6163
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
6164
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
6165
_ACEOF
6166
sed '
6167
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
6168
s/^/s,@/; s/!/@,|#_!!_#|/
6169
:n
6170
t n
6171
s/'"$ac_delim"'$/,g/; t
6172
s/$/\\/; p
6173
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
6174
' >>$CONFIG_STATUS <conf$$subs.sed
6175
rm -f conf$$subs.sed
6176
cat >>$CONFIG_STATUS <<_ACEOF
6177
:end
6178
s/|#_!!_#|//g
6179
CEOF$ac_eof
6180
_ACEOF
6181
6182
6183
# VPATH may cause trouble with some makes, so we remove $(srcdir),
6184
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6185
# trailing colons and then remove the whole line if VPATH becomes empty
6186
# (actually we leave an empty line to preserve line numbers).
6187
if test "x$srcdir" = x.; then
6188
  ac_vpsub='/^[    ]*VPATH[    ]*=/{
6189
s/:*\$(srcdir):*/:/
6190
s/:*\${srcdir}:*/:/
6191
s/:*@srcdir@:*/:/
6192
s/^\([^=]*=[   ]*\):*/\1/
6193
s/:*$//
6194
s/^[^=]*=[     ]*$//
6195
}'
6196
fi
6197
4959
  cat >>$CONFIG_STATUS <<\_ACEOF
6198
cat >>$CONFIG_STATUS <<\_ACEOF
4960
  # Split the substitutions into bite-sized pieces for seds with
6199
fi # test -n "$CONFIG_FILES"
4961
  # small command number limits, like on Digital OSF/1 and HP-UX.
6200
4962
  ac_max_sed_lines=48
6201
4963
  ac_sed_frag=1 # Number of current file.
6202
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
4964
  ac_beg=1 # First line for current file.
6203
do
4965
  ac_end=$ac_max_sed_lines # Line after last line for current file.
6204
  case $ac_tag in
4966
  ac_more_lines=:
6205
  :[FHLC]) ac_mode=$ac_tag; continue;;
4967
  ac_sed_cmds=
6206
  esac
4968
  while $ac_more_lines; do
6207
  case $ac_mode$ac_tag in
4969
    if test $ac_beg -gt 1; then
6208
  :[FHL]*:*);;
4970
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6209
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
4971
    else
6210
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
4972
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6211
   { (exit 1); exit 1; }; };;
6212
  :[FH]-) ac_tag=-:-;;
6213
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6214
  esac
6215
  ac_save_IFS=$IFS
6216
  IFS=:
6217
  set x $ac_tag
6218
  IFS=$ac_save_IFS
6219
  shift
6220
  ac_file=$1
6221
  shift
6222
6223
  case $ac_mode in
6224
  :L) ac_source=$1;;
6225
  :[FH])
6226
    ac_file_inputs=
6227
    for ac_f
6228
    do
6229
      case $ac_f in
6230
      -) ac_f="$tmp/stdin";;
6231
      *) # Look for the file first in the build tree, then in the source tree
6232
   # (if the path is not absolute).  The absolute path cannot be DOS-style,
6233
   # because $ac_f cannot contain `:'.
6234
   test -f "$ac_f" ||
6235
     case $ac_f in
6236
     [\\/$]*) false;;
6237
     *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6238
     esac ||
6239
     { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6240
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6241
   { (exit 1); exit 1; }; };;
6242
      esac
6243
      ac_file_inputs="$ac_file_inputs $ac_f"
6244
    done
6245
6246
    # Let's still pretend it is `configure' which instantiates (i.e., don't
6247
    # use $as_me), people would be surprised to read:
6248
    #    /* config.h.  Generated by config.status.  */
6249
    configure_input="Generated from "`IFS=:
6250
    echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
6251
    if test x"$ac_file" != x-; then
6252
      configure_input="$ac_file.  $configure_input"
6253
      { echo "$as_me:$LINENO: creating $ac_file" >&5
6254
echo "$as_me: creating $ac_file" >&6;}
4973
    fi
6255
    fi
4974
    if test ! -s $tmp/subs.frag; then
6256
4975
      ac_more_lines=false
6257
    case $ac_tag in
6258
    *:-:* | *:-) cat >"$tmp/stdin";;
4976
    else
6259
    esac
4977
      # The purpose of the label and of the branching condition is to
6260
    ;;
4978
      # speed up the sed processing (if there are no `@' at all, there
4979
      # is no need to browse any of the substitutions).
4980
      # These are the two extra sed commands mentioned above.
4981
      (echo ':t
4982
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4983
      if test -z "$ac_sed_cmds"; then
4984
  ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4985
      else
4986
  ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4987
      fi
4988
      ac_sed_frag=`expr $ac_sed_frag + 1`
4989
      ac_beg=$ac_end
4990
      ac_end=`expr $ac_end + $ac_max_sed_lines`
4991
    fi
4992
  done
4993
  if test -z "$ac_sed_cmds"; then
4994
    ac_sed_cmds=cat
4995
  fi
4996
fi # test -n "$CONFIG_FILES"
4997
4998
_ACEOF
4999
cat >>$CONFIG_STATUS <<\_ACEOF
5000
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5001
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5002
  case $ac_file in
5003
  - | *:- | *:-:* ) # input from stdin
5004
  cat >$tmp/stdin
5005
  ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5006
  ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5007
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5008
  ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5009
  * )   ac_file_in=$ac_file.in ;;
5010
  esac
6261
  esac
5011
6262
5012
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5013
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6263
  ac_dir=`$as_dirname -- "$ac_file" ||
5014
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6264
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5015
     X"$ac_file" : 'X\(//\)[^/]' \| \
6265
     X"$ac_file" : 'X\(//\)[^/]' \| \
5016
     X"$ac_file" : 'X\(//\)$' \| \
6266
     X"$ac_file" : 'X\(//\)$' \| \
5017
     X"$ac_file" : 'X\(/\)' \| \
6267
     X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5018
   .     : '\(.\)' 2>/dev/null ||
5019
echo X"$ac_file" |
6268
echo X"$ac_file" |
5020
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6269
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6270
      s//\1/
6271
      q
6272
    }
5021
       /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6273
      /^X\(\/\/\)[^/].*/{
5022
        /^X\(\/\/\)$/{ s//\1/; q; }
6274
      s//\1/
5023
        /^X\(\/\).*/{ s//\1/; q; }
6275
      q
6276
    }
6277
    /^X\(\/\/\)$/{
6278
      s//\1/
6279
      q
6280
    }
6281
    /^X\(\/\).*/{
6282
      s//\1/
6283
      q
6284
    }
5024
       s/.*/./; q'`
6285
      s/.*/./; q'`
5025
  { if $as_mkdir_p; then
5026
    mkdir -p "$ac_dir"
5027
  else
5028
    as_dir="$ac_dir"
6286
  { as_dir="$ac_dir"
6287
  case $as_dir in #(
6288
  -*) as_dir=./$as_dir;;
6289
  esac
6290
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
5029
    as_dirs=
6291
    as_dirs=
5030
    while test ! -d "$as_dir"; do
6292
    while :; do
6293
      case $as_dir in #(
6294
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
6295
      *) as_qdir=$as_dir;;
6296
      esac
5031
      as_dirs="$as_dir $as_dirs"
6297
      as_dirs="'$as_qdir' $as_dirs"
5032
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
6298
      as_dir=`$as_dirname -- "$as_dir" ||
5033
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6299
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5034
     X"$as_dir" : 'X\(//\)[^/]' \| \
6300
     X"$as_dir" : 'X\(//\)[^/]' \| \
5035
     X"$as_dir" : 'X\(//\)$' \| \
6301
     X"$as_dir" : 'X\(//\)$' \| \
5036
     X"$as_dir" : 'X\(/\)' \| \
6302
     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5037
   .     : '\(.\)' 2>/dev/null ||
5038
echo X"$as_dir" |
6303
echo X"$as_dir" |
5039
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6304
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6305
      s//\1/
6306
      q
6307
    }
5040
       /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6308
      /^X\(\/\/\)[^/].*/{
5041
        /^X\(\/\/\)$/{ s//\1/; q; }
6309
      s//\1/
5042
        /^X\(\/\).*/{ s//\1/; q; }
6310
      q
6311
    }
6312
    /^X\(\/\/\)$/{
6313
      s//\1/
6314
      q
6315
    }
6316
    /^X\(\/\).*/{
6317
      s//\1/
6318
      q
6319
    }
5043
       s/.*/./; q'`
6320
      s/.*/./; q'`
6321
      test -d "$as_dir" && break
5044
    done
6322
    done
5045
    test ! -n "$as_dirs" || mkdir $as_dirs
6323
    test -z "$as_dirs" || eval "mkdir $as_dirs"
5046
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6324
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
5047
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6325
echo "$as_me: error: cannot create directory $as_dir" >&2;}
5048
   { (exit 1); exit 1; }; }; }
6326
   { (exit 1); exit 1; }; }; }
5049
5050
  ac_builddir=.
6327
  ac_builddir=.
5051
6328
5052
if test "$ac_dir" != .; then
6329
case "$ac_dir" in
6330
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6331
*)
5053
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6332
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5054
  # A "../" for each directory in $ac_dir_suffix.
6333
  # A ".." for each directory in $ac_dir_suffix.
5055
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6334
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
5056
else
6335
  case $ac_top_builddir_sub in
5057
  ac_dir_suffix= ac_top_builddir=
6336
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5058
fi
6337
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6338
  esac ;;
6339
esac
6340
ac_abs_top_builddir=$ac_pwd
6341
ac_abs_builddir=$ac_pwd$ac_dir_suffix
6342
# for backward compatibility:
6343
ac_top_builddir=$ac_top_build_prefix
5059
6344
5060
case $srcdir in
6345
case $srcdir in
5061
  .)  # No --srcdir option.  We are building in place.
6346
  .)  # We are building in place.
5062
    ac_srcdir=.
6347
    ac_srcdir=.
5063
    if test -z "$ac_top_builddir"; then
6348
    ac_top_srcdir=$ac_top_builddir_sub
5064
       ac_top_srcdir=.
6349
    ac_abs_top_srcdir=$ac_pwd ;;
5065
    else
5066
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5067
    fi ;;
5068
  [\\/]* | ?:[\\/]* )  # Absolute path.
6350
  [\\/]* | ?:[\\/]* )  # Absolute name.
5069
    ac_srcdir=$srcdir$ac_dir_suffix;
6351
    ac_srcdir=$srcdir$ac_dir_suffix;
5070
    ac_top_srcdir=$srcdir ;;
6352
    ac_top_srcdir=$srcdir
6353
    ac_abs_top_srcdir=$srcdir ;;
5071
  *) # Relative path.
6354
  *) # Relative name.
5072
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6355
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5073
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
6356
    ac_top_srcdir=$ac_top_build_prefix$srcdir
5074
esac
5075
5076
# Do not use `cd foo && pwd` to compute absolute paths, because
5077
# the directories may not exist.
5078
case `pwd` in
5079
.) ac_abs_builddir="$ac_dir";;
5080
*)
5081
  case "$ac_dir" in
5082
  .) ac_abs_builddir=`pwd`;;
5083
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5084
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
5085
  esac;;
5086
esac
5087
case $ac_abs_builddir in
5088
.) ac_abs_top_builddir=${ac_top_builddir}.;;
5089
*)
5090
  case ${ac_top_builddir}. in
5091
  .) ac_abs_top_builddir=$ac_abs_builddir;;
5092
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5093
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5094
  esac;;
5095
esac
5096
case $ac_abs_builddir in
5097
.) ac_abs_srcdir=$ac_srcdir;;
5098
*)
5099
  case $ac_srcdir in
5100
  .) ac_abs_srcdir=$ac_abs_builddir;;
5101
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5102
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5103
  esac;;
5104
esac
5105
case $ac_abs_builddir in
5106
.) ac_abs_top_srcdir=$ac_top_srcdir;;
6357
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5107
*)
6358
esac
6359
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6360
6361
5108
  case $ac_top_srcdir in
6362
  case $ac_mode in
5109
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
6363
  :F)
5110
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6364
  #
5111
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6365
  # CONFIG_FILE
5112
  esac;;
6366
  #
5113
esac
5114
6367
5115
5116
5117
  if test x"$ac_file" != x-; then
5118
    { echo "$as_me:$LINENO: creating $ac_file" >&5
5119
echo "$as_me: creating $ac_file" >&6;}
5120
    rm -f "$ac_file"
5121
  fi
5122
  # Let's still pretend it is `configure' which instantiates (i.e., don't
5123
  # use $as_me), people would be surprised to read:
5124
  #    /* config.h.  Generated by config.status.  */
5125
  if test x"$ac_file" = x-; then
5126
    configure_input=
5127
  else
5128
    configure_input="$ac_file.  "
5129
  fi
5130
  configure_input=$configure_input"Generated from `echo $ac_file_in |
5131
                   sed 's,.*/,,'` by configure."
5132
5133
  # First look for the input files in the build tree, otherwise in the
5134
  # src tree.
5135
  ac_file_inputs=`IFS=:
5136
    for f in $ac_file_in; do
5137
      case $f in
5138
      -) echo $tmp/stdin ;;
5139
      [\\/$]*)
5140
   # Absolute (can't be DOS-style, as IFS=:)
5141
   test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5142
echo "$as_me: error: cannot find input file: $f" >&2;}
5143
   { (exit 1); exit 1; }; }
5144
   echo "$f";;
5145
      *) # Relative
5146
   if test -f "$f"; then
5147
     # Build tree
5148
     echo "$f"
5149
   elif test -f "$srcdir/$f"; then
5150
     # Source tree
5151
     echo "$srcdir/$f"
5152
   else
5153
     # /dev/null tree
5154
     { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5155
echo "$as_me: error: cannot find input file: $f" >&2;}
5156
   { (exit 1); exit 1; }; }
5157
   fi;;
5158
      esac
5159
    done` || { (exit 1); exit 1; }
5160
_ACEOF
6368
_ACEOF
6369
6370
cat >>$CONFIG_STATUS <<\_ACEOF
6371
# If the template does not know about datarootdir, expand it.
6372
# FIXME: This hack should be removed a few years after 2.60.
6373
ac_datarootdir_hack=; ac_datarootdir_seen=
6374
6375
case `sed -n '/datarootdir/ {
6376
  p
6377
  q
6378
}
6379
/@datadir@/p
6380
/@docdir@/p
6381
/@infodir@/p
6382
/@localedir@/p
6383
/@mandir@/p
6384
' $ac_file_inputs` in
6385
*datarootdir*) ac_datarootdir_seen=yes;;
6386
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6387
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6388
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6389
_ACEOF
6390
cat >>$CONFIG_STATUS <<_ACEOF
6391
  ac_datarootdir_hack='
6392
  s&@datadir@&$datadir&g
6393
  s&@docdir@&$docdir&g
6394
  s&@infodir@&$infodir&g
6395
  s&@localedir@&$localedir&g
6396
  s&@mandir@&$mandir&g
6397
    s&\\\${datarootdir}&$datarootdir&g' ;;
6398
esac
6399
_ACEOF
6400
6401
# Neutralize VPATH when `$srcdir' = `.'.
6402
# Shell code in configure.ac might set extrasub.
6403
# FIXME: do we really want to maintain this feature?
5161
cat >>$CONFIG_STATUS <<_ACEOF
6404
cat >>$CONFIG_STATUS <<_ACEOF
5162
  sed "$ac_vpsub
6405
  sed "$ac_vpsub
5163
$extrasub
6406
$extrasub
5164
_ACEOF
6407
_ACEOF
5165
cat >>$CONFIG_STATUS <<\_ACEOF
6408
cat >>$CONFIG_STATUS <<\_ACEOF
5166
:t
6409
:t
5167
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6410
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5168
s,@configure_input@,$configure_input,;t t
6411
s&@configure_input@&$configure_input&;t t
6412
s&@top_builddir@&$ac_top_builddir_sub&;t t
5169
s,@srcdir@,$ac_srcdir,;t t
6413
s&@srcdir@&$ac_srcdir&;t t
5170
s,@abs_srcdir@,$ac_abs_srcdir,;t t
6414
s&@abs_srcdir@&$ac_abs_srcdir&;t t
5171
s,@top_srcdir@,$ac_top_srcdir,;t t
6415
s&@top_srcdir@&$ac_top_srcdir&;t t
5172
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6416
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5173
s,@builddir@,$ac_builddir,;t t
6417
s&@builddir@&$ac_builddir&;t t
5174
s,@abs_builddir@,$ac_abs_builddir,;t t
6418
s&@abs_builddir@&$ac_abs_builddir&;t t
5175
s,@top_builddir@,$ac_top_builddir,;t t
5176
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6419
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5177
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6420
$ac_datarootdir_hack
6421
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
6422
6423
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6424
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6425
  { ac_out=`sed -n '/^[    ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6426
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6427
which seems to be undefined.  Please make sure it is defined." >&5
6428
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6429
which seems to be undefined.  Please make sure it is defined." >&2;}
6430
5178
  rm -f $tmp/stdin
6431
  rm -f "$tmp/stdin"
5179
  if test x"$ac_file" != x-; then
6432
  case $ac_file in
5180
    mv $tmp/out $ac_file
6433
  -) cat "$tmp/out"; rm -f "$tmp/out";;
5181
  else
6434
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
5182
    cat $tmp/out
6435
  esac
5183
    rm -f $tmp/out
6436
 ;;
5184
  fi
6437
  :H)
5185
6438
  #
5186
done
6439
  # CONFIG_HEADER
6440
  #
5187
_ACEOF
6441
_ACEOF
5188
cat >>$CONFIG_STATUS <<\_ACEOF
5189
6442
5190
#
6443
# Transform confdefs.h into a sed script `conftest.defines', that
5191
# CONFIG_HEADER section.
6444
# substitutes the proper values into config.h.in to produce config.h.
5192
#
6445
rm -f conftest.defines conftest.tail
5193
6446
# First, append a space to every undef/define line, to ease matching.
6447
echo 's/$/ /' >conftest.defines
6448
# Then, protect against being on the right side of a sed subst, or in
6449
# an unquoted here document, in config.status.  If some macros were
6450
# called several times there might be several #defines for the same
6451
# symbol, which is useless.  But do not sort them, since the last
6452
# AC_DEFINE must be honored.
6453
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5194
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6454
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
5195
# NAME is the cpp macro being defined and VALUE is the value it is being given.
6455
# NAME is the cpp macro being defined, VALUE is the value it is being given.
5196
#
6456
# PARAMS is the parameter list in the macro definition--in most cases, it's
5197
# ac_d sets the value in "#define NAME VALUE" lines.
6457
# just an empty string.
5198
ac_dA='s,^\([  ]*\)#\([    ]*define[   ][  ]*\)'
6458
ac_dA='s,^\\([     #]*\\)[^    ]*\\([  ]*'
5199
ac_dB='[   ].*$,\1#\2'
6459
ac_dB='\\)[    (].*,\\1define\\2'
5200
ac_dC=' '
6460
ac_dC=' '
5201
ac_dD=',;t'
6461
ac_dD=' ,'
5202
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5203
ac_uA='s,^\([  ]*\)#\([    ]*\)undef\([    ][  ]*\)'
5204
ac_uB='$,\1#\2define\3'
5205
ac_uC=' '
5206
ac_uD=',;t'
5207
6462
5208
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6463
uniq confdefs.h |
5209
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6464
  sed -n '
5210
  case $ac_file in
6465
  t rset
5211
  - | *:- | *:-:* ) # input from stdin
6466
  :rset
5212
  cat >$tmp/stdin
6467
  s/^[     ]*#[    ]*define[   ][  ]*//
5213
  ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6468
  t ok
5214
  ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6469
  d
5215
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6470
  :ok
5216
  ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5217
  * )   ac_file_in=$ac_file.in ;;
5218
  esac
5219
5220
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5221
echo "$as_me: creating $ac_file" >&6;}
5222
5223
  # First look for the input files in the build tree, otherwise in the
5224
  # src tree.
5225
  ac_file_inputs=`IFS=:
5226
    for f in $ac_file_in; do
5227
      case $f in
5228
      -) echo $tmp/stdin ;;
5229
      [\\/$]*)
5230
   # Absolute (can't be DOS-style, as IFS=:)
5231
   test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5232
echo "$as_me: error: cannot find input file: $f" >&2;}
5233
   { (exit 1); exit 1; }; }
5234
   # Do quote $f, to prevent DOS paths from being IFS'd.
5235
   echo "$f";;
5236
      *) # Relative
5237
   if test -f "$f"; then
5238
     # Build tree
5239
     echo "$f"
5240
   elif test -f "$srcdir/$f"; then
5241
     # Source tree
5242
     echo "$srcdir/$f"
5243
   else
5244
     # /dev/null tree
5245
     { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5246
echo "$as_me: error: cannot find input file: $f" >&2;}
5247
   { (exit 1); exit 1; }; }
5248
   fi;;
5249
      esac
5250
    done` || { (exit 1); exit 1; }
5251
  # Remove the trailing spaces.
5252
  sed 's/[     ]*$//' $ac_file_inputs >$tmp/in
5253
5254
_ACEOF
5255
5256
# Transform confdefs.h into two sed scripts, `conftest.defines' and
5257
# `conftest.undefs', that substitutes the proper values into
5258
# config.h.in to produce config.h.  The first handles `#define'
5259
# templates, and the second `#undef' templates.
5260
# And first: Protect against being on the right side of a sed subst in
5261
# config.status.  Protect against being in an unquoted here document
5262
# in config.status.
5263
rm -f conftest.defines conftest.undefs
5264
# Using a here document instead of a string reduces the quoting nightmare.
5265
# Putting comments in sed scripts is not portable.
5266
#
5267
# `end' is used to avoid that the second main sed command (meant for
5268
# 0-ary CPP macros) applies to n-ary macro definitions.
5269
# See the Autoconf documentation for `clear'.
5270
cat >confdef2sed.sed <<\_ACEOF
5271
s/[\\&,]/\\&/g
6471
  s/[\\&,]/\\&/g
5272
s,[\\$`],\\&,g
6472
  s/^\('"$ac_word_re"'\)\(([^()]*)\)[  ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
5273
t clear
6473
  s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
5274
: clear
6474
  ' >>conftest.defines
5275
s,^[   ]*#[    ]*define[   ][  ]*\([^  (][^    (]*\)\(([^)]*)\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5276
t end
5277
s,^[   ]*#[    ]*define[   ][  ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5278
: end
5279
_ACEOF
5280
# If some macros were called several times there might be several times
5281
# the same #defines, which is useless.  Nevertheless, we may not want to
5282
# sort them, since we want the *last* AC-DEFINE to be honored.
5283
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5284
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5285
rm -f confdef2sed.sed
5286
6475
6476
# Remove the space that was appended to ease matching.
5287
# This sed command replaces #undef with comments.  This is necessary, for
6477
# Then replace #undef with comments.  This is necessary, for
5288
# example, in the case of _POSIX_SOURCE, which is predefined and required
6478
# example, in the case of _POSIX_SOURCE, which is predefined and required
5289
# on some systems where configure will not decide to define it.
6479
# on some systems where configure will not decide to define it.
5290
cat >>conftest.undefs <<\_ACEOF
6480
# (The regexp can be short, since the line contains either #define or #undef.)
5291
s,^[   ]*#[    ]*undef[    ][  ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6481
echo 's/ $//
5292
_ACEOF
6482
s,^[   #]*u.*,/* & */,' >>conftest.defines
5293
6483
5294
# Break up conftest.defines because some shells have a limit on the size
6484
# Break up conftest.defines:
5295
# of here documents, and old seds have small limits too (100 cmds).
6485
ac_max_sed_lines=50
5296
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6486
5297
echo '  if grep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6487
# First sed command is:    sed -f defines.sed $ac_file_inputs >"$tmp/out1"
5298
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6488
# Second one is:   sed -f defines.sed "$tmp/out1" >"$tmp/out2"
5299
echo '  :' >>$CONFIG_STATUS
6489
# Third one will be:   sed -f defines.sed "$tmp/out2" >"$tmp/out1"
5300
rm -f conftest.tail
6490
# et cetera.
5301
while grep . conftest.defines >/dev/null
6491
ac_in='$ac_file_inputs'
6492
ac_out='"$tmp/out1"'
6493
ac_nxt='"$tmp/out2"'
6494
6495
while :
5302
do
6496
do
5303
  # Write a limited-size here document to $tmp/defines.sed.
6497
  # Write a here document:
5304
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6498
    cat >>$CONFIG_STATUS <<_ACEOF
5305
  # Speed up: don't consider the non `#define' lines.
6499
    # First, check the format of the line:
5306
  echo '/^[    ]*#[    ]*define/!b' >>$CONFIG_STATUS
6500
    cat >"\$tmp/defines.sed" <<\\CEOF
5307
  # Work around the forget-to-reset-the-flag bug.
6501
/^[    ]*#[    ]*undef[    ][  ]*$ac_word_re[  ]*\$/b def
5308
  echo 't clr' >>$CONFIG_STATUS
6502
/^[    ]*#[    ]*define[   ][  ]*$ac_word_re[(     ]/b def
5309
  echo ': clr' >>$CONFIG_STATUS
6503
b
6504
:def
6505
_ACEOF
5310
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6506
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
5311
  echo 'CEOF
6507
  echo 'CEOF
5312
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
6508
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
5313
  rm -f $tmp/in
6509
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
5314
  mv $tmp/out $tmp/in
5315
' >>$CONFIG_STATUS
5316
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6510
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
6511
  grep . conftest.tail >/dev/null || break
5317
  rm -f conftest.defines
6512
  rm -f conftest.defines
5318
  mv conftest.tail conftest.defines
6513
  mv conftest.tail conftest.defines
5319
done
6514
done
5320
rm -f conftest.defines
6515
rm -f conftest.defines conftest.tail
5321
echo '  fi # grep' >>$CONFIG_STATUS
5322
echo >>$CONFIG_STATUS
5323
6516
5324
# Break up conftest.undefs because some shells have a limit on the size
6517
echo "ac_result=$ac_in" >>$CONFIG_STATUS
5325
# of here documents, and old seds have small limits too (100 cmds).
5326
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
5327
rm -f conftest.tail
5328
while grep . conftest.undefs >/dev/null
5329
do
5330
  # Write a limited-size here document to $tmp/undefs.sed.
5331
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5332
  # Speed up: don't consider the non `#undef'
5333
  echo '/^[    ]*#[    ]*undef/!b' >>$CONFIG_STATUS
5334
  # Work around the forget-to-reset-the-flag bug.
5335
  echo 't clr' >>$CONFIG_STATUS
5336
  echo ': clr' >>$CONFIG_STATUS
5337
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5338
  echo 'CEOF
5339
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5340
  rm -f $tmp/in
5341
  mv $tmp/out $tmp/in
5342
' >>$CONFIG_STATUS
5343
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5344
  rm -f conftest.undefs
5345
  mv conftest.tail conftest.undefs
5346
done
5347
rm -f conftest.undefs
5348
5349
cat >>$CONFIG_STATUS <<\_ACEOF
6518
cat >>$CONFIG_STATUS <<\_ACEOF
5350
  # Let's still pretend it is `configure' which instantiates (i.e., don't
5351
  # use $as_me), people would be surprised to read:
5352
  #    /* config.h.  Generated by config.status.  */
5353
  if test x"$ac_file" = x-; then
5354
    echo "/* Generated by configure.  */" >$tmp/config.h
5355
  else
5356
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
5357
  fi
5358
  cat $tmp/in >>$tmp/config.h
5359
  rm -f $tmp/in
5360
  if test x"$ac_file" != x-; then
6519
  if test x"$ac_file" != x-; then
6520
    echo "/* $configure_input  */" >"$tmp/config.h"
6521
    cat "$ac_result" >>"$tmp/config.h"
5361
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6522
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
5362
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6523
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5363
echo "$as_me: $ac_file is unchanged" >&6;}
6524
echo "$as_me: $ac_file is unchanged" >&6;}
5364
    else
6525
    else
5365
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5366
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5367
   X"$ac_file" : 'X\(//\)[^/]' \| \
5368
   X"$ac_file" : 'X\(//\)$' \| \
5369
   X"$ac_file" : 'X\(/\)' \| \
5370
   .     : '\(.\)' 2>/dev/null ||
5371
echo X"$ac_file" |
5372
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5373
        /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5374
        /^X\(\/\/\)$/{ s//\1/; q; }
5375
        /^X\(\/\).*/{ s//\1/; q; }
5376
        s/.*/./; q'`
5377
      { if $as_mkdir_p; then
5378
    mkdir -p "$ac_dir"
5379
  else
5380
    as_dir="$ac_dir"
5381
    as_dirs=
5382
    while test ! -d "$as_dir"; do
5383
      as_dirs="$as_dir $as_dirs"
5384
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
5385
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5386
   X"$as_dir" : 'X\(//\)[^/]' \| \
5387
   X"$as_dir" : 'X\(//\)$' \| \
5388
   X"$as_dir" : 'X\(/\)' \| \
5389
   .     : '\(.\)' 2>/dev/null ||
5390
echo X"$as_dir" |
5391
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5392
        /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5393
        /^X\(\/\/\)$/{ s//\1/; q; }
5394
        /^X\(\/\).*/{ s//\1/; q; }
5395
        s/.*/./; q'`
5396
    done
5397
    test ! -n "$as_dirs" || mkdir $as_dirs
5398
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5399
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5400
   { (exit 1); exit 1; }; }; }
5401
5402
      rm -f $ac_file
6526
      rm -f $ac_file
5403
      mv $tmp/config.h $ac_file
6527
      mv "$tmp/config.h" $ac_file
5404
    fi
6528
    fi
5405
  else
6529
  else
5406
    cat $tmp/config.h
6530
    echo "/* $configure_input  */"
5407
    rm -f $tmp/config.h
6531
    cat "$ac_result"
5408
  fi
6532
  fi
5409
done
6533
  rm -f "$tmp/out12"
5410
_ACEOF
6534
 ;;
5411
6535
5412
cat >>$CONFIG_STATUS <<\_ACEOF
6536
6537
  esac
6538
6539
done # for ac_tag
6540
5413
6541
5414
{ (exit 0); exit 0; }
6542
{ (exit 0); exit 0; }
5415
_ACEOF
6543
_ACEOF
5416
chmod +x $CONFIG_STATUS
6544
chmod +x $CONFIG_STATUS
5417
ac_clean_files=$ac_clean_files_save
6545
ac_clean_files=$ac_clean_files_save