~ubuntu-branches/ubuntu/precise/sitecopy/precise

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Sandro Tosi
  • Date: 2008-07-22 07:31:05 UTC
  • mfrom: (1.1.4 upstream) (4.1.7 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080722073105-cbqs1hnc2wvqejfd
Tags: 1:0.16.6-1
* New upstream release
  - fix a crash with progress bar enabled; Closes: #486378
* debian/control
  - set myself as maintainer, Kartik as uploader
  - set Vcs-{Browser,Git} fields
  - bump Standards-Version to 3.8.0
    + debian/README.source added
  - added DM-Upload-Allowed flag
* debian/patches/05_libneon27_transition.dpatch
  - removed since merged upstream
* debian/copyrightdebian/copyright
  - updated upstream email and copyright years
* debian/patches/10_bts410703_preserve_storage_files_sigint.dpatch
  - added to preserve storage files if SIGINT (Ctrl+C) is sent to sitecopy;
    thanks to Andreas Henriksson for the patch; Closes: #410703

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.59 for sitecopy 0.16.3.
 
3
# Generated by GNU Autoconf 2.61 for sitecopy 0.16.6.
4
4
#
5
5
# Report bugs to <sitecopy@lyra.org>.
6
6
#
7
 
# Copyright (C) 2003 Free Software Foundation, Inc.
 
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
8
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8
9
# This configure script is free software; the Free Software Foundation
9
10
# gives unlimited permission to copy, distribute and modify it.
10
11
## --------------------- ##
11
12
## M4sh Initialization.  ##
12
13
## --------------------- ##
13
14
 
14
 
# Be Bourne compatible
15
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16
 
  emulate sh
17
 
  NULLCMD=:
18
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19
 
  # is contrary to our usage.  Disable this feature.
20
 
  alias -g '${1+"$@"}'='"$@"'
21
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22
 
  set -o posix
23
 
fi
 
15
# Be more Bourne compatible
24
16
DUALCASE=1; export DUALCASE # for MKS sh
 
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
18
  emulate sh
 
19
  NULLCMD=:
 
20
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
21
  # is contrary to our usage.  Disable this feature.
 
22
  alias -g '${1+"$@"}'='"$@"'
 
23
  setopt NO_GLOB_SUBST
 
24
else
 
25
  case `(set -o) 2>/dev/null` in
 
26
  *posix*) set -o posix ;;
 
27
esac
 
28
 
 
29
fi
 
30
 
 
31
 
 
32
 
 
33
 
 
34
# PATH needs CR
 
35
# Avoid depending upon Character Ranges.
 
36
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
37
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
38
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
39
as_cr_digits='0123456789'
 
40
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
41
 
 
42
# The user is always right.
 
43
if test "${PATH_SEPARATOR+set}" != set; then
 
44
  echo "#! /bin/sh" >conf$$.sh
 
45
  echo  "exit 0"   >>conf$$.sh
 
46
  chmod +x conf$$.sh
 
47
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
48
    PATH_SEPARATOR=';'
 
49
  else
 
50
    PATH_SEPARATOR=:
 
51
  fi
 
52
  rm -f conf$$.sh
 
53
fi
25
54
 
26
55
# Support unset when possible.
27
56
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31
60
fi
32
61
 
33
62
 
 
63
# IFS
 
64
# We need space, tab and new line, in precisely that order.  Quoting is
 
65
# there to prevent editors from complaining about space-tab.
 
66
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
67
# splitting by setting IFS to empty value.)
 
68
as_nl='
 
69
'
 
70
IFS=" ""        $as_nl"
 
71
 
 
72
# Find who we are.  Look in the path if we contain no directory separator.
 
73
case $0 in
 
74
  *[\\/]* ) as_myself=$0 ;;
 
75
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
76
for as_dir in $PATH
 
77
do
 
78
  IFS=$as_save_IFS
 
79
  test -z "$as_dir" && as_dir=.
 
80
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
81
done
 
82
IFS=$as_save_IFS
 
83
 
 
84
     ;;
 
85
esac
 
86
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
87
# in which case we are not to be found in the path.
 
88
if test "x$as_myself" = x; then
 
89
  as_myself=$0
 
90
fi
 
91
if test ! -f "$as_myself"; then
 
92
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
93
  { (exit 1); exit 1; }
 
94
fi
 
95
 
34
96
# Work around bugs in pre-3.0 UWIN ksh.
35
 
$as_unset ENV MAIL MAILPATH
 
97
for as_var in ENV MAIL MAILPATH
 
98
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
99
done
36
100
PS1='$ '
37
101
PS2='> '
38
102
PS4='+ '
46
110
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47
111
    eval $as_var=C; export $as_var
48
112
  else
49
 
    $as_unset $as_var
 
113
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
50
114
  fi
51
115
done
52
116
 
53
117
# Required to use basename.
54
 
if expr a : '\(a\)' >/dev/null 2>&1; then
 
118
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
119
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
55
120
  as_expr=expr
56
121
else
57
122
  as_expr=false
58
123
fi
59
124
 
60
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
125
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
61
126
  as_basename=basename
62
127
else
63
128
  as_basename=false
65
130
 
66
131
 
67
132
# Name of the executable.
68
 
as_me=`$as_basename "$0" ||
 
133
as_me=`$as_basename -- "$0" ||
69
134
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70
135
         X"$0" : 'X\(//\)$' \| \
71
 
         X"$0" : 'X\(/\)$' \| \
72
 
         .     : '\(.\)' 2>/dev/null ||
 
136
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
73
137
echo X/"$0" |
74
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
76
 
          /^X\/\(\/\).*/{ s//\1/; q; }
77
 
          s/.*/./; q'`
78
 
 
79
 
 
80
 
# PATH needs CR, and LINENO needs CR and PATH.
81
 
# Avoid depending upon Character Ranges.
82
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85
 
as_cr_digits='0123456789'
86
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
87
 
 
88
 
# The user is always right.
89
 
if test "${PATH_SEPARATOR+set}" != set; then
90
 
  echo "#! /bin/sh" >conf$$.sh
91
 
  echo  "exit 0"   >>conf$$.sh
92
 
  chmod +x conf$$.sh
93
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94
 
    PATH_SEPARATOR=';'
95
 
  else
96
 
    PATH_SEPARATOR=:
97
 
  fi
98
 
  rm -f conf$$.sh
99
 
fi
100
 
 
101
 
 
102
 
  as_lineno_1=$LINENO
103
 
  as_lineno_2=$LINENO
104
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
106
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107
 
  # Find who we are.  Look in the path if we contain no path at all
108
 
  # relative or not.
109
 
  case $0 in
110
 
    *[\\/]* ) as_myself=$0 ;;
111
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112
 
for as_dir in $PATH
113
 
do
114
 
  IFS=$as_save_IFS
115
 
  test -z "$as_dir" && as_dir=.
116
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117
 
done
118
 
 
119
 
       ;;
120
 
  esac
121
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
122
 
  # in which case we are not to be found in the path.
123
 
  if test "x$as_myself" = x; then
124
 
    as_myself=$0
125
 
  fi
126
 
  if test ! -f "$as_myself"; then
127
 
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128
 
   { (exit 1); exit 1; }; }
129
 
  fi
130
 
  case $CONFIG_SHELL in
131
 
  '')
 
138
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
139
            s//\1/
 
140
            q
 
141
          }
 
142
          /^X\/\(\/\/\)$/{
 
143
            s//\1/
 
144
            q
 
145
          }
 
146
          /^X\/\(\/\).*/{
 
147
            s//\1/
 
148
            q
 
149
          }
 
150
          s/.*/./; q'`
 
151
 
 
152
# CDPATH.
 
153
$as_unset CDPATH
 
154
 
 
155
 
 
156
if test "x$CONFIG_SHELL" = x; then
 
157
  if (eval ":") 2>/dev/null; then
 
158
  as_have_required=yes
 
159
else
 
160
  as_have_required=no
 
161
fi
 
162
 
 
163
  if test $as_have_required = yes &&     (eval ":
 
164
(as_func_return () {
 
165
  (exit \$1)
 
166
}
 
167
as_func_success () {
 
168
  as_func_return 0
 
169
}
 
170
as_func_failure () {
 
171
  as_func_return 1
 
172
}
 
173
as_func_ret_success () {
 
174
  return 0
 
175
}
 
176
as_func_ret_failure () {
 
177
  return 1
 
178
}
 
179
 
 
180
exitcode=0
 
181
if as_func_success; then
 
182
  :
 
183
else
 
184
  exitcode=1
 
185
  echo as_func_success failed.
 
186
fi
 
187
 
 
188
if as_func_failure; then
 
189
  exitcode=1
 
190
  echo as_func_failure succeeded.
 
191
fi
 
192
 
 
193
if as_func_ret_success; then
 
194
  :
 
195
else
 
196
  exitcode=1
 
197
  echo as_func_ret_success failed.
 
198
fi
 
199
 
 
200
if as_func_ret_failure; then
 
201
  exitcode=1
 
202
  echo as_func_ret_failure succeeded.
 
203
fi
 
204
 
 
205
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
206
  :
 
207
else
 
208
  exitcode=1
 
209
  echo positional parameters were not saved.
 
210
fi
 
211
 
 
212
test \$exitcode = 0) || { (exit 1); exit 1; }
 
213
 
 
214
(
 
215
  as_lineno_1=\$LINENO
 
216
  as_lineno_2=\$LINENO
 
217
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
 
218
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
 
219
") 2> /dev/null; then
 
220
  :
 
221
else
 
222
  as_candidate_shells=
132
223
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133
224
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134
225
do
135
226
  IFS=$as_save_IFS
136
227
  test -z "$as_dir" && as_dir=.
137
 
  for as_base in sh bash ksh sh5; do
138
 
         case $as_dir in
 
228
  case $as_dir in
139
229
         /*)
140
 
           if ("$as_dir/$as_base" -c '
141
 
  as_lineno_1=$LINENO
142
 
  as_lineno_2=$LINENO
143
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
145
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148
 
             CONFIG_SHELL=$as_dir/$as_base
149
 
             export CONFIG_SHELL
150
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151
 
           fi;;
152
 
         esac
153
 
       done
 
230
           for as_base in sh bash ksh sh5; do
 
231
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
232
           done;;
 
233
       esac
154
234
done
155
 
;;
156
 
  esac
 
235
IFS=$as_save_IFS
 
236
 
 
237
 
 
238
      for as_shell in $as_candidate_shells $SHELL; do
 
239
         # Try only shells that exist, to save several forks.
 
240
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
241
                { ("$as_shell") 2> /dev/null <<\_ASEOF
 
242
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
243
  emulate sh
 
244
  NULLCMD=:
 
245
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
246
  # is contrary to our usage.  Disable this feature.
 
247
  alias -g '${1+"$@"}'='"$@"'
 
248
  setopt NO_GLOB_SUBST
 
249
else
 
250
  case `(set -o) 2>/dev/null` in
 
251
  *posix*) set -o posix ;;
 
252
esac
 
253
 
 
254
fi
 
255
 
 
256
 
 
257
:
 
258
_ASEOF
 
259
}; then
 
260
  CONFIG_SHELL=$as_shell
 
261
               as_have_required=yes
 
262
               if { "$as_shell" 2> /dev/null <<\_ASEOF
 
263
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
264
  emulate sh
 
265
  NULLCMD=:
 
266
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
267
  # is contrary to our usage.  Disable this feature.
 
268
  alias -g '${1+"$@"}'='"$@"'
 
269
  setopt NO_GLOB_SUBST
 
270
else
 
271
  case `(set -o) 2>/dev/null` in
 
272
  *posix*) set -o posix ;;
 
273
esac
 
274
 
 
275
fi
 
276
 
 
277
 
 
278
:
 
279
(as_func_return () {
 
280
  (exit $1)
 
281
}
 
282
as_func_success () {
 
283
  as_func_return 0
 
284
}
 
285
as_func_failure () {
 
286
  as_func_return 1
 
287
}
 
288
as_func_ret_success () {
 
289
  return 0
 
290
}
 
291
as_func_ret_failure () {
 
292
  return 1
 
293
}
 
294
 
 
295
exitcode=0
 
296
if as_func_success; then
 
297
  :
 
298
else
 
299
  exitcode=1
 
300
  echo as_func_success failed.
 
301
fi
 
302
 
 
303
if as_func_failure; then
 
304
  exitcode=1
 
305
  echo as_func_failure succeeded.
 
306
fi
 
307
 
 
308
if as_func_ret_success; then
 
309
  :
 
310
else
 
311
  exitcode=1
 
312
  echo as_func_ret_success failed.
 
313
fi
 
314
 
 
315
if as_func_ret_failure; then
 
316
  exitcode=1
 
317
  echo as_func_ret_failure succeeded.
 
318
fi
 
319
 
 
320
if ( set x; as_func_ret_success y && test x = "$1" ); then
 
321
  :
 
322
else
 
323
  exitcode=1
 
324
  echo positional parameters were not saved.
 
325
fi
 
326
 
 
327
test $exitcode = 0) || { (exit 1); exit 1; }
 
328
 
 
329
(
 
330
  as_lineno_1=$LINENO
 
331
  as_lineno_2=$LINENO
 
332
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
333
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
 
334
 
 
335
_ASEOF
 
336
}; then
 
337
  break
 
338
fi
 
339
 
 
340
fi
 
341
 
 
342
      done
 
343
 
 
344
      if test "x$CONFIG_SHELL" != x; then
 
345
  for as_var in BASH_ENV ENV
 
346
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
347
        done
 
348
        export CONFIG_SHELL
 
349
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
350
fi
 
351
 
 
352
 
 
353
    if test $as_have_required = no; then
 
354
  echo This script requires a shell more modern than all the
 
355
      echo shells that I found on your system.  Please install a
 
356
      echo modern shell, or manually run the script under such a
 
357
      echo shell if you do have one.
 
358
      { (exit 1); exit 1; }
 
359
fi
 
360
 
 
361
 
 
362
fi
 
363
 
 
364
fi
 
365
 
 
366
 
 
367
 
 
368
(eval "as_func_return () {
 
369
  (exit \$1)
 
370
}
 
371
as_func_success () {
 
372
  as_func_return 0
 
373
}
 
374
as_func_failure () {
 
375
  as_func_return 1
 
376
}
 
377
as_func_ret_success () {
 
378
  return 0
 
379
}
 
380
as_func_ret_failure () {
 
381
  return 1
 
382
}
 
383
 
 
384
exitcode=0
 
385
if as_func_success; then
 
386
  :
 
387
else
 
388
  exitcode=1
 
389
  echo as_func_success failed.
 
390
fi
 
391
 
 
392
if as_func_failure; then
 
393
  exitcode=1
 
394
  echo as_func_failure succeeded.
 
395
fi
 
396
 
 
397
if as_func_ret_success; then
 
398
  :
 
399
else
 
400
  exitcode=1
 
401
  echo as_func_ret_success failed.
 
402
fi
 
403
 
 
404
if as_func_ret_failure; then
 
405
  exitcode=1
 
406
  echo as_func_ret_failure succeeded.
 
407
fi
 
408
 
 
409
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
410
  :
 
411
else
 
412
  exitcode=1
 
413
  echo positional parameters were not saved.
 
414
fi
 
415
 
 
416
test \$exitcode = 0") || {
 
417
  echo No shell found that supports shell functions.
 
418
  echo Please tell autoconf@gnu.org about your system,
 
419
  echo including any error possibly output before this
 
420
  echo message
 
421
}
 
422
 
 
423
 
 
424
 
 
425
  as_lineno_1=$LINENO
 
426
  as_lineno_2=$LINENO
 
427
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
428
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
157
429
 
158
430
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159
431
  # uniformly replaced by the line number.  The first 'sed' inserts a
160
 
  # line-number line before each line; the second 'sed' does the real
161
 
  # work.  The second script uses 'N' to pair each line-number line
162
 
  # with the numbered line, and appends trailing '-' during
163
 
  # substitution so that $LINENO is not a special case at line end.
 
432
  # line-number line after each line using $LINENO; the second 'sed'
 
433
  # does the real work.  The second script uses 'N' to pair each
 
434
  # line-number line with the line containing $LINENO, and appends
 
435
  # trailing '-' during substitution so that $LINENO is not a special
 
436
  # case at line end.
164
437
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166
 
  sed '=' <$as_myself |
 
438
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
439
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
440
  sed -n '
 
441
    p
 
442
    /[$]LINENO/=
 
443
  ' <$as_myself |
167
444
    sed '
 
445
      s/[$]LINENO.*/&-/
 
446
      t lineno
 
447
      b
 
448
      :lineno
168
449
      N
169
 
      s,$,-,
170
 
      : loop
171
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
450
      :loop
 
451
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
172
452
      t loop
173
 
      s,-$,,
174
 
      s,^['$as_cr_digits']*\n,,
 
453
      s/-\n.*//
175
454
    ' >$as_me.lineno &&
176
 
  chmod +x $as_me.lineno ||
 
455
  chmod +x "$as_me.lineno" ||
177
456
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178
457
   { (exit 1); exit 1; }; }
179
458
 
180
459
  # Don't try to exec as it changes $[0], causing all sort of problems
181
460
  # (the dirname of $[0] is not the place where we might find the
182
 
  # original and so on.  Autoconf is especially sensible to this).
183
 
  . ./$as_me.lineno
 
461
  # original and so on.  Autoconf is especially sensitive to this).
 
462
  . "./$as_me.lineno"
184
463
  # Exit status is that of the last command.
185
464
  exit
186
465
}
187
466
 
188
467
 
189
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190
 
  *c*,-n*) ECHO_N= ECHO_C='
191
 
' ECHO_T='      ' ;;
192
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
468
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
469
  as_dirname=dirname
 
470
else
 
471
  as_dirname=false
 
472
fi
 
473
 
 
474
ECHO_C= ECHO_N= ECHO_T=
 
475
case `echo -n x` in
 
476
-n*)
 
477
  case `echo 'x\c'` in
 
478
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
479
  *)   ECHO_C='\c';;
 
480
  esac;;
 
481
*)
 
482
  ECHO_N='-n';;
194
483
esac
195
484
 
196
 
if expr a : '\(a\)' >/dev/null 2>&1; then
 
485
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
486
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
197
487
  as_expr=expr
198
488
else
199
489
  as_expr=false
200
490
fi
201
491
 
202
492
rm -f conf$$ conf$$.exe conf$$.file
 
493
if test -d conf$$.dir; then
 
494
  rm -f conf$$.dir/conf$$.file
 
495
else
 
496
  rm -f conf$$.dir
 
497
  mkdir conf$$.dir
 
498
fi
203
499
echo >conf$$.file
204
500
if ln -s conf$$.file conf$$ 2>/dev/null; then
205
 
  # We could just check for DJGPP; but this test a) works b) is more generic
206
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207
 
  if test -f conf$$.exe; then
208
 
    # Don't use ln at all; we don't have any links
 
501
  as_ln_s='ln -s'
 
502
  # ... but there are two gotchas:
 
503
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
504
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
505
  # In both cases, we have to default to `cp -p'.
 
506
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
209
507
    as_ln_s='cp -p'
210
 
  else
211
 
    as_ln_s='ln -s'
212
 
  fi
213
508
elif ln conf$$.file conf$$ 2>/dev/null; then
214
509
  as_ln_s=ln
215
510
else
216
511
  as_ln_s='cp -p'
217
512
fi
218
 
rm -f conf$$ conf$$.exe conf$$.file
 
513
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
514
rmdir conf$$.dir 2>/dev/null
219
515
 
220
516
if mkdir -p . 2>/dev/null; then
221
517
  as_mkdir_p=:
224
520
  as_mkdir_p=false
225
521
fi
226
522
 
227
 
as_executable_p="test -f"
 
523
if test -x / >/dev/null 2>&1; then
 
524
  as_test_x='test -x'
 
525
else
 
526
  if ls -dL / >/dev/null 2>&1; then
 
527
    as_ls_L_option=L
 
528
  else
 
529
    as_ls_L_option=
 
530
  fi
 
531
  as_test_x='
 
532
    eval sh -c '\''
 
533
      if test -d "$1"; then
 
534
        test -d "$1/.";
 
535
      else
 
536
        case $1 in
 
537
        -*)set "./$1";;
 
538
        esac;
 
539
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
540
        ???[sx]*):;;*)false;;esac;fi
 
541
    '\'' sh
 
542
  '
 
543
fi
 
544
as_executable_p=$as_test_x
228
545
 
229
546
# Sed expression to map a string onto a valid CPP name.
230
547
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233
550
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
551
 
235
552
 
236
 
# IFS
237
 
# We need space, tab and new line, in precisely that order.
238
 
as_nl='
239
 
'
240
 
IFS="   $as_nl"
241
 
 
242
 
# CDPATH.
243
 
$as_unset CDPATH
244
 
 
 
553
 
 
554
exec 7<&0 </dev/null 6>&1
245
555
 
246
556
# Name of the host.
247
557
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248
558
# so uname gets run too.
249
559
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
560
 
251
 
exec 6>&1
252
 
 
253
561
#
254
562
# Initializations.
255
563
#
256
564
ac_default_prefix=/usr/local
 
565
ac_clean_files=
257
566
ac_config_libobj_dir=.
 
567
LIBOBJS=
258
568
cross_compiling=no
259
569
subdirs=
260
570
MFLAGS=
261
571
MAKEFLAGS=
262
572
SHELL=${CONFIG_SHELL-/bin/sh}
263
573
 
264
 
# Maximum number of lines to put in a shell here document.
265
 
# This variable seems obsolete.  It should probably be removed, and
266
 
# only ac_max_sed_lines should be used.
267
 
: ${ac_max_here_lines=38}
268
 
 
269
574
# Identity of this package.
270
575
PACKAGE_NAME='sitecopy'
271
576
PACKAGE_TARNAME='sitecopy'
272
 
PACKAGE_VERSION='0.16.3'
273
 
PACKAGE_STRING='sitecopy 0.16.3'
 
577
PACKAGE_VERSION='0.16.6'
 
578
PACKAGE_STRING='sitecopy 0.16.6'
274
579
PACKAGE_BUGREPORT='sitecopy@lyra.org'
275
580
 
276
581
ac_unique_file="src/sites.c"
277
582
# Factoring default headers for most tests.
278
583
ac_includes_default="\
279
584
#include <stdio.h>
280
 
#if HAVE_SYS_TYPES_H
 
585
#ifdef HAVE_SYS_TYPES_H
281
586
# include <sys/types.h>
282
587
#endif
283
 
#if HAVE_SYS_STAT_H
 
588
#ifdef HAVE_SYS_STAT_H
284
589
# include <sys/stat.h>
285
590
#endif
286
 
#if STDC_HEADERS
 
591
#ifdef STDC_HEADERS
287
592
# include <stdlib.h>
288
593
# include <stddef.h>
289
594
#else
290
 
# if HAVE_STDLIB_H
 
595
# ifdef HAVE_STDLIB_H
291
596
#  include <stdlib.h>
292
597
# endif
293
598
#endif
294
 
#if HAVE_STRING_H
295
 
# if !STDC_HEADERS && HAVE_MEMORY_H
 
599
#ifdef HAVE_STRING_H
 
600
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
296
601
#  include <memory.h>
297
602
# endif
298
603
# include <string.h>
299
604
#endif
300
 
#if HAVE_STRINGS_H
 
605
#ifdef HAVE_STRINGS_H
301
606
# include <strings.h>
302
607
#endif
303
 
#if HAVE_INTTYPES_H
 
608
#ifdef HAVE_INTTYPES_H
304
609
# include <inttypes.h>
305
 
#else
306
 
# if HAVE_STDINT_H
307
 
#  include <stdint.h>
308
 
# endif
309
 
#endif
310
 
#if HAVE_UNISTD_H
 
610
#endif
 
611
#ifdef HAVE_STDINT_H
 
612
# include <stdint.h>
 
613
#endif
 
614
#ifdef HAVE_UNISTD_H
311
615
# include <unistd.h>
312
616
#endif"
313
617
 
314
 
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CPP EGREP LIBOBJS NEON_CONFIG NE_FLAG_SSL NE_FLAG_ZLIB NE_FLAG_IPV6 NE_FLAG_LFS NE_FLAG_SOCKS NE_FLAG_TS_SSL PKG_CONFIG GNUTLS_CONFIG NEON_SUPPORTS_SSL KRB5_CONFIG NEON_CFLAGS NEON_LIBS NEON_LTLIBS NEON_BUILD_BUNDLED XML2_CONFIG AR ac_pt_AR RANLIB ac_pt_RANLIB NE_FLAG_DAV NEON_TARGET NEON_OBJEXT NEONOBJS NEON_EXTRAOBJS NEON_LINK_FLAGS LIBGLADE_CONFIG LIBGLADE_CFLAGS LIBGLADE_LIBS MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os GLIBC2 ac_ct_RANLIB ALLOCA GLIBC21 INTL_MACOSX_LIBS HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB GNOME_SC_HELPDIR XSC_HELP SHORTCUT_LOCATION EXTRAOBJS TARGET LTLIBOBJS'
 
618
gt_needs=
 
619
ac_subst_vars='SHELL
 
620
PATH_SEPARATOR
 
621
PACKAGE_NAME
 
622
PACKAGE_TARNAME
 
623
PACKAGE_VERSION
 
624
PACKAGE_STRING
 
625
PACKAGE_BUGREPORT
 
626
exec_prefix
 
627
prefix
 
628
program_transform_name
 
629
bindir
 
630
sbindir
 
631
libexecdir
 
632
datarootdir
 
633
datadir
 
634
sysconfdir
 
635
sharedstatedir
 
636
localstatedir
 
637
includedir
 
638
oldincludedir
 
639
docdir
 
640
infodir
 
641
htmldir
 
642
dvidir
 
643
pdfdir
 
644
psdir
 
645
libdir
 
646
localedir
 
647
mandir
 
648
DEFS
 
649
ECHO_C
 
650
ECHO_N
 
651
ECHO_T
 
652
LIBS
 
653
build_alias
 
654
host_alias
 
655
target_alias
 
656
CC
 
657
CFLAGS
 
658
LDFLAGS
 
659
CPPFLAGS
 
660
ac_ct_CC
 
661
EXEEXT
 
662
OBJEXT
 
663
SET_MAKE
 
664
INSTALL_PROGRAM
 
665
INSTALL_SCRIPT
 
666
INSTALL_DATA
 
667
CPP
 
668
GREP
 
669
EGREP
 
670
LIBOBJS
 
671
NEON_CONFIG
 
672
NE_FLAG_SSL
 
673
NE_FLAG_ZLIB
 
674
NE_FLAG_IPV6
 
675
NE_FLAG_LFS
 
676
NE_FLAG_SOCKS
 
677
NE_FLAG_TS_SSL
 
678
PKG_CONFIG
 
679
GNUTLS_CONFIG
 
680
NEON_SUPPORTS_SSL
 
681
KRB5_CONFIG
 
682
NEON_CFLAGS
 
683
NEON_LIBS
 
684
NEON_LTLIBS
 
685
NEON_BUILD_BUNDLED
 
686
XML2_CONFIG
 
687
AR
 
688
RANLIB
 
689
NE_FLAG_DAV
 
690
NEON_TARGET
 
691
NEON_OBJEXT
 
692
NEONOBJS
 
693
NEON_EXTRAOBJS
 
694
NEON_LINK_FLAGS
 
695
LIBGLADE_CONFIG
 
696
LIBGLADE_CFLAGS
 
697
LIBGLADE_LIBS
 
698
mkdir_p
 
699
USE_NLS
 
700
GETTEXT_MACRO_VERSION
 
701
MSGFMT
 
702
GMSGFMT
 
703
MSGFMT_015
 
704
GMSGFMT_015
 
705
XGETTEXT
 
706
XGETTEXT_015
 
707
MSGMERGE
 
708
XGETTEXT_EXTRA_OPTIONS
 
709
build
 
710
build_cpu
 
711
build_vendor
 
712
build_os
 
713
host
 
714
host_cpu
 
715
host_vendor
 
716
host_os
 
717
GLIBC2
 
718
CFLAG_VISIBILITY
 
719
HAVE_VISIBILITY
 
720
ALLOCA
 
721
PRI_MACROS_BROKEN
 
722
LIBPTH
 
723
LTLIBPTH
 
724
LIBPTH_PREFIX
 
725
LIBTHREAD
 
726
LTLIBTHREAD
 
727
LIBMULTITHREAD
 
728
LTLIBMULTITHREAD
 
729
LIBICONV
 
730
LTLIBICONV
 
731
INTLBISON
 
732
GLIBC21
 
733
INTL_MACOSX_LIBS
 
734
HAVE_POSIX_PRINTF
 
735
HAVE_ASPRINTF
 
736
HAVE_SNPRINTF
 
737
HAVE_WPRINTF
 
738
WOE32DLL
 
739
WOE32
 
740
WINDRES
 
741
LTLIBC
 
742
BUILD_INCLUDED_LIBINTL
 
743
USE_INCLUDED_LIBINTL
 
744
CATOBJEXT
 
745
DATADIRNAME
 
746
INSTOBJEXT
 
747
GENCAT
 
748
INTLOBJS
 
749
INTL_LIBTOOL_SUFFIX_PREFIX
 
750
INTLLIBS
 
751
LIBINTL
 
752
LTLIBINTL
 
753
POSUB
 
754
GNOME_SC_HELPDIR
 
755
XSC_HELP
 
756
SHORTCUT_LOCATION
 
757
EXTRAOBJS
 
758
TARGET
 
759
LTLIBOBJS'
315
760
ac_subst_files=''
 
761
      ac_precious_vars='build_alias
 
762
host_alias
 
763
target_alias
 
764
CC
 
765
CFLAGS
 
766
LDFLAGS
 
767
LIBS
 
768
CPPFLAGS
 
769
CPP'
 
770
 
316
771
 
317
772
# Initialize some variables set by options.
318
773
ac_init_help=
339
794
# and all the variables that are supposed to be based on exec_prefix
340
795
# by default will actually change.
341
796
# Use braces instead of parens because sh, perl, etc. also accept them.
 
797
# (The list follows the same order as the GNU Coding Standards.)
342
798
bindir='${exec_prefix}/bin'
343
799
sbindir='${exec_prefix}/sbin'
344
800
libexecdir='${exec_prefix}/libexec'
345
 
datadir='${prefix}/share'
 
801
datarootdir='${prefix}/share'
 
802
datadir='${datarootdir}'
346
803
sysconfdir='${prefix}/etc'
347
804
sharedstatedir='${prefix}/com'
348
805
localstatedir='${prefix}/var'
349
 
libdir='${exec_prefix}/lib'
350
806
includedir='${prefix}/include'
351
807
oldincludedir='/usr/include'
352
 
infodir='${prefix}/info'
353
 
mandir='${prefix}/man'
 
808
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
809
infodir='${datarootdir}/info'
 
810
htmldir='${docdir}'
 
811
dvidir='${docdir}'
 
812
pdfdir='${docdir}'
 
813
psdir='${docdir}'
 
814
libdir='${exec_prefix}/lib'
 
815
localedir='${datarootdir}/locale'
 
816
mandir='${datarootdir}/man'
354
817
 
355
818
ac_prev=
 
819
ac_dashdash=
356
820
for ac_option
357
821
do
358
822
  # If the previous option needs an argument, assign it.
359
823
  if test -n "$ac_prev"; then
360
 
    eval "$ac_prev=\$ac_option"
 
824
    eval $ac_prev=\$ac_option
361
825
    ac_prev=
362
826
    continue
363
827
  fi
364
828
 
365
 
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
829
  case $ac_option in
 
830
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
831
  *)    ac_optarg=yes ;;
 
832
  esac
366
833
 
367
834
  # Accept the important Cygnus configure options, so we can diagnose typos.
368
835
 
369
 
  case $ac_option in
 
836
  case $ac_dashdash$ac_option in
 
837
  --)
 
838
    ac_dashdash=yes ;;
370
839
 
371
840
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
372
841
    ac_prev=bindir ;;
388
857
  --config-cache | -C)
389
858
    cache_file=config.cache ;;
390
859
 
391
 
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
860
  -datadir | --datadir | --datadi | --datad)
392
861
    ac_prev=datadir ;;
393
 
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394
 
  | --da=*)
 
862
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
395
863
    datadir=$ac_optarg ;;
396
864
 
 
865
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
866
  | --dataroo | --dataro | --datar)
 
867
    ac_prev=datarootdir ;;
 
868
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
869
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
870
    datarootdir=$ac_optarg ;;
 
871
 
397
872
  -disable-* | --disable-*)
398
873
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399
874
    # Reject names that are not valid shell variable names.
400
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
875
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
401
876
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402
877
   { (exit 1); exit 1; }; }
403
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404
 
    eval "enable_$ac_feature=no" ;;
 
878
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
879
    eval enable_$ac_feature=no ;;
 
880
 
 
881
  -docdir | --docdir | --docdi | --doc | --do)
 
882
    ac_prev=docdir ;;
 
883
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
884
    docdir=$ac_optarg ;;
 
885
 
 
886
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
887
    ac_prev=dvidir ;;
 
888
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
889
    dvidir=$ac_optarg ;;
405
890
 
406
891
  -enable-* | --enable-*)
407
892
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408
893
    # Reject names that are not valid shell variable names.
409
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
894
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
410
895
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411
896
   { (exit 1); exit 1; }; }
412
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413
 
    case $ac_option in
414
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415
 
      *) ac_optarg=yes ;;
416
 
    esac
417
 
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
897
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
898
    eval enable_$ac_feature=\$ac_optarg ;;
418
899
 
419
900
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420
901
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
441
922
  -host=* | --host=* | --hos=* | --ho=*)
442
923
    host_alias=$ac_optarg ;;
443
924
 
 
925
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
926
    ac_prev=htmldir ;;
 
927
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
928
  | --ht=*)
 
929
    htmldir=$ac_optarg ;;
 
930
 
444
931
  -includedir | --includedir | --includedi | --included | --include \
445
932
  | --includ | --inclu | --incl | --inc)
446
933
    ac_prev=includedir ;;
465
952
  | --libexe=* | --libex=* | --libe=*)
466
953
    libexecdir=$ac_optarg ;;
467
954
 
 
955
  -localedir | --localedir | --localedi | --localed | --locale)
 
956
    ac_prev=localedir ;;
 
957
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
958
    localedir=$ac_optarg ;;
 
959
 
468
960
  -localstatedir | --localstatedir | --localstatedi | --localstated \
469
 
  | --localstate | --localstat | --localsta | --localst \
470
 
  | --locals | --local | --loca | --loc | --lo)
 
961
  | --localstate | --localstat | --localsta | --localst | --locals)
471
962
    ac_prev=localstatedir ;;
472
963
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474
 
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
964
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
475
965
    localstatedir=$ac_optarg ;;
476
966
 
477
967
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
536
1026
  | --progr-tra=* | --program-tr=* | --program-t=*)
537
1027
    program_transform_name=$ac_optarg ;;
538
1028
 
 
1029
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1030
    ac_prev=pdfdir ;;
 
1031
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1032
    pdfdir=$ac_optarg ;;
 
1033
 
 
1034
  -psdir | --psdir | --psdi | --psd | --ps)
 
1035
    ac_prev=psdir ;;
 
1036
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1037
    psdir=$ac_optarg ;;
 
1038
 
539
1039
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540
1040
  | -silent | --silent | --silen | --sile | --sil)
541
1041
    silent=yes ;;
588
1088
  -with-* | --with-*)
589
1089
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590
1090
    # Reject names that are not valid shell variable names.
591
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
1091
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
592
1092
      { echo "$as_me: error: invalid package name: $ac_package" >&2
593
1093
   { (exit 1); exit 1; }; }
594
 
    ac_package=`echo $ac_package| sed 's/-/_/g'`
595
 
    case $ac_option in
596
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597
 
      *) ac_optarg=yes ;;
598
 
    esac
599
 
    eval "with_$ac_package='$ac_optarg'" ;;
 
1094
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1095
    eval with_$ac_package=\$ac_optarg ;;
600
1096
 
601
1097
  -without-* | --without-*)
602
1098
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603
1099
    # Reject names that are not valid shell variable names.
604
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
1100
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
605
1101
      { echo "$as_me: error: invalid package name: $ac_package" >&2
606
1102
   { (exit 1); exit 1; }; }
607
 
    ac_package=`echo $ac_package | sed 's/-/_/g'`
608
 
    eval "with_$ac_package=no" ;;
 
1103
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1104
    eval with_$ac_package=no ;;
609
1105
 
610
1106
  --x)
611
1107
    # Obsolete; use --with-x.
636
1132
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637
1133
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638
1134
   { (exit 1); exit 1; }; }
639
 
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640
 
    eval "$ac_envvar='$ac_optarg'"
 
1135
    eval $ac_envvar=\$ac_optarg
641
1136
    export $ac_envvar ;;
642
1137
 
643
1138
  *)
657
1152
   { (exit 1); exit 1; }; }
658
1153
fi
659
1154
 
660
 
# Be sure to have absolute paths.
661
 
for ac_var in exec_prefix prefix
662
 
do
663
 
  eval ac_val=$`echo $ac_var`
664
 
  case $ac_val in
665
 
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667
 
   { (exit 1); exit 1; }; };;
668
 
  esac
669
 
done
670
 
 
671
 
# Be sure to have absolute paths.
672
 
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673
 
              localstatedir libdir includedir oldincludedir infodir mandir
674
 
do
675
 
  eval ac_val=$`echo $ac_var`
676
 
  case $ac_val in
677
 
    [\\/$]* | ?:[\\/]* ) ;;
678
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679
 
   { (exit 1); exit 1; }; };;
680
 
  esac
 
1155
# Be sure to have absolute directory names.
 
1156
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1157
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1158
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1159
                libdir localedir mandir
 
1160
do
 
1161
  eval ac_val=\$$ac_var
 
1162
  case $ac_val in
 
1163
    [\\/$]* | ?:[\\/]* )  continue;;
 
1164
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1165
  esac
 
1166
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
1167
   { (exit 1); exit 1; }; }
681
1168
done
682
1169
 
683
1170
# There might be people who depend on the old broken behavior: `$host'
704
1191
test "$silent" = yes && exec 6>/dev/null
705
1192
 
706
1193
 
 
1194
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1195
ac_ls_di=`ls -di .` &&
 
1196
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1197
  { echo "$as_me: error: Working directory cannot be determined" >&2
 
1198
   { (exit 1); exit 1; }; }
 
1199
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1200
  { echo "$as_me: error: pwd does not report name of working directory" >&2
 
1201
   { (exit 1); exit 1; }; }
 
1202
 
 
1203
 
707
1204
# Find the source files, if location was not specified.
708
1205
if test -z "$srcdir"; then
709
1206
  ac_srcdir_defaulted=yes
710
 
  # Try the directory containing this script, then its parent.
711
 
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
1207
  # Try the directory containing this script, then the parent directory.
 
1208
  ac_confdir=`$as_dirname -- "$0" ||
712
1209
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713
1210
         X"$0" : 'X\(//\)[^/]' \| \
714
1211
         X"$0" : 'X\(//\)$' \| \
715
 
         X"$0" : 'X\(/\)' \| \
716
 
         .     : '\(.\)' 2>/dev/null ||
 
1212
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
717
1213
echo X"$0" |
718
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720
 
          /^X\(\/\/\)$/{ s//\1/; q; }
721
 
          /^X\(\/\).*/{ s//\1/; q; }
722
 
          s/.*/./; q'`
 
1214
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1215
            s//\1/
 
1216
            q
 
1217
          }
 
1218
          /^X\(\/\/\)[^/].*/{
 
1219
            s//\1/
 
1220
            q
 
1221
          }
 
1222
          /^X\(\/\/\)$/{
 
1223
            s//\1/
 
1224
            q
 
1225
          }
 
1226
          /^X\(\/\).*/{
 
1227
            s//\1/
 
1228
            q
 
1229
          }
 
1230
          s/.*/./; q'`
723
1231
  srcdir=$ac_confdir
724
 
  if test ! -r $srcdir/$ac_unique_file; then
 
1232
  if test ! -r "$srcdir/$ac_unique_file"; then
725
1233
    srcdir=..
726
1234
  fi
727
1235
else
728
1236
  ac_srcdir_defaulted=no
729
1237
fi
730
 
if test ! -r $srcdir/$ac_unique_file; then
731
 
  if test "$ac_srcdir_defaulted" = yes; then
732
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733
 
   { (exit 1); exit 1; }; }
734
 
  else
735
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736
 
   { (exit 1); exit 1; }; }
737
 
  fi
738
 
fi
739
 
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740
 
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741
 
   { (exit 1); exit 1; }; }
742
 
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743
 
ac_env_build_alias_set=${build_alias+set}
744
 
ac_env_build_alias_value=$build_alias
745
 
ac_cv_env_build_alias_set=${build_alias+set}
746
 
ac_cv_env_build_alias_value=$build_alias
747
 
ac_env_host_alias_set=${host_alias+set}
748
 
ac_env_host_alias_value=$host_alias
749
 
ac_cv_env_host_alias_set=${host_alias+set}
750
 
ac_cv_env_host_alias_value=$host_alias
751
 
ac_env_target_alias_set=${target_alias+set}
752
 
ac_env_target_alias_value=$target_alias
753
 
ac_cv_env_target_alias_set=${target_alias+set}
754
 
ac_cv_env_target_alias_value=$target_alias
755
 
ac_env_CC_set=${CC+set}
756
 
ac_env_CC_value=$CC
757
 
ac_cv_env_CC_set=${CC+set}
758
 
ac_cv_env_CC_value=$CC
759
 
ac_env_CFLAGS_set=${CFLAGS+set}
760
 
ac_env_CFLAGS_value=$CFLAGS
761
 
ac_cv_env_CFLAGS_set=${CFLAGS+set}
762
 
ac_cv_env_CFLAGS_value=$CFLAGS
763
 
ac_env_LDFLAGS_set=${LDFLAGS+set}
764
 
ac_env_LDFLAGS_value=$LDFLAGS
765
 
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766
 
ac_cv_env_LDFLAGS_value=$LDFLAGS
767
 
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768
 
ac_env_CPPFLAGS_value=$CPPFLAGS
769
 
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770
 
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771
 
ac_env_CPP_set=${CPP+set}
772
 
ac_env_CPP_value=$CPP
773
 
ac_cv_env_CPP_set=${CPP+set}
774
 
ac_cv_env_CPP_value=$CPP
 
1238
if test ! -r "$srcdir/$ac_unique_file"; then
 
1239
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1240
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
1241
   { (exit 1); exit 1; }; }
 
1242
fi
 
1243
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1244
ac_abs_confdir=`(
 
1245
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
 
1246
   { (exit 1); exit 1; }; }
 
1247
        pwd)`
 
1248
# When building in place, set srcdir=.
 
1249
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1250
  srcdir=.
 
1251
fi
 
1252
# Remove unnecessary trailing slashes from srcdir.
 
1253
# Double slashes in file names in object file debugging info
 
1254
# mess up M-x gdb in Emacs.
 
1255
case $srcdir in
 
1256
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1257
esac
 
1258
for ac_var in $ac_precious_vars; do
 
1259
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1260
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1261
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1262
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1263
done
775
1264
 
776
1265
#
777
1266
# Report the --help message.
780
1269
  # Omit some internal or obsolete options to make the list less imposing.
781
1270
  # This message is too long to be a string in the A/UX 3.1 sh.
782
1271
  cat <<_ACEOF
783
 
\`configure' configures sitecopy 0.16.3 to adapt to many kinds of systems.
 
1272
\`configure' configures sitecopy 0.16.6 to adapt to many kinds of systems.
784
1273
 
785
1274
Usage: $0 [OPTION]... [VAR=VALUE]...
786
1275
 
800
1289
  -n, --no-create         do not create output files
801
1290
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
802
1291
 
803
 
_ACEOF
804
 
 
805
 
  cat <<_ACEOF
806
1292
Installation directories:
807
1293
  --prefix=PREFIX         install architecture-independent files in PREFIX
808
1294
                          [$ac_default_prefix]
820
1306
  --bindir=DIR           user executables [EPREFIX/bin]
821
1307
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
822
1308
  --libexecdir=DIR       program executables [EPREFIX/libexec]
823
 
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
824
1309
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
825
1310
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
826
1311
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
827
1312
  --libdir=DIR           object code libraries [EPREFIX/lib]
828
1313
  --includedir=DIR       C header files [PREFIX/include]
829
1314
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
830
 
  --infodir=DIR          info documentation [PREFIX/info]
831
 
  --mandir=DIR           man documentation [PREFIX/man]
 
1315
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
 
1316
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
 
1317
  --infodir=DIR          info documentation [DATAROOTDIR/info]
 
1318
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
 
1319
  --mandir=DIR           man documentation [DATAROOTDIR/man]
 
1320
  --docdir=DIR           documentation root [DATAROOTDIR/doc/sitecopy]
 
1321
  --htmldir=DIR          html documentation [DOCDIR]
 
1322
  --dvidir=DIR           dvi documentation [DOCDIR]
 
1323
  --pdfdir=DIR           pdf documentation [DOCDIR]
 
1324
  --psdir=DIR            ps documentation [DOCDIR]
832
1325
_ACEOF
833
1326
 
834
1327
  cat <<\_ACEOF
841
1334
 
842
1335
if test -n "$ac_init_help"; then
843
1336
  case $ac_init_help in
844
 
     short | recursive ) echo "Configuration of sitecopy 0.16.3:";;
 
1337
     short | recursive ) echo "Configuration of sitecopy 0.16.6:";;
845
1338
   esac
846
1339
  cat <<\_ACEOF
847
1340
 
859
1352
                          threads: suitable CC/CFLAGS/LIBS must be used to
860
1353
                          make the POSIX library interfaces available
861
1354
  --disable-nls           do not use Native Language Support
 
1355
  --enable-threads={posix|solaris|pth|win32}
 
1356
                          specify multithreading API
 
1357
  --disable-threads       build without multithread safety
862
1358
  --disable-rpath         do not hardcode runtime library paths
863
1359
  --enable-warnings       enable compiler warnings
864
1360
 
871
1367
  --with-ssl=openssl|gnutls
872
1368
                          enable SSL support (default OpenSSL)
873
1369
  --with-egd[=PATH]       enable EGD support [using EGD socket at PATH]
 
1370
  --without-pakchois      disable support for PKCS#11 using pakchois
874
1371
  --with-ca-bundle        specify filename of an SSL CA root bundle
875
1372
  --with-socks            use SOCKSv5 library
876
1373
  --without-gssapi        disable GSSAPI support
879
1376
  --with-included-expat   use bundled expat sources
880
1377
  --with-libglade-config=LIBGLADE_CONFIG  Location of libglade-config
881
1378
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
 
1379
  --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
 
1380
  --without-libpth-prefix     don't search for libpth in includedir and libdir
882
1381
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
883
1382
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
884
1383
  --with-included-gettext use the GNU gettext library included here
890
1389
  CFLAGS      C compiler flags
891
1390
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
892
1391
              nonstandard directory <lib dir>
893
 
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
894
 
              headers in a nonstandard directory <include dir>
 
1392
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1393
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1394
              you have headers in a nonstandard directory <include dir>
895
1395
  CPP         C preprocessor
896
1396
 
897
1397
Use these variables to override the choices made by `configure' or to help
899
1399
 
900
1400
Report bugs to <sitecopy@lyra.org>.
901
1401
_ACEOF
 
1402
ac_status=$?
902
1403
fi
903
1404
 
904
1405
if test "$ac_init_help" = "recursive"; then
905
1406
  # If there are subdirs, report their specific --help.
906
 
  ac_popdir=`pwd`
907
1407
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
908
 
    test -d $ac_dir || continue
 
1408
    test -d "$ac_dir" || continue
909
1409
    ac_builddir=.
910
1410
 
911
 
if test "$ac_dir" != .; then
 
1411
case "$ac_dir" in
 
1412
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1413
*)
912
1414
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
913
 
  # A "../" for each directory in $ac_dir_suffix.
914
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
915
 
else
916
 
  ac_dir_suffix= ac_top_builddir=
917
 
fi
 
1415
  # A ".." for each directory in $ac_dir_suffix.
 
1416
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
1417
  case $ac_top_builddir_sub in
 
1418
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1419
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1420
  esac ;;
 
1421
esac
 
1422
ac_abs_top_builddir=$ac_pwd
 
1423
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1424
# for backward compatibility:
 
1425
ac_top_builddir=$ac_top_build_prefix
918
1426
 
919
1427
case $srcdir in
920
 
  .)  # No --srcdir option.  We are building in place.
 
1428
  .)  # We are building in place.
921
1429
    ac_srcdir=.
922
 
    if test -z "$ac_top_builddir"; then
923
 
       ac_top_srcdir=.
924
 
    else
925
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
926
 
    fi ;;
927
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1430
    ac_top_srcdir=$ac_top_builddir_sub
 
1431
    ac_abs_top_srcdir=$ac_pwd ;;
 
1432
  [\\/]* | ?:[\\/]* )  # Absolute name.
928
1433
    ac_srcdir=$srcdir$ac_dir_suffix;
929
 
    ac_top_srcdir=$srcdir ;;
930
 
  *) # Relative path.
931
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
932
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
933
 
esac
934
 
 
935
 
# Do not use `cd foo && pwd` to compute absolute paths, because
936
 
# the directories may not exist.
937
 
case `pwd` in
938
 
.) ac_abs_builddir="$ac_dir";;
939
 
*)
940
 
  case "$ac_dir" in
941
 
  .) ac_abs_builddir=`pwd`;;
942
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
943
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
944
 
  esac;;
945
 
esac
946
 
case $ac_abs_builddir in
947
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
948
 
*)
949
 
  case ${ac_top_builddir}. in
950
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
951
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
952
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
953
 
  esac;;
954
 
esac
955
 
case $ac_abs_builddir in
956
 
.) ac_abs_srcdir=$ac_srcdir;;
957
 
*)
958
 
  case $ac_srcdir in
959
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
960
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
961
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
962
 
  esac;;
963
 
esac
964
 
case $ac_abs_builddir in
965
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
966
 
*)
967
 
  case $ac_top_srcdir in
968
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
969
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
970
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
971
 
  esac;;
972
 
esac
973
 
 
974
 
    cd $ac_dir
975
 
    # Check for guested configure; otherwise get Cygnus style configure.
976
 
    if test -f $ac_srcdir/configure.gnu; then
977
 
      echo
978
 
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
979
 
    elif test -f $ac_srcdir/configure; then
980
 
      echo
981
 
      $SHELL $ac_srcdir/configure  --help=recursive
982
 
    elif test -f $ac_srcdir/configure.ac ||
983
 
           test -f $ac_srcdir/configure.in; then
984
 
      echo
985
 
      $ac_configure --help
 
1434
    ac_top_srcdir=$srcdir
 
1435
    ac_abs_top_srcdir=$srcdir ;;
 
1436
  *) # Relative name.
 
1437
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1438
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1439
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1440
esac
 
1441
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1442
 
 
1443
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1444
    # Check for guested configure.
 
1445
    if test -f "$ac_srcdir/configure.gnu"; then
 
1446
      echo &&
 
1447
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1448
    elif test -f "$ac_srcdir/configure"; then
 
1449
      echo &&
 
1450
      $SHELL "$ac_srcdir/configure" --help=recursive
986
1451
    else
987
1452
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
988
 
    fi
989
 
    cd $ac_popdir
 
1453
    fi || ac_status=$?
 
1454
    cd "$ac_pwd" || { ac_status=$?; break; }
990
1455
  done
991
1456
fi
992
1457
 
993
 
test -n "$ac_init_help" && exit 0
 
1458
test -n "$ac_init_help" && exit $ac_status
994
1459
if $ac_init_version; then
995
1460
  cat <<\_ACEOF
996
 
sitecopy configure 0.16.3
997
 
generated by GNU Autoconf 2.59
 
1461
sitecopy configure 0.16.6
 
1462
generated by GNU Autoconf 2.61
998
1463
 
999
 
Copyright (C) 2003 Free Software Foundation, Inc.
 
1464
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
1465
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1000
1466
This configure script is free software; the Free Software Foundation
1001
1467
gives unlimited permission to copy, distribute and modify it.
1002
1468
_ACEOF
1003
 
  exit 0
 
1469
  exit
1004
1470
fi
1005
 
exec 5>config.log
1006
 
cat >&5 <<_ACEOF
 
1471
cat >config.log <<_ACEOF
1007
1472
This file contains any messages produced by compilers while
1008
1473
running configure, to aid debugging if configure makes a mistake.
1009
1474
 
1010
 
It was created by sitecopy $as_me 0.16.3, which was
1011
 
generated by GNU Autoconf 2.59.  Invocation command line was
 
1475
It was created by sitecopy $as_me 0.16.6, which was
 
1476
generated by GNU Autoconf 2.61.  Invocation command line was
1012
1477
 
1013
1478
  $ $0 $@
1014
1479
 
1015
1480
_ACEOF
 
1481
exec 5>>config.log
1016
1482
{
1017
1483
cat <<_ASUNAME
1018
1484
## --------- ##
1031
1497
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1032
1498
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1033
1499
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1034
 
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1500
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1035
1501
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1036
1502
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1037
1503
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1045
1511
  test -z "$as_dir" && as_dir=.
1046
1512
  echo "PATH: $as_dir"
1047
1513
done
 
1514
IFS=$as_save_IFS
1048
1515
 
1049
1516
} >&5
1050
1517
 
1066
1533
ac_configure_args=
1067
1534
ac_configure_args0=
1068
1535
ac_configure_args1=
1069
 
ac_sep=
1070
1536
ac_must_keep_next=false
1071
1537
for ac_pass in 1 2
1072
1538
do
1077
1543
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078
1544
    | -silent | --silent | --silen | --sile | --sil)
1079
1545
      continue ;;
1080
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1546
    *\'*)
1081
1547
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1082
1548
    esac
1083
1549
    case $ac_pass in
1099
1565
          -* ) ac_must_keep_next=true ;;
1100
1566
        esac
1101
1567
      fi
1102
 
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1103
 
      # Get rid of the leading space.
1104
 
      ac_sep=" "
 
1568
      ac_configure_args="$ac_configure_args '$ac_arg'"
1105
1569
      ;;
1106
1570
    esac
1107
1571
  done
1112
1576
# When interrupted or exit'd, cleanup temporary files, and complete
1113
1577
# config.log.  We remove comments because anyway the quotes in there
1114
1578
# would cause problems or look ugly.
1115
 
# WARNING: Be sure not to use single quotes in there, as some shells,
1116
 
# such as our DU 5.0 friend, will then `close' the trap.
 
1579
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1580
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1117
1581
trap 'exit_status=$?
1118
1582
  # Save into config.log some information that might help in debugging.
1119
1583
  {
1126
1590
_ASBOX
1127
1591
    echo
1128
1592
    # The following way of writing the cache mishandles newlines in values,
1129
 
{
 
1593
(
 
1594
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1595
    eval ac_val=\$$ac_var
 
1596
    case $ac_val in #(
 
1597
    *${as_nl}*)
 
1598
      case $ac_var in #(
 
1599
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
1600
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
1601
      esac
 
1602
      case $ac_var in #(
 
1603
      _ | IFS | as_nl) ;; #(
 
1604
      *) $as_unset $ac_var ;;
 
1605
      esac ;;
 
1606
    esac
 
1607
  done
1130
1608
  (set) 2>&1 |
1131
 
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1132
 
    *ac_space=\ *)
 
1609
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1610
    *${as_nl}ac_space=\ *)
1133
1611
      sed -n \
1134
 
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1135
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1136
 
      ;;
 
1612
        "s/'\''/'\''\\\\'\'''\''/g;
 
1613
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1614
      ;; #(
1137
1615
    *)
1138
 
      sed -n \
1139
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1616
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1140
1617
      ;;
1141
 
    esac;
1142
 
}
 
1618
    esac |
 
1619
    sort
 
1620
)
1143
1621
    echo
1144
1622
 
1145
1623
    cat <<\_ASBOX
1150
1628
    echo
1151
1629
    for ac_var in $ac_subst_vars
1152
1630
    do
1153
 
      eval ac_val=$`echo $ac_var`
1154
 
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1631
      eval ac_val=\$$ac_var
 
1632
      case $ac_val in
 
1633
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1634
      esac
 
1635
      echo "$ac_var='\''$ac_val'\''"
1155
1636
    done | sort
1156
1637
    echo
1157
1638
 
1158
1639
    if test -n "$ac_subst_files"; then
1159
1640
      cat <<\_ASBOX
1160
 
## ------------- ##
1161
 
## Output files. ##
1162
 
## ------------- ##
 
1641
## ------------------- ##
 
1642
## File substitutions. ##
 
1643
## ------------------- ##
1163
1644
_ASBOX
1164
1645
      echo
1165
1646
      for ac_var in $ac_subst_files
1166
1647
      do
1167
 
        eval ac_val=$`echo $ac_var`
1168
 
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1648
        eval ac_val=\$$ac_var
 
1649
        case $ac_val in
 
1650
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1651
        esac
 
1652
        echo "$ac_var='\''$ac_val'\''"
1169
1653
      done | sort
1170
1654
      echo
1171
1655
    fi
1177
1661
## ----------- ##
1178
1662
_ASBOX
1179
1663
      echo
1180
 
      sed "/^$/d" confdefs.h | sort
 
1664
      cat confdefs.h
1181
1665
      echo
1182
1666
    fi
1183
1667
    test "$ac_signal" != 0 &&
1184
1668
      echo "$as_me: caught signal $ac_signal"
1185
1669
    echo "$as_me: exit $exit_status"
1186
1670
  } >&5
1187
 
  rm -f core *.core &&
1188
 
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1671
  rm -f core *.core core.conftest.* &&
 
1672
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1189
1673
    exit $exit_status
1190
 
     ' 0
 
1674
' 0
1191
1675
for ac_signal in 1 2 13 15; do
1192
1676
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1193
1677
done
1194
1678
ac_signal=0
1195
1679
 
1196
1680
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1197
 
rm -rf conftest* confdefs.h
1198
 
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1199
 
echo >confdefs.h
 
1681
rm -f -r conftest* confdefs.h
1200
1682
 
1201
1683
# Predefined preprocessor variables.
1202
1684
 
1227
1709
 
1228
1710
# Let the site file select an alternate cache file if it wants to.
1229
1711
# Prefer explicitly selected file to automatically selected ones.
1230
 
if test -z "$CONFIG_SITE"; then
1231
 
  if test "x$prefix" != xNONE; then
1232
 
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1233
 
  else
1234
 
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1235
 
  fi
 
1712
if test -n "$CONFIG_SITE"; then
 
1713
  set x "$CONFIG_SITE"
 
1714
elif test "x$prefix" != xNONE; then
 
1715
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
 
1716
else
 
1717
  set x "$ac_default_prefix/share/config.site" \
 
1718
        "$ac_default_prefix/etc/config.site"
1236
1719
fi
1237
 
for ac_site_file in $CONFIG_SITE; do
 
1720
shift
 
1721
for ac_site_file
 
1722
do
1238
1723
  if test -r "$ac_site_file"; then
1239
1724
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1240
1725
echo "$as_me: loading site script $ac_site_file" >&6;}
1250
1735
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1251
1736
echo "$as_me: loading cache $cache_file" >&6;}
1252
1737
    case $cache_file in
1253
 
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1254
 
      *)                      . ./$cache_file;;
 
1738
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
1739
      *)                      . "./$cache_file";;
1255
1740
    esac
1256
1741
  fi
1257
1742
else
1260
1745
  >$cache_file
1261
1746
fi
1262
1747
 
 
1748
gt_needs="$gt_needs "
1263
1749
# Check that the precious variables saved in the cache have kept the same
1264
1750
# value.
1265
1751
ac_cache_corrupted=false
1266
 
for ac_var in `(set) 2>&1 |
1267
 
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1752
for ac_var in $ac_precious_vars; do
1268
1753
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1269
1754
  eval ac_new_set=\$ac_env_${ac_var}_set
1270
 
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1271
 
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1755
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
1756
  eval ac_new_val=\$ac_env_${ac_var}_value
1272
1757
  case $ac_old_set,$ac_new_set in
1273
1758
    set,)
1274
1759
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1293
1778
  # Pass precious variables to config.status.
1294
1779
  if test "$ac_new_set" = set; then
1295
1780
    case $ac_new_val in
1296
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1297
 
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1781
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1298
1782
    *) ac_arg=$ac_var=$ac_new_val ;;
1299
1783
    esac
1300
1784
    case " $ac_configure_args " in
1311
1795
   { (exit 1); exit 1; }; }
1312
1796
fi
1313
1797
 
 
1798
 
 
1799
 
 
1800
 
 
1801
 
 
1802
 
 
1803
 
 
1804
 
 
1805
 
 
1806
 
 
1807
 
 
1808
 
 
1809
 
 
1810
 
 
1811
 
 
1812
 
 
1813
 
 
1814
 
 
1815
 
 
1816
 
 
1817
 
 
1818
 
 
1819
 
 
1820
 
 
1821
 
1314
1822
ac_ext=c
1315
1823
ac_cpp='$CPP $CPPFLAGS'
1316
1824
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1320
1828
 
1321
1829
 
1322
1830
 
1323
 
 
1324
 
 
1325
 
 
1326
 
 
1327
 
 
1328
 
 
1329
 
 
1330
 
 
1331
 
 
1332
 
 
1333
 
 
1334
 
 
1335
 
 
1336
 
 
1337
 
 
1338
 
 
1339
 
 
1340
 
 
1341
 
 
1342
 
 
1343
 
 
1344
 
 
1345
 
 
1346
 
 
1347
 
 
1348
 
          ac_config_headers="$ac_config_headers config.h"
 
1831
ac_config_headers="$ac_config_headers config.h"
1349
1832
 
1350
1833
 
1351
1834
EXTRAOBJS=""
1360
1843
 
1361
1844
 
1362
1845
 
1363
 
# Check whether --with-libs or --without-libs was given.
 
1846
# Check whether --with-libs was given.
1364
1847
if test "${with_libs+set}" = set; then
1365
 
  withval="$with_libs"
1366
 
  case $with_libs in
 
1848
  withval=$with_libs; case $with_libs in
1367
1849
yes|no) { { echo "$as_me:$LINENO: error: --with-libs must be passed a directory argument" >&5
1368
1850
echo "$as_me: error: --with-libs must be passed a directory argument" >&2;}
1369
1851
   { (exit 1); exit 1; }; } ;;
1372
1854
     ne_add_CPPFLAGS="$ne_add_CPPFLAGS -I${dir}/include"
1373
1855
     ne_add_LDFLAGS="$ne_add_LDFLAGS -L${dir}/lib"
1374
1856
     ne_add_PATH="${ne_add_PATH}${dir}/bin:"
 
1857
     PKG_CONFIG_PATH=${PKG_CONFIG_PATH}${PKG_CONFIG_PATH+:}${dir}/lib/pkgconfig
1375
1858
   done
1376
1859
   IFS=$ne_save_IFS
1377
1860
   CPPFLAGS="${ne_add_CPPFLAGS} $CPPFLAGS"
1378
1861
   LDFLAGS="${ne_add_LDFLAGS} $LDFLAGS"
1379
 
   PATH=${ne_add_PATH}$PATH ;;
 
1862
   PATH=${ne_add_PATH}$PATH
 
1863
   export PKG_CONFIG_PATH ;;
1380
1864
esac
1381
 
fi;
1382
 
 
1383
 
 
1384
 
# Check whether --enable-ftp or --disable-ftp was given.
 
1865
fi
 
1866
 
 
1867
 
 
1868
 
 
1869
# Check whether --enable-ftp was given.
1385
1870
if test "${enable_ftp+set}" = set; then
1386
 
  enableval="$enable_ftp"
1387
 
 
 
1871
  enableval=$enable_ftp;
1388
1872
else
1389
1873
  enable_ftp=yes
1390
 
fi;
1391
 
# Check whether --enable-webdav or --disable-webdav was given.
 
1874
fi
 
1875
 
 
1876
# Check whether --enable-webdav was given.
1392
1877
if test "${enable_webdav+set}" = set; then
1393
 
  enableval="$enable_webdav"
1394
 
 
 
1878
  enableval=$enable_webdav;
1395
1879
else
1396
1880
  enable_webdav=yes
1397
 
fi;
1398
 
# Check whether --enable-rsh or --disable-rsh was given.
 
1881
fi
 
1882
 
 
1883
# Check whether --enable-rsh was given.
1399
1884
if test "${enable_rsh+set}" = set; then
1400
 
  enableval="$enable_rsh"
1401
 
 
 
1885
  enableval=$enable_rsh;
1402
1886
else
1403
1887
  enable_rsh=yes
1404
 
fi;
1405
 
# Check whether --enable-gnomefe or --disable-gnomefe was given.
 
1888
fi
 
1889
 
 
1890
# Check whether --enable-gnomefe was given.
1406
1891
if test "${enable_gnomefe+set}" = set; then
1407
 
  enableval="$enable_gnomefe"
 
1892
  enableval=$enable_gnomefe;
 
1893
fi
1408
1894
 
1409
 
fi;
1410
1895
 
1411
1896
 
1412
1897
ac_ext=c
1417
1902
if test -n "$ac_tool_prefix"; then
1418
1903
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1419
1904
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1420
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1421
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1905
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1906
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1422
1907
if test "${ac_cv_prog_CC+set}" = set; then
1423
1908
  echo $ECHO_N "(cached) $ECHO_C" >&6
1424
1909
else
1431
1916
  IFS=$as_save_IFS
1432
1917
  test -z "$as_dir" && as_dir=.
1433
1918
  for ac_exec_ext in '' $ac_executable_extensions; do
1434
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1919
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1435
1920
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1436
1921
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1437
1922
    break 2
1438
1923
  fi
1439
1924
done
1440
1925
done
 
1926
IFS=$as_save_IFS
1441
1927
 
1442
1928
fi
1443
1929
fi
1444
1930
CC=$ac_cv_prog_CC
1445
1931
if test -n "$CC"; then
1446
 
  echo "$as_me:$LINENO: result: $CC" >&5
1447
 
echo "${ECHO_T}$CC" >&6
 
1932
  { echo "$as_me:$LINENO: result: $CC" >&5
 
1933
echo "${ECHO_T}$CC" >&6; }
1448
1934
else
1449
 
  echo "$as_me:$LINENO: result: no" >&5
1450
 
echo "${ECHO_T}no" >&6
 
1935
  { echo "$as_me:$LINENO: result: no" >&5
 
1936
echo "${ECHO_T}no" >&6; }
1451
1937
fi
 
1938
 
1452
1939
 
1453
1940
fi
1454
1941
if test -z "$ac_cv_prog_CC"; then
1455
1942
  ac_ct_CC=$CC
1456
1943
  # Extract the first word of "gcc", so it can be a program name with args.
1457
1944
set dummy gcc; ac_word=$2
1458
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1459
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1945
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1946
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1460
1947
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1461
1948
  echo $ECHO_N "(cached) $ECHO_C" >&6
1462
1949
else
1469
1956
  IFS=$as_save_IFS
1470
1957
  test -z "$as_dir" && as_dir=.
1471
1958
  for ac_exec_ext in '' $ac_executable_extensions; do
1472
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1959
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1473
1960
    ac_cv_prog_ac_ct_CC="gcc"
1474
1961
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1475
1962
    break 2
1476
1963
  fi
1477
1964
done
1478
1965
done
 
1966
IFS=$as_save_IFS
1479
1967
 
1480
1968
fi
1481
1969
fi
1482
1970
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1483
1971
if test -n "$ac_ct_CC"; then
1484
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1485
 
echo "${ECHO_T}$ac_ct_CC" >&6
 
1972
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1973
echo "${ECHO_T}$ac_ct_CC" >&6; }
1486
1974
else
1487
 
  echo "$as_me:$LINENO: result: no" >&5
1488
 
echo "${ECHO_T}no" >&6
 
1975
  { echo "$as_me:$LINENO: result: no" >&5
 
1976
echo "${ECHO_T}no" >&6; }
1489
1977
fi
1490
1978
 
1491
 
  CC=$ac_ct_CC
 
1979
  if test "x$ac_ct_CC" = x; then
 
1980
    CC=""
 
1981
  else
 
1982
    case $cross_compiling:$ac_tool_warned in
 
1983
yes:)
 
1984
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
1985
whose name does not start with the host triplet.  If you think this
 
1986
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
1987
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
1988
whose name does not start with the host triplet.  If you think this
 
1989
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
1990
ac_tool_warned=yes ;;
 
1991
esac
 
1992
    CC=$ac_ct_CC
 
1993
  fi
1492
1994
else
1493
1995
  CC="$ac_cv_prog_CC"
1494
1996
fi
1495
1997
 
1496
1998
if test -z "$CC"; then
1497
 
  if test -n "$ac_tool_prefix"; then
1498
 
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
1999
          if test -n "$ac_tool_prefix"; then
 
2000
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1499
2001
set dummy ${ac_tool_prefix}cc; ac_word=$2
1500
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1501
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2002
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2003
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1502
2004
if test "${ac_cv_prog_CC+set}" = set; then
1503
2005
  echo $ECHO_N "(cached) $ECHO_C" >&6
1504
2006
else
1511
2013
  IFS=$as_save_IFS
1512
2014
  test -z "$as_dir" && as_dir=.
1513
2015
  for ac_exec_ext in '' $ac_executable_extensions; do
1514
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2016
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1515
2017
    ac_cv_prog_CC="${ac_tool_prefix}cc"
1516
2018
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1517
2019
    break 2
1518
2020
  fi
1519
2021
done
1520
2022
done
 
2023
IFS=$as_save_IFS
1521
2024
 
1522
2025
fi
1523
2026
fi
1524
2027
CC=$ac_cv_prog_CC
1525
2028
if test -n "$CC"; then
1526
 
  echo "$as_me:$LINENO: result: $CC" >&5
1527
 
echo "${ECHO_T}$CC" >&6
1528
 
else
1529
 
  echo "$as_me:$LINENO: result: no" >&5
1530
 
echo "${ECHO_T}no" >&6
1531
 
fi
1532
 
 
1533
 
fi
1534
 
if test -z "$ac_cv_prog_CC"; then
1535
 
  ac_ct_CC=$CC
1536
 
  # Extract the first word of "cc", so it can be a program name with args.
1537
 
set dummy cc; ac_word=$2
1538
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1539
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1540
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1541
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1542
 
else
1543
 
  if test -n "$ac_ct_CC"; then
1544
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1545
 
else
1546
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1547
 
for as_dir in $PATH
1548
 
do
1549
 
  IFS=$as_save_IFS
1550
 
  test -z "$as_dir" && as_dir=.
1551
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1552
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1553
 
    ac_cv_prog_ac_ct_CC="cc"
1554
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1555
 
    break 2
 
2029
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2030
echo "${ECHO_T}$CC" >&6; }
 
2031
else
 
2032
  { echo "$as_me:$LINENO: result: no" >&5
 
2033
echo "${ECHO_T}no" >&6; }
 
2034
fi
 
2035
 
 
2036
 
1556
2037
  fi
1557
 
done
1558
 
done
1559
 
 
1560
 
fi
1561
 
fi
1562
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1563
 
if test -n "$ac_ct_CC"; then
1564
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1565
 
echo "${ECHO_T}$ac_ct_CC" >&6
1566
 
else
1567
 
  echo "$as_me:$LINENO: result: no" >&5
1568
 
echo "${ECHO_T}no" >&6
1569
 
fi
1570
 
 
1571
 
  CC=$ac_ct_CC
1572
 
else
1573
 
  CC="$ac_cv_prog_CC"
1574
 
fi
1575
 
 
1576
2038
fi
1577
2039
if test -z "$CC"; then
1578
2040
  # Extract the first word of "cc", so it can be a program name with args.
1579
2041
set dummy cc; ac_word=$2
1580
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1581
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2042
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2043
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1582
2044
if test "${ac_cv_prog_CC+set}" = set; then
1583
2045
  echo $ECHO_N "(cached) $ECHO_C" >&6
1584
2046
else
1592
2054
  IFS=$as_save_IFS
1593
2055
  test -z "$as_dir" && as_dir=.
1594
2056
  for ac_exec_ext in '' $ac_executable_extensions; do
1595
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2057
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1596
2058
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1597
2059
       ac_prog_rejected=yes
1598
2060
       continue
1603
2065
  fi
1604
2066
done
1605
2067
done
 
2068
IFS=$as_save_IFS
1606
2069
 
1607
2070
if test $ac_prog_rejected = yes; then
1608
2071
  # We found a bogon in the path, so make sure we never use it.
1620
2083
fi
1621
2084
CC=$ac_cv_prog_CC
1622
2085
if test -n "$CC"; then
1623
 
  echo "$as_me:$LINENO: result: $CC" >&5
1624
 
echo "${ECHO_T}$CC" >&6
 
2086
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2087
echo "${ECHO_T}$CC" >&6; }
1625
2088
else
1626
 
  echo "$as_me:$LINENO: result: no" >&5
1627
 
echo "${ECHO_T}no" >&6
 
2089
  { echo "$as_me:$LINENO: result: no" >&5
 
2090
echo "${ECHO_T}no" >&6; }
1628
2091
fi
 
2092
 
1629
2093
 
1630
2094
fi
1631
2095
if test -z "$CC"; then
1632
2096
  if test -n "$ac_tool_prefix"; then
1633
 
  for ac_prog in cl
 
2097
  for ac_prog in cl.exe
1634
2098
  do
1635
2099
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1636
2100
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1637
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1638
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2101
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2102
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1639
2103
if test "${ac_cv_prog_CC+set}" = set; then
1640
2104
  echo $ECHO_N "(cached) $ECHO_C" >&6
1641
2105
else
1648
2112
  IFS=$as_save_IFS
1649
2113
  test -z "$as_dir" && as_dir=.
1650
2114
  for ac_exec_ext in '' $ac_executable_extensions; do
1651
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2115
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1652
2116
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1653
2117
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1654
2118
    break 2
1655
2119
  fi
1656
2120
done
1657
2121
done
 
2122
IFS=$as_save_IFS
1658
2123
 
1659
2124
fi
1660
2125
fi
1661
2126
CC=$ac_cv_prog_CC
1662
2127
if test -n "$CC"; then
1663
 
  echo "$as_me:$LINENO: result: $CC" >&5
1664
 
echo "${ECHO_T}$CC" >&6
 
2128
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2129
echo "${ECHO_T}$CC" >&6; }
1665
2130
else
1666
 
  echo "$as_me:$LINENO: result: no" >&5
1667
 
echo "${ECHO_T}no" >&6
 
2131
  { echo "$as_me:$LINENO: result: no" >&5
 
2132
echo "${ECHO_T}no" >&6; }
1668
2133
fi
1669
2134
 
 
2135
 
1670
2136
    test -n "$CC" && break
1671
2137
  done
1672
2138
fi
1673
2139
if test -z "$CC"; then
1674
2140
  ac_ct_CC=$CC
1675
 
  for ac_prog in cl
 
2141
  for ac_prog in cl.exe
1676
2142
do
1677
2143
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1678
2144
set dummy $ac_prog; ac_word=$2
1679
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1680
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2145
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2146
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1681
2147
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1682
2148
  echo $ECHO_N "(cached) $ECHO_C" >&6
1683
2149
else
1690
2156
  IFS=$as_save_IFS
1691
2157
  test -z "$as_dir" && as_dir=.
1692
2158
  for ac_exec_ext in '' $ac_executable_extensions; do
1693
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2159
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1694
2160
    ac_cv_prog_ac_ct_CC="$ac_prog"
1695
2161
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1696
2162
    break 2
1697
2163
  fi
1698
2164
done
1699
2165
done
 
2166
IFS=$as_save_IFS
1700
2167
 
1701
2168
fi
1702
2169
fi
1703
2170
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1704
2171
if test -n "$ac_ct_CC"; then
1705
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1706
 
echo "${ECHO_T}$ac_ct_CC" >&6
 
2172
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2173
echo "${ECHO_T}$ac_ct_CC" >&6; }
1707
2174
else
1708
 
  echo "$as_me:$LINENO: result: no" >&5
1709
 
echo "${ECHO_T}no" >&6
 
2175
  { echo "$as_me:$LINENO: result: no" >&5
 
2176
echo "${ECHO_T}no" >&6; }
1710
2177
fi
1711
2178
 
 
2179
 
1712
2180
  test -n "$ac_ct_CC" && break
1713
2181
done
1714
2182
 
1715
 
  CC=$ac_ct_CC
 
2183
  if test "x$ac_ct_CC" = x; then
 
2184
    CC=""
 
2185
  else
 
2186
    case $cross_compiling:$ac_tool_warned in
 
2187
yes:)
 
2188
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2189
whose name does not start with the host triplet.  If you think this
 
2190
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2191
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2192
whose name does not start with the host triplet.  If you think this
 
2193
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2194
ac_tool_warned=yes ;;
 
2195
esac
 
2196
    CC=$ac_ct_CC
 
2197
  fi
1716
2198
fi
1717
2199
 
1718
2200
fi
1725
2207
   { (exit 1); exit 1; }; }
1726
2208
 
1727
2209
# Provide some information about the compiler.
1728
 
echo "$as_me:$LINENO:" \
1729
 
     "checking for C compiler version" >&5
 
2210
echo "$as_me:$LINENO: checking for C compiler version" >&5
1730
2211
ac_compiler=`set X $ac_compile; echo $2`
1731
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1732
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
1733
 
  ac_status=$?
1734
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1735
 
  (exit $ac_status); }
1736
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1737
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
1738
 
  ac_status=$?
1739
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1740
 
  (exit $ac_status); }
1741
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1742
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2212
{ (ac_try="$ac_compiler --version >&5"
 
2213
case "(($ac_try" in
 
2214
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2215
  *) ac_try_echo=$ac_try;;
 
2216
esac
 
2217
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2218
  (eval "$ac_compiler --version >&5") 2>&5
 
2219
  ac_status=$?
 
2220
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2221
  (exit $ac_status); }
 
2222
{ (ac_try="$ac_compiler -v >&5"
 
2223
case "(($ac_try" in
 
2224
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2225
  *) ac_try_echo=$ac_try;;
 
2226
esac
 
2227
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2228
  (eval "$ac_compiler -v >&5") 2>&5
 
2229
  ac_status=$?
 
2230
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2231
  (exit $ac_status); }
 
2232
{ (ac_try="$ac_compiler -V >&5"
 
2233
case "(($ac_try" in
 
2234
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2235
  *) ac_try_echo=$ac_try;;
 
2236
esac
 
2237
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2238
  (eval "$ac_compiler -V >&5") 2>&5
1743
2239
  ac_status=$?
1744
2240
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1745
2241
  (exit $ac_status); }
1764
2260
# Try to create an executable without -o first, disregard a.out.
1765
2261
# It will help us diagnose broken compilers, and finding out an intuition
1766
2262
# of exeext.
1767
 
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1768
 
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
2263
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2264
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
1769
2265
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1770
 
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1771
 
  (eval $ac_link_default) 2>&5
 
2266
#
 
2267
# List of possible output files, starting from the most likely.
 
2268
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
 
2269
# only as a last resort.  b.out is created by i960 compilers.
 
2270
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
 
2271
#
 
2272
# The IRIX 6 linker writes into existing files which may not be
 
2273
# executable, retaining their permissions.  Remove them first so a
 
2274
# subsequent execution test works.
 
2275
ac_rmfiles=
 
2276
for ac_file in $ac_files
 
2277
do
 
2278
  case $ac_file in
 
2279
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
2280
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
2281
  esac
 
2282
done
 
2283
rm -f $ac_rmfiles
 
2284
 
 
2285
if { (ac_try="$ac_link_default"
 
2286
case "(($ac_try" in
 
2287
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2288
  *) ac_try_echo=$ac_try;;
 
2289
esac
 
2290
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2291
  (eval "$ac_link_default") 2>&5
1772
2292
  ac_status=$?
1773
2293
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1774
2294
  (exit $ac_status); }; then
1775
 
  # Find the output, starting from the most likely.  This scheme is
1776
 
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1777
 
# resort.
1778
 
 
1779
 
# Be careful to initialize this variable, since it used to be cached.
1780
 
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1781
 
ac_cv_exeext=
1782
 
# b.out is created by i960 compilers.
1783
 
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2295
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
2296
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
2297
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
2298
# so that the user can short-circuit this test for compilers unknown to
 
2299
# Autoconf.
 
2300
for ac_file in $ac_files ''
1784
2301
do
1785
2302
  test -f "$ac_file" || continue
1786
2303
  case $ac_file in
1787
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1788
 
        ;;
1789
 
    conftest.$ac_ext )
1790
 
        # This is the source file.
 
2304
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
1791
2305
        ;;
1792
2306
    [ab].out )
1793
2307
        # We found the default executable, but exeext='' is most
1794
2308
        # certainly right.
1795
2309
        break;;
1796
2310
    *.* )
1797
 
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1798
 
        # FIXME: I believe we export ac_cv_exeext for Libtool,
1799
 
        # but it would be cool to find out if it's true.  Does anybody
1800
 
        # maintain Libtool? --akim.
1801
 
        export ac_cv_exeext
 
2311
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
2312
        then :; else
 
2313
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2314
        fi
 
2315
        # We set ac_cv_exeext here because the later test for it is not
 
2316
        # safe: cross compilers may not add the suffix if given an `-o'
 
2317
        # argument, so we may need to know it at that point already.
 
2318
        # Even if this section looks crufty: it has the advantage of
 
2319
        # actually working.
1802
2320
        break;;
1803
2321
    * )
1804
2322
        break;;
1805
2323
  esac
1806
2324
done
 
2325
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
2326
 
1807
2327
else
 
2328
  ac_file=''
 
2329
fi
 
2330
 
 
2331
{ echo "$as_me:$LINENO: result: $ac_file" >&5
 
2332
echo "${ECHO_T}$ac_file" >&6; }
 
2333
if test -z "$ac_file"; then
1808
2334
  echo "$as_me: failed program was:" >&5
1809
2335
sed 's/^/| /' conftest.$ac_ext >&5
1810
2336
 
1816
2342
fi
1817
2343
 
1818
2344
ac_exeext=$ac_cv_exeext
1819
 
echo "$as_me:$LINENO: result: $ac_file" >&5
1820
 
echo "${ECHO_T}$ac_file" >&6
1821
2345
 
1822
 
# Check the compiler produces executables we can run.  If not, either
 
2346
# Check that the compiler produces executables we can run.  If not, either
1823
2347
# the compiler is broken, or we cross compile.
1824
 
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1825
 
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
2348
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2349
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
1826
2350
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1827
2351
# If not cross compiling, check that we can run a simple program.
1828
2352
if test "$cross_compiling" != yes; then
1829
2353
  if { ac_try='./$ac_file'
1830
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1831
 
  (eval $ac_try) 2>&5
 
2354
  { (case "(($ac_try" in
 
2355
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2356
  *) ac_try_echo=$ac_try;;
 
2357
esac
 
2358
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2359
  (eval "$ac_try") 2>&5
1832
2360
  ac_status=$?
1833
2361
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1834
2362
  (exit $ac_status); }; }; then
1847
2375
    fi
1848
2376
  fi
1849
2377
fi
1850
 
echo "$as_me:$LINENO: result: yes" >&5
1851
 
echo "${ECHO_T}yes" >&6
 
2378
{ echo "$as_me:$LINENO: result: yes" >&5
 
2379
echo "${ECHO_T}yes" >&6; }
1852
2380
 
1853
2381
rm -f a.out a.exe conftest$ac_cv_exeext b.out
1854
2382
ac_clean_files=$ac_clean_files_save
1855
 
# Check the compiler produces executables we can run.  If not, either
 
2383
# Check that the compiler produces executables we can run.  If not, either
1856
2384
# the compiler is broken, or we cross compile.
1857
 
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1858
 
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1859
 
echo "$as_me:$LINENO: result: $cross_compiling" >&5
1860
 
echo "${ECHO_T}$cross_compiling" >&6
 
2385
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2386
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
 
2387
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2388
echo "${ECHO_T}$cross_compiling" >&6; }
1861
2389
 
1862
 
echo "$as_me:$LINENO: checking for suffix of executables" >&5
1863
 
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1864
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1865
 
  (eval $ac_link) 2>&5
 
2390
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2391
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
 
2392
if { (ac_try="$ac_link"
 
2393
case "(($ac_try" in
 
2394
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2395
  *) ac_try_echo=$ac_try;;
 
2396
esac
 
2397
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2398
  (eval "$ac_link") 2>&5
1866
2399
  ac_status=$?
1867
2400
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1868
2401
  (exit $ac_status); }; then
1873
2406
for ac_file in conftest.exe conftest conftest.*; do
1874
2407
  test -f "$ac_file" || continue
1875
2408
  case $ac_file in
1876
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2409
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1877
2410
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1878
 
          export ac_cv_exeext
1879
2411
          break;;
1880
2412
    * ) break;;
1881
2413
  esac
1889
2421
fi
1890
2422
 
1891
2423
rm -f conftest$ac_cv_exeext
1892
 
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1893
 
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2424
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2425
echo "${ECHO_T}$ac_cv_exeext" >&6; }
1894
2426
 
1895
2427
rm -f conftest.$ac_ext
1896
2428
EXEEXT=$ac_cv_exeext
1897
2429
ac_exeext=$EXEEXT
1898
 
echo "$as_me:$LINENO: checking for suffix of object files" >&5
1899
 
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2430
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2431
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
1900
2432
if test "${ac_cv_objext+set}" = set; then
1901
2433
  echo $ECHO_N "(cached) $ECHO_C" >&6
1902
2434
else
1916
2448
}
1917
2449
_ACEOF
1918
2450
rm -f conftest.o conftest.obj
1919
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1920
 
  (eval $ac_compile) 2>&5
 
2451
if { (ac_try="$ac_compile"
 
2452
case "(($ac_try" in
 
2453
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2454
  *) ac_try_echo=$ac_try;;
 
2455
esac
 
2456
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2457
  (eval "$ac_compile") 2>&5
1921
2458
  ac_status=$?
1922
2459
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1923
2460
  (exit $ac_status); }; then
1924
 
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2461
  for ac_file in conftest.o conftest.obj conftest.*; do
 
2462
  test -f "$ac_file" || continue;
1925
2463
  case $ac_file in
1926
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2464
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
1927
2465
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1928
2466
       break;;
1929
2467
  esac
1941
2479
 
1942
2480
rm -f conftest.$ac_cv_objext conftest.$ac_ext
1943
2481
fi
1944
 
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1945
 
echo "${ECHO_T}$ac_cv_objext" >&6
 
2482
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2483
echo "${ECHO_T}$ac_cv_objext" >&6; }
1946
2484
OBJEXT=$ac_cv_objext
1947
2485
ac_objext=$OBJEXT
1948
 
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1949
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2486
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2487
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
1950
2488
if test "${ac_cv_c_compiler_gnu+set}" = set; then
1951
2489
  echo $ECHO_N "(cached) $ECHO_C" >&6
1952
2490
else
1969
2507
}
1970
2508
_ACEOF
1971
2509
rm -f conftest.$ac_objext
1972
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1973
 
  (eval $ac_compile) 2>conftest.er1
 
2510
if { (ac_try="$ac_compile"
 
2511
case "(($ac_try" in
 
2512
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2513
  *) ac_try_echo=$ac_try;;
 
2514
esac
 
2515
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2516
  (eval "$ac_compile") 2>conftest.er1
1974
2517
  ac_status=$?
1975
2518
  grep -v '^ *+' conftest.er1 >conftest.err
1976
2519
  rm -f conftest.er1
1977
2520
  cat conftest.err >&5
1978
2521
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979
 
  (exit $ac_status); } &&
1980
 
         { ac_try='test -z "$ac_c_werror_flag"
1981
 
                         || test ! -s conftest.err'
1982
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1983
 
  (eval $ac_try) 2>&5
1984
 
  ac_status=$?
1985
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1986
 
  (exit $ac_status); }; } &&
1987
 
         { ac_try='test -s conftest.$ac_objext'
1988
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1989
 
  (eval $ac_try) 2>&5
1990
 
  ac_status=$?
1991
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1992
 
  (exit $ac_status); }; }; then
 
2522
  (exit $ac_status); } && {
 
2523
         test -z "$ac_c_werror_flag" ||
 
2524
         test ! -s conftest.err
 
2525
       } && test -s conftest.$ac_objext; then
1993
2526
  ac_compiler_gnu=yes
1994
2527
else
1995
2528
  echo "$as_me: failed program was:" >&5
1996
2529
sed 's/^/| /' conftest.$ac_ext >&5
1997
2530
 
1998
 
ac_compiler_gnu=no
 
2531
        ac_compiler_gnu=no
1999
2532
fi
2000
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2533
 
 
2534
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001
2535
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2002
2536
 
2003
2537
fi
2004
 
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2005
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2538
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2539
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2006
2540
GCC=`test $ac_compiler_gnu = yes && echo yes`
2007
2541
ac_test_CFLAGS=${CFLAGS+set}
2008
2542
ac_save_CFLAGS=$CFLAGS
2009
 
CFLAGS="-g"
2010
 
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2011
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2543
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2544
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2012
2545
if test "${ac_cv_prog_cc_g+set}" = set; then
2013
2546
  echo $ECHO_N "(cached) $ECHO_C" >&6
2014
2547
else
2015
 
  cat >conftest.$ac_ext <<_ACEOF
2016
 
/* confdefs.h.  */
2017
 
_ACEOF
2018
 
cat confdefs.h >>conftest.$ac_ext
2019
 
cat >>conftest.$ac_ext <<_ACEOF
2020
 
/* end confdefs.h.  */
2021
 
 
2022
 
int
2023
 
main ()
2024
 
{
2025
 
 
2026
 
  ;
2027
 
  return 0;
2028
 
}
2029
 
_ACEOF
2030
 
rm -f conftest.$ac_objext
2031
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2032
 
  (eval $ac_compile) 2>conftest.er1
2033
 
  ac_status=$?
2034
 
  grep -v '^ *+' conftest.er1 >conftest.err
2035
 
  rm -f conftest.er1
2036
 
  cat conftest.err >&5
2037
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038
 
  (exit $ac_status); } &&
2039
 
         { ac_try='test -z "$ac_c_werror_flag"
2040
 
                         || test ! -s conftest.err'
2041
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2042
 
  (eval $ac_try) 2>&5
2043
 
  ac_status=$?
2044
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045
 
  (exit $ac_status); }; } &&
2046
 
         { ac_try='test -s conftest.$ac_objext'
2047
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2048
 
  (eval $ac_try) 2>&5
2049
 
  ac_status=$?
2050
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051
 
  (exit $ac_status); }; }; then
2052
 
  ac_cv_prog_cc_g=yes
2053
 
else
2054
 
  echo "$as_me: failed program was:" >&5
2055
 
sed 's/^/| /' conftest.$ac_ext >&5
2056
 
 
2057
 
ac_cv_prog_cc_g=no
2058
 
fi
2059
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2060
 
fi
2061
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2062
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
2548
  ac_save_c_werror_flag=$ac_c_werror_flag
 
2549
   ac_c_werror_flag=yes
 
2550
   ac_cv_prog_cc_g=no
 
2551
   CFLAGS="-g"
 
2552
   cat >conftest.$ac_ext <<_ACEOF
 
2553
/* confdefs.h.  */
 
2554
_ACEOF
 
2555
cat confdefs.h >>conftest.$ac_ext
 
2556
cat >>conftest.$ac_ext <<_ACEOF
 
2557
/* end confdefs.h.  */
 
2558
 
 
2559
int
 
2560
main ()
 
2561
{
 
2562
 
 
2563
  ;
 
2564
  return 0;
 
2565
}
 
2566
_ACEOF
 
2567
rm -f conftest.$ac_objext
 
2568
if { (ac_try="$ac_compile"
 
2569
case "(($ac_try" in
 
2570
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2571
  *) ac_try_echo=$ac_try;;
 
2572
esac
 
2573
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2574
  (eval "$ac_compile") 2>conftest.er1
 
2575
  ac_status=$?
 
2576
  grep -v '^ *+' conftest.er1 >conftest.err
 
2577
  rm -f conftest.er1
 
2578
  cat conftest.err >&5
 
2579
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2580
  (exit $ac_status); } && {
 
2581
         test -z "$ac_c_werror_flag" ||
 
2582
         test ! -s conftest.err
 
2583
       } && test -s conftest.$ac_objext; then
 
2584
  ac_cv_prog_cc_g=yes
 
2585
else
 
2586
  echo "$as_me: failed program was:" >&5
 
2587
sed 's/^/| /' conftest.$ac_ext >&5
 
2588
 
 
2589
        CFLAGS=""
 
2590
      cat >conftest.$ac_ext <<_ACEOF
 
2591
/* confdefs.h.  */
 
2592
_ACEOF
 
2593
cat confdefs.h >>conftest.$ac_ext
 
2594
cat >>conftest.$ac_ext <<_ACEOF
 
2595
/* end confdefs.h.  */
 
2596
 
 
2597
int
 
2598
main ()
 
2599
{
 
2600
 
 
2601
  ;
 
2602
  return 0;
 
2603
}
 
2604
_ACEOF
 
2605
rm -f conftest.$ac_objext
 
2606
if { (ac_try="$ac_compile"
 
2607
case "(($ac_try" in
 
2608
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2609
  *) ac_try_echo=$ac_try;;
 
2610
esac
 
2611
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2612
  (eval "$ac_compile") 2>conftest.er1
 
2613
  ac_status=$?
 
2614
  grep -v '^ *+' conftest.er1 >conftest.err
 
2615
  rm -f conftest.er1
 
2616
  cat conftest.err >&5
 
2617
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2618
  (exit $ac_status); } && {
 
2619
         test -z "$ac_c_werror_flag" ||
 
2620
         test ! -s conftest.err
 
2621
       } && test -s conftest.$ac_objext; then
 
2622
  :
 
2623
else
 
2624
  echo "$as_me: failed program was:" >&5
 
2625
sed 's/^/| /' conftest.$ac_ext >&5
 
2626
 
 
2627
        ac_c_werror_flag=$ac_save_c_werror_flag
 
2628
         CFLAGS="-g"
 
2629
         cat >conftest.$ac_ext <<_ACEOF
 
2630
/* confdefs.h.  */
 
2631
_ACEOF
 
2632
cat confdefs.h >>conftest.$ac_ext
 
2633
cat >>conftest.$ac_ext <<_ACEOF
 
2634
/* end confdefs.h.  */
 
2635
 
 
2636
int
 
2637
main ()
 
2638
{
 
2639
 
 
2640
  ;
 
2641
  return 0;
 
2642
}
 
2643
_ACEOF
 
2644
rm -f conftest.$ac_objext
 
2645
if { (ac_try="$ac_compile"
 
2646
case "(($ac_try" in
 
2647
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2648
  *) ac_try_echo=$ac_try;;
 
2649
esac
 
2650
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2651
  (eval "$ac_compile") 2>conftest.er1
 
2652
  ac_status=$?
 
2653
  grep -v '^ *+' conftest.er1 >conftest.err
 
2654
  rm -f conftest.er1
 
2655
  cat conftest.err >&5
 
2656
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2657
  (exit $ac_status); } && {
 
2658
         test -z "$ac_c_werror_flag" ||
 
2659
         test ! -s conftest.err
 
2660
       } && test -s conftest.$ac_objext; then
 
2661
  ac_cv_prog_cc_g=yes
 
2662
else
 
2663
  echo "$as_me: failed program was:" >&5
 
2664
sed 's/^/| /' conftest.$ac_ext >&5
 
2665
 
 
2666
 
 
2667
fi
 
2668
 
 
2669
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2670
fi
 
2671
 
 
2672
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2673
fi
 
2674
 
 
2675
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2676
   ac_c_werror_flag=$ac_save_c_werror_flag
 
2677
fi
 
2678
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2679
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2063
2680
if test "$ac_test_CFLAGS" = set; then
2064
2681
  CFLAGS=$ac_save_CFLAGS
2065
2682
elif test $ac_cv_prog_cc_g = yes; then
2075
2692
    CFLAGS=
2076
2693
  fi
2077
2694
fi
2078
 
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2079
 
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2080
 
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2695
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
2696
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
 
2697
if test "${ac_cv_prog_cc_c89+set}" = set; then
2081
2698
  echo $ECHO_N "(cached) $ECHO_C" >&6
2082
2699
else
2083
 
  ac_cv_prog_cc_stdc=no
 
2700
  ac_cv_prog_cc_c89=no
2084
2701
ac_save_CC=$CC
2085
2702
cat >conftest.$ac_ext <<_ACEOF
2086
2703
/* confdefs.h.  */
2114
2731
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2115
2732
   function prototypes and stuff, but not '\xHH' hex character constants.
2116
2733
   These don't provoke an error unfortunately, instead are silently treated
2117
 
   as 'x'.  The following induces an error, until -std1 is added to get
 
2734
   as 'x'.  The following induces an error, until -std is added to get
2118
2735
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2119
2736
   array size at least.  It's necessary to write '\x00'==0 to get something
2120
 
   that's true only with -std1.  */
 
2737
   that's true only with -std.  */
2121
2738
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2122
2739
 
 
2740
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
2741
   inside strings and character constants.  */
 
2742
#define FOO(x) 'x'
 
2743
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
2744
 
2123
2745
int test (int i, double x);
2124
2746
struct s1 {int (*f) (int a);};
2125
2747
struct s2 {int (*f) (double a);};
2134
2756
  return 0;
2135
2757
}
2136
2758
_ACEOF
2137
 
# Don't try gcc -ansi; that turns off useful extensions and
2138
 
# breaks some systems' header files.
2139
 
# AIX                   -qlanglvl=ansi
2140
 
# Ultrix and OSF/1      -std1
2141
 
# HP-UX 10.20 and later -Ae
2142
 
# HP-UX older versions  -Aa -D_HPUX_SOURCE
2143
 
# SVR4                  -Xc -D__EXTENSIONS__
2144
 
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2759
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
2760
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2145
2761
do
2146
2762
  CC="$ac_save_CC $ac_arg"
2147
2763
  rm -f conftest.$ac_objext
2148
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2149
 
  (eval $ac_compile) 2>conftest.er1
 
2764
if { (ac_try="$ac_compile"
 
2765
case "(($ac_try" in
 
2766
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2767
  *) ac_try_echo=$ac_try;;
 
2768
esac
 
2769
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2770
  (eval "$ac_compile") 2>conftest.er1
2150
2771
  ac_status=$?
2151
2772
  grep -v '^ *+' conftest.er1 >conftest.err
2152
2773
  rm -f conftest.er1
2153
2774
  cat conftest.err >&5
2154
2775
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155
 
  (exit $ac_status); } &&
2156
 
         { ac_try='test -z "$ac_c_werror_flag"
2157
 
                         || test ! -s conftest.err'
2158
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2159
 
  (eval $ac_try) 2>&5
2160
 
  ac_status=$?
2161
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162
 
  (exit $ac_status); }; } &&
2163
 
         { ac_try='test -s conftest.$ac_objext'
2164
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2165
 
  (eval $ac_try) 2>&5
2166
 
  ac_status=$?
2167
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168
 
  (exit $ac_status); }; }; then
2169
 
  ac_cv_prog_cc_stdc=$ac_arg
2170
 
break
 
2776
  (exit $ac_status); } && {
 
2777
         test -z "$ac_c_werror_flag" ||
 
2778
         test ! -s conftest.err
 
2779
       } && test -s conftest.$ac_objext; then
 
2780
  ac_cv_prog_cc_c89=$ac_arg
2171
2781
else
2172
2782
  echo "$as_me: failed program was:" >&5
2173
2783
sed 's/^/| /' conftest.$ac_ext >&5
2174
2784
 
 
2785
 
2175
2786
fi
2176
 
rm -f conftest.err conftest.$ac_objext
 
2787
 
 
2788
rm -f core conftest.err conftest.$ac_objext
 
2789
  test "x$ac_cv_prog_cc_c89" != "xno" && break
2177
2790
done
2178
 
rm -f conftest.$ac_ext conftest.$ac_objext
 
2791
rm -f conftest.$ac_ext
2179
2792
CC=$ac_save_CC
2180
2793
 
2181
2794
fi
2182
 
 
2183
 
case "x$ac_cv_prog_cc_stdc" in
2184
 
  x|xno)
2185
 
    echo "$as_me:$LINENO: result: none needed" >&5
2186
 
echo "${ECHO_T}none needed" >&6 ;;
 
2795
# AC_CACHE_VAL
 
2796
case "x$ac_cv_prog_cc_c89" in
 
2797
  x)
 
2798
    { echo "$as_me:$LINENO: result: none needed" >&5
 
2799
echo "${ECHO_T}none needed" >&6; } ;;
 
2800
  xno)
 
2801
    { echo "$as_me:$LINENO: result: unsupported" >&5
 
2802
echo "${ECHO_T}unsupported" >&6; } ;;
2187
2803
  *)
2188
 
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2189
 
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2190
 
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2804
    CC="$CC $ac_cv_prog_cc_c89"
 
2805
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
2806
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2191
2807
esac
2192
2808
 
2193
 
# Some people use a C++ compiler to compile C.  Since we use `exit',
2194
 
# in C++ we need to declare it.  In case someone uses the same compiler
2195
 
# for both compiling C and C++ we need to have the C++ compiler decide
2196
 
# the declaration of exit, since it's the most demanding environment.
2197
 
cat >conftest.$ac_ext <<_ACEOF
2198
 
#ifndef __cplusplus
2199
 
  choke me
2200
 
#endif
2201
 
_ACEOF
2202
 
rm -f conftest.$ac_objext
2203
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2204
 
  (eval $ac_compile) 2>conftest.er1
2205
 
  ac_status=$?
2206
 
  grep -v '^ *+' conftest.er1 >conftest.err
2207
 
  rm -f conftest.er1
2208
 
  cat conftest.err >&5
2209
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210
 
  (exit $ac_status); } &&
2211
 
         { ac_try='test -z "$ac_c_werror_flag"
2212
 
                         || test ! -s conftest.err'
2213
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2214
 
  (eval $ac_try) 2>&5
2215
 
  ac_status=$?
2216
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217
 
  (exit $ac_status); }; } &&
2218
 
         { ac_try='test -s conftest.$ac_objext'
2219
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2220
 
  (eval $ac_try) 2>&5
2221
 
  ac_status=$?
2222
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223
 
  (exit $ac_status); }; }; then
2224
 
  for ac_declaration in \
2225
 
   '' \
2226
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2227
 
   'extern "C" void std::exit (int); using std::exit;' \
2228
 
   'extern "C" void exit (int) throw ();' \
2229
 
   'extern "C" void exit (int);' \
2230
 
   'void exit (int);'
2231
 
do
2232
 
  cat >conftest.$ac_ext <<_ACEOF
2233
 
/* confdefs.h.  */
2234
 
_ACEOF
2235
 
cat confdefs.h >>conftest.$ac_ext
2236
 
cat >>conftest.$ac_ext <<_ACEOF
2237
 
/* end confdefs.h.  */
2238
 
$ac_declaration
2239
 
#include <stdlib.h>
2240
 
int
2241
 
main ()
2242
 
{
2243
 
exit (42);
2244
 
  ;
2245
 
  return 0;
2246
 
}
2247
 
_ACEOF
2248
 
rm -f conftest.$ac_objext
2249
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2250
 
  (eval $ac_compile) 2>conftest.er1
2251
 
  ac_status=$?
2252
 
  grep -v '^ *+' conftest.er1 >conftest.err
2253
 
  rm -f conftest.er1
2254
 
  cat conftest.err >&5
2255
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256
 
  (exit $ac_status); } &&
2257
 
         { ac_try='test -z "$ac_c_werror_flag"
2258
 
                         || test ! -s conftest.err'
2259
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260
 
  (eval $ac_try) 2>&5
2261
 
  ac_status=$?
2262
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263
 
  (exit $ac_status); }; } &&
2264
 
         { ac_try='test -s conftest.$ac_objext'
2265
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266
 
  (eval $ac_try) 2>&5
2267
 
  ac_status=$?
2268
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269
 
  (exit $ac_status); }; }; then
2270
 
  :
2271
 
else
2272
 
  echo "$as_me: failed program was:" >&5
2273
 
sed 's/^/| /' conftest.$ac_ext >&5
2274
 
 
2275
 
continue
2276
 
fi
2277
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2278
 
  cat >conftest.$ac_ext <<_ACEOF
2279
 
/* confdefs.h.  */
2280
 
_ACEOF
2281
 
cat confdefs.h >>conftest.$ac_ext
2282
 
cat >>conftest.$ac_ext <<_ACEOF
2283
 
/* end confdefs.h.  */
2284
 
$ac_declaration
2285
 
int
2286
 
main ()
2287
 
{
2288
 
exit (42);
2289
 
  ;
2290
 
  return 0;
2291
 
}
2292
 
_ACEOF
2293
 
rm -f conftest.$ac_objext
2294
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2295
 
  (eval $ac_compile) 2>conftest.er1
2296
 
  ac_status=$?
2297
 
  grep -v '^ *+' conftest.er1 >conftest.err
2298
 
  rm -f conftest.er1
2299
 
  cat conftest.err >&5
2300
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301
 
  (exit $ac_status); } &&
2302
 
         { ac_try='test -z "$ac_c_werror_flag"
2303
 
                         || test ! -s conftest.err'
2304
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2305
 
  (eval $ac_try) 2>&5
2306
 
  ac_status=$?
2307
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308
 
  (exit $ac_status); }; } &&
2309
 
         { ac_try='test -s conftest.$ac_objext'
2310
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2311
 
  (eval $ac_try) 2>&5
2312
 
  ac_status=$?
2313
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314
 
  (exit $ac_status); }; }; then
2315
 
  break
2316
 
else
2317
 
  echo "$as_me: failed program was:" >&5
2318
 
sed 's/^/| /' conftest.$ac_ext >&5
2319
 
 
2320
 
fi
2321
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2322
 
done
2323
 
rm -f conftest*
2324
 
if test -n "$ac_declaration"; then
2325
 
  echo '#ifdef __cplusplus' >>confdefs.h
2326
 
  echo $ac_declaration      >>confdefs.h
2327
 
  echo '#endif'             >>confdefs.h
2328
 
fi
2329
 
 
2330
 
else
2331
 
  echo "$as_me: failed program was:" >&5
2332
 
sed 's/^/| /' conftest.$ac_ext >&5
2333
 
 
2334
 
fi
2335
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2809
 
2336
2810
ac_ext=c
2337
2811
ac_cpp='$CPP $CPPFLAGS'
2338
2812
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2339
2813
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2340
2814
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2341
2815
 
2342
 
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2343
 
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2344
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2345
 
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
2816
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2817
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
 
2818
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2819
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2346
2820
  echo $ECHO_N "(cached) $ECHO_C" >&6
2347
2821
else
2348
2822
  cat >conftest.make <<\_ACEOF
 
2823
SHELL = /bin/sh
2349
2824
all:
2350
 
        @echo 'ac_maketemp="$(MAKE)"'
 
2825
        @echo '@@@%%%=$(MAKE)=@@@%%%'
2351
2826
_ACEOF
2352
2827
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2353
 
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2354
 
if test -n "$ac_maketemp"; then
2355
 
  eval ac_cv_prog_make_${ac_make}_set=yes
2356
 
else
2357
 
  eval ac_cv_prog_make_${ac_make}_set=no
2358
 
fi
 
2828
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2829
  *@@@%%%=?*=@@@%%%*)
 
2830
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2831
  *)
 
2832
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2833
esac
2359
2834
rm -f conftest.make
2360
2835
fi
2361
 
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2362
 
  echo "$as_me:$LINENO: result: yes" >&5
2363
 
echo "${ECHO_T}yes" >&6
 
2836
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2837
  { echo "$as_me:$LINENO: result: yes" >&5
 
2838
echo "${ECHO_T}yes" >&6; }
2364
2839
  SET_MAKE=
2365
2840
else
2366
 
  echo "$as_me:$LINENO: result: no" >&5
2367
 
echo "${ECHO_T}no" >&6
 
2841
  { echo "$as_me:$LINENO: result: no" >&5
 
2842
echo "${ECHO_T}no" >&6; }
2368
2843
  SET_MAKE="MAKE=${MAKE-make}"
2369
2844
fi
2370
2845
 
2371
2846
 
2372
 
echo "$as_me:$LINENO: checking for library containing strerror" >&5
2373
 
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
 
2847
{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
 
2848
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
2374
2849
if test "${ac_cv_search_strerror+set}" = set; then
2375
2850
  echo $ECHO_N "(cached) $ECHO_C" >&6
2376
2851
else
2377
2852
  ac_func_search_save_LIBS=$LIBS
2378
 
ac_cv_search_strerror=no
2379
2853
cat >conftest.$ac_ext <<_ACEOF
2380
2854
/* confdefs.h.  */
2381
2855
_ACEOF
2383
2857
cat >>conftest.$ac_ext <<_ACEOF
2384
2858
/* end confdefs.h.  */
2385
2859
 
2386
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
2860
/* Override any GCC internal prototype to avoid an error.
 
2861
   Use char because int might match the return type of a GCC
 
2862
   builtin and then its argument prototype would still apply.  */
2387
2863
#ifdef __cplusplus
2388
2864
extern "C"
2389
2865
#endif
2390
 
/* We use char because int might match the return type of a gcc2
2391
 
   builtin and then its argument prototype would still apply.  */
2392
2866
char strerror ();
2393
2867
int
2394
2868
main ()
2395
2869
{
2396
 
strerror ();
 
2870
return strerror ();
2397
2871
  ;
2398
2872
  return 0;
2399
2873
}
2400
2874
_ACEOF
2401
 
rm -f conftest.$ac_objext conftest$ac_exeext
2402
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2403
 
  (eval $ac_link) 2>conftest.er1
2404
 
  ac_status=$?
2405
 
  grep -v '^ *+' conftest.er1 >conftest.err
2406
 
  rm -f conftest.er1
2407
 
  cat conftest.err >&5
2408
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409
 
  (exit $ac_status); } &&
2410
 
         { ac_try='test -z "$ac_c_werror_flag"
2411
 
                         || test ! -s conftest.err'
2412
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413
 
  (eval $ac_try) 2>&5
2414
 
  ac_status=$?
2415
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416
 
  (exit $ac_status); }; } &&
2417
 
         { ac_try='test -s conftest$ac_exeext'
2418
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419
 
  (eval $ac_try) 2>&5
2420
 
  ac_status=$?
2421
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422
 
  (exit $ac_status); }; }; then
2423
 
  ac_cv_search_strerror="none required"
2424
 
else
2425
 
  echo "$as_me: failed program was:" >&5
2426
 
sed 's/^/| /' conftest.$ac_ext >&5
2427
 
 
2428
 
fi
2429
 
rm -f conftest.err conftest.$ac_objext \
2430
 
      conftest$ac_exeext conftest.$ac_ext
2431
 
if test "$ac_cv_search_strerror" = no; then
2432
 
  for ac_lib in cposix; do
 
2875
for ac_lib in '' cposix; do
 
2876
  if test -z "$ac_lib"; then
 
2877
    ac_res="none required"
 
2878
  else
 
2879
    ac_res=-l$ac_lib
2433
2880
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2434
 
    cat >conftest.$ac_ext <<_ACEOF
2435
 
/* confdefs.h.  */
2436
 
_ACEOF
2437
 
cat confdefs.h >>conftest.$ac_ext
2438
 
cat >>conftest.$ac_ext <<_ACEOF
2439
 
/* end confdefs.h.  */
2440
 
 
2441
 
/* Override any gcc2 internal prototype to avoid an error.  */
2442
 
#ifdef __cplusplus
2443
 
extern "C"
2444
 
#endif
2445
 
/* We use char because int might match the return type of a gcc2
2446
 
   builtin and then its argument prototype would still apply.  */
2447
 
char strerror ();
2448
 
int
2449
 
main ()
2450
 
{
2451
 
strerror ();
2452
 
  ;
2453
 
  return 0;
2454
 
}
2455
 
_ACEOF
2456
 
rm -f conftest.$ac_objext conftest$ac_exeext
2457
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2458
 
  (eval $ac_link) 2>conftest.er1
 
2881
  fi
 
2882
  rm -f conftest.$ac_objext conftest$ac_exeext
 
2883
if { (ac_try="$ac_link"
 
2884
case "(($ac_try" in
 
2885
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2886
  *) ac_try_echo=$ac_try;;
 
2887
esac
 
2888
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2889
  (eval "$ac_link") 2>conftest.er1
2459
2890
  ac_status=$?
2460
2891
  grep -v '^ *+' conftest.er1 >conftest.err
2461
2892
  rm -f conftest.er1
2462
2893
  cat conftest.err >&5
2463
2894
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464
 
  (exit $ac_status); } &&
2465
 
         { ac_try='test -z "$ac_c_werror_flag"
2466
 
                         || test ! -s conftest.err'
2467
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2468
 
  (eval $ac_try) 2>&5
2469
 
  ac_status=$?
2470
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471
 
  (exit $ac_status); }; } &&
2472
 
         { ac_try='test -s conftest$ac_exeext'
2473
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2474
 
  (eval $ac_try) 2>&5
2475
 
  ac_status=$?
2476
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477
 
  (exit $ac_status); }; }; then
2478
 
  ac_cv_search_strerror="-l$ac_lib"
2479
 
break
 
2895
  (exit $ac_status); } && {
 
2896
         test -z "$ac_c_werror_flag" ||
 
2897
         test ! -s conftest.err
 
2898
       } && test -s conftest$ac_exeext &&
 
2899
       $as_test_x conftest$ac_exeext; then
 
2900
  ac_cv_search_strerror=$ac_res
2480
2901
else
2481
2902
  echo "$as_me: failed program was:" >&5
2482
2903
sed 's/^/| /' conftest.$ac_ext >&5
2483
2904
 
2484
 
fi
2485
 
rm -f conftest.err conftest.$ac_objext \
2486
 
      conftest$ac_exeext conftest.$ac_ext
2487
 
  done
2488
 
fi
 
2905
 
 
2906
fi
 
2907
 
 
2908
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
2909
      conftest$ac_exeext
 
2910
  if test "${ac_cv_search_strerror+set}" = set; then
 
2911
  break
 
2912
fi
 
2913
done
 
2914
if test "${ac_cv_search_strerror+set}" = set; then
 
2915
  :
 
2916
else
 
2917
  ac_cv_search_strerror=no
 
2918
fi
 
2919
rm conftest.$ac_ext
2489
2920
LIBS=$ac_func_search_save_LIBS
2490
2921
fi
2491
 
echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2492
 
echo "${ECHO_T}$ac_cv_search_strerror" >&6
2493
 
if test "$ac_cv_search_strerror" != no; then
2494
 
  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
 
2922
{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
 
2923
echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
 
2924
ac_res=$ac_cv_search_strerror
 
2925
if test "$ac_res" != no; then
 
2926
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2495
2927
 
2496
2928
fi
2497
2929
 
2498
2930
ac_aux_dir=
2499
 
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2500
 
  if test -f $ac_dir/install-sh; then
 
2931
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 
2932
  if test -f "$ac_dir/install-sh"; then
2501
2933
    ac_aux_dir=$ac_dir
2502
2934
    ac_install_sh="$ac_aux_dir/install-sh -c"
2503
2935
    break
2504
 
  elif test -f $ac_dir/install.sh; then
 
2936
  elif test -f "$ac_dir/install.sh"; then
2505
2937
    ac_aux_dir=$ac_dir
2506
2938
    ac_install_sh="$ac_aux_dir/install.sh -c"
2507
2939
    break
2508
 
  elif test -f $ac_dir/shtool; then
 
2940
  elif test -f "$ac_dir/shtool"; then
2509
2941
    ac_aux_dir=$ac_dir
2510
2942
    ac_install_sh="$ac_aux_dir/shtool install -c"
2511
2943
    break
2512
2944
  fi
2513
2945
done
2514
2946
if test -z "$ac_aux_dir"; then
2515
 
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2516
 
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
2947
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
 
2948
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2517
2949
   { (exit 1); exit 1; }; }
2518
2950
fi
2519
 
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2520
 
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2521
 
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
2951
 
 
2952
# These three variables are undocumented and unsupported,
 
2953
# and are intended to be withdrawn in a future Autoconf release.
 
2954
# They can cause serious problems if a builder's source tree is in a directory
 
2955
# whose full name contains unusual characters.
 
2956
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2957
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2958
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2959
 
2522
2960
 
2523
2961
# Find a good install program.  We prefer a C program (faster),
2524
2962
# so one script is as good as another.  But avoid the broken or
2533
2971
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2534
2972
# OS/2's system install, which has a completely different semantic
2535
2973
# ./install, which can be erroneously created by make from ./install.sh.
2536
 
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2537
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
2974
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
2975
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2538
2976
if test -z "$INSTALL"; then
2539
2977
if test "${ac_cv_path_install+set}" = set; then
2540
2978
  echo $ECHO_N "(cached) $ECHO_C" >&6
2556
2994
    # by default.
2557
2995
    for ac_prog in ginstall scoinst install; do
2558
2996
      for ac_exec_ext in '' $ac_executable_extensions; do
2559
 
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
2997
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2560
2998
          if test $ac_prog = install &&
2561
2999
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2562
3000
            # AIX install.  It has an incompatible calling convention.
2575
3013
    ;;
2576
3014
esac
2577
3015
done
 
3016
IFS=$as_save_IFS
2578
3017
 
2579
3018
 
2580
3019
fi
2581
3020
  if test "${ac_cv_path_install+set}" = set; then
2582
3021
    INSTALL=$ac_cv_path_install
2583
3022
  else
2584
 
    # As a last resort, use the slow shell script.  We don't cache a
2585
 
    # path for INSTALL within a source directory, because that will
 
3023
    # As a last resort, use the slow shell script.  Don't cache a
 
3024
    # value for INSTALL within a source directory, because that will
2586
3025
    # break other packages using the cache if that directory is
2587
 
    # removed, or if the path is relative.
 
3026
    # removed, or if the value is a relative name.
2588
3027
    INSTALL=$ac_install_sh
2589
3028
  fi
2590
3029
fi
2591
 
echo "$as_me:$LINENO: result: $INSTALL" >&5
2592
 
echo "${ECHO_T}$INSTALL" >&6
 
3030
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
 
3031
echo "${ECHO_T}$INSTALL" >&6; }
2593
3032
 
2594
3033
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2595
3034
# It thinks the first close brace ends the variable substitution.
2605
3044
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2606
3045
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2607
3046
 
2608
 
echo "$as_me:$LINENO: checking for inline" >&5
2609
 
echo $ECHO_N "checking for inline... $ECHO_C" >&6
 
3047
{ echo "$as_me:$LINENO: checking for inline" >&5
 
3048
echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
2610
3049
if test "${ac_cv_c_inline+set}" = set; then
2611
3050
  echo $ECHO_N "(cached) $ECHO_C" >&6
2612
3051
else
2626
3065
 
2627
3066
_ACEOF
2628
3067
rm -f conftest.$ac_objext
2629
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2630
 
  (eval $ac_compile) 2>conftest.er1
 
3068
if { (ac_try="$ac_compile"
 
3069
case "(($ac_try" in
 
3070
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3071
  *) ac_try_echo=$ac_try;;
 
3072
esac
 
3073
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3074
  (eval "$ac_compile") 2>conftest.er1
2631
3075
  ac_status=$?
2632
3076
  grep -v '^ *+' conftest.er1 >conftest.err
2633
3077
  rm -f conftest.er1
2634
3078
  cat conftest.err >&5
2635
3079
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636
 
  (exit $ac_status); } &&
2637
 
         { ac_try='test -z "$ac_c_werror_flag"
2638
 
                         || test ! -s conftest.err'
2639
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640
 
  (eval $ac_try) 2>&5
2641
 
  ac_status=$?
2642
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643
 
  (exit $ac_status); }; } &&
2644
 
         { ac_try='test -s conftest.$ac_objext'
2645
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646
 
  (eval $ac_try) 2>&5
2647
 
  ac_status=$?
2648
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649
 
  (exit $ac_status); }; }; then
2650
 
  ac_cv_c_inline=$ac_kw; break
 
3080
  (exit $ac_status); } && {
 
3081
         test -z "$ac_c_werror_flag" ||
 
3082
         test ! -s conftest.err
 
3083
       } && test -s conftest.$ac_objext; then
 
3084
  ac_cv_c_inline=$ac_kw
2651
3085
else
2652
3086
  echo "$as_me: failed program was:" >&5
2653
3087
sed 's/^/| /' conftest.$ac_ext >&5
2654
3088
 
 
3089
 
2655
3090
fi
2656
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3091
 
 
3092
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3093
  test "$ac_cv_c_inline" != no && break
2657
3094
done
2658
3095
 
2659
3096
fi
2660
 
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
2661
 
echo "${ECHO_T}$ac_cv_c_inline" >&6
 
3097
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
 
3098
echo "${ECHO_T}$ac_cv_c_inline" >&6; }
2662
3099
 
2663
3100
 
2664
3101
case $ac_cv_c_inline in
2676
3113
    ;;
2677
3114
esac
2678
3115
 
2679
 
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
2680
 
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
 
3116
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
3117
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
2681
3118
if test "${ac_cv_c_const+set}" = set; then
2682
3119
  echo $ECHO_N "(cached) $ECHO_C" >&6
2683
3120
else
2695
3132
#ifndef __cplusplus
2696
3133
  /* Ultrix mips cc rejects this.  */
2697
3134
  typedef int charset[2];
2698
 
  const charset x;
 
3135
  const charset cs;
2699
3136
  /* SunOS 4.1.1 cc rejects this.  */
2700
 
  char const *const *ccp;
2701
 
  char **p;
 
3137
  char const *const *pcpcc;
 
3138
  char **ppc;
2702
3139
  /* NEC SVR4.0.2 mips cc rejects this.  */
2703
3140
  struct point {int x, y;};
2704
3141
  static struct point const zero = {0,0};
2707
3144
     an arm of an if-expression whose if-part is not a constant
2708
3145
     expression */
2709
3146
  const char *g = "string";
2710
 
  ccp = &g + (g ? g-g : 0);
 
3147
  pcpcc = &g + (g ? g-g : 0);
2711
3148
  /* HPUX 7.0 cc rejects these. */
2712
 
  ++ccp;
2713
 
  p = (char**) ccp;
2714
 
  ccp = (char const *const *) p;
 
3149
  ++pcpcc;
 
3150
  ppc = (char**) pcpcc;
 
3151
  pcpcc = (char const *const *) ppc;
2715
3152
  { /* SCO 3.2v4 cc rejects this.  */
2716
3153
    char *t;
2717
3154
    char const *s = 0 ? (char *) 0 : (char const *) 0;
2718
3155
 
2719
3156
    *t++ = 0;
 
3157
    if (s) return 0;
2720
3158
  }
2721
3159
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
2722
3160
    int x[] = {25, 17};
2735
3173
  }
2736
3174
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2737
3175
    const int foo = 10;
 
3176
    if (!foo) return 0;
2738
3177
  }
 
3178
  return !cs[0] && !zero.x;
2739
3179
#endif
2740
3180
 
2741
3181
  ;
2743
3183
}
2744
3184
_ACEOF
2745
3185
rm -f conftest.$ac_objext
2746
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2747
 
  (eval $ac_compile) 2>conftest.er1
 
3186
if { (ac_try="$ac_compile"
 
3187
case "(($ac_try" in
 
3188
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3189
  *) ac_try_echo=$ac_try;;
 
3190
esac
 
3191
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3192
  (eval "$ac_compile") 2>conftest.er1
2748
3193
  ac_status=$?
2749
3194
  grep -v '^ *+' conftest.er1 >conftest.err
2750
3195
  rm -f conftest.er1
2751
3196
  cat conftest.err >&5
2752
3197
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753
 
  (exit $ac_status); } &&
2754
 
         { ac_try='test -z "$ac_c_werror_flag"
2755
 
                         || test ! -s conftest.err'
2756
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757
 
  (eval $ac_try) 2>&5
2758
 
  ac_status=$?
2759
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760
 
  (exit $ac_status); }; } &&
2761
 
         { ac_try='test -s conftest.$ac_objext'
2762
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763
 
  (eval $ac_try) 2>&5
2764
 
  ac_status=$?
2765
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766
 
  (exit $ac_status); }; }; then
 
3198
  (exit $ac_status); } && {
 
3199
         test -z "$ac_c_werror_flag" ||
 
3200
         test ! -s conftest.err
 
3201
       } && test -s conftest.$ac_objext; then
2767
3202
  ac_cv_c_const=yes
2768
3203
else
2769
3204
  echo "$as_me: failed program was:" >&5
2770
3205
sed 's/^/| /' conftest.$ac_ext >&5
2771
3206
 
2772
 
ac_cv_c_const=no
2773
 
fi
2774
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2775
 
fi
2776
 
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
2777
 
echo "${ECHO_T}$ac_cv_c_const" >&6
 
3207
        ac_cv_c_const=no
 
3208
fi
 
3209
 
 
3210
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3211
fi
 
3212
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
3213
echo "${ECHO_T}$ac_cv_c_const" >&6; }
2778
3214
if test $ac_cv_c_const = no; then
2779
3215
 
2780
3216
cat >>confdefs.h <<\_ACEOF
2789
3225
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2790
3226
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2791
3227
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2792
 
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2793
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
3228
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3229
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2794
3230
# On Suns, sometimes $CPP names a directory.
2795
3231
if test -n "$CPP" && test -d "$CPP"; then
2796
3232
  CPP=
2824
3260
#endif
2825
3261
                     Syntax error
2826
3262
_ACEOF
2827
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2828
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3263
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3264
case "(($ac_try" in
 
3265
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3266
  *) ac_try_echo=$ac_try;;
 
3267
esac
 
3268
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3269
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2829
3270
  ac_status=$?
2830
3271
  grep -v '^ *+' conftest.er1 >conftest.err
2831
3272
  rm -f conftest.er1
2832
3273
  cat conftest.err >&5
2833
3274
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834
 
  (exit $ac_status); } >/dev/null; then
2835
 
  if test -s conftest.err; then
2836
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2837
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2838
 
  else
2839
 
    ac_cpp_err=
2840
 
  fi
2841
 
else
2842
 
  ac_cpp_err=yes
2843
 
fi
2844
 
if test -z "$ac_cpp_err"; then
 
3275
  (exit $ac_status); } >/dev/null && {
 
3276
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3277
         test ! -s conftest.err
 
3278
       }; then
2845
3279
  :
2846
3280
else
2847
3281
  echo "$as_me: failed program was:" >&5
2850
3284
  # Broken: fails on valid input.
2851
3285
continue
2852
3286
fi
 
3287
 
2853
3288
rm -f conftest.err conftest.$ac_ext
2854
3289
 
2855
 
  # OK, works on sane cases.  Now check whether non-existent headers
 
3290
  # OK, works on sane cases.  Now check whether nonexistent headers
2856
3291
  # can be detected and how.
2857
3292
  cat >conftest.$ac_ext <<_ACEOF
2858
3293
/* confdefs.h.  */
2862
3297
/* end confdefs.h.  */
2863
3298
#include <ac_nonexistent.h>
2864
3299
_ACEOF
2865
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2866
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3300
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3301
case "(($ac_try" in
 
3302
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3303
  *) ac_try_echo=$ac_try;;
 
3304
esac
 
3305
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3306
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2867
3307
  ac_status=$?
2868
3308
  grep -v '^ *+' conftest.er1 >conftest.err
2869
3309
  rm -f conftest.er1
2870
3310
  cat conftest.err >&5
2871
3311
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872
 
  (exit $ac_status); } >/dev/null; then
2873
 
  if test -s conftest.err; then
2874
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2875
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2876
 
  else
2877
 
    ac_cpp_err=
2878
 
  fi
2879
 
else
2880
 
  ac_cpp_err=yes
2881
 
fi
2882
 
if test -z "$ac_cpp_err"; then
 
3312
  (exit $ac_status); } >/dev/null && {
 
3313
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3314
         test ! -s conftest.err
 
3315
       }; then
2883
3316
  # Broken: success on invalid input.
2884
3317
continue
2885
3318
else
2890
3323
ac_preproc_ok=:
2891
3324
break
2892
3325
fi
 
3326
 
2893
3327
rm -f conftest.err conftest.$ac_ext
2894
3328
 
2895
3329
done
2907
3341
else
2908
3342
  ac_cv_prog_CPP=$CPP
2909
3343
fi
2910
 
echo "$as_me:$LINENO: result: $CPP" >&5
2911
 
echo "${ECHO_T}$CPP" >&6
 
3344
{ echo "$as_me:$LINENO: result: $CPP" >&5
 
3345
echo "${ECHO_T}$CPP" >&6; }
2912
3346
ac_preproc_ok=false
2913
3347
for ac_c_preproc_warn_flag in '' yes
2914
3348
do
2931
3365
#endif
2932
3366
                     Syntax error
2933
3367
_ACEOF
2934
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2935
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3368
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3369
case "(($ac_try" in
 
3370
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3371
  *) ac_try_echo=$ac_try;;
 
3372
esac
 
3373
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3374
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2936
3375
  ac_status=$?
2937
3376
  grep -v '^ *+' conftest.er1 >conftest.err
2938
3377
  rm -f conftest.er1
2939
3378
  cat conftest.err >&5
2940
3379
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941
 
  (exit $ac_status); } >/dev/null; then
2942
 
  if test -s conftest.err; then
2943
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2944
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2945
 
  else
2946
 
    ac_cpp_err=
2947
 
  fi
2948
 
else
2949
 
  ac_cpp_err=yes
2950
 
fi
2951
 
if test -z "$ac_cpp_err"; then
 
3380
  (exit $ac_status); } >/dev/null && {
 
3381
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3382
         test ! -s conftest.err
 
3383
       }; then
2952
3384
  :
2953
3385
else
2954
3386
  echo "$as_me: failed program was:" >&5
2957
3389
  # Broken: fails on valid input.
2958
3390
continue
2959
3391
fi
 
3392
 
2960
3393
rm -f conftest.err conftest.$ac_ext
2961
3394
 
2962
 
  # OK, works on sane cases.  Now check whether non-existent headers
 
3395
  # OK, works on sane cases.  Now check whether nonexistent headers
2963
3396
  # can be detected and how.
2964
3397
  cat >conftest.$ac_ext <<_ACEOF
2965
3398
/* confdefs.h.  */
2969
3402
/* end confdefs.h.  */
2970
3403
#include <ac_nonexistent.h>
2971
3404
_ACEOF
2972
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2973
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3405
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3406
case "(($ac_try" in
 
3407
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3408
  *) ac_try_echo=$ac_try;;
 
3409
esac
 
3410
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3411
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2974
3412
  ac_status=$?
2975
3413
  grep -v '^ *+' conftest.er1 >conftest.err
2976
3414
  rm -f conftest.er1
2977
3415
  cat conftest.err >&5
2978
3416
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979
 
  (exit $ac_status); } >/dev/null; then
2980
 
  if test -s conftest.err; then
2981
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2982
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2983
 
  else
2984
 
    ac_cpp_err=
2985
 
  fi
2986
 
else
2987
 
  ac_cpp_err=yes
2988
 
fi
2989
 
if test -z "$ac_cpp_err"; then
 
3417
  (exit $ac_status); } >/dev/null && {
 
3418
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3419
         test ! -s conftest.err
 
3420
       }; then
2990
3421
  # Broken: success on invalid input.
2991
3422
continue
2992
3423
else
2997
3428
ac_preproc_ok=:
2998
3429
break
2999
3430
fi
 
3431
 
3000
3432
rm -f conftest.err conftest.$ac_ext
3001
3433
 
3002
3434
done
3019
3451
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3020
3452
 
3021
3453
 
3022
 
echo "$as_me:$LINENO: checking for egrep" >&5
3023
 
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3024
 
if test "${ac_cv_prog_egrep+set}" = set; then
3025
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3026
 
else
3027
 
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3028
 
    then ac_cv_prog_egrep='grep -E'
3029
 
    else ac_cv_prog_egrep='egrep'
3030
 
    fi
3031
 
fi
3032
 
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3033
 
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3034
 
 EGREP=$ac_cv_prog_egrep
3035
 
 
3036
 
 
3037
 
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3038
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
3454
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
3455
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
 
3456
if test "${ac_cv_path_GREP+set}" = set; then
 
3457
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3458
else
 
3459
  # Extract the first word of "grep ggrep" to use in msg output
 
3460
if test -z "$GREP"; then
 
3461
set dummy grep ggrep; ac_prog_name=$2
 
3462
if test "${ac_cv_path_GREP+set}" = set; then
 
3463
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3464
else
 
3465
  ac_path_GREP_found=false
 
3466
# Loop through the user's path and test for each of PROGNAME-LIST
 
3467
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3468
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3469
do
 
3470
  IFS=$as_save_IFS
 
3471
  test -z "$as_dir" && as_dir=.
 
3472
  for ac_prog in grep ggrep; do
 
3473
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3474
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
3475
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
3476
    # Check for GNU ac_path_GREP and select it if it is found.
 
3477
  # Check for GNU $ac_path_GREP
 
3478
case `"$ac_path_GREP" --version 2>&1` in
 
3479
*GNU*)
 
3480
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
3481
*)
 
3482
  ac_count=0
 
3483
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
3484
  while :
 
3485
  do
 
3486
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3487
    mv "conftest.tmp" "conftest.in"
 
3488
    cp "conftest.in" "conftest.nl"
 
3489
    echo 'GREP' >> "conftest.nl"
 
3490
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3491
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3492
    ac_count=`expr $ac_count + 1`
 
3493
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
3494
      # Best one so far, save it but keep looking for a better one
 
3495
      ac_cv_path_GREP="$ac_path_GREP"
 
3496
      ac_path_GREP_max=$ac_count
 
3497
    fi
 
3498
    # 10*(2^10) chars as input seems more than enough
 
3499
    test $ac_count -gt 10 && break
 
3500
  done
 
3501
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3502
esac
 
3503
 
 
3504
 
 
3505
    $ac_path_GREP_found && break 3
 
3506
  done
 
3507
done
 
3508
 
 
3509
done
 
3510
IFS=$as_save_IFS
 
3511
 
 
3512
 
 
3513
fi
 
3514
 
 
3515
GREP="$ac_cv_path_GREP"
 
3516
if test -z "$GREP"; then
 
3517
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
3518
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
3519
   { (exit 1); exit 1; }; }
 
3520
fi
 
3521
 
 
3522
else
 
3523
  ac_cv_path_GREP=$GREP
 
3524
fi
 
3525
 
 
3526
 
 
3527
fi
 
3528
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
3529
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
 
3530
 GREP="$ac_cv_path_GREP"
 
3531
 
 
3532
 
 
3533
{ echo "$as_me:$LINENO: checking for egrep" >&5
 
3534
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
 
3535
if test "${ac_cv_path_EGREP+set}" = set; then
 
3536
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3537
else
 
3538
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
3539
   then ac_cv_path_EGREP="$GREP -E"
 
3540
   else
 
3541
     # Extract the first word of "egrep" to use in msg output
 
3542
if test -z "$EGREP"; then
 
3543
set dummy egrep; ac_prog_name=$2
 
3544
if test "${ac_cv_path_EGREP+set}" = set; then
 
3545
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3546
else
 
3547
  ac_path_EGREP_found=false
 
3548
# Loop through the user's path and test for each of PROGNAME-LIST
 
3549
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3550
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3551
do
 
3552
  IFS=$as_save_IFS
 
3553
  test -z "$as_dir" && as_dir=.
 
3554
  for ac_prog in egrep; do
 
3555
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3556
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
3557
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
3558
    # Check for GNU ac_path_EGREP and select it if it is found.
 
3559
  # Check for GNU $ac_path_EGREP
 
3560
case `"$ac_path_EGREP" --version 2>&1` in
 
3561
*GNU*)
 
3562
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
3563
*)
 
3564
  ac_count=0
 
3565
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
3566
  while :
 
3567
  do
 
3568
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3569
    mv "conftest.tmp" "conftest.in"
 
3570
    cp "conftest.in" "conftest.nl"
 
3571
    echo 'EGREP' >> "conftest.nl"
 
3572
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3573
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3574
    ac_count=`expr $ac_count + 1`
 
3575
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
3576
      # Best one so far, save it but keep looking for a better one
 
3577
      ac_cv_path_EGREP="$ac_path_EGREP"
 
3578
      ac_path_EGREP_max=$ac_count
 
3579
    fi
 
3580
    # 10*(2^10) chars as input seems more than enough
 
3581
    test $ac_count -gt 10 && break
 
3582
  done
 
3583
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3584
esac
 
3585
 
 
3586
 
 
3587
    $ac_path_EGREP_found && break 3
 
3588
  done
 
3589
done
 
3590
 
 
3591
done
 
3592
IFS=$as_save_IFS
 
3593
 
 
3594
 
 
3595
fi
 
3596
 
 
3597
EGREP="$ac_cv_path_EGREP"
 
3598
if test -z "$EGREP"; then
 
3599
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
3600
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
3601
   { (exit 1); exit 1; }; }
 
3602
fi
 
3603
 
 
3604
else
 
3605
  ac_cv_path_EGREP=$EGREP
 
3606
fi
 
3607
 
 
3608
 
 
3609
   fi
 
3610
fi
 
3611
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
3612
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
 
3613
 EGREP="$ac_cv_path_EGREP"
 
3614
 
 
3615
 
 
3616
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
3617
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3039
3618
if test "${ac_cv_header_stdc+set}" = set; then
3040
3619
  echo $ECHO_N "(cached) $ECHO_C" >&6
3041
3620
else
3059
3638
}
3060
3639
_ACEOF
3061
3640
rm -f conftest.$ac_objext
3062
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3063
 
  (eval $ac_compile) 2>conftest.er1
 
3641
if { (ac_try="$ac_compile"
 
3642
case "(($ac_try" in
 
3643
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3644
  *) ac_try_echo=$ac_try;;
 
3645
esac
 
3646
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3647
  (eval "$ac_compile") 2>conftest.er1
3064
3648
  ac_status=$?
3065
3649
  grep -v '^ *+' conftest.er1 >conftest.err
3066
3650
  rm -f conftest.er1
3067
3651
  cat conftest.err >&5
3068
3652
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069
 
  (exit $ac_status); } &&
3070
 
         { ac_try='test -z "$ac_c_werror_flag"
3071
 
                         || test ! -s conftest.err'
3072
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3073
 
  (eval $ac_try) 2>&5
3074
 
  ac_status=$?
3075
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076
 
  (exit $ac_status); }; } &&
3077
 
         { ac_try='test -s conftest.$ac_objext'
3078
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3079
 
  (eval $ac_try) 2>&5
3080
 
  ac_status=$?
3081
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082
 
  (exit $ac_status); }; }; then
 
3653
  (exit $ac_status); } && {
 
3654
         test -z "$ac_c_werror_flag" ||
 
3655
         test ! -s conftest.err
 
3656
       } && test -s conftest.$ac_objext; then
3083
3657
  ac_cv_header_stdc=yes
3084
3658
else
3085
3659
  echo "$as_me: failed program was:" >&5
3086
3660
sed 's/^/| /' conftest.$ac_ext >&5
3087
3661
 
3088
 
ac_cv_header_stdc=no
 
3662
        ac_cv_header_stdc=no
3089
3663
fi
3090
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3664
 
 
3665
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3091
3666
 
3092
3667
if test $ac_cv_header_stdc = yes; then
3093
3668
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3143
3718
cat >>conftest.$ac_ext <<_ACEOF
3144
3719
/* end confdefs.h.  */
3145
3720
#include <ctype.h>
 
3721
#include <stdlib.h>
3146
3722
#if ((' ' & 0x0FF) == 0x020)
3147
3723
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3148
3724
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3162
3738
  for (i = 0; i < 256; i++)
3163
3739
    if (XOR (islower (i), ISLOWER (i))
3164
3740
        || toupper (i) != TOUPPER (i))
3165
 
      exit(2);
3166
 
  exit (0);
 
3741
      return 2;
 
3742
  return 0;
3167
3743
}
3168
3744
_ACEOF
3169
3745
rm -f conftest$ac_exeext
3170
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3171
 
  (eval $ac_link) 2>&5
 
3746
if { (ac_try="$ac_link"
 
3747
case "(($ac_try" in
 
3748
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3749
  *) ac_try_echo=$ac_try;;
 
3750
esac
 
3751
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3752
  (eval "$ac_link") 2>&5
3172
3753
  ac_status=$?
3173
3754
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174
3755
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3175
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3176
 
  (eval $ac_try) 2>&5
 
3756
  { (case "(($ac_try" in
 
3757
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3758
  *) ac_try_echo=$ac_try;;
 
3759
esac
 
3760
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3761
  (eval "$ac_try") 2>&5
3177
3762
  ac_status=$?
3178
3763
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179
3764
  (exit $ac_status); }; }; then
3186
3771
( exit $ac_status )
3187
3772
ac_cv_header_stdc=no
3188
3773
fi
3189
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3190
 
fi
3191
 
fi
3192
 
fi
3193
 
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3194
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
3774
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
3775
fi
 
3776
 
 
3777
 
 
3778
fi
 
3779
fi
 
3780
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
3781
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3195
3782
if test $ac_cv_header_stdc = yes; then
3196
3783
 
3197
3784
cat >>confdefs.h <<\_ACEOF
3237
3824
 
3238
3825
fi
3239
3826
 
3240
 
# Check whether --enable-sftp or --disable-sftp was given.
 
3827
# Check whether --enable-sftp was given.
3241
3828
if test "${enable_sftp+set}" = set; then
3242
 
  enableval="$enable_sftp"
3243
 
 
 
3829
  enableval=$enable_sftp;
3244
3830
else
3245
3831
  enable_sftp=no
3246
3832
 
3248
3834
for ac_func in socketpair pipe
3249
3835
do
3250
3836
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3251
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
3252
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3253
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
3837
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
3838
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
3839
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
3254
3840
  echo $ECHO_N "(cached) $ECHO_C" >&6
3255
3841
else
3256
3842
  cat >conftest.$ac_ext <<_ACEOF
3276
3862
 
3277
3863
#undef $ac_func
3278
3864
 
3279
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
3865
/* Override any GCC internal prototype to avoid an error.
 
3866
   Use char because int might match the return type of a GCC
 
3867
   builtin and then its argument prototype would still apply.  */
3280
3868
#ifdef __cplusplus
3281
3869
extern "C"
3282
 
{
3283
3870
#endif
3284
 
/* We use char because int might match the return type of a gcc2
3285
 
   builtin and then its argument prototype would still apply.  */
3286
3871
char $ac_func ();
3287
3872
/* The GNU C library defines this for functions which it implements
3288
3873
    to always fail with ENOSYS.  Some functions are actually named
3289
3874
    something starting with __ and the normal name is an alias.  */
3290
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
3875
#if defined __stub_$ac_func || defined __stub___$ac_func
3291
3876
choke me
3292
 
#else
3293
 
char (*f) () = $ac_func;
3294
 
#endif
3295
 
#ifdef __cplusplus
3296
 
}
3297
3877
#endif
3298
3878
 
3299
3879
int
3300
3880
main ()
3301
3881
{
3302
 
return f != $ac_func;
 
3882
return $ac_func ();
3303
3883
  ;
3304
3884
  return 0;
3305
3885
}
3306
3886
_ACEOF
3307
3887
rm -f conftest.$ac_objext conftest$ac_exeext
3308
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3309
 
  (eval $ac_link) 2>conftest.er1
 
3888
if { (ac_try="$ac_link"
 
3889
case "(($ac_try" in
 
3890
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3891
  *) ac_try_echo=$ac_try;;
 
3892
esac
 
3893
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3894
  (eval "$ac_link") 2>conftest.er1
3310
3895
  ac_status=$?
3311
3896
  grep -v '^ *+' conftest.er1 >conftest.err
3312
3897
  rm -f conftest.er1
3313
3898
  cat conftest.err >&5
3314
3899
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315
 
  (exit $ac_status); } &&
3316
 
         { ac_try='test -z "$ac_c_werror_flag"
3317
 
                         || test ! -s conftest.err'
3318
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3319
 
  (eval $ac_try) 2>&5
3320
 
  ac_status=$?
3321
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322
 
  (exit $ac_status); }; } &&
3323
 
         { ac_try='test -s conftest$ac_exeext'
3324
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3325
 
  (eval $ac_try) 2>&5
3326
 
  ac_status=$?
3327
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328
 
  (exit $ac_status); }; }; then
 
3900
  (exit $ac_status); } && {
 
3901
         test -z "$ac_c_werror_flag" ||
 
3902
         test ! -s conftest.err
 
3903
       } && test -s conftest$ac_exeext &&
 
3904
       $as_test_x conftest$ac_exeext; then
3329
3905
  eval "$as_ac_var=yes"
3330
3906
else
3331
3907
  echo "$as_me: failed program was:" >&5
3332
3908
sed 's/^/| /' conftest.$ac_ext >&5
3333
3909
 
3334
 
eval "$as_ac_var=no"
 
3910
        eval "$as_ac_var=no"
3335
3911
fi
3336
 
rm -f conftest.err conftest.$ac_objext \
 
3912
 
 
3913
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3337
3914
      conftest$ac_exeext conftest.$ac_ext
3338
3915
fi
3339
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3340
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
3916
ac_res=`eval echo '${'$as_ac_var'}'`
 
3917
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
3918
echo "${ECHO_T}$ac_res" >&6; }
3341
3919
if test `eval echo '${'$as_ac_var'}'` = yes; then
3342
3920
  cat >>confdefs.h <<_ACEOF
3343
3921
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3347
3925
done
3348
3926
 
3349
3927
 
3350
 
fi;
 
3928
fi
 
3929
 
3351
3930
 
3352
3931
if test "$enable_sftp" = "yes"; then
3353
3932
    EXTRAOBJS="$EXTRAOBJS src/sftpdriver.o"
3361
3940
 
3362
3941
 
3363
3942
 
3364
 
# Check whether --enable-debug or --disable-debug was given.
 
3943
# Check whether --enable-debug was given.
3365
3944
if test "${enable_debug+set}" = set; then
3366
 
  enableval="$enable_debug"
 
3945
  enableval=$enable_debug;
 
3946
fi
3367
3947
 
3368
 
fi;
3369
3948
 
3370
3949
# default is to enable debugging
3371
3950
case $enable_debug in
3384
3963
esac
3385
3964
 
3386
3965
 
3387
 
echo "$as_me:$LINENO: checking for GNU fnmatch" >&5
3388
 
echo $ECHO_N "checking for GNU fnmatch... $ECHO_C" >&6
 
3966
{ echo "$as_me:$LINENO: checking for GNU fnmatch" >&5
 
3967
echo $ECHO_N "checking for GNU fnmatch... $ECHO_C" >&6; }
3389
3968
if test "${sc_cv_gnu_fnmatch+set}" = set; then
3390
3969
  echo $ECHO_N "(cached) $ECHO_C" >&6
3391
3970
else
3406
3985
}
3407
3986
_ACEOF
3408
3987
rm -f conftest.$ac_objext
3409
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3410
 
  (eval $ac_compile) 2>conftest.er1
 
3988
if { (ac_try="$ac_compile"
 
3989
case "(($ac_try" in
 
3990
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3991
  *) ac_try_echo=$ac_try;;
 
3992
esac
 
3993
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3994
  (eval "$ac_compile") 2>conftest.er1
3411
3995
  ac_status=$?
3412
3996
  grep -v '^ *+' conftest.er1 >conftest.err
3413
3997
  rm -f conftest.er1
3414
3998
  cat conftest.err >&5
3415
3999
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416
 
  (exit $ac_status); } &&
3417
 
         { ac_try='test -z "$ac_c_werror_flag"
3418
 
                         || test ! -s conftest.err'
3419
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3420
 
  (eval $ac_try) 2>&5
3421
 
  ac_status=$?
3422
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423
 
  (exit $ac_status); }; } &&
3424
 
         { ac_try='test -s conftest.$ac_objext'
3425
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3426
 
  (eval $ac_try) 2>&5
3427
 
  ac_status=$?
3428
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429
 
  (exit $ac_status); }; }; then
 
4000
  (exit $ac_status); } && {
 
4001
         test -z "$ac_c_werror_flag" ||
 
4002
         test ! -s conftest.err
 
4003
       } && test -s conftest.$ac_objext; then
3430
4004
  sc_cv_gnu_fnmatch=yes
3431
4005
else
3432
4006
  echo "$as_me: failed program was:" >&5
3433
4007
sed 's/^/| /' conftest.$ac_ext >&5
3434
4008
 
3435
 
sc_cv_gnu_fnmatch=no
3436
 
fi
3437
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3438
 
fi
3439
 
echo "$as_me:$LINENO: result: $sc_cv_gnu_fnmatch" >&5
3440
 
echo "${ECHO_T}$sc_cv_gnu_fnmatch" >&6
 
4009
        sc_cv_gnu_fnmatch=no
 
4010
fi
 
4011
 
 
4012
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4013
fi
 
4014
{ echo "$as_me:$LINENO: result: $sc_cv_gnu_fnmatch" >&5
 
4015
echo "${ECHO_T}$sc_cv_gnu_fnmatch" >&6; }
3441
4016
 
3442
4017
if test "$sc_cv_gnu_fnmatch" = "no"; then
3443
 
   case $LIBOBJS in
3444
 
    "lib/fnmatch.$ac_objext"   | \
3445
 
  *" lib/fnmatch.$ac_objext"   | \
3446
 
    "lib/fnmatch.$ac_objext "* | \
 
4018
   case " $LIBOBJS " in
3447
4019
  *" lib/fnmatch.$ac_objext "* ) ;;
3448
 
  *) LIBOBJS="$LIBOBJS lib/fnmatch.$ac_objext" ;;
 
4020
  *) LIBOBJS="$LIBOBJS lib/fnmatch.$ac_objext"
 
4021
 ;;
3449
4022
esac
3450
4023
 
3451
4024
fi
3452
4025
 
3453
 
# Support neon 0.24, 0.25, 0.26.
 
4026
# Support neon 0.24 through 0.28
3454
4027
 
3455
4028
 
3456
4029
 
3478
4051
                  inttypes.h stdint.h unistd.h
3479
4052
do
3480
4053
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3481
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
3482
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3483
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4054
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4055
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
4056
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3484
4057
  echo $ECHO_N "(cached) $ECHO_C" >&6
3485
4058
else
3486
4059
  cat >conftest.$ac_ext <<_ACEOF
3494
4067
#include <$ac_header>
3495
4068
_ACEOF
3496
4069
rm -f conftest.$ac_objext
3497
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3498
 
  (eval $ac_compile) 2>conftest.er1
 
4070
if { (ac_try="$ac_compile"
 
4071
case "(($ac_try" in
 
4072
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4073
  *) ac_try_echo=$ac_try;;
 
4074
esac
 
4075
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4076
  (eval "$ac_compile") 2>conftest.er1
3499
4077
  ac_status=$?
3500
4078
  grep -v '^ *+' conftest.er1 >conftest.err
3501
4079
  rm -f conftest.er1
3502
4080
  cat conftest.err >&5
3503
4081
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504
 
  (exit $ac_status); } &&
3505
 
         { ac_try='test -z "$ac_c_werror_flag"
3506
 
                         || test ! -s conftest.err'
3507
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3508
 
  (eval $ac_try) 2>&5
3509
 
  ac_status=$?
3510
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511
 
  (exit $ac_status); }; } &&
3512
 
         { ac_try='test -s conftest.$ac_objext'
3513
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3514
 
  (eval $ac_try) 2>&5
3515
 
  ac_status=$?
3516
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517
 
  (exit $ac_status); }; }; then
 
4082
  (exit $ac_status); } && {
 
4083
         test -z "$ac_c_werror_flag" ||
 
4084
         test ! -s conftest.err
 
4085
       } && test -s conftest.$ac_objext; then
3518
4086
  eval "$as_ac_Header=yes"
3519
4087
else
3520
4088
  echo "$as_me: failed program was:" >&5
3521
4089
sed 's/^/| /' conftest.$ac_ext >&5
3522
4090
 
3523
 
eval "$as_ac_Header=no"
3524
 
fi
3525
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3526
 
fi
3527
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3528
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4091
        eval "$as_ac_Header=no"
 
4092
fi
 
4093
 
 
4094
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4095
fi
 
4096
ac_res=`eval echo '${'$as_ac_Header'}'`
 
4097
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
4098
echo "${ECHO_T}$ac_res" >&6; }
3529
4099
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3530
4100
  cat >>confdefs.h <<_ACEOF
3531
4101
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3536
4106
done
3537
4107
 
3538
4108
 
3539
 
echo "$as_me:$LINENO: checking for size_t" >&5
3540
 
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
 
4109
{ echo "$as_me:$LINENO: checking for size_t" >&5
 
4110
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
3541
4111
if test "${ac_cv_type_size_t+set}" = set; then
3542
4112
  echo $ECHO_N "(cached) $ECHO_C" >&6
3543
4113
else
3548
4118
cat >>conftest.$ac_ext <<_ACEOF
3549
4119
/* end confdefs.h.  */
3550
4120
$ac_includes_default
 
4121
typedef size_t ac__type_new_;
3551
4122
int
3552
4123
main ()
3553
4124
{
3554
 
if ((size_t *) 0)
 
4125
if ((ac__type_new_ *) 0)
3555
4126
  return 0;
3556
 
if (sizeof (size_t))
 
4127
if (sizeof (ac__type_new_))
3557
4128
  return 0;
3558
4129
  ;
3559
4130
  return 0;
3560
4131
}
3561
4132
_ACEOF
3562
4133
rm -f conftest.$ac_objext
3563
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3564
 
  (eval $ac_compile) 2>conftest.er1
 
4134
if { (ac_try="$ac_compile"
 
4135
case "(($ac_try" in
 
4136
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4137
  *) ac_try_echo=$ac_try;;
 
4138
esac
 
4139
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4140
  (eval "$ac_compile") 2>conftest.er1
3565
4141
  ac_status=$?
3566
4142
  grep -v '^ *+' conftest.er1 >conftest.err
3567
4143
  rm -f conftest.er1
3568
4144
  cat conftest.err >&5
3569
4145
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570
 
  (exit $ac_status); } &&
3571
 
         { ac_try='test -z "$ac_c_werror_flag"
3572
 
                         || test ! -s conftest.err'
3573
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574
 
  (eval $ac_try) 2>&5
3575
 
  ac_status=$?
3576
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577
 
  (exit $ac_status); }; } &&
3578
 
         { ac_try='test -s conftest.$ac_objext'
3579
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3580
 
  (eval $ac_try) 2>&5
3581
 
  ac_status=$?
3582
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583
 
  (exit $ac_status); }; }; then
 
4146
  (exit $ac_status); } && {
 
4147
         test -z "$ac_c_werror_flag" ||
 
4148
         test ! -s conftest.err
 
4149
       } && test -s conftest.$ac_objext; then
3584
4150
  ac_cv_type_size_t=yes
3585
4151
else
3586
4152
  echo "$as_me: failed program was:" >&5
3587
4153
sed 's/^/| /' conftest.$ac_ext >&5
3588
4154
 
3589
 
ac_cv_type_size_t=no
3590
 
fi
3591
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3592
 
fi
3593
 
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3594
 
echo "${ECHO_T}$ac_cv_type_size_t" >&6
 
4155
        ac_cv_type_size_t=no
 
4156
fi
 
4157
 
 
4158
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4159
fi
 
4160
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
4161
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
3595
4162
if test $ac_cv_type_size_t = yes; then
3596
4163
  :
3597
4164
else
3598
4165
 
3599
4166
cat >>confdefs.h <<_ACEOF
3600
 
#define size_t unsigned
 
4167
#define size_t unsigned int
3601
4168
_ACEOF
3602
4169
 
3603
4170
fi
3604
4171
 
3605
 
echo "$as_me:$LINENO: checking for off_t" >&5
3606
 
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
 
4172
{ echo "$as_me:$LINENO: checking for off_t" >&5
 
4173
echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
3607
4174
if test "${ac_cv_type_off_t+set}" = set; then
3608
4175
  echo $ECHO_N "(cached) $ECHO_C" >&6
3609
4176
else
3614
4181
cat >>conftest.$ac_ext <<_ACEOF
3615
4182
/* end confdefs.h.  */
3616
4183
$ac_includes_default
 
4184
typedef off_t ac__type_new_;
3617
4185
int
3618
4186
main ()
3619
4187
{
3620
 
if ((off_t *) 0)
 
4188
if ((ac__type_new_ *) 0)
3621
4189
  return 0;
3622
 
if (sizeof (off_t))
 
4190
if (sizeof (ac__type_new_))
3623
4191
  return 0;
3624
4192
  ;
3625
4193
  return 0;
3626
4194
}
3627
4195
_ACEOF
3628
4196
rm -f conftest.$ac_objext
3629
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3630
 
  (eval $ac_compile) 2>conftest.er1
 
4197
if { (ac_try="$ac_compile"
 
4198
case "(($ac_try" in
 
4199
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4200
  *) ac_try_echo=$ac_try;;
 
4201
esac
 
4202
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4203
  (eval "$ac_compile") 2>conftest.er1
3631
4204
  ac_status=$?
3632
4205
  grep -v '^ *+' conftest.er1 >conftest.err
3633
4206
  rm -f conftest.er1
3634
4207
  cat conftest.err >&5
3635
4208
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636
 
  (exit $ac_status); } &&
3637
 
         { ac_try='test -z "$ac_c_werror_flag"
3638
 
                         || test ! -s conftest.err'
3639
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3640
 
  (eval $ac_try) 2>&5
3641
 
  ac_status=$?
3642
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643
 
  (exit $ac_status); }; } &&
3644
 
         { ac_try='test -s conftest.$ac_objext'
3645
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3646
 
  (eval $ac_try) 2>&5
3647
 
  ac_status=$?
3648
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649
 
  (exit $ac_status); }; }; then
 
4209
  (exit $ac_status); } && {
 
4210
         test -z "$ac_c_werror_flag" ||
 
4211
         test ! -s conftest.err
 
4212
       } && test -s conftest.$ac_objext; then
3650
4213
  ac_cv_type_off_t=yes
3651
4214
else
3652
4215
  echo "$as_me: failed program was:" >&5
3653
4216
sed 's/^/| /' conftest.$ac_ext >&5
3654
4217
 
3655
 
ac_cv_type_off_t=no
3656
 
fi
3657
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3658
 
fi
3659
 
echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3660
 
echo "${ECHO_T}$ac_cv_type_off_t" >&6
 
4218
        ac_cv_type_off_t=no
 
4219
fi
 
4220
 
 
4221
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4222
fi
 
4223
{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
 
4224
echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
3661
4225
if test $ac_cv_type_off_t = yes; then
3662
4226
  :
3663
4227
else
3664
4228
 
3665
4229
cat >>confdefs.h <<_ACEOF
3666
 
#define off_t long
 
4230
#define off_t long int
3667
4231
_ACEOF
3668
4232
 
3669
4233
fi
3670
4234
 
3671
4235
 
3672
4236
# Check for Darwin, which needs extra cpp and linker flags.
3673
 
echo "$as_me:$LINENO: checking for Darwin" >&5
3674
 
echo $ECHO_N "checking for Darwin... $ECHO_C" >&6
3675
 
if test "${ne_cv_os_macosx+set}" = set; then
 
4237
{ echo "$as_me:$LINENO: checking for uname" >&5
 
4238
echo $ECHO_N "checking for uname... $ECHO_C" >&6; }
 
4239
if test "${ne_cv_os_uname+set}" = set; then
3676
4240
  echo $ECHO_N "(cached) $ECHO_C" >&6
3677
4241
else
3678
4242
 
3679
 
case `uname -s 2>/dev/null` in
3680
 
Darwin) ne_cv_os_macosx=yes ;;
3681
 
*) ne_cv_os_macosx=no ;;
3682
 
esac
 
4243
 ne_cv_os_uname=`uname -s 2>/dev/null`
 
4244
 
3683
4245
fi
3684
 
echo "$as_me:$LINENO: result: $ne_cv_os_macosx" >&5
3685
 
echo "${ECHO_T}$ne_cv_os_macosx" >&6
3686
 
if test $ne_cv_os_macosx = yes; then
 
4246
{ echo "$as_me:$LINENO: result: $ne_cv_os_uname" >&5
 
4247
echo "${ECHO_T}$ne_cv_os_uname" >&6; }
 
4248
 
 
4249
if test "$ne_cv_os_uname" = "Darwin"; then
3687
4250
  CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
3688
4251
  LDFLAGS="$LDFLAGS -flat_namespace"
3689
4252
  # poll has various issues in various Darwin releases
3693
4256
fi
3694
4257
 
3695
4258
 
3696
 
echo "$as_me:$LINENO: checking for int" >&5
3697
 
echo $ECHO_N "checking for int... $ECHO_C" >&6
 
4259
{ echo "$as_me:$LINENO: checking for int" >&5
 
4260
echo $ECHO_N "checking for int... $ECHO_C" >&6; }
3698
4261
if test "${ac_cv_type_int+set}" = set; then
3699
4262
  echo $ECHO_N "(cached) $ECHO_C" >&6
3700
4263
else
3705
4268
cat >>conftest.$ac_ext <<_ACEOF
3706
4269
/* end confdefs.h.  */
3707
4270
$ac_includes_default
 
4271
typedef int ac__type_new_;
3708
4272
int
3709
4273
main ()
3710
4274
{
3711
 
if ((int *) 0)
 
4275
if ((ac__type_new_ *) 0)
3712
4276
  return 0;
3713
 
if (sizeof (int))
 
4277
if (sizeof (ac__type_new_))
3714
4278
  return 0;
3715
4279
  ;
3716
4280
  return 0;
3717
4281
}
3718
4282
_ACEOF
3719
4283
rm -f conftest.$ac_objext
3720
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3721
 
  (eval $ac_compile) 2>conftest.er1
 
4284
if { (ac_try="$ac_compile"
 
4285
case "(($ac_try" in
 
4286
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4287
  *) ac_try_echo=$ac_try;;
 
4288
esac
 
4289
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4290
  (eval "$ac_compile") 2>conftest.er1
3722
4291
  ac_status=$?
3723
4292
  grep -v '^ *+' conftest.er1 >conftest.err
3724
4293
  rm -f conftest.er1
3725
4294
  cat conftest.err >&5
3726
4295
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727
 
  (exit $ac_status); } &&
3728
 
         { ac_try='test -z "$ac_c_werror_flag"
3729
 
                         || test ! -s conftest.err'
3730
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3731
 
  (eval $ac_try) 2>&5
3732
 
  ac_status=$?
3733
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734
 
  (exit $ac_status); }; } &&
3735
 
         { ac_try='test -s conftest.$ac_objext'
3736
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3737
 
  (eval $ac_try) 2>&5
3738
 
  ac_status=$?
3739
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740
 
  (exit $ac_status); }; }; then
 
4296
  (exit $ac_status); } && {
 
4297
         test -z "$ac_c_werror_flag" ||
 
4298
         test ! -s conftest.err
 
4299
       } && test -s conftest.$ac_objext; then
3741
4300
  ac_cv_type_int=yes
3742
4301
else
3743
4302
  echo "$as_me: failed program was:" >&5
3744
4303
sed 's/^/| /' conftest.$ac_ext >&5
3745
4304
 
3746
 
ac_cv_type_int=no
3747
 
fi
3748
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3749
 
fi
3750
 
echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
3751
 
echo "${ECHO_T}$ac_cv_type_int" >&6
3752
 
 
3753
 
echo "$as_me:$LINENO: checking size of int" >&5
3754
 
echo $ECHO_N "checking size of int... $ECHO_C" >&6
 
4305
        ac_cv_type_int=no
 
4306
fi
 
4307
 
 
4308
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4309
fi
 
4310
{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
 
4311
echo "${ECHO_T}$ac_cv_type_int" >&6; }
 
4312
 
 
4313
# The cast to long int works around a bug in the HP C Compiler
 
4314
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
4315
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
4316
# This bug is HP SR number 8606223364.
 
4317
{ echo "$as_me:$LINENO: checking size of int" >&5
 
4318
echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
3755
4319
if test "${ac_cv_sizeof_int+set}" = set; then
3756
4320
  echo $ECHO_N "(cached) $ECHO_C" >&6
3757
4321
else
3758
 
  if test "$ac_cv_type_int" = yes; then
3759
 
  # The cast to unsigned long works around a bug in the HP C Compiler
3760
 
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3761
 
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3762
 
  # This bug is HP SR number 8606223364.
3763
4322
  if test "$cross_compiling" = yes; then
3764
4323
  # Depending upon the size, compute the lo and hi bounds.
3765
4324
cat >conftest.$ac_ext <<_ACEOF
3769
4328
cat >>conftest.$ac_ext <<_ACEOF
3770
4329
/* end confdefs.h.  */
3771
4330
$ac_includes_default
 
4331
   typedef int ac__type_sizeof_;
3772
4332
int
3773
4333
main ()
3774
4334
{
3775
 
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
 
4335
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
3776
4336
test_array [0] = 0
3777
4337
 
3778
4338
  ;
3780
4340
}
3781
4341
_ACEOF
3782
4342
rm -f conftest.$ac_objext
3783
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3784
 
  (eval $ac_compile) 2>conftest.er1
 
4343
if { (ac_try="$ac_compile"
 
4344
case "(($ac_try" in
 
4345
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4346
  *) ac_try_echo=$ac_try;;
 
4347
esac
 
4348
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4349
  (eval "$ac_compile") 2>conftest.er1
3785
4350
  ac_status=$?
3786
4351
  grep -v '^ *+' conftest.er1 >conftest.err
3787
4352
  rm -f conftest.er1
3788
4353
  cat conftest.err >&5
3789
4354
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790
 
  (exit $ac_status); } &&
3791
 
         { ac_try='test -z "$ac_c_werror_flag"
3792
 
                         || test ! -s conftest.err'
3793
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3794
 
  (eval $ac_try) 2>&5
3795
 
  ac_status=$?
3796
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797
 
  (exit $ac_status); }; } &&
3798
 
         { ac_try='test -s conftest.$ac_objext'
3799
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3800
 
  (eval $ac_try) 2>&5
3801
 
  ac_status=$?
3802
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803
 
  (exit $ac_status); }; }; then
 
4355
  (exit $ac_status); } && {
 
4356
         test -z "$ac_c_werror_flag" ||
 
4357
         test ! -s conftest.err
 
4358
       } && test -s conftest.$ac_objext; then
3804
4359
  ac_lo=0 ac_mid=0
3805
4360
  while :; do
3806
4361
    cat >conftest.$ac_ext <<_ACEOF
3810
4365
cat >>conftest.$ac_ext <<_ACEOF
3811
4366
/* end confdefs.h.  */
3812
4367
$ac_includes_default
 
4368
   typedef int ac__type_sizeof_;
3813
4369
int
3814
4370
main ()
3815
4371
{
3816
 
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
 
4372
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
3817
4373
test_array [0] = 0
3818
4374
 
3819
4375
  ;
3821
4377
}
3822
4378
_ACEOF
3823
4379
rm -f conftest.$ac_objext
3824
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3825
 
  (eval $ac_compile) 2>conftest.er1
 
4380
if { (ac_try="$ac_compile"
 
4381
case "(($ac_try" in
 
4382
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4383
  *) ac_try_echo=$ac_try;;
 
4384
esac
 
4385
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4386
  (eval "$ac_compile") 2>conftest.er1
3826
4387
  ac_status=$?
3827
4388
  grep -v '^ *+' conftest.er1 >conftest.err
3828
4389
  rm -f conftest.er1
3829
4390
  cat conftest.err >&5
3830
4391
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831
 
  (exit $ac_status); } &&
3832
 
         { ac_try='test -z "$ac_c_werror_flag"
3833
 
                         || test ! -s conftest.err'
3834
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3835
 
  (eval $ac_try) 2>&5
3836
 
  ac_status=$?
3837
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838
 
  (exit $ac_status); }; } &&
3839
 
         { ac_try='test -s conftest.$ac_objext'
3840
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841
 
  (eval $ac_try) 2>&5
3842
 
  ac_status=$?
3843
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844
 
  (exit $ac_status); }; }; then
 
4392
  (exit $ac_status); } && {
 
4393
         test -z "$ac_c_werror_flag" ||
 
4394
         test ! -s conftest.err
 
4395
       } && test -s conftest.$ac_objext; then
3845
4396
  ac_hi=$ac_mid; break
3846
4397
else
3847
4398
  echo "$as_me: failed program was:" >&5
3848
4399
sed 's/^/| /' conftest.$ac_ext >&5
3849
4400
 
3850
 
ac_lo=`expr $ac_mid + 1`
3851
 
                    if test $ac_lo -le $ac_mid; then
3852
 
                      ac_lo= ac_hi=
3853
 
                      break
3854
 
                    fi
3855
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
4401
        ac_lo=`expr $ac_mid + 1`
 
4402
                        if test $ac_lo -le $ac_mid; then
 
4403
                          ac_lo= ac_hi=
 
4404
                          break
 
4405
                        fi
 
4406
                        ac_mid=`expr 2 '*' $ac_mid + 1`
3856
4407
fi
3857
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4408
 
 
4409
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3858
4410
  done
3859
4411
else
3860
4412
  echo "$as_me: failed program was:" >&5
3861
4413
sed 's/^/| /' conftest.$ac_ext >&5
3862
4414
 
3863
 
cat >conftest.$ac_ext <<_ACEOF
 
4415
        cat >conftest.$ac_ext <<_ACEOF
3864
4416
/* confdefs.h.  */
3865
4417
_ACEOF
3866
4418
cat confdefs.h >>conftest.$ac_ext
3867
4419
cat >>conftest.$ac_ext <<_ACEOF
3868
4420
/* end confdefs.h.  */
3869
4421
$ac_includes_default
 
4422
   typedef int ac__type_sizeof_;
3870
4423
int
3871
4424
main ()
3872
4425
{
3873
 
static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
 
4426
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
3874
4427
test_array [0] = 0
3875
4428
 
3876
4429
  ;
3878
4431
}
3879
4432
_ACEOF
3880
4433
rm -f conftest.$ac_objext
3881
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3882
 
  (eval $ac_compile) 2>conftest.er1
 
4434
if { (ac_try="$ac_compile"
 
4435
case "(($ac_try" in
 
4436
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4437
  *) ac_try_echo=$ac_try;;
 
4438
esac
 
4439
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4440
  (eval "$ac_compile") 2>conftest.er1
3883
4441
  ac_status=$?
3884
4442
  grep -v '^ *+' conftest.er1 >conftest.err
3885
4443
  rm -f conftest.er1
3886
4444
  cat conftest.err >&5
3887
4445
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888
 
  (exit $ac_status); } &&
3889
 
         { ac_try='test -z "$ac_c_werror_flag"
3890
 
                         || test ! -s conftest.err'
3891
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3892
 
  (eval $ac_try) 2>&5
3893
 
  ac_status=$?
3894
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895
 
  (exit $ac_status); }; } &&
3896
 
         { ac_try='test -s conftest.$ac_objext'
3897
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3898
 
  (eval $ac_try) 2>&5
3899
 
  ac_status=$?
3900
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901
 
  (exit $ac_status); }; }; then
 
4446
  (exit $ac_status); } && {
 
4447
         test -z "$ac_c_werror_flag" ||
 
4448
         test ! -s conftest.err
 
4449
       } && test -s conftest.$ac_objext; then
3902
4450
  ac_hi=-1 ac_mid=-1
3903
4451
  while :; do
3904
4452
    cat >conftest.$ac_ext <<_ACEOF
3908
4456
cat >>conftest.$ac_ext <<_ACEOF
3909
4457
/* end confdefs.h.  */
3910
4458
$ac_includes_default
 
4459
   typedef int ac__type_sizeof_;
3911
4460
int
3912
4461
main ()
3913
4462
{
3914
 
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
 
4463
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
3915
4464
test_array [0] = 0
3916
4465
 
3917
4466
  ;
3919
4468
}
3920
4469
_ACEOF
3921
4470
rm -f conftest.$ac_objext
3922
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3923
 
  (eval $ac_compile) 2>conftest.er1
 
4471
if { (ac_try="$ac_compile"
 
4472
case "(($ac_try" in
 
4473
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4474
  *) ac_try_echo=$ac_try;;
 
4475
esac
 
4476
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4477
  (eval "$ac_compile") 2>conftest.er1
3924
4478
  ac_status=$?
3925
4479
  grep -v '^ *+' conftest.er1 >conftest.err
3926
4480
  rm -f conftest.er1
3927
4481
  cat conftest.err >&5
3928
4482
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929
 
  (exit $ac_status); } &&
3930
 
         { ac_try='test -z "$ac_c_werror_flag"
3931
 
                         || test ! -s conftest.err'
3932
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3933
 
  (eval $ac_try) 2>&5
3934
 
  ac_status=$?
3935
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936
 
  (exit $ac_status); }; } &&
3937
 
         { ac_try='test -s conftest.$ac_objext'
3938
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939
 
  (eval $ac_try) 2>&5
3940
 
  ac_status=$?
3941
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942
 
  (exit $ac_status); }; }; then
 
4483
  (exit $ac_status); } && {
 
4484
         test -z "$ac_c_werror_flag" ||
 
4485
         test ! -s conftest.err
 
4486
       } && test -s conftest.$ac_objext; then
3943
4487
  ac_lo=$ac_mid; break
3944
4488
else
3945
4489
  echo "$as_me: failed program was:" >&5
3946
4490
sed 's/^/| /' conftest.$ac_ext >&5
3947
4491
 
3948
 
ac_hi=`expr '(' $ac_mid ')' - 1`
3949
 
                       if test $ac_mid -le $ac_hi; then
3950
 
                         ac_lo= ac_hi=
3951
 
                         break
3952
 
                       fi
3953
 
                       ac_mid=`expr 2 '*' $ac_mid`
 
4492
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
4493
                        if test $ac_mid -le $ac_hi; then
 
4494
                          ac_lo= ac_hi=
 
4495
                          break
 
4496
                        fi
 
4497
                        ac_mid=`expr 2 '*' $ac_mid`
3954
4498
fi
3955
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4499
 
 
4500
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3956
4501
  done
3957
4502
else
3958
4503
  echo "$as_me: failed program was:" >&5
3959
4504
sed 's/^/| /' conftest.$ac_ext >&5
3960
4505
 
3961
 
ac_lo= ac_hi=
3962
 
fi
3963
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3964
 
fi
3965
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4506
        ac_lo= ac_hi=
 
4507
fi
 
4508
 
 
4509
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4510
fi
 
4511
 
 
4512
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3966
4513
# Binary search between lo and hi bounds.
3967
4514
while test "x$ac_lo" != "x$ac_hi"; do
3968
4515
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3973
4520
cat >>conftest.$ac_ext <<_ACEOF
3974
4521
/* end confdefs.h.  */
3975
4522
$ac_includes_default
 
4523
   typedef int ac__type_sizeof_;
3976
4524
int
3977
4525
main ()
3978
4526
{
3979
 
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
 
4527
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
3980
4528
test_array [0] = 0
3981
4529
 
3982
4530
  ;
3984
4532
}
3985
4533
_ACEOF
3986
4534
rm -f conftest.$ac_objext
3987
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3988
 
  (eval $ac_compile) 2>conftest.er1
 
4535
if { (ac_try="$ac_compile"
 
4536
case "(($ac_try" in
 
4537
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4538
  *) ac_try_echo=$ac_try;;
 
4539
esac
 
4540
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4541
  (eval "$ac_compile") 2>conftest.er1
3989
4542
  ac_status=$?
3990
4543
  grep -v '^ *+' conftest.er1 >conftest.err
3991
4544
  rm -f conftest.er1
3992
4545
  cat conftest.err >&5
3993
4546
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994
 
  (exit $ac_status); } &&
3995
 
         { ac_try='test -z "$ac_c_werror_flag"
3996
 
                         || test ! -s conftest.err'
3997
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3998
 
  (eval $ac_try) 2>&5
3999
 
  ac_status=$?
4000
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001
 
  (exit $ac_status); }; } &&
4002
 
         { ac_try='test -s conftest.$ac_objext'
4003
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4004
 
  (eval $ac_try) 2>&5
4005
 
  ac_status=$?
4006
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007
 
  (exit $ac_status); }; }; then
 
4547
  (exit $ac_status); } && {
 
4548
         test -z "$ac_c_werror_flag" ||
 
4549
         test ! -s conftest.err
 
4550
       } && test -s conftest.$ac_objext; then
4008
4551
  ac_hi=$ac_mid
4009
4552
else
4010
4553
  echo "$as_me: failed program was:" >&5
4011
4554
sed 's/^/| /' conftest.$ac_ext >&5
4012
4555
 
4013
 
ac_lo=`expr '(' $ac_mid ')' + 1`
 
4556
        ac_lo=`expr '(' $ac_mid ')' + 1`
4014
4557
fi
4015
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4558
 
 
4559
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4016
4560
done
4017
4561
case $ac_lo in
4018
4562
?*) ac_cv_sizeof_int=$ac_lo;;
4019
 
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
 
4563
'') if test "$ac_cv_type_int" = yes; then
 
4564
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
4020
4565
See \`config.log' for more details." >&5
4021
 
echo "$as_me: error: cannot compute sizeof (int), 77
 
4566
echo "$as_me: error: cannot compute sizeof (int)
4022
4567
See \`config.log' for more details." >&2;}
4023
 
   { (exit 1); exit 1; }; } ;;
 
4568
   { (exit 77); exit 77; }; }
 
4569
   else
 
4570
     ac_cv_sizeof_int=0
 
4571
   fi ;;
4024
4572
esac
4025
4573
else
4026
 
  if test "$cross_compiling" = yes; then
4027
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4028
 
See \`config.log' for more details." >&5
4029
 
echo "$as_me: error: cannot run test program while cross compiling
4030
 
See \`config.log' for more details." >&2;}
4031
 
   { (exit 1); exit 1; }; }
4032
 
else
4033
4574
  cat >conftest.$ac_ext <<_ACEOF
4034
4575
/* confdefs.h.  */
4035
4576
_ACEOF
4037
4578
cat >>conftest.$ac_ext <<_ACEOF
4038
4579
/* end confdefs.h.  */
4039
4580
$ac_includes_default
4040
 
long longval () { return (long) (sizeof (int)); }
4041
 
unsigned long ulongval () { return (long) (sizeof (int)); }
 
4581
   typedef int ac__type_sizeof_;
 
4582
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
4583
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4042
4584
#include <stdio.h>
4043
4585
#include <stdlib.h>
4044
4586
int
4047
4589
 
4048
4590
  FILE *f = fopen ("conftest.val", "w");
4049
4591
  if (! f)
4050
 
    exit (1);
4051
 
  if (((long) (sizeof (int))) < 0)
 
4592
    return 1;
 
4593
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4052
4594
    {
4053
 
      long i = longval ();
4054
 
      if (i != ((long) (sizeof (int))))
4055
 
        exit (1);
 
4595
      long int i = longval ();
 
4596
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
4597
        return 1;
4056
4598
      fprintf (f, "%ld\n", i);
4057
4599
    }
4058
4600
  else
4059
4601
    {
4060
 
      unsigned long i = ulongval ();
4061
 
      if (i != ((long) (sizeof (int))))
4062
 
        exit (1);
 
4602
      unsigned long int i = ulongval ();
 
4603
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
4604
        return 1;
4063
4605
      fprintf (f, "%lu\n", i);
4064
4606
    }
4065
 
  exit (ferror (f) || fclose (f) != 0);
 
4607
  return ferror (f) || fclose (f) != 0;
4066
4608
 
4067
4609
  ;
4068
4610
  return 0;
4069
4611
}
4070
4612
_ACEOF
4071
4613
rm -f conftest$ac_exeext
4072
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4073
 
  (eval $ac_link) 2>&5
 
4614
if { (ac_try="$ac_link"
 
4615
case "(($ac_try" in
 
4616
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4617
  *) ac_try_echo=$ac_try;;
 
4618
esac
 
4619
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4620
  (eval "$ac_link") 2>&5
4074
4621
  ac_status=$?
4075
4622
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076
4623
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4077
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078
 
  (eval $ac_try) 2>&5
 
4624
  { (case "(($ac_try" in
 
4625
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4626
  *) ac_try_echo=$ac_try;;
 
4627
esac
 
4628
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4629
  (eval "$ac_try") 2>&5
4079
4630
  ac_status=$?
4080
4631
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081
4632
  (exit $ac_status); }; }; then
4086
4637
sed 's/^/| /' conftest.$ac_ext >&5
4087
4638
 
4088
4639
( exit $ac_status )
4089
 
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
 
4640
if test "$ac_cv_type_int" = yes; then
 
4641
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
4090
4642
See \`config.log' for more details." >&5
4091
 
echo "$as_me: error: cannot compute sizeof (int), 77
 
4643
echo "$as_me: error: cannot compute sizeof (int)
4092
4644
See \`config.log' for more details." >&2;}
4093
 
   { (exit 1); exit 1; }; }
4094
 
fi
4095
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4096
 
fi
 
4645
   { (exit 77); exit 77; }; }
 
4646
   else
 
4647
     ac_cv_sizeof_int=0
 
4648
   fi
 
4649
fi
 
4650
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4097
4651
fi
4098
4652
rm -f conftest.val
4099
 
else
4100
 
  ac_cv_sizeof_int=0
4101
 
fi
4102
 
fi
4103
 
echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4104
 
echo "${ECHO_T}$ac_cv_sizeof_int" >&6
 
4653
fi
 
4654
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
 
4655
echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
 
4656
 
 
4657
 
 
4658
 
4105
4659
cat >>confdefs.h <<_ACEOF
4106
4660
#define SIZEOF_INT $ac_cv_sizeof_int
4107
4661
_ACEOF
4108
4662
 
4109
4663
 
4110
 
echo "$as_me:$LINENO: checking for long" >&5
4111
 
echo $ECHO_N "checking for long... $ECHO_C" >&6
 
4664
{ echo "$as_me:$LINENO: checking for long" >&5
 
4665
echo $ECHO_N "checking for long... $ECHO_C" >&6; }
4112
4666
if test "${ac_cv_type_long+set}" = set; then
4113
4667
  echo $ECHO_N "(cached) $ECHO_C" >&6
4114
4668
else
4119
4673
cat >>conftest.$ac_ext <<_ACEOF
4120
4674
/* end confdefs.h.  */
4121
4675
$ac_includes_default
 
4676
typedef long ac__type_new_;
4122
4677
int
4123
4678
main ()
4124
4679
{
4125
 
if ((long *) 0)
 
4680
if ((ac__type_new_ *) 0)
4126
4681
  return 0;
4127
 
if (sizeof (long))
 
4682
if (sizeof (ac__type_new_))
4128
4683
  return 0;
4129
4684
  ;
4130
4685
  return 0;
4131
4686
}
4132
4687
_ACEOF
4133
4688
rm -f conftest.$ac_objext
4134
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4135
 
  (eval $ac_compile) 2>conftest.er1
 
4689
if { (ac_try="$ac_compile"
 
4690
case "(($ac_try" in
 
4691
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4692
  *) ac_try_echo=$ac_try;;
 
4693
esac
 
4694
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4695
  (eval "$ac_compile") 2>conftest.er1
4136
4696
  ac_status=$?
4137
4697
  grep -v '^ *+' conftest.er1 >conftest.err
4138
4698
  rm -f conftest.er1
4139
4699
  cat conftest.err >&5
4140
4700
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141
 
  (exit $ac_status); } &&
4142
 
         { ac_try='test -z "$ac_c_werror_flag"
4143
 
                         || test ! -s conftest.err'
4144
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4145
 
  (eval $ac_try) 2>&5
4146
 
  ac_status=$?
4147
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148
 
  (exit $ac_status); }; } &&
4149
 
         { ac_try='test -s conftest.$ac_objext'
4150
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4151
 
  (eval $ac_try) 2>&5
4152
 
  ac_status=$?
4153
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154
 
  (exit $ac_status); }; }; then
 
4701
  (exit $ac_status); } && {
 
4702
         test -z "$ac_c_werror_flag" ||
 
4703
         test ! -s conftest.err
 
4704
       } && test -s conftest.$ac_objext; then
4155
4705
  ac_cv_type_long=yes
4156
4706
else
4157
4707
  echo "$as_me: failed program was:" >&5
4158
4708
sed 's/^/| /' conftest.$ac_ext >&5
4159
4709
 
4160
 
ac_cv_type_long=no
4161
 
fi
4162
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4163
 
fi
4164
 
echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4165
 
echo "${ECHO_T}$ac_cv_type_long" >&6
4166
 
 
4167
 
echo "$as_me:$LINENO: checking size of long" >&5
4168
 
echo $ECHO_N "checking size of long... $ECHO_C" >&6
 
4710
        ac_cv_type_long=no
 
4711
fi
 
4712
 
 
4713
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4714
fi
 
4715
{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
 
4716
echo "${ECHO_T}$ac_cv_type_long" >&6; }
 
4717
 
 
4718
# The cast to long int works around a bug in the HP C Compiler
 
4719
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
4720
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
4721
# This bug is HP SR number 8606223364.
 
4722
{ echo "$as_me:$LINENO: checking size of long" >&5
 
4723
echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
4169
4724
if test "${ac_cv_sizeof_long+set}" = set; then
4170
4725
  echo $ECHO_N "(cached) $ECHO_C" >&6
4171
4726
else
4172
 
  if test "$ac_cv_type_long" = yes; then
4173
 
  # The cast to unsigned long works around a bug in the HP C Compiler
4174
 
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4175
 
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4176
 
  # This bug is HP SR number 8606223364.
4177
4727
  if test "$cross_compiling" = yes; then
4178
4728
  # Depending upon the size, compute the lo and hi bounds.
4179
4729
cat >conftest.$ac_ext <<_ACEOF
4183
4733
cat >>conftest.$ac_ext <<_ACEOF
4184
4734
/* end confdefs.h.  */
4185
4735
$ac_includes_default
 
4736
   typedef long ac__type_sizeof_;
4186
4737
int
4187
4738
main ()
4188
4739
{
4189
 
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
 
4740
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4190
4741
test_array [0] = 0
4191
4742
 
4192
4743
  ;
4194
4745
}
4195
4746
_ACEOF
4196
4747
rm -f conftest.$ac_objext
4197
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4198
 
  (eval $ac_compile) 2>conftest.er1
 
4748
if { (ac_try="$ac_compile"
 
4749
case "(($ac_try" in
 
4750
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4751
  *) ac_try_echo=$ac_try;;
 
4752
esac
 
4753
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4754
  (eval "$ac_compile") 2>conftest.er1
4199
4755
  ac_status=$?
4200
4756
  grep -v '^ *+' conftest.er1 >conftest.err
4201
4757
  rm -f conftest.er1
4202
4758
  cat conftest.err >&5
4203
4759
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204
 
  (exit $ac_status); } &&
4205
 
         { ac_try='test -z "$ac_c_werror_flag"
4206
 
                         || test ! -s conftest.err'
4207
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4208
 
  (eval $ac_try) 2>&5
4209
 
  ac_status=$?
4210
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211
 
  (exit $ac_status); }; } &&
4212
 
         { ac_try='test -s conftest.$ac_objext'
4213
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4214
 
  (eval $ac_try) 2>&5
4215
 
  ac_status=$?
4216
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217
 
  (exit $ac_status); }; }; then
 
4760
  (exit $ac_status); } && {
 
4761
         test -z "$ac_c_werror_flag" ||
 
4762
         test ! -s conftest.err
 
4763
       } && test -s conftest.$ac_objext; then
4218
4764
  ac_lo=0 ac_mid=0
4219
4765
  while :; do
4220
4766
    cat >conftest.$ac_ext <<_ACEOF
4224
4770
cat >>conftest.$ac_ext <<_ACEOF
4225
4771
/* end confdefs.h.  */
4226
4772
$ac_includes_default
 
4773
   typedef long ac__type_sizeof_;
4227
4774
int
4228
4775
main ()
4229
4776
{
4230
 
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
 
4777
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4231
4778
test_array [0] = 0
4232
4779
 
4233
4780
  ;
4235
4782
}
4236
4783
_ACEOF
4237
4784
rm -f conftest.$ac_objext
4238
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4239
 
  (eval $ac_compile) 2>conftest.er1
 
4785
if { (ac_try="$ac_compile"
 
4786
case "(($ac_try" in
 
4787
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4788
  *) ac_try_echo=$ac_try;;
 
4789
esac
 
4790
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4791
  (eval "$ac_compile") 2>conftest.er1
4240
4792
  ac_status=$?
4241
4793
  grep -v '^ *+' conftest.er1 >conftest.err
4242
4794
  rm -f conftest.er1
4243
4795
  cat conftest.err >&5
4244
4796
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245
 
  (exit $ac_status); } &&
4246
 
         { ac_try='test -z "$ac_c_werror_flag"
4247
 
                         || test ! -s conftest.err'
4248
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4249
 
  (eval $ac_try) 2>&5
4250
 
  ac_status=$?
4251
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252
 
  (exit $ac_status); }; } &&
4253
 
         { ac_try='test -s conftest.$ac_objext'
4254
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4255
 
  (eval $ac_try) 2>&5
4256
 
  ac_status=$?
4257
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258
 
  (exit $ac_status); }; }; then
 
4797
  (exit $ac_status); } && {
 
4798
         test -z "$ac_c_werror_flag" ||
 
4799
         test ! -s conftest.err
 
4800
       } && test -s conftest.$ac_objext; then
4259
4801
  ac_hi=$ac_mid; break
4260
4802
else
4261
4803
  echo "$as_me: failed program was:" >&5
4262
4804
sed 's/^/| /' conftest.$ac_ext >&5
4263
4805
 
4264
 
ac_lo=`expr $ac_mid + 1`
4265
 
                    if test $ac_lo -le $ac_mid; then
4266
 
                      ac_lo= ac_hi=
4267
 
                      break
4268
 
                    fi
4269
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
4806
        ac_lo=`expr $ac_mid + 1`
 
4807
                        if test $ac_lo -le $ac_mid; then
 
4808
                          ac_lo= ac_hi=
 
4809
                          break
 
4810
                        fi
 
4811
                        ac_mid=`expr 2 '*' $ac_mid + 1`
4270
4812
fi
4271
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4813
 
 
4814
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4272
4815
  done
4273
4816
else
4274
4817
  echo "$as_me: failed program was:" >&5
4275
4818
sed 's/^/| /' conftest.$ac_ext >&5
4276
4819
 
4277
 
cat >conftest.$ac_ext <<_ACEOF
 
4820
        cat >conftest.$ac_ext <<_ACEOF
4278
4821
/* confdefs.h.  */
4279
4822
_ACEOF
4280
4823
cat confdefs.h >>conftest.$ac_ext
4281
4824
cat >>conftest.$ac_ext <<_ACEOF
4282
4825
/* end confdefs.h.  */
4283
4826
$ac_includes_default
 
4827
   typedef long ac__type_sizeof_;
4284
4828
int
4285
4829
main ()
4286
4830
{
4287
 
static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
 
4831
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4288
4832
test_array [0] = 0
4289
4833
 
4290
4834
  ;
4292
4836
}
4293
4837
_ACEOF
4294
4838
rm -f conftest.$ac_objext
4295
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4296
 
  (eval $ac_compile) 2>conftest.er1
 
4839
if { (ac_try="$ac_compile"
 
4840
case "(($ac_try" in
 
4841
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4842
  *) ac_try_echo=$ac_try;;
 
4843
esac
 
4844
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4845
  (eval "$ac_compile") 2>conftest.er1
4297
4846
  ac_status=$?
4298
4847
  grep -v '^ *+' conftest.er1 >conftest.err
4299
4848
  rm -f conftest.er1
4300
4849
  cat conftest.err >&5
4301
4850
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302
 
  (exit $ac_status); } &&
4303
 
         { ac_try='test -z "$ac_c_werror_flag"
4304
 
                         || test ! -s conftest.err'
4305
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4306
 
  (eval $ac_try) 2>&5
4307
 
  ac_status=$?
4308
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309
 
  (exit $ac_status); }; } &&
4310
 
         { ac_try='test -s conftest.$ac_objext'
4311
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4312
 
  (eval $ac_try) 2>&5
4313
 
  ac_status=$?
4314
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315
 
  (exit $ac_status); }; }; then
 
4851
  (exit $ac_status); } && {
 
4852
         test -z "$ac_c_werror_flag" ||
 
4853
         test ! -s conftest.err
 
4854
       } && test -s conftest.$ac_objext; then
4316
4855
  ac_hi=-1 ac_mid=-1
4317
4856
  while :; do
4318
4857
    cat >conftest.$ac_ext <<_ACEOF
4322
4861
cat >>conftest.$ac_ext <<_ACEOF
4323
4862
/* end confdefs.h.  */
4324
4863
$ac_includes_default
 
4864
   typedef long ac__type_sizeof_;
4325
4865
int
4326
4866
main ()
4327
4867
{
4328
 
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
 
4868
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4329
4869
test_array [0] = 0
4330
4870
 
4331
4871
  ;
4333
4873
}
4334
4874
_ACEOF
4335
4875
rm -f conftest.$ac_objext
4336
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4337
 
  (eval $ac_compile) 2>conftest.er1
 
4876
if { (ac_try="$ac_compile"
 
4877
case "(($ac_try" in
 
4878
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4879
  *) ac_try_echo=$ac_try;;
 
4880
esac
 
4881
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4882
  (eval "$ac_compile") 2>conftest.er1
4338
4883
  ac_status=$?
4339
4884
  grep -v '^ *+' conftest.er1 >conftest.err
4340
4885
  rm -f conftest.er1
4341
4886
  cat conftest.err >&5
4342
4887
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343
 
  (exit $ac_status); } &&
4344
 
         { ac_try='test -z "$ac_c_werror_flag"
4345
 
                         || test ! -s conftest.err'
4346
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4347
 
  (eval $ac_try) 2>&5
4348
 
  ac_status=$?
4349
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350
 
  (exit $ac_status); }; } &&
4351
 
         { ac_try='test -s conftest.$ac_objext'
4352
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353
 
  (eval $ac_try) 2>&5
4354
 
  ac_status=$?
4355
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356
 
  (exit $ac_status); }; }; then
 
4888
  (exit $ac_status); } && {
 
4889
         test -z "$ac_c_werror_flag" ||
 
4890
         test ! -s conftest.err
 
4891
       } && test -s conftest.$ac_objext; then
4357
4892
  ac_lo=$ac_mid; break
4358
4893
else
4359
4894
  echo "$as_me: failed program was:" >&5
4360
4895
sed 's/^/| /' conftest.$ac_ext >&5
4361
4896
 
4362
 
ac_hi=`expr '(' $ac_mid ')' - 1`
4363
 
                       if test $ac_mid -le $ac_hi; then
4364
 
                         ac_lo= ac_hi=
4365
 
                         break
4366
 
                       fi
4367
 
                       ac_mid=`expr 2 '*' $ac_mid`
 
4897
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
4898
                        if test $ac_mid -le $ac_hi; then
 
4899
                          ac_lo= ac_hi=
 
4900
                          break
 
4901
                        fi
 
4902
                        ac_mid=`expr 2 '*' $ac_mid`
4368
4903
fi
4369
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4904
 
 
4905
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4370
4906
  done
4371
4907
else
4372
4908
  echo "$as_me: failed program was:" >&5
4373
4909
sed 's/^/| /' conftest.$ac_ext >&5
4374
4910
 
4375
 
ac_lo= ac_hi=
4376
 
fi
4377
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4378
 
fi
4379
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4911
        ac_lo= ac_hi=
 
4912
fi
 
4913
 
 
4914
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4915
fi
 
4916
 
 
4917
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4380
4918
# Binary search between lo and hi bounds.
4381
4919
while test "x$ac_lo" != "x$ac_hi"; do
4382
4920
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4387
4925
cat >>conftest.$ac_ext <<_ACEOF
4388
4926
/* end confdefs.h.  */
4389
4927
$ac_includes_default
 
4928
   typedef long ac__type_sizeof_;
4390
4929
int
4391
4930
main ()
4392
4931
{
4393
 
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
 
4932
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4394
4933
test_array [0] = 0
4395
4934
 
4396
4935
  ;
4398
4937
}
4399
4938
_ACEOF
4400
4939
rm -f conftest.$ac_objext
4401
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4402
 
  (eval $ac_compile) 2>conftest.er1
 
4940
if { (ac_try="$ac_compile"
 
4941
case "(($ac_try" in
 
4942
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4943
  *) ac_try_echo=$ac_try;;
 
4944
esac
 
4945
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4946
  (eval "$ac_compile") 2>conftest.er1
4403
4947
  ac_status=$?
4404
4948
  grep -v '^ *+' conftest.er1 >conftest.err
4405
4949
  rm -f conftest.er1
4406
4950
  cat conftest.err >&5
4407
4951
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408
 
  (exit $ac_status); } &&
4409
 
         { ac_try='test -z "$ac_c_werror_flag"
4410
 
                         || test ! -s conftest.err'
4411
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4412
 
  (eval $ac_try) 2>&5
4413
 
  ac_status=$?
4414
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415
 
  (exit $ac_status); }; } &&
4416
 
         { ac_try='test -s conftest.$ac_objext'
4417
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4418
 
  (eval $ac_try) 2>&5
4419
 
  ac_status=$?
4420
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421
 
  (exit $ac_status); }; }; then
 
4952
  (exit $ac_status); } && {
 
4953
         test -z "$ac_c_werror_flag" ||
 
4954
         test ! -s conftest.err
 
4955
       } && test -s conftest.$ac_objext; then
4422
4956
  ac_hi=$ac_mid
4423
4957
else
4424
4958
  echo "$as_me: failed program was:" >&5
4425
4959
sed 's/^/| /' conftest.$ac_ext >&5
4426
4960
 
4427
 
ac_lo=`expr '(' $ac_mid ')' + 1`
 
4961
        ac_lo=`expr '(' $ac_mid ')' + 1`
4428
4962
fi
4429
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4963
 
 
4964
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4430
4965
done
4431
4966
case $ac_lo in
4432
4967
?*) ac_cv_sizeof_long=$ac_lo;;
4433
 
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
 
4968
'') if test "$ac_cv_type_long" = yes; then
 
4969
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
4434
4970
See \`config.log' for more details." >&5
4435
 
echo "$as_me: error: cannot compute sizeof (long), 77
 
4971
echo "$as_me: error: cannot compute sizeof (long)
4436
4972
See \`config.log' for more details." >&2;}
4437
 
   { (exit 1); exit 1; }; } ;;
 
4973
   { (exit 77); exit 77; }; }
 
4974
   else
 
4975
     ac_cv_sizeof_long=0
 
4976
   fi ;;
4438
4977
esac
4439
4978
else
4440
 
  if test "$cross_compiling" = yes; then
4441
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4442
 
See \`config.log' for more details." >&5
4443
 
echo "$as_me: error: cannot run test program while cross compiling
4444
 
See \`config.log' for more details." >&2;}
4445
 
   { (exit 1); exit 1; }; }
4446
 
else
4447
4979
  cat >conftest.$ac_ext <<_ACEOF
4448
4980
/* confdefs.h.  */
4449
4981
_ACEOF
4451
4983
cat >>conftest.$ac_ext <<_ACEOF
4452
4984
/* end confdefs.h.  */
4453
4985
$ac_includes_default
4454
 
long longval () { return (long) (sizeof (long)); }
4455
 
unsigned long ulongval () { return (long) (sizeof (long)); }
 
4986
   typedef long ac__type_sizeof_;
 
4987
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
4988
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4456
4989
#include <stdio.h>
4457
4990
#include <stdlib.h>
4458
4991
int
4461
4994
 
4462
4995
  FILE *f = fopen ("conftest.val", "w");
4463
4996
  if (! f)
4464
 
    exit (1);
4465
 
  if (((long) (sizeof (long))) < 0)
 
4997
    return 1;
 
4998
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4466
4999
    {
4467
 
      long i = longval ();
4468
 
      if (i != ((long) (sizeof (long))))
4469
 
        exit (1);
 
5000
      long int i = longval ();
 
5001
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
5002
        return 1;
4470
5003
      fprintf (f, "%ld\n", i);
4471
5004
    }
4472
5005
  else
4473
5006
    {
4474
 
      unsigned long i = ulongval ();
4475
 
      if (i != ((long) (sizeof (long))))
4476
 
        exit (1);
 
5007
      unsigned long int i = ulongval ();
 
5008
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
5009
        return 1;
4477
5010
      fprintf (f, "%lu\n", i);
4478
5011
    }
4479
 
  exit (ferror (f) || fclose (f) != 0);
 
5012
  return ferror (f) || fclose (f) != 0;
4480
5013
 
4481
5014
  ;
4482
5015
  return 0;
4483
5016
}
4484
5017
_ACEOF
4485
5018
rm -f conftest$ac_exeext
4486
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4487
 
  (eval $ac_link) 2>&5
 
5019
if { (ac_try="$ac_link"
 
5020
case "(($ac_try" in
 
5021
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5022
  *) ac_try_echo=$ac_try;;
 
5023
esac
 
5024
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5025
  (eval "$ac_link") 2>&5
4488
5026
  ac_status=$?
4489
5027
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490
5028
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4491
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4492
 
  (eval $ac_try) 2>&5
 
5029
  { (case "(($ac_try" in
 
5030
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5031
  *) ac_try_echo=$ac_try;;
 
5032
esac
 
5033
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5034
  (eval "$ac_try") 2>&5
4493
5035
  ac_status=$?
4494
5036
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495
5037
  (exit $ac_status); }; }; then
4500
5042
sed 's/^/| /' conftest.$ac_ext >&5
4501
5043
 
4502
5044
( exit $ac_status )
4503
 
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
 
5045
if test "$ac_cv_type_long" = yes; then
 
5046
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
4504
5047
See \`config.log' for more details." >&5
4505
 
echo "$as_me: error: cannot compute sizeof (long), 77
 
5048
echo "$as_me: error: cannot compute sizeof (long)
4506
5049
See \`config.log' for more details." >&2;}
4507
 
   { (exit 1); exit 1; }; }
4508
 
fi
4509
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4510
 
fi
 
5050
   { (exit 77); exit 77; }; }
 
5051
   else
 
5052
     ac_cv_sizeof_long=0
 
5053
   fi
 
5054
fi
 
5055
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4511
5056
fi
4512
5057
rm -f conftest.val
4513
 
else
4514
 
  ac_cv_sizeof_long=0
4515
 
fi
4516
 
fi
4517
 
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4518
 
echo "${ECHO_T}$ac_cv_sizeof_long" >&6
 
5058
fi
 
5059
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
 
5060
echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
 
5061
 
 
5062
 
 
5063
 
4519
5064
cat >>confdefs.h <<_ACEOF
4520
5065
#define SIZEOF_LONG $ac_cv_sizeof_long
4521
5066
_ACEOF
4522
5067
 
4523
5068
 
4524
 
echo "$as_me:$LINENO: checking for long long" >&5
4525
 
echo $ECHO_N "checking for long long... $ECHO_C" >&6
 
5069
{ echo "$as_me:$LINENO: checking for long long" >&5
 
5070
echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
4526
5071
if test "${ac_cv_type_long_long+set}" = set; then
4527
5072
  echo $ECHO_N "(cached) $ECHO_C" >&6
4528
5073
else
4533
5078
cat >>conftest.$ac_ext <<_ACEOF
4534
5079
/* end confdefs.h.  */
4535
5080
$ac_includes_default
 
5081
typedef long long ac__type_new_;
4536
5082
int
4537
5083
main ()
4538
5084
{
4539
 
if ((long long *) 0)
 
5085
if ((ac__type_new_ *) 0)
4540
5086
  return 0;
4541
 
if (sizeof (long long))
 
5087
if (sizeof (ac__type_new_))
4542
5088
  return 0;
4543
5089
  ;
4544
5090
  return 0;
4545
5091
}
4546
5092
_ACEOF
4547
5093
rm -f conftest.$ac_objext
4548
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4549
 
  (eval $ac_compile) 2>conftest.er1
 
5094
if { (ac_try="$ac_compile"
 
5095
case "(($ac_try" in
 
5096
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5097
  *) ac_try_echo=$ac_try;;
 
5098
esac
 
5099
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5100
  (eval "$ac_compile") 2>conftest.er1
4550
5101
  ac_status=$?
4551
5102
  grep -v '^ *+' conftest.er1 >conftest.err
4552
5103
  rm -f conftest.er1
4553
5104
  cat conftest.err >&5
4554
5105
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555
 
  (exit $ac_status); } &&
4556
 
         { ac_try='test -z "$ac_c_werror_flag"
4557
 
                         || test ! -s conftest.err'
4558
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4559
 
  (eval $ac_try) 2>&5
4560
 
  ac_status=$?
4561
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562
 
  (exit $ac_status); }; } &&
4563
 
         { ac_try='test -s conftest.$ac_objext'
4564
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4565
 
  (eval $ac_try) 2>&5
4566
 
  ac_status=$?
4567
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568
 
  (exit $ac_status); }; }; then
 
5106
  (exit $ac_status); } && {
 
5107
         test -z "$ac_c_werror_flag" ||
 
5108
         test ! -s conftest.err
 
5109
       } && test -s conftest.$ac_objext; then
4569
5110
  ac_cv_type_long_long=yes
4570
5111
else
4571
5112
  echo "$as_me: failed program was:" >&5
4572
5113
sed 's/^/| /' conftest.$ac_ext >&5
4573
5114
 
4574
 
ac_cv_type_long_long=no
4575
 
fi
4576
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4577
 
fi
4578
 
echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
4579
 
echo "${ECHO_T}$ac_cv_type_long_long" >&6
4580
 
 
4581
 
echo "$as_me:$LINENO: checking size of long long" >&5
4582
 
echo $ECHO_N "checking size of long long... $ECHO_C" >&6
 
5115
        ac_cv_type_long_long=no
 
5116
fi
 
5117
 
 
5118
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5119
fi
 
5120
{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
 
5121
echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
 
5122
 
 
5123
# The cast to long int works around a bug in the HP C Compiler
 
5124
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
5125
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
5126
# This bug is HP SR number 8606223364.
 
5127
{ echo "$as_me:$LINENO: checking size of long long" >&5
 
5128
echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
4583
5129
if test "${ac_cv_sizeof_long_long+set}" = set; then
4584
5130
  echo $ECHO_N "(cached) $ECHO_C" >&6
4585
5131
else
4586
 
  if test "$ac_cv_type_long_long" = yes; then
4587
 
  # The cast to unsigned long works around a bug in the HP C Compiler
4588
 
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4589
 
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4590
 
  # This bug is HP SR number 8606223364.
4591
5132
  if test "$cross_compiling" = yes; then
4592
5133
  # Depending upon the size, compute the lo and hi bounds.
4593
5134
cat >conftest.$ac_ext <<_ACEOF
4597
5138
cat >>conftest.$ac_ext <<_ACEOF
4598
5139
/* end confdefs.h.  */
4599
5140
$ac_includes_default
 
5141
   typedef long long ac__type_sizeof_;
4600
5142
int
4601
5143
main ()
4602
5144
{
4603
 
static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
 
5145
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4604
5146
test_array [0] = 0
4605
5147
 
4606
5148
  ;
4608
5150
}
4609
5151
_ACEOF
4610
5152
rm -f conftest.$ac_objext
4611
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4612
 
  (eval $ac_compile) 2>conftest.er1
 
5153
if { (ac_try="$ac_compile"
 
5154
case "(($ac_try" in
 
5155
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5156
  *) ac_try_echo=$ac_try;;
 
5157
esac
 
5158
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5159
  (eval "$ac_compile") 2>conftest.er1
4613
5160
  ac_status=$?
4614
5161
  grep -v '^ *+' conftest.er1 >conftest.err
4615
5162
  rm -f conftest.er1
4616
5163
  cat conftest.err >&5
4617
5164
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618
 
  (exit $ac_status); } &&
4619
 
         { ac_try='test -z "$ac_c_werror_flag"
4620
 
                         || test ! -s conftest.err'
4621
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4622
 
  (eval $ac_try) 2>&5
4623
 
  ac_status=$?
4624
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625
 
  (exit $ac_status); }; } &&
4626
 
         { ac_try='test -s conftest.$ac_objext'
4627
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4628
 
  (eval $ac_try) 2>&5
4629
 
  ac_status=$?
4630
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631
 
  (exit $ac_status); }; }; then
 
5165
  (exit $ac_status); } && {
 
5166
         test -z "$ac_c_werror_flag" ||
 
5167
         test ! -s conftest.err
 
5168
       } && test -s conftest.$ac_objext; then
4632
5169
  ac_lo=0 ac_mid=0
4633
5170
  while :; do
4634
5171
    cat >conftest.$ac_ext <<_ACEOF
4638
5175
cat >>conftest.$ac_ext <<_ACEOF
4639
5176
/* end confdefs.h.  */
4640
5177
$ac_includes_default
 
5178
   typedef long long ac__type_sizeof_;
4641
5179
int
4642
5180
main ()
4643
5181
{
4644
 
static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
 
5182
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4645
5183
test_array [0] = 0
4646
5184
 
4647
5185
  ;
4649
5187
}
4650
5188
_ACEOF
4651
5189
rm -f conftest.$ac_objext
4652
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4653
 
  (eval $ac_compile) 2>conftest.er1
 
5190
if { (ac_try="$ac_compile"
 
5191
case "(($ac_try" in
 
5192
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5193
  *) ac_try_echo=$ac_try;;
 
5194
esac
 
5195
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5196
  (eval "$ac_compile") 2>conftest.er1
4654
5197
  ac_status=$?
4655
5198
  grep -v '^ *+' conftest.er1 >conftest.err
4656
5199
  rm -f conftest.er1
4657
5200
  cat conftest.err >&5
4658
5201
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659
 
  (exit $ac_status); } &&
4660
 
         { ac_try='test -z "$ac_c_werror_flag"
4661
 
                         || test ! -s conftest.err'
4662
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663
 
  (eval $ac_try) 2>&5
4664
 
  ac_status=$?
4665
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666
 
  (exit $ac_status); }; } &&
4667
 
         { ac_try='test -s conftest.$ac_objext'
4668
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669
 
  (eval $ac_try) 2>&5
4670
 
  ac_status=$?
4671
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672
 
  (exit $ac_status); }; }; then
 
5202
  (exit $ac_status); } && {
 
5203
         test -z "$ac_c_werror_flag" ||
 
5204
         test ! -s conftest.err
 
5205
       } && test -s conftest.$ac_objext; then
4673
5206
  ac_hi=$ac_mid; break
4674
5207
else
4675
5208
  echo "$as_me: failed program was:" >&5
4676
5209
sed 's/^/| /' conftest.$ac_ext >&5
4677
5210
 
4678
 
ac_lo=`expr $ac_mid + 1`
4679
 
                    if test $ac_lo -le $ac_mid; then
4680
 
                      ac_lo= ac_hi=
4681
 
                      break
4682
 
                    fi
4683
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
5211
        ac_lo=`expr $ac_mid + 1`
 
5212
                        if test $ac_lo -le $ac_mid; then
 
5213
                          ac_lo= ac_hi=
 
5214
                          break
 
5215
                        fi
 
5216
                        ac_mid=`expr 2 '*' $ac_mid + 1`
4684
5217
fi
4685
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5218
 
 
5219
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4686
5220
  done
4687
5221
else
4688
5222
  echo "$as_me: failed program was:" >&5
4689
5223
sed 's/^/| /' conftest.$ac_ext >&5
4690
5224
 
4691
 
cat >conftest.$ac_ext <<_ACEOF
 
5225
        cat >conftest.$ac_ext <<_ACEOF
4692
5226
/* confdefs.h.  */
4693
5227
_ACEOF
4694
5228
cat confdefs.h >>conftest.$ac_ext
4695
5229
cat >>conftest.$ac_ext <<_ACEOF
4696
5230
/* end confdefs.h.  */
4697
5231
$ac_includes_default
 
5232
   typedef long long ac__type_sizeof_;
4698
5233
int
4699
5234
main ()
4700
5235
{
4701
 
static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
 
5236
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4702
5237
test_array [0] = 0
4703
5238
 
4704
5239
  ;
4706
5241
}
4707
5242
_ACEOF
4708
5243
rm -f conftest.$ac_objext
4709
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4710
 
  (eval $ac_compile) 2>conftest.er1
 
5244
if { (ac_try="$ac_compile"
 
5245
case "(($ac_try" in
 
5246
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5247
  *) ac_try_echo=$ac_try;;
 
5248
esac
 
5249
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5250
  (eval "$ac_compile") 2>conftest.er1
4711
5251
  ac_status=$?
4712
5252
  grep -v '^ *+' conftest.er1 >conftest.err
4713
5253
  rm -f conftest.er1
4714
5254
  cat conftest.err >&5
4715
5255
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716
 
  (exit $ac_status); } &&
4717
 
         { ac_try='test -z "$ac_c_werror_flag"
4718
 
                         || test ! -s conftest.err'
4719
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4720
 
  (eval $ac_try) 2>&5
4721
 
  ac_status=$?
4722
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723
 
  (exit $ac_status); }; } &&
4724
 
         { ac_try='test -s conftest.$ac_objext'
4725
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4726
 
  (eval $ac_try) 2>&5
4727
 
  ac_status=$?
4728
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729
 
  (exit $ac_status); }; }; then
 
5256
  (exit $ac_status); } && {
 
5257
         test -z "$ac_c_werror_flag" ||
 
5258
         test ! -s conftest.err
 
5259
       } && test -s conftest.$ac_objext; then
4730
5260
  ac_hi=-1 ac_mid=-1
4731
5261
  while :; do
4732
5262
    cat >conftest.$ac_ext <<_ACEOF
4736
5266
cat >>conftest.$ac_ext <<_ACEOF
4737
5267
/* end confdefs.h.  */
4738
5268
$ac_includes_default
 
5269
   typedef long long ac__type_sizeof_;
4739
5270
int
4740
5271
main ()
4741
5272
{
4742
 
static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
 
5273
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4743
5274
test_array [0] = 0
4744
5275
 
4745
5276
  ;
4747
5278
}
4748
5279
_ACEOF
4749
5280
rm -f conftest.$ac_objext
4750
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4751
 
  (eval $ac_compile) 2>conftest.er1
 
5281
if { (ac_try="$ac_compile"
 
5282
case "(($ac_try" in
 
5283
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5284
  *) ac_try_echo=$ac_try;;
 
5285
esac
 
5286
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5287
  (eval "$ac_compile") 2>conftest.er1
4752
5288
  ac_status=$?
4753
5289
  grep -v '^ *+' conftest.er1 >conftest.err
4754
5290
  rm -f conftest.er1
4755
5291
  cat conftest.err >&5
4756
5292
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757
 
  (exit $ac_status); } &&
4758
 
         { ac_try='test -z "$ac_c_werror_flag"
4759
 
                         || test ! -s conftest.err'
4760
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4761
 
  (eval $ac_try) 2>&5
4762
 
  ac_status=$?
4763
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764
 
  (exit $ac_status); }; } &&
4765
 
         { ac_try='test -s conftest.$ac_objext'
4766
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4767
 
  (eval $ac_try) 2>&5
4768
 
  ac_status=$?
4769
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770
 
  (exit $ac_status); }; }; then
 
5293
  (exit $ac_status); } && {
 
5294
         test -z "$ac_c_werror_flag" ||
 
5295
         test ! -s conftest.err
 
5296
       } && test -s conftest.$ac_objext; then
4771
5297
  ac_lo=$ac_mid; break
4772
5298
else
4773
5299
  echo "$as_me: failed program was:" >&5
4774
5300
sed 's/^/| /' conftest.$ac_ext >&5
4775
5301
 
4776
 
ac_hi=`expr '(' $ac_mid ')' - 1`
4777
 
                       if test $ac_mid -le $ac_hi; then
4778
 
                         ac_lo= ac_hi=
4779
 
                         break
4780
 
                       fi
4781
 
                       ac_mid=`expr 2 '*' $ac_mid`
 
5302
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
5303
                        if test $ac_mid -le $ac_hi; then
 
5304
                          ac_lo= ac_hi=
 
5305
                          break
 
5306
                        fi
 
5307
                        ac_mid=`expr 2 '*' $ac_mid`
4782
5308
fi
4783
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5309
 
 
5310
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4784
5311
  done
4785
5312
else
4786
5313
  echo "$as_me: failed program was:" >&5
4787
5314
sed 's/^/| /' conftest.$ac_ext >&5
4788
5315
 
4789
 
ac_lo= ac_hi=
4790
 
fi
4791
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4792
 
fi
4793
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5316
        ac_lo= ac_hi=
 
5317
fi
 
5318
 
 
5319
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5320
fi
 
5321
 
 
5322
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4794
5323
# Binary search between lo and hi bounds.
4795
5324
while test "x$ac_lo" != "x$ac_hi"; do
4796
5325
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4801
5330
cat >>conftest.$ac_ext <<_ACEOF
4802
5331
/* end confdefs.h.  */
4803
5332
$ac_includes_default
 
5333
   typedef long long ac__type_sizeof_;
4804
5334
int
4805
5335
main ()
4806
5336
{
4807
 
static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
 
5337
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4808
5338
test_array [0] = 0
4809
5339
 
4810
5340
  ;
4812
5342
}
4813
5343
_ACEOF
4814
5344
rm -f conftest.$ac_objext
4815
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4816
 
  (eval $ac_compile) 2>conftest.er1
 
5345
if { (ac_try="$ac_compile"
 
5346
case "(($ac_try" in
 
5347
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5348
  *) ac_try_echo=$ac_try;;
 
5349
esac
 
5350
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5351
  (eval "$ac_compile") 2>conftest.er1
4817
5352
  ac_status=$?
4818
5353
  grep -v '^ *+' conftest.er1 >conftest.err
4819
5354
  rm -f conftest.er1
4820
5355
  cat conftest.err >&5
4821
5356
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822
 
  (exit $ac_status); } &&
4823
 
         { ac_try='test -z "$ac_c_werror_flag"
4824
 
                         || test ! -s conftest.err'
4825
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826
 
  (eval $ac_try) 2>&5
4827
 
  ac_status=$?
4828
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829
 
  (exit $ac_status); }; } &&
4830
 
         { ac_try='test -s conftest.$ac_objext'
4831
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4832
 
  (eval $ac_try) 2>&5
4833
 
  ac_status=$?
4834
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835
 
  (exit $ac_status); }; }; then
 
5357
  (exit $ac_status); } && {
 
5358
         test -z "$ac_c_werror_flag" ||
 
5359
         test ! -s conftest.err
 
5360
       } && test -s conftest.$ac_objext; then
4836
5361
  ac_hi=$ac_mid
4837
5362
else
4838
5363
  echo "$as_me: failed program was:" >&5
4839
5364
sed 's/^/| /' conftest.$ac_ext >&5
4840
5365
 
4841
 
ac_lo=`expr '(' $ac_mid ')' + 1`
 
5366
        ac_lo=`expr '(' $ac_mid ')' + 1`
4842
5367
fi
4843
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5368
 
 
5369
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4844
5370
done
4845
5371
case $ac_lo in
4846
5372
?*) ac_cv_sizeof_long_long=$ac_lo;;
4847
 
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
 
5373
'') if test "$ac_cv_type_long_long" = yes; then
 
5374
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
4848
5375
See \`config.log' for more details." >&5
4849
 
echo "$as_me: error: cannot compute sizeof (long long), 77
 
5376
echo "$as_me: error: cannot compute sizeof (long long)
4850
5377
See \`config.log' for more details." >&2;}
4851
 
   { (exit 1); exit 1; }; } ;;
 
5378
   { (exit 77); exit 77; }; }
 
5379
   else
 
5380
     ac_cv_sizeof_long_long=0
 
5381
   fi ;;
4852
5382
esac
4853
5383
else
4854
 
  if test "$cross_compiling" = yes; then
4855
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4856
 
See \`config.log' for more details." >&5
4857
 
echo "$as_me: error: cannot run test program while cross compiling
4858
 
See \`config.log' for more details." >&2;}
4859
 
   { (exit 1); exit 1; }; }
4860
 
else
4861
5384
  cat >conftest.$ac_ext <<_ACEOF
4862
5385
/* confdefs.h.  */
4863
5386
_ACEOF
4865
5388
cat >>conftest.$ac_ext <<_ACEOF
4866
5389
/* end confdefs.h.  */
4867
5390
$ac_includes_default
4868
 
long longval () { return (long) (sizeof (long long)); }
4869
 
unsigned long ulongval () { return (long) (sizeof (long long)); }
 
5391
   typedef long long ac__type_sizeof_;
 
5392
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
5393
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4870
5394
#include <stdio.h>
4871
5395
#include <stdlib.h>
4872
5396
int
4875
5399
 
4876
5400
  FILE *f = fopen ("conftest.val", "w");
4877
5401
  if (! f)
4878
 
    exit (1);
4879
 
  if (((long) (sizeof (long long))) < 0)
 
5402
    return 1;
 
5403
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4880
5404
    {
4881
 
      long i = longval ();
4882
 
      if (i != ((long) (sizeof (long long))))
4883
 
        exit (1);
 
5405
      long int i = longval ();
 
5406
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
5407
        return 1;
4884
5408
      fprintf (f, "%ld\n", i);
4885
5409
    }
4886
5410
  else
4887
5411
    {
4888
 
      unsigned long i = ulongval ();
4889
 
      if (i != ((long) (sizeof (long long))))
4890
 
        exit (1);
 
5412
      unsigned long int i = ulongval ();
 
5413
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
5414
        return 1;
4891
5415
      fprintf (f, "%lu\n", i);
4892
5416
    }
4893
 
  exit (ferror (f) || fclose (f) != 0);
 
5417
  return ferror (f) || fclose (f) != 0;
4894
5418
 
4895
5419
  ;
4896
5420
  return 0;
4897
5421
}
4898
5422
_ACEOF
4899
5423
rm -f conftest$ac_exeext
4900
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4901
 
  (eval $ac_link) 2>&5
 
5424
if { (ac_try="$ac_link"
 
5425
case "(($ac_try" in
 
5426
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5427
  *) ac_try_echo=$ac_try;;
 
5428
esac
 
5429
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5430
  (eval "$ac_link") 2>&5
4902
5431
  ac_status=$?
4903
5432
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904
5433
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4905
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4906
 
  (eval $ac_try) 2>&5
 
5434
  { (case "(($ac_try" in
 
5435
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5436
  *) ac_try_echo=$ac_try;;
 
5437
esac
 
5438
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5439
  (eval "$ac_try") 2>&5
4907
5440
  ac_status=$?
4908
5441
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909
5442
  (exit $ac_status); }; }; then
4914
5447
sed 's/^/| /' conftest.$ac_ext >&5
4915
5448
 
4916
5449
( exit $ac_status )
4917
 
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
 
5450
if test "$ac_cv_type_long_long" = yes; then
 
5451
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
4918
5452
See \`config.log' for more details." >&5
4919
 
echo "$as_me: error: cannot compute sizeof (long long), 77
 
5453
echo "$as_me: error: cannot compute sizeof (long long)
4920
5454
See \`config.log' for more details." >&2;}
4921
 
   { (exit 1); exit 1; }; }
4922
 
fi
4923
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4924
 
fi
 
5455
   { (exit 77); exit 77; }; }
 
5456
   else
 
5457
     ac_cv_sizeof_long_long=0
 
5458
   fi
 
5459
fi
 
5460
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4925
5461
fi
4926
5462
rm -f conftest.val
4927
 
else
4928
 
  ac_cv_sizeof_long_long=0
4929
 
fi
4930
 
fi
4931
 
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
4932
 
echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
 
5463
fi
 
5464
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
 
5465
echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
 
5466
 
 
5467
 
 
5468
 
4933
5469
cat >>confdefs.h <<_ACEOF
4934
5470
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4935
5471
_ACEOF
4936
5472
 
4937
5473
 
4938
5474
if test "$GCC" = "yes"; then
4939
 
  echo "$as_me:$LINENO: checking for gcc -Wformat -Werror sanity" >&5
4940
 
echo $ECHO_N "checking for gcc -Wformat -Werror sanity... $ECHO_C" >&6
 
5475
  { echo "$as_me:$LINENO: checking for gcc -Wformat -Werror sanity" >&5
 
5476
echo $ECHO_N "checking for gcc -Wformat -Werror sanity... $ECHO_C" >&6; }
4941
5477
if test "${ne_cv_cc_werror+set}" = set; then
4942
5478
  echo $ECHO_N "(cached) $ECHO_C" >&6
4943
5479
else
4962
5498
}
4963
5499
_ACEOF
4964
5500
rm -f conftest.$ac_objext
4965
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4966
 
  (eval $ac_compile) 2>conftest.er1
 
5501
if { (ac_try="$ac_compile"
 
5502
case "(($ac_try" in
 
5503
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5504
  *) ac_try_echo=$ac_try;;
 
5505
esac
 
5506
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5507
  (eval "$ac_compile") 2>conftest.er1
4967
5508
  ac_status=$?
4968
5509
  grep -v '^ *+' conftest.er1 >conftest.err
4969
5510
  rm -f conftest.er1
4970
5511
  cat conftest.err >&5
4971
5512
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972
 
  (exit $ac_status); } &&
4973
 
         { ac_try='test -z "$ac_c_werror_flag"
4974
 
                         || test ! -s conftest.err'
4975
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4976
 
  (eval $ac_try) 2>&5
4977
 
  ac_status=$?
4978
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979
 
  (exit $ac_status); }; } &&
4980
 
         { ac_try='test -s conftest.$ac_objext'
4981
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4982
 
  (eval $ac_try) 2>&5
4983
 
  ac_status=$?
4984
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985
 
  (exit $ac_status); }; }; then
 
5513
  (exit $ac_status); } && {
 
5514
         test -z "$ac_c_werror_flag" ||
 
5515
         test ! -s conftest.err
 
5516
       } && test -s conftest.$ac_objext; then
4986
5517
  ne_cv_cc_werror=yes
4987
5518
else
4988
5519
  echo "$as_me: failed program was:" >&5
4989
5520
sed 's/^/| /' conftest.$ac_ext >&5
4990
5521
 
4991
 
ne_cv_cc_werror=no
 
5522
        ne_cv_cc_werror=no
4992
5523
fi
4993
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5524
 
 
5525
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4994
5526
  CPPFLAGS=$ne_save_CPPFLAGS
4995
5527
fi
4996
 
echo "$as_me:$LINENO: result: $ne_cv_cc_werror" >&5
4997
 
echo "${ECHO_T}$ne_cv_cc_werror" >&6
 
5528
{ echo "$as_me:$LINENO: result: $ne_cv_cc_werror" >&5
 
5529
echo "${ECHO_T}$ne_cv_cc_werror" >&6; }
4998
5530
  ne_fmt_trycompile=$ne_cv_cc_werror
4999
5531
else
5000
5532
  ne_fmt_trycompile=no
5025
5557
for ac_header in errno.h stdarg.h string.h stdlib.h
5026
5558
do
5027
5559
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5028
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5029
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
5030
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5031
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5560
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5561
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5562
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5563
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5032
5564
  echo $ECHO_N "(cached) $ECHO_C" >&6
5033
5565
fi
5034
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5035
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5566
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5567
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5568
echo "${ECHO_T}$ac_res" >&6; }
5036
5569
else
5037
5570
  # Is the header compilable?
5038
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
5039
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
5571
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5572
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5040
5573
cat >conftest.$ac_ext <<_ACEOF
5041
5574
/* confdefs.h.  */
5042
5575
_ACEOF
5047
5580
#include <$ac_header>
5048
5581
_ACEOF
5049
5582
rm -f conftest.$ac_objext
5050
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5051
 
  (eval $ac_compile) 2>conftest.er1
 
5583
if { (ac_try="$ac_compile"
 
5584
case "(($ac_try" in
 
5585
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5586
  *) ac_try_echo=$ac_try;;
 
5587
esac
 
5588
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5589
  (eval "$ac_compile") 2>conftest.er1
5052
5590
  ac_status=$?
5053
5591
  grep -v '^ *+' conftest.er1 >conftest.err
5054
5592
  rm -f conftest.er1
5055
5593
  cat conftest.err >&5
5056
5594
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057
 
  (exit $ac_status); } &&
5058
 
         { ac_try='test -z "$ac_c_werror_flag"
5059
 
                         || test ! -s conftest.err'
5060
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5061
 
  (eval $ac_try) 2>&5
5062
 
  ac_status=$?
5063
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064
 
  (exit $ac_status); }; } &&
5065
 
         { ac_try='test -s conftest.$ac_objext'
5066
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5067
 
  (eval $ac_try) 2>&5
5068
 
  ac_status=$?
5069
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070
 
  (exit $ac_status); }; }; then
 
5595
  (exit $ac_status); } && {
 
5596
         test -z "$ac_c_werror_flag" ||
 
5597
         test ! -s conftest.err
 
5598
       } && test -s conftest.$ac_objext; then
5071
5599
  ac_header_compiler=yes
5072
5600
else
5073
5601
  echo "$as_me: failed program was:" >&5
5074
5602
sed 's/^/| /' conftest.$ac_ext >&5
5075
5603
 
5076
 
ac_header_compiler=no
 
5604
        ac_header_compiler=no
5077
5605
fi
5078
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5079
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5080
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
5606
 
 
5607
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5608
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5609
echo "${ECHO_T}$ac_header_compiler" >&6; }
5081
5610
 
5082
5611
# Is the header present?
5083
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
5084
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
5612
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5613
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5085
5614
cat >conftest.$ac_ext <<_ACEOF
5086
5615
/* confdefs.h.  */
5087
5616
_ACEOF
5090
5619
/* end confdefs.h.  */
5091
5620
#include <$ac_header>
5092
5621
_ACEOF
5093
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5094
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5622
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5623
case "(($ac_try" in
 
5624
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5625
  *) ac_try_echo=$ac_try;;
 
5626
esac
 
5627
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5628
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5095
5629
  ac_status=$?
5096
5630
  grep -v '^ *+' conftest.er1 >conftest.err
5097
5631
  rm -f conftest.er1
5098
5632
  cat conftest.err >&5
5099
5633
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100
 
  (exit $ac_status); } >/dev/null; then
5101
 
  if test -s conftest.err; then
5102
 
    ac_cpp_err=$ac_c_preproc_warn_flag
5103
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5104
 
  else
5105
 
    ac_cpp_err=
5106
 
  fi
5107
 
else
5108
 
  ac_cpp_err=yes
5109
 
fi
5110
 
if test -z "$ac_cpp_err"; then
 
5634
  (exit $ac_status); } >/dev/null && {
 
5635
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5636
         test ! -s conftest.err
 
5637
       }; then
5111
5638
  ac_header_preproc=yes
5112
5639
else
5113
5640
  echo "$as_me: failed program was:" >&5
5115
5642
 
5116
5643
  ac_header_preproc=no
5117
5644
fi
 
5645
 
5118
5646
rm -f conftest.err conftest.$ac_ext
5119
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5120
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
5647
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5648
echo "${ECHO_T}$ac_header_preproc" >&6; }
5121
5649
 
5122
5650
# So?  What about this header?
5123
5651
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5141
5669
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5142
5670
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5143
5671
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5144
 
    (
5145
 
      cat <<\_ASBOX
 
5672
    ( cat <<\_ASBOX
5146
5673
## -------------------------------- ##
5147
5674
## Report this to sitecopy@lyra.org ##
5148
5675
## -------------------------------- ##
5149
5676
_ASBOX
5150
 
    ) |
5151
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
5677
     ) | sed "s/^/$as_me: WARNING:     /" >&2
5152
5678
    ;;
5153
5679
esac
5154
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
5155
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5156
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5680
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5681
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5682
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5157
5683
  echo $ECHO_N "(cached) $ECHO_C" >&6
5158
5684
else
5159
5685
  eval "$as_ac_Header=\$ac_header_preproc"
5160
5686
fi
5161
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5162
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5687
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5688
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5689
echo "${ECHO_T}$ac_res" >&6; }
5163
5690
 
5164
5691
fi
5165
5692
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5176
5703
 
5177
5704
 
5178
5705
 
5179
 
echo "$as_me:$LINENO: checking for size_t" >&5
5180
 
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
 
5706
{ echo "$as_me:$LINENO: checking for size_t" >&5
 
5707
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5181
5708
if test "${ac_cv_type_size_t+set}" = set; then
5182
5709
  echo $ECHO_N "(cached) $ECHO_C" >&6
5183
5710
else
5188
5715
cat >>conftest.$ac_ext <<_ACEOF
5189
5716
/* end confdefs.h.  */
5190
5717
$ac_includes_default
 
5718
 
 
5719
 
 
5720
typedef size_t ac__type_new_;
5191
5721
int
5192
5722
main ()
5193
5723
{
5194
 
if ((size_t *) 0)
 
5724
if ((ac__type_new_ *) 0)
5195
5725
  return 0;
5196
 
if (sizeof (size_t))
 
5726
if (sizeof (ac__type_new_))
5197
5727
  return 0;
5198
5728
  ;
5199
5729
  return 0;
5200
5730
}
5201
5731
_ACEOF
5202
5732
rm -f conftest.$ac_objext
5203
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5204
 
  (eval $ac_compile) 2>conftest.er1
 
5733
if { (ac_try="$ac_compile"
 
5734
case "(($ac_try" in
 
5735
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5736
  *) ac_try_echo=$ac_try;;
 
5737
esac
 
5738
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5739
  (eval "$ac_compile") 2>conftest.er1
5205
5740
  ac_status=$?
5206
5741
  grep -v '^ *+' conftest.er1 >conftest.err
5207
5742
  rm -f conftest.er1
5208
5743
  cat conftest.err >&5
5209
5744
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210
 
  (exit $ac_status); } &&
5211
 
         { ac_try='test -z "$ac_c_werror_flag"
5212
 
                         || test ! -s conftest.err'
5213
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5214
 
  (eval $ac_try) 2>&5
5215
 
  ac_status=$?
5216
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217
 
  (exit $ac_status); }; } &&
5218
 
         { ac_try='test -s conftest.$ac_objext'
5219
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5220
 
  (eval $ac_try) 2>&5
5221
 
  ac_status=$?
5222
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223
 
  (exit $ac_status); }; }; then
 
5745
  (exit $ac_status); } && {
 
5746
         test -z "$ac_c_werror_flag" ||
 
5747
         test ! -s conftest.err
 
5748
       } && test -s conftest.$ac_objext; then
5224
5749
  ac_cv_type_size_t=yes
5225
5750
else
5226
5751
  echo "$as_me: failed program was:" >&5
5227
5752
sed 's/^/| /' conftest.$ac_ext >&5
5228
5753
 
5229
 
ac_cv_type_size_t=no
5230
 
fi
5231
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5232
 
fi
5233
 
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5234
 
echo "${ECHO_T}$ac_cv_type_size_t" >&6
5235
 
 
5236
 
echo "$as_me:$LINENO: checking size of size_t" >&5
5237
 
echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
 
5754
        ac_cv_type_size_t=no
 
5755
fi
 
5756
 
 
5757
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5758
fi
 
5759
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
5760
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
 
5761
 
 
5762
# The cast to long int works around a bug in the HP C Compiler
 
5763
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
5764
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
5765
# This bug is HP SR number 8606223364.
 
5766
{ echo "$as_me:$LINENO: checking size of size_t" >&5
 
5767
echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
5238
5768
if test "${ac_cv_sizeof_size_t+set}" = set; then
5239
5769
  echo $ECHO_N "(cached) $ECHO_C" >&6
5240
5770
else
5241
 
  if test "$ac_cv_type_size_t" = yes; then
5242
 
  # The cast to unsigned long works around a bug in the HP C Compiler
5243
 
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5244
 
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5245
 
  # This bug is HP SR number 8606223364.
5246
5771
  if test "$cross_compiling" = yes; then
5247
5772
  # Depending upon the size, compute the lo and hi bounds.
5248
5773
cat >conftest.$ac_ext <<_ACEOF
5252
5777
cat >>conftest.$ac_ext <<_ACEOF
5253
5778
/* end confdefs.h.  */
5254
5779
$ac_includes_default
 
5780
 
 
5781
 
 
5782
   typedef size_t ac__type_sizeof_;
5255
5783
int
5256
5784
main ()
5257
5785
{
5258
 
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
 
5786
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5259
5787
test_array [0] = 0
5260
5788
 
5261
5789
  ;
5263
5791
}
5264
5792
_ACEOF
5265
5793
rm -f conftest.$ac_objext
5266
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5267
 
  (eval $ac_compile) 2>conftest.er1
 
5794
if { (ac_try="$ac_compile"
 
5795
case "(($ac_try" in
 
5796
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5797
  *) ac_try_echo=$ac_try;;
 
5798
esac
 
5799
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5800
  (eval "$ac_compile") 2>conftest.er1
5268
5801
  ac_status=$?
5269
5802
  grep -v '^ *+' conftest.er1 >conftest.err
5270
5803
  rm -f conftest.er1
5271
5804
  cat conftest.err >&5
5272
5805
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273
 
  (exit $ac_status); } &&
5274
 
         { ac_try='test -z "$ac_c_werror_flag"
5275
 
                         || test ! -s conftest.err'
5276
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5277
 
  (eval $ac_try) 2>&5
5278
 
  ac_status=$?
5279
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280
 
  (exit $ac_status); }; } &&
5281
 
         { ac_try='test -s conftest.$ac_objext'
5282
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5283
 
  (eval $ac_try) 2>&5
5284
 
  ac_status=$?
5285
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286
 
  (exit $ac_status); }; }; then
 
5806
  (exit $ac_status); } && {
 
5807
         test -z "$ac_c_werror_flag" ||
 
5808
         test ! -s conftest.err
 
5809
       } && test -s conftest.$ac_objext; then
5287
5810
  ac_lo=0 ac_mid=0
5288
5811
  while :; do
5289
5812
    cat >conftest.$ac_ext <<_ACEOF
5293
5816
cat >>conftest.$ac_ext <<_ACEOF
5294
5817
/* end confdefs.h.  */
5295
5818
$ac_includes_default
 
5819
 
 
5820
 
 
5821
   typedef size_t ac__type_sizeof_;
5296
5822
int
5297
5823
main ()
5298
5824
{
5299
 
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
 
5825
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5300
5826
test_array [0] = 0
5301
5827
 
5302
5828
  ;
5304
5830
}
5305
5831
_ACEOF
5306
5832
rm -f conftest.$ac_objext
5307
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5308
 
  (eval $ac_compile) 2>conftest.er1
 
5833
if { (ac_try="$ac_compile"
 
5834
case "(($ac_try" in
 
5835
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5836
  *) ac_try_echo=$ac_try;;
 
5837
esac
 
5838
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5839
  (eval "$ac_compile") 2>conftest.er1
5309
5840
  ac_status=$?
5310
5841
  grep -v '^ *+' conftest.er1 >conftest.err
5311
5842
  rm -f conftest.er1
5312
5843
  cat conftest.err >&5
5313
5844
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314
 
  (exit $ac_status); } &&
5315
 
         { ac_try='test -z "$ac_c_werror_flag"
5316
 
                         || test ! -s conftest.err'
5317
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5318
 
  (eval $ac_try) 2>&5
5319
 
  ac_status=$?
5320
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321
 
  (exit $ac_status); }; } &&
5322
 
         { ac_try='test -s conftest.$ac_objext'
5323
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5324
 
  (eval $ac_try) 2>&5
5325
 
  ac_status=$?
5326
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327
 
  (exit $ac_status); }; }; then
 
5845
  (exit $ac_status); } && {
 
5846
         test -z "$ac_c_werror_flag" ||
 
5847
         test ! -s conftest.err
 
5848
       } && test -s conftest.$ac_objext; then
5328
5849
  ac_hi=$ac_mid; break
5329
5850
else
5330
5851
  echo "$as_me: failed program was:" >&5
5331
5852
sed 's/^/| /' conftest.$ac_ext >&5
5332
5853
 
5333
 
ac_lo=`expr $ac_mid + 1`
5334
 
                    if test $ac_lo -le $ac_mid; then
5335
 
                      ac_lo= ac_hi=
5336
 
                      break
5337
 
                    fi
5338
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
5854
        ac_lo=`expr $ac_mid + 1`
 
5855
                        if test $ac_lo -le $ac_mid; then
 
5856
                          ac_lo= ac_hi=
 
5857
                          break
 
5858
                        fi
 
5859
                        ac_mid=`expr 2 '*' $ac_mid + 1`
5339
5860
fi
5340
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5861
 
 
5862
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5341
5863
  done
5342
5864
else
5343
5865
  echo "$as_me: failed program was:" >&5
5344
5866
sed 's/^/| /' conftest.$ac_ext >&5
5345
5867
 
5346
 
cat >conftest.$ac_ext <<_ACEOF
 
5868
        cat >conftest.$ac_ext <<_ACEOF
5347
5869
/* confdefs.h.  */
5348
5870
_ACEOF
5349
5871
cat confdefs.h >>conftest.$ac_ext
5350
5872
cat >>conftest.$ac_ext <<_ACEOF
5351
5873
/* end confdefs.h.  */
5352
5874
$ac_includes_default
 
5875
 
 
5876
 
 
5877
   typedef size_t ac__type_sizeof_;
5353
5878
int
5354
5879
main ()
5355
5880
{
5356
 
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
 
5881
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5357
5882
test_array [0] = 0
5358
5883
 
5359
5884
  ;
5361
5886
}
5362
5887
_ACEOF
5363
5888
rm -f conftest.$ac_objext
5364
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5365
 
  (eval $ac_compile) 2>conftest.er1
 
5889
if { (ac_try="$ac_compile"
 
5890
case "(($ac_try" in
 
5891
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5892
  *) ac_try_echo=$ac_try;;
 
5893
esac
 
5894
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5895
  (eval "$ac_compile") 2>conftest.er1
5366
5896
  ac_status=$?
5367
5897
  grep -v '^ *+' conftest.er1 >conftest.err
5368
5898
  rm -f conftest.er1
5369
5899
  cat conftest.err >&5
5370
5900
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371
 
  (exit $ac_status); } &&
5372
 
         { ac_try='test -z "$ac_c_werror_flag"
5373
 
                         || test ! -s conftest.err'
5374
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5375
 
  (eval $ac_try) 2>&5
5376
 
  ac_status=$?
5377
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378
 
  (exit $ac_status); }; } &&
5379
 
         { ac_try='test -s conftest.$ac_objext'
5380
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5381
 
  (eval $ac_try) 2>&5
5382
 
  ac_status=$?
5383
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384
 
  (exit $ac_status); }; }; then
 
5901
  (exit $ac_status); } && {
 
5902
         test -z "$ac_c_werror_flag" ||
 
5903
         test ! -s conftest.err
 
5904
       } && test -s conftest.$ac_objext; then
5385
5905
  ac_hi=-1 ac_mid=-1
5386
5906
  while :; do
5387
5907
    cat >conftest.$ac_ext <<_ACEOF
5391
5911
cat >>conftest.$ac_ext <<_ACEOF
5392
5912
/* end confdefs.h.  */
5393
5913
$ac_includes_default
 
5914
 
 
5915
 
 
5916
   typedef size_t ac__type_sizeof_;
5394
5917
int
5395
5918
main ()
5396
5919
{
5397
 
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
 
5920
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5398
5921
test_array [0] = 0
5399
5922
 
5400
5923
  ;
5402
5925
}
5403
5926
_ACEOF
5404
5927
rm -f conftest.$ac_objext
5405
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5406
 
  (eval $ac_compile) 2>conftest.er1
 
5928
if { (ac_try="$ac_compile"
 
5929
case "(($ac_try" in
 
5930
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5931
  *) ac_try_echo=$ac_try;;
 
5932
esac
 
5933
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5934
  (eval "$ac_compile") 2>conftest.er1
5407
5935
  ac_status=$?
5408
5936
  grep -v '^ *+' conftest.er1 >conftest.err
5409
5937
  rm -f conftest.er1
5410
5938
  cat conftest.err >&5
5411
5939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412
 
  (exit $ac_status); } &&
5413
 
         { ac_try='test -z "$ac_c_werror_flag"
5414
 
                         || test ! -s conftest.err'
5415
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5416
 
  (eval $ac_try) 2>&5
5417
 
  ac_status=$?
5418
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419
 
  (exit $ac_status); }; } &&
5420
 
         { ac_try='test -s conftest.$ac_objext'
5421
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5422
 
  (eval $ac_try) 2>&5
5423
 
  ac_status=$?
5424
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425
 
  (exit $ac_status); }; }; then
 
5940
  (exit $ac_status); } && {
 
5941
         test -z "$ac_c_werror_flag" ||
 
5942
         test ! -s conftest.err
 
5943
       } && test -s conftest.$ac_objext; then
5426
5944
  ac_lo=$ac_mid; break
5427
5945
else
5428
5946
  echo "$as_me: failed program was:" >&5
5429
5947
sed 's/^/| /' conftest.$ac_ext >&5
5430
5948
 
5431
 
ac_hi=`expr '(' $ac_mid ')' - 1`
5432
 
                       if test $ac_mid -le $ac_hi; then
5433
 
                         ac_lo= ac_hi=
5434
 
                         break
5435
 
                       fi
5436
 
                       ac_mid=`expr 2 '*' $ac_mid`
 
5949
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
5950
                        if test $ac_mid -le $ac_hi; then
 
5951
                          ac_lo= ac_hi=
 
5952
                          break
 
5953
                        fi
 
5954
                        ac_mid=`expr 2 '*' $ac_mid`
5437
5955
fi
5438
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5956
 
 
5957
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5439
5958
  done
5440
5959
else
5441
5960
  echo "$as_me: failed program was:" >&5
5442
5961
sed 's/^/| /' conftest.$ac_ext >&5
5443
5962
 
5444
 
ac_lo= ac_hi=
5445
 
fi
5446
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5447
 
fi
5448
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5963
        ac_lo= ac_hi=
 
5964
fi
 
5965
 
 
5966
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5967
fi
 
5968
 
 
5969
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5449
5970
# Binary search between lo and hi bounds.
5450
5971
while test "x$ac_lo" != "x$ac_hi"; do
5451
5972
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5456
5977
cat >>conftest.$ac_ext <<_ACEOF
5457
5978
/* end confdefs.h.  */
5458
5979
$ac_includes_default
 
5980
 
 
5981
 
 
5982
   typedef size_t ac__type_sizeof_;
5459
5983
int
5460
5984
main ()
5461
5985
{
5462
 
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
 
5986
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5463
5987
test_array [0] = 0
5464
5988
 
5465
5989
  ;
5467
5991
}
5468
5992
_ACEOF
5469
5993
rm -f conftest.$ac_objext
5470
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5471
 
  (eval $ac_compile) 2>conftest.er1
 
5994
if { (ac_try="$ac_compile"
 
5995
case "(($ac_try" in
 
5996
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5997
  *) ac_try_echo=$ac_try;;
 
5998
esac
 
5999
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6000
  (eval "$ac_compile") 2>conftest.er1
5472
6001
  ac_status=$?
5473
6002
  grep -v '^ *+' conftest.er1 >conftest.err
5474
6003
  rm -f conftest.er1
5475
6004
  cat conftest.err >&5
5476
6005
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477
 
  (exit $ac_status); } &&
5478
 
         { ac_try='test -z "$ac_c_werror_flag"
5479
 
                         || test ! -s conftest.err'
5480
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5481
 
  (eval $ac_try) 2>&5
5482
 
  ac_status=$?
5483
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484
 
  (exit $ac_status); }; } &&
5485
 
         { ac_try='test -s conftest.$ac_objext'
5486
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5487
 
  (eval $ac_try) 2>&5
5488
 
  ac_status=$?
5489
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490
 
  (exit $ac_status); }; }; then
 
6006
  (exit $ac_status); } && {
 
6007
         test -z "$ac_c_werror_flag" ||
 
6008
         test ! -s conftest.err
 
6009
       } && test -s conftest.$ac_objext; then
5491
6010
  ac_hi=$ac_mid
5492
6011
else
5493
6012
  echo "$as_me: failed program was:" >&5
5494
6013
sed 's/^/| /' conftest.$ac_ext >&5
5495
6014
 
5496
 
ac_lo=`expr '(' $ac_mid ')' + 1`
 
6015
        ac_lo=`expr '(' $ac_mid ')' + 1`
5497
6016
fi
5498
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6017
 
 
6018
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5499
6019
done
5500
6020
case $ac_lo in
5501
6021
?*) ac_cv_sizeof_size_t=$ac_lo;;
5502
 
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
 
6022
'') if test "$ac_cv_type_size_t" = yes; then
 
6023
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
5503
6024
See \`config.log' for more details." >&5
5504
 
echo "$as_me: error: cannot compute sizeof (size_t), 77
 
6025
echo "$as_me: error: cannot compute sizeof (size_t)
5505
6026
See \`config.log' for more details." >&2;}
5506
 
   { (exit 1); exit 1; }; } ;;
 
6027
   { (exit 77); exit 77; }; }
 
6028
   else
 
6029
     ac_cv_sizeof_size_t=0
 
6030
   fi ;;
5507
6031
esac
5508
6032
else
5509
 
  if test "$cross_compiling" = yes; then
5510
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5511
 
See \`config.log' for more details." >&5
5512
 
echo "$as_me: error: cannot run test program while cross compiling
5513
 
See \`config.log' for more details." >&2;}
5514
 
   { (exit 1); exit 1; }; }
5515
 
else
5516
6033
  cat >conftest.$ac_ext <<_ACEOF
5517
6034
/* confdefs.h.  */
5518
6035
_ACEOF
5520
6037
cat >>conftest.$ac_ext <<_ACEOF
5521
6038
/* end confdefs.h.  */
5522
6039
$ac_includes_default
5523
 
long longval () { return (long) (sizeof (size_t)); }
5524
 
unsigned long ulongval () { return (long) (sizeof (size_t)); }
 
6040
 
 
6041
 
 
6042
   typedef size_t ac__type_sizeof_;
 
6043
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
6044
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5525
6045
#include <stdio.h>
5526
6046
#include <stdlib.h>
5527
6047
int
5530
6050
 
5531
6051
  FILE *f = fopen ("conftest.val", "w");
5532
6052
  if (! f)
5533
 
    exit (1);
5534
 
  if (((long) (sizeof (size_t))) < 0)
 
6053
    return 1;
 
6054
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5535
6055
    {
5536
 
      long i = longval ();
5537
 
      if (i != ((long) (sizeof (size_t))))
5538
 
        exit (1);
 
6056
      long int i = longval ();
 
6057
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
6058
        return 1;
5539
6059
      fprintf (f, "%ld\n", i);
5540
6060
    }
5541
6061
  else
5542
6062
    {
5543
 
      unsigned long i = ulongval ();
5544
 
      if (i != ((long) (sizeof (size_t))))
5545
 
        exit (1);
 
6063
      unsigned long int i = ulongval ();
 
6064
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
6065
        return 1;
5546
6066
      fprintf (f, "%lu\n", i);
5547
6067
    }
5548
 
  exit (ferror (f) || fclose (f) != 0);
 
6068
  return ferror (f) || fclose (f) != 0;
5549
6069
 
5550
6070
  ;
5551
6071
  return 0;
5552
6072
}
5553
6073
_ACEOF
5554
6074
rm -f conftest$ac_exeext
5555
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5556
 
  (eval $ac_link) 2>&5
 
6075
if { (ac_try="$ac_link"
 
6076
case "(($ac_try" in
 
6077
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6078
  *) ac_try_echo=$ac_try;;
 
6079
esac
 
6080
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6081
  (eval "$ac_link") 2>&5
5557
6082
  ac_status=$?
5558
6083
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559
6084
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5560
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5561
 
  (eval $ac_try) 2>&5
 
6085
  { (case "(($ac_try" in
 
6086
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6087
  *) ac_try_echo=$ac_try;;
 
6088
esac
 
6089
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6090
  (eval "$ac_try") 2>&5
5562
6091
  ac_status=$?
5563
6092
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564
6093
  (exit $ac_status); }; }; then
5569
6098
sed 's/^/| /' conftest.$ac_ext >&5
5570
6099
 
5571
6100
( exit $ac_status )
5572
 
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
 
6101
if test "$ac_cv_type_size_t" = yes; then
 
6102
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
5573
6103
See \`config.log' for more details." >&5
5574
 
echo "$as_me: error: cannot compute sizeof (size_t), 77
 
6104
echo "$as_me: error: cannot compute sizeof (size_t)
5575
6105
See \`config.log' for more details." >&2;}
5576
 
   { (exit 1); exit 1; }; }
5577
 
fi
5578
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5579
 
fi
 
6106
   { (exit 77); exit 77; }; }
 
6107
   else
 
6108
     ac_cv_sizeof_size_t=0
 
6109
   fi
 
6110
fi
 
6111
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5580
6112
fi
5581
6113
rm -f conftest.val
5582
 
else
5583
 
  ac_cv_sizeof_size_t=0
5584
 
fi
5585
 
fi
5586
 
echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
5587
 
echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
 
6114
fi
 
6115
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
 
6116
echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
 
6117
 
 
6118
 
 
6119
 
5588
6120
cat >>confdefs.h <<_ACEOF
5589
6121
#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
5590
6122
_ACEOF
5595
6127
 
5596
6128
 
5597
6129
 
5598
 
echo "$as_me:$LINENO: checking how to print size_t" >&5
5599
 
echo $ECHO_N "checking how to print size_t... $ECHO_C" >&6
 
6130
{ echo "$as_me:$LINENO: checking how to print size_t" >&5
 
6131
echo $ECHO_N "checking how to print size_t... $ECHO_C" >&6; }
5600
6132
if test "${ne_cv_fmt_size_t+set}" = set; then
5601
6133
  echo $ECHO_N "(cached) $ECHO_C" >&6
5602
6134
else
5625
6157
}
5626
6158
_ACEOF
5627
6159
rm -f conftest.$ac_objext
5628
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5629
 
  (eval $ac_compile) 2>conftest.er1
 
6160
if { (ac_try="$ac_compile"
 
6161
case "(($ac_try" in
 
6162
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6163
  *) ac_try_echo=$ac_try;;
 
6164
esac
 
6165
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6166
  (eval "$ac_compile") 2>conftest.er1
5630
6167
  ac_status=$?
5631
6168
  grep -v '^ *+' conftest.er1 >conftest.err
5632
6169
  rm -f conftest.er1
5633
6170
  cat conftest.err >&5
5634
6171
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635
 
  (exit $ac_status); } &&
5636
 
         { ac_try='test -z "$ac_c_werror_flag"
5637
 
                         || test ! -s conftest.err'
5638
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5639
 
  (eval $ac_try) 2>&5
5640
 
  ac_status=$?
5641
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642
 
  (exit $ac_status); }; } &&
5643
 
         { ac_try='test -s conftest.$ac_objext'
5644
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5645
 
  (eval $ac_try) 2>&5
5646
 
  ac_status=$?
5647
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648
 
  (exit $ac_status); }; }; then
 
6172
  (exit $ac_status); } && {
 
6173
         test -z "$ac_c_werror_flag" ||
 
6174
         test ! -s conftest.err
 
6175
       } && test -s conftest.$ac_objext; then
5649
6176
  ne_cv_fmt_size_t=$str; break
5650
6177
else
5651
6178
  echo "$as_me: failed program was:" >&5
5652
6179
sed 's/^/| /' conftest.$ac_ext >&5
5653
6180
 
 
6181
 
5654
6182
fi
5655
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6183
 
 
6184
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5656
6185
  done
5657
6186
  CPPFLAGS=$oflags
5658
6187
else
5666
6195
fi
5667
6196
 
5668
6197
fi
5669
 
echo "$as_me:$LINENO: result: $ne_cv_fmt_size_t" >&5
5670
 
echo "${ECHO_T}$ne_cv_fmt_size_t" >&6
 
6198
{ echo "$as_me:$LINENO: result: $ne_cv_fmt_size_t" >&5
 
6199
echo "${ECHO_T}$ne_cv_fmt_size_t" >&6; }
5671
6200
 
5672
6201
if test "x$ne_cv_fmt_size_t" = "xnone"; then
5673
6202
  { { echo "$as_me:$LINENO: error: format string for size_t not found" >&5
5684
6213
 
5685
6214
 
5686
6215
 
5687
 
echo "$as_me:$LINENO: checking for off_t" >&5
5688
 
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
 
6216
{ echo "$as_me:$LINENO: checking for off_t" >&5
 
6217
echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5689
6218
if test "${ac_cv_type_off_t+set}" = set; then
5690
6219
  echo $ECHO_N "(cached) $ECHO_C" >&6
5691
6220
else
5696
6225
cat >>conftest.$ac_ext <<_ACEOF
5697
6226
/* end confdefs.h.  */
5698
6227
$ac_includes_default
 
6228
 
 
6229
 
 
6230
typedef off_t ac__type_new_;
5699
6231
int
5700
6232
main ()
5701
6233
{
5702
 
if ((off_t *) 0)
 
6234
if ((ac__type_new_ *) 0)
5703
6235
  return 0;
5704
 
if (sizeof (off_t))
 
6236
if (sizeof (ac__type_new_))
5705
6237
  return 0;
5706
6238
  ;
5707
6239
  return 0;
5708
6240
}
5709
6241
_ACEOF
5710
6242
rm -f conftest.$ac_objext
5711
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5712
 
  (eval $ac_compile) 2>conftest.er1
 
6243
if { (ac_try="$ac_compile"
 
6244
case "(($ac_try" in
 
6245
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6246
  *) ac_try_echo=$ac_try;;
 
6247
esac
 
6248
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6249
  (eval "$ac_compile") 2>conftest.er1
5713
6250
  ac_status=$?
5714
6251
  grep -v '^ *+' conftest.er1 >conftest.err
5715
6252
  rm -f conftest.er1
5716
6253
  cat conftest.err >&5
5717
6254
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718
 
  (exit $ac_status); } &&
5719
 
         { ac_try='test -z "$ac_c_werror_flag"
5720
 
                         || test ! -s conftest.err'
5721
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722
 
  (eval $ac_try) 2>&5
5723
 
  ac_status=$?
5724
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725
 
  (exit $ac_status); }; } &&
5726
 
         { ac_try='test -s conftest.$ac_objext'
5727
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5728
 
  (eval $ac_try) 2>&5
5729
 
  ac_status=$?
5730
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731
 
  (exit $ac_status); }; }; then
 
6255
  (exit $ac_status); } && {
 
6256
         test -z "$ac_c_werror_flag" ||
 
6257
         test ! -s conftest.err
 
6258
       } && test -s conftest.$ac_objext; then
5732
6259
  ac_cv_type_off_t=yes
5733
6260
else
5734
6261
  echo "$as_me: failed program was:" >&5
5735
6262
sed 's/^/| /' conftest.$ac_ext >&5
5736
6263
 
5737
 
ac_cv_type_off_t=no
5738
 
fi
5739
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5740
 
fi
5741
 
echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5742
 
echo "${ECHO_T}$ac_cv_type_off_t" >&6
5743
 
 
5744
 
echo "$as_me:$LINENO: checking size of off_t" >&5
5745
 
echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
 
6264
        ac_cv_type_off_t=no
 
6265
fi
 
6266
 
 
6267
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6268
fi
 
6269
{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
 
6270
echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
 
6271
 
 
6272
# The cast to long int works around a bug in the HP C Compiler
 
6273
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
6274
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
6275
# This bug is HP SR number 8606223364.
 
6276
{ echo "$as_me:$LINENO: checking size of off_t" >&5
 
6277
echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
5746
6278
if test "${ac_cv_sizeof_off_t+set}" = set; then
5747
6279
  echo $ECHO_N "(cached) $ECHO_C" >&6
5748
6280
else
5749
 
  if test "$ac_cv_type_off_t" = yes; then
5750
 
  # The cast to unsigned long works around a bug in the HP C Compiler
5751
 
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5752
 
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5753
 
  # This bug is HP SR number 8606223364.
5754
6281
  if test "$cross_compiling" = yes; then
5755
6282
  # Depending upon the size, compute the lo and hi bounds.
5756
6283
cat >conftest.$ac_ext <<_ACEOF
5760
6287
cat >>conftest.$ac_ext <<_ACEOF
5761
6288
/* end confdefs.h.  */
5762
6289
$ac_includes_default
 
6290
 
 
6291
 
 
6292
   typedef off_t ac__type_sizeof_;
5763
6293
int
5764
6294
main ()
5765
6295
{
5766
 
static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
 
6296
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5767
6297
test_array [0] = 0
5768
6298
 
5769
6299
  ;
5771
6301
}
5772
6302
_ACEOF
5773
6303
rm -f conftest.$ac_objext
5774
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5775
 
  (eval $ac_compile) 2>conftest.er1
 
6304
if { (ac_try="$ac_compile"
 
6305
case "(($ac_try" in
 
6306
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6307
  *) ac_try_echo=$ac_try;;
 
6308
esac
 
6309
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6310
  (eval "$ac_compile") 2>conftest.er1
5776
6311
  ac_status=$?
5777
6312
  grep -v '^ *+' conftest.er1 >conftest.err
5778
6313
  rm -f conftest.er1
5779
6314
  cat conftest.err >&5
5780
6315
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781
 
  (exit $ac_status); } &&
5782
 
         { ac_try='test -z "$ac_c_werror_flag"
5783
 
                         || test ! -s conftest.err'
5784
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5785
 
  (eval $ac_try) 2>&5
5786
 
  ac_status=$?
5787
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788
 
  (exit $ac_status); }; } &&
5789
 
         { ac_try='test -s conftest.$ac_objext'
5790
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791
 
  (eval $ac_try) 2>&5
5792
 
  ac_status=$?
5793
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794
 
  (exit $ac_status); }; }; then
 
6316
  (exit $ac_status); } && {
 
6317
         test -z "$ac_c_werror_flag" ||
 
6318
         test ! -s conftest.err
 
6319
       } && test -s conftest.$ac_objext; then
5795
6320
  ac_lo=0 ac_mid=0
5796
6321
  while :; do
5797
6322
    cat >conftest.$ac_ext <<_ACEOF
5801
6326
cat >>conftest.$ac_ext <<_ACEOF
5802
6327
/* end confdefs.h.  */
5803
6328
$ac_includes_default
 
6329
 
 
6330
 
 
6331
   typedef off_t ac__type_sizeof_;
5804
6332
int
5805
6333
main ()
5806
6334
{
5807
 
static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
 
6335
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5808
6336
test_array [0] = 0
5809
6337
 
5810
6338
  ;
5812
6340
}
5813
6341
_ACEOF
5814
6342
rm -f conftest.$ac_objext
5815
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5816
 
  (eval $ac_compile) 2>conftest.er1
 
6343
if { (ac_try="$ac_compile"
 
6344
case "(($ac_try" in
 
6345
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6346
  *) ac_try_echo=$ac_try;;
 
6347
esac
 
6348
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6349
  (eval "$ac_compile") 2>conftest.er1
5817
6350
  ac_status=$?
5818
6351
  grep -v '^ *+' conftest.er1 >conftest.err
5819
6352
  rm -f conftest.er1
5820
6353
  cat conftest.err >&5
5821
6354
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822
 
  (exit $ac_status); } &&
5823
 
         { ac_try='test -z "$ac_c_werror_flag"
5824
 
                         || test ! -s conftest.err'
5825
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5826
 
  (eval $ac_try) 2>&5
5827
 
  ac_status=$?
5828
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829
 
  (exit $ac_status); }; } &&
5830
 
         { ac_try='test -s conftest.$ac_objext'
5831
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5832
 
  (eval $ac_try) 2>&5
5833
 
  ac_status=$?
5834
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835
 
  (exit $ac_status); }; }; then
 
6355
  (exit $ac_status); } && {
 
6356
         test -z "$ac_c_werror_flag" ||
 
6357
         test ! -s conftest.err
 
6358
       } && test -s conftest.$ac_objext; then
5836
6359
  ac_hi=$ac_mid; break
5837
6360
else
5838
6361
  echo "$as_me: failed program was:" >&5
5839
6362
sed 's/^/| /' conftest.$ac_ext >&5
5840
6363
 
5841
 
ac_lo=`expr $ac_mid + 1`
5842
 
                    if test $ac_lo -le $ac_mid; then
5843
 
                      ac_lo= ac_hi=
5844
 
                      break
5845
 
                    fi
5846
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
6364
        ac_lo=`expr $ac_mid + 1`
 
6365
                        if test $ac_lo -le $ac_mid; then
 
6366
                          ac_lo= ac_hi=
 
6367
                          break
 
6368
                        fi
 
6369
                        ac_mid=`expr 2 '*' $ac_mid + 1`
5847
6370
fi
5848
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6371
 
 
6372
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5849
6373
  done
5850
6374
else
5851
6375
  echo "$as_me: failed program was:" >&5
5852
6376
sed 's/^/| /' conftest.$ac_ext >&5
5853
6377
 
5854
 
cat >conftest.$ac_ext <<_ACEOF
 
6378
        cat >conftest.$ac_ext <<_ACEOF
5855
6379
/* confdefs.h.  */
5856
6380
_ACEOF
5857
6381
cat confdefs.h >>conftest.$ac_ext
5858
6382
cat >>conftest.$ac_ext <<_ACEOF
5859
6383
/* end confdefs.h.  */
5860
6384
$ac_includes_default
 
6385
 
 
6386
 
 
6387
   typedef off_t ac__type_sizeof_;
5861
6388
int
5862
6389
main ()
5863
6390
{
5864
 
static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
 
6391
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5865
6392
test_array [0] = 0
5866
6393
 
5867
6394
  ;
5869
6396
}
5870
6397
_ACEOF
5871
6398
rm -f conftest.$ac_objext
5872
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5873
 
  (eval $ac_compile) 2>conftest.er1
 
6399
if { (ac_try="$ac_compile"
 
6400
case "(($ac_try" in
 
6401
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6402
  *) ac_try_echo=$ac_try;;
 
6403
esac
 
6404
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6405
  (eval "$ac_compile") 2>conftest.er1
5874
6406
  ac_status=$?
5875
6407
  grep -v '^ *+' conftest.er1 >conftest.err
5876
6408
  rm -f conftest.er1
5877
6409
  cat conftest.err >&5
5878
6410
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879
 
  (exit $ac_status); } &&
5880
 
         { ac_try='test -z "$ac_c_werror_flag"
5881
 
                         || test ! -s conftest.err'
5882
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5883
 
  (eval $ac_try) 2>&5
5884
 
  ac_status=$?
5885
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886
 
  (exit $ac_status); }; } &&
5887
 
         { ac_try='test -s conftest.$ac_objext'
5888
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5889
 
  (eval $ac_try) 2>&5
5890
 
  ac_status=$?
5891
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892
 
  (exit $ac_status); }; }; then
 
6411
  (exit $ac_status); } && {
 
6412
         test -z "$ac_c_werror_flag" ||
 
6413
         test ! -s conftest.err
 
6414
       } && test -s conftest.$ac_objext; then
5893
6415
  ac_hi=-1 ac_mid=-1
5894
6416
  while :; do
5895
6417
    cat >conftest.$ac_ext <<_ACEOF
5899
6421
cat >>conftest.$ac_ext <<_ACEOF
5900
6422
/* end confdefs.h.  */
5901
6423
$ac_includes_default
 
6424
 
 
6425
 
 
6426
   typedef off_t ac__type_sizeof_;
5902
6427
int
5903
6428
main ()
5904
6429
{
5905
 
static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
 
6430
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5906
6431
test_array [0] = 0
5907
6432
 
5908
6433
  ;
5910
6435
}
5911
6436
_ACEOF
5912
6437
rm -f conftest.$ac_objext
5913
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5914
 
  (eval $ac_compile) 2>conftest.er1
 
6438
if { (ac_try="$ac_compile"
 
6439
case "(($ac_try" in
 
6440
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6441
  *) ac_try_echo=$ac_try;;
 
6442
esac
 
6443
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6444
  (eval "$ac_compile") 2>conftest.er1
5915
6445
  ac_status=$?
5916
6446
  grep -v '^ *+' conftest.er1 >conftest.err
5917
6447
  rm -f conftest.er1
5918
6448
  cat conftest.err >&5
5919
6449
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920
 
  (exit $ac_status); } &&
5921
 
         { ac_try='test -z "$ac_c_werror_flag"
5922
 
                         || test ! -s conftest.err'
5923
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5924
 
  (eval $ac_try) 2>&5
5925
 
  ac_status=$?
5926
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927
 
  (exit $ac_status); }; } &&
5928
 
         { ac_try='test -s conftest.$ac_objext'
5929
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5930
 
  (eval $ac_try) 2>&5
5931
 
  ac_status=$?
5932
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933
 
  (exit $ac_status); }; }; then
 
6450
  (exit $ac_status); } && {
 
6451
         test -z "$ac_c_werror_flag" ||
 
6452
         test ! -s conftest.err
 
6453
       } && test -s conftest.$ac_objext; then
5934
6454
  ac_lo=$ac_mid; break
5935
6455
else
5936
6456
  echo "$as_me: failed program was:" >&5
5937
6457
sed 's/^/| /' conftest.$ac_ext >&5
5938
6458
 
5939
 
ac_hi=`expr '(' $ac_mid ')' - 1`
5940
 
                       if test $ac_mid -le $ac_hi; then
5941
 
                         ac_lo= ac_hi=
5942
 
                         break
5943
 
                       fi
5944
 
                       ac_mid=`expr 2 '*' $ac_mid`
 
6459
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
6460
                        if test $ac_mid -le $ac_hi; then
 
6461
                          ac_lo= ac_hi=
 
6462
                          break
 
6463
                        fi
 
6464
                        ac_mid=`expr 2 '*' $ac_mid`
5945
6465
fi
5946
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6466
 
 
6467
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5947
6468
  done
5948
6469
else
5949
6470
  echo "$as_me: failed program was:" >&5
5950
6471
sed 's/^/| /' conftest.$ac_ext >&5
5951
6472
 
5952
 
ac_lo= ac_hi=
5953
 
fi
5954
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5955
 
fi
5956
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6473
        ac_lo= ac_hi=
 
6474
fi
 
6475
 
 
6476
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6477
fi
 
6478
 
 
6479
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5957
6480
# Binary search between lo and hi bounds.
5958
6481
while test "x$ac_lo" != "x$ac_hi"; do
5959
6482
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5964
6487
cat >>conftest.$ac_ext <<_ACEOF
5965
6488
/* end confdefs.h.  */
5966
6489
$ac_includes_default
 
6490
 
 
6491
 
 
6492
   typedef off_t ac__type_sizeof_;
5967
6493
int
5968
6494
main ()
5969
6495
{
5970
 
static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
 
6496
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5971
6497
test_array [0] = 0
5972
6498
 
5973
6499
  ;
5975
6501
}
5976
6502
_ACEOF
5977
6503
rm -f conftest.$ac_objext
5978
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5979
 
  (eval $ac_compile) 2>conftest.er1
 
6504
if { (ac_try="$ac_compile"
 
6505
case "(($ac_try" in
 
6506
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6507
  *) ac_try_echo=$ac_try;;
 
6508
esac
 
6509
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6510
  (eval "$ac_compile") 2>conftest.er1
5980
6511
  ac_status=$?
5981
6512
  grep -v '^ *+' conftest.er1 >conftest.err
5982
6513
  rm -f conftest.er1
5983
6514
  cat conftest.err >&5
5984
6515
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985
 
  (exit $ac_status); } &&
5986
 
         { ac_try='test -z "$ac_c_werror_flag"
5987
 
                         || test ! -s conftest.err'
5988
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5989
 
  (eval $ac_try) 2>&5
5990
 
  ac_status=$?
5991
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992
 
  (exit $ac_status); }; } &&
5993
 
         { ac_try='test -s conftest.$ac_objext'
5994
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995
 
  (eval $ac_try) 2>&5
5996
 
  ac_status=$?
5997
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998
 
  (exit $ac_status); }; }; then
 
6516
  (exit $ac_status); } && {
 
6517
         test -z "$ac_c_werror_flag" ||
 
6518
         test ! -s conftest.err
 
6519
       } && test -s conftest.$ac_objext; then
5999
6520
  ac_hi=$ac_mid
6000
6521
else
6001
6522
  echo "$as_me: failed program was:" >&5
6002
6523
sed 's/^/| /' conftest.$ac_ext >&5
6003
6524
 
6004
 
ac_lo=`expr '(' $ac_mid ')' + 1`
 
6525
        ac_lo=`expr '(' $ac_mid ')' + 1`
6005
6526
fi
6006
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6527
 
 
6528
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6007
6529
done
6008
6530
case $ac_lo in
6009
6531
?*) ac_cv_sizeof_off_t=$ac_lo;;
6010
 
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
 
6532
'') if test "$ac_cv_type_off_t" = yes; then
 
6533
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
6011
6534
See \`config.log' for more details." >&5
6012
 
echo "$as_me: error: cannot compute sizeof (off_t), 77
 
6535
echo "$as_me: error: cannot compute sizeof (off_t)
6013
6536
See \`config.log' for more details." >&2;}
6014
 
   { (exit 1); exit 1; }; } ;;
 
6537
   { (exit 77); exit 77; }; }
 
6538
   else
 
6539
     ac_cv_sizeof_off_t=0
 
6540
   fi ;;
6015
6541
esac
6016
6542
else
6017
 
  if test "$cross_compiling" = yes; then
6018
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6019
 
See \`config.log' for more details." >&5
6020
 
echo "$as_me: error: cannot run test program while cross compiling
6021
 
See \`config.log' for more details." >&2;}
6022
 
   { (exit 1); exit 1; }; }
6023
 
else
6024
6543
  cat >conftest.$ac_ext <<_ACEOF
6025
6544
/* confdefs.h.  */
6026
6545
_ACEOF
6028
6547
cat >>conftest.$ac_ext <<_ACEOF
6029
6548
/* end confdefs.h.  */
6030
6549
$ac_includes_default
6031
 
long longval () { return (long) (sizeof (off_t)); }
6032
 
unsigned long ulongval () { return (long) (sizeof (off_t)); }
 
6550
 
 
6551
 
 
6552
   typedef off_t ac__type_sizeof_;
 
6553
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
6554
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6033
6555
#include <stdio.h>
6034
6556
#include <stdlib.h>
6035
6557
int
6038
6560
 
6039
6561
  FILE *f = fopen ("conftest.val", "w");
6040
6562
  if (! f)
6041
 
    exit (1);
6042
 
  if (((long) (sizeof (off_t))) < 0)
 
6563
    return 1;
 
6564
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6043
6565
    {
6044
 
      long i = longval ();
6045
 
      if (i != ((long) (sizeof (off_t))))
6046
 
        exit (1);
 
6566
      long int i = longval ();
 
6567
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
6568
        return 1;
6047
6569
      fprintf (f, "%ld\n", i);
6048
6570
    }
6049
6571
  else
6050
6572
    {
6051
 
      unsigned long i = ulongval ();
6052
 
      if (i != ((long) (sizeof (off_t))))
6053
 
        exit (1);
 
6573
      unsigned long int i = ulongval ();
 
6574
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
6575
        return 1;
6054
6576
      fprintf (f, "%lu\n", i);
6055
6577
    }
6056
 
  exit (ferror (f) || fclose (f) != 0);
 
6578
  return ferror (f) || fclose (f) != 0;
6057
6579
 
6058
6580
  ;
6059
6581
  return 0;
6060
6582
}
6061
6583
_ACEOF
6062
6584
rm -f conftest$ac_exeext
6063
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6064
 
  (eval $ac_link) 2>&5
 
6585
if { (ac_try="$ac_link"
 
6586
case "(($ac_try" in
 
6587
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6588
  *) ac_try_echo=$ac_try;;
 
6589
esac
 
6590
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6591
  (eval "$ac_link") 2>&5
6065
6592
  ac_status=$?
6066
6593
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067
6594
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6068
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6069
 
  (eval $ac_try) 2>&5
 
6595
  { (case "(($ac_try" in
 
6596
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6597
  *) ac_try_echo=$ac_try;;
 
6598
esac
 
6599
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6600
  (eval "$ac_try") 2>&5
6070
6601
  ac_status=$?
6071
6602
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072
6603
  (exit $ac_status); }; }; then
6077
6608
sed 's/^/| /' conftest.$ac_ext >&5
6078
6609
 
6079
6610
( exit $ac_status )
6080
 
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
 
6611
if test "$ac_cv_type_off_t" = yes; then
 
6612
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
6081
6613
See \`config.log' for more details." >&5
6082
 
echo "$as_me: error: cannot compute sizeof (off_t), 77
 
6614
echo "$as_me: error: cannot compute sizeof (off_t)
6083
6615
See \`config.log' for more details." >&2;}
6084
 
   { (exit 1); exit 1; }; }
6085
 
fi
6086
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6087
 
fi
 
6616
   { (exit 77); exit 77; }; }
 
6617
   else
 
6618
     ac_cv_sizeof_off_t=0
 
6619
   fi
 
6620
fi
 
6621
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6088
6622
fi
6089
6623
rm -f conftest.val
6090
 
else
6091
 
  ac_cv_sizeof_off_t=0
6092
 
fi
6093
 
fi
6094
 
echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
6095
 
echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
 
6624
fi
 
6625
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
 
6626
echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
 
6627
 
 
6628
 
 
6629
 
6096
6630
cat >>confdefs.h <<_ACEOF
6097
6631
#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
6098
6632
_ACEOF
6103
6637
 
6104
6638
 
6105
6639
 
6106
 
echo "$as_me:$LINENO: checking how to print off_t" >&5
6107
 
echo $ECHO_N "checking how to print off_t... $ECHO_C" >&6
 
6640
{ echo "$as_me:$LINENO: checking how to print off_t" >&5
 
6641
echo $ECHO_N "checking how to print off_t... $ECHO_C" >&6; }
6108
6642
if test "${ne_cv_fmt_off_t+set}" = set; then
6109
6643
  echo $ECHO_N "(cached) $ECHO_C" >&6
6110
6644
else
6133
6667
}
6134
6668
_ACEOF
6135
6669
rm -f conftest.$ac_objext
6136
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6137
 
  (eval $ac_compile) 2>conftest.er1
 
6670
if { (ac_try="$ac_compile"
 
6671
case "(($ac_try" in
 
6672
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6673
  *) ac_try_echo=$ac_try;;
 
6674
esac
 
6675
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6676
  (eval "$ac_compile") 2>conftest.er1
6138
6677
  ac_status=$?
6139
6678
  grep -v '^ *+' conftest.er1 >conftest.err
6140
6679
  rm -f conftest.er1
6141
6680
  cat conftest.err >&5
6142
6681
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143
 
  (exit $ac_status); } &&
6144
 
         { ac_try='test -z "$ac_c_werror_flag"
6145
 
                         || test ! -s conftest.err'
6146
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6147
 
  (eval $ac_try) 2>&5
6148
 
  ac_status=$?
6149
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150
 
  (exit $ac_status); }; } &&
6151
 
         { ac_try='test -s conftest.$ac_objext'
6152
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6153
 
  (eval $ac_try) 2>&5
6154
 
  ac_status=$?
6155
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156
 
  (exit $ac_status); }; }; then
 
6682
  (exit $ac_status); } && {
 
6683
         test -z "$ac_c_werror_flag" ||
 
6684
         test ! -s conftest.err
 
6685
       } && test -s conftest.$ac_objext; then
6157
6686
  ne_cv_fmt_off_t=$str; break
6158
6687
else
6159
6688
  echo "$as_me: failed program was:" >&5
6160
6689
sed 's/^/| /' conftest.$ac_ext >&5
6161
6690
 
 
6691
 
6162
6692
fi
6163
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6693
 
 
6694
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6164
6695
  done
6165
6696
  CPPFLAGS=$oflags
6166
6697
else
6174
6705
fi
6175
6706
 
6176
6707
fi
6177
 
echo "$as_me:$LINENO: result: $ne_cv_fmt_off_t" >&5
6178
 
echo "${ECHO_T}$ne_cv_fmt_off_t" >&6
 
6708
{ echo "$as_me:$LINENO: result: $ne_cv_fmt_off_t" >&5
 
6709
echo "${ECHO_T}$ne_cv_fmt_off_t" >&6; }
6179
6710
 
6180
6711
if test "x$ne_cv_fmt_off_t" = "xnone"; then
6181
6712
  { { echo "$as_me:$LINENO: error: format string for off_t not found" >&5
6193
6724
 
6194
6725
 
6195
6726
 
6196
 
echo "$as_me:$LINENO: checking for ssize_t" >&5
6197
 
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
 
6727
{ echo "$as_me:$LINENO: checking for ssize_t" >&5
 
6728
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
6198
6729
if test "${ac_cv_type_ssize_t+set}" = set; then
6199
6730
  echo $ECHO_N "(cached) $ECHO_C" >&6
6200
6731
else
6205
6736
cat >>conftest.$ac_ext <<_ACEOF
6206
6737
/* end confdefs.h.  */
6207
6738
$ac_includes_default
 
6739
 
 
6740
 
 
6741
typedef ssize_t ac__type_new_;
6208
6742
int
6209
6743
main ()
6210
6744
{
6211
 
if ((ssize_t *) 0)
 
6745
if ((ac__type_new_ *) 0)
6212
6746
  return 0;
6213
 
if (sizeof (ssize_t))
 
6747
if (sizeof (ac__type_new_))
6214
6748
  return 0;
6215
6749
  ;
6216
6750
  return 0;
6217
6751
}
6218
6752
_ACEOF
6219
6753
rm -f conftest.$ac_objext
6220
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6221
 
  (eval $ac_compile) 2>conftest.er1
 
6754
if { (ac_try="$ac_compile"
 
6755
case "(($ac_try" in
 
6756
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6757
  *) ac_try_echo=$ac_try;;
 
6758
esac
 
6759
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6760
  (eval "$ac_compile") 2>conftest.er1
6222
6761
  ac_status=$?
6223
6762
  grep -v '^ *+' conftest.er1 >conftest.err
6224
6763
  rm -f conftest.er1
6225
6764
  cat conftest.err >&5
6226
6765
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227
 
  (exit $ac_status); } &&
6228
 
         { ac_try='test -z "$ac_c_werror_flag"
6229
 
                         || test ! -s conftest.err'
6230
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6231
 
  (eval $ac_try) 2>&5
6232
 
  ac_status=$?
6233
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234
 
  (exit $ac_status); }; } &&
6235
 
         { ac_try='test -s conftest.$ac_objext'
6236
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6237
 
  (eval $ac_try) 2>&5
6238
 
  ac_status=$?
6239
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240
 
  (exit $ac_status); }; }; then
 
6766
  (exit $ac_status); } && {
 
6767
         test -z "$ac_c_werror_flag" ||
 
6768
         test ! -s conftest.err
 
6769
       } && test -s conftest.$ac_objext; then
6241
6770
  ac_cv_type_ssize_t=yes
6242
6771
else
6243
6772
  echo "$as_me: failed program was:" >&5
6244
6773
sed 's/^/| /' conftest.$ac_ext >&5
6245
6774
 
6246
 
ac_cv_type_ssize_t=no
6247
 
fi
6248
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6249
 
fi
6250
 
echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6251
 
echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6252
 
 
6253
 
echo "$as_me:$LINENO: checking size of ssize_t" >&5
6254
 
echo $ECHO_N "checking size of ssize_t... $ECHO_C" >&6
 
6775
        ac_cv_type_ssize_t=no
 
6776
fi
 
6777
 
 
6778
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6779
fi
 
6780
{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
 
6781
echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
 
6782
 
 
6783
# The cast to long int works around a bug in the HP C Compiler
 
6784
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
6785
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
6786
# This bug is HP SR number 8606223364.
 
6787
{ echo "$as_me:$LINENO: checking size of ssize_t" >&5
 
6788
echo $ECHO_N "checking size of ssize_t... $ECHO_C" >&6; }
6255
6789
if test "${ac_cv_sizeof_ssize_t+set}" = set; then
6256
6790
  echo $ECHO_N "(cached) $ECHO_C" >&6
6257
6791
else
6258
 
  if test "$ac_cv_type_ssize_t" = yes; then
6259
 
  # The cast to unsigned long works around a bug in the HP C Compiler
6260
 
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6261
 
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6262
 
  # This bug is HP SR number 8606223364.
6263
6792
  if test "$cross_compiling" = yes; then
6264
6793
  # Depending upon the size, compute the lo and hi bounds.
6265
6794
cat >conftest.$ac_ext <<_ACEOF
6269
6798
cat >>conftest.$ac_ext <<_ACEOF
6270
6799
/* end confdefs.h.  */
6271
6800
$ac_includes_default
 
6801
 
 
6802
 
 
6803
   typedef ssize_t ac__type_sizeof_;
6272
6804
int
6273
6805
main ()
6274
6806
{
6275
 
static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) >= 0)];
 
6807
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6276
6808
test_array [0] = 0
6277
6809
 
6278
6810
  ;
6280
6812
}
6281
6813
_ACEOF
6282
6814
rm -f conftest.$ac_objext
6283
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6284
 
  (eval $ac_compile) 2>conftest.er1
 
6815
if { (ac_try="$ac_compile"
 
6816
case "(($ac_try" in
 
6817
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6818
  *) ac_try_echo=$ac_try;;
 
6819
esac
 
6820
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6821
  (eval "$ac_compile") 2>conftest.er1
6285
6822
  ac_status=$?
6286
6823
  grep -v '^ *+' conftest.er1 >conftest.err
6287
6824
  rm -f conftest.er1
6288
6825
  cat conftest.err >&5
6289
6826
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290
 
  (exit $ac_status); } &&
6291
 
         { ac_try='test -z "$ac_c_werror_flag"
6292
 
                         || test ! -s conftest.err'
6293
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6294
 
  (eval $ac_try) 2>&5
6295
 
  ac_status=$?
6296
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297
 
  (exit $ac_status); }; } &&
6298
 
         { ac_try='test -s conftest.$ac_objext'
6299
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6300
 
  (eval $ac_try) 2>&5
6301
 
  ac_status=$?
6302
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303
 
  (exit $ac_status); }; }; then
 
6827
  (exit $ac_status); } && {
 
6828
         test -z "$ac_c_werror_flag" ||
 
6829
         test ! -s conftest.err
 
6830
       } && test -s conftest.$ac_objext; then
6304
6831
  ac_lo=0 ac_mid=0
6305
6832
  while :; do
6306
6833
    cat >conftest.$ac_ext <<_ACEOF
6310
6837
cat >>conftest.$ac_ext <<_ACEOF
6311
6838
/* end confdefs.h.  */
6312
6839
$ac_includes_default
 
6840
 
 
6841
 
 
6842
   typedef ssize_t ac__type_sizeof_;
6313
6843
int
6314
6844
main ()
6315
6845
{
6316
 
static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) <= $ac_mid)];
 
6846
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6317
6847
test_array [0] = 0
6318
6848
 
6319
6849
  ;
6321
6851
}
6322
6852
_ACEOF
6323
6853
rm -f conftest.$ac_objext
6324
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6325
 
  (eval $ac_compile) 2>conftest.er1
 
6854
if { (ac_try="$ac_compile"
 
6855
case "(($ac_try" in
 
6856
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6857
  *) ac_try_echo=$ac_try;;
 
6858
esac
 
6859
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6860
  (eval "$ac_compile") 2>conftest.er1
6326
6861
  ac_status=$?
6327
6862
  grep -v '^ *+' conftest.er1 >conftest.err
6328
6863
  rm -f conftest.er1
6329
6864
  cat conftest.err >&5
6330
6865
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331
 
  (exit $ac_status); } &&
6332
 
         { ac_try='test -z "$ac_c_werror_flag"
6333
 
                         || test ! -s conftest.err'
6334
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6335
 
  (eval $ac_try) 2>&5
6336
 
  ac_status=$?
6337
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338
 
  (exit $ac_status); }; } &&
6339
 
         { ac_try='test -s conftest.$ac_objext'
6340
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6341
 
  (eval $ac_try) 2>&5
6342
 
  ac_status=$?
6343
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344
 
  (exit $ac_status); }; }; then
 
6866
  (exit $ac_status); } && {
 
6867
         test -z "$ac_c_werror_flag" ||
 
6868
         test ! -s conftest.err
 
6869
       } && test -s conftest.$ac_objext; then
6345
6870
  ac_hi=$ac_mid; break
6346
6871
else
6347
6872
  echo "$as_me: failed program was:" >&5
6348
6873
sed 's/^/| /' conftest.$ac_ext >&5
6349
6874
 
6350
 
ac_lo=`expr $ac_mid + 1`
6351
 
                    if test $ac_lo -le $ac_mid; then
6352
 
                      ac_lo= ac_hi=
6353
 
                      break
6354
 
                    fi
6355
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
6875
        ac_lo=`expr $ac_mid + 1`
 
6876
                        if test $ac_lo -le $ac_mid; then
 
6877
                          ac_lo= ac_hi=
 
6878
                          break
 
6879
                        fi
 
6880
                        ac_mid=`expr 2 '*' $ac_mid + 1`
6356
6881
fi
6357
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6882
 
 
6883
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6358
6884
  done
6359
6885
else
6360
6886
  echo "$as_me: failed program was:" >&5
6361
6887
sed 's/^/| /' conftest.$ac_ext >&5
6362
6888
 
6363
 
cat >conftest.$ac_ext <<_ACEOF
 
6889
        cat >conftest.$ac_ext <<_ACEOF
6364
6890
/* confdefs.h.  */
6365
6891
_ACEOF
6366
6892
cat confdefs.h >>conftest.$ac_ext
6367
6893
cat >>conftest.$ac_ext <<_ACEOF
6368
6894
/* end confdefs.h.  */
6369
6895
$ac_includes_default
 
6896
 
 
6897
 
 
6898
   typedef ssize_t ac__type_sizeof_;
6370
6899
int
6371
6900
main ()
6372
6901
{
6373
 
static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) < 0)];
 
6902
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6374
6903
test_array [0] = 0
6375
6904
 
6376
6905
  ;
6378
6907
}
6379
6908
_ACEOF
6380
6909
rm -f conftest.$ac_objext
6381
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6382
 
  (eval $ac_compile) 2>conftest.er1
 
6910
if { (ac_try="$ac_compile"
 
6911
case "(($ac_try" in
 
6912
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6913
  *) ac_try_echo=$ac_try;;
 
6914
esac
 
6915
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6916
  (eval "$ac_compile") 2>conftest.er1
6383
6917
  ac_status=$?
6384
6918
  grep -v '^ *+' conftest.er1 >conftest.err
6385
6919
  rm -f conftest.er1
6386
6920
  cat conftest.err >&5
6387
6921
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388
 
  (exit $ac_status); } &&
6389
 
         { ac_try='test -z "$ac_c_werror_flag"
6390
 
                         || test ! -s conftest.err'
6391
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6392
 
  (eval $ac_try) 2>&5
6393
 
  ac_status=$?
6394
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395
 
  (exit $ac_status); }; } &&
6396
 
         { ac_try='test -s conftest.$ac_objext'
6397
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6398
 
  (eval $ac_try) 2>&5
6399
 
  ac_status=$?
6400
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401
 
  (exit $ac_status); }; }; then
 
6922
  (exit $ac_status); } && {
 
6923
         test -z "$ac_c_werror_flag" ||
 
6924
         test ! -s conftest.err
 
6925
       } && test -s conftest.$ac_objext; then
6402
6926
  ac_hi=-1 ac_mid=-1
6403
6927
  while :; do
6404
6928
    cat >conftest.$ac_ext <<_ACEOF
6408
6932
cat >>conftest.$ac_ext <<_ACEOF
6409
6933
/* end confdefs.h.  */
6410
6934
$ac_includes_default
 
6935
 
 
6936
 
 
6937
   typedef ssize_t ac__type_sizeof_;
6411
6938
int
6412
6939
main ()
6413
6940
{
6414
 
static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) >= $ac_mid)];
 
6941
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6415
6942
test_array [0] = 0
6416
6943
 
6417
6944
  ;
6419
6946
}
6420
6947
_ACEOF
6421
6948
rm -f conftest.$ac_objext
6422
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6423
 
  (eval $ac_compile) 2>conftest.er1
 
6949
if { (ac_try="$ac_compile"
 
6950
case "(($ac_try" in
 
6951
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6952
  *) ac_try_echo=$ac_try;;
 
6953
esac
 
6954
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6955
  (eval "$ac_compile") 2>conftest.er1
6424
6956
  ac_status=$?
6425
6957
  grep -v '^ *+' conftest.er1 >conftest.err
6426
6958
  rm -f conftest.er1
6427
6959
  cat conftest.err >&5
6428
6960
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429
 
  (exit $ac_status); } &&
6430
 
         { ac_try='test -z "$ac_c_werror_flag"
6431
 
                         || test ! -s conftest.err'
6432
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6433
 
  (eval $ac_try) 2>&5
6434
 
  ac_status=$?
6435
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436
 
  (exit $ac_status); }; } &&
6437
 
         { ac_try='test -s conftest.$ac_objext'
6438
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6439
 
  (eval $ac_try) 2>&5
6440
 
  ac_status=$?
6441
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442
 
  (exit $ac_status); }; }; then
 
6961
  (exit $ac_status); } && {
 
6962
         test -z "$ac_c_werror_flag" ||
 
6963
         test ! -s conftest.err
 
6964
       } && test -s conftest.$ac_objext; then
6443
6965
  ac_lo=$ac_mid; break
6444
6966
else
6445
6967
  echo "$as_me: failed program was:" >&5
6446
6968
sed 's/^/| /' conftest.$ac_ext >&5
6447
6969
 
6448
 
ac_hi=`expr '(' $ac_mid ')' - 1`
6449
 
                       if test $ac_mid -le $ac_hi; then
6450
 
                         ac_lo= ac_hi=
6451
 
                         break
6452
 
                       fi
6453
 
                       ac_mid=`expr 2 '*' $ac_mid`
 
6970
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
6971
                        if test $ac_mid -le $ac_hi; then
 
6972
                          ac_lo= ac_hi=
 
6973
                          break
 
6974
                        fi
 
6975
                        ac_mid=`expr 2 '*' $ac_mid`
6454
6976
fi
6455
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6977
 
 
6978
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6456
6979
  done
6457
6980
else
6458
6981
  echo "$as_me: failed program was:" >&5
6459
6982
sed 's/^/| /' conftest.$ac_ext >&5
6460
6983
 
6461
 
ac_lo= ac_hi=
6462
 
fi
6463
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6464
 
fi
6465
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6984
        ac_lo= ac_hi=
 
6985
fi
 
6986
 
 
6987
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6988
fi
 
6989
 
 
6990
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6466
6991
# Binary search between lo and hi bounds.
6467
6992
while test "x$ac_lo" != "x$ac_hi"; do
6468
6993
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6473
6998
cat >>conftest.$ac_ext <<_ACEOF
6474
6999
/* end confdefs.h.  */
6475
7000
$ac_includes_default
 
7001
 
 
7002
 
 
7003
   typedef ssize_t ac__type_sizeof_;
6476
7004
int
6477
7005
main ()
6478
7006
{
6479
 
static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) <= $ac_mid)];
 
7007
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6480
7008
test_array [0] = 0
6481
7009
 
6482
7010
  ;
6484
7012
}
6485
7013
_ACEOF
6486
7014
rm -f conftest.$ac_objext
6487
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6488
 
  (eval $ac_compile) 2>conftest.er1
 
7015
if { (ac_try="$ac_compile"
 
7016
case "(($ac_try" in
 
7017
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7018
  *) ac_try_echo=$ac_try;;
 
7019
esac
 
7020
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7021
  (eval "$ac_compile") 2>conftest.er1
6489
7022
  ac_status=$?
6490
7023
  grep -v '^ *+' conftest.er1 >conftest.err
6491
7024
  rm -f conftest.er1
6492
7025
  cat conftest.err >&5
6493
7026
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494
 
  (exit $ac_status); } &&
6495
 
         { ac_try='test -z "$ac_c_werror_flag"
6496
 
                         || test ! -s conftest.err'
6497
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6498
 
  (eval $ac_try) 2>&5
6499
 
  ac_status=$?
6500
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501
 
  (exit $ac_status); }; } &&
6502
 
         { ac_try='test -s conftest.$ac_objext'
6503
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6504
 
  (eval $ac_try) 2>&5
6505
 
  ac_status=$?
6506
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507
 
  (exit $ac_status); }; }; then
 
7027
  (exit $ac_status); } && {
 
7028
         test -z "$ac_c_werror_flag" ||
 
7029
         test ! -s conftest.err
 
7030
       } && test -s conftest.$ac_objext; then
6508
7031
  ac_hi=$ac_mid
6509
7032
else
6510
7033
  echo "$as_me: failed program was:" >&5
6511
7034
sed 's/^/| /' conftest.$ac_ext >&5
6512
7035
 
6513
 
ac_lo=`expr '(' $ac_mid ')' + 1`
 
7036
        ac_lo=`expr '(' $ac_mid ')' + 1`
6514
7037
fi
6515
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7038
 
 
7039
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6516
7040
done
6517
7041
case $ac_lo in
6518
7042
?*) ac_cv_sizeof_ssize_t=$ac_lo;;
6519
 
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t), 77
 
7043
'') if test "$ac_cv_type_ssize_t" = yes; then
 
7044
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
6520
7045
See \`config.log' for more details." >&5
6521
 
echo "$as_me: error: cannot compute sizeof (ssize_t), 77
 
7046
echo "$as_me: error: cannot compute sizeof (ssize_t)
6522
7047
See \`config.log' for more details." >&2;}
6523
 
   { (exit 1); exit 1; }; } ;;
 
7048
   { (exit 77); exit 77; }; }
 
7049
   else
 
7050
     ac_cv_sizeof_ssize_t=0
 
7051
   fi ;;
6524
7052
esac
6525
7053
else
6526
 
  if test "$cross_compiling" = yes; then
6527
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6528
 
See \`config.log' for more details." >&5
6529
 
echo "$as_me: error: cannot run test program while cross compiling
6530
 
See \`config.log' for more details." >&2;}
6531
 
   { (exit 1); exit 1; }; }
6532
 
else
6533
7054
  cat >conftest.$ac_ext <<_ACEOF
6534
7055
/* confdefs.h.  */
6535
7056
_ACEOF
6537
7058
cat >>conftest.$ac_ext <<_ACEOF
6538
7059
/* end confdefs.h.  */
6539
7060
$ac_includes_default
6540
 
long longval () { return (long) (sizeof (ssize_t)); }
6541
 
unsigned long ulongval () { return (long) (sizeof (ssize_t)); }
 
7061
 
 
7062
 
 
7063
   typedef ssize_t ac__type_sizeof_;
 
7064
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
7065
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6542
7066
#include <stdio.h>
6543
7067
#include <stdlib.h>
6544
7068
int
6547
7071
 
6548
7072
  FILE *f = fopen ("conftest.val", "w");
6549
7073
  if (! f)
6550
 
    exit (1);
6551
 
  if (((long) (sizeof (ssize_t))) < 0)
 
7074
    return 1;
 
7075
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6552
7076
    {
6553
 
      long i = longval ();
6554
 
      if (i != ((long) (sizeof (ssize_t))))
6555
 
        exit (1);
 
7077
      long int i = longval ();
 
7078
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
7079
        return 1;
6556
7080
      fprintf (f, "%ld\n", i);
6557
7081
    }
6558
7082
  else
6559
7083
    {
6560
 
      unsigned long i = ulongval ();
6561
 
      if (i != ((long) (sizeof (ssize_t))))
6562
 
        exit (1);
 
7084
      unsigned long int i = ulongval ();
 
7085
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
7086
        return 1;
6563
7087
      fprintf (f, "%lu\n", i);
6564
7088
    }
6565
 
  exit (ferror (f) || fclose (f) != 0);
 
7089
  return ferror (f) || fclose (f) != 0;
6566
7090
 
6567
7091
  ;
6568
7092
  return 0;
6569
7093
}
6570
7094
_ACEOF
6571
7095
rm -f conftest$ac_exeext
6572
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6573
 
  (eval $ac_link) 2>&5
 
7096
if { (ac_try="$ac_link"
 
7097
case "(($ac_try" in
 
7098
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7099
  *) ac_try_echo=$ac_try;;
 
7100
esac
 
7101
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7102
  (eval "$ac_link") 2>&5
6574
7103
  ac_status=$?
6575
7104
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576
7105
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6577
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6578
 
  (eval $ac_try) 2>&5
 
7106
  { (case "(($ac_try" in
 
7107
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7108
  *) ac_try_echo=$ac_try;;
 
7109
esac
 
7110
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7111
  (eval "$ac_try") 2>&5
6579
7112
  ac_status=$?
6580
7113
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581
7114
  (exit $ac_status); }; }; then
6586
7119
sed 's/^/| /' conftest.$ac_ext >&5
6587
7120
 
6588
7121
( exit $ac_status )
6589
 
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t), 77
 
7122
if test "$ac_cv_type_ssize_t" = yes; then
 
7123
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
6590
7124
See \`config.log' for more details." >&5
6591
 
echo "$as_me: error: cannot compute sizeof (ssize_t), 77
 
7125
echo "$as_me: error: cannot compute sizeof (ssize_t)
6592
7126
See \`config.log' for more details." >&2;}
6593
 
   { (exit 1); exit 1; }; }
6594
 
fi
6595
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6596
 
fi
 
7127
   { (exit 77); exit 77; }; }
 
7128
   else
 
7129
     ac_cv_sizeof_ssize_t=0
 
7130
   fi
 
7131
fi
 
7132
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6597
7133
fi
6598
7134
rm -f conftest.val
6599
 
else
6600
 
  ac_cv_sizeof_ssize_t=0
6601
 
fi
6602
 
fi
6603
 
echo "$as_me:$LINENO: result: $ac_cv_sizeof_ssize_t" >&5
6604
 
echo "${ECHO_T}$ac_cv_sizeof_ssize_t" >&6
 
7135
fi
 
7136
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_ssize_t" >&5
 
7137
echo "${ECHO_T}$ac_cv_sizeof_ssize_t" >&6; }
 
7138
 
 
7139
 
 
7140
 
6605
7141
cat >>confdefs.h <<_ACEOF
6606
7142
#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
6607
7143
_ACEOF
6612
7148
 
6613
7149
 
6614
7150
 
6615
 
echo "$as_me:$LINENO: checking how to print ssize_t" >&5
6616
 
echo $ECHO_N "checking how to print ssize_t... $ECHO_C" >&6
 
7151
{ echo "$as_me:$LINENO: checking how to print ssize_t" >&5
 
7152
echo $ECHO_N "checking how to print ssize_t... $ECHO_C" >&6; }
6617
7153
if test "${ne_cv_fmt_ssize_t+set}" = set; then
6618
7154
  echo $ECHO_N "(cached) $ECHO_C" >&6
6619
7155
else
6642
7178
}
6643
7179
_ACEOF
6644
7180
rm -f conftest.$ac_objext
6645
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6646
 
  (eval $ac_compile) 2>conftest.er1
 
7181
if { (ac_try="$ac_compile"
 
7182
case "(($ac_try" in
 
7183
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7184
  *) ac_try_echo=$ac_try;;
 
7185
esac
 
7186
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7187
  (eval "$ac_compile") 2>conftest.er1
6647
7188
  ac_status=$?
6648
7189
  grep -v '^ *+' conftest.er1 >conftest.err
6649
7190
  rm -f conftest.er1
6650
7191
  cat conftest.err >&5
6651
7192
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652
 
  (exit $ac_status); } &&
6653
 
         { ac_try='test -z "$ac_c_werror_flag"
6654
 
                         || test ! -s conftest.err'
6655
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6656
 
  (eval $ac_try) 2>&5
6657
 
  ac_status=$?
6658
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659
 
  (exit $ac_status); }; } &&
6660
 
         { ac_try='test -s conftest.$ac_objext'
6661
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6662
 
  (eval $ac_try) 2>&5
6663
 
  ac_status=$?
6664
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665
 
  (exit $ac_status); }; }; then
 
7193
  (exit $ac_status); } && {
 
7194
         test -z "$ac_c_werror_flag" ||
 
7195
         test ! -s conftest.err
 
7196
       } && test -s conftest.$ac_objext; then
6666
7197
  ne_cv_fmt_ssize_t=$str; break
6667
7198
else
6668
7199
  echo "$as_me: failed program was:" >&5
6669
7200
sed 's/^/| /' conftest.$ac_ext >&5
6670
7201
 
 
7202
 
6671
7203
fi
6672
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7204
 
 
7205
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6673
7206
  done
6674
7207
  CPPFLAGS=$oflags
6675
7208
else
6683
7216
fi
6684
7217
 
6685
7218
fi
6686
 
echo "$as_me:$LINENO: result: $ne_cv_fmt_ssize_t" >&5
6687
 
echo "${ECHO_T}$ne_cv_fmt_ssize_t" >&6
 
7219
{ echo "$as_me:$LINENO: result: $ne_cv_fmt_ssize_t" >&5
 
7220
echo "${ECHO_T}$ne_cv_fmt_ssize_t" >&6; }
6688
7221
 
6689
7222
if test "x$ne_cv_fmt_ssize_t" = "xnone"; then
6690
7223
  { { echo "$as_me:$LINENO: error: format string for ssize_t not found" >&5
6700
7233
 
6701
7234
 
6702
7235
 
6703
 
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6704
 
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
 
7236
{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
 
7237
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
6705
7238
if test "${ac_cv_c_bigendian+set}" = set; then
6706
7239
  echo $ECHO_N "(cached) $ECHO_C" >&6
6707
7240
else
6718
7251
int
6719
7252
main ()
6720
7253
{
6721
 
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 
7254
#if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
 
7255
        && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
6722
7256
 bogus endian macros
6723
7257
#endif
6724
7258
 
6727
7261
}
6728
7262
_ACEOF
6729
7263
rm -f conftest.$ac_objext
6730
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6731
 
  (eval $ac_compile) 2>conftest.er1
 
7264
if { (ac_try="$ac_compile"
 
7265
case "(($ac_try" in
 
7266
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7267
  *) ac_try_echo=$ac_try;;
 
7268
esac
 
7269
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7270
  (eval "$ac_compile") 2>conftest.er1
6732
7271
  ac_status=$?
6733
7272
  grep -v '^ *+' conftest.er1 >conftest.err
6734
7273
  rm -f conftest.er1
6735
7274
  cat conftest.err >&5
6736
7275
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737
 
  (exit $ac_status); } &&
6738
 
         { ac_try='test -z "$ac_c_werror_flag"
6739
 
                         || test ! -s conftest.err'
6740
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6741
 
  (eval $ac_try) 2>&5
6742
 
  ac_status=$?
6743
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744
 
  (exit $ac_status); }; } &&
6745
 
         { ac_try='test -s conftest.$ac_objext'
6746
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6747
 
  (eval $ac_try) 2>&5
6748
 
  ac_status=$?
6749
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750
 
  (exit $ac_status); }; }; then
 
7276
  (exit $ac_status); } && {
 
7277
         test -z "$ac_c_werror_flag" ||
 
7278
         test ! -s conftest.err
 
7279
       } && test -s conftest.$ac_objext; then
6751
7280
  # It does; now see whether it defined to BIG_ENDIAN or not.
6752
7281
cat >conftest.$ac_ext <<_ACEOF
6753
7282
/* confdefs.h.  */
6770
7299
}
6771
7300
_ACEOF
6772
7301
rm -f conftest.$ac_objext
6773
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6774
 
  (eval $ac_compile) 2>conftest.er1
 
7302
if { (ac_try="$ac_compile"
 
7303
case "(($ac_try" in
 
7304
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7305
  *) ac_try_echo=$ac_try;;
 
7306
esac
 
7307
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7308
  (eval "$ac_compile") 2>conftest.er1
6775
7309
  ac_status=$?
6776
7310
  grep -v '^ *+' conftest.er1 >conftest.err
6777
7311
  rm -f conftest.er1
6778
7312
  cat conftest.err >&5
6779
7313
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780
 
  (exit $ac_status); } &&
6781
 
         { ac_try='test -z "$ac_c_werror_flag"
6782
 
                         || test ! -s conftest.err'
6783
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6784
 
  (eval $ac_try) 2>&5
6785
 
  ac_status=$?
6786
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787
 
  (exit $ac_status); }; } &&
6788
 
         { ac_try='test -s conftest.$ac_objext'
6789
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6790
 
  (eval $ac_try) 2>&5
6791
 
  ac_status=$?
6792
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793
 
  (exit $ac_status); }; }; then
 
7314
  (exit $ac_status); } && {
 
7315
         test -z "$ac_c_werror_flag" ||
 
7316
         test ! -s conftest.err
 
7317
       } && test -s conftest.$ac_objext; then
6794
7318
  ac_cv_c_bigendian=yes
6795
7319
else
6796
7320
  echo "$as_me: failed program was:" >&5
6797
7321
sed 's/^/| /' conftest.$ac_ext >&5
6798
7322
 
6799
 
ac_cv_c_bigendian=no
 
7323
        ac_cv_c_bigendian=no
6800
7324
fi
6801
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7325
 
 
7326
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6802
7327
else
6803
7328
  echo "$as_me: failed program was:" >&5
6804
7329
sed 's/^/| /' conftest.$ac_ext >&5
6805
7330
 
6806
 
# It does not; compile a test program.
 
7331
        # It does not; compile a test program.
6807
7332
if test "$cross_compiling" = yes; then
6808
7333
  # try to guess the endianness by grepping values into an object file
6809
7334
  ac_cv_c_bigendian=unknown
6813
7338
cat confdefs.h >>conftest.$ac_ext
6814
7339
cat >>conftest.$ac_ext <<_ACEOF
6815
7340
/* end confdefs.h.  */
6816
 
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6817
 
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
7341
short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
7342
short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6818
7343
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
6819
 
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6820
 
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
7344
short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
7345
short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6821
7346
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
6822
7347
int
6823
7348
main ()
6828
7353
}
6829
7354
_ACEOF
6830
7355
rm -f conftest.$ac_objext
6831
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6832
 
  (eval $ac_compile) 2>conftest.er1
 
7356
if { (ac_try="$ac_compile"
 
7357
case "(($ac_try" in
 
7358
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7359
  *) ac_try_echo=$ac_try;;
 
7360
esac
 
7361
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7362
  (eval "$ac_compile") 2>conftest.er1
6833
7363
  ac_status=$?
6834
7364
  grep -v '^ *+' conftest.er1 >conftest.err
6835
7365
  rm -f conftest.er1
6836
7366
  cat conftest.err >&5
6837
7367
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838
 
  (exit $ac_status); } &&
6839
 
         { ac_try='test -z "$ac_c_werror_flag"
6840
 
                         || test ! -s conftest.err'
6841
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6842
 
  (eval $ac_try) 2>&5
6843
 
  ac_status=$?
6844
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845
 
  (exit $ac_status); }; } &&
6846
 
         { ac_try='test -s conftest.$ac_objext'
6847
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6848
 
  (eval $ac_try) 2>&5
6849
 
  ac_status=$?
6850
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851
 
  (exit $ac_status); }; }; then
 
7368
  (exit $ac_status); } && {
 
7369
         test -z "$ac_c_werror_flag" ||
 
7370
         test ! -s conftest.err
 
7371
       } && test -s conftest.$ac_objext; then
6852
7372
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
6853
7373
  ac_cv_c_bigendian=yes
6854
7374
fi
6864
7384
  echo "$as_me: failed program was:" >&5
6865
7385
sed 's/^/| /' conftest.$ac_ext >&5
6866
7386
 
 
7387
 
6867
7388
fi
6868
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7389
 
 
7390
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6869
7391
else
6870
7392
  cat >conftest.$ac_ext <<_ACEOF
6871
7393
/* confdefs.h.  */
6873
7395
cat confdefs.h >>conftest.$ac_ext
6874
7396
cat >>conftest.$ac_ext <<_ACEOF
6875
7397
/* end confdefs.h.  */
 
7398
$ac_includes_default
6876
7399
int
6877
7400
main ()
6878
7401
{
 
7402
 
6879
7403
  /* Are we little or big endian?  From Harbison&Steele.  */
6880
7404
  union
6881
7405
  {
6882
 
    long l;
6883
 
    char c[sizeof (long)];
 
7406
    long int l;
 
7407
    char c[sizeof (long int)];
6884
7408
  } u;
6885
7409
  u.l = 1;
6886
 
  exit (u.c[sizeof (long) - 1] == 1);
 
7410
  return u.c[sizeof (long int) - 1] == 1;
 
7411
 
 
7412
  ;
 
7413
  return 0;
6887
7414
}
6888
7415
_ACEOF
6889
7416
rm -f conftest$ac_exeext
6890
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6891
 
  (eval $ac_link) 2>&5
 
7417
if { (ac_try="$ac_link"
 
7418
case "(($ac_try" in
 
7419
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7420
  *) ac_try_echo=$ac_try;;
 
7421
esac
 
7422
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7423
  (eval "$ac_link") 2>&5
6892
7424
  ac_status=$?
6893
7425
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894
7426
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6895
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6896
 
  (eval $ac_try) 2>&5
 
7427
  { (case "(($ac_try" in
 
7428
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7429
  *) ac_try_echo=$ac_try;;
 
7430
esac
 
7431
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7432
  (eval "$ac_try") 2>&5
6897
7433
  ac_status=$?
6898
7434
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899
7435
  (exit $ac_status); }; }; then
6906
7442
( exit $ac_status )
6907
7443
ac_cv_c_bigendian=yes
6908
7444
fi
6909
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6910
 
fi
6911
 
fi
6912
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6913
 
fi
6914
 
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6915
 
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
 
7445
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
7446
fi
 
7447
 
 
7448
 
 
7449
fi
 
7450
 
 
7451
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7452
fi
 
7453
{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
 
7454
echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
6916
7455
case $ac_cv_c_bigendian in
6917
7456
  yes)
6918
7457
 
6930
7469
   { (exit 1); exit 1; }; } ;;
6931
7470
esac
6932
7471
 
6933
 
echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
6934
 
echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
 
7472
{ echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
 
7473
echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6; }
6935
7474
if test "${ac_cv_have_decl_strerror_r+set}" = set; then
6936
7475
  echo $ECHO_N "(cached) $ECHO_C" >&6
6937
7476
else
6946
7485
main ()
6947
7486
{
6948
7487
#ifndef strerror_r
6949
 
  char *p = (char *) strerror_r;
 
7488
  (void) strerror_r;
6950
7489
#endif
6951
7490
 
6952
7491
  ;
6954
7493
}
6955
7494
_ACEOF
6956
7495
rm -f conftest.$ac_objext
6957
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6958
 
  (eval $ac_compile) 2>conftest.er1
 
7496
if { (ac_try="$ac_compile"
 
7497
case "(($ac_try" in
 
7498
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7499
  *) ac_try_echo=$ac_try;;
 
7500
esac
 
7501
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7502
  (eval "$ac_compile") 2>conftest.er1
6959
7503
  ac_status=$?
6960
7504
  grep -v '^ *+' conftest.er1 >conftest.err
6961
7505
  rm -f conftest.er1
6962
7506
  cat conftest.err >&5
6963
7507
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964
 
  (exit $ac_status); } &&
6965
 
         { ac_try='test -z "$ac_c_werror_flag"
6966
 
                         || test ! -s conftest.err'
6967
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6968
 
  (eval $ac_try) 2>&5
6969
 
  ac_status=$?
6970
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971
 
  (exit $ac_status); }; } &&
6972
 
         { ac_try='test -s conftest.$ac_objext'
6973
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6974
 
  (eval $ac_try) 2>&5
6975
 
  ac_status=$?
6976
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977
 
  (exit $ac_status); }; }; then
 
7508
  (exit $ac_status); } && {
 
7509
         test -z "$ac_c_werror_flag" ||
 
7510
         test ! -s conftest.err
 
7511
       } && test -s conftest.$ac_objext; then
6978
7512
  ac_cv_have_decl_strerror_r=yes
6979
7513
else
6980
7514
  echo "$as_me: failed program was:" >&5
6981
7515
sed 's/^/| /' conftest.$ac_ext >&5
6982
7516
 
6983
 
ac_cv_have_decl_strerror_r=no
6984
 
fi
6985
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6986
 
fi
6987
 
echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
6988
 
echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
 
7517
        ac_cv_have_decl_strerror_r=no
 
7518
fi
 
7519
 
 
7520
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7521
fi
 
7522
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
 
7523
echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6; }
6989
7524
if test $ac_cv_have_decl_strerror_r = yes; then
6990
7525
 
6991
7526
cat >>confdefs.h <<_ACEOF
7006
7541
for ac_func in strerror_r
7007
7542
do
7008
7543
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7009
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
7010
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7011
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
7544
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
7545
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
7546
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7012
7547
  echo $ECHO_N "(cached) $ECHO_C" >&6
7013
7548
else
7014
7549
  cat >conftest.$ac_ext <<_ACEOF
7034
7569
 
7035
7570
#undef $ac_func
7036
7571
 
7037
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
7572
/* Override any GCC internal prototype to avoid an error.
 
7573
   Use char because int might match the return type of a GCC
 
7574
   builtin and then its argument prototype would still apply.  */
7038
7575
#ifdef __cplusplus
7039
7576
extern "C"
7040
 
{
7041
7577
#endif
7042
 
/* We use char because int might match the return type of a gcc2
7043
 
   builtin and then its argument prototype would still apply.  */
7044
7578
char $ac_func ();
7045
7579
/* The GNU C library defines this for functions which it implements
7046
7580
    to always fail with ENOSYS.  Some functions are actually named
7047
7581
    something starting with __ and the normal name is an alias.  */
7048
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
7582
#if defined __stub_$ac_func || defined __stub___$ac_func
7049
7583
choke me
7050
 
#else
7051
 
char (*f) () = $ac_func;
7052
 
#endif
7053
 
#ifdef __cplusplus
7054
 
}
7055
7584
#endif
7056
7585
 
7057
7586
int
7058
7587
main ()
7059
7588
{
7060
 
return f != $ac_func;
 
7589
return $ac_func ();
7061
7590
  ;
7062
7591
  return 0;
7063
7592
}
7064
7593
_ACEOF
7065
7594
rm -f conftest.$ac_objext conftest$ac_exeext
7066
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7067
 
  (eval $ac_link) 2>conftest.er1
 
7595
if { (ac_try="$ac_link"
 
7596
case "(($ac_try" in
 
7597
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7598
  *) ac_try_echo=$ac_try;;
 
7599
esac
 
7600
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7601
  (eval "$ac_link") 2>conftest.er1
7068
7602
  ac_status=$?
7069
7603
  grep -v '^ *+' conftest.er1 >conftest.err
7070
7604
  rm -f conftest.er1
7071
7605
  cat conftest.err >&5
7072
7606
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073
 
  (exit $ac_status); } &&
7074
 
         { ac_try='test -z "$ac_c_werror_flag"
7075
 
                         || test ! -s conftest.err'
7076
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077
 
  (eval $ac_try) 2>&5
7078
 
  ac_status=$?
7079
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080
 
  (exit $ac_status); }; } &&
7081
 
         { ac_try='test -s conftest$ac_exeext'
7082
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7083
 
  (eval $ac_try) 2>&5
7084
 
  ac_status=$?
7085
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086
 
  (exit $ac_status); }; }; then
 
7607
  (exit $ac_status); } && {
 
7608
         test -z "$ac_c_werror_flag" ||
 
7609
         test ! -s conftest.err
 
7610
       } && test -s conftest$ac_exeext &&
 
7611
       $as_test_x conftest$ac_exeext; then
7087
7612
  eval "$as_ac_var=yes"
7088
7613
else
7089
7614
  echo "$as_me: failed program was:" >&5
7090
7615
sed 's/^/| /' conftest.$ac_ext >&5
7091
7616
 
7092
 
eval "$as_ac_var=no"
 
7617
        eval "$as_ac_var=no"
7093
7618
fi
7094
 
rm -f conftest.err conftest.$ac_objext \
 
7619
 
 
7620
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7095
7621
      conftest$ac_exeext conftest.$ac_ext
7096
7622
fi
7097
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7098
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
7623
ac_res=`eval echo '${'$as_ac_var'}'`
 
7624
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
7625
echo "${ECHO_T}$ac_res" >&6; }
7099
7626
if test `eval echo '${'$as_ac_var'}'` = yes; then
7100
7627
  cat >>confdefs.h <<_ACEOF
7101
7628
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7104
7631
fi
7105
7632
done
7106
7633
 
7107
 
echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
7108
 
echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
 
7634
{ echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
 
7635
echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6; }
7109
7636
if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
7110
7637
  echo $ECHO_N "(cached) $ECHO_C" >&6
7111
7638
else
7126
7653
          char buf[100];
7127
7654
          char x = *strerror_r (0, buf, sizeof buf);
7128
7655
          char *p = strerror_r (0, buf, sizeof buf);
 
7656
          return !p || x;
7129
7657
 
7130
7658
  ;
7131
7659
  return 0;
7132
7660
}
7133
7661
_ACEOF
7134
7662
rm -f conftest.$ac_objext
7135
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7136
 
  (eval $ac_compile) 2>conftest.er1
 
7663
if { (ac_try="$ac_compile"
 
7664
case "(($ac_try" in
 
7665
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7666
  *) ac_try_echo=$ac_try;;
 
7667
esac
 
7668
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7669
  (eval "$ac_compile") 2>conftest.er1
7137
7670
  ac_status=$?
7138
7671
  grep -v '^ *+' conftest.er1 >conftest.err
7139
7672
  rm -f conftest.er1
7140
7673
  cat conftest.err >&5
7141
7674
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142
 
  (exit $ac_status); } &&
7143
 
         { ac_try='test -z "$ac_c_werror_flag"
7144
 
                         || test ! -s conftest.err'
7145
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7146
 
  (eval $ac_try) 2>&5
7147
 
  ac_status=$?
7148
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149
 
  (exit $ac_status); }; } &&
7150
 
         { ac_try='test -s conftest.$ac_objext'
7151
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7152
 
  (eval $ac_try) 2>&5
7153
 
  ac_status=$?
7154
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155
 
  (exit $ac_status); }; }; then
 
7675
  (exit $ac_status); } && {
 
7676
         test -z "$ac_c_werror_flag" ||
 
7677
         test ! -s conftest.err
 
7678
       } && test -s conftest.$ac_objext; then
7156
7679
  ac_cv_func_strerror_r_char_p=yes
7157
7680
else
7158
7681
  echo "$as_me: failed program was:" >&5
7159
7682
sed 's/^/| /' conftest.$ac_ext >&5
7160
7683
 
 
7684
 
7161
7685
fi
7162
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7686
 
 
7687
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7163
7688
    else
7164
7689
      # strerror_r is not declared.  Choose between
7165
7690
      # systems that have relatively inaccessible declarations for the
7183
7708
{
7184
7709
char buf[100];
7185
7710
          char x = *strerror_r (0, buf, sizeof buf);
7186
 
          exit (!isalpha (x));
 
7711
          return ! isalpha (x);
7187
7712
  ;
7188
7713
  return 0;
7189
7714
}
7190
7715
_ACEOF
7191
7716
rm -f conftest$ac_exeext
7192
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7193
 
  (eval $ac_link) 2>&5
 
7717
if { (ac_try="$ac_link"
 
7718
case "(($ac_try" in
 
7719
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7720
  *) ac_try_echo=$ac_try;;
 
7721
esac
 
7722
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7723
  (eval "$ac_link") 2>&5
7194
7724
  ac_status=$?
7195
7725
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196
7726
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7197
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7198
 
  (eval $ac_try) 2>&5
 
7727
  { (case "(($ac_try" in
 
7728
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7729
  *) ac_try_echo=$ac_try;;
 
7730
esac
 
7731
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7732
  (eval "$ac_try") 2>&5
7199
7733
  ac_status=$?
7200
7734
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201
7735
  (exit $ac_status); }; }; then
7206
7740
sed 's/^/| /' conftest.$ac_ext >&5
7207
7741
 
7208
7742
fi
7209
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
7743
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7210
7744
fi
 
7745
 
 
7746
 
7211
7747
    fi
7212
7748
 
7213
7749
fi
7214
 
echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
7215
 
echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
 
7750
{ echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
 
7751
echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6; }
7216
7752
if test $ac_cv_func_strerror_r_char_p = yes; then
7217
7753
 
7218
7754
cat >>confdefs.h <<\_ACEOF
7227
7763
for ac_func in snprintf vsnprintf
7228
7764
do
7229
7765
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7230
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
7231
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7232
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
7766
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
7767
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
7768
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7233
7769
  echo $ECHO_N "(cached) $ECHO_C" >&6
7234
7770
else
7235
7771
  cat >conftest.$ac_ext <<_ACEOF
7255
7791
 
7256
7792
#undef $ac_func
7257
7793
 
7258
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
7794
/* Override any GCC internal prototype to avoid an error.
 
7795
   Use char because int might match the return type of a GCC
 
7796
   builtin and then its argument prototype would still apply.  */
7259
7797
#ifdef __cplusplus
7260
7798
extern "C"
7261
 
{
7262
7799
#endif
7263
 
/* We use char because int might match the return type of a gcc2
7264
 
   builtin and then its argument prototype would still apply.  */
7265
7800
char $ac_func ();
7266
7801
/* The GNU C library defines this for functions which it implements
7267
7802
    to always fail with ENOSYS.  Some functions are actually named
7268
7803
    something starting with __ and the normal name is an alias.  */
7269
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
7804
#if defined __stub_$ac_func || defined __stub___$ac_func
7270
7805
choke me
7271
 
#else
7272
 
char (*f) () = $ac_func;
7273
 
#endif
7274
 
#ifdef __cplusplus
7275
 
}
7276
7806
#endif
7277
7807
 
7278
7808
int
7279
7809
main ()
7280
7810
{
7281
 
return f != $ac_func;
 
7811
return $ac_func ();
7282
7812
  ;
7283
7813
  return 0;
7284
7814
}
7285
7815
_ACEOF
7286
7816
rm -f conftest.$ac_objext conftest$ac_exeext
7287
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7288
 
  (eval $ac_link) 2>conftest.er1
 
7817
if { (ac_try="$ac_link"
 
7818
case "(($ac_try" in
 
7819
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7820
  *) ac_try_echo=$ac_try;;
 
7821
esac
 
7822
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7823
  (eval "$ac_link") 2>conftest.er1
7289
7824
  ac_status=$?
7290
7825
  grep -v '^ *+' conftest.er1 >conftest.err
7291
7826
  rm -f conftest.er1
7292
7827
  cat conftest.err >&5
7293
7828
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294
 
  (exit $ac_status); } &&
7295
 
         { ac_try='test -z "$ac_c_werror_flag"
7296
 
                         || test ! -s conftest.err'
7297
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7298
 
  (eval $ac_try) 2>&5
7299
 
  ac_status=$?
7300
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301
 
  (exit $ac_status); }; } &&
7302
 
         { ac_try='test -s conftest$ac_exeext'
7303
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7304
 
  (eval $ac_try) 2>&5
7305
 
  ac_status=$?
7306
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307
 
  (exit $ac_status); }; }; then
 
7829
  (exit $ac_status); } && {
 
7830
         test -z "$ac_c_werror_flag" ||
 
7831
         test ! -s conftest.err
 
7832
       } && test -s conftest$ac_exeext &&
 
7833
       $as_test_x conftest$ac_exeext; then
7308
7834
  eval "$as_ac_var=yes"
7309
7835
else
7310
7836
  echo "$as_me: failed program was:" >&5
7311
7837
sed 's/^/| /' conftest.$ac_ext >&5
7312
7838
 
7313
 
eval "$as_ac_var=no"
 
7839
        eval "$as_ac_var=no"
7314
7840
fi
7315
 
rm -f conftest.err conftest.$ac_objext \
 
7841
 
 
7842
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7316
7843
      conftest$ac_exeext conftest.$ac_ext
7317
7844
fi
7318
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7319
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
7845
ac_res=`eval echo '${'$as_ac_var'}'`
 
7846
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
7847
echo "${ECHO_T}$ac_res" >&6; }
7320
7848
if test `eval echo '${'$as_ac_var'}'` = yes; then
7321
7849
  cat >>confdefs.h <<_ACEOF
7322
7850
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7326
7854
 
7327
7855
   ne_save_LIBS=$LIBS
7328
7856
   LIBS="$LIBS -lm"    # Always need -lm
7329
 
   echo "$as_me:$LINENO: checking for trio_vsnprintf in -ltrio" >&5
7330
 
echo $ECHO_N "checking for trio_vsnprintf in -ltrio... $ECHO_C" >&6
 
7857
   { echo "$as_me:$LINENO: checking for trio_vsnprintf in -ltrio" >&5
 
7858
echo $ECHO_N "checking for trio_vsnprintf in -ltrio... $ECHO_C" >&6; }
7331
7859
if test "${ac_cv_lib_trio_trio_vsnprintf+set}" = set; then
7332
7860
  echo $ECHO_N "(cached) $ECHO_C" >&6
7333
7861
else
7340
7868
cat >>conftest.$ac_ext <<_ACEOF
7341
7869
/* end confdefs.h.  */
7342
7870
 
7343
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
7871
/* Override any GCC internal prototype to avoid an error.
 
7872
   Use char because int might match the return type of a GCC
 
7873
   builtin and then its argument prototype would still apply.  */
7344
7874
#ifdef __cplusplus
7345
7875
extern "C"
7346
7876
#endif
7347
 
/* We use char because int might match the return type of a gcc2
7348
 
   builtin and then its argument prototype would still apply.  */
7349
7877
char trio_vsnprintf ();
7350
7878
int
7351
7879
main ()
7352
7880
{
7353
 
trio_vsnprintf ();
 
7881
return trio_vsnprintf ();
7354
7882
  ;
7355
7883
  return 0;
7356
7884
}
7357
7885
_ACEOF
7358
7886
rm -f conftest.$ac_objext conftest$ac_exeext
7359
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7360
 
  (eval $ac_link) 2>conftest.er1
 
7887
if { (ac_try="$ac_link"
 
7888
case "(($ac_try" in
 
7889
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7890
  *) ac_try_echo=$ac_try;;
 
7891
esac
 
7892
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7893
  (eval "$ac_link") 2>conftest.er1
7361
7894
  ac_status=$?
7362
7895
  grep -v '^ *+' conftest.er1 >conftest.err
7363
7896
  rm -f conftest.er1
7364
7897
  cat conftest.err >&5
7365
7898
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366
 
  (exit $ac_status); } &&
7367
 
         { ac_try='test -z "$ac_c_werror_flag"
7368
 
                         || test ! -s conftest.err'
7369
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7370
 
  (eval $ac_try) 2>&5
7371
 
  ac_status=$?
7372
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373
 
  (exit $ac_status); }; } &&
7374
 
         { ac_try='test -s conftest$ac_exeext'
7375
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7376
 
  (eval $ac_try) 2>&5
7377
 
  ac_status=$?
7378
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379
 
  (exit $ac_status); }; }; then
 
7899
  (exit $ac_status); } && {
 
7900
         test -z "$ac_c_werror_flag" ||
 
7901
         test ! -s conftest.err
 
7902
       } && test -s conftest$ac_exeext &&
 
7903
       $as_test_x conftest$ac_exeext; then
7380
7904
  ac_cv_lib_trio_trio_vsnprintf=yes
7381
7905
else
7382
7906
  echo "$as_me: failed program was:" >&5
7383
7907
sed 's/^/| /' conftest.$ac_ext >&5
7384
7908
 
7385
 
ac_cv_lib_trio_trio_vsnprintf=no
 
7909
        ac_cv_lib_trio_trio_vsnprintf=no
7386
7910
fi
7387
 
rm -f conftest.err conftest.$ac_objext \
 
7911
 
 
7912
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7388
7913
      conftest$ac_exeext conftest.$ac_ext
7389
7914
LIBS=$ac_check_lib_save_LIBS
7390
7915
fi
7391
 
echo "$as_me:$LINENO: result: $ac_cv_lib_trio_trio_vsnprintf" >&5
7392
 
echo "${ECHO_T}$ac_cv_lib_trio_trio_vsnprintf" >&6
 
7916
{ echo "$as_me:$LINENO: result: $ac_cv_lib_trio_trio_vsnprintf" >&5
 
7917
echo "${ECHO_T}$ac_cv_lib_trio_trio_vsnprintf" >&6; }
7393
7918
if test $ac_cv_lib_trio_trio_vsnprintf = yes; then
7394
7919
 
7395
7920
for ac_header in trio.h
7396
7921
do
7397
7922
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7398
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7399
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
7400
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7401
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7923
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
7924
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7925
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
7926
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7402
7927
  echo $ECHO_N "(cached) $ECHO_C" >&6
7403
7928
fi
7404
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7405
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
7929
ac_res=`eval echo '${'$as_ac_Header'}'`
 
7930
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
7931
echo "${ECHO_T}$ac_res" >&6; }
7406
7932
else
7407
7933
  # Is the header compilable?
7408
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
7409
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
7934
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
7935
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7410
7936
cat >conftest.$ac_ext <<_ACEOF
7411
7937
/* confdefs.h.  */
7412
7938
_ACEOF
7417
7943
#include <$ac_header>
7418
7944
_ACEOF
7419
7945
rm -f conftest.$ac_objext
7420
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7421
 
  (eval $ac_compile) 2>conftest.er1
 
7946
if { (ac_try="$ac_compile"
 
7947
case "(($ac_try" in
 
7948
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7949
  *) ac_try_echo=$ac_try;;
 
7950
esac
 
7951
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7952
  (eval "$ac_compile") 2>conftest.er1
7422
7953
  ac_status=$?
7423
7954
  grep -v '^ *+' conftest.er1 >conftest.err
7424
7955
  rm -f conftest.er1
7425
7956
  cat conftest.err >&5
7426
7957
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427
 
  (exit $ac_status); } &&
7428
 
         { ac_try='test -z "$ac_c_werror_flag"
7429
 
                         || test ! -s conftest.err'
7430
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7431
 
  (eval $ac_try) 2>&5
7432
 
  ac_status=$?
7433
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434
 
  (exit $ac_status); }; } &&
7435
 
         { ac_try='test -s conftest.$ac_objext'
7436
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7437
 
  (eval $ac_try) 2>&5
7438
 
  ac_status=$?
7439
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440
 
  (exit $ac_status); }; }; then
 
7958
  (exit $ac_status); } && {
 
7959
         test -z "$ac_c_werror_flag" ||
 
7960
         test ! -s conftest.err
 
7961
       } && test -s conftest.$ac_objext; then
7441
7962
  ac_header_compiler=yes
7442
7963
else
7443
7964
  echo "$as_me: failed program was:" >&5
7444
7965
sed 's/^/| /' conftest.$ac_ext >&5
7445
7966
 
7446
 
ac_header_compiler=no
 
7967
        ac_header_compiler=no
7447
7968
fi
7448
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7449
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7450
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
7969
 
 
7970
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7971
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
7972
echo "${ECHO_T}$ac_header_compiler" >&6; }
7451
7973
 
7452
7974
# Is the header present?
7453
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
7454
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
7975
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
7976
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7455
7977
cat >conftest.$ac_ext <<_ACEOF
7456
7978
/* confdefs.h.  */
7457
7979
_ACEOF
7460
7982
/* end confdefs.h.  */
7461
7983
#include <$ac_header>
7462
7984
_ACEOF
7463
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7464
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
7985
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
7986
case "(($ac_try" in
 
7987
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7988
  *) ac_try_echo=$ac_try;;
 
7989
esac
 
7990
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7991
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7465
7992
  ac_status=$?
7466
7993
  grep -v '^ *+' conftest.er1 >conftest.err
7467
7994
  rm -f conftest.er1
7468
7995
  cat conftest.err >&5
7469
7996
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470
 
  (exit $ac_status); } >/dev/null; then
7471
 
  if test -s conftest.err; then
7472
 
    ac_cpp_err=$ac_c_preproc_warn_flag
7473
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7474
 
  else
7475
 
    ac_cpp_err=
7476
 
  fi
7477
 
else
7478
 
  ac_cpp_err=yes
7479
 
fi
7480
 
if test -z "$ac_cpp_err"; then
 
7997
  (exit $ac_status); } >/dev/null && {
 
7998
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
7999
         test ! -s conftest.err
 
8000
       }; then
7481
8001
  ac_header_preproc=yes
7482
8002
else
7483
8003
  echo "$as_me: failed program was:" >&5
7485
8005
 
7486
8006
  ac_header_preproc=no
7487
8007
fi
 
8008
 
7488
8009
rm -f conftest.err conftest.$ac_ext
7489
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7490
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
8010
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
8011
echo "${ECHO_T}$ac_header_preproc" >&6; }
7491
8012
 
7492
8013
# So?  What about this header?
7493
8014
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7511
8032
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7512
8033
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7513
8034
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7514
 
    (
7515
 
      cat <<\_ASBOX
 
8035
    ( cat <<\_ASBOX
7516
8036
## -------------------------------- ##
7517
8037
## Report this to sitecopy@lyra.org ##
7518
8038
## -------------------------------- ##
7519
8039
_ASBOX
7520
 
    ) |
7521
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
8040
     ) | sed "s/^/$as_me: WARNING:     /" >&2
7522
8041
    ;;
7523
8042
esac
7524
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
7525
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7526
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8043
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8044
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
8045
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7527
8046
  echo $ECHO_N "(cached) $ECHO_C" >&6
7528
8047
else
7529
8048
  eval "$as_ac_Header=\$ac_header_preproc"
7530
8049
fi
7531
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7532
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
8050
ac_res=`eval echo '${'$as_ac_Header'}'`
 
8051
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
8052
echo "${ECHO_T}$ac_res" >&6; }
7533
8053
 
7534
8054
fi
7535
8055
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7574
8094
if test -n "$ac_tool_prefix"; then
7575
8095
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7576
8096
set dummy ${ac_tool_prefix}ar; ac_word=$2
7577
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
7578
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8097
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8098
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7579
8099
if test "${ac_cv_path_AR+set}" = set; then
7580
8100
  echo $ECHO_N "(cached) $ECHO_C" >&6
7581
8101
else
7590
8110
  IFS=$as_save_IFS
7591
8111
  test -z "$as_dir" && as_dir=.
7592
8112
  for ac_exec_ext in '' $ac_executable_extensions; do
7593
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8113
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7594
8114
    ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
7595
8115
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7596
8116
    break 2
7597
8117
  fi
7598
8118
done
7599
8119
done
 
8120
IFS=$as_save_IFS
7600
8121
 
7601
8122
  ;;
7602
8123
esac
7603
8124
fi
7604
8125
AR=$ac_cv_path_AR
7605
 
 
7606
8126
if test -n "$AR"; then
7607
 
  echo "$as_me:$LINENO: result: $AR" >&5
7608
 
echo "${ECHO_T}$AR" >&6
 
8127
  { echo "$as_me:$LINENO: result: $AR" >&5
 
8128
echo "${ECHO_T}$AR" >&6; }
7609
8129
else
7610
 
  echo "$as_me:$LINENO: result: no" >&5
7611
 
echo "${ECHO_T}no" >&6
 
8130
  { echo "$as_me:$LINENO: result: no" >&5
 
8131
echo "${ECHO_T}no" >&6; }
7612
8132
fi
 
8133
 
7613
8134
 
7614
8135
fi
7615
8136
if test -z "$ac_cv_path_AR"; then
7616
8137
  ac_pt_AR=$AR
7617
8138
  # Extract the first word of "ar", so it can be a program name with args.
7618
8139
set dummy ar; ac_word=$2
7619
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
7620
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8140
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8141
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7621
8142
if test "${ac_cv_path_ac_pt_AR+set}" = set; then
7622
8143
  echo $ECHO_N "(cached) $ECHO_C" >&6
7623
8144
else
7632
8153
  IFS=$as_save_IFS
7633
8154
  test -z "$as_dir" && as_dir=.
7634
8155
  for ac_exec_ext in '' $ac_executable_extensions; do
7635
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8156
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7636
8157
    ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
7637
8158
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7638
8159
    break 2
7639
8160
  fi
7640
8161
done
7641
8162
done
 
8163
IFS=$as_save_IFS
7642
8164
 
7643
 
  test -z "$ac_cv_path_ac_pt_AR" && ac_cv_path_ac_pt_AR="notfound"
7644
8165
  ;;
7645
8166
esac
7646
8167
fi
7647
8168
ac_pt_AR=$ac_cv_path_ac_pt_AR
7648
 
 
7649
8169
if test -n "$ac_pt_AR"; then
7650
 
  echo "$as_me:$LINENO: result: $ac_pt_AR" >&5
7651
 
echo "${ECHO_T}$ac_pt_AR" >&6
 
8170
  { echo "$as_me:$LINENO: result: $ac_pt_AR" >&5
 
8171
echo "${ECHO_T}$ac_pt_AR" >&6; }
7652
8172
else
7653
 
  echo "$as_me:$LINENO: result: no" >&5
7654
 
echo "${ECHO_T}no" >&6
 
8173
  { echo "$as_me:$LINENO: result: no" >&5
 
8174
echo "${ECHO_T}no" >&6; }
7655
8175
fi
7656
8176
 
7657
 
  AR=$ac_pt_AR
 
8177
  if test "x$ac_pt_AR" = x; then
 
8178
    AR="notfound"
 
8179
  else
 
8180
    case $cross_compiling:$ac_tool_warned in
 
8181
yes:)
 
8182
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
8183
whose name does not start with the host triplet.  If you think this
 
8184
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
8185
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
8186
whose name does not start with the host triplet.  If you think this
 
8187
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
8188
ac_tool_warned=yes ;;
 
8189
esac
 
8190
    AR=$ac_pt_AR
 
8191
  fi
7658
8192
else
7659
8193
  AR="$ac_cv_path_AR"
7660
8194
fi
7667
8201
if test -n "$ac_tool_prefix"; then
7668
8202
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7669
8203
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7670
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
7671
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8204
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8205
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7672
8206
if test "${ac_cv_path_RANLIB+set}" = set; then
7673
8207
  echo $ECHO_N "(cached) $ECHO_C" >&6
7674
8208
else
7683
8217
  IFS=$as_save_IFS
7684
8218
  test -z "$as_dir" && as_dir=.
7685
8219
  for ac_exec_ext in '' $ac_executable_extensions; do
7686
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8220
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7687
8221
    ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
7688
8222
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7689
8223
    break 2
7690
8224
  fi
7691
8225
done
7692
8226
done
 
8227
IFS=$as_save_IFS
7693
8228
 
7694
8229
  ;;
7695
8230
esac
7696
8231
fi
7697
8232
RANLIB=$ac_cv_path_RANLIB
7698
 
 
7699
8233
if test -n "$RANLIB"; then
7700
 
  echo "$as_me:$LINENO: result: $RANLIB" >&5
7701
 
echo "${ECHO_T}$RANLIB" >&6
 
8234
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
 
8235
echo "${ECHO_T}$RANLIB" >&6; }
7702
8236
else
7703
 
  echo "$as_me:$LINENO: result: no" >&5
7704
 
echo "${ECHO_T}no" >&6
 
8237
  { echo "$as_me:$LINENO: result: no" >&5
 
8238
echo "${ECHO_T}no" >&6; }
7705
8239
fi
 
8240
 
7706
8241
 
7707
8242
fi
7708
8243
if test -z "$ac_cv_path_RANLIB"; then
7709
8244
  ac_pt_RANLIB=$RANLIB
7710
8245
  # Extract the first word of "ranlib", so it can be a program name with args.
7711
8246
set dummy ranlib; ac_word=$2
7712
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
7713
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8247
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8248
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7714
8249
if test "${ac_cv_path_ac_pt_RANLIB+set}" = set; then
7715
8250
  echo $ECHO_N "(cached) $ECHO_C" >&6
7716
8251
else
7725
8260
  IFS=$as_save_IFS
7726
8261
  test -z "$as_dir" && as_dir=.
7727
8262
  for ac_exec_ext in '' $ac_executable_extensions; do
7728
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8263
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7729
8264
    ac_cv_path_ac_pt_RANLIB="$as_dir/$ac_word$ac_exec_ext"
7730
8265
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7731
8266
    break 2
7732
8267
  fi
7733
8268
done
7734
8269
done
 
8270
IFS=$as_save_IFS
7735
8271
 
7736
 
  test -z "$ac_cv_path_ac_pt_RANLIB" && ac_cv_path_ac_pt_RANLIB=":"
7737
8272
  ;;
7738
8273
esac
7739
8274
fi
7740
8275
ac_pt_RANLIB=$ac_cv_path_ac_pt_RANLIB
7741
 
 
7742
8276
if test -n "$ac_pt_RANLIB"; then
7743
 
  echo "$as_me:$LINENO: result: $ac_pt_RANLIB" >&5
7744
 
echo "${ECHO_T}$ac_pt_RANLIB" >&6
 
8277
  { echo "$as_me:$LINENO: result: $ac_pt_RANLIB" >&5
 
8278
echo "${ECHO_T}$ac_pt_RANLIB" >&6; }
7745
8279
else
7746
 
  echo "$as_me:$LINENO: result: no" >&5
7747
 
echo "${ECHO_T}no" >&6
 
8280
  { echo "$as_me:$LINENO: result: no" >&5
 
8281
echo "${ECHO_T}no" >&6; }
7748
8282
fi
7749
8283
 
7750
 
  RANLIB=$ac_pt_RANLIB
 
8284
  if test "x$ac_pt_RANLIB" = x; then
 
8285
    RANLIB=":"
 
8286
  else
 
8287
    case $cross_compiling:$ac_tool_warned in
 
8288
yes:)
 
8289
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
8290
whose name does not start with the host triplet.  If you think this
 
8291
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
8292
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
8293
whose name does not start with the host triplet.  If you think this
 
8294
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
8295
ac_tool_warned=yes ;;
 
8296
esac
 
8297
    RANLIB=$ac_pt_RANLIB
 
8298
  fi
7751
8299
else
7752
8300
  RANLIB="$ac_cv_path_RANLIB"
7753
8301
fi
7763
8311
 
7764
8312
 
7765
8313
 
7766
 
# Check whether --with-included-neon or --without-included-neon was given.
 
8314
# Check whether --with-included-neon was given.
7767
8315
if test "${with_included_neon+set}" = set; then
7768
 
  withval="$with_included_neon"
7769
 
  neon_force_included="$withval"
 
8316
  withval=$with_included_neon; neon_force_included="$withval"
7770
8317
else
7771
8318
  neon_force_included="no"
7772
 
fi;
7773
 
 
7774
 
 
7775
 
 
7776
 
 
7777
 
 
7778
 
 
7779
 
# Check whether --with-neon or --without-neon was given.
 
8319
fi
 
8320
 
 
8321
 
 
8322
 
 
8323
 
 
8324
 
 
8325
 
 
8326
 
 
8327
# Check whether --with-neon was given.
7780
8328
if test "${with_neon+set}" = set; then
7781
 
  withval="$with_neon"
7782
 
  case $withval in
 
8329
  withval=$with_neon; case $withval in
7783
8330
yes|no) neon_force_external=$withval; neon_ext_path= ;;
7784
8331
*) neon_force_external=yes; neon_ext_path=$withval ;;
7785
8332
esac;
7788
8335
neon_force_external=no
7789
8336
neon_ext_path=
7790
8337
 
7791
 
fi;
 
8338
fi
 
8339
 
7792
8340
 
7793
8341
if test "$neon_force_included" = "no"; then
7794
8342
    # There is no included neon source directory, or --with-included-neon
7799
8347
    if test "x$neon_ext_path" = "x"; then
7800
8348
        # Extract the first word of "neon-config", so it can be a program name with args.
7801
8349
set dummy neon-config; ac_word=$2
7802
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
7803
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8350
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8351
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7804
8352
if test "${ac_cv_path_NEON_CONFIG+set}" = set; then
7805
8353
  echo $ECHO_N "(cached) $ECHO_C" >&6
7806
8354
else
7815
8363
  IFS=$as_save_IFS
7816
8364
  test -z "$as_dir" && as_dir=.
7817
8365
  for ac_exec_ext in '' $ac_executable_extensions; do
7818
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8366
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7819
8367
    ac_cv_path_NEON_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7820
8368
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7821
8369
    break 2
7822
8370
  fi
7823
8371
done
7824
8372
done
 
8373
IFS=$as_save_IFS
7825
8374
 
7826
8375
  test -z "$ac_cv_path_NEON_CONFIG" && ac_cv_path_NEON_CONFIG="none"
7827
8376
  ;;
7828
8377
esac
7829
8378
fi
7830
8379
NEON_CONFIG=$ac_cv_path_NEON_CONFIG
7831
 
 
7832
8380
if test -n "$NEON_CONFIG"; then
7833
 
  echo "$as_me:$LINENO: result: $NEON_CONFIG" >&5
7834
 
echo "${ECHO_T}$NEON_CONFIG" >&6
 
8381
  { echo "$as_me:$LINENO: result: $NEON_CONFIG" >&5
 
8382
echo "${ECHO_T}$NEON_CONFIG" >&6; }
7835
8383
else
7836
 
  echo "$as_me:$LINENO: result: no" >&5
7837
 
echo "${ECHO_T}no" >&6
 
8384
  { echo "$as_me:$LINENO: result: no" >&5
 
8385
echo "${ECHO_T}no" >&6; }
7838
8386
fi
7839
8387
 
 
8388
 
7840
8389
        if test "x${NEON_CONFIG}" = "xnone"; then
7841
8390
            { echo "$as_me:$LINENO: no external neon library found" >&5
7842
8391
echo "$as_me: no external neon library found" >&6;}
7854
8403
    LIBS="$LIBS `$NEON_CONFIG --libs`"
7855
8404
    ne_libver=`$NEON_CONFIG --version | sed -e "s/neon //g"`
7856
8405
    # Check whether it's possible to link against neon
7857
 
    echo "$as_me:$LINENO: checking linking against neon" >&5
7858
 
echo $ECHO_N "checking linking against neon... $ECHO_C" >&6
 
8406
    { echo "$as_me:$LINENO: checking linking against neon" >&5
 
8407
echo $ECHO_N "checking linking against neon... $ECHO_C" >&6; }
7859
8408
if test "${ne_cv_lib_neon+set}" = set; then
7860
8409
  echo $ECHO_N "(cached) $ECHO_C" >&6
7861
8410
else
7875
8424
}
7876
8425
_ACEOF
7877
8426
rm -f conftest.$ac_objext conftest$ac_exeext
7878
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7879
 
  (eval $ac_link) 2>conftest.er1
 
8427
if { (ac_try="$ac_link"
 
8428
case "(($ac_try" in
 
8429
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8430
  *) ac_try_echo=$ac_try;;
 
8431
esac
 
8432
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8433
  (eval "$ac_link") 2>conftest.er1
7880
8434
  ac_status=$?
7881
8435
  grep -v '^ *+' conftest.er1 >conftest.err
7882
8436
  rm -f conftest.er1
7883
8437
  cat conftest.err >&5
7884
8438
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885
 
  (exit $ac_status); } &&
7886
 
         { ac_try='test -z "$ac_c_werror_flag"
7887
 
                         || test ! -s conftest.err'
7888
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7889
 
  (eval $ac_try) 2>&5
7890
 
  ac_status=$?
7891
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892
 
  (exit $ac_status); }; } &&
7893
 
         { ac_try='test -s conftest$ac_exeext'
7894
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7895
 
  (eval $ac_try) 2>&5
7896
 
  ac_status=$?
7897
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898
 
  (exit $ac_status); }; }; then
 
8439
  (exit $ac_status); } && {
 
8440
         test -z "$ac_c_werror_flag" ||
 
8441
         test ! -s conftest.err
 
8442
       } && test -s conftest$ac_exeext &&
 
8443
       $as_test_x conftest$ac_exeext; then
7899
8444
  ne_cv_lib_neon=yes
7900
8445
else
7901
8446
  echo "$as_me: failed program was:" >&5
7902
8447
sed 's/^/| /' conftest.$ac_ext >&5
7903
8448
 
7904
 
ne_cv_lib_neon=no
 
8449
        ne_cv_lib_neon=no
7905
8450
fi
7906
 
rm -f conftest.err conftest.$ac_objext \
 
8451
 
 
8452
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7907
8453
      conftest$ac_exeext conftest.$ac_ext
7908
8454
fi
7909
 
echo "$as_me:$LINENO: result: $ne_cv_lib_neon" >&5
7910
 
echo "${ECHO_T}$ne_cv_lib_neon" >&6
 
8455
{ echo "$as_me:$LINENO: result: $ne_cv_lib_neon" >&5
 
8456
echo "${ECHO_T}$ne_cv_lib_neon" >&6; }
7911
8457
    if test "$ne_cv_lib_neon" = "yes"; then
7912
8458
       ne_cv_lib_neonver=no
7913
 
       for v in 24 25 26; do
 
8459
       for v in 24 25 26 27 28; do
7914
8460
          case $ne_libver in
7915
8461
          0.$v.*) ne_cv_lib_neonver=yes ;;
7916
8462
          esac
8103
8649
fi
8104
8650
 
8105
8651
    neon_got_library=yes
8106
 
 
8107
 
else
8108
 
    { echo "$as_me:$LINENO: incompatible neon library version $ne_libver: wanted 0.24 25 26" >&5
8109
 
echo "$as_me: incompatible neon library version $ne_libver: wanted 0.24 25 26" >&6;}
 
8652
    if test $NE_FLAG_LFS = yes; then
 
8653
 
 
8654
 
 
8655
 
 
8656
 
 
8657
{ echo "$as_me:$LINENO: checking for off64_t" >&5
 
8658
echo $ECHO_N "checking for off64_t... $ECHO_C" >&6; }
 
8659
if test "${ac_cv_type_off64_t+set}" = set; then
 
8660
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8661
else
 
8662
  cat >conftest.$ac_ext <<_ACEOF
 
8663
/* confdefs.h.  */
 
8664
_ACEOF
 
8665
cat confdefs.h >>conftest.$ac_ext
 
8666
cat >>conftest.$ac_ext <<_ACEOF
 
8667
/* end confdefs.h.  */
 
8668
$ac_includes_default
 
8669
 
 
8670
 
 
8671
typedef off64_t ac__type_new_;
 
8672
int
 
8673
main ()
 
8674
{
 
8675
if ((ac__type_new_ *) 0)
 
8676
  return 0;
 
8677
if (sizeof (ac__type_new_))
 
8678
  return 0;
 
8679
  ;
 
8680
  return 0;
 
8681
}
 
8682
_ACEOF
 
8683
rm -f conftest.$ac_objext
 
8684
if { (ac_try="$ac_compile"
 
8685
case "(($ac_try" in
 
8686
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8687
  *) ac_try_echo=$ac_try;;
 
8688
esac
 
8689
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8690
  (eval "$ac_compile") 2>conftest.er1
 
8691
  ac_status=$?
 
8692
  grep -v '^ *+' conftest.er1 >conftest.err
 
8693
  rm -f conftest.er1
 
8694
  cat conftest.err >&5
 
8695
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8696
  (exit $ac_status); } && {
 
8697
         test -z "$ac_c_werror_flag" ||
 
8698
         test ! -s conftest.err
 
8699
       } && test -s conftest.$ac_objext; then
 
8700
  ac_cv_type_off64_t=yes
 
8701
else
 
8702
  echo "$as_me: failed program was:" >&5
 
8703
sed 's/^/| /' conftest.$ac_ext >&5
 
8704
 
 
8705
        ac_cv_type_off64_t=no
 
8706
fi
 
8707
 
 
8708
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8709
fi
 
8710
{ echo "$as_me:$LINENO: result: $ac_cv_type_off64_t" >&5
 
8711
echo "${ECHO_T}$ac_cv_type_off64_t" >&6; }
 
8712
 
 
8713
# The cast to long int works around a bug in the HP C Compiler
 
8714
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
8715
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
8716
# This bug is HP SR number 8606223364.
 
8717
{ echo "$as_me:$LINENO: checking size of off64_t" >&5
 
8718
echo $ECHO_N "checking size of off64_t... $ECHO_C" >&6; }
 
8719
if test "${ac_cv_sizeof_off64_t+set}" = set; then
 
8720
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8721
else
 
8722
  if test "$cross_compiling" = yes; then
 
8723
  # Depending upon the size, compute the lo and hi bounds.
 
8724
cat >conftest.$ac_ext <<_ACEOF
 
8725
/* confdefs.h.  */
 
8726
_ACEOF
 
8727
cat confdefs.h >>conftest.$ac_ext
 
8728
cat >>conftest.$ac_ext <<_ACEOF
 
8729
/* end confdefs.h.  */
 
8730
$ac_includes_default
 
8731
 
 
8732
 
 
8733
   typedef off64_t ac__type_sizeof_;
 
8734
int
 
8735
main ()
 
8736
{
 
8737
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
8738
test_array [0] = 0
 
8739
 
 
8740
  ;
 
8741
  return 0;
 
8742
}
 
8743
_ACEOF
 
8744
rm -f conftest.$ac_objext
 
8745
if { (ac_try="$ac_compile"
 
8746
case "(($ac_try" in
 
8747
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8748
  *) ac_try_echo=$ac_try;;
 
8749
esac
 
8750
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8751
  (eval "$ac_compile") 2>conftest.er1
 
8752
  ac_status=$?
 
8753
  grep -v '^ *+' conftest.er1 >conftest.err
 
8754
  rm -f conftest.er1
 
8755
  cat conftest.err >&5
 
8756
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8757
  (exit $ac_status); } && {
 
8758
         test -z "$ac_c_werror_flag" ||
 
8759
         test ! -s conftest.err
 
8760
       } && test -s conftest.$ac_objext; then
 
8761
  ac_lo=0 ac_mid=0
 
8762
  while :; do
 
8763
    cat >conftest.$ac_ext <<_ACEOF
 
8764
/* confdefs.h.  */
 
8765
_ACEOF
 
8766
cat confdefs.h >>conftest.$ac_ext
 
8767
cat >>conftest.$ac_ext <<_ACEOF
 
8768
/* end confdefs.h.  */
 
8769
$ac_includes_default
 
8770
 
 
8771
 
 
8772
   typedef off64_t ac__type_sizeof_;
 
8773
int
 
8774
main ()
 
8775
{
 
8776
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
8777
test_array [0] = 0
 
8778
 
 
8779
  ;
 
8780
  return 0;
 
8781
}
 
8782
_ACEOF
 
8783
rm -f conftest.$ac_objext
 
8784
if { (ac_try="$ac_compile"
 
8785
case "(($ac_try" in
 
8786
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8787
  *) ac_try_echo=$ac_try;;
 
8788
esac
 
8789
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8790
  (eval "$ac_compile") 2>conftest.er1
 
8791
  ac_status=$?
 
8792
  grep -v '^ *+' conftest.er1 >conftest.err
 
8793
  rm -f conftest.er1
 
8794
  cat conftest.err >&5
 
8795
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8796
  (exit $ac_status); } && {
 
8797
         test -z "$ac_c_werror_flag" ||
 
8798
         test ! -s conftest.err
 
8799
       } && test -s conftest.$ac_objext; then
 
8800
  ac_hi=$ac_mid; break
 
8801
else
 
8802
  echo "$as_me: failed program was:" >&5
 
8803
sed 's/^/| /' conftest.$ac_ext >&5
 
8804
 
 
8805
        ac_lo=`expr $ac_mid + 1`
 
8806
                        if test $ac_lo -le $ac_mid; then
 
8807
                          ac_lo= ac_hi=
 
8808
                          break
 
8809
                        fi
 
8810
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
8811
fi
 
8812
 
 
8813
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8814
  done
 
8815
else
 
8816
  echo "$as_me: failed program was:" >&5
 
8817
sed 's/^/| /' conftest.$ac_ext >&5
 
8818
 
 
8819
        cat >conftest.$ac_ext <<_ACEOF
 
8820
/* confdefs.h.  */
 
8821
_ACEOF
 
8822
cat confdefs.h >>conftest.$ac_ext
 
8823
cat >>conftest.$ac_ext <<_ACEOF
 
8824
/* end confdefs.h.  */
 
8825
$ac_includes_default
 
8826
 
 
8827
 
 
8828
   typedef off64_t ac__type_sizeof_;
 
8829
int
 
8830
main ()
 
8831
{
 
8832
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
8833
test_array [0] = 0
 
8834
 
 
8835
  ;
 
8836
  return 0;
 
8837
}
 
8838
_ACEOF
 
8839
rm -f conftest.$ac_objext
 
8840
if { (ac_try="$ac_compile"
 
8841
case "(($ac_try" in
 
8842
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8843
  *) ac_try_echo=$ac_try;;
 
8844
esac
 
8845
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8846
  (eval "$ac_compile") 2>conftest.er1
 
8847
  ac_status=$?
 
8848
  grep -v '^ *+' conftest.er1 >conftest.err
 
8849
  rm -f conftest.er1
 
8850
  cat conftest.err >&5
 
8851
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8852
  (exit $ac_status); } && {
 
8853
         test -z "$ac_c_werror_flag" ||
 
8854
         test ! -s conftest.err
 
8855
       } && test -s conftest.$ac_objext; then
 
8856
  ac_hi=-1 ac_mid=-1
 
8857
  while :; do
 
8858
    cat >conftest.$ac_ext <<_ACEOF
 
8859
/* confdefs.h.  */
 
8860
_ACEOF
 
8861
cat confdefs.h >>conftest.$ac_ext
 
8862
cat >>conftest.$ac_ext <<_ACEOF
 
8863
/* end confdefs.h.  */
 
8864
$ac_includes_default
 
8865
 
 
8866
 
 
8867
   typedef off64_t ac__type_sizeof_;
 
8868
int
 
8869
main ()
 
8870
{
 
8871
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
8872
test_array [0] = 0
 
8873
 
 
8874
  ;
 
8875
  return 0;
 
8876
}
 
8877
_ACEOF
 
8878
rm -f conftest.$ac_objext
 
8879
if { (ac_try="$ac_compile"
 
8880
case "(($ac_try" in
 
8881
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8882
  *) ac_try_echo=$ac_try;;
 
8883
esac
 
8884
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8885
  (eval "$ac_compile") 2>conftest.er1
 
8886
  ac_status=$?
 
8887
  grep -v '^ *+' conftest.er1 >conftest.err
 
8888
  rm -f conftest.er1
 
8889
  cat conftest.err >&5
 
8890
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8891
  (exit $ac_status); } && {
 
8892
         test -z "$ac_c_werror_flag" ||
 
8893
         test ! -s conftest.err
 
8894
       } && test -s conftest.$ac_objext; then
 
8895
  ac_lo=$ac_mid; break
 
8896
else
 
8897
  echo "$as_me: failed program was:" >&5
 
8898
sed 's/^/| /' conftest.$ac_ext >&5
 
8899
 
 
8900
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
8901
                        if test $ac_mid -le $ac_hi; then
 
8902
                          ac_lo= ac_hi=
 
8903
                          break
 
8904
                        fi
 
8905
                        ac_mid=`expr 2 '*' $ac_mid`
 
8906
fi
 
8907
 
 
8908
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8909
  done
 
8910
else
 
8911
  echo "$as_me: failed program was:" >&5
 
8912
sed 's/^/| /' conftest.$ac_ext >&5
 
8913
 
 
8914
        ac_lo= ac_hi=
 
8915
fi
 
8916
 
 
8917
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8918
fi
 
8919
 
 
8920
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8921
# Binary search between lo and hi bounds.
 
8922
while test "x$ac_lo" != "x$ac_hi"; do
 
8923
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
8924
  cat >conftest.$ac_ext <<_ACEOF
 
8925
/* confdefs.h.  */
 
8926
_ACEOF
 
8927
cat confdefs.h >>conftest.$ac_ext
 
8928
cat >>conftest.$ac_ext <<_ACEOF
 
8929
/* end confdefs.h.  */
 
8930
$ac_includes_default
 
8931
 
 
8932
 
 
8933
   typedef off64_t ac__type_sizeof_;
 
8934
int
 
8935
main ()
 
8936
{
 
8937
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
8938
test_array [0] = 0
 
8939
 
 
8940
  ;
 
8941
  return 0;
 
8942
}
 
8943
_ACEOF
 
8944
rm -f conftest.$ac_objext
 
8945
if { (ac_try="$ac_compile"
 
8946
case "(($ac_try" in
 
8947
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8948
  *) ac_try_echo=$ac_try;;
 
8949
esac
 
8950
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8951
  (eval "$ac_compile") 2>conftest.er1
 
8952
  ac_status=$?
 
8953
  grep -v '^ *+' conftest.er1 >conftest.err
 
8954
  rm -f conftest.er1
 
8955
  cat conftest.err >&5
 
8956
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8957
  (exit $ac_status); } && {
 
8958
         test -z "$ac_c_werror_flag" ||
 
8959
         test ! -s conftest.err
 
8960
       } && test -s conftest.$ac_objext; then
 
8961
  ac_hi=$ac_mid
 
8962
else
 
8963
  echo "$as_me: failed program was:" >&5
 
8964
sed 's/^/| /' conftest.$ac_ext >&5
 
8965
 
 
8966
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
8967
fi
 
8968
 
 
8969
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8970
done
 
8971
case $ac_lo in
 
8972
?*) ac_cv_sizeof_off64_t=$ac_lo;;
 
8973
'') if test "$ac_cv_type_off64_t" = yes; then
 
8974
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (off64_t)
 
8975
See \`config.log' for more details." >&5
 
8976
echo "$as_me: error: cannot compute sizeof (off64_t)
 
8977
See \`config.log' for more details." >&2;}
 
8978
   { (exit 77); exit 77; }; }
 
8979
   else
 
8980
     ac_cv_sizeof_off64_t=0
 
8981
   fi ;;
 
8982
esac
 
8983
else
 
8984
  cat >conftest.$ac_ext <<_ACEOF
 
8985
/* confdefs.h.  */
 
8986
_ACEOF
 
8987
cat confdefs.h >>conftest.$ac_ext
 
8988
cat >>conftest.$ac_ext <<_ACEOF
 
8989
/* end confdefs.h.  */
 
8990
$ac_includes_default
 
8991
 
 
8992
 
 
8993
   typedef off64_t ac__type_sizeof_;
 
8994
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
8995
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
8996
#include <stdio.h>
 
8997
#include <stdlib.h>
 
8998
int
 
8999
main ()
 
9000
{
 
9001
 
 
9002
  FILE *f = fopen ("conftest.val", "w");
 
9003
  if (! f)
 
9004
    return 1;
 
9005
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
9006
    {
 
9007
      long int i = longval ();
 
9008
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
9009
        return 1;
 
9010
      fprintf (f, "%ld\n", i);
 
9011
    }
 
9012
  else
 
9013
    {
 
9014
      unsigned long int i = ulongval ();
 
9015
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
9016
        return 1;
 
9017
      fprintf (f, "%lu\n", i);
 
9018
    }
 
9019
  return ferror (f) || fclose (f) != 0;
 
9020
 
 
9021
  ;
 
9022
  return 0;
 
9023
}
 
9024
_ACEOF
 
9025
rm -f conftest$ac_exeext
 
9026
if { (ac_try="$ac_link"
 
9027
case "(($ac_try" in
 
9028
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9029
  *) ac_try_echo=$ac_try;;
 
9030
esac
 
9031
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9032
  (eval "$ac_link") 2>&5
 
9033
  ac_status=$?
 
9034
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9035
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
9036
  { (case "(($ac_try" in
 
9037
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9038
  *) ac_try_echo=$ac_try;;
 
9039
esac
 
9040
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9041
  (eval "$ac_try") 2>&5
 
9042
  ac_status=$?
 
9043
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9044
  (exit $ac_status); }; }; then
 
9045
  ac_cv_sizeof_off64_t=`cat conftest.val`
 
9046
else
 
9047
  echo "$as_me: program exited with status $ac_status" >&5
 
9048
echo "$as_me: failed program was:" >&5
 
9049
sed 's/^/| /' conftest.$ac_ext >&5
 
9050
 
 
9051
( exit $ac_status )
 
9052
if test "$ac_cv_type_off64_t" = yes; then
 
9053
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (off64_t)
 
9054
See \`config.log' for more details." >&5
 
9055
echo "$as_me: error: cannot compute sizeof (off64_t)
 
9056
See \`config.log' for more details." >&2;}
 
9057
   { (exit 77); exit 77; }; }
 
9058
   else
 
9059
     ac_cv_sizeof_off64_t=0
 
9060
   fi
 
9061
fi
 
9062
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
9063
fi
 
9064
rm -f conftest.val
 
9065
fi
 
9066
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_off64_t" >&5
 
9067
echo "${ECHO_T}$ac_cv_sizeof_off64_t" >&6; }
 
9068
 
 
9069
 
 
9070
 
 
9071
cat >>confdefs.h <<_ACEOF
 
9072
#define SIZEOF_OFF64_T $ac_cv_sizeof_off64_t
 
9073
_ACEOF
 
9074
 
 
9075
 
 
9076
 
 
9077
 
 
9078
 
 
9079
 
 
9080
 
 
9081
{ echo "$as_me:$LINENO: checking how to print off64_t" >&5
 
9082
echo $ECHO_N "checking how to print off64_t... $ECHO_C" >&6; }
 
9083
if test "${ne_cv_fmt_off64_t+set}" = set; then
 
9084
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9085
else
 
9086
 
 
9087
ne_cv_fmt_off64_t=none
 
9088
if test $ne_fmt_trycompile = yes; then
 
9089
  oflags="$CPPFLAGS"
 
9090
  # Consider format string mismatches as errors
 
9091
  CPPFLAGS="$CPPFLAGS -Wformat -Werror"
 
9092
    for str in d ld lld; do
 
9093
    cat >conftest.$ac_ext <<_ACEOF
 
9094
/* confdefs.h.  */
 
9095
_ACEOF
 
9096
cat confdefs.h >>conftest.$ac_ext
 
9097
cat >>conftest.$ac_ext <<_ACEOF
 
9098
/* end confdefs.h.  */
 
9099
#include <sys/types.h>
 
9100
 
 
9101
#include <stdio.h>
 
9102
int
 
9103
main ()
 
9104
{
 
9105
off64_t i = 1; printf("%$str", i);
 
9106
  ;
 
9107
  return 0;
 
9108
}
 
9109
_ACEOF
 
9110
rm -f conftest.$ac_objext
 
9111
if { (ac_try="$ac_compile"
 
9112
case "(($ac_try" in
 
9113
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9114
  *) ac_try_echo=$ac_try;;
 
9115
esac
 
9116
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9117
  (eval "$ac_compile") 2>conftest.er1
 
9118
  ac_status=$?
 
9119
  grep -v '^ *+' conftest.er1 >conftest.err
 
9120
  rm -f conftest.er1
 
9121
  cat conftest.err >&5
 
9122
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9123
  (exit $ac_status); } && {
 
9124
         test -z "$ac_c_werror_flag" ||
 
9125
         test ! -s conftest.err
 
9126
       } && test -s conftest.$ac_objext; then
 
9127
  ne_cv_fmt_off64_t=$str; break
 
9128
else
 
9129
  echo "$as_me: failed program was:" >&5
 
9130
sed 's/^/| /' conftest.$ac_ext >&5
 
9131
 
 
9132
 
 
9133
fi
 
9134
 
 
9135
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9136
  done
 
9137
  CPPFLAGS=$oflags
 
9138
else
 
9139
  # Best guess. Don't have to be too precise since we probably won't
 
9140
  # get a warning message anyway.
 
9141
  case $ac_cv_sizeof_off64_t in
 
9142
  $ac_cv_sizeof_int) ne_cv_fmt_off64_t="d" ;;
 
9143
  $ac_cv_sizeof_long) ne_cv_fmt_off64_t="ld" ;;
 
9144
  $ac_cv_sizeof_long_long) ne_cv_fmt_off64_t="lld" ;;
 
9145
  esac
 
9146
fi
 
9147
 
 
9148
fi
 
9149
{ echo "$as_me:$LINENO: result: $ne_cv_fmt_off64_t" >&5
 
9150
echo "${ECHO_T}$ne_cv_fmt_off64_t" >&6; }
 
9151
 
 
9152
if test "x$ne_cv_fmt_off64_t" = "xnone"; then
 
9153
  { { echo "$as_me:$LINENO: error: format string for off64_t not found" >&5
 
9154
echo "$as_me: error: format string for off64_t not found" >&2;}
 
9155
   { (exit 1); exit 1; }; }
 
9156
fi
 
9157
 
 
9158
 
 
9159
cat >>confdefs.h <<_ACEOF
 
9160
#define NE_FMT_OFF64_T "$ne_cv_fmt_off64_t"
 
9161
_ACEOF
 
9162
 
 
9163
 
 
9164
 
 
9165
cat >>confdefs.h <<_ACEOF
 
9166
#define NE_FMT_NE_OFF_T NE_FMT_OFF64_T
 
9167
_ACEOF
 
9168
 
 
9169
    else
 
9170
       cat >>confdefs.h <<_ACEOF
 
9171
#define NE_FMT_NE_OFF_T NE_FMT_OFF_T
 
9172
_ACEOF
 
9173
 
 
9174
    fi
 
9175
 
 
9176
else
 
9177
    { echo "$as_me:$LINENO: incompatible neon library version $ne_libver: wanted 0.24 25 26 27 28" >&5
 
9178
echo "$as_me: incompatible neon library version $ne_libver: wanted 0.24 25 26 27 28" >&6;}
8110
9179
    neon_got_library=no
8111
9180
fi
8112
9181
 
8115
9184
echo "$as_me: ignoring non-executable ${NEON_CONFIG}" >&6;}
8116
9185
        fi
8117
9186
    else
8118
 
        echo "$as_me:$LINENO: checking for neon library in $neon_ext_path" >&5
8119
 
echo $ECHO_N "checking for neon library in $neon_ext_path... $ECHO_C" >&6
 
9187
        { echo "$as_me:$LINENO: checking for neon library in $neon_ext_path" >&5
 
9188
echo $ECHO_N "checking for neon library in $neon_ext_path... $ECHO_C" >&6; }
8120
9189
        NEON_CONFIG="$neon_ext_path/bin/neon-config"
8121
9190
        if test -x ${NEON_CONFIG}; then
8122
 
            echo "$as_me:$LINENO: result: found" >&5
8123
 
echo "${ECHO_T}found" >&6
 
9191
            { echo "$as_me:$LINENO: result: found" >&5
 
9192
echo "${ECHO_T}found" >&6; }
8124
9193
 
8125
9194
# Configure to use an external neon, given a neon-config script
8126
9195
# found at $NEON_CONFIG.
8134
9203
    LIBS="$LIBS `$NEON_CONFIG --libs`"
8135
9204
    ne_libver=`$NEON_CONFIG --version | sed -e "s/neon //g"`
8136
9205
    # Check whether it's possible to link against neon
8137
 
    echo "$as_me:$LINENO: checking linking against neon" >&5
8138
 
echo $ECHO_N "checking linking against neon... $ECHO_C" >&6
 
9206
    { echo "$as_me:$LINENO: checking linking against neon" >&5
 
9207
echo $ECHO_N "checking linking against neon... $ECHO_C" >&6; }
8139
9208
if test "${ne_cv_lib_neon+set}" = set; then
8140
9209
  echo $ECHO_N "(cached) $ECHO_C" >&6
8141
9210
else
8155
9224
}
8156
9225
_ACEOF
8157
9226
rm -f conftest.$ac_objext conftest$ac_exeext
8158
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8159
 
  (eval $ac_link) 2>conftest.er1
 
9227
if { (ac_try="$ac_link"
 
9228
case "(($ac_try" in
 
9229
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9230
  *) ac_try_echo=$ac_try;;
 
9231
esac
 
9232
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9233
  (eval "$ac_link") 2>conftest.er1
8160
9234
  ac_status=$?
8161
9235
  grep -v '^ *+' conftest.er1 >conftest.err
8162
9236
  rm -f conftest.er1
8163
9237
  cat conftest.err >&5
8164
9238
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165
 
  (exit $ac_status); } &&
8166
 
         { ac_try='test -z "$ac_c_werror_flag"
8167
 
                         || test ! -s conftest.err'
8168
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8169
 
  (eval $ac_try) 2>&5
8170
 
  ac_status=$?
8171
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172
 
  (exit $ac_status); }; } &&
8173
 
         { ac_try='test -s conftest$ac_exeext'
8174
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8175
 
  (eval $ac_try) 2>&5
8176
 
  ac_status=$?
8177
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178
 
  (exit $ac_status); }; }; then
 
9239
  (exit $ac_status); } && {
 
9240
         test -z "$ac_c_werror_flag" ||
 
9241
         test ! -s conftest.err
 
9242
       } && test -s conftest$ac_exeext &&
 
9243
       $as_test_x conftest$ac_exeext; then
8179
9244
  ne_cv_lib_neon=yes
8180
9245
else
8181
9246
  echo "$as_me: failed program was:" >&5
8182
9247
sed 's/^/| /' conftest.$ac_ext >&5
8183
9248
 
8184
 
ne_cv_lib_neon=no
 
9249
        ne_cv_lib_neon=no
8185
9250
fi
8186
 
rm -f conftest.err conftest.$ac_objext \
 
9251
 
 
9252
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8187
9253
      conftest$ac_exeext conftest.$ac_ext
8188
9254
fi
8189
 
echo "$as_me:$LINENO: result: $ne_cv_lib_neon" >&5
8190
 
echo "${ECHO_T}$ne_cv_lib_neon" >&6
 
9255
{ echo "$as_me:$LINENO: result: $ne_cv_lib_neon" >&5
 
9256
echo "${ECHO_T}$ne_cv_lib_neon" >&6; }
8191
9257
    if test "$ne_cv_lib_neon" = "yes"; then
8192
9258
       ne_cv_lib_neonver=no
8193
 
       for v in 24 25 26; do
 
9259
       for v in 24 25 26 27 28; do
8194
9260
          case $ne_libver in
8195
9261
          0.$v.*) ne_cv_lib_neonver=yes ;;
8196
9262
          esac
8383
9449
fi
8384
9450
 
8385
9451
    neon_got_library=yes
8386
 
 
8387
 
else
8388
 
    { echo "$as_me:$LINENO: incompatible neon library version $ne_libver: wanted 0.24 25 26" >&5
8389
 
echo "$as_me: incompatible neon library version $ne_libver: wanted 0.24 25 26" >&6;}
 
9452
    if test $NE_FLAG_LFS = yes; then
 
9453
 
 
9454
 
 
9455
 
 
9456
 
 
9457
{ echo "$as_me:$LINENO: checking for off64_t" >&5
 
9458
echo $ECHO_N "checking for off64_t... $ECHO_C" >&6; }
 
9459
if test "${ac_cv_type_off64_t+set}" = set; then
 
9460
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9461
else
 
9462
  cat >conftest.$ac_ext <<_ACEOF
 
9463
/* confdefs.h.  */
 
9464
_ACEOF
 
9465
cat confdefs.h >>conftest.$ac_ext
 
9466
cat >>conftest.$ac_ext <<_ACEOF
 
9467
/* end confdefs.h.  */
 
9468
$ac_includes_default
 
9469
 
 
9470
 
 
9471
typedef off64_t ac__type_new_;
 
9472
int
 
9473
main ()
 
9474
{
 
9475
if ((ac__type_new_ *) 0)
 
9476
  return 0;
 
9477
if (sizeof (ac__type_new_))
 
9478
  return 0;
 
9479
  ;
 
9480
  return 0;
 
9481
}
 
9482
_ACEOF
 
9483
rm -f conftest.$ac_objext
 
9484
if { (ac_try="$ac_compile"
 
9485
case "(($ac_try" in
 
9486
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9487
  *) ac_try_echo=$ac_try;;
 
9488
esac
 
9489
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9490
  (eval "$ac_compile") 2>conftest.er1
 
9491
  ac_status=$?
 
9492
  grep -v '^ *+' conftest.er1 >conftest.err
 
9493
  rm -f conftest.er1
 
9494
  cat conftest.err >&5
 
9495
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9496
  (exit $ac_status); } && {
 
9497
         test -z "$ac_c_werror_flag" ||
 
9498
         test ! -s conftest.err
 
9499
       } && test -s conftest.$ac_objext; then
 
9500
  ac_cv_type_off64_t=yes
 
9501
else
 
9502
  echo "$as_me: failed program was:" >&5
 
9503
sed 's/^/| /' conftest.$ac_ext >&5
 
9504
 
 
9505
        ac_cv_type_off64_t=no
 
9506
fi
 
9507
 
 
9508
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9509
fi
 
9510
{ echo "$as_me:$LINENO: result: $ac_cv_type_off64_t" >&5
 
9511
echo "${ECHO_T}$ac_cv_type_off64_t" >&6; }
 
9512
 
 
9513
# The cast to long int works around a bug in the HP C Compiler
 
9514
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
9515
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
9516
# This bug is HP SR number 8606223364.
 
9517
{ echo "$as_me:$LINENO: checking size of off64_t" >&5
 
9518
echo $ECHO_N "checking size of off64_t... $ECHO_C" >&6; }
 
9519
if test "${ac_cv_sizeof_off64_t+set}" = set; then
 
9520
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9521
else
 
9522
  if test "$cross_compiling" = yes; then
 
9523
  # Depending upon the size, compute the lo and hi bounds.
 
9524
cat >conftest.$ac_ext <<_ACEOF
 
9525
/* confdefs.h.  */
 
9526
_ACEOF
 
9527
cat confdefs.h >>conftest.$ac_ext
 
9528
cat >>conftest.$ac_ext <<_ACEOF
 
9529
/* end confdefs.h.  */
 
9530
$ac_includes_default
 
9531
 
 
9532
 
 
9533
   typedef off64_t ac__type_sizeof_;
 
9534
int
 
9535
main ()
 
9536
{
 
9537
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
9538
test_array [0] = 0
 
9539
 
 
9540
  ;
 
9541
  return 0;
 
9542
}
 
9543
_ACEOF
 
9544
rm -f conftest.$ac_objext
 
9545
if { (ac_try="$ac_compile"
 
9546
case "(($ac_try" in
 
9547
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9548
  *) ac_try_echo=$ac_try;;
 
9549
esac
 
9550
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9551
  (eval "$ac_compile") 2>conftest.er1
 
9552
  ac_status=$?
 
9553
  grep -v '^ *+' conftest.er1 >conftest.err
 
9554
  rm -f conftest.er1
 
9555
  cat conftest.err >&5
 
9556
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9557
  (exit $ac_status); } && {
 
9558
         test -z "$ac_c_werror_flag" ||
 
9559
         test ! -s conftest.err
 
9560
       } && test -s conftest.$ac_objext; then
 
9561
  ac_lo=0 ac_mid=0
 
9562
  while :; do
 
9563
    cat >conftest.$ac_ext <<_ACEOF
 
9564
/* confdefs.h.  */
 
9565
_ACEOF
 
9566
cat confdefs.h >>conftest.$ac_ext
 
9567
cat >>conftest.$ac_ext <<_ACEOF
 
9568
/* end confdefs.h.  */
 
9569
$ac_includes_default
 
9570
 
 
9571
 
 
9572
   typedef off64_t ac__type_sizeof_;
 
9573
int
 
9574
main ()
 
9575
{
 
9576
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
9577
test_array [0] = 0
 
9578
 
 
9579
  ;
 
9580
  return 0;
 
9581
}
 
9582
_ACEOF
 
9583
rm -f conftest.$ac_objext
 
9584
if { (ac_try="$ac_compile"
 
9585
case "(($ac_try" in
 
9586
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9587
  *) ac_try_echo=$ac_try;;
 
9588
esac
 
9589
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9590
  (eval "$ac_compile") 2>conftest.er1
 
9591
  ac_status=$?
 
9592
  grep -v '^ *+' conftest.er1 >conftest.err
 
9593
  rm -f conftest.er1
 
9594
  cat conftest.err >&5
 
9595
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9596
  (exit $ac_status); } && {
 
9597
         test -z "$ac_c_werror_flag" ||
 
9598
         test ! -s conftest.err
 
9599
       } && test -s conftest.$ac_objext; then
 
9600
  ac_hi=$ac_mid; break
 
9601
else
 
9602
  echo "$as_me: failed program was:" >&5
 
9603
sed 's/^/| /' conftest.$ac_ext >&5
 
9604
 
 
9605
        ac_lo=`expr $ac_mid + 1`
 
9606
                        if test $ac_lo -le $ac_mid; then
 
9607
                          ac_lo= ac_hi=
 
9608
                          break
 
9609
                        fi
 
9610
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
9611
fi
 
9612
 
 
9613
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9614
  done
 
9615
else
 
9616
  echo "$as_me: failed program was:" >&5
 
9617
sed 's/^/| /' conftest.$ac_ext >&5
 
9618
 
 
9619
        cat >conftest.$ac_ext <<_ACEOF
 
9620
/* confdefs.h.  */
 
9621
_ACEOF
 
9622
cat confdefs.h >>conftest.$ac_ext
 
9623
cat >>conftest.$ac_ext <<_ACEOF
 
9624
/* end confdefs.h.  */
 
9625
$ac_includes_default
 
9626
 
 
9627
 
 
9628
   typedef off64_t ac__type_sizeof_;
 
9629
int
 
9630
main ()
 
9631
{
 
9632
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
9633
test_array [0] = 0
 
9634
 
 
9635
  ;
 
9636
  return 0;
 
9637
}
 
9638
_ACEOF
 
9639
rm -f conftest.$ac_objext
 
9640
if { (ac_try="$ac_compile"
 
9641
case "(($ac_try" in
 
9642
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9643
  *) ac_try_echo=$ac_try;;
 
9644
esac
 
9645
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9646
  (eval "$ac_compile") 2>conftest.er1
 
9647
  ac_status=$?
 
9648
  grep -v '^ *+' conftest.er1 >conftest.err
 
9649
  rm -f conftest.er1
 
9650
  cat conftest.err >&5
 
9651
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9652
  (exit $ac_status); } && {
 
9653
         test -z "$ac_c_werror_flag" ||
 
9654
         test ! -s conftest.err
 
9655
       } && test -s conftest.$ac_objext; then
 
9656
  ac_hi=-1 ac_mid=-1
 
9657
  while :; do
 
9658
    cat >conftest.$ac_ext <<_ACEOF
 
9659
/* confdefs.h.  */
 
9660
_ACEOF
 
9661
cat confdefs.h >>conftest.$ac_ext
 
9662
cat >>conftest.$ac_ext <<_ACEOF
 
9663
/* end confdefs.h.  */
 
9664
$ac_includes_default
 
9665
 
 
9666
 
 
9667
   typedef off64_t ac__type_sizeof_;
 
9668
int
 
9669
main ()
 
9670
{
 
9671
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
9672
test_array [0] = 0
 
9673
 
 
9674
  ;
 
9675
  return 0;
 
9676
}
 
9677
_ACEOF
 
9678
rm -f conftest.$ac_objext
 
9679
if { (ac_try="$ac_compile"
 
9680
case "(($ac_try" in
 
9681
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9682
  *) ac_try_echo=$ac_try;;
 
9683
esac
 
9684
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9685
  (eval "$ac_compile") 2>conftest.er1
 
9686
  ac_status=$?
 
9687
  grep -v '^ *+' conftest.er1 >conftest.err
 
9688
  rm -f conftest.er1
 
9689
  cat conftest.err >&5
 
9690
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9691
  (exit $ac_status); } && {
 
9692
         test -z "$ac_c_werror_flag" ||
 
9693
         test ! -s conftest.err
 
9694
       } && test -s conftest.$ac_objext; then
 
9695
  ac_lo=$ac_mid; break
 
9696
else
 
9697
  echo "$as_me: failed program was:" >&5
 
9698
sed 's/^/| /' conftest.$ac_ext >&5
 
9699
 
 
9700
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
9701
                        if test $ac_mid -le $ac_hi; then
 
9702
                          ac_lo= ac_hi=
 
9703
                          break
 
9704
                        fi
 
9705
                        ac_mid=`expr 2 '*' $ac_mid`
 
9706
fi
 
9707
 
 
9708
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9709
  done
 
9710
else
 
9711
  echo "$as_me: failed program was:" >&5
 
9712
sed 's/^/| /' conftest.$ac_ext >&5
 
9713
 
 
9714
        ac_lo= ac_hi=
 
9715
fi
 
9716
 
 
9717
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9718
fi
 
9719
 
 
9720
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9721
# Binary search between lo and hi bounds.
 
9722
while test "x$ac_lo" != "x$ac_hi"; do
 
9723
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
9724
  cat >conftest.$ac_ext <<_ACEOF
 
9725
/* confdefs.h.  */
 
9726
_ACEOF
 
9727
cat confdefs.h >>conftest.$ac_ext
 
9728
cat >>conftest.$ac_ext <<_ACEOF
 
9729
/* end confdefs.h.  */
 
9730
$ac_includes_default
 
9731
 
 
9732
 
 
9733
   typedef off64_t ac__type_sizeof_;
 
9734
int
 
9735
main ()
 
9736
{
 
9737
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
9738
test_array [0] = 0
 
9739
 
 
9740
  ;
 
9741
  return 0;
 
9742
}
 
9743
_ACEOF
 
9744
rm -f conftest.$ac_objext
 
9745
if { (ac_try="$ac_compile"
 
9746
case "(($ac_try" in
 
9747
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9748
  *) ac_try_echo=$ac_try;;
 
9749
esac
 
9750
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9751
  (eval "$ac_compile") 2>conftest.er1
 
9752
  ac_status=$?
 
9753
  grep -v '^ *+' conftest.er1 >conftest.err
 
9754
  rm -f conftest.er1
 
9755
  cat conftest.err >&5
 
9756
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9757
  (exit $ac_status); } && {
 
9758
         test -z "$ac_c_werror_flag" ||
 
9759
         test ! -s conftest.err
 
9760
       } && test -s conftest.$ac_objext; then
 
9761
  ac_hi=$ac_mid
 
9762
else
 
9763
  echo "$as_me: failed program was:" >&5
 
9764
sed 's/^/| /' conftest.$ac_ext >&5
 
9765
 
 
9766
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
9767
fi
 
9768
 
 
9769
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9770
done
 
9771
case $ac_lo in
 
9772
?*) ac_cv_sizeof_off64_t=$ac_lo;;
 
9773
'') if test "$ac_cv_type_off64_t" = yes; then
 
9774
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (off64_t)
 
9775
See \`config.log' for more details." >&5
 
9776
echo "$as_me: error: cannot compute sizeof (off64_t)
 
9777
See \`config.log' for more details." >&2;}
 
9778
   { (exit 77); exit 77; }; }
 
9779
   else
 
9780
     ac_cv_sizeof_off64_t=0
 
9781
   fi ;;
 
9782
esac
 
9783
else
 
9784
  cat >conftest.$ac_ext <<_ACEOF
 
9785
/* confdefs.h.  */
 
9786
_ACEOF
 
9787
cat confdefs.h >>conftest.$ac_ext
 
9788
cat >>conftest.$ac_ext <<_ACEOF
 
9789
/* end confdefs.h.  */
 
9790
$ac_includes_default
 
9791
 
 
9792
 
 
9793
   typedef off64_t ac__type_sizeof_;
 
9794
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
9795
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
9796
#include <stdio.h>
 
9797
#include <stdlib.h>
 
9798
int
 
9799
main ()
 
9800
{
 
9801
 
 
9802
  FILE *f = fopen ("conftest.val", "w");
 
9803
  if (! f)
 
9804
    return 1;
 
9805
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
9806
    {
 
9807
      long int i = longval ();
 
9808
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
9809
        return 1;
 
9810
      fprintf (f, "%ld\n", i);
 
9811
    }
 
9812
  else
 
9813
    {
 
9814
      unsigned long int i = ulongval ();
 
9815
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
9816
        return 1;
 
9817
      fprintf (f, "%lu\n", i);
 
9818
    }
 
9819
  return ferror (f) || fclose (f) != 0;
 
9820
 
 
9821
  ;
 
9822
  return 0;
 
9823
}
 
9824
_ACEOF
 
9825
rm -f conftest$ac_exeext
 
9826
if { (ac_try="$ac_link"
 
9827
case "(($ac_try" in
 
9828
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9829
  *) ac_try_echo=$ac_try;;
 
9830
esac
 
9831
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9832
  (eval "$ac_link") 2>&5
 
9833
  ac_status=$?
 
9834
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9835
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
9836
  { (case "(($ac_try" in
 
9837
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9838
  *) ac_try_echo=$ac_try;;
 
9839
esac
 
9840
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9841
  (eval "$ac_try") 2>&5
 
9842
  ac_status=$?
 
9843
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9844
  (exit $ac_status); }; }; then
 
9845
  ac_cv_sizeof_off64_t=`cat conftest.val`
 
9846
else
 
9847
  echo "$as_me: program exited with status $ac_status" >&5
 
9848
echo "$as_me: failed program was:" >&5
 
9849
sed 's/^/| /' conftest.$ac_ext >&5
 
9850
 
 
9851
( exit $ac_status )
 
9852
if test "$ac_cv_type_off64_t" = yes; then
 
9853
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (off64_t)
 
9854
See \`config.log' for more details." >&5
 
9855
echo "$as_me: error: cannot compute sizeof (off64_t)
 
9856
See \`config.log' for more details." >&2;}
 
9857
   { (exit 77); exit 77; }; }
 
9858
   else
 
9859
     ac_cv_sizeof_off64_t=0
 
9860
   fi
 
9861
fi
 
9862
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
9863
fi
 
9864
rm -f conftest.val
 
9865
fi
 
9866
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_off64_t" >&5
 
9867
echo "${ECHO_T}$ac_cv_sizeof_off64_t" >&6; }
 
9868
 
 
9869
 
 
9870
 
 
9871
cat >>confdefs.h <<_ACEOF
 
9872
#define SIZEOF_OFF64_T $ac_cv_sizeof_off64_t
 
9873
_ACEOF
 
9874
 
 
9875
 
 
9876
 
 
9877
 
 
9878
 
 
9879
 
 
9880
 
 
9881
{ echo "$as_me:$LINENO: checking how to print off64_t" >&5
 
9882
echo $ECHO_N "checking how to print off64_t... $ECHO_C" >&6; }
 
9883
if test "${ne_cv_fmt_off64_t+set}" = set; then
 
9884
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9885
else
 
9886
 
 
9887
ne_cv_fmt_off64_t=none
 
9888
if test $ne_fmt_trycompile = yes; then
 
9889
  oflags="$CPPFLAGS"
 
9890
  # Consider format string mismatches as errors
 
9891
  CPPFLAGS="$CPPFLAGS -Wformat -Werror"
 
9892
    for str in d ld lld; do
 
9893
    cat >conftest.$ac_ext <<_ACEOF
 
9894
/* confdefs.h.  */
 
9895
_ACEOF
 
9896
cat confdefs.h >>conftest.$ac_ext
 
9897
cat >>conftest.$ac_ext <<_ACEOF
 
9898
/* end confdefs.h.  */
 
9899
#include <sys/types.h>
 
9900
 
 
9901
#include <stdio.h>
 
9902
int
 
9903
main ()
 
9904
{
 
9905
off64_t i = 1; printf("%$str", i);
 
9906
  ;
 
9907
  return 0;
 
9908
}
 
9909
_ACEOF
 
9910
rm -f conftest.$ac_objext
 
9911
if { (ac_try="$ac_compile"
 
9912
case "(($ac_try" in
 
9913
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9914
  *) ac_try_echo=$ac_try;;
 
9915
esac
 
9916
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9917
  (eval "$ac_compile") 2>conftest.er1
 
9918
  ac_status=$?
 
9919
  grep -v '^ *+' conftest.er1 >conftest.err
 
9920
  rm -f conftest.er1
 
9921
  cat conftest.err >&5
 
9922
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9923
  (exit $ac_status); } && {
 
9924
         test -z "$ac_c_werror_flag" ||
 
9925
         test ! -s conftest.err
 
9926
       } && test -s conftest.$ac_objext; then
 
9927
  ne_cv_fmt_off64_t=$str; break
 
9928
else
 
9929
  echo "$as_me: failed program was:" >&5
 
9930
sed 's/^/| /' conftest.$ac_ext >&5
 
9931
 
 
9932
 
 
9933
fi
 
9934
 
 
9935
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9936
  done
 
9937
  CPPFLAGS=$oflags
 
9938
else
 
9939
  # Best guess. Don't have to be too precise since we probably won't
 
9940
  # get a warning message anyway.
 
9941
  case $ac_cv_sizeof_off64_t in
 
9942
  $ac_cv_sizeof_int) ne_cv_fmt_off64_t="d" ;;
 
9943
  $ac_cv_sizeof_long) ne_cv_fmt_off64_t="ld" ;;
 
9944
  $ac_cv_sizeof_long_long) ne_cv_fmt_off64_t="lld" ;;
 
9945
  esac
 
9946
fi
 
9947
 
 
9948
fi
 
9949
{ echo "$as_me:$LINENO: result: $ne_cv_fmt_off64_t" >&5
 
9950
echo "${ECHO_T}$ne_cv_fmt_off64_t" >&6; }
 
9951
 
 
9952
if test "x$ne_cv_fmt_off64_t" = "xnone"; then
 
9953
  { { echo "$as_me:$LINENO: error: format string for off64_t not found" >&5
 
9954
echo "$as_me: error: format string for off64_t not found" >&2;}
 
9955
   { (exit 1); exit 1; }; }
 
9956
fi
 
9957
 
 
9958
 
 
9959
cat >>confdefs.h <<_ACEOF
 
9960
#define NE_FMT_OFF64_T "$ne_cv_fmt_off64_t"
 
9961
_ACEOF
 
9962
 
 
9963
 
 
9964
 
 
9965
cat >>confdefs.h <<_ACEOF
 
9966
#define NE_FMT_NE_OFF_T NE_FMT_OFF64_T
 
9967
_ACEOF
 
9968
 
 
9969
    else
 
9970
       cat >>confdefs.h <<_ACEOF
 
9971
#define NE_FMT_NE_OFF_T NE_FMT_OFF_T
 
9972
_ACEOF
 
9973
 
 
9974
    fi
 
9975
 
 
9976
else
 
9977
    { echo "$as_me:$LINENO: incompatible neon library version $ne_libver: wanted 0.24 25 26 27 28" >&5
 
9978
echo "$as_me: incompatible neon library version $ne_libver: wanted 0.24 25 26 27 28" >&6;}
8390
9979
    neon_got_library=no
8391
9980
fi
8392
9981
 
8393
9982
        else
8394
 
            echo "$as_me:$LINENO: result: not found" >&5
8395
 
echo "${ECHO_T}not found" >&6
 
9983
            { echo "$as_me:$LINENO: result: not found" >&5
 
9984
echo "${ECHO_T}not found" >&6; }
8396
9985
            # ...will fail since force_external=yes
8397
9986
        fi
8398
9987
    fi
8419
10008
 
8420
10009
# Define the current versions.
8421
10010
NE_VERSION_MAJOR=0
8422
 
NE_VERSION_MINOR=26
8423
 
NE_VERSION_PATCH=0
 
10011
NE_VERSION_MINOR=28
 
10012
NE_VERSION_PATCH=2
8424
10013
NE_VERSION_TAG=
8425
10014
 
8426
 
# libtool library interface versioning.  Release policy dictates that
8427
 
# for neon 0.x.y, each x brings an incompatible interface change, and
8428
 
# each y brings no interface change, and since this policy has been
8429
 
# followed since 0.1, x == CURRENT, y == RELEASE, 0 == AGE.  For
8430
 
# 1.x.y, this will become N + x == CURRENT, y == RELEASE, x == AGE,
8431
 
# where N is constant (and equal to CURRENT + 1 from the final 0.x
8432
 
# release)
8433
 
NEON_INTERFACE_VERSION="${NE_VERSION_MINOR}:${NE_VERSION_PATCH}:0"
 
10015
# 0.28.x is backwards-compatible with 0.27.x, so AGE=1
 
10016
NE_LIBTOOL_VERSINFO="28:${NE_VERSION_PATCH}:1"
8434
10017
 
8435
10018
 
8436
10019
 
8481
10064
 
8482
10065
 
8483
10066
 
 
10067
 
 
10068
 
8484
10069
for ac_header in sys/time.h limits.h sys/select.h arpa/inet.h libintl.h \
8485
10070
        signal.h sys/socket.h netinet/in.h netinet/tcp.h netdb.h sys/poll.h \
8486
 
        sys/limits.h
 
10071
        sys/limits.h fcntl.h iconv.h
8487
10072
do
8488
10073
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8489
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
8490
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8491
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10074
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
10075
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
10076
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8492
10077
  echo $ECHO_N "(cached) $ECHO_C" >&6
8493
10078
else
8494
10079
  cat >conftest.$ac_ext <<_ACEOF
8506
10091
#include <$ac_header>
8507
10092
_ACEOF
8508
10093
rm -f conftest.$ac_objext
8509
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8510
 
  (eval $ac_compile) 2>conftest.er1
 
10094
if { (ac_try="$ac_compile"
 
10095
case "(($ac_try" in
 
10096
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10097
  *) ac_try_echo=$ac_try;;
 
10098
esac
 
10099
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10100
  (eval "$ac_compile") 2>conftest.er1
8511
10101
  ac_status=$?
8512
10102
  grep -v '^ *+' conftest.er1 >conftest.err
8513
10103
  rm -f conftest.er1
8514
10104
  cat conftest.err >&5
8515
10105
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516
 
  (exit $ac_status); } &&
8517
 
         { ac_try='test -z "$ac_c_werror_flag"
8518
 
                         || test ! -s conftest.err'
8519
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8520
 
  (eval $ac_try) 2>&5
8521
 
  ac_status=$?
8522
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523
 
  (exit $ac_status); }; } &&
8524
 
         { ac_try='test -s conftest.$ac_objext'
8525
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526
 
  (eval $ac_try) 2>&5
8527
 
  ac_status=$?
8528
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529
 
  (exit $ac_status); }; }; then
 
10106
  (exit $ac_status); } && {
 
10107
         test -z "$ac_c_werror_flag" ||
 
10108
         test ! -s conftest.err
 
10109
       } && test -s conftest.$ac_objext; then
8530
10110
  eval "$as_ac_Header=yes"
8531
10111
else
8532
10112
  echo "$as_me: failed program was:" >&5
8533
10113
sed 's/^/| /' conftest.$ac_ext >&5
8534
10114
 
8535
 
eval "$as_ac_Header=no"
8536
 
fi
8537
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8538
 
fi
8539
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8540
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
10115
        eval "$as_ac_Header=no"
 
10116
fi
 
10117
 
 
10118
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10119
fi
 
10120
ac_res=`eval echo '${'$as_ac_Header'}'`
 
10121
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
10122
echo "${ECHO_T}$ac_res" >&6; }
8541
10123
if test `eval echo '${'$as_ac_Header'}'` = yes; then
8542
10124
  cat >>confdefs.h <<_ACEOF
8543
10125
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8550
10132
 
8551
10133
 
8552
10134
 
8553
 
echo "$as_me:$LINENO: checking for timezone global" >&5
8554
 
echo $ECHO_N "checking for timezone global... $ECHO_C" >&6
 
10135
{ echo "$as_me:$LINENO: checking for timezone global" >&5
 
10136
echo $ECHO_N "checking for timezone global... $ECHO_C" >&6; }
8555
10137
if test "${ne_cv_cc_timezone+set}" = set; then
8556
10138
  echo $ECHO_N "(cached) $ECHO_C" >&6
8557
10139
else
8567
10149
int
8568
10150
main ()
8569
10151
{
8570
 
time_t t = 0 + timezone;
 
10152
time_t t = 0 - timezone; timezone = 1;
8571
10153
  ;
8572
10154
  return 0;
8573
10155
}
8574
10156
_ACEOF
8575
10157
rm -f conftest.$ac_objext conftest$ac_exeext
8576
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8577
 
  (eval $ac_link) 2>conftest.er1
 
10158
if { (ac_try="$ac_link"
 
10159
case "(($ac_try" in
 
10160
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10161
  *) ac_try_echo=$ac_try;;
 
10162
esac
 
10163
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10164
  (eval "$ac_link") 2>conftest.er1
8578
10165
  ac_status=$?
8579
10166
  grep -v '^ *+' conftest.er1 >conftest.err
8580
10167
  rm -f conftest.er1
8581
10168
  cat conftest.err >&5
8582
10169
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583
 
  (exit $ac_status); } &&
8584
 
         { ac_try='test -z "$ac_c_werror_flag"
8585
 
                         || test ! -s conftest.err'
8586
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8587
 
  (eval $ac_try) 2>&5
8588
 
  ac_status=$?
8589
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590
 
  (exit $ac_status); }; } &&
8591
 
         { ac_try='test -s conftest$ac_exeext'
8592
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8593
 
  (eval $ac_try) 2>&5
8594
 
  ac_status=$?
8595
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596
 
  (exit $ac_status); }; }; then
 
10170
  (exit $ac_status); } && {
 
10171
         test -z "$ac_c_werror_flag" ||
 
10172
         test ! -s conftest.err
 
10173
       } && test -s conftest$ac_exeext &&
 
10174
       $as_test_x conftest$ac_exeext; then
8597
10175
  ne_cv_cc_timezone=yes
8598
10176
else
8599
10177
  echo "$as_me: failed program was:" >&5
8600
10178
sed 's/^/| /' conftest.$ac_ext >&5
8601
10179
 
8602
 
ne_cv_cc_timezone=no
 
10180
        ne_cv_cc_timezone=no
8603
10181
fi
8604
 
rm -f conftest.err conftest.$ac_objext \
 
10182
 
 
10183
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8605
10184
      conftest$ac_exeext conftest.$ac_ext
8606
10185
fi
8607
 
echo "$as_me:$LINENO: result: $ne_cv_cc_timezone" >&5
8608
 
echo "${ECHO_T}$ne_cv_cc_timezone" >&6
 
10186
{ echo "$as_me:$LINENO: result: $ne_cv_cc_timezone" >&5
 
10187
echo "${ECHO_T}$ne_cv_cc_timezone" >&6; }
8609
10188
 
8610
10189
if test "$ne_cv_cc_timezone" = "yes"; then
8611
10190
 
8639
10218
for ac_func in strtoll strtoq
8640
10219
do
8641
10220
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8642
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
8643
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8644
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
10221
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
10222
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
10223
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8645
10224
  echo $ECHO_N "(cached) $ECHO_C" >&6
8646
10225
else
8647
10226
  cat >conftest.$ac_ext <<_ACEOF
8667
10246
 
8668
10247
#undef $ac_func
8669
10248
 
8670
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
10249
/* Override any GCC internal prototype to avoid an error.
 
10250
   Use char because int might match the return type of a GCC
 
10251
   builtin and then its argument prototype would still apply.  */
8671
10252
#ifdef __cplusplus
8672
10253
extern "C"
8673
 
{
8674
10254
#endif
8675
 
/* We use char because int might match the return type of a gcc2
8676
 
   builtin and then its argument prototype would still apply.  */
8677
10255
char $ac_func ();
8678
10256
/* The GNU C library defines this for functions which it implements
8679
10257
    to always fail with ENOSYS.  Some functions are actually named
8680
10258
    something starting with __ and the normal name is an alias.  */
8681
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
10259
#if defined __stub_$ac_func || defined __stub___$ac_func
8682
10260
choke me
8683
 
#else
8684
 
char (*f) () = $ac_func;
8685
 
#endif
8686
 
#ifdef __cplusplus
8687
 
}
8688
10261
#endif
8689
10262
 
8690
10263
int
8691
10264
main ()
8692
10265
{
8693
 
return f != $ac_func;
 
10266
return $ac_func ();
8694
10267
  ;
8695
10268
  return 0;
8696
10269
}
8697
10270
_ACEOF
8698
10271
rm -f conftest.$ac_objext conftest$ac_exeext
8699
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8700
 
  (eval $ac_link) 2>conftest.er1
 
10272
if { (ac_try="$ac_link"
 
10273
case "(($ac_try" in
 
10274
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10275
  *) ac_try_echo=$ac_try;;
 
10276
esac
 
10277
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10278
  (eval "$ac_link") 2>conftest.er1
8701
10279
  ac_status=$?
8702
10280
  grep -v '^ *+' conftest.er1 >conftest.err
8703
10281
  rm -f conftest.er1
8704
10282
  cat conftest.err >&5
8705
10283
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706
 
  (exit $ac_status); } &&
8707
 
         { ac_try='test -z "$ac_c_werror_flag"
8708
 
                         || test ! -s conftest.err'
8709
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8710
 
  (eval $ac_try) 2>&5
8711
 
  ac_status=$?
8712
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713
 
  (exit $ac_status); }; } &&
8714
 
         { ac_try='test -s conftest$ac_exeext'
8715
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8716
 
  (eval $ac_try) 2>&5
8717
 
  ac_status=$?
8718
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719
 
  (exit $ac_status); }; }; then
 
10284
  (exit $ac_status); } && {
 
10285
         test -z "$ac_c_werror_flag" ||
 
10286
         test ! -s conftest.err
 
10287
       } && test -s conftest$ac_exeext &&
 
10288
       $as_test_x conftest$ac_exeext; then
8720
10289
  eval "$as_ac_var=yes"
8721
10290
else
8722
10291
  echo "$as_me: failed program was:" >&5
8723
10292
sed 's/^/| /' conftest.$ac_ext >&5
8724
10293
 
8725
 
eval "$as_ac_var=no"
 
10294
        eval "$as_ac_var=no"
8726
10295
fi
8727
 
rm -f conftest.err conftest.$ac_objext \
 
10296
 
 
10297
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8728
10298
      conftest$ac_exeext conftest.$ac_ext
8729
10299
fi
8730
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8731
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
10300
ac_res=`eval echo '${'$as_ac_var'}'`
 
10301
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
10302
echo "${ECHO_T}$ac_res" >&6; }
8732
10303
if test `eval echo '${'$as_ac_var'}'` = yes; then
8733
10304
  cat >>confdefs.h <<_ACEOF
8734
10305
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8756
10327
else
8757
10328
   ne_save_CPPFLAGS=$CPPFLAGS
8758
10329
   CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
8759
 
   echo "$as_me:$LINENO: checking for off64_t" >&5
8760
 
echo $ECHO_N "checking for off64_t... $ECHO_C" >&6
 
10330
   { echo "$as_me:$LINENO: checking for off64_t" >&5
 
10331
echo $ECHO_N "checking for off64_t... $ECHO_C" >&6; }
8761
10332
if test "${ac_cv_type_off64_t+set}" = set; then
8762
10333
  echo $ECHO_N "(cached) $ECHO_C" >&6
8763
10334
else
8768
10339
cat >>conftest.$ac_ext <<_ACEOF
8769
10340
/* end confdefs.h.  */
8770
10341
$ac_includes_default
 
10342
typedef off64_t ac__type_new_;
8771
10343
int
8772
10344
main ()
8773
10345
{
8774
 
if ((off64_t *) 0)
 
10346
if ((ac__type_new_ *) 0)
8775
10347
  return 0;
8776
 
if (sizeof (off64_t))
 
10348
if (sizeof (ac__type_new_))
8777
10349
  return 0;
8778
10350
  ;
8779
10351
  return 0;
8780
10352
}
8781
10353
_ACEOF
8782
10354
rm -f conftest.$ac_objext
8783
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8784
 
  (eval $ac_compile) 2>conftest.er1
 
10355
if { (ac_try="$ac_compile"
 
10356
case "(($ac_try" in
 
10357
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10358
  *) ac_try_echo=$ac_try;;
 
10359
esac
 
10360
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10361
  (eval "$ac_compile") 2>conftest.er1
8785
10362
  ac_status=$?
8786
10363
  grep -v '^ *+' conftest.er1 >conftest.err
8787
10364
  rm -f conftest.er1
8788
10365
  cat conftest.err >&5
8789
10366
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790
 
  (exit $ac_status); } &&
8791
 
         { ac_try='test -z "$ac_c_werror_flag"
8792
 
                         || test ! -s conftest.err'
8793
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8794
 
  (eval $ac_try) 2>&5
8795
 
  ac_status=$?
8796
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797
 
  (exit $ac_status); }; } &&
8798
 
         { ac_try='test -s conftest.$ac_objext'
8799
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8800
 
  (eval $ac_try) 2>&5
8801
 
  ac_status=$?
8802
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803
 
  (exit $ac_status); }; }; then
 
10367
  (exit $ac_status); } && {
 
10368
         test -z "$ac_c_werror_flag" ||
 
10369
         test ! -s conftest.err
 
10370
       } && test -s conftest.$ac_objext; then
8804
10371
  ac_cv_type_off64_t=yes
8805
10372
else
8806
10373
  echo "$as_me: failed program was:" >&5
8807
10374
sed 's/^/| /' conftest.$ac_ext >&5
8808
10375
 
8809
 
ac_cv_type_off64_t=no
8810
 
fi
8811
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8812
 
fi
8813
 
echo "$as_me:$LINENO: result: $ac_cv_type_off64_t" >&5
8814
 
echo "${ECHO_T}$ac_cv_type_off64_t" >&6
 
10376
        ac_cv_type_off64_t=no
 
10377
fi
 
10378
 
 
10379
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10380
fi
 
10381
{ echo "$as_me:$LINENO: result: $ac_cv_type_off64_t" >&5
 
10382
echo "${ECHO_T}$ac_cv_type_off64_t" >&6; }
8815
10383
if test $ac_cv_type_off64_t = yes; then
8816
10384
 
8817
10385
 
8818
10386
 
8819
10387
 
8820
10388
 
8821
 
echo "$as_me:$LINENO: checking for off64_t" >&5
8822
 
echo $ECHO_N "checking for off64_t... $ECHO_C" >&6
 
10389
{ echo "$as_me:$LINENO: checking for off64_t" >&5
 
10390
echo $ECHO_N "checking for off64_t... $ECHO_C" >&6; }
8823
10391
if test "${ac_cv_type_off64_t+set}" = set; then
8824
10392
  echo $ECHO_N "(cached) $ECHO_C" >&6
8825
10393
else
8830
10398
cat >>conftest.$ac_ext <<_ACEOF
8831
10399
/* end confdefs.h.  */
8832
10400
$ac_includes_default
 
10401
 
 
10402
 
 
10403
typedef off64_t ac__type_new_;
8833
10404
int
8834
10405
main ()
8835
10406
{
8836
 
if ((off64_t *) 0)
 
10407
if ((ac__type_new_ *) 0)
8837
10408
  return 0;
8838
 
if (sizeof (off64_t))
 
10409
if (sizeof (ac__type_new_))
8839
10410
  return 0;
8840
10411
  ;
8841
10412
  return 0;
8842
10413
}
8843
10414
_ACEOF
8844
10415
rm -f conftest.$ac_objext
8845
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8846
 
  (eval $ac_compile) 2>conftest.er1
 
10416
if { (ac_try="$ac_compile"
 
10417
case "(($ac_try" in
 
10418
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10419
  *) ac_try_echo=$ac_try;;
 
10420
esac
 
10421
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10422
  (eval "$ac_compile") 2>conftest.er1
8847
10423
  ac_status=$?
8848
10424
  grep -v '^ *+' conftest.er1 >conftest.err
8849
10425
  rm -f conftest.er1
8850
10426
  cat conftest.err >&5
8851
10427
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852
 
  (exit $ac_status); } &&
8853
 
         { ac_try='test -z "$ac_c_werror_flag"
8854
 
                         || test ! -s conftest.err'
8855
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8856
 
  (eval $ac_try) 2>&5
8857
 
  ac_status=$?
8858
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859
 
  (exit $ac_status); }; } &&
8860
 
         { ac_try='test -s conftest.$ac_objext'
8861
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8862
 
  (eval $ac_try) 2>&5
8863
 
  ac_status=$?
8864
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865
 
  (exit $ac_status); }; }; then
 
10428
  (exit $ac_status); } && {
 
10429
         test -z "$ac_c_werror_flag" ||
 
10430
         test ! -s conftest.err
 
10431
       } && test -s conftest.$ac_objext; then
8866
10432
  ac_cv_type_off64_t=yes
8867
10433
else
8868
10434
  echo "$as_me: failed program was:" >&5
8869
10435
sed 's/^/| /' conftest.$ac_ext >&5
8870
10436
 
8871
 
ac_cv_type_off64_t=no
8872
 
fi
8873
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8874
 
fi
8875
 
echo "$as_me:$LINENO: result: $ac_cv_type_off64_t" >&5
8876
 
echo "${ECHO_T}$ac_cv_type_off64_t" >&6
8877
 
 
8878
 
echo "$as_me:$LINENO: checking size of off64_t" >&5
8879
 
echo $ECHO_N "checking size of off64_t... $ECHO_C" >&6
 
10437
        ac_cv_type_off64_t=no
 
10438
fi
 
10439
 
 
10440
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10441
fi
 
10442
{ echo "$as_me:$LINENO: result: $ac_cv_type_off64_t" >&5
 
10443
echo "${ECHO_T}$ac_cv_type_off64_t" >&6; }
 
10444
 
 
10445
# The cast to long int works around a bug in the HP C Compiler
 
10446
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
10447
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
10448
# This bug is HP SR number 8606223364.
 
10449
{ echo "$as_me:$LINENO: checking size of off64_t" >&5
 
10450
echo $ECHO_N "checking size of off64_t... $ECHO_C" >&6; }
8880
10451
if test "${ac_cv_sizeof_off64_t+set}" = set; then
8881
10452
  echo $ECHO_N "(cached) $ECHO_C" >&6
8882
10453
else
8883
 
  if test "$ac_cv_type_off64_t" = yes; then
8884
 
  # The cast to unsigned long works around a bug in the HP C Compiler
8885
 
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8886
 
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8887
 
  # This bug is HP SR number 8606223364.
8888
10454
  if test "$cross_compiling" = yes; then
8889
10455
  # Depending upon the size, compute the lo and hi bounds.
8890
10456
cat >conftest.$ac_ext <<_ACEOF
8894
10460
cat >>conftest.$ac_ext <<_ACEOF
8895
10461
/* end confdefs.h.  */
8896
10462
$ac_includes_default
 
10463
 
 
10464
 
 
10465
   typedef off64_t ac__type_sizeof_;
8897
10466
int
8898
10467
main ()
8899
10468
{
8900
 
static int test_array [1 - 2 * !(((long) (sizeof (off64_t))) >= 0)];
 
10469
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8901
10470
test_array [0] = 0
8902
10471
 
8903
10472
  ;
8905
10474
}
8906
10475
_ACEOF
8907
10476
rm -f conftest.$ac_objext
8908
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8909
 
  (eval $ac_compile) 2>conftest.er1
 
10477
if { (ac_try="$ac_compile"
 
10478
case "(($ac_try" in
 
10479
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10480
  *) ac_try_echo=$ac_try;;
 
10481
esac
 
10482
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10483
  (eval "$ac_compile") 2>conftest.er1
8910
10484
  ac_status=$?
8911
10485
  grep -v '^ *+' conftest.er1 >conftest.err
8912
10486
  rm -f conftest.er1
8913
10487
  cat conftest.err >&5
8914
10488
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915
 
  (exit $ac_status); } &&
8916
 
         { ac_try='test -z "$ac_c_werror_flag"
8917
 
                         || test ! -s conftest.err'
8918
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8919
 
  (eval $ac_try) 2>&5
8920
 
  ac_status=$?
8921
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922
 
  (exit $ac_status); }; } &&
8923
 
         { ac_try='test -s conftest.$ac_objext'
8924
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8925
 
  (eval $ac_try) 2>&5
8926
 
  ac_status=$?
8927
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928
 
  (exit $ac_status); }; }; then
 
10489
  (exit $ac_status); } && {
 
10490
         test -z "$ac_c_werror_flag" ||
 
10491
         test ! -s conftest.err
 
10492
       } && test -s conftest.$ac_objext; then
8929
10493
  ac_lo=0 ac_mid=0
8930
10494
  while :; do
8931
10495
    cat >conftest.$ac_ext <<_ACEOF
8935
10499
cat >>conftest.$ac_ext <<_ACEOF
8936
10500
/* end confdefs.h.  */
8937
10501
$ac_includes_default
 
10502
 
 
10503
 
 
10504
   typedef off64_t ac__type_sizeof_;
8938
10505
int
8939
10506
main ()
8940
10507
{
8941
 
static int test_array [1 - 2 * !(((long) (sizeof (off64_t))) <= $ac_mid)];
 
10508
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8942
10509
test_array [0] = 0
8943
10510
 
8944
10511
  ;
8946
10513
}
8947
10514
_ACEOF
8948
10515
rm -f conftest.$ac_objext
8949
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8950
 
  (eval $ac_compile) 2>conftest.er1
 
10516
if { (ac_try="$ac_compile"
 
10517
case "(($ac_try" in
 
10518
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10519
  *) ac_try_echo=$ac_try;;
 
10520
esac
 
10521
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10522
  (eval "$ac_compile") 2>conftest.er1
8951
10523
  ac_status=$?
8952
10524
  grep -v '^ *+' conftest.er1 >conftest.err
8953
10525
  rm -f conftest.er1
8954
10526
  cat conftest.err >&5
8955
10527
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956
 
  (exit $ac_status); } &&
8957
 
         { ac_try='test -z "$ac_c_werror_flag"
8958
 
                         || test ! -s conftest.err'
8959
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8960
 
  (eval $ac_try) 2>&5
8961
 
  ac_status=$?
8962
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963
 
  (exit $ac_status); }; } &&
8964
 
         { ac_try='test -s conftest.$ac_objext'
8965
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8966
 
  (eval $ac_try) 2>&5
8967
 
  ac_status=$?
8968
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969
 
  (exit $ac_status); }; }; then
 
10528
  (exit $ac_status); } && {
 
10529
         test -z "$ac_c_werror_flag" ||
 
10530
         test ! -s conftest.err
 
10531
       } && test -s conftest.$ac_objext; then
8970
10532
  ac_hi=$ac_mid; break
8971
10533
else
8972
10534
  echo "$as_me: failed program was:" >&5
8973
10535
sed 's/^/| /' conftest.$ac_ext >&5
8974
10536
 
8975
 
ac_lo=`expr $ac_mid + 1`
8976
 
                    if test $ac_lo -le $ac_mid; then
8977
 
                      ac_lo= ac_hi=
8978
 
                      break
8979
 
                    fi
8980
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
10537
        ac_lo=`expr $ac_mid + 1`
 
10538
                        if test $ac_lo -le $ac_mid; then
 
10539
                          ac_lo= ac_hi=
 
10540
                          break
 
10541
                        fi
 
10542
                        ac_mid=`expr 2 '*' $ac_mid + 1`
8981
10543
fi
8982
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10544
 
 
10545
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8983
10546
  done
8984
10547
else
8985
10548
  echo "$as_me: failed program was:" >&5
8986
10549
sed 's/^/| /' conftest.$ac_ext >&5
8987
10550
 
8988
 
cat >conftest.$ac_ext <<_ACEOF
 
10551
        cat >conftest.$ac_ext <<_ACEOF
8989
10552
/* confdefs.h.  */
8990
10553
_ACEOF
8991
10554
cat confdefs.h >>conftest.$ac_ext
8992
10555
cat >>conftest.$ac_ext <<_ACEOF
8993
10556
/* end confdefs.h.  */
8994
10557
$ac_includes_default
 
10558
 
 
10559
 
 
10560
   typedef off64_t ac__type_sizeof_;
8995
10561
int
8996
10562
main ()
8997
10563
{
8998
 
static int test_array [1 - 2 * !(((long) (sizeof (off64_t))) < 0)];
 
10564
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8999
10565
test_array [0] = 0
9000
10566
 
9001
10567
  ;
9003
10569
}
9004
10570
_ACEOF
9005
10571
rm -f conftest.$ac_objext
9006
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9007
 
  (eval $ac_compile) 2>conftest.er1
 
10572
if { (ac_try="$ac_compile"
 
10573
case "(($ac_try" in
 
10574
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10575
  *) ac_try_echo=$ac_try;;
 
10576
esac
 
10577
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10578
  (eval "$ac_compile") 2>conftest.er1
9008
10579
  ac_status=$?
9009
10580
  grep -v '^ *+' conftest.er1 >conftest.err
9010
10581
  rm -f conftest.er1
9011
10582
  cat conftest.err >&5
9012
10583
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013
 
  (exit $ac_status); } &&
9014
 
         { ac_try='test -z "$ac_c_werror_flag"
9015
 
                         || test ! -s conftest.err'
9016
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9017
 
  (eval $ac_try) 2>&5
9018
 
  ac_status=$?
9019
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020
 
  (exit $ac_status); }; } &&
9021
 
         { ac_try='test -s conftest.$ac_objext'
9022
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9023
 
  (eval $ac_try) 2>&5
9024
 
  ac_status=$?
9025
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026
 
  (exit $ac_status); }; }; then
 
10584
  (exit $ac_status); } && {
 
10585
         test -z "$ac_c_werror_flag" ||
 
10586
         test ! -s conftest.err
 
10587
       } && test -s conftest.$ac_objext; then
9027
10588
  ac_hi=-1 ac_mid=-1
9028
10589
  while :; do
9029
10590
    cat >conftest.$ac_ext <<_ACEOF
9033
10594
cat >>conftest.$ac_ext <<_ACEOF
9034
10595
/* end confdefs.h.  */
9035
10596
$ac_includes_default
 
10597
 
 
10598
 
 
10599
   typedef off64_t ac__type_sizeof_;
9036
10600
int
9037
10601
main ()
9038
10602
{
9039
 
static int test_array [1 - 2 * !(((long) (sizeof (off64_t))) >= $ac_mid)];
 
10603
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9040
10604
test_array [0] = 0
9041
10605
 
9042
10606
  ;
9044
10608
}
9045
10609
_ACEOF
9046
10610
rm -f conftest.$ac_objext
9047
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9048
 
  (eval $ac_compile) 2>conftest.er1
 
10611
if { (ac_try="$ac_compile"
 
10612
case "(($ac_try" in
 
10613
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10614
  *) ac_try_echo=$ac_try;;
 
10615
esac
 
10616
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10617
  (eval "$ac_compile") 2>conftest.er1
9049
10618
  ac_status=$?
9050
10619
  grep -v '^ *+' conftest.er1 >conftest.err
9051
10620
  rm -f conftest.er1
9052
10621
  cat conftest.err >&5
9053
10622
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054
 
  (exit $ac_status); } &&
9055
 
         { ac_try='test -z "$ac_c_werror_flag"
9056
 
                         || test ! -s conftest.err'
9057
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9058
 
  (eval $ac_try) 2>&5
9059
 
  ac_status=$?
9060
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061
 
  (exit $ac_status); }; } &&
9062
 
         { ac_try='test -s conftest.$ac_objext'
9063
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9064
 
  (eval $ac_try) 2>&5
9065
 
  ac_status=$?
9066
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067
 
  (exit $ac_status); }; }; then
 
10623
  (exit $ac_status); } && {
 
10624
         test -z "$ac_c_werror_flag" ||
 
10625
         test ! -s conftest.err
 
10626
       } && test -s conftest.$ac_objext; then
9068
10627
  ac_lo=$ac_mid; break
9069
10628
else
9070
10629
  echo "$as_me: failed program was:" >&5
9071
10630
sed 's/^/| /' conftest.$ac_ext >&5
9072
10631
 
9073
 
ac_hi=`expr '(' $ac_mid ')' - 1`
9074
 
                       if test $ac_mid -le $ac_hi; then
9075
 
                         ac_lo= ac_hi=
9076
 
                         break
9077
 
                       fi
9078
 
                       ac_mid=`expr 2 '*' $ac_mid`
 
10632
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
10633
                        if test $ac_mid -le $ac_hi; then
 
10634
                          ac_lo= ac_hi=
 
10635
                          break
 
10636
                        fi
 
10637
                        ac_mid=`expr 2 '*' $ac_mid`
9079
10638
fi
9080
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10639
 
 
10640
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9081
10641
  done
9082
10642
else
9083
10643
  echo "$as_me: failed program was:" >&5
9084
10644
sed 's/^/| /' conftest.$ac_ext >&5
9085
10645
 
9086
 
ac_lo= ac_hi=
9087
 
fi
9088
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9089
 
fi
9090
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10646
        ac_lo= ac_hi=
 
10647
fi
 
10648
 
 
10649
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10650
fi
 
10651
 
 
10652
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9091
10653
# Binary search between lo and hi bounds.
9092
10654
while test "x$ac_lo" != "x$ac_hi"; do
9093
10655
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9098
10660
cat >>conftest.$ac_ext <<_ACEOF
9099
10661
/* end confdefs.h.  */
9100
10662
$ac_includes_default
 
10663
 
 
10664
 
 
10665
   typedef off64_t ac__type_sizeof_;
9101
10666
int
9102
10667
main ()
9103
10668
{
9104
 
static int test_array [1 - 2 * !(((long) (sizeof (off64_t))) <= $ac_mid)];
 
10669
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9105
10670
test_array [0] = 0
9106
10671
 
9107
10672
  ;
9109
10674
}
9110
10675
_ACEOF
9111
10676
rm -f conftest.$ac_objext
9112
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9113
 
  (eval $ac_compile) 2>conftest.er1
 
10677
if { (ac_try="$ac_compile"
 
10678
case "(($ac_try" in
 
10679
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10680
  *) ac_try_echo=$ac_try;;
 
10681
esac
 
10682
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10683
  (eval "$ac_compile") 2>conftest.er1
9114
10684
  ac_status=$?
9115
10685
  grep -v '^ *+' conftest.er1 >conftest.err
9116
10686
  rm -f conftest.er1
9117
10687
  cat conftest.err >&5
9118
10688
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119
 
  (exit $ac_status); } &&
9120
 
         { ac_try='test -z "$ac_c_werror_flag"
9121
 
                         || test ! -s conftest.err'
9122
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9123
 
  (eval $ac_try) 2>&5
9124
 
  ac_status=$?
9125
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126
 
  (exit $ac_status); }; } &&
9127
 
         { ac_try='test -s conftest.$ac_objext'
9128
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9129
 
  (eval $ac_try) 2>&5
9130
 
  ac_status=$?
9131
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132
 
  (exit $ac_status); }; }; then
 
10689
  (exit $ac_status); } && {
 
10690
         test -z "$ac_c_werror_flag" ||
 
10691
         test ! -s conftest.err
 
10692
       } && test -s conftest.$ac_objext; then
9133
10693
  ac_hi=$ac_mid
9134
10694
else
9135
10695
  echo "$as_me: failed program was:" >&5
9136
10696
sed 's/^/| /' conftest.$ac_ext >&5
9137
10697
 
9138
 
ac_lo=`expr '(' $ac_mid ')' + 1`
 
10698
        ac_lo=`expr '(' $ac_mid ')' + 1`
9139
10699
fi
9140
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10700
 
 
10701
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9141
10702
done
9142
10703
case $ac_lo in
9143
10704
?*) ac_cv_sizeof_off64_t=$ac_lo;;
9144
 
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off64_t), 77
 
10705
'') if test "$ac_cv_type_off64_t" = yes; then
 
10706
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (off64_t)
9145
10707
See \`config.log' for more details." >&5
9146
 
echo "$as_me: error: cannot compute sizeof (off64_t), 77
 
10708
echo "$as_me: error: cannot compute sizeof (off64_t)
9147
10709
See \`config.log' for more details." >&2;}
9148
 
   { (exit 1); exit 1; }; } ;;
 
10710
   { (exit 77); exit 77; }; }
 
10711
   else
 
10712
     ac_cv_sizeof_off64_t=0
 
10713
   fi ;;
9149
10714
esac
9150
10715
else
9151
 
  if test "$cross_compiling" = yes; then
9152
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9153
 
See \`config.log' for more details." >&5
9154
 
echo "$as_me: error: cannot run test program while cross compiling
9155
 
See \`config.log' for more details." >&2;}
9156
 
   { (exit 1); exit 1; }; }
9157
 
else
9158
10716
  cat >conftest.$ac_ext <<_ACEOF
9159
10717
/* confdefs.h.  */
9160
10718
_ACEOF
9162
10720
cat >>conftest.$ac_ext <<_ACEOF
9163
10721
/* end confdefs.h.  */
9164
10722
$ac_includes_default
9165
 
long longval () { return (long) (sizeof (off64_t)); }
9166
 
unsigned long ulongval () { return (long) (sizeof (off64_t)); }
 
10723
 
 
10724
 
 
10725
   typedef off64_t ac__type_sizeof_;
 
10726
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
10727
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9167
10728
#include <stdio.h>
9168
10729
#include <stdlib.h>
9169
10730
int
9172
10733
 
9173
10734
  FILE *f = fopen ("conftest.val", "w");
9174
10735
  if (! f)
9175
 
    exit (1);
9176
 
  if (((long) (sizeof (off64_t))) < 0)
 
10736
    return 1;
 
10737
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9177
10738
    {
9178
 
      long i = longval ();
9179
 
      if (i != ((long) (sizeof (off64_t))))
9180
 
        exit (1);
 
10739
      long int i = longval ();
 
10740
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
10741
        return 1;
9181
10742
      fprintf (f, "%ld\n", i);
9182
10743
    }
9183
10744
  else
9184
10745
    {
9185
 
      unsigned long i = ulongval ();
9186
 
      if (i != ((long) (sizeof (off64_t))))
9187
 
        exit (1);
 
10746
      unsigned long int i = ulongval ();
 
10747
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
10748
        return 1;
9188
10749
      fprintf (f, "%lu\n", i);
9189
10750
    }
9190
 
  exit (ferror (f) || fclose (f) != 0);
 
10751
  return ferror (f) || fclose (f) != 0;
9191
10752
 
9192
10753
  ;
9193
10754
  return 0;
9194
10755
}
9195
10756
_ACEOF
9196
10757
rm -f conftest$ac_exeext
9197
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9198
 
  (eval $ac_link) 2>&5
 
10758
if { (ac_try="$ac_link"
 
10759
case "(($ac_try" in
 
10760
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10761
  *) ac_try_echo=$ac_try;;
 
10762
esac
 
10763
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10764
  (eval "$ac_link") 2>&5
9199
10765
  ac_status=$?
9200
10766
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201
10767
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9202
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9203
 
  (eval $ac_try) 2>&5
 
10768
  { (case "(($ac_try" in
 
10769
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10770
  *) ac_try_echo=$ac_try;;
 
10771
esac
 
10772
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10773
  (eval "$ac_try") 2>&5
9204
10774
  ac_status=$?
9205
10775
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206
10776
  (exit $ac_status); }; }; then
9211
10781
sed 's/^/| /' conftest.$ac_ext >&5
9212
10782
 
9213
10783
( exit $ac_status )
9214
 
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off64_t), 77
 
10784
if test "$ac_cv_type_off64_t" = yes; then
 
10785
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (off64_t)
9215
10786
See \`config.log' for more details." >&5
9216
 
echo "$as_me: error: cannot compute sizeof (off64_t), 77
 
10787
echo "$as_me: error: cannot compute sizeof (off64_t)
9217
10788
See \`config.log' for more details." >&2;}
9218
 
   { (exit 1); exit 1; }; }
9219
 
fi
9220
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9221
 
fi
 
10789
   { (exit 77); exit 77; }; }
 
10790
   else
 
10791
     ac_cv_sizeof_off64_t=0
 
10792
   fi
 
10793
fi
 
10794
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9222
10795
fi
9223
10796
rm -f conftest.val
9224
 
else
9225
 
  ac_cv_sizeof_off64_t=0
9226
 
fi
9227
 
fi
9228
 
echo "$as_me:$LINENO: result: $ac_cv_sizeof_off64_t" >&5
9229
 
echo "${ECHO_T}$ac_cv_sizeof_off64_t" >&6
 
10797
fi
 
10798
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_off64_t" >&5
 
10799
echo "${ECHO_T}$ac_cv_sizeof_off64_t" >&6; }
 
10800
 
 
10801
 
 
10802
 
9230
10803
cat >>confdefs.h <<_ACEOF
9231
10804
#define SIZEOF_OFF64_T $ac_cv_sizeof_off64_t
9232
10805
_ACEOF
9237
10810
 
9238
10811
 
9239
10812
 
9240
 
echo "$as_me:$LINENO: checking how to print off64_t" >&5
9241
 
echo $ECHO_N "checking how to print off64_t... $ECHO_C" >&6
 
10813
{ echo "$as_me:$LINENO: checking how to print off64_t" >&5
 
10814
echo $ECHO_N "checking how to print off64_t... $ECHO_C" >&6; }
9242
10815
if test "${ne_cv_fmt_off64_t+set}" = set; then
9243
10816
  echo $ECHO_N "(cached) $ECHO_C" >&6
9244
10817
else
9267
10840
}
9268
10841
_ACEOF
9269
10842
rm -f conftest.$ac_objext
9270
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9271
 
  (eval $ac_compile) 2>conftest.er1
 
10843
if { (ac_try="$ac_compile"
 
10844
case "(($ac_try" in
 
10845
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10846
  *) ac_try_echo=$ac_try;;
 
10847
esac
 
10848
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10849
  (eval "$ac_compile") 2>conftest.er1
9272
10850
  ac_status=$?
9273
10851
  grep -v '^ *+' conftest.er1 >conftest.err
9274
10852
  rm -f conftest.er1
9275
10853
  cat conftest.err >&5
9276
10854
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277
 
  (exit $ac_status); } &&
9278
 
         { ac_try='test -z "$ac_c_werror_flag"
9279
 
                         || test ! -s conftest.err'
9280
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9281
 
  (eval $ac_try) 2>&5
9282
 
  ac_status=$?
9283
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284
 
  (exit $ac_status); }; } &&
9285
 
         { ac_try='test -s conftest.$ac_objext'
9286
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9287
 
  (eval $ac_try) 2>&5
9288
 
  ac_status=$?
9289
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290
 
  (exit $ac_status); }; }; then
 
10855
  (exit $ac_status); } && {
 
10856
         test -z "$ac_c_werror_flag" ||
 
10857
         test ! -s conftest.err
 
10858
       } && test -s conftest.$ac_objext; then
9291
10859
  ne_cv_fmt_off64_t=$str; break
9292
10860
else
9293
10861
  echo "$as_me: failed program was:" >&5
9294
10862
sed 's/^/| /' conftest.$ac_ext >&5
9295
10863
 
 
10864
 
9296
10865
fi
9297
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10866
 
 
10867
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9298
10868
  done
9299
10869
  CPPFLAGS=$oflags
9300
10870
else
9308
10878
fi
9309
10879
 
9310
10880
fi
9311
 
echo "$as_me:$LINENO: result: $ne_cv_fmt_off64_t" >&5
9312
 
echo "${ECHO_T}$ne_cv_fmt_off64_t" >&6
 
10881
{ echo "$as_me:$LINENO: result: $ne_cv_fmt_off64_t" >&5
 
10882
echo "${ECHO_T}$ne_cv_fmt_off64_t" >&6; }
9313
10883
 
9314
10884
if test "x$ne_cv_fmt_off64_t" = "xnone"; then
9315
10885
  { { echo "$as_me:$LINENO: error: format string for off64_t not found" >&5
9329
10899
for ac_func in strtoll strtoq
9330
10900
do
9331
10901
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9332
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
9333
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9334
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
10902
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
10903
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
10904
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9335
10905
  echo $ECHO_N "(cached) $ECHO_C" >&6
9336
10906
else
9337
10907
  cat >conftest.$ac_ext <<_ACEOF
9357
10927
 
9358
10928
#undef $ac_func
9359
10929
 
9360
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
10930
/* Override any GCC internal prototype to avoid an error.
 
10931
   Use char because int might match the return type of a GCC
 
10932
   builtin and then its argument prototype would still apply.  */
9361
10933
#ifdef __cplusplus
9362
10934
extern "C"
9363
 
{
9364
10935
#endif
9365
 
/* We use char because int might match the return type of a gcc2
9366
 
   builtin and then its argument prototype would still apply.  */
9367
10936
char $ac_func ();
9368
10937
/* The GNU C library defines this for functions which it implements
9369
10938
    to always fail with ENOSYS.  Some functions are actually named
9370
10939
    something starting with __ and the normal name is an alias.  */
9371
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
10940
#if defined __stub_$ac_func || defined __stub___$ac_func
9372
10941
choke me
9373
 
#else
9374
 
char (*f) () = $ac_func;
9375
 
#endif
9376
 
#ifdef __cplusplus
9377
 
}
9378
10942
#endif
9379
10943
 
9380
10944
int
9381
10945
main ()
9382
10946
{
9383
 
return f != $ac_func;
 
10947
return $ac_func ();
9384
10948
  ;
9385
10949
  return 0;
9386
10950
}
9387
10951
_ACEOF
9388
10952
rm -f conftest.$ac_objext conftest$ac_exeext
9389
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9390
 
  (eval $ac_link) 2>conftest.er1
 
10953
if { (ac_try="$ac_link"
 
10954
case "(($ac_try" in
 
10955
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10956
  *) ac_try_echo=$ac_try;;
 
10957
esac
 
10958
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10959
  (eval "$ac_link") 2>conftest.er1
9391
10960
  ac_status=$?
9392
10961
  grep -v '^ *+' conftest.er1 >conftest.err
9393
10962
  rm -f conftest.er1
9394
10963
  cat conftest.err >&5
9395
10964
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396
 
  (exit $ac_status); } &&
9397
 
         { ac_try='test -z "$ac_c_werror_flag"
9398
 
                         || test ! -s conftest.err'
9399
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9400
 
  (eval $ac_try) 2>&5
9401
 
  ac_status=$?
9402
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403
 
  (exit $ac_status); }; } &&
9404
 
         { ac_try='test -s conftest$ac_exeext'
9405
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9406
 
  (eval $ac_try) 2>&5
9407
 
  ac_status=$?
9408
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409
 
  (exit $ac_status); }; }; then
 
10965
  (exit $ac_status); } && {
 
10966
         test -z "$ac_c_werror_flag" ||
 
10967
         test ! -s conftest.err
 
10968
       } && test -s conftest$ac_exeext &&
 
10969
       $as_test_x conftest$ac_exeext; then
9410
10970
  eval "$as_ac_var=yes"
9411
10971
else
9412
10972
  echo "$as_me: failed program was:" >&5
9413
10973
sed 's/^/| /' conftest.$ac_ext >&5
9414
10974
 
9415
 
eval "$as_ac_var=no"
 
10975
        eval "$as_ac_var=no"
9416
10976
fi
9417
 
rm -f conftest.err conftest.$ac_objext \
 
10977
 
 
10978
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9418
10979
      conftest$ac_exeext conftest.$ac_ext
9419
10980
fi
9420
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9421
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
10981
ac_res=`eval echo '${'$as_ac_var'}'`
 
10982
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
10983
echo "${ECHO_T}$ac_res" >&6; }
9422
10984
if test `eval echo '${'$as_ac_var'}'` = yes; then
9423
10985
  cat >>confdefs.h <<_ACEOF
9424
10986
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9432
10994
for ac_func in lseek64 fstat64
9433
10995
do
9434
10996
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9435
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
9436
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9437
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
10997
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
10998
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
10999
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9438
11000
  echo $ECHO_N "(cached) $ECHO_C" >&6
9439
11001
else
9440
11002
  cat >conftest.$ac_ext <<_ACEOF
9460
11022
 
9461
11023
#undef $ac_func
9462
11024
 
9463
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
11025
/* Override any GCC internal prototype to avoid an error.
 
11026
   Use char because int might match the return type of a GCC
 
11027
   builtin and then its argument prototype would still apply.  */
9464
11028
#ifdef __cplusplus
9465
11029
extern "C"
9466
 
{
9467
11030
#endif
9468
 
/* We use char because int might match the return type of a gcc2
9469
 
   builtin and then its argument prototype would still apply.  */
9470
11031
char $ac_func ();
9471
11032
/* The GNU C library defines this for functions which it implements
9472
11033
    to always fail with ENOSYS.  Some functions are actually named
9473
11034
    something starting with __ and the normal name is an alias.  */
9474
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
11035
#if defined __stub_$ac_func || defined __stub___$ac_func
9475
11036
choke me
9476
 
#else
9477
 
char (*f) () = $ac_func;
9478
 
#endif
9479
 
#ifdef __cplusplus
9480
 
}
9481
11037
#endif
9482
11038
 
9483
11039
int
9484
11040
main ()
9485
11041
{
9486
 
return f != $ac_func;
 
11042
return $ac_func ();
9487
11043
  ;
9488
11044
  return 0;
9489
11045
}
9490
11046
_ACEOF
9491
11047
rm -f conftest.$ac_objext conftest$ac_exeext
9492
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9493
 
  (eval $ac_link) 2>conftest.er1
 
11048
if { (ac_try="$ac_link"
 
11049
case "(($ac_try" in
 
11050
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11051
  *) ac_try_echo=$ac_try;;
 
11052
esac
 
11053
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11054
  (eval "$ac_link") 2>conftest.er1
9494
11055
  ac_status=$?
9495
11056
  grep -v '^ *+' conftest.er1 >conftest.err
9496
11057
  rm -f conftest.er1
9497
11058
  cat conftest.err >&5
9498
11059
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499
 
  (exit $ac_status); } &&
9500
 
         { ac_try='test -z "$ac_c_werror_flag"
9501
 
                         || test ! -s conftest.err'
9502
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9503
 
  (eval $ac_try) 2>&5
9504
 
  ac_status=$?
9505
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506
 
  (exit $ac_status); }; } &&
9507
 
         { ac_try='test -s conftest$ac_exeext'
9508
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9509
 
  (eval $ac_try) 2>&5
9510
 
  ac_status=$?
9511
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512
 
  (exit $ac_status); }; }; then
 
11060
  (exit $ac_status); } && {
 
11061
         test -z "$ac_c_werror_flag" ||
 
11062
         test ! -s conftest.err
 
11063
       } && test -s conftest$ac_exeext &&
 
11064
       $as_test_x conftest$ac_exeext; then
9513
11065
  eval "$as_ac_var=yes"
9514
11066
else
9515
11067
  echo "$as_me: failed program was:" >&5
9516
11068
sed 's/^/| /' conftest.$ac_ext >&5
9517
11069
 
9518
 
eval "$as_ac_var=no"
 
11070
        eval "$as_ac_var=no"
9519
11071
fi
9520
 
rm -f conftest.err conftest.$ac_objext \
 
11072
 
 
11073
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9521
11074
      conftest$ac_exeext conftest.$ac_ext
9522
11075
fi
9523
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9524
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
11076
ac_res=`eval echo '${'$as_ac_var'}'`
 
11077
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
11078
echo "${ECHO_T}$ac_res" >&6; }
9525
11079
if test `eval echo '${'$as_ac_var'}'` = yes; then
9526
11080
  cat >>confdefs.h <<_ACEOF
9527
11081
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9568
11122
 
9569
11123
   CPPFLAGS=$ne_save_CPPFLAGS
9570
11124
fi
 
11125
if test "$NE_FLAG_LFS" = "yes"; then
 
11126
 
 
11127
cat >>confdefs.h <<_ACEOF
 
11128
#define NE_FMT_NE_OFF_T NE_FMT_OFF64_T
 
11129
_ACEOF
 
11130
 
 
11131
 
 
11132
: Disabled for 0.28 to retain 0.27 ABI
 
11133
 
 
11134
else
 
11135
   cat >>confdefs.h <<_ACEOF
 
11136
#define NE_FMT_NE_OFF_T NE_FMT_OFF_T
 
11137
_ACEOF
 
11138
 
 
11139
fi
 
11140
 
9571
11141
 
9572
11142
 
9573
11143
for ac_func in strcasecmp
9574
11144
do
9575
11145
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9576
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
9577
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9578
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
11146
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
11147
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
11148
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9579
11149
  echo $ECHO_N "(cached) $ECHO_C" >&6
9580
11150
else
9581
11151
  cat >conftest.$ac_ext <<_ACEOF
9601
11171
 
9602
11172
#undef $ac_func
9603
11173
 
9604
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
11174
/* Override any GCC internal prototype to avoid an error.
 
11175
   Use char because int might match the return type of a GCC
 
11176
   builtin and then its argument prototype would still apply.  */
9605
11177
#ifdef __cplusplus
9606
11178
extern "C"
9607
 
{
9608
11179
#endif
9609
 
/* We use char because int might match the return type of a gcc2
9610
 
   builtin and then its argument prototype would still apply.  */
9611
11180
char $ac_func ();
9612
11181
/* The GNU C library defines this for functions which it implements
9613
11182
    to always fail with ENOSYS.  Some functions are actually named
9614
11183
    something starting with __ and the normal name is an alias.  */
9615
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
11184
#if defined __stub_$ac_func || defined __stub___$ac_func
9616
11185
choke me
9617
 
#else
9618
 
char (*f) () = $ac_func;
9619
 
#endif
9620
 
#ifdef __cplusplus
9621
 
}
9622
11186
#endif
9623
11187
 
9624
11188
int
9625
11189
main ()
9626
11190
{
9627
 
return f != $ac_func;
 
11191
return $ac_func ();
9628
11192
  ;
9629
11193
  return 0;
9630
11194
}
9631
11195
_ACEOF
9632
11196
rm -f conftest.$ac_objext conftest$ac_exeext
9633
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9634
 
  (eval $ac_link) 2>conftest.er1
 
11197
if { (ac_try="$ac_link"
 
11198
case "(($ac_try" in
 
11199
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11200
  *) ac_try_echo=$ac_try;;
 
11201
esac
 
11202
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11203
  (eval "$ac_link") 2>conftest.er1
9635
11204
  ac_status=$?
9636
11205
  grep -v '^ *+' conftest.er1 >conftest.err
9637
11206
  rm -f conftest.er1
9638
11207
  cat conftest.err >&5
9639
11208
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640
 
  (exit $ac_status); } &&
9641
 
         { ac_try='test -z "$ac_c_werror_flag"
9642
 
                         || test ! -s conftest.err'
9643
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9644
 
  (eval $ac_try) 2>&5
9645
 
  ac_status=$?
9646
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647
 
  (exit $ac_status); }; } &&
9648
 
         { ac_try='test -s conftest$ac_exeext'
9649
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9650
 
  (eval $ac_try) 2>&5
9651
 
  ac_status=$?
9652
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653
 
  (exit $ac_status); }; }; then
 
11209
  (exit $ac_status); } && {
 
11210
         test -z "$ac_c_werror_flag" ||
 
11211
         test ! -s conftest.err
 
11212
       } && test -s conftest$ac_exeext &&
 
11213
       $as_test_x conftest$ac_exeext; then
9654
11214
  eval "$as_ac_var=yes"
9655
11215
else
9656
11216
  echo "$as_me: failed program was:" >&5
9657
11217
sed 's/^/| /' conftest.$ac_ext >&5
9658
11218
 
9659
 
eval "$as_ac_var=no"
 
11219
        eval "$as_ac_var=no"
9660
11220
fi
9661
 
rm -f conftest.err conftest.$ac_objext \
 
11221
 
 
11222
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9662
11223
      conftest$ac_exeext conftest.$ac_ext
9663
11224
fi
9664
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9665
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
11225
ac_res=`eval echo '${'$as_ac_var'}'`
 
11226
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
11227
echo "${ECHO_T}$ac_res" >&6; }
9666
11228
if test `eval echo '${'$as_ac_var'}'` = yes; then
9667
11229
  cat >>confdefs.h <<_ACEOF
9668
11230
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9669
11231
_ACEOF
9670
11232
 
9671
11233
else
9672
 
  case $LIBOBJS in
9673
 
    "$ac_func.$ac_objext"   | \
9674
 
  *" $ac_func.$ac_objext"   | \
9675
 
    "$ac_func.$ac_objext "* | \
 
11234
  case " $LIBOBJS " in
9676
11235
  *" $ac_func.$ac_objext "* ) ;;
9677
 
  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
 
11236
  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
 
11237
 ;;
9678
11238
esac
9679
11239
 
9680
11240
fi
9687
11247
 
9688
11248
 
9689
11249
 
9690
 
for ac_func in signal setvbuf setsockopt stpcpy poll
 
11250
 
 
11251
 
 
11252
for ac_func in signal setvbuf setsockopt stpcpy poll fcntl getsockopt
9691
11253
do
9692
11254
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9693
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
9694
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9695
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
11255
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
11256
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
11257
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9696
11258
  echo $ECHO_N "(cached) $ECHO_C" >&6
9697
11259
else
9698
11260
  cat >conftest.$ac_ext <<_ACEOF
9718
11280
 
9719
11281
#undef $ac_func
9720
11282
 
9721
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
11283
/* Override any GCC internal prototype to avoid an error.
 
11284
   Use char because int might match the return type of a GCC
 
11285
   builtin and then its argument prototype would still apply.  */
9722
11286
#ifdef __cplusplus
9723
11287
extern "C"
9724
 
{
9725
11288
#endif
9726
 
/* We use char because int might match the return type of a gcc2
9727
 
   builtin and then its argument prototype would still apply.  */
9728
11289
char $ac_func ();
9729
11290
/* The GNU C library defines this for functions which it implements
9730
11291
    to always fail with ENOSYS.  Some functions are actually named
9731
11292
    something starting with __ and the normal name is an alias.  */
9732
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
11293
#if defined __stub_$ac_func || defined __stub___$ac_func
9733
11294
choke me
9734
 
#else
9735
 
char (*f) () = $ac_func;
9736
 
#endif
9737
 
#ifdef __cplusplus
9738
 
}
9739
11295
#endif
9740
11296
 
9741
11297
int
9742
11298
main ()
9743
11299
{
9744
 
return f != $ac_func;
 
11300
return $ac_func ();
9745
11301
  ;
9746
11302
  return 0;
9747
11303
}
9748
11304
_ACEOF
9749
11305
rm -f conftest.$ac_objext conftest$ac_exeext
9750
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9751
 
  (eval $ac_link) 2>conftest.er1
 
11306
if { (ac_try="$ac_link"
 
11307
case "(($ac_try" in
 
11308
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11309
  *) ac_try_echo=$ac_try;;
 
11310
esac
 
11311
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11312
  (eval "$ac_link") 2>conftest.er1
9752
11313
  ac_status=$?
9753
11314
  grep -v '^ *+' conftest.er1 >conftest.err
9754
11315
  rm -f conftest.er1
9755
11316
  cat conftest.err >&5
9756
11317
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757
 
  (exit $ac_status); } &&
9758
 
         { ac_try='test -z "$ac_c_werror_flag"
9759
 
                         || test ! -s conftest.err'
9760
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9761
 
  (eval $ac_try) 2>&5
9762
 
  ac_status=$?
9763
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764
 
  (exit $ac_status); }; } &&
9765
 
         { ac_try='test -s conftest$ac_exeext'
9766
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9767
 
  (eval $ac_try) 2>&5
9768
 
  ac_status=$?
9769
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770
 
  (exit $ac_status); }; }; then
 
11318
  (exit $ac_status); } && {
 
11319
         test -z "$ac_c_werror_flag" ||
 
11320
         test ! -s conftest.err
 
11321
       } && test -s conftest$ac_exeext &&
 
11322
       $as_test_x conftest$ac_exeext; then
9771
11323
  eval "$as_ac_var=yes"
9772
11324
else
9773
11325
  echo "$as_me: failed program was:" >&5
9774
11326
sed 's/^/| /' conftest.$ac_ext >&5
9775
11327
 
9776
 
eval "$as_ac_var=no"
 
11328
        eval "$as_ac_var=no"
9777
11329
fi
9778
 
rm -f conftest.err conftest.$ac_objext \
 
11330
 
 
11331
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9779
11332
      conftest$ac_exeext conftest.$ac_ext
9780
11333
fi
9781
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9782
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
11334
ac_res=`eval echo '${'$as_ac_var'}'`
 
11335
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
11336
echo "${ECHO_T}$ac_res" >&6; }
9783
11337
if test `eval echo '${'$as_ac_var'}'` = yes; then
9784
11338
  cat >>confdefs.h <<_ACEOF
9785
11339
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9798
11352
fi
9799
11353
 
9800
11354
if test "$ac_cv_func_stpcpy" = "yes"; then
9801
 
  echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
9802
 
echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
 
11355
  { echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
 
11356
echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6; }
9803
11357
if test "${ac_cv_have_decl_stpcpy+set}" = set; then
9804
11358
  echo $ECHO_N "(cached) $ECHO_C" >&6
9805
11359
else
9814
11368
main ()
9815
11369
{
9816
11370
#ifndef stpcpy
9817
 
  char *p = (char *) stpcpy;
 
11371
  (void) stpcpy;
9818
11372
#endif
9819
11373
 
9820
11374
  ;
9822
11376
}
9823
11377
_ACEOF
9824
11378
rm -f conftest.$ac_objext
9825
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9826
 
  (eval $ac_compile) 2>conftest.er1
 
11379
if { (ac_try="$ac_compile"
 
11380
case "(($ac_try" in
 
11381
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11382
  *) ac_try_echo=$ac_try;;
 
11383
esac
 
11384
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11385
  (eval "$ac_compile") 2>conftest.er1
9827
11386
  ac_status=$?
9828
11387
  grep -v '^ *+' conftest.er1 >conftest.err
9829
11388
  rm -f conftest.er1
9830
11389
  cat conftest.err >&5
9831
11390
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832
 
  (exit $ac_status); } &&
9833
 
         { ac_try='test -z "$ac_c_werror_flag"
9834
 
                         || test ! -s conftest.err'
9835
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9836
 
  (eval $ac_try) 2>&5
9837
 
  ac_status=$?
9838
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839
 
  (exit $ac_status); }; } &&
9840
 
         { ac_try='test -s conftest.$ac_objext'
9841
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9842
 
  (eval $ac_try) 2>&5
9843
 
  ac_status=$?
9844
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845
 
  (exit $ac_status); }; }; then
 
11391
  (exit $ac_status); } && {
 
11392
         test -z "$ac_c_werror_flag" ||
 
11393
         test ! -s conftest.err
 
11394
       } && test -s conftest.$ac_objext; then
9846
11395
  ac_cv_have_decl_stpcpy=yes
9847
11396
else
9848
11397
  echo "$as_me: failed program was:" >&5
9849
11398
sed 's/^/| /' conftest.$ac_ext >&5
9850
11399
 
9851
 
ac_cv_have_decl_stpcpy=no
9852
 
fi
9853
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9854
 
fi
9855
 
echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
9856
 
echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
 
11400
        ac_cv_have_decl_stpcpy=no
 
11401
fi
 
11402
 
 
11403
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11404
fi
 
11405
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
 
11406
echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6; }
9857
11407
if test $ac_cv_have_decl_stpcpy = yes; then
9858
11408
 
9859
11409
cat >>confdefs.h <<_ACEOF
9880
11430
# Pick up -lsocket first, then the gethostbyname check will work.
9881
11431
 
9882
11432
 
9883
 
echo "$as_me:$LINENO: checking for library containing socket" >&5
9884
 
echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
 
11433
 
 
11434
 
 
11435
{ echo "$as_me:$LINENO: checking for library containing socket" >&5
 
11436
echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
9885
11437
if test "${ne_cv_libsfor_socket+set}" = set; then
9886
11438
  echo $ECHO_N "(cached) $ECHO_C" >&6
9887
11439
else
9902
11454
}
9903
11455
_ACEOF
9904
11456
rm -f conftest.$ac_objext conftest$ac_exeext
9905
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9906
 
  (eval $ac_link) 2>conftest.er1
 
11457
if { (ac_try="$ac_link"
 
11458
case "(($ac_try" in
 
11459
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11460
  *) ac_try_echo=$ac_try;;
 
11461
esac
 
11462
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11463
  (eval "$ac_link") 2>conftest.er1
9907
11464
  ac_status=$?
9908
11465
  grep -v '^ *+' conftest.er1 >conftest.err
9909
11466
  rm -f conftest.er1
9910
11467
  cat conftest.err >&5
9911
11468
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912
 
  (exit $ac_status); } &&
9913
 
         { ac_try='test -z "$ac_c_werror_flag"
9914
 
                         || test ! -s conftest.err'
9915
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9916
 
  (eval $ac_try) 2>&5
9917
 
  ac_status=$?
9918
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919
 
  (exit $ac_status); }; } &&
9920
 
         { ac_try='test -s conftest$ac_exeext'
9921
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9922
 
  (eval $ac_try) 2>&5
9923
 
  ac_status=$?
9924
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925
 
  (exit $ac_status); }; }; then
 
11469
  (exit $ac_status); } && {
 
11470
         test -z "$ac_c_werror_flag" ||
 
11471
         test ! -s conftest.err
 
11472
       } && test -s conftest$ac_exeext &&
 
11473
       $as_test_x conftest$ac_exeext; then
9926
11474
  ne_cv_libsfor_socket="none needed"
9927
11475
else
9928
11476
  echo "$as_me: failed program was:" >&5
9932
11480
ne_sl_save_LIBS=$LIBS
9933
11481
ne_cv_libsfor_socket="not found"
9934
11482
for lib in socket inet ws2_32; do
 
11483
    # The w32api libraries link using the stdcall calling convention.
 
11484
    case ${lib}-${ne_cv_os_uname} in
 
11485
    ws2_32-MINGW*) ne__code="__stdcall socket();" ;;
 
11486
    *) ne__code="socket();" ;;
 
11487
    esac
 
11488
 
9935
11489
    LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
9936
11490
    cat >conftest.$ac_ext <<_ACEOF
9937
11491
/* confdefs.h.  */
9943
11497
int
9944
11498
main ()
9945
11499
{
9946
 
socket();
 
11500
$ne__code
9947
11501
  ;
9948
11502
  return 0;
9949
11503
}
9950
11504
_ACEOF
9951
11505
rm -f conftest.$ac_objext conftest$ac_exeext
9952
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9953
 
  (eval $ac_link) 2>conftest.er1
 
11506
if { (ac_try="$ac_link"
 
11507
case "(($ac_try" in
 
11508
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11509
  *) ac_try_echo=$ac_try;;
 
11510
esac
 
11511
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11512
  (eval "$ac_link") 2>conftest.er1
9954
11513
  ac_status=$?
9955
11514
  grep -v '^ *+' conftest.er1 >conftest.err
9956
11515
  rm -f conftest.er1
9957
11516
  cat conftest.err >&5
9958
11517
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959
 
  (exit $ac_status); } &&
9960
 
         { ac_try='test -z "$ac_c_werror_flag"
9961
 
                         || test ! -s conftest.err'
9962
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963
 
  (eval $ac_try) 2>&5
9964
 
  ac_status=$?
9965
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966
 
  (exit $ac_status); }; } &&
9967
 
         { ac_try='test -s conftest$ac_exeext'
9968
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9969
 
  (eval $ac_try) 2>&5
9970
 
  ac_status=$?
9971
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972
 
  (exit $ac_status); }; }; then
 
11518
  (exit $ac_status); } && {
 
11519
         test -z "$ac_c_werror_flag" ||
 
11520
         test ! -s conftest.err
 
11521
       } && test -s conftest$ac_exeext &&
 
11522
       $as_test_x conftest$ac_exeext; then
9973
11523
  ne_cv_libsfor_socket="-l$lib"; break
9974
11524
else
9975
11525
  echo "$as_me: failed program was:" >&5
9976
11526
sed 's/^/| /' conftest.$ac_ext >&5
9977
11527
 
 
11528
 
9978
11529
fi
9979
 
rm -f conftest.err conftest.$ac_objext \
 
11530
 
 
11531
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9980
11532
      conftest$ac_exeext conftest.$ac_ext
9981
11533
 
9982
11534
done
9983
11535
LIBS=$ne_sl_save_LIBS
9984
11536
fi
9985
 
rm -f conftest.err conftest.$ac_objext \
 
11537
 
 
11538
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9986
11539
      conftest$ac_exeext conftest.$ac_ext
9987
11540
fi
9988
 
echo "$as_me:$LINENO: result: $ne_cv_libsfor_socket" >&5
9989
 
echo "${ECHO_T}$ne_cv_libsfor_socket" >&6
 
11541
{ echo "$as_me:$LINENO: result: $ne_cv_libsfor_socket" >&5
 
11542
echo "${ECHO_T}$ne_cv_libsfor_socket" >&6; }
9990
11543
 
9991
11544
if test "$ne_cv_libsfor_socket" = "not found"; then
9992
11545
   { { echo "$as_me:$LINENO: error: could not find library containing socket" >&5
10003
11556
# all available.
10004
11557
 
10005
11558
 
10006
 
echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
10007
 
echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6
 
11559
 
 
11560
 
 
11561
{ echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
 
11562
echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; }
10008
11563
if test "${ne_cv_libsfor_getaddrinfo+set}" = set; then
10009
11564
  echo $ECHO_N "(cached) $ECHO_C" >&6
10010
11565
else
10025
11580
}
10026
11581
_ACEOF
10027
11582
rm -f conftest.$ac_objext conftest$ac_exeext
10028
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10029
 
  (eval $ac_link) 2>conftest.er1
 
11583
if { (ac_try="$ac_link"
 
11584
case "(($ac_try" in
 
11585
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11586
  *) ac_try_echo=$ac_try;;
 
11587
esac
 
11588
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11589
  (eval "$ac_link") 2>conftest.er1
10030
11590
  ac_status=$?
10031
11591
  grep -v '^ *+' conftest.er1 >conftest.err
10032
11592
  rm -f conftest.er1
10033
11593
  cat conftest.err >&5
10034
11594
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035
 
  (exit $ac_status); } &&
10036
 
         { ac_try='test -z "$ac_c_werror_flag"
10037
 
                         || test ! -s conftest.err'
10038
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10039
 
  (eval $ac_try) 2>&5
10040
 
  ac_status=$?
10041
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042
 
  (exit $ac_status); }; } &&
10043
 
         { ac_try='test -s conftest$ac_exeext'
10044
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10045
 
  (eval $ac_try) 2>&5
10046
 
  ac_status=$?
10047
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048
 
  (exit $ac_status); }; }; then
 
11595
  (exit $ac_status); } && {
 
11596
         test -z "$ac_c_werror_flag" ||
 
11597
         test ! -s conftest.err
 
11598
       } && test -s conftest$ac_exeext &&
 
11599
       $as_test_x conftest$ac_exeext; then
10049
11600
  ne_cv_libsfor_getaddrinfo="none needed"
10050
11601
else
10051
11602
  echo "$as_me: failed program was:" >&5
10055
11606
ne_sl_save_LIBS=$LIBS
10056
11607
ne_cv_libsfor_getaddrinfo="not found"
10057
11608
for lib in nsl; do
 
11609
    # The w32api libraries link using the stdcall calling convention.
 
11610
    case ${lib}-${ne_cv_os_uname} in
 
11611
    ws2_32-MINGW*) ne__code="__stdcall getaddrinfo();" ;;
 
11612
    *) ne__code="getaddrinfo();" ;;
 
11613
    esac
 
11614
 
10058
11615
    LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
10059
11616
    cat >conftest.$ac_ext <<_ACEOF
10060
11617
/* confdefs.h.  */
10066
11623
int
10067
11624
main ()
10068
11625
{
10069
 
getaddrinfo();
 
11626
$ne__code
10070
11627
  ;
10071
11628
  return 0;
10072
11629
}
10073
11630
_ACEOF
10074
11631
rm -f conftest.$ac_objext conftest$ac_exeext
10075
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10076
 
  (eval $ac_link) 2>conftest.er1
 
11632
if { (ac_try="$ac_link"
 
11633
case "(($ac_try" in
 
11634
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11635
  *) ac_try_echo=$ac_try;;
 
11636
esac
 
11637
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11638
  (eval "$ac_link") 2>conftest.er1
10077
11639
  ac_status=$?
10078
11640
  grep -v '^ *+' conftest.er1 >conftest.err
10079
11641
  rm -f conftest.er1
10080
11642
  cat conftest.err >&5
10081
11643
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082
 
  (exit $ac_status); } &&
10083
 
         { ac_try='test -z "$ac_c_werror_flag"
10084
 
                         || test ! -s conftest.err'
10085
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10086
 
  (eval $ac_try) 2>&5
10087
 
  ac_status=$?
10088
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089
 
  (exit $ac_status); }; } &&
10090
 
         { ac_try='test -s conftest$ac_exeext'
10091
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10092
 
  (eval $ac_try) 2>&5
10093
 
  ac_status=$?
10094
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095
 
  (exit $ac_status); }; }; then
 
11644
  (exit $ac_status); } && {
 
11645
         test -z "$ac_c_werror_flag" ||
 
11646
         test ! -s conftest.err
 
11647
       } && test -s conftest$ac_exeext &&
 
11648
       $as_test_x conftest$ac_exeext; then
10096
11649
  ne_cv_libsfor_getaddrinfo="-l$lib"; break
10097
11650
else
10098
11651
  echo "$as_me: failed program was:" >&5
10099
11652
sed 's/^/| /' conftest.$ac_ext >&5
10100
11653
 
 
11654
 
10101
11655
fi
10102
 
rm -f conftest.err conftest.$ac_objext \
 
11656
 
 
11657
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10103
11658
      conftest$ac_exeext conftest.$ac_ext
10104
11659
 
10105
11660
done
10106
11661
LIBS=$ne_sl_save_LIBS
10107
11662
fi
10108
 
rm -f conftest.err conftest.$ac_objext \
 
11663
 
 
11664
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10109
11665
      conftest$ac_exeext conftest.$ac_ext
10110
11666
fi
10111
 
echo "$as_me:$LINENO: result: $ne_cv_libsfor_getaddrinfo" >&5
10112
 
echo "${ECHO_T}$ne_cv_libsfor_getaddrinfo" >&6
 
11667
{ echo "$as_me:$LINENO: result: $ne_cv_libsfor_getaddrinfo" >&5
 
11668
echo "${ECHO_T}$ne_cv_libsfor_getaddrinfo" >&6; }
10113
11669
 
10114
11670
if test "$ne_cv_libsfor_getaddrinfo" = "not found"; then
10115
11671
   ne_enable_gai=no
10127
11683
LIBS="$LIBS $NEON_LIBS"
10128
11684
 
10129
11685
 
10130
 
for ac_func in gai_strerror inet_ntop
 
11686
 
 
11687
for ac_func in gai_strerror getnameinfo inet_ntop
10131
11688
do
10132
11689
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10133
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
10134
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10135
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
11690
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
11691
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
11692
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10136
11693
  echo $ECHO_N "(cached) $ECHO_C" >&6
10137
11694
else
10138
11695
  cat >conftest.$ac_ext <<_ACEOF
10158
11715
 
10159
11716
#undef $ac_func
10160
11717
 
10161
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
11718
/* Override any GCC internal prototype to avoid an error.
 
11719
   Use char because int might match the return type of a GCC
 
11720
   builtin and then its argument prototype would still apply.  */
10162
11721
#ifdef __cplusplus
10163
11722
extern "C"
10164
 
{
10165
11723
#endif
10166
 
/* We use char because int might match the return type of a gcc2
10167
 
   builtin and then its argument prototype would still apply.  */
10168
11724
char $ac_func ();
10169
11725
/* The GNU C library defines this for functions which it implements
10170
11726
    to always fail with ENOSYS.  Some functions are actually named
10171
11727
    something starting with __ and the normal name is an alias.  */
10172
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
11728
#if defined __stub_$ac_func || defined __stub___$ac_func
10173
11729
choke me
10174
 
#else
10175
 
char (*f) () = $ac_func;
10176
 
#endif
10177
 
#ifdef __cplusplus
10178
 
}
10179
11730
#endif
10180
11731
 
10181
11732
int
10182
11733
main ()
10183
11734
{
10184
 
return f != $ac_func;
 
11735
return $ac_func ();
10185
11736
  ;
10186
11737
  return 0;
10187
11738
}
10188
11739
_ACEOF
10189
11740
rm -f conftest.$ac_objext conftest$ac_exeext
10190
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10191
 
  (eval $ac_link) 2>conftest.er1
 
11741
if { (ac_try="$ac_link"
 
11742
case "(($ac_try" in
 
11743
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11744
  *) ac_try_echo=$ac_try;;
 
11745
esac
 
11746
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11747
  (eval "$ac_link") 2>conftest.er1
10192
11748
  ac_status=$?
10193
11749
  grep -v '^ *+' conftest.er1 >conftest.err
10194
11750
  rm -f conftest.er1
10195
11751
  cat conftest.err >&5
10196
11752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197
 
  (exit $ac_status); } &&
10198
 
         { ac_try='test -z "$ac_c_werror_flag"
10199
 
                         || test ! -s conftest.err'
10200
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10201
 
  (eval $ac_try) 2>&5
10202
 
  ac_status=$?
10203
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204
 
  (exit $ac_status); }; } &&
10205
 
         { ac_try='test -s conftest$ac_exeext'
10206
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10207
 
  (eval $ac_try) 2>&5
10208
 
  ac_status=$?
10209
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210
 
  (exit $ac_status); }; }; then
 
11753
  (exit $ac_status); } && {
 
11754
         test -z "$ac_c_werror_flag" ||
 
11755
         test ! -s conftest.err
 
11756
       } && test -s conftest$ac_exeext &&
 
11757
       $as_test_x conftest$ac_exeext; then
10211
11758
  eval "$as_ac_var=yes"
10212
11759
else
10213
11760
  echo "$as_me: failed program was:" >&5
10214
11761
sed 's/^/| /' conftest.$ac_ext >&5
10215
11762
 
10216
 
eval "$as_ac_var=no"
 
11763
        eval "$as_ac_var=no"
10217
11764
fi
10218
 
rm -f conftest.err conftest.$ac_objext \
 
11765
 
 
11766
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10219
11767
      conftest$ac_exeext conftest.$ac_ext
10220
11768
fi
10221
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10222
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
11769
ac_res=`eval echo '${'$as_ac_var'}'`
 
11770
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
11771
echo "${ECHO_T}$ac_res" >&6; }
10223
11772
if test `eval echo '${'$as_ac_var'}'` = yes; then
10224
11773
  cat >>confdefs.h <<_ACEOF
10225
11774
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10248
11797
LIBS="$LIBS $NEON_LIBS"
10249
11798
 
10250
11799
 
10251
 
for ac_func in gai_strerror inet_ntop
 
11800
 
 
11801
for ac_func in gai_strerror getnameinfo inet_ntop
10252
11802
do
10253
11803
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10254
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
10255
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10256
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
11804
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
11805
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
11806
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10257
11807
  echo $ECHO_N "(cached) $ECHO_C" >&6
10258
11808
else
10259
11809
  cat >conftest.$ac_ext <<_ACEOF
10279
11829
 
10280
11830
#undef $ac_func
10281
11831
 
10282
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
11832
/* Override any GCC internal prototype to avoid an error.
 
11833
   Use char because int might match the return type of a GCC
 
11834
   builtin and then its argument prototype would still apply.  */
10283
11835
#ifdef __cplusplus
10284
11836
extern "C"
10285
 
{
10286
11837
#endif
10287
 
/* We use char because int might match the return type of a gcc2
10288
 
   builtin and then its argument prototype would still apply.  */
10289
11838
char $ac_func ();
10290
11839
/* The GNU C library defines this for functions which it implements
10291
11840
    to always fail with ENOSYS.  Some functions are actually named
10292
11841
    something starting with __ and the normal name is an alias.  */
10293
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
11842
#if defined __stub_$ac_func || defined __stub___$ac_func
10294
11843
choke me
10295
 
#else
10296
 
char (*f) () = $ac_func;
10297
 
#endif
10298
 
#ifdef __cplusplus
10299
 
}
10300
11844
#endif
10301
11845
 
10302
11846
int
10303
11847
main ()
10304
11848
{
10305
 
return f != $ac_func;
 
11849
return $ac_func ();
10306
11850
  ;
10307
11851
  return 0;
10308
11852
}
10309
11853
_ACEOF
10310
11854
rm -f conftest.$ac_objext conftest$ac_exeext
10311
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10312
 
  (eval $ac_link) 2>conftest.er1
 
11855
if { (ac_try="$ac_link"
 
11856
case "(($ac_try" in
 
11857
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11858
  *) ac_try_echo=$ac_try;;
 
11859
esac
 
11860
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11861
  (eval "$ac_link") 2>conftest.er1
10313
11862
  ac_status=$?
10314
11863
  grep -v '^ *+' conftest.er1 >conftest.err
10315
11864
  rm -f conftest.er1
10316
11865
  cat conftest.err >&5
10317
11866
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318
 
  (exit $ac_status); } &&
10319
 
         { ac_try='test -z "$ac_c_werror_flag"
10320
 
                         || test ! -s conftest.err'
10321
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10322
 
  (eval $ac_try) 2>&5
10323
 
  ac_status=$?
10324
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325
 
  (exit $ac_status); }; } &&
10326
 
         { ac_try='test -s conftest$ac_exeext'
10327
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10328
 
  (eval $ac_try) 2>&5
10329
 
  ac_status=$?
10330
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331
 
  (exit $ac_status); }; }; then
 
11867
  (exit $ac_status); } && {
 
11868
         test -z "$ac_c_werror_flag" ||
 
11869
         test ! -s conftest.err
 
11870
       } && test -s conftest$ac_exeext &&
 
11871
       $as_test_x conftest$ac_exeext; then
10332
11872
  eval "$as_ac_var=yes"
10333
11873
else
10334
11874
  echo "$as_me: failed program was:" >&5
10335
11875
sed 's/^/| /' conftest.$ac_ext >&5
10336
11876
 
10337
 
eval "$as_ac_var=no"
 
11877
        eval "$as_ac_var=no"
10338
11878
fi
10339
 
rm -f conftest.err conftest.$ac_objext \
 
11879
 
 
11880
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10340
11881
      conftest$ac_exeext conftest.$ac_ext
10341
11882
fi
10342
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10343
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
11883
ac_res=`eval echo '${'$as_ac_var'}'`
 
11884
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
11885
echo "${ECHO_T}$ac_res" >&6; }
10344
11886
if test `eval echo '${'$as_ac_var'}'` = yes; then
10345
11887
  cat >>confdefs.h <<_ACEOF
10346
11888
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10374
11916
#define USE_GETADDRINFO 1
10375
11917
_ACEOF
10376
11918
 
10377
 
   echo "$as_me:$LINENO: checking for working AI_ADDRCONFIG" >&5
10378
 
echo $ECHO_N "checking for working AI_ADDRCONFIG... $ECHO_C" >&6
 
11919
   { echo "$as_me:$LINENO: checking for working AI_ADDRCONFIG" >&5
 
11920
echo $ECHO_N "checking for working AI_ADDRCONFIG... $ECHO_C" >&6; }
10379
11921
if test "${ne_cv_gai_addrconfig+set}" = set; then
10380
11922
  echo $ECHO_N "(cached) $ECHO_C" >&6
10381
11923
else
10401
11943
}
10402
11944
_ACEOF
10403
11945
rm -f conftest$ac_exeext
10404
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10405
 
  (eval $ac_link) 2>&5
 
11946
if { (ac_try="$ac_link"
 
11947
case "(($ac_try" in
 
11948
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11949
  *) ac_try_echo=$ac_try;;
 
11950
esac
 
11951
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11952
  (eval "$ac_link") 2>&5
10406
11953
  ac_status=$?
10407
11954
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408
11955
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10409
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10410
 
  (eval $ac_try) 2>&5
 
11956
  { (case "(($ac_try" in
 
11957
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11958
  *) ac_try_echo=$ac_try;;
 
11959
esac
 
11960
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11961
  (eval "$ac_try") 2>&5
10411
11962
  ac_status=$?
10412
11963
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413
11964
  (exit $ac_status); }; }; then
10420
11971
( exit $ac_status )
10421
11972
ne_cv_gai_addrconfig=no
10422
11973
fi
10423
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10424
 
fi
10425
 
fi
10426
 
echo "$as_me:$LINENO: result: $ne_cv_gai_addrconfig" >&5
10427
 
echo "${ECHO_T}$ne_cv_gai_addrconfig" >&6
 
11974
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
11975
fi
 
11976
 
 
11977
 
 
11978
fi
 
11979
{ echo "$as_me:$LINENO: result: $ne_cv_gai_addrconfig" >&5
 
11980
echo "${ECHO_T}$ne_cv_gai_addrconfig" >&6; }
10428
11981
   if test $ne_cv_gai_addrconfig = yes; then
10429
11982
 
10430
11983
cat >>confdefs.h <<\_ACEOF
10438
11991
   # CygWin/Winsock2 has it in -lws2_32, allegedly.
10439
11992
 
10440
11993
 
10441
 
echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
10442
 
echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
 
11994
 
 
11995
 
 
11996
{ echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
 
11997
echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
10443
11998
if test "${ne_cv_libsfor_gethostbyname+set}" = set; then
10444
11999
  echo $ECHO_N "(cached) $ECHO_C" >&6
10445
12000
else
10460
12015
}
10461
12016
_ACEOF
10462
12017
rm -f conftest.$ac_objext conftest$ac_exeext
10463
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10464
 
  (eval $ac_link) 2>conftest.er1
 
12018
if { (ac_try="$ac_link"
 
12019
case "(($ac_try" in
 
12020
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12021
  *) ac_try_echo=$ac_try;;
 
12022
esac
 
12023
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12024
  (eval "$ac_link") 2>conftest.er1
10465
12025
  ac_status=$?
10466
12026
  grep -v '^ *+' conftest.er1 >conftest.err
10467
12027
  rm -f conftest.er1
10468
12028
  cat conftest.err >&5
10469
12029
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470
 
  (exit $ac_status); } &&
10471
 
         { ac_try='test -z "$ac_c_werror_flag"
10472
 
                         || test ! -s conftest.err'
10473
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10474
 
  (eval $ac_try) 2>&5
10475
 
  ac_status=$?
10476
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477
 
  (exit $ac_status); }; } &&
10478
 
         { ac_try='test -s conftest$ac_exeext'
10479
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10480
 
  (eval $ac_try) 2>&5
10481
 
  ac_status=$?
10482
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483
 
  (exit $ac_status); }; }; then
 
12030
  (exit $ac_status); } && {
 
12031
         test -z "$ac_c_werror_flag" ||
 
12032
         test ! -s conftest.err
 
12033
       } && test -s conftest$ac_exeext &&
 
12034
       $as_test_x conftest$ac_exeext; then
10484
12035
  ne_cv_libsfor_gethostbyname="none needed"
10485
12036
else
10486
12037
  echo "$as_me: failed program was:" >&5
10489
12040
 
10490
12041
ne_sl_save_LIBS=$LIBS
10491
12042
ne_cv_libsfor_gethostbyname="not found"
10492
 
for lib in socket nsl bind; do
 
12043
for lib in socket nsl bind ws2_32; do
 
12044
    # The w32api libraries link using the stdcall calling convention.
 
12045
    case ${lib}-${ne_cv_os_uname} in
 
12046
    ws2_32-MINGW*) ne__code="__stdcall gethostbyname();" ;;
 
12047
    *) ne__code="gethostbyname();" ;;
 
12048
    esac
 
12049
 
10493
12050
    LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
10494
12051
    cat >conftest.$ac_ext <<_ACEOF
10495
12052
/* confdefs.h.  */
10501
12058
int
10502
12059
main ()
10503
12060
{
10504
 
gethostbyname();
 
12061
$ne__code
10505
12062
  ;
10506
12063
  return 0;
10507
12064
}
10508
12065
_ACEOF
10509
12066
rm -f conftest.$ac_objext conftest$ac_exeext
10510
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10511
 
  (eval $ac_link) 2>conftest.er1
 
12067
if { (ac_try="$ac_link"
 
12068
case "(($ac_try" in
 
12069
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12070
  *) ac_try_echo=$ac_try;;
 
12071
esac
 
12072
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12073
  (eval "$ac_link") 2>conftest.er1
10512
12074
  ac_status=$?
10513
12075
  grep -v '^ *+' conftest.er1 >conftest.err
10514
12076
  rm -f conftest.er1
10515
12077
  cat conftest.err >&5
10516
12078
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517
 
  (exit $ac_status); } &&
10518
 
         { ac_try='test -z "$ac_c_werror_flag"
10519
 
                         || test ! -s conftest.err'
10520
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10521
 
  (eval $ac_try) 2>&5
10522
 
  ac_status=$?
10523
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524
 
  (exit $ac_status); }; } &&
10525
 
         { ac_try='test -s conftest$ac_exeext'
10526
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10527
 
  (eval $ac_try) 2>&5
10528
 
  ac_status=$?
10529
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530
 
  (exit $ac_status); }; }; then
 
12079
  (exit $ac_status); } && {
 
12080
         test -z "$ac_c_werror_flag" ||
 
12081
         test ! -s conftest.err
 
12082
       } && test -s conftest$ac_exeext &&
 
12083
       $as_test_x conftest$ac_exeext; then
10531
12084
  ne_cv_libsfor_gethostbyname="-l$lib"; break
10532
12085
else
10533
12086
  echo "$as_me: failed program was:" >&5
10534
12087
sed 's/^/| /' conftest.$ac_ext >&5
10535
12088
 
 
12089
 
10536
12090
fi
10537
 
rm -f conftest.err conftest.$ac_objext \
 
12091
 
 
12092
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10538
12093
      conftest$ac_exeext conftest.$ac_ext
10539
12094
 
10540
12095
done
10541
12096
LIBS=$ne_sl_save_LIBS
10542
12097
fi
10543
 
rm -f conftest.err conftest.$ac_objext \
 
12098
 
 
12099
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10544
12100
      conftest$ac_exeext conftest.$ac_ext
10545
12101
fi
10546
 
echo "$as_me:$LINENO: result: $ne_cv_libsfor_gethostbyname" >&5
10547
 
echo "${ECHO_T}$ne_cv_libsfor_gethostbyname" >&6
 
12102
{ echo "$as_me:$LINENO: result: $ne_cv_libsfor_gethostbyname" >&5
 
12103
echo "${ECHO_T}$ne_cv_libsfor_gethostbyname" >&6; }
10548
12104
 
10549
12105
if test "$ne_cv_libsfor_gethostbyname" = "not found"; then
10550
12106
   { { echo "$as_me:$LINENO: error: could not find library containing gethostbyname" >&5
10558
12114
fi
10559
12115
 
10560
12116
 
10561
 
echo "$as_me:$LINENO: checking for library containing hstrerror" >&5
10562
 
echo $ECHO_N "checking for library containing hstrerror... $ECHO_C" >&6
 
12117
 
 
12118
 
 
12119
{ echo "$as_me:$LINENO: checking for library containing hstrerror" >&5
 
12120
echo $ECHO_N "checking for library containing hstrerror... $ECHO_C" >&6; }
10563
12121
if test "${ne_cv_libsfor_hstrerror+set}" = set; then
10564
12122
  echo $ECHO_N "(cached) $ECHO_C" >&6
10565
12123
else
10580
12138
}
10581
12139
_ACEOF
10582
12140
rm -f conftest.$ac_objext conftest$ac_exeext
10583
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10584
 
  (eval $ac_link) 2>conftest.er1
 
12141
if { (ac_try="$ac_link"
 
12142
case "(($ac_try" in
 
12143
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12144
  *) ac_try_echo=$ac_try;;
 
12145
esac
 
12146
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12147
  (eval "$ac_link") 2>conftest.er1
10585
12148
  ac_status=$?
10586
12149
  grep -v '^ *+' conftest.er1 >conftest.err
10587
12150
  rm -f conftest.er1
10588
12151
  cat conftest.err >&5
10589
12152
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590
 
  (exit $ac_status); } &&
10591
 
         { ac_try='test -z "$ac_c_werror_flag"
10592
 
                         || test ! -s conftest.err'
10593
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10594
 
  (eval $ac_try) 2>&5
10595
 
  ac_status=$?
10596
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597
 
  (exit $ac_status); }; } &&
10598
 
         { ac_try='test -s conftest$ac_exeext'
10599
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10600
 
  (eval $ac_try) 2>&5
10601
 
  ac_status=$?
10602
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603
 
  (exit $ac_status); }; }; then
 
12153
  (exit $ac_status); } && {
 
12154
         test -z "$ac_c_werror_flag" ||
 
12155
         test ! -s conftest.err
 
12156
       } && test -s conftest$ac_exeext &&
 
12157
       $as_test_x conftest$ac_exeext; then
10604
12158
  ne_cv_libsfor_hstrerror="none needed"
10605
12159
else
10606
12160
  echo "$as_me: failed program was:" >&5
10610
12164
ne_sl_save_LIBS=$LIBS
10611
12165
ne_cv_libsfor_hstrerror="not found"
10612
12166
for lib in resolv; do
 
12167
    # The w32api libraries link using the stdcall calling convention.
 
12168
    case ${lib}-${ne_cv_os_uname} in
 
12169
    ws2_32-MINGW*) ne__code="__stdcall hstrerror();" ;;
 
12170
    *) ne__code="hstrerror();" ;;
 
12171
    esac
 
12172
 
10613
12173
    LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
10614
12174
    cat >conftest.$ac_ext <<_ACEOF
10615
12175
/* confdefs.h.  */
10621
12181
int
10622
12182
main ()
10623
12183
{
10624
 
hstrerror();
 
12184
$ne__code
10625
12185
  ;
10626
12186
  return 0;
10627
12187
}
10628
12188
_ACEOF
10629
12189
rm -f conftest.$ac_objext conftest$ac_exeext
10630
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10631
 
  (eval $ac_link) 2>conftest.er1
 
12190
if { (ac_try="$ac_link"
 
12191
case "(($ac_try" in
 
12192
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12193
  *) ac_try_echo=$ac_try;;
 
12194
esac
 
12195
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12196
  (eval "$ac_link") 2>conftest.er1
10632
12197
  ac_status=$?
10633
12198
  grep -v '^ *+' conftest.er1 >conftest.err
10634
12199
  rm -f conftest.er1
10635
12200
  cat conftest.err >&5
10636
12201
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637
 
  (exit $ac_status); } &&
10638
 
         { ac_try='test -z "$ac_c_werror_flag"
10639
 
                         || test ! -s conftest.err'
10640
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10641
 
  (eval $ac_try) 2>&5
10642
 
  ac_status=$?
10643
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644
 
  (exit $ac_status); }; } &&
10645
 
         { ac_try='test -s conftest$ac_exeext'
10646
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10647
 
  (eval $ac_try) 2>&5
10648
 
  ac_status=$?
10649
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650
 
  (exit $ac_status); }; }; then
 
12202
  (exit $ac_status); } && {
 
12203
         test -z "$ac_c_werror_flag" ||
 
12204
         test ! -s conftest.err
 
12205
       } && test -s conftest$ac_exeext &&
 
12206
       $as_test_x conftest$ac_exeext; then
10651
12207
  ne_cv_libsfor_hstrerror="-l$lib"; break
10652
12208
else
10653
12209
  echo "$as_me: failed program was:" >&5
10654
12210
sed 's/^/| /' conftest.$ac_ext >&5
10655
12211
 
 
12212
 
10656
12213
fi
10657
 
rm -f conftest.err conftest.$ac_objext \
 
12214
 
 
12215
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10658
12216
      conftest$ac_exeext conftest.$ac_ext
10659
12217
 
10660
12218
done
10661
12219
LIBS=$ne_sl_save_LIBS
10662
12220
fi
10663
 
rm -f conftest.err conftest.$ac_objext \
 
12221
 
 
12222
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10664
12223
      conftest$ac_exeext conftest.$ac_ext
10665
12224
fi
10666
 
echo "$as_me:$LINENO: result: $ne_cv_libsfor_hstrerror" >&5
10667
 
echo "${ECHO_T}$ne_cv_libsfor_hstrerror" >&6
 
12225
{ echo "$as_me:$LINENO: result: $ne_cv_libsfor_hstrerror" >&5
 
12226
echo "${ECHO_T}$ne_cv_libsfor_hstrerror" >&6; }
10668
12227
 
10669
12228
if test "$ne_cv_libsfor_hstrerror" = "not found"; then
10670
12229
   :
10681
12240
for ac_func in hstrerror
10682
12241
do
10683
12242
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10684
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
10685
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10686
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
12243
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
12244
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
12245
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10687
12246
  echo $ECHO_N "(cached) $ECHO_C" >&6
10688
12247
else
10689
12248
  cat >conftest.$ac_ext <<_ACEOF
10709
12268
 
10710
12269
#undef $ac_func
10711
12270
 
10712
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
12271
/* Override any GCC internal prototype to avoid an error.
 
12272
   Use char because int might match the return type of a GCC
 
12273
   builtin and then its argument prototype would still apply.  */
10713
12274
#ifdef __cplusplus
10714
12275
extern "C"
10715
 
{
10716
12276
#endif
10717
 
/* We use char because int might match the return type of a gcc2
10718
 
   builtin and then its argument prototype would still apply.  */
10719
12277
char $ac_func ();
10720
12278
/* The GNU C library defines this for functions which it implements
10721
12279
    to always fail with ENOSYS.  Some functions are actually named
10722
12280
    something starting with __ and the normal name is an alias.  */
10723
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
12281
#if defined __stub_$ac_func || defined __stub___$ac_func
10724
12282
choke me
10725
 
#else
10726
 
char (*f) () = $ac_func;
10727
 
#endif
10728
 
#ifdef __cplusplus
10729
 
}
10730
12283
#endif
10731
12284
 
10732
12285
int
10733
12286
main ()
10734
12287
{
10735
 
return f != $ac_func;
 
12288
return $ac_func ();
10736
12289
  ;
10737
12290
  return 0;
10738
12291
}
10739
12292
_ACEOF
10740
12293
rm -f conftest.$ac_objext conftest$ac_exeext
10741
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10742
 
  (eval $ac_link) 2>conftest.er1
 
12294
if { (ac_try="$ac_link"
 
12295
case "(($ac_try" in
 
12296
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12297
  *) ac_try_echo=$ac_try;;
 
12298
esac
 
12299
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12300
  (eval "$ac_link") 2>conftest.er1
10743
12301
  ac_status=$?
10744
12302
  grep -v '^ *+' conftest.er1 >conftest.err
10745
12303
  rm -f conftest.er1
10746
12304
  cat conftest.err >&5
10747
12305
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748
 
  (exit $ac_status); } &&
10749
 
         { ac_try='test -z "$ac_c_werror_flag"
10750
 
                         || test ! -s conftest.err'
10751
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10752
 
  (eval $ac_try) 2>&5
10753
 
  ac_status=$?
10754
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755
 
  (exit $ac_status); }; } &&
10756
 
         { ac_try='test -s conftest$ac_exeext'
10757
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10758
 
  (eval $ac_try) 2>&5
10759
 
  ac_status=$?
10760
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761
 
  (exit $ac_status); }; }; then
 
12306
  (exit $ac_status); } && {
 
12307
         test -z "$ac_c_werror_flag" ||
 
12308
         test ! -s conftest.err
 
12309
       } && test -s conftest$ac_exeext &&
 
12310
       $as_test_x conftest$ac_exeext; then
10762
12311
  eval "$as_ac_var=yes"
10763
12312
else
10764
12313
  echo "$as_me: failed program was:" >&5
10765
12314
sed 's/^/| /' conftest.$ac_ext >&5
10766
12315
 
10767
 
eval "$as_ac_var=no"
 
12316
        eval "$as_ac_var=no"
10768
12317
fi
10769
 
rm -f conftest.err conftest.$ac_objext \
 
12318
 
 
12319
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10770
12320
      conftest$ac_exeext conftest.$ac_ext
10771
12321
fi
10772
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10773
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
12322
ac_res=`eval echo '${'$as_ac_var'}'`
 
12323
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
12324
echo "${ECHO_T}$ac_res" >&6; }
10774
12325
if test `eval echo '${'$as_ac_var'}'` = yes; then
10775
12326
  cat >>confdefs.h <<_ACEOF
10776
12327
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10781
12332
 
10782
12333
LIBS=$ne_cf_save_LIBS
10783
12334
   # Older Unixes don't declare h_errno.
10784
 
   echo "$as_me:$LINENO: checking whether h_errno is declared" >&5
10785
 
echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6
 
12335
   { echo "$as_me:$LINENO: checking whether h_errno is declared" >&5
 
12336
echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6; }
10786
12337
if test "${ac_cv_have_decl_h_errno+set}" = set; then
10787
12338
  echo $ECHO_N "(cached) $ECHO_C" >&6
10788
12339
else
10792
12343
cat confdefs.h >>conftest.$ac_ext
10793
12344
cat >>conftest.$ac_ext <<_ACEOF
10794
12345
/* end confdefs.h.  */
10795
 
#define _XOPEN_SOURCE_EXTENDED 1
10796
12346
#include <netdb.h>
10797
12347
 
10798
12348
int
10799
12349
main ()
10800
12350
{
10801
12351
#ifndef h_errno
10802
 
  char *p = (char *) h_errno;
 
12352
  (void) h_errno;
10803
12353
#endif
10804
12354
 
10805
12355
  ;
10807
12357
}
10808
12358
_ACEOF
10809
12359
rm -f conftest.$ac_objext
10810
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10811
 
  (eval $ac_compile) 2>conftest.er1
 
12360
if { (ac_try="$ac_compile"
 
12361
case "(($ac_try" in
 
12362
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12363
  *) ac_try_echo=$ac_try;;
 
12364
esac
 
12365
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12366
  (eval "$ac_compile") 2>conftest.er1
10812
12367
  ac_status=$?
10813
12368
  grep -v '^ *+' conftest.er1 >conftest.err
10814
12369
  rm -f conftest.er1
10815
12370
  cat conftest.err >&5
10816
12371
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817
 
  (exit $ac_status); } &&
10818
 
         { ac_try='test -z "$ac_c_werror_flag"
10819
 
                         || test ! -s conftest.err'
10820
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821
 
  (eval $ac_try) 2>&5
10822
 
  ac_status=$?
10823
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824
 
  (exit $ac_status); }; } &&
10825
 
         { ac_try='test -s conftest.$ac_objext'
10826
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10827
 
  (eval $ac_try) 2>&5
10828
 
  ac_status=$?
10829
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830
 
  (exit $ac_status); }; }; then
 
12372
  (exit $ac_status); } && {
 
12373
         test -z "$ac_c_werror_flag" ||
 
12374
         test ! -s conftest.err
 
12375
       } && test -s conftest.$ac_objext; then
10831
12376
  ac_cv_have_decl_h_errno=yes
10832
12377
else
10833
12378
  echo "$as_me: failed program was:" >&5
10834
12379
sed 's/^/| /' conftest.$ac_ext >&5
10835
12380
 
10836
 
ac_cv_have_decl_h_errno=no
10837
 
fi
10838
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10839
 
fi
10840
 
echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5
10841
 
echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6
 
12381
        ac_cv_have_decl_h_errno=no
 
12382
fi
 
12383
 
 
12384
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12385
fi
 
12386
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5
 
12387
echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6; }
10842
12388
if test $ac_cv_have_decl_h_errno = yes; then
10843
12389
 
10844
12390
cat >>confdefs.h <<_ACEOF
10855
12401
fi
10856
12402
 
10857
12403
 
10858
 
   echo "$as_me:$LINENO: checking for in_addr_t" >&5
10859
 
echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
 
12404
   { echo "$as_me:$LINENO: checking for in_addr_t" >&5
 
12405
echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6; }
10860
12406
if test "${ac_cv_type_in_addr_t+set}" = set; then
10861
12407
  echo $ECHO_N "(cached) $ECHO_C" >&6
10862
12408
else
10875
12421
#endif
10876
12422
 
10877
12423
 
 
12424
typedef in_addr_t ac__type_new_;
10878
12425
int
10879
12426
main ()
10880
12427
{
10881
 
if ((in_addr_t *) 0)
 
12428
if ((ac__type_new_ *) 0)
10882
12429
  return 0;
10883
 
if (sizeof (in_addr_t))
 
12430
if (sizeof (ac__type_new_))
10884
12431
  return 0;
10885
12432
  ;
10886
12433
  return 0;
10887
12434
}
10888
12435
_ACEOF
10889
12436
rm -f conftest.$ac_objext
10890
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10891
 
  (eval $ac_compile) 2>conftest.er1
 
12437
if { (ac_try="$ac_compile"
 
12438
case "(($ac_try" in
 
12439
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12440
  *) ac_try_echo=$ac_try;;
 
12441
esac
 
12442
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12443
  (eval "$ac_compile") 2>conftest.er1
10892
12444
  ac_status=$?
10893
12445
  grep -v '^ *+' conftest.er1 >conftest.err
10894
12446
  rm -f conftest.er1
10895
12447
  cat conftest.err >&5
10896
12448
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897
 
  (exit $ac_status); } &&
10898
 
         { ac_try='test -z "$ac_c_werror_flag"
10899
 
                         || test ! -s conftest.err'
10900
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10901
 
  (eval $ac_try) 2>&5
10902
 
  ac_status=$?
10903
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904
 
  (exit $ac_status); }; } &&
10905
 
         { ac_try='test -s conftest.$ac_objext'
10906
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10907
 
  (eval $ac_try) 2>&5
10908
 
  ac_status=$?
10909
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910
 
  (exit $ac_status); }; }; then
 
12449
  (exit $ac_status); } && {
 
12450
         test -z "$ac_c_werror_flag" ||
 
12451
         test ! -s conftest.err
 
12452
       } && test -s conftest.$ac_objext; then
10911
12453
  ac_cv_type_in_addr_t=yes
10912
12454
else
10913
12455
  echo "$as_me: failed program was:" >&5
10914
12456
sed 's/^/| /' conftest.$ac_ext >&5
10915
12457
 
10916
 
ac_cv_type_in_addr_t=no
10917
 
fi
10918
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10919
 
fi
10920
 
echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
10921
 
echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6
 
12458
        ac_cv_type_in_addr_t=no
 
12459
fi
 
12460
 
 
12461
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12462
fi
 
12463
{ echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
 
12464
echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6; }
10922
12465
if test $ac_cv_type_in_addr_t = yes; then
10923
12466
  :
10924
12467
else
10932
12475
 
10933
12476
fi
10934
12477
 
10935
 
echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
10936
 
echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
 
12478
{ echo "$as_me:$LINENO: checking for socklen_t" >&5
 
12479
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
 
12480
if test "${ac_cv_type_socklen_t+set}" = set; then
 
12481
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12482
else
 
12483
  cat >conftest.$ac_ext <<_ACEOF
 
12484
/* confdefs.h.  */
 
12485
_ACEOF
 
12486
cat confdefs.h >>conftest.$ac_ext
 
12487
cat >>conftest.$ac_ext <<_ACEOF
 
12488
/* end confdefs.h.  */
 
12489
 
 
12490
#ifdef HAVE_SYS_TYPES_H
 
12491
# include <sys/types.h>
 
12492
#endif
 
12493
#ifdef HAVE_SYS_SOCKET_H
 
12494
# include <sys/socket.h>
 
12495
#endif
 
12496
 
 
12497
 
 
12498
typedef socklen_t ac__type_new_;
 
12499
int
 
12500
main ()
 
12501
{
 
12502
if ((ac__type_new_ *) 0)
 
12503
  return 0;
 
12504
if (sizeof (ac__type_new_))
 
12505
  return 0;
 
12506
  ;
 
12507
  return 0;
 
12508
}
 
12509
_ACEOF
 
12510
rm -f conftest.$ac_objext
 
12511
if { (ac_try="$ac_compile"
 
12512
case "(($ac_try" in
 
12513
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12514
  *) ac_try_echo=$ac_try;;
 
12515
esac
 
12516
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12517
  (eval "$ac_compile") 2>conftest.er1
 
12518
  ac_status=$?
 
12519
  grep -v '^ *+' conftest.er1 >conftest.err
 
12520
  rm -f conftest.er1
 
12521
  cat conftest.err >&5
 
12522
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12523
  (exit $ac_status); } && {
 
12524
         test -z "$ac_c_werror_flag" ||
 
12525
         test ! -s conftest.err
 
12526
       } && test -s conftest.$ac_objext; then
 
12527
  ac_cv_type_socklen_t=yes
 
12528
else
 
12529
  echo "$as_me: failed program was:" >&5
 
12530
sed 's/^/| /' conftest.$ac_ext >&5
 
12531
 
 
12532
        ac_cv_type_socklen_t=no
 
12533
fi
 
12534
 
 
12535
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12536
fi
 
12537
{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
 
12538
echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
 
12539
if test $ac_cv_type_socklen_t = yes; then
 
12540
 
 
12541
cat >>confdefs.h <<_ACEOF
 
12542
#define HAVE_SOCKLEN_T 1
 
12543
_ACEOF
 
12544
 
 
12545
 
 
12546
else
 
12547
  # Linux accept(2) says this should be size_t for SunOS 5... gah.
 
12548
 
 
12549
cat >>confdefs.h <<\_ACEOF
 
12550
#define socklen_t int
 
12551
_ACEOF
 
12552
 
 
12553
fi
 
12554
 
 
12555
 
 
12556
{ echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
 
12557
echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
10937
12558
if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
10938
12559
  echo $ECHO_N "(cached) $ECHO_C" >&6
10939
12560
else
10956
12577
}
10957
12578
_ACEOF
10958
12579
rm -f conftest.$ac_objext
10959
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10960
 
  (eval $ac_compile) 2>conftest.er1
 
12580
if { (ac_try="$ac_compile"
 
12581
case "(($ac_try" in
 
12582
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12583
  *) ac_try_echo=$ac_try;;
 
12584
esac
 
12585
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12586
  (eval "$ac_compile") 2>conftest.er1
10961
12587
  ac_status=$?
10962
12588
  grep -v '^ *+' conftest.er1 >conftest.err
10963
12589
  rm -f conftest.er1
10964
12590
  cat conftest.err >&5
10965
12591
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966
 
  (exit $ac_status); } &&
10967
 
         { ac_try='test -z "$ac_c_werror_flag"
10968
 
                         || test ! -s conftest.err'
10969
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10970
 
  (eval $ac_try) 2>&5
10971
 
  ac_status=$?
10972
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973
 
  (exit $ac_status); }; } &&
10974
 
         { ac_try='test -s conftest.$ac_objext'
10975
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10976
 
  (eval $ac_try) 2>&5
10977
 
  ac_status=$?
10978
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979
 
  (exit $ac_status); }; }; then
 
12592
  (exit $ac_status); } && {
 
12593
         test -z "$ac_c_werror_flag" ||
 
12594
         test ! -s conftest.err
 
12595
       } && test -s conftest.$ac_objext; then
10980
12596
  ac_cv_member_struct_tm_tm_gmtoff=yes
10981
12597
else
10982
12598
  echo "$as_me: failed program was:" >&5
10983
12599
sed 's/^/| /' conftest.$ac_ext >&5
10984
12600
 
10985
 
cat >conftest.$ac_ext <<_ACEOF
 
12601
        cat >conftest.$ac_ext <<_ACEOF
10986
12602
/* confdefs.h.  */
10987
12603
_ACEOF
10988
12604
cat confdefs.h >>conftest.$ac_ext
11001
12617
}
11002
12618
_ACEOF
11003
12619
rm -f conftest.$ac_objext
11004
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11005
 
  (eval $ac_compile) 2>conftest.er1
 
12620
if { (ac_try="$ac_compile"
 
12621
case "(($ac_try" in
 
12622
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12623
  *) ac_try_echo=$ac_try;;
 
12624
esac
 
12625
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12626
  (eval "$ac_compile") 2>conftest.er1
11006
12627
  ac_status=$?
11007
12628
  grep -v '^ *+' conftest.er1 >conftest.err
11008
12629
  rm -f conftest.er1
11009
12630
  cat conftest.err >&5
11010
12631
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011
 
  (exit $ac_status); } &&
11012
 
         { ac_try='test -z "$ac_c_werror_flag"
11013
 
                         || test ! -s conftest.err'
11014
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11015
 
  (eval $ac_try) 2>&5
11016
 
  ac_status=$?
11017
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018
 
  (exit $ac_status); }; } &&
11019
 
         { ac_try='test -s conftest.$ac_objext'
11020
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11021
 
  (eval $ac_try) 2>&5
11022
 
  ac_status=$?
11023
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024
 
  (exit $ac_status); }; }; then
 
12632
  (exit $ac_status); } && {
 
12633
         test -z "$ac_c_werror_flag" ||
 
12634
         test ! -s conftest.err
 
12635
       } && test -s conftest.$ac_objext; then
11025
12636
  ac_cv_member_struct_tm_tm_gmtoff=yes
11026
12637
else
11027
12638
  echo "$as_me: failed program was:" >&5
11028
12639
sed 's/^/| /' conftest.$ac_ext >&5
11029
12640
 
11030
 
ac_cv_member_struct_tm_tm_gmtoff=no
11031
 
fi
11032
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11033
 
fi
11034
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11035
 
fi
11036
 
echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
11037
 
echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
 
12641
        ac_cv_member_struct_tm_tm_gmtoff=no
 
12642
fi
 
12643
 
 
12644
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12645
fi
 
12646
 
 
12647
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12648
fi
 
12649
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
 
12650
echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
11038
12651
if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
11039
12652
 
11040
12653
cat >>confdefs.h <<_ACEOF
11043
12656
 
11044
12657
 
11045
12658
fi
11046
 
echo "$as_me:$LINENO: checking for struct tm.__tm_gmtoff" >&5
11047
 
echo $ECHO_N "checking for struct tm.__tm_gmtoff... $ECHO_C" >&6
 
12659
{ echo "$as_me:$LINENO: checking for struct tm.__tm_gmtoff" >&5
 
12660
echo $ECHO_N "checking for struct tm.__tm_gmtoff... $ECHO_C" >&6; }
11048
12661
if test "${ac_cv_member_struct_tm___tm_gmtoff+set}" = set; then
11049
12662
  echo $ECHO_N "(cached) $ECHO_C" >&6
11050
12663
else
11067
12680
}
11068
12681
_ACEOF
11069
12682
rm -f conftest.$ac_objext
11070
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11071
 
  (eval $ac_compile) 2>conftest.er1
 
12683
if { (ac_try="$ac_compile"
 
12684
case "(($ac_try" in
 
12685
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12686
  *) ac_try_echo=$ac_try;;
 
12687
esac
 
12688
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12689
  (eval "$ac_compile") 2>conftest.er1
11072
12690
  ac_status=$?
11073
12691
  grep -v '^ *+' conftest.er1 >conftest.err
11074
12692
  rm -f conftest.er1
11075
12693
  cat conftest.err >&5
11076
12694
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077
 
  (exit $ac_status); } &&
11078
 
         { ac_try='test -z "$ac_c_werror_flag"
11079
 
                         || test ! -s conftest.err'
11080
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11081
 
  (eval $ac_try) 2>&5
11082
 
  ac_status=$?
11083
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084
 
  (exit $ac_status); }; } &&
11085
 
         { ac_try='test -s conftest.$ac_objext'
11086
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11087
 
  (eval $ac_try) 2>&5
11088
 
  ac_status=$?
11089
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090
 
  (exit $ac_status); }; }; then
 
12695
  (exit $ac_status); } && {
 
12696
         test -z "$ac_c_werror_flag" ||
 
12697
         test ! -s conftest.err
 
12698
       } && test -s conftest.$ac_objext; then
11091
12699
  ac_cv_member_struct_tm___tm_gmtoff=yes
11092
12700
else
11093
12701
  echo "$as_me: failed program was:" >&5
11094
12702
sed 's/^/| /' conftest.$ac_ext >&5
11095
12703
 
11096
 
cat >conftest.$ac_ext <<_ACEOF
 
12704
        cat >conftest.$ac_ext <<_ACEOF
11097
12705
/* confdefs.h.  */
11098
12706
_ACEOF
11099
12707
cat confdefs.h >>conftest.$ac_ext
11112
12720
}
11113
12721
_ACEOF
11114
12722
rm -f conftest.$ac_objext
11115
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11116
 
  (eval $ac_compile) 2>conftest.er1
 
12723
if { (ac_try="$ac_compile"
 
12724
case "(($ac_try" in
 
12725
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12726
  *) ac_try_echo=$ac_try;;
 
12727
esac
 
12728
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12729
  (eval "$ac_compile") 2>conftest.er1
11117
12730
  ac_status=$?
11118
12731
  grep -v '^ *+' conftest.er1 >conftest.err
11119
12732
  rm -f conftest.er1
11120
12733
  cat conftest.err >&5
11121
12734
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122
 
  (exit $ac_status); } &&
11123
 
         { ac_try='test -z "$ac_c_werror_flag"
11124
 
                         || test ! -s conftest.err'
11125
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11126
 
  (eval $ac_try) 2>&5
11127
 
  ac_status=$?
11128
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129
 
  (exit $ac_status); }; } &&
11130
 
         { ac_try='test -s conftest.$ac_objext'
11131
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11132
 
  (eval $ac_try) 2>&5
11133
 
  ac_status=$?
11134
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135
 
  (exit $ac_status); }; }; then
 
12735
  (exit $ac_status); } && {
 
12736
         test -z "$ac_c_werror_flag" ||
 
12737
         test ! -s conftest.err
 
12738
       } && test -s conftest.$ac_objext; then
11136
12739
  ac_cv_member_struct_tm___tm_gmtoff=yes
11137
12740
else
11138
12741
  echo "$as_me: failed program was:" >&5
11139
12742
sed 's/^/| /' conftest.$ac_ext >&5
11140
12743
 
11141
 
ac_cv_member_struct_tm___tm_gmtoff=no
11142
 
fi
11143
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11144
 
fi
11145
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11146
 
fi
11147
 
echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm___tm_gmtoff" >&5
11148
 
echo "${ECHO_T}$ac_cv_member_struct_tm___tm_gmtoff" >&6
 
12744
        ac_cv_member_struct_tm___tm_gmtoff=no
 
12745
fi
 
12746
 
 
12747
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12748
fi
 
12749
 
 
12750
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12751
fi
 
12752
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm___tm_gmtoff" >&5
 
12753
echo "${ECHO_T}$ac_cv_member_struct_tm___tm_gmtoff" >&6; }
11149
12754
if test $ac_cv_member_struct_tm___tm_gmtoff = yes; then
11150
12755
 
11151
12756
cat >>confdefs.h <<_ACEOF
11156
12761
fi
11157
12762
 
11158
12763
 
11159
 
if test $ac_cv_member_struct_tm_tm_gmtoff$ac_cv_member_struct_tm___tm_gmtoff = nono; then
 
12764
if test ${ac_cv_member_struct_tm_tm_gmtoff}${ac_cv_member_struct_tm___tm_gmtoff}${ne_cv_cc_timezone} = nonono; then
11160
12765
  { echo "$as_me:$LINENO: WARNING: no timezone handling in date parsing on this platform" >&5
11161
12766
echo "$as_me: WARNING: no timezone handling in date parsing on this platform" >&2;}
11162
12767
fi
11170
12775
 
11171
12776
 
11172
12777
# Conditionally enable ACL support
11173
 
echo "$as_me:$LINENO: checking whether to enable ACL support in neon" >&5
11174
 
echo $ECHO_N "checking whether to enable ACL support in neon... $ECHO_C" >&6
 
12778
{ echo "$as_me:$LINENO: checking whether to enable ACL support in neon" >&5
 
12779
echo $ECHO_N "checking whether to enable ACL support in neon... $ECHO_C" >&6; }
11175
12780
if test "x$neon_no_acl" = "xyes"; then
11176
 
    echo "$as_me:$LINENO: result: no" >&5
11177
 
echo "${ECHO_T}no" >&6
 
12781
    { echo "$as_me:$LINENO: result: no" >&5
 
12782
echo "${ECHO_T}no" >&6; }
11178
12783
else
11179
 
    echo "$as_me:$LINENO: result: yes" >&5
11180
 
echo "${ECHO_T}yes" >&6
 
12784
    { echo "$as_me:$LINENO: result: yes" >&5
 
12785
echo "${ECHO_T}yes" >&6; }
11181
12786
    NEON_EXTRAOBJS="$NEON_EXTRAOBJS ne_acl"
11182
12787
fi
11183
12788
 
11184
12789
 
11185
12790
 
11186
12791
 
11187
 
# Check whether --with-ssl or --without-ssl was given.
 
12792
# Check whether --with-ssl was given.
11188
12793
if test "${with_ssl+set}" = set; then
11189
 
  withval="$with_ssl"
11190
 
 
11191
 
fi;
11192
 
 
11193
 
 
11194
 
# Check whether --with-egd or --without-egd was given.
 
12794
  withval=$with_ssl;
 
12795
fi
 
12796
 
 
12797
 
 
12798
 
 
12799
# Check whether --with-egd was given.
11195
12800
if test "${with_egd+set}" = set; then
11196
 
  withval="$with_egd"
11197
 
 
11198
 
fi;
 
12801
  withval=$with_egd;
 
12802
fi
 
12803
 
 
12804
 
 
12805
 
 
12806
# Check whether --with-pakchois was given.
 
12807
if test "${with_pakchois+set}" = set; then
 
12808
  withval=$with_pakchois;
 
12809
fi
 
12810
 
11199
12811
 
11200
12812
case $with_ssl in
11201
12813
/*)
11210
12822
 
11211
12823
# Extract the first word of "pkg-config", so it can be a program name with args.
11212
12824
set dummy pkg-config; ac_word=$2
11213
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
11214
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
12825
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
12826
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11215
12827
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11216
12828
  echo $ECHO_N "(cached) $ECHO_C" >&6
11217
12829
else
11226
12838
  IFS=$as_save_IFS
11227
12839
  test -z "$as_dir" && as_dir=.
11228
12840
  for ac_exec_ext in '' $ac_executable_extensions; do
11229
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12841
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11230
12842
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11231
12843
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11232
12844
    break 2
11233
12845
  fi
11234
12846
done
11235
12847
done
 
12848
IFS=$as_save_IFS
11236
12849
 
11237
12850
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11238
12851
  ;;
11239
12852
esac
11240
12853
fi
11241
12854
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11242
 
 
11243
12855
if test -n "$PKG_CONFIG"; then
11244
 
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11245
 
echo "${ECHO_T}$PKG_CONFIG" >&6
 
12856
  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
12857
echo "${ECHO_T}$PKG_CONFIG" >&6; }
11246
12858
else
11247
 
  echo "$as_me:$LINENO: result: no" >&5
11248
 
echo "${ECHO_T}no" >&6
 
12859
  { echo "$as_me:$LINENO: result: no" >&5
 
12860
echo "${ECHO_T}no" >&6; }
11249
12861
fi
11250
12862
 
 
12863
 
11251
12864
if test "$PKG_CONFIG" = "no"; then
11252
12865
   : Not using pkg-config
11253
12866
   # Either OpenSSL library may require -ldl if built with dynamic engine support
11254
12867
 
11255
12868
 
11256
 
echo "$as_me:$LINENO: checking for library containing RSA_new" >&5
11257
 
echo $ECHO_N "checking for library containing RSA_new... $ECHO_C" >&6
 
12869
 
 
12870
 
 
12871
{ echo "$as_me:$LINENO: checking for library containing RSA_new" >&5
 
12872
echo $ECHO_N "checking for library containing RSA_new... $ECHO_C" >&6; }
11258
12873
if test "${ne_cv_libsfor_RSA_new+set}" = set; then
11259
12874
  echo $ECHO_N "(cached) $ECHO_C" >&6
11260
12875
else
11275
12890
}
11276
12891
_ACEOF
11277
12892
rm -f conftest.$ac_objext conftest$ac_exeext
11278
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11279
 
  (eval $ac_link) 2>conftest.er1
 
12893
if { (ac_try="$ac_link"
 
12894
case "(($ac_try" in
 
12895
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12896
  *) ac_try_echo=$ac_try;;
 
12897
esac
 
12898
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12899
  (eval "$ac_link") 2>conftest.er1
11280
12900
  ac_status=$?
11281
12901
  grep -v '^ *+' conftest.er1 >conftest.err
11282
12902
  rm -f conftest.er1
11283
12903
  cat conftest.err >&5
11284
12904
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285
 
  (exit $ac_status); } &&
11286
 
         { ac_try='test -z "$ac_c_werror_flag"
11287
 
                         || test ! -s conftest.err'
11288
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11289
 
  (eval $ac_try) 2>&5
11290
 
  ac_status=$?
11291
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292
 
  (exit $ac_status); }; } &&
11293
 
         { ac_try='test -s conftest$ac_exeext'
11294
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11295
 
  (eval $ac_try) 2>&5
11296
 
  ac_status=$?
11297
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298
 
  (exit $ac_status); }; }; then
 
12905
  (exit $ac_status); } && {
 
12906
         test -z "$ac_c_werror_flag" ||
 
12907
         test ! -s conftest.err
 
12908
       } && test -s conftest$ac_exeext &&
 
12909
       $as_test_x conftest$ac_exeext; then
11299
12910
  ne_cv_libsfor_RSA_new="none needed"
11300
12911
else
11301
12912
  echo "$as_me: failed program was:" >&5
11305
12916
ne_sl_save_LIBS=$LIBS
11306
12917
ne_cv_libsfor_RSA_new="not found"
11307
12918
for lib in crypto; do
 
12919
    # The w32api libraries link using the stdcall calling convention.
 
12920
    case ${lib}-${ne_cv_os_uname} in
 
12921
    ws2_32-MINGW*) ne__code="__stdcall RSA_new();" ;;
 
12922
    *) ne__code="RSA_new();" ;;
 
12923
    esac
 
12924
 
11308
12925
    LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
11309
12926
    cat >conftest.$ac_ext <<_ACEOF
11310
12927
/* confdefs.h.  */
11316
12933
int
11317
12934
main ()
11318
12935
{
11319
 
RSA_new();
 
12936
$ne__code
11320
12937
  ;
11321
12938
  return 0;
11322
12939
}
11323
12940
_ACEOF
11324
12941
rm -f conftest.$ac_objext conftest$ac_exeext
11325
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11326
 
  (eval $ac_link) 2>conftest.er1
 
12942
if { (ac_try="$ac_link"
 
12943
case "(($ac_try" in
 
12944
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12945
  *) ac_try_echo=$ac_try;;
 
12946
esac
 
12947
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12948
  (eval "$ac_link") 2>conftest.er1
11327
12949
  ac_status=$?
11328
12950
  grep -v '^ *+' conftest.er1 >conftest.err
11329
12951
  rm -f conftest.er1
11330
12952
  cat conftest.err >&5
11331
12953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332
 
  (exit $ac_status); } &&
11333
 
         { ac_try='test -z "$ac_c_werror_flag"
11334
 
                         || test ! -s conftest.err'
11335
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11336
 
  (eval $ac_try) 2>&5
11337
 
  ac_status=$?
11338
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339
 
  (exit $ac_status); }; } &&
11340
 
         { ac_try='test -s conftest$ac_exeext'
11341
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11342
 
  (eval $ac_try) 2>&5
11343
 
  ac_status=$?
11344
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345
 
  (exit $ac_status); }; }; then
 
12954
  (exit $ac_status); } && {
 
12955
         test -z "$ac_c_werror_flag" ||
 
12956
         test ! -s conftest.err
 
12957
       } && test -s conftest$ac_exeext &&
 
12958
       $as_test_x conftest$ac_exeext; then
11346
12959
  ne_cv_libsfor_RSA_new="-l$lib"; break
11347
12960
else
11348
12961
  echo "$as_me: failed program was:" >&5
11349
12962
sed 's/^/| /' conftest.$ac_ext >&5
11350
12963
 
 
12964
 
11351
12965
fi
11352
 
rm -f conftest.err conftest.$ac_objext \
 
12966
 
 
12967
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11353
12968
      conftest$ac_exeext conftest.$ac_ext
11354
12969
                  LIBS="$ne_sl_save_LIBS -l$lib -ldl $NEON_LIBS"
11355
12970
               cat >conftest.$ac_ext <<_ACEOF
11362
12977
int
11363
12978
main ()
11364
12979
{
11365
 
RSA_new();
 
12980
$ne__code
11366
12981
  ;
11367
12982
  return 0;
11368
12983
}
11369
12984
_ACEOF
11370
12985
rm -f conftest.$ac_objext conftest$ac_exeext
11371
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11372
 
  (eval $ac_link) 2>conftest.er1
 
12986
if { (ac_try="$ac_link"
 
12987
case "(($ac_try" in
 
12988
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12989
  *) ac_try_echo=$ac_try;;
 
12990
esac
 
12991
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12992
  (eval "$ac_link") 2>conftest.er1
11373
12993
  ac_status=$?
11374
12994
  grep -v '^ *+' conftest.er1 >conftest.err
11375
12995
  rm -f conftest.er1
11376
12996
  cat conftest.err >&5
11377
12997
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378
 
  (exit $ac_status); } &&
11379
 
         { ac_try='test -z "$ac_c_werror_flag"
11380
 
                         || test ! -s conftest.err'
11381
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11382
 
  (eval $ac_try) 2>&5
11383
 
  ac_status=$?
11384
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385
 
  (exit $ac_status); }; } &&
11386
 
         { ac_try='test -s conftest$ac_exeext'
11387
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11388
 
  (eval $ac_try) 2>&5
11389
 
  ac_status=$?
11390
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391
 
  (exit $ac_status); }; }; then
 
12998
  (exit $ac_status); } && {
 
12999
         test -z "$ac_c_werror_flag" ||
 
13000
         test ! -s conftest.err
 
13001
       } && test -s conftest$ac_exeext &&
 
13002
       $as_test_x conftest$ac_exeext; then
11392
13003
  ne_cv_libsfor_RSA_new="-l$lib -ldl"; break
11393
13004
else
11394
13005
  echo "$as_me: failed program was:" >&5
11395
13006
sed 's/^/| /' conftest.$ac_ext >&5
11396
13007
 
 
13008
 
11397
13009
fi
11398
 
rm -f conftest.err conftest.$ac_objext \
 
13010
 
 
13011
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11399
13012
      conftest$ac_exeext conftest.$ac_ext
11400
13013
done
11401
13014
LIBS=$ne_sl_save_LIBS
11402
13015
fi
11403
 
rm -f conftest.err conftest.$ac_objext \
 
13016
 
 
13017
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11404
13018
      conftest$ac_exeext conftest.$ac_ext
11405
13019
fi
11406
 
echo "$as_me:$LINENO: result: $ne_cv_libsfor_RSA_new" >&5
11407
 
echo "${ECHO_T}$ne_cv_libsfor_RSA_new" >&6
 
13020
{ echo "$as_me:$LINENO: result: $ne_cv_libsfor_RSA_new" >&5
 
13021
echo "${ECHO_T}$ne_cv_libsfor_RSA_new" >&6; }
11408
13022
 
11409
13023
if test "$ne_cv_libsfor_RSA_new" = "not found"; then
11410
13024
   { { echo "$as_me:$LINENO: error: could not find library containing RSA_new" >&5
11418
13032
fi
11419
13033
 
11420
13034
 
11421
 
echo "$as_me:$LINENO: checking for library containing SSL_library_init" >&5
11422
 
echo $ECHO_N "checking for library containing SSL_library_init... $ECHO_C" >&6
 
13035
 
 
13036
 
 
13037
{ echo "$as_me:$LINENO: checking for library containing SSL_library_init" >&5
 
13038
echo $ECHO_N "checking for library containing SSL_library_init... $ECHO_C" >&6; }
11423
13039
if test "${ne_cv_libsfor_SSL_library_init+set}" = set; then
11424
13040
  echo $ECHO_N "(cached) $ECHO_C" >&6
11425
13041
else
11440
13056
}
11441
13057
_ACEOF
11442
13058
rm -f conftest.$ac_objext conftest$ac_exeext
11443
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11444
 
  (eval $ac_link) 2>conftest.er1
 
13059
if { (ac_try="$ac_link"
 
13060
case "(($ac_try" in
 
13061
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13062
  *) ac_try_echo=$ac_try;;
 
13063
esac
 
13064
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13065
  (eval "$ac_link") 2>conftest.er1
11445
13066
  ac_status=$?
11446
13067
  grep -v '^ *+' conftest.er1 >conftest.err
11447
13068
  rm -f conftest.er1
11448
13069
  cat conftest.err >&5
11449
13070
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450
 
  (exit $ac_status); } &&
11451
 
         { ac_try='test -z "$ac_c_werror_flag"
11452
 
                         || test ! -s conftest.err'
11453
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11454
 
  (eval $ac_try) 2>&5
11455
 
  ac_status=$?
11456
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457
 
  (exit $ac_status); }; } &&
11458
 
         { ac_try='test -s conftest$ac_exeext'
11459
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11460
 
  (eval $ac_try) 2>&5
11461
 
  ac_status=$?
11462
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463
 
  (exit $ac_status); }; }; then
 
13071
  (exit $ac_status); } && {
 
13072
         test -z "$ac_c_werror_flag" ||
 
13073
         test ! -s conftest.err
 
13074
       } && test -s conftest$ac_exeext &&
 
13075
       $as_test_x conftest$ac_exeext; then
11464
13076
  ne_cv_libsfor_SSL_library_init="none needed"
11465
13077
else
11466
13078
  echo "$as_me: failed program was:" >&5
11470
13082
ne_sl_save_LIBS=$LIBS
11471
13083
ne_cv_libsfor_SSL_library_init="not found"
11472
13084
for lib in ssl; do
 
13085
    # The w32api libraries link using the stdcall calling convention.
 
13086
    case ${lib}-${ne_cv_os_uname} in
 
13087
    ws2_32-MINGW*) ne__code="__stdcall SSL_library_init();" ;;
 
13088
    *) ne__code="SSL_library_init();" ;;
 
13089
    esac
 
13090
 
11473
13091
    LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
11474
13092
    cat >conftest.$ac_ext <<_ACEOF
11475
13093
/* confdefs.h.  */
11481
13099
int
11482
13100
main ()
11483
13101
{
11484
 
SSL_library_init();
 
13102
$ne__code
11485
13103
  ;
11486
13104
  return 0;
11487
13105
}
11488
13106
_ACEOF
11489
13107
rm -f conftest.$ac_objext conftest$ac_exeext
11490
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11491
 
  (eval $ac_link) 2>conftest.er1
 
13108
if { (ac_try="$ac_link"
 
13109
case "(($ac_try" in
 
13110
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13111
  *) ac_try_echo=$ac_try;;
 
13112
esac
 
13113
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13114
  (eval "$ac_link") 2>conftest.er1
11492
13115
  ac_status=$?
11493
13116
  grep -v '^ *+' conftest.er1 >conftest.err
11494
13117
  rm -f conftest.er1
11495
13118
  cat conftest.err >&5
11496
13119
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497
 
  (exit $ac_status); } &&
11498
 
         { ac_try='test -z "$ac_c_werror_flag"
11499
 
                         || test ! -s conftest.err'
11500
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11501
 
  (eval $ac_try) 2>&5
11502
 
  ac_status=$?
11503
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504
 
  (exit $ac_status); }; } &&
11505
 
         { ac_try='test -s conftest$ac_exeext'
11506
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11507
 
  (eval $ac_try) 2>&5
11508
 
  ac_status=$?
11509
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510
 
  (exit $ac_status); }; }; then
 
13120
  (exit $ac_status); } && {
 
13121
         test -z "$ac_c_werror_flag" ||
 
13122
         test ! -s conftest.err
 
13123
       } && test -s conftest$ac_exeext &&
 
13124
       $as_test_x conftest$ac_exeext; then
11511
13125
  ne_cv_libsfor_SSL_library_init="-l$lib"; break
11512
13126
else
11513
13127
  echo "$as_me: failed program was:" >&5
11514
13128
sed 's/^/| /' conftest.$ac_ext >&5
11515
13129
 
 
13130
 
11516
13131
fi
11517
 
rm -f conftest.err conftest.$ac_objext \
 
13132
 
 
13133
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11518
13134
      conftest$ac_exeext conftest.$ac_ext
11519
13135
                  LIBS="$ne_sl_save_LIBS -l$lib -ldl $NEON_LIBS"
11520
13136
               cat >conftest.$ac_ext <<_ACEOF
11527
13143
int
11528
13144
main ()
11529
13145
{
11530
 
SSL_library_init();
 
13146
$ne__code
11531
13147
  ;
11532
13148
  return 0;
11533
13149
}
11534
13150
_ACEOF
11535
13151
rm -f conftest.$ac_objext conftest$ac_exeext
11536
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11537
 
  (eval $ac_link) 2>conftest.er1
 
13152
if { (ac_try="$ac_link"
 
13153
case "(($ac_try" in
 
13154
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13155
  *) ac_try_echo=$ac_try;;
 
13156
esac
 
13157
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13158
  (eval "$ac_link") 2>conftest.er1
11538
13159
  ac_status=$?
11539
13160
  grep -v '^ *+' conftest.er1 >conftest.err
11540
13161
  rm -f conftest.er1
11541
13162
  cat conftest.err >&5
11542
13163
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543
 
  (exit $ac_status); } &&
11544
 
         { ac_try='test -z "$ac_c_werror_flag"
11545
 
                         || test ! -s conftest.err'
11546
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11547
 
  (eval $ac_try) 2>&5
11548
 
  ac_status=$?
11549
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550
 
  (exit $ac_status); }; } &&
11551
 
         { ac_try='test -s conftest$ac_exeext'
11552
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11553
 
  (eval $ac_try) 2>&5
11554
 
  ac_status=$?
11555
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556
 
  (exit $ac_status); }; }; then
 
13164
  (exit $ac_status); } && {
 
13165
         test -z "$ac_c_werror_flag" ||
 
13166
         test ! -s conftest.err
 
13167
       } && test -s conftest$ac_exeext &&
 
13168
       $as_test_x conftest$ac_exeext; then
11557
13169
  ne_cv_libsfor_SSL_library_init="-l$lib -ldl"; break
11558
13170
else
11559
13171
  echo "$as_me: failed program was:" >&5
11560
13172
sed 's/^/| /' conftest.$ac_ext >&5
11561
13173
 
 
13174
 
11562
13175
fi
11563
 
rm -f conftest.err conftest.$ac_objext \
 
13176
 
 
13177
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11564
13178
      conftest$ac_exeext conftest.$ac_ext
11565
13179
done
11566
13180
LIBS=$ne_sl_save_LIBS
11567
13181
fi
11568
 
rm -f conftest.err conftest.$ac_objext \
 
13182
 
 
13183
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11569
13184
      conftest$ac_exeext conftest.$ac_ext
11570
13185
fi
11571
 
echo "$as_me:$LINENO: result: $ne_cv_libsfor_SSL_library_init" >&5
11572
 
echo "${ECHO_T}$ne_cv_libsfor_SSL_library_init" >&6
 
13186
{ echo "$as_me:$LINENO: result: $ne_cv_libsfor_SSL_library_init" >&5
 
13187
echo "${ECHO_T}$ne_cv_libsfor_SSL_library_init" >&6; }
11573
13188
 
11574
13189
if test "$ne_cv_libsfor_SSL_library_init" = "not found"; then
11575
13190
   { { echo "$as_me:$LINENO: error: could not find library containing SSL_library_init" >&5
11582
13197
 
11583
13198
fi
11584
13199
else
11585
 
   echo "$as_me:$LINENO: checking for openssl pkg-config data" >&5
11586
 
echo $ECHO_N "checking for openssl pkg-config data... $ECHO_C" >&6
 
13200
   { echo "$as_me:$LINENO: checking for openssl pkg-config data" >&5
 
13201
echo $ECHO_N "checking for openssl pkg-config data... $ECHO_C" >&6; }
11587
13202
if test "${ne_cv_pkg_openssl+set}" = set; then
11588
13203
  echo $ECHO_N "(cached) $ECHO_C" >&6
11589
13204
else
11593
13208
        ne_cv_pkg_openssl=no
11594
13209
      fi
11595
13210
fi
11596
 
echo "$as_me:$LINENO: result: $ne_cv_pkg_openssl" >&5
11597
 
echo "${ECHO_T}$ne_cv_pkg_openssl" >&6
 
13211
{ echo "$as_me:$LINENO: result: $ne_cv_pkg_openssl" >&5
 
13212
echo "${ECHO_T}$ne_cv_pkg_openssl" >&6; }
11598
13213
 
11599
13214
   if test "$ne_cv_pkg_openssl" = "yes"; then
11600
13215
      NE_SSL_CFLAGS=`$PKG_CONFIG --cflags openssl`
11609
13224
      # Either OpenSSL library may require -ldl if built with dynamic engine support
11610
13225
 
11611
13226
 
11612
 
echo "$as_me:$LINENO: checking for library containing RSA_new" >&5
11613
 
echo $ECHO_N "checking for library containing RSA_new... $ECHO_C" >&6
 
13227
 
 
13228
 
 
13229
{ echo "$as_me:$LINENO: checking for library containing RSA_new" >&5
 
13230
echo $ECHO_N "checking for library containing RSA_new... $ECHO_C" >&6; }
11614
13231
if test "${ne_cv_libsfor_RSA_new+set}" = set; then
11615
13232
  echo $ECHO_N "(cached) $ECHO_C" >&6
11616
13233
else
11631
13248
}
11632
13249
_ACEOF
11633
13250
rm -f conftest.$ac_objext conftest$ac_exeext
11634
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11635
 
  (eval $ac_link) 2>conftest.er1
 
13251
if { (ac_try="$ac_link"
 
13252
case "(($ac_try" in
 
13253
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13254
  *) ac_try_echo=$ac_try;;
 
13255
esac
 
13256
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13257
  (eval "$ac_link") 2>conftest.er1
11636
13258
  ac_status=$?
11637
13259
  grep -v '^ *+' conftest.er1 >conftest.err
11638
13260
  rm -f conftest.er1
11639
13261
  cat conftest.err >&5
11640
13262
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641
 
  (exit $ac_status); } &&
11642
 
         { ac_try='test -z "$ac_c_werror_flag"
11643
 
                         || test ! -s conftest.err'
11644
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11645
 
  (eval $ac_try) 2>&5
11646
 
  ac_status=$?
11647
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648
 
  (exit $ac_status); }; } &&
11649
 
         { ac_try='test -s conftest$ac_exeext'
11650
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11651
 
  (eval $ac_try) 2>&5
11652
 
  ac_status=$?
11653
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654
 
  (exit $ac_status); }; }; then
 
13263
  (exit $ac_status); } && {
 
13264
         test -z "$ac_c_werror_flag" ||
 
13265
         test ! -s conftest.err
 
13266
       } && test -s conftest$ac_exeext &&
 
13267
       $as_test_x conftest$ac_exeext; then
11655
13268
  ne_cv_libsfor_RSA_new="none needed"
11656
13269
else
11657
13270
  echo "$as_me: failed program was:" >&5
11661
13274
ne_sl_save_LIBS=$LIBS
11662
13275
ne_cv_libsfor_RSA_new="not found"
11663
13276
for lib in crypto; do
 
13277
    # The w32api libraries link using the stdcall calling convention.
 
13278
    case ${lib}-${ne_cv_os_uname} in
 
13279
    ws2_32-MINGW*) ne__code="__stdcall RSA_new();" ;;
 
13280
    *) ne__code="RSA_new();" ;;
 
13281
    esac
 
13282
 
11664
13283
    LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
11665
13284
    cat >conftest.$ac_ext <<_ACEOF
11666
13285
/* confdefs.h.  */
11672
13291
int
11673
13292
main ()
11674
13293
{
11675
 
RSA_new();
 
13294
$ne__code
11676
13295
  ;
11677
13296
  return 0;
11678
13297
}
11679
13298
_ACEOF
11680
13299
rm -f conftest.$ac_objext conftest$ac_exeext
11681
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11682
 
  (eval $ac_link) 2>conftest.er1
 
13300
if { (ac_try="$ac_link"
 
13301
case "(($ac_try" in
 
13302
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13303
  *) ac_try_echo=$ac_try;;
 
13304
esac
 
13305
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13306
  (eval "$ac_link") 2>conftest.er1
11683
13307
  ac_status=$?
11684
13308
  grep -v '^ *+' conftest.er1 >conftest.err
11685
13309
  rm -f conftest.er1
11686
13310
  cat conftest.err >&5
11687
13311
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688
 
  (exit $ac_status); } &&
11689
 
         { ac_try='test -z "$ac_c_werror_flag"
11690
 
                         || test ! -s conftest.err'
11691
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11692
 
  (eval $ac_try) 2>&5
11693
 
  ac_status=$?
11694
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695
 
  (exit $ac_status); }; } &&
11696
 
         { ac_try='test -s conftest$ac_exeext'
11697
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11698
 
  (eval $ac_try) 2>&5
11699
 
  ac_status=$?
11700
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701
 
  (exit $ac_status); }; }; then
 
13312
  (exit $ac_status); } && {
 
13313
         test -z "$ac_c_werror_flag" ||
 
13314
         test ! -s conftest.err
 
13315
       } && test -s conftest$ac_exeext &&
 
13316
       $as_test_x conftest$ac_exeext; then
11702
13317
  ne_cv_libsfor_RSA_new="-l$lib"; break
11703
13318
else
11704
13319
  echo "$as_me: failed program was:" >&5
11705
13320
sed 's/^/| /' conftest.$ac_ext >&5
11706
13321
 
 
13322
 
11707
13323
fi
11708
 
rm -f conftest.err conftest.$ac_objext \
 
13324
 
 
13325
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11709
13326
      conftest$ac_exeext conftest.$ac_ext
11710
13327
                  LIBS="$ne_sl_save_LIBS -l$lib -ldl $NEON_LIBS"
11711
13328
               cat >conftest.$ac_ext <<_ACEOF
11718
13335
int
11719
13336
main ()
11720
13337
{
11721
 
RSA_new();
 
13338
$ne__code
11722
13339
  ;
11723
13340
  return 0;
11724
13341
}
11725
13342
_ACEOF
11726
13343
rm -f conftest.$ac_objext conftest$ac_exeext
11727
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11728
 
  (eval $ac_link) 2>conftest.er1
 
13344
if { (ac_try="$ac_link"
 
13345
case "(($ac_try" in
 
13346
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13347
  *) ac_try_echo=$ac_try;;
 
13348
esac
 
13349
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13350
  (eval "$ac_link") 2>conftest.er1
11729
13351
  ac_status=$?
11730
13352
  grep -v '^ *+' conftest.er1 >conftest.err
11731
13353
  rm -f conftest.er1
11732
13354
  cat conftest.err >&5
11733
13355
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734
 
  (exit $ac_status); } &&
11735
 
         { ac_try='test -z "$ac_c_werror_flag"
11736
 
                         || test ! -s conftest.err'
11737
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11738
 
  (eval $ac_try) 2>&5
11739
 
  ac_status=$?
11740
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741
 
  (exit $ac_status); }; } &&
11742
 
         { ac_try='test -s conftest$ac_exeext'
11743
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11744
 
  (eval $ac_try) 2>&5
11745
 
  ac_status=$?
11746
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747
 
  (exit $ac_status); }; }; then
 
13356
  (exit $ac_status); } && {
 
13357
         test -z "$ac_c_werror_flag" ||
 
13358
         test ! -s conftest.err
 
13359
       } && test -s conftest$ac_exeext &&
 
13360
       $as_test_x conftest$ac_exeext; then
11748
13361
  ne_cv_libsfor_RSA_new="-l$lib -ldl"; break
11749
13362
else
11750
13363
  echo "$as_me: failed program was:" >&5
11751
13364
sed 's/^/| /' conftest.$ac_ext >&5
11752
13365
 
 
13366
 
11753
13367
fi
11754
 
rm -f conftest.err conftest.$ac_objext \
 
13368
 
 
13369
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11755
13370
      conftest$ac_exeext conftest.$ac_ext
11756
13371
done
11757
13372
LIBS=$ne_sl_save_LIBS
11758
13373
fi
11759
 
rm -f conftest.err conftest.$ac_objext \
 
13374
 
 
13375
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11760
13376
      conftest$ac_exeext conftest.$ac_ext
11761
13377
fi
11762
 
echo "$as_me:$LINENO: result: $ne_cv_libsfor_RSA_new" >&5
11763
 
echo "${ECHO_T}$ne_cv_libsfor_RSA_new" >&6
 
13378
{ echo "$as_me:$LINENO: result: $ne_cv_libsfor_RSA_new" >&5
 
13379
echo "${ECHO_T}$ne_cv_libsfor_RSA_new" >&6; }
11764
13380
 
11765
13381
if test "$ne_cv_libsfor_RSA_new" = "not found"; then
11766
13382
   { { echo "$as_me:$LINENO: error: could not find library containing RSA_new" >&5
11774
13390
fi
11775
13391
 
11776
13392
 
11777
 
echo "$as_me:$LINENO: checking for library containing SSL_library_init" >&5
11778
 
echo $ECHO_N "checking for library containing SSL_library_init... $ECHO_C" >&6
 
13393
 
 
13394
 
 
13395
{ echo "$as_me:$LINENO: checking for library containing SSL_library_init" >&5
 
13396
echo $ECHO_N "checking for library containing SSL_library_init... $ECHO_C" >&6; }
11779
13397
if test "${ne_cv_libsfor_SSL_library_init+set}" = set; then
11780
13398
  echo $ECHO_N "(cached) $ECHO_C" >&6
11781
13399
else
11796
13414
}
11797
13415
_ACEOF
11798
13416
rm -f conftest.$ac_objext conftest$ac_exeext
11799
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11800
 
  (eval $ac_link) 2>conftest.er1
 
13417
if { (ac_try="$ac_link"
 
13418
case "(($ac_try" in
 
13419
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13420
  *) ac_try_echo=$ac_try;;
 
13421
esac
 
13422
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13423
  (eval "$ac_link") 2>conftest.er1
11801
13424
  ac_status=$?
11802
13425
  grep -v '^ *+' conftest.er1 >conftest.err
11803
13426
  rm -f conftest.er1
11804
13427
  cat conftest.err >&5
11805
13428
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806
 
  (exit $ac_status); } &&
11807
 
         { ac_try='test -z "$ac_c_werror_flag"
11808
 
                         || test ! -s conftest.err'
11809
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11810
 
  (eval $ac_try) 2>&5
11811
 
  ac_status=$?
11812
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813
 
  (exit $ac_status); }; } &&
11814
 
         { ac_try='test -s conftest$ac_exeext'
11815
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11816
 
  (eval $ac_try) 2>&5
11817
 
  ac_status=$?
11818
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819
 
  (exit $ac_status); }; }; then
 
13429
  (exit $ac_status); } && {
 
13430
         test -z "$ac_c_werror_flag" ||
 
13431
         test ! -s conftest.err
 
13432
       } && test -s conftest$ac_exeext &&
 
13433
       $as_test_x conftest$ac_exeext; then
11820
13434
  ne_cv_libsfor_SSL_library_init="none needed"
11821
13435
else
11822
13436
  echo "$as_me: failed program was:" >&5
11826
13440
ne_sl_save_LIBS=$LIBS
11827
13441
ne_cv_libsfor_SSL_library_init="not found"
11828
13442
for lib in ssl; do
 
13443
    # The w32api libraries link using the stdcall calling convention.
 
13444
    case ${lib}-${ne_cv_os_uname} in
 
13445
    ws2_32-MINGW*) ne__code="__stdcall SSL_library_init();" ;;
 
13446
    *) ne__code="SSL_library_init();" ;;
 
13447
    esac
 
13448
 
11829
13449
    LIBS="$ne_sl_save_LIBS -l$lib $NEON_LIBS"
11830
13450
    cat >conftest.$ac_ext <<_ACEOF
11831
13451
/* confdefs.h.  */
11837
13457
int
11838
13458
main ()
11839
13459
{
11840
 
SSL_library_init();
 
13460
$ne__code
11841
13461
  ;
11842
13462
  return 0;
11843
13463
}
11844
13464
_ACEOF
11845
13465
rm -f conftest.$ac_objext conftest$ac_exeext
11846
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11847
 
  (eval $ac_link) 2>conftest.er1
 
13466
if { (ac_try="$ac_link"
 
13467
case "(($ac_try" in
 
13468
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13469
  *) ac_try_echo=$ac_try;;
 
13470
esac
 
13471
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13472
  (eval "$ac_link") 2>conftest.er1
11848
13473
  ac_status=$?
11849
13474
  grep -v '^ *+' conftest.er1 >conftest.err
11850
13475
  rm -f conftest.er1
11851
13476
  cat conftest.err >&5
11852
13477
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853
 
  (exit $ac_status); } &&
11854
 
         { ac_try='test -z "$ac_c_werror_flag"
11855
 
                         || test ! -s conftest.err'
11856
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11857
 
  (eval $ac_try) 2>&5
11858
 
  ac_status=$?
11859
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860
 
  (exit $ac_status); }; } &&
11861
 
         { ac_try='test -s conftest$ac_exeext'
11862
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11863
 
  (eval $ac_try) 2>&5
11864
 
  ac_status=$?
11865
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866
 
  (exit $ac_status); }; }; then
 
13478
  (exit $ac_status); } && {
 
13479
         test -z "$ac_c_werror_flag" ||
 
13480
         test ! -s conftest.err
 
13481
       } && test -s conftest$ac_exeext &&
 
13482
       $as_test_x conftest$ac_exeext; then
11867
13483
  ne_cv_libsfor_SSL_library_init="-l$lib"; break
11868
13484
else
11869
13485
  echo "$as_me: failed program was:" >&5
11870
13486
sed 's/^/| /' conftest.$ac_ext >&5
11871
13487
 
 
13488
 
11872
13489
fi
11873
 
rm -f conftest.err conftest.$ac_objext \
 
13490
 
 
13491
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11874
13492
      conftest$ac_exeext conftest.$ac_ext
11875
13493
                  LIBS="$ne_sl_save_LIBS -l$lib -ldl $NEON_LIBS"
11876
13494
               cat >conftest.$ac_ext <<_ACEOF
11883
13501
int
11884
13502
main ()
11885
13503
{
11886
 
SSL_library_init();
 
13504
$ne__code
11887
13505
  ;
11888
13506
  return 0;
11889
13507
}
11890
13508
_ACEOF
11891
13509
rm -f conftest.$ac_objext conftest$ac_exeext
11892
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11893
 
  (eval $ac_link) 2>conftest.er1
 
13510
if { (ac_try="$ac_link"
 
13511
case "(($ac_try" in
 
13512
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13513
  *) ac_try_echo=$ac_try;;
 
13514
esac
 
13515
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13516
  (eval "$ac_link") 2>conftest.er1
11894
13517
  ac_status=$?
11895
13518
  grep -v '^ *+' conftest.er1 >conftest.err
11896
13519
  rm -f conftest.er1
11897
13520
  cat conftest.err >&5
11898
13521
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899
 
  (exit $ac_status); } &&
11900
 
         { ac_try='test -z "$ac_c_werror_flag"
11901
 
                         || test ! -s conftest.err'
11902
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11903
 
  (eval $ac_try) 2>&5
11904
 
  ac_status=$?
11905
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906
 
  (exit $ac_status); }; } &&
11907
 
         { ac_try='test -s conftest$ac_exeext'
11908
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11909
 
  (eval $ac_try) 2>&5
11910
 
  ac_status=$?
11911
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912
 
  (exit $ac_status); }; }; then
 
13522
  (exit $ac_status); } && {
 
13523
         test -z "$ac_c_werror_flag" ||
 
13524
         test ! -s conftest.err
 
13525
       } && test -s conftest$ac_exeext &&
 
13526
       $as_test_x conftest$ac_exeext; then
11913
13527
  ne_cv_libsfor_SSL_library_init="-l$lib -ldl"; break
11914
13528
else
11915
13529
  echo "$as_me: failed program was:" >&5
11916
13530
sed 's/^/| /' conftest.$ac_ext >&5
11917
13531
 
 
13532
 
11918
13533
fi
11919
 
rm -f conftest.err conftest.$ac_objext \
 
13534
 
 
13535
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11920
13536
      conftest$ac_exeext conftest.$ac_ext
11921
13537
done
11922
13538
LIBS=$ne_sl_save_LIBS
11923
13539
fi
11924
 
rm -f conftest.err conftest.$ac_objext \
 
13540
 
 
13541
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11925
13542
      conftest$ac_exeext conftest.$ac_ext
11926
13543
fi
11927
 
echo "$as_me:$LINENO: result: $ne_cv_libsfor_SSL_library_init" >&5
11928
 
echo "${ECHO_T}$ne_cv_libsfor_SSL_library_init" >&6
 
13544
{ echo "$as_me:$LINENO: result: $ne_cv_libsfor_SSL_library_init" >&5
 
13545
echo "${ECHO_T}$ne_cv_libsfor_SSL_library_init" >&6; }
11929
13546
 
11930
13547
if test "$ne_cv_libsfor_SSL_library_init" = "not found"; then
11931
13548
   { { echo "$as_me:$LINENO: error: could not find library containing SSL_library_init" >&5
11945
13562
for ac_header in openssl/ssl.h openssl/opensslv.h
11946
13563
do
11947
13564
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11948
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11949
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
11950
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11951
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
13565
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
13566
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
13567
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
13568
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11952
13569
  echo $ECHO_N "(cached) $ECHO_C" >&6
11953
13570
fi
11954
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11955
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
13571
ac_res=`eval echo '${'$as_ac_Header'}'`
 
13572
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
13573
echo "${ECHO_T}$ac_res" >&6; }
11956
13574
else
11957
13575
  # Is the header compilable?
11958
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
11959
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
13576
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
13577
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11960
13578
cat >conftest.$ac_ext <<_ACEOF
11961
13579
/* confdefs.h.  */
11962
13580
_ACEOF
11967
13585
#include <$ac_header>
11968
13586
_ACEOF
11969
13587
rm -f conftest.$ac_objext
11970
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11971
 
  (eval $ac_compile) 2>conftest.er1
 
13588
if { (ac_try="$ac_compile"
 
13589
case "(($ac_try" in
 
13590
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13591
  *) ac_try_echo=$ac_try;;
 
13592
esac
 
13593
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13594
  (eval "$ac_compile") 2>conftest.er1
11972
13595
  ac_status=$?
11973
13596
  grep -v '^ *+' conftest.er1 >conftest.err
11974
13597
  rm -f conftest.er1
11975
13598
  cat conftest.err >&5
11976
13599
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977
 
  (exit $ac_status); } &&
11978
 
         { ac_try='test -z "$ac_c_werror_flag"
11979
 
                         || test ! -s conftest.err'
11980
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981
 
  (eval $ac_try) 2>&5
11982
 
  ac_status=$?
11983
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984
 
  (exit $ac_status); }; } &&
11985
 
         { ac_try='test -s conftest.$ac_objext'
11986
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11987
 
  (eval $ac_try) 2>&5
11988
 
  ac_status=$?
11989
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990
 
  (exit $ac_status); }; }; then
 
13600
  (exit $ac_status); } && {
 
13601
         test -z "$ac_c_werror_flag" ||
 
13602
         test ! -s conftest.err
 
13603
       } && test -s conftest.$ac_objext; then
11991
13604
  ac_header_compiler=yes
11992
13605
else
11993
13606
  echo "$as_me: failed program was:" >&5
11994
13607
sed 's/^/| /' conftest.$ac_ext >&5
11995
13608
 
11996
 
ac_header_compiler=no
 
13609
        ac_header_compiler=no
11997
13610
fi
11998
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11999
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12000
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
13611
 
 
13612
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13613
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
13614
echo "${ECHO_T}$ac_header_compiler" >&6; }
12001
13615
 
12002
13616
# Is the header present?
12003
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
12004
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
13617
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
13618
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12005
13619
cat >conftest.$ac_ext <<_ACEOF
12006
13620
/* confdefs.h.  */
12007
13621
_ACEOF
12010
13624
/* end confdefs.h.  */
12011
13625
#include <$ac_header>
12012
13626
_ACEOF
12013
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12014
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
13627
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
13628
case "(($ac_try" in
 
13629
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13630
  *) ac_try_echo=$ac_try;;
 
13631
esac
 
13632
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13633
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12015
13634
  ac_status=$?
12016
13635
  grep -v '^ *+' conftest.er1 >conftest.err
12017
13636
  rm -f conftest.er1
12018
13637
  cat conftest.err >&5
12019
13638
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020
 
  (exit $ac_status); } >/dev/null; then
12021
 
  if test -s conftest.err; then
12022
 
    ac_cpp_err=$ac_c_preproc_warn_flag
12023
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12024
 
  else
12025
 
    ac_cpp_err=
12026
 
  fi
12027
 
else
12028
 
  ac_cpp_err=yes
12029
 
fi
12030
 
if test -z "$ac_cpp_err"; then
 
13639
  (exit $ac_status); } >/dev/null && {
 
13640
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
13641
         test ! -s conftest.err
 
13642
       }; then
12031
13643
  ac_header_preproc=yes
12032
13644
else
12033
13645
  echo "$as_me: failed program was:" >&5
12035
13647
 
12036
13648
  ac_header_preproc=no
12037
13649
fi
 
13650
 
12038
13651
rm -f conftest.err conftest.$ac_ext
12039
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12040
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
13652
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
13653
echo "${ECHO_T}$ac_header_preproc" >&6; }
12041
13654
 
12042
13655
# So?  What about this header?
12043
13656
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12061
13674
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12062
13675
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12063
13676
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12064
 
    (
12065
 
      cat <<\_ASBOX
 
13677
    ( cat <<\_ASBOX
12066
13678
## -------------------------------- ##
12067
13679
## Report this to sitecopy@lyra.org ##
12068
13680
## -------------------------------- ##
12069
13681
_ASBOX
12070
 
    ) |
12071
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
13682
     ) | sed "s/^/$as_me: WARNING:     /" >&2
12072
13683
    ;;
12073
13684
esac
12074
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
12075
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12076
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
13685
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
13686
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
13687
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12077
13688
  echo $ECHO_N "(cached) $ECHO_C" >&6
12078
13689
else
12079
13690
  eval "$as_ac_Header=\$ac_header_preproc"
12080
13691
fi
12081
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12082
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
13692
ac_res=`eval echo '${'$as_ac_Header'}'`
 
13693
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
13694
echo "${ECHO_T}$ac_res" >&6; }
12083
13695
 
12084
13696
fi
12085
13697
if test `eval echo '${'$as_ac_Header'}'` = yes; then
12098
13710
 
12099
13711
   # Enable EGD support if using 0.9.7 or newer
12100
13712
 
12101
 
echo "$as_me:$LINENO: checking OpenSSL version is >= 0.9.7" >&5
12102
 
echo $ECHO_N "checking OpenSSL version is >= 0.9.7... $ECHO_C" >&6
 
13713
{ echo "$as_me:$LINENO: checking OpenSSL version is >= 0.9.7" >&5
 
13714
echo $ECHO_N "checking OpenSSL version is >= 0.9.7... $ECHO_C" >&6; }
12103
13715
if test "${ne_cv_lib_ssl097+set}" = set; then
12104
13716
  echo $ECHO_N "(cached) $ECHO_C" >&6
12105
13717
else
12124
13736
rm -f conftest*
12125
13737
 
12126
13738
fi
12127
 
echo "$as_me:$LINENO: result: $ne_cv_lib_ssl097" >&5
12128
 
echo "${ECHO_T}$ne_cv_lib_ssl097" >&6
 
13739
{ echo "$as_me:$LINENO: result: $ne_cv_lib_ssl097" >&5
 
13740
echo "${ECHO_T}$ne_cv_lib_ssl097" >&6; }
12129
13741
   if test "$ne_cv_lib_ssl097" = "yes"; then
12130
13742
      { echo "$as_me:$LINENO: OpenSSL >= 0.9.7; EGD support not needed in neon" >&5
12131
13743
echo "$as_me: OpenSSL >= 0.9.7; EGD support not needed in neon" >&6;}
12141
13753
  { echo "$as_me:$LINENO: SSL support enabled, using OpenSSL (0.9.7 or later)" >&5
12142
13754
echo "$as_me: SSL support enabled, using OpenSSL (0.9.7 or later)" >&6;}
12143
13755
 
 
13756
 
 
13757
ne_cf_save_LIBS=$LIBS
 
13758
LIBS="$LIBS $NEON_LIBS"
 
13759
 
 
13760
for ac_func in CRYPTO_set_idptr_callback
 
13761
do
 
13762
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
13763
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
13764
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
13765
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
13766
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13767
else
 
13768
  cat >conftest.$ac_ext <<_ACEOF
 
13769
/* confdefs.h.  */
 
13770
_ACEOF
 
13771
cat confdefs.h >>conftest.$ac_ext
 
13772
cat >>conftest.$ac_ext <<_ACEOF
 
13773
/* end confdefs.h.  */
 
13774
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
13775
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
13776
#define $ac_func innocuous_$ac_func
 
13777
 
 
13778
/* System header to define __stub macros and hopefully few prototypes,
 
13779
    which can conflict with char $ac_func (); below.
 
13780
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
13781
    <limits.h> exists even on freestanding compilers.  */
 
13782
 
 
13783
#ifdef __STDC__
 
13784
# include <limits.h>
 
13785
#else
 
13786
# include <assert.h>
 
13787
#endif
 
13788
 
 
13789
#undef $ac_func
 
13790
 
 
13791
/* Override any GCC internal prototype to avoid an error.
 
13792
   Use char because int might match the return type of a GCC
 
13793
   builtin and then its argument prototype would still apply.  */
 
13794
#ifdef __cplusplus
 
13795
extern "C"
 
13796
#endif
 
13797
char $ac_func ();
 
13798
/* The GNU C library defines this for functions which it implements
 
13799
    to always fail with ENOSYS.  Some functions are actually named
 
13800
    something starting with __ and the normal name is an alias.  */
 
13801
#if defined __stub_$ac_func || defined __stub___$ac_func
 
13802
choke me
 
13803
#endif
 
13804
 
 
13805
int
 
13806
main ()
 
13807
{
 
13808
return $ac_func ();
 
13809
  ;
 
13810
  return 0;
 
13811
}
 
13812
_ACEOF
 
13813
rm -f conftest.$ac_objext conftest$ac_exeext
 
13814
if { (ac_try="$ac_link"
 
13815
case "(($ac_try" in
 
13816
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13817
  *) ac_try_echo=$ac_try;;
 
13818
esac
 
13819
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13820
  (eval "$ac_link") 2>conftest.er1
 
13821
  ac_status=$?
 
13822
  grep -v '^ *+' conftest.er1 >conftest.err
 
13823
  rm -f conftest.er1
 
13824
  cat conftest.err >&5
 
13825
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13826
  (exit $ac_status); } && {
 
13827
         test -z "$ac_c_werror_flag" ||
 
13828
         test ! -s conftest.err
 
13829
       } && test -s conftest$ac_exeext &&
 
13830
       $as_test_x conftest$ac_exeext; then
 
13831
  eval "$as_ac_var=yes"
 
13832
else
 
13833
  echo "$as_me: failed program was:" >&5
 
13834
sed 's/^/| /' conftest.$ac_ext >&5
 
13835
 
 
13836
        eval "$as_ac_var=no"
 
13837
fi
 
13838
 
 
13839
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
13840
      conftest$ac_exeext conftest.$ac_ext
 
13841
fi
 
13842
ac_res=`eval echo '${'$as_ac_var'}'`
 
13843
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
13844
echo "${ECHO_T}$ac_res" >&6; }
 
13845
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
13846
  cat >>confdefs.h <<_ACEOF
 
13847
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
13848
_ACEOF
 
13849
 
 
13850
fi
 
13851
done
 
13852
 
 
13853
LIBS=$ne_cf_save_LIBS
12144
13854
   else
12145
13855
      # Fail if OpenSSL is older than 0.9.6
12146
13856
 
12147
 
echo "$as_me:$LINENO: checking OpenSSL version is >= 0.9.6" >&5
12148
 
echo $ECHO_N "checking OpenSSL version is >= 0.9.6... $ECHO_C" >&6
 
13857
{ echo "$as_me:$LINENO: checking OpenSSL version is >= 0.9.6" >&5
 
13858
echo $ECHO_N "checking OpenSSL version is >= 0.9.6... $ECHO_C" >&6; }
12149
13859
if test "${ne_cv_lib_ssl096+set}" = set; then
12150
13860
  echo $ECHO_N "(cached) $ECHO_C" >&6
12151
13861
else
12170
13880
rm -f conftest*
12171
13881
 
12172
13882
fi
12173
 
echo "$as_me:$LINENO: result: $ne_cv_lib_ssl096" >&5
12174
 
echo "${ECHO_T}$ne_cv_lib_ssl096" >&6
 
13883
{ echo "$as_me:$LINENO: result: $ne_cv_lib_ssl096" >&5
 
13884
echo "${ECHO_T}$ne_cv_lib_ssl096" >&6; }
12175
13885
      if test "$ne_cv_lib_ssl096" != "yes"; then
12176
13886
         { { echo "$as_me:$LINENO: error: OpenSSL 0.9.6 or later is required" >&5
12177
13887
echo "$as_me: error: OpenSSL 0.9.6 or later is required" >&2;}
12199
13909
_ACEOF
12200
13910
 ;;
12201
13911
      *) # Guess whether EGD support is needed
12202
 
         echo "$as_me:$LINENO: checking whether to enable EGD support" >&5
12203
 
echo $ECHO_N "checking whether to enable EGD support... $ECHO_C" >&6
 
13912
         { echo "$as_me:$LINENO: checking whether to enable EGD support" >&5
 
13913
echo $ECHO_N "checking whether to enable EGD support... $ECHO_C" >&6; }
12204
13914
if test "${ne_cv_lib_sslegd+set}" = set; then
12205
13915
  echo $ECHO_N "(cached) $ECHO_C" >&6
12206
13916
else
12210
13920
            ne_cv_lib_sslegd=yes
12211
13921
          fi
12212
13922
fi
12213
 
echo "$as_me:$LINENO: result: $ne_cv_lib_sslegd" >&5
12214
 
echo "${ECHO_T}$ne_cv_lib_sslegd" >&6
 
13923
{ echo "$as_me:$LINENO: result: $ne_cv_lib_sslegd" >&5
 
13924
echo "${ECHO_T}$ne_cv_lib_sslegd" >&6; }
12215
13925
         ;;
12216
13926
      esac
12217
13927
      if test "$ne_cv_lib_sslegd" = "yes"; then
12235
13945
gnutls)
12236
13946
   # Extract the first word of "libgnutls-config", so it can be a program name with args.
12237
13947
set dummy libgnutls-config; ac_word=$2
12238
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
12239
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
13948
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
13949
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12240
13950
if test "${ac_cv_path_GNUTLS_CONFIG+set}" = set; then
12241
13951
  echo $ECHO_N "(cached) $ECHO_C" >&6
12242
13952
else
12251
13961
  IFS=$as_save_IFS
12252
13962
  test -z "$as_dir" && as_dir=.
12253
13963
  for ac_exec_ext in '' $ac_executable_extensions; do
12254
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
13964
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12255
13965
    ac_cv_path_GNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12256
13966
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12257
13967
    break 2
12258
13968
  fi
12259
13969
done
12260
13970
done
 
13971
IFS=$as_save_IFS
12261
13972
 
12262
13973
  test -z "$ac_cv_path_GNUTLS_CONFIG" && ac_cv_path_GNUTLS_CONFIG="no"
12263
13974
  ;;
12264
13975
esac
12265
13976
fi
12266
13977
GNUTLS_CONFIG=$ac_cv_path_GNUTLS_CONFIG
12267
 
 
12268
13978
if test -n "$GNUTLS_CONFIG"; then
12269
 
  echo "$as_me:$LINENO: result: $GNUTLS_CONFIG" >&5
12270
 
echo "${ECHO_T}$GNUTLS_CONFIG" >&6
 
13979
  { echo "$as_me:$LINENO: result: $GNUTLS_CONFIG" >&5
 
13980
echo "${ECHO_T}$GNUTLS_CONFIG" >&6; }
12271
13981
else
12272
 
  echo "$as_me:$LINENO: result: no" >&5
12273
 
echo "${ECHO_T}no" >&6
 
13982
  { echo "$as_me:$LINENO: result: no" >&5
 
13983
echo "${ECHO_T}no" >&6; }
12274
13984
fi
12275
13985
 
12276
13986
 
 
13987
 
12277
13988
   if test "$GNUTLS_CONFIG" = "no"; then
12278
13989
     { { echo "$as_me:$LINENO: error: could not find libgnutls-config in \$PATH" >&5
12279
13990
echo "$as_me: error: could not find libgnutls-config in \$PATH" >&2;}
12285
13996
   1.0.?|1.0.1?|1.0.20|1.0.21)
12286
13997
      { { echo "$as_me:$LINENO: error: GNU TLS version $ne_gnutls_ver is too old -- 1.0.22 or later required" >&5
12287
13998
echo "$as_me: error: GNU TLS version $ne_gnutls_ver is too old -- 1.0.22 or later required" >&2;}
12288
 
   { (exit 1); exit 1; }; } ;;
12289
 
   1.*) ;;
12290
 
   *) { { echo "$as_me:$LINENO: error: GNU TLS version $ne_gnutls_ver is not supported" >&5
12291
 
echo "$as_me: error: GNU TLS version $ne_gnutls_ver is not supported" >&2;}
12292
 
   { (exit 1); exit 1; }; } ;;
 
13999
   { (exit 1); exit 1; }; }
 
14000
      ;;
12293
14001
   esac
12294
14002
 
12295
14003
   CPPFLAGS="$CPPFLAGS `$GNUTLS_CONFIG --cflags`"
12296
14004
 
12297
14005
   if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
12298
 
  echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5
12299
 
echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6
 
14006
  { echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5
 
14007
echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6; }
12300
14008
if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
12301
14009
  echo $ECHO_N "(cached) $ECHO_C" >&6
12302
14010
fi
12303
 
echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5
12304
 
echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6
 
14011
{ echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5
 
14012
echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6; }
12305
14013
else
12306
14014
  # Is the header compilable?
12307
 
echo "$as_me:$LINENO: checking gnutls/gnutls.h usability" >&5
12308
 
echo $ECHO_N "checking gnutls/gnutls.h usability... $ECHO_C" >&6
 
14015
{ echo "$as_me:$LINENO: checking gnutls/gnutls.h usability" >&5
 
14016
echo $ECHO_N "checking gnutls/gnutls.h usability... $ECHO_C" >&6; }
12309
14017
cat >conftest.$ac_ext <<_ACEOF
12310
14018
/* confdefs.h.  */
12311
14019
_ACEOF
12316
14024
#include <gnutls/gnutls.h>
12317
14025
_ACEOF
12318
14026
rm -f conftest.$ac_objext
12319
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12320
 
  (eval $ac_compile) 2>conftest.er1
 
14027
if { (ac_try="$ac_compile"
 
14028
case "(($ac_try" in
 
14029
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14030
  *) ac_try_echo=$ac_try;;
 
14031
esac
 
14032
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14033
  (eval "$ac_compile") 2>conftest.er1
12321
14034
  ac_status=$?
12322
14035
  grep -v '^ *+' conftest.er1 >conftest.err
12323
14036
  rm -f conftest.er1
12324
14037
  cat conftest.err >&5
12325
14038
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326
 
  (exit $ac_status); } &&
12327
 
         { ac_try='test -z "$ac_c_werror_flag"
12328
 
                         || test ! -s conftest.err'
12329
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12330
 
  (eval $ac_try) 2>&5
12331
 
  ac_status=$?
12332
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333
 
  (exit $ac_status); }; } &&
12334
 
         { ac_try='test -s conftest.$ac_objext'
12335
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12336
 
  (eval $ac_try) 2>&5
12337
 
  ac_status=$?
12338
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339
 
  (exit $ac_status); }; }; then
 
14039
  (exit $ac_status); } && {
 
14040
         test -z "$ac_c_werror_flag" ||
 
14041
         test ! -s conftest.err
 
14042
       } && test -s conftest.$ac_objext; then
12340
14043
  ac_header_compiler=yes
12341
14044
else
12342
14045
  echo "$as_me: failed program was:" >&5
12343
14046
sed 's/^/| /' conftest.$ac_ext >&5
12344
14047
 
12345
 
ac_header_compiler=no
 
14048
        ac_header_compiler=no
12346
14049
fi
12347
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12348
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12349
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
14050
 
 
14051
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14052
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
14053
echo "${ECHO_T}$ac_header_compiler" >&6; }
12350
14054
 
12351
14055
# Is the header present?
12352
 
echo "$as_me:$LINENO: checking gnutls/gnutls.h presence" >&5
12353
 
echo $ECHO_N "checking gnutls/gnutls.h presence... $ECHO_C" >&6
 
14056
{ echo "$as_me:$LINENO: checking gnutls/gnutls.h presence" >&5
 
14057
echo $ECHO_N "checking gnutls/gnutls.h presence... $ECHO_C" >&6; }
12354
14058
cat >conftest.$ac_ext <<_ACEOF
12355
14059
/* confdefs.h.  */
12356
14060
_ACEOF
12359
14063
/* end confdefs.h.  */
12360
14064
#include <gnutls/gnutls.h>
12361
14065
_ACEOF
12362
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12363
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
14066
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
14067
case "(($ac_try" in
 
14068
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14069
  *) ac_try_echo=$ac_try;;
 
14070
esac
 
14071
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14072
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12364
14073
  ac_status=$?
12365
14074
  grep -v '^ *+' conftest.er1 >conftest.err
12366
14075
  rm -f conftest.er1
12367
14076
  cat conftest.err >&5
12368
14077
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369
 
  (exit $ac_status); } >/dev/null; then
12370
 
  if test -s conftest.err; then
12371
 
    ac_cpp_err=$ac_c_preproc_warn_flag
12372
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12373
 
  else
12374
 
    ac_cpp_err=
12375
 
  fi
12376
 
else
12377
 
  ac_cpp_err=yes
12378
 
fi
12379
 
if test -z "$ac_cpp_err"; then
 
14078
  (exit $ac_status); } >/dev/null && {
 
14079
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
14080
         test ! -s conftest.err
 
14081
       }; then
12380
14082
  ac_header_preproc=yes
12381
14083
else
12382
14084
  echo "$as_me: failed program was:" >&5
12384
14086
 
12385
14087
  ac_header_preproc=no
12386
14088
fi
 
14089
 
12387
14090
rm -f conftest.err conftest.$ac_ext
12388
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12389
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
14091
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
14092
echo "${ECHO_T}$ac_header_preproc" >&6; }
12390
14093
 
12391
14094
# So?  What about this header?
12392
14095
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12410
14113
echo "$as_me: WARNING: gnutls/gnutls.h: proceeding with the preprocessor's result" >&2;}
12411
14114
    { echo "$as_me:$LINENO: WARNING: gnutls/gnutls.h: in the future, the compiler will take precedence" >&5
12412
14115
echo "$as_me: WARNING: gnutls/gnutls.h: in the future, the compiler will take precedence" >&2;}
12413
 
    (
12414
 
      cat <<\_ASBOX
 
14116
    ( cat <<\_ASBOX
12415
14117
## -------------------------------- ##
12416
14118
## Report this to sitecopy@lyra.org ##
12417
14119
## -------------------------------- ##
12418
14120
_ASBOX
12419
 
    ) |
12420
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
14121
     ) | sed "s/^/$as_me: WARNING:     /" >&2
12421
14122
    ;;
12422
14123
esac
12423
 
echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5
12424
 
echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6
 
14124
{ echo "$as_me:$LINENO: checking for gnutls/gnutls.h" >&5
 
14125
echo $ECHO_N "checking for gnutls/gnutls.h... $ECHO_C" >&6; }
12425
14126
if test "${ac_cv_header_gnutls_gnutls_h+set}" = set; then
12426
14127
  echo $ECHO_N "(cached) $ECHO_C" >&6
12427
14128
else
12428
14129
  ac_cv_header_gnutls_gnutls_h=$ac_header_preproc
12429
14130
fi
12430
 
echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5
12431
 
echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6
 
14131
{ echo "$as_me:$LINENO: result: $ac_cv_header_gnutls_gnutls_h" >&5
 
14132
echo "${ECHO_T}$ac_cv_header_gnutls_gnutls_h" >&6; }
12432
14133
 
12433
14134
fi
12434
14135
if test $ac_cv_header_gnutls_gnutls_h = yes; then
12461
14162
_ACEOF
12462
14163
 
12463
14164
 
12464
 
   # Check for functions in later releases.
 
14165
   # Check for functions in later releases
12465
14166
 
12466
14167
ne_cf_save_LIBS=$LIBS
12467
14168
LIBS="$LIBS $NEON_LIBS"
12468
14169
 
12469
 
for ac_func in gnutls_session_get_data2
 
14170
 
 
14171
 
 
14172
 
 
14173
for ac_func in gnutls_session_get_data2 gnutls_x509_dn_get_rdn_ava \
 
14174
                  gnutls_sign_callback_set
12470
14175
do
12471
14176
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12472
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
12473
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12474
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
14177
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
14178
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
14179
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12475
14180
  echo $ECHO_N "(cached) $ECHO_C" >&6
12476
14181
else
12477
14182
  cat >conftest.$ac_ext <<_ACEOF
12497
14202
 
12498
14203
#undef $ac_func
12499
14204
 
12500
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
14205
/* Override any GCC internal prototype to avoid an error.
 
14206
   Use char because int might match the return type of a GCC
 
14207
   builtin and then its argument prototype would still apply.  */
12501
14208
#ifdef __cplusplus
12502
14209
extern "C"
12503
 
{
12504
14210
#endif
12505
 
/* We use char because int might match the return type of a gcc2
12506
 
   builtin and then its argument prototype would still apply.  */
12507
14211
char $ac_func ();
12508
14212
/* The GNU C library defines this for functions which it implements
12509
14213
    to always fail with ENOSYS.  Some functions are actually named
12510
14214
    something starting with __ and the normal name is an alias.  */
12511
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
14215
#if defined __stub_$ac_func || defined __stub___$ac_func
12512
14216
choke me
12513
 
#else
12514
 
char (*f) () = $ac_func;
12515
 
#endif
12516
 
#ifdef __cplusplus
12517
 
}
12518
14217
#endif
12519
14218
 
12520
14219
int
12521
14220
main ()
12522
14221
{
12523
 
return f != $ac_func;
 
14222
return $ac_func ();
12524
14223
  ;
12525
14224
  return 0;
12526
14225
}
12527
14226
_ACEOF
12528
14227
rm -f conftest.$ac_objext conftest$ac_exeext
12529
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12530
 
  (eval $ac_link) 2>conftest.er1
 
14228
if { (ac_try="$ac_link"
 
14229
case "(($ac_try" in
 
14230
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14231
  *) ac_try_echo=$ac_try;;
 
14232
esac
 
14233
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14234
  (eval "$ac_link") 2>conftest.er1
12531
14235
  ac_status=$?
12532
14236
  grep -v '^ *+' conftest.er1 >conftest.err
12533
14237
  rm -f conftest.er1
12534
14238
  cat conftest.err >&5
12535
14239
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536
 
  (exit $ac_status); } &&
12537
 
         { ac_try='test -z "$ac_c_werror_flag"
12538
 
                         || test ! -s conftest.err'
12539
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12540
 
  (eval $ac_try) 2>&5
12541
 
  ac_status=$?
12542
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543
 
  (exit $ac_status); }; } &&
12544
 
         { ac_try='test -s conftest$ac_exeext'
12545
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12546
 
  (eval $ac_try) 2>&5
12547
 
  ac_status=$?
12548
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549
 
  (exit $ac_status); }; }; then
 
14240
  (exit $ac_status); } && {
 
14241
         test -z "$ac_c_werror_flag" ||
 
14242
         test ! -s conftest.err
 
14243
       } && test -s conftest$ac_exeext &&
 
14244
       $as_test_x conftest$ac_exeext; then
12550
14245
  eval "$as_ac_var=yes"
12551
14246
else
12552
14247
  echo "$as_me: failed program was:" >&5
12553
14248
sed 's/^/| /' conftest.$ac_ext >&5
12554
14249
 
12555
 
eval "$as_ac_var=no"
 
14250
        eval "$as_ac_var=no"
12556
14251
fi
12557
 
rm -f conftest.err conftest.$ac_objext \
 
14252
 
 
14253
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12558
14254
      conftest$ac_exeext conftest.$ac_ext
12559
14255
fi
12560
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12561
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
14256
ac_res=`eval echo '${'$as_ac_var'}'`
 
14257
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
14258
echo "${ECHO_T}$ac_res" >&6; }
12562
14259
if test `eval echo '${'$as_ac_var'}'` = yes; then
12563
14260
  cat >>confdefs.h <<_ACEOF
12564
14261
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12568
14265
done
12569
14266
 
12570
14267
LIBS=$ne_cf_save_LIBS
 
14268
 
 
14269
   # Check for iconv support if using the new RDN access functions:
 
14270
   if test ${ac_cv_func_gnutls_x509_dn_get_rdn_ava}X${ac_cv_header_iconv_h} = yesXyes; then
 
14271
 
 
14272
for ac_func in iconv
 
14273
do
 
14274
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
14275
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
14276
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
14277
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
14278
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14279
else
 
14280
  cat >conftest.$ac_ext <<_ACEOF
 
14281
/* confdefs.h.  */
 
14282
_ACEOF
 
14283
cat confdefs.h >>conftest.$ac_ext
 
14284
cat >>conftest.$ac_ext <<_ACEOF
 
14285
/* end confdefs.h.  */
 
14286
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
14287
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
14288
#define $ac_func innocuous_$ac_func
 
14289
 
 
14290
/* System header to define __stub macros and hopefully few prototypes,
 
14291
    which can conflict with char $ac_func (); below.
 
14292
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
14293
    <limits.h> exists even on freestanding compilers.  */
 
14294
 
 
14295
#ifdef __STDC__
 
14296
# include <limits.h>
 
14297
#else
 
14298
# include <assert.h>
 
14299
#endif
 
14300
 
 
14301
#undef $ac_func
 
14302
 
 
14303
/* Override any GCC internal prototype to avoid an error.
 
14304
   Use char because int might match the return type of a GCC
 
14305
   builtin and then its argument prototype would still apply.  */
 
14306
#ifdef __cplusplus
 
14307
extern "C"
 
14308
#endif
 
14309
char $ac_func ();
 
14310
/* The GNU C library defines this for functions which it implements
 
14311
    to always fail with ENOSYS.  Some functions are actually named
 
14312
    something starting with __ and the normal name is an alias.  */
 
14313
#if defined __stub_$ac_func || defined __stub___$ac_func
 
14314
choke me
 
14315
#endif
 
14316
 
 
14317
int
 
14318
main ()
 
14319
{
 
14320
return $ac_func ();
 
14321
  ;
 
14322
  return 0;
 
14323
}
 
14324
_ACEOF
 
14325
rm -f conftest.$ac_objext conftest$ac_exeext
 
14326
if { (ac_try="$ac_link"
 
14327
case "(($ac_try" in
 
14328
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14329
  *) ac_try_echo=$ac_try;;
 
14330
esac
 
14331
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14332
  (eval "$ac_link") 2>conftest.er1
 
14333
  ac_status=$?
 
14334
  grep -v '^ *+' conftest.er1 >conftest.err
 
14335
  rm -f conftest.er1
 
14336
  cat conftest.err >&5
 
14337
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14338
  (exit $ac_status); } && {
 
14339
         test -z "$ac_c_werror_flag" ||
 
14340
         test ! -s conftest.err
 
14341
       } && test -s conftest$ac_exeext &&
 
14342
       $as_test_x conftest$ac_exeext; then
 
14343
  eval "$as_ac_var=yes"
 
14344
else
 
14345
  echo "$as_me: failed program was:" >&5
 
14346
sed 's/^/| /' conftest.$ac_ext >&5
 
14347
 
 
14348
        eval "$as_ac_var=no"
 
14349
fi
 
14350
 
 
14351
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
14352
      conftest$ac_exeext conftest.$ac_ext
 
14353
fi
 
14354
ac_res=`eval echo '${'$as_ac_var'}'`
 
14355
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
14356
echo "${ECHO_T}$ac_res" >&6; }
 
14357
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
14358
  cat >>confdefs.h <<_ACEOF
 
14359
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
14360
_ACEOF
 
14361
 
 
14362
fi
 
14363
done
 
14364
 
 
14365
   fi
 
14366
 
 
14367
   if test x${ac_cv_func_gnutls_sign_callback_set} = xyes; then
 
14368
      if test "$with_pakchois" != "no"; then
 
14369
         # PKCS#11... ho!
 
14370
 
 
14371
 
 
14372
# Extract the first word of "pkg-config", so it can be a program name with args.
 
14373
set dummy pkg-config; ac_word=$2
 
14374
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
14375
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
14376
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
14377
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14378
else
 
14379
  case $PKG_CONFIG in
 
14380
  [\\/]* | ?:[\\/]*)
 
14381
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
14382
  ;;
 
14383
  *)
 
14384
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
14385
for as_dir in $PATH
 
14386
do
 
14387
  IFS=$as_save_IFS
 
14388
  test -z "$as_dir" && as_dir=.
 
14389
  for ac_exec_ext in '' $ac_executable_extensions; do
 
14390
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
14391
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
14392
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
14393
    break 2
 
14394
  fi
 
14395
done
 
14396
done
 
14397
IFS=$as_save_IFS
 
14398
 
 
14399
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 
14400
  ;;
 
14401
esac
 
14402
fi
 
14403
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
14404
if test -n "$PKG_CONFIG"; then
 
14405
  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
14406
echo "${ECHO_T}$PKG_CONFIG" >&6; }
 
14407
else
 
14408
  { echo "$as_me:$LINENO: result: no" >&5
 
14409
echo "${ECHO_T}no" >&6; }
 
14410
fi
 
14411
 
 
14412
 
 
14413
if test "$PKG_CONFIG" = "no"; then
 
14414
   : Not using pkg-config
 
14415
   { echo "$as_me:$LINENO: pakchois library not found; no PKCS11 support" >&5
 
14416
echo "$as_me: pakchois library not found; no PKCS11 support" >&6;}
 
14417
else
 
14418
   { echo "$as_me:$LINENO: checking for pakchois pkg-config data" >&5
 
14419
echo $ECHO_N "checking for pakchois pkg-config data... $ECHO_C" >&6; }
 
14420
if test "${ne_cv_pkg_pakchois+set}" = set; then
 
14421
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14422
else
 
14423
  if $PKG_CONFIG pakchois; then
 
14424
        ne_cv_pkg_pakchois=yes
 
14425
      else
 
14426
        ne_cv_pkg_pakchois=no
 
14427
      fi
 
14428
fi
 
14429
{ echo "$as_me:$LINENO: result: $ne_cv_pkg_pakchois" >&5
 
14430
echo "${ECHO_T}$ne_cv_pkg_pakchois" >&6; }
 
14431
 
 
14432
   if test "$ne_cv_pkg_pakchois" = "yes"; then
 
14433
      NE_PK11_CFLAGS=`$PKG_CONFIG --cflags pakchois`
 
14434
      NE_PK11_LIBS=`$PKG_CONFIG --libs pakchois`
 
14435
      : Using provided pkg-config data
 
14436
      { echo "$as_me:$LINENO: using pakchois for PKCS11 support" >&5
 
14437
echo "$as_me: using pakchois for PKCS11 support" >&6;}
 
14438
 
 
14439
cat >>confdefs.h <<\_ACEOF
 
14440
#define HAVE_PAKCHOIS 1
 
14441
_ACEOF
 
14442
 
 
14443
            CPPFLAGS="$CPPFLAGS ${NE_PK11_CFLAGS}"
 
14444
            NEON_LIBS="${NEON_LIBS} ${NE_PK11_LIBS}"
 
14445
   else
 
14446
      : No pkg-config for pakchois provided
 
14447
      { echo "$as_me:$LINENO: pakchois library not found; no PKCS11 support" >&5
 
14448
echo "$as_me: pakchois library not found; no PKCS11 support" >&6;}
 
14449
   fi
 
14450
fi
 
14451
      fi
 
14452
   fi
 
14453
 
12571
14454
   ;;
12572
14455
*) # Default to off; only create crypto-enabled binaries if requested.
12573
14456
 
12590
14473
 
12591
14474
 
12592
14475
 
12593
 
# Check whether --with-ca-bundle or --without-ca-bundle was given.
 
14476
# Check whether --with-ca-bundle was given.
12594
14477
if test "${with_ca_bundle+set}" = set; then
12595
 
  withval="$with_ca_bundle"
12596
 
 
 
14478
  withval=$with_ca_bundle;
12597
14479
else
12598
14480
  with_ca_bundle=no
12599
 
fi;
 
14481
fi
 
14482
 
12600
14483
 
12601
14484
case ${NE_FLAG_SSL}-${with_ca_bundle} in
12602
14485
*-no) ;;
12611
14494
   ;;
12612
14495
esac
12613
14496
 
12614
 
# Check whether --enable-threadsafe-ssl or --disable-threadsafe-ssl was given.
 
14497
# Check whether --enable-threadsafe-ssl was given.
12615
14498
if test "${enable_threadsafe_ssl+set}" = set; then
12616
 
  enableval="$enable_threadsafe_ssl"
12617
 
 
 
14499
  enableval=$enable_threadsafe_ssl;
12618
14500
else
12619
14501
  enable_threadsafe_ssl=no
12620
 
fi;
 
14502
fi
 
14503
 
12621
14504
 
12622
14505
case $enable_threadsafe_ssl in
12623
14506
posix|yes)
12627
14510
for ac_func in pthread_mutex_init pthread_mutex_lock
12628
14511
do
12629
14512
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12630
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
12631
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12632
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
14513
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
14514
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
14515
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12633
14516
  echo $ECHO_N "(cached) $ECHO_C" >&6
12634
14517
else
12635
14518
  cat >conftest.$ac_ext <<_ACEOF
12655
14538
 
12656
14539
#undef $ac_func
12657
14540
 
12658
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
14541
/* Override any GCC internal prototype to avoid an error.
 
14542
   Use char because int might match the return type of a GCC
 
14543
   builtin and then its argument prototype would still apply.  */
12659
14544
#ifdef __cplusplus
12660
14545
extern "C"
12661
 
{
12662
14546
#endif
12663
 
/* We use char because int might match the return type of a gcc2
12664
 
   builtin and then its argument prototype would still apply.  */
12665
14547
char $ac_func ();
12666
14548
/* The GNU C library defines this for functions which it implements
12667
14549
    to always fail with ENOSYS.  Some functions are actually named
12668
14550
    something starting with __ and the normal name is an alias.  */
12669
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
14551
#if defined __stub_$ac_func || defined __stub___$ac_func
12670
14552
choke me
12671
 
#else
12672
 
char (*f) () = $ac_func;
12673
 
#endif
12674
 
#ifdef __cplusplus
12675
 
}
12676
14553
#endif
12677
14554
 
12678
14555
int
12679
14556
main ()
12680
14557
{
12681
 
return f != $ac_func;
 
14558
return $ac_func ();
12682
14559
  ;
12683
14560
  return 0;
12684
14561
}
12685
14562
_ACEOF
12686
14563
rm -f conftest.$ac_objext conftest$ac_exeext
12687
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12688
 
  (eval $ac_link) 2>conftest.er1
 
14564
if { (ac_try="$ac_link"
 
14565
case "(($ac_try" in
 
14566
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14567
  *) ac_try_echo=$ac_try;;
 
14568
esac
 
14569
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14570
  (eval "$ac_link") 2>conftest.er1
12689
14571
  ac_status=$?
12690
14572
  grep -v '^ *+' conftest.er1 >conftest.err
12691
14573
  rm -f conftest.er1
12692
14574
  cat conftest.err >&5
12693
14575
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694
 
  (exit $ac_status); } &&
12695
 
         { ac_try='test -z "$ac_c_werror_flag"
12696
 
                         || test ! -s conftest.err'
12697
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12698
 
  (eval $ac_try) 2>&5
12699
 
  ac_status=$?
12700
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701
 
  (exit $ac_status); }; } &&
12702
 
         { ac_try='test -s conftest$ac_exeext'
12703
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12704
 
  (eval $ac_try) 2>&5
12705
 
  ac_status=$?
12706
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707
 
  (exit $ac_status); }; }; then
 
14576
  (exit $ac_status); } && {
 
14577
         test -z "$ac_c_werror_flag" ||
 
14578
         test ! -s conftest.err
 
14579
       } && test -s conftest$ac_exeext &&
 
14580
       $as_test_x conftest$ac_exeext; then
12708
14581
  eval "$as_ac_var=yes"
12709
14582
else
12710
14583
  echo "$as_me: failed program was:" >&5
12711
14584
sed 's/^/| /' conftest.$ac_ext >&5
12712
14585
 
12713
 
eval "$as_ac_var=no"
 
14586
        eval "$as_ac_var=no"
12714
14587
fi
12715
 
rm -f conftest.err conftest.$ac_objext \
 
14588
 
 
14589
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12716
14590
      conftest$ac_exeext conftest.$ac_ext
12717
14591
fi
12718
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12719
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
14592
ac_res=`eval echo '${'$as_ac_var'}'`
 
14593
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
14594
echo "${ECHO_T}$ac_res" >&6; }
12720
14595
if test `eval echo '${'$as_ac_var'}'` = yes; then
12721
14596
  cat >>confdefs.h <<_ACEOF
12722
14597
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12760
14635
 
12761
14636
 
12762
14637
 
12763
 
# Check whether --with-socks or --without-socks was given.
 
14638
# Check whether --with-socks was given.
12764
14639
if test "${with_socks+set}" = set; then
12765
 
  withval="$with_socks"
 
14640
  withval=$with_socks;
 
14641
fi
12766
14642
 
12767
 
fi;
12768
14643
 
12769
14644
if test "$with_socks" = "yes"; then
12770
14645
  ne_save_LIBS=$LIBS
12773
14648
for ac_header in socks.h
12774
14649
do
12775
14650
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12776
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
12777
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
12778
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12779
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
14651
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
14652
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
14653
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
14654
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12780
14655
  echo $ECHO_N "(cached) $ECHO_C" >&6
12781
14656
fi
12782
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12783
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
14657
ac_res=`eval echo '${'$as_ac_Header'}'`
 
14658
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
14659
echo "${ECHO_T}$ac_res" >&6; }
12784
14660
else
12785
14661
  # Is the header compilable?
12786
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
12787
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
14662
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
14663
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12788
14664
cat >conftest.$ac_ext <<_ACEOF
12789
14665
/* confdefs.h.  */
12790
14666
_ACEOF
12795
14671
#include <$ac_header>
12796
14672
_ACEOF
12797
14673
rm -f conftest.$ac_objext
12798
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12799
 
  (eval $ac_compile) 2>conftest.er1
 
14674
if { (ac_try="$ac_compile"
 
14675
case "(($ac_try" in
 
14676
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14677
  *) ac_try_echo=$ac_try;;
 
14678
esac
 
14679
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14680
  (eval "$ac_compile") 2>conftest.er1
12800
14681
  ac_status=$?
12801
14682
  grep -v '^ *+' conftest.er1 >conftest.err
12802
14683
  rm -f conftest.er1
12803
14684
  cat conftest.err >&5
12804
14685
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805
 
  (exit $ac_status); } &&
12806
 
         { ac_try='test -z "$ac_c_werror_flag"
12807
 
                         || test ! -s conftest.err'
12808
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12809
 
  (eval $ac_try) 2>&5
12810
 
  ac_status=$?
12811
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812
 
  (exit $ac_status); }; } &&
12813
 
         { ac_try='test -s conftest.$ac_objext'
12814
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12815
 
  (eval $ac_try) 2>&5
12816
 
  ac_status=$?
12817
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818
 
  (exit $ac_status); }; }; then
 
14686
  (exit $ac_status); } && {
 
14687
         test -z "$ac_c_werror_flag" ||
 
14688
         test ! -s conftest.err
 
14689
       } && test -s conftest.$ac_objext; then
12819
14690
  ac_header_compiler=yes
12820
14691
else
12821
14692
  echo "$as_me: failed program was:" >&5
12822
14693
sed 's/^/| /' conftest.$ac_ext >&5
12823
14694
 
12824
 
ac_header_compiler=no
 
14695
        ac_header_compiler=no
12825
14696
fi
12826
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12827
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12828
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
14697
 
 
14698
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14699
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
14700
echo "${ECHO_T}$ac_header_compiler" >&6; }
12829
14701
 
12830
14702
# Is the header present?
12831
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
12832
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
14703
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
14704
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12833
14705
cat >conftest.$ac_ext <<_ACEOF
12834
14706
/* confdefs.h.  */
12835
14707
_ACEOF
12838
14710
/* end confdefs.h.  */
12839
14711
#include <$ac_header>
12840
14712
_ACEOF
12841
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12842
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
14713
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
14714
case "(($ac_try" in
 
14715
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14716
  *) ac_try_echo=$ac_try;;
 
14717
esac
 
14718
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14719
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12843
14720
  ac_status=$?
12844
14721
  grep -v '^ *+' conftest.er1 >conftest.err
12845
14722
  rm -f conftest.er1
12846
14723
  cat conftest.err >&5
12847
14724
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848
 
  (exit $ac_status); } >/dev/null; then
12849
 
  if test -s conftest.err; then
12850
 
    ac_cpp_err=$ac_c_preproc_warn_flag
12851
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12852
 
  else
12853
 
    ac_cpp_err=
12854
 
  fi
12855
 
else
12856
 
  ac_cpp_err=yes
12857
 
fi
12858
 
if test -z "$ac_cpp_err"; then
 
14725
  (exit $ac_status); } >/dev/null && {
 
14726
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
14727
         test ! -s conftest.err
 
14728
       }; then
12859
14729
  ac_header_preproc=yes
12860
14730
else
12861
14731
  echo "$as_me: failed program was:" >&5
12863
14733
 
12864
14734
  ac_header_preproc=no
12865
14735
fi
 
14736
 
12866
14737
rm -f conftest.err conftest.$ac_ext
12867
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12868
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
14738
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
14739
echo "${ECHO_T}$ac_header_preproc" >&6; }
12869
14740
 
12870
14741
# So?  What about this header?
12871
14742
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12889
14760
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12890
14761
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12891
14762
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12892
 
    (
12893
 
      cat <<\_ASBOX
 
14763
    ( cat <<\_ASBOX
12894
14764
## -------------------------------- ##
12895
14765
## Report this to sitecopy@lyra.org ##
12896
14766
## -------------------------------- ##
12897
14767
_ASBOX
12898
 
    ) |
12899
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
14768
     ) | sed "s/^/$as_me: WARNING:     /" >&2
12900
14769
    ;;
12901
14770
esac
12902
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
12903
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12904
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
14771
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
14772
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
14773
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12905
14774
  echo $ECHO_N "(cached) $ECHO_C" >&6
12906
14775
else
12907
14776
  eval "$as_ac_Header=\$ac_header_preproc"
12908
14777
fi
12909
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12910
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
14778
ac_res=`eval echo '${'$as_ac_Header'}'`
 
14779
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
14780
echo "${ECHO_T}$ac_res" >&6; }
12911
14781
 
12912
14782
fi
12913
14783
if test `eval echo '${'$as_ac_Header'}'` = yes; then
12914
14784
  cat >>confdefs.h <<_ACEOF
12915
14785
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12916
14786
_ACEOF
12917
 
 echo "$as_me:$LINENO: checking for connect in -lsocks5" >&5
12918
 
echo $ECHO_N "checking for connect in -lsocks5... $ECHO_C" >&6
 
14787
 { echo "$as_me:$LINENO: checking for connect in -lsocks5" >&5
 
14788
echo $ECHO_N "checking for connect in -lsocks5... $ECHO_C" >&6; }
12919
14789
if test "${ac_cv_lib_socks5_connect+set}" = set; then
12920
14790
  echo $ECHO_N "(cached) $ECHO_C" >&6
12921
14791
else
12928
14798
cat >>conftest.$ac_ext <<_ACEOF
12929
14799
/* end confdefs.h.  */
12930
14800
 
12931
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
14801
/* Override any GCC internal prototype to avoid an error.
 
14802
   Use char because int might match the return type of a GCC
 
14803
   builtin and then its argument prototype would still apply.  */
12932
14804
#ifdef __cplusplus
12933
14805
extern "C"
12934
14806
#endif
12935
 
/* We use char because int might match the return type of a gcc2
12936
 
   builtin and then its argument prototype would still apply.  */
12937
14807
char connect ();
12938
14808
int
12939
14809
main ()
12940
14810
{
12941
 
connect ();
 
14811
return connect ();
12942
14812
  ;
12943
14813
  return 0;
12944
14814
}
12945
14815
_ACEOF
12946
14816
rm -f conftest.$ac_objext conftest$ac_exeext
12947
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12948
 
  (eval $ac_link) 2>conftest.er1
 
14817
if { (ac_try="$ac_link"
 
14818
case "(($ac_try" in
 
14819
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14820
  *) ac_try_echo=$ac_try;;
 
14821
esac
 
14822
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14823
  (eval "$ac_link") 2>conftest.er1
12949
14824
  ac_status=$?
12950
14825
  grep -v '^ *+' conftest.er1 >conftest.err
12951
14826
  rm -f conftest.er1
12952
14827
  cat conftest.err >&5
12953
14828
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954
 
  (exit $ac_status); } &&
12955
 
         { ac_try='test -z "$ac_c_werror_flag"
12956
 
                         || test ! -s conftest.err'
12957
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12958
 
  (eval $ac_try) 2>&5
12959
 
  ac_status=$?
12960
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961
 
  (exit $ac_status); }; } &&
12962
 
         { ac_try='test -s conftest$ac_exeext'
12963
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12964
 
  (eval $ac_try) 2>&5
12965
 
  ac_status=$?
12966
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967
 
  (exit $ac_status); }; }; then
 
14829
  (exit $ac_status); } && {
 
14830
         test -z "$ac_c_werror_flag" ||
 
14831
         test ! -s conftest.err
 
14832
       } && test -s conftest$ac_exeext &&
 
14833
       $as_test_x conftest$ac_exeext; then
12968
14834
  ac_cv_lib_socks5_connect=yes
12969
14835
else
12970
14836
  echo "$as_me: failed program was:" >&5
12971
14837
sed 's/^/| /' conftest.$ac_ext >&5
12972
14838
 
12973
 
ac_cv_lib_socks5_connect=no
 
14839
        ac_cv_lib_socks5_connect=no
12974
14840
fi
12975
 
rm -f conftest.err conftest.$ac_objext \
 
14841
 
 
14842
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12976
14843
      conftest$ac_exeext conftest.$ac_ext
12977
14844
LIBS=$ac_check_lib_save_LIBS
12978
14845
fi
12979
 
echo "$as_me:$LINENO: result: $ac_cv_lib_socks5_connect" >&5
12980
 
echo "${ECHO_T}$ac_cv_lib_socks5_connect" >&6
 
14846
{ echo "$as_me:$LINENO: result: $ac_cv_lib_socks5_connect" >&5
 
14847
echo "${ECHO_T}$ac_cv_lib_socks5_connect" >&6; }
12981
14848
if test $ac_cv_lib_socks5_connect = yes; then
12982
14849
  :
12983
14850
else
13020
14887
fi
13021
14888
 
13022
14889
 
13023
 
# Check whether --with-gssapi or --without-gssapi was given.
 
14890
# Check whether --with-gssapi was given.
13024
14891
if test "${with_gssapi+set}" = set; then
13025
 
  withval="$with_gssapi"
 
14892
  withval=$with_gssapi;
 
14893
fi
13026
14894
 
13027
 
fi;
13028
14895
if test "$with_gssapi" != "no"; then
13029
14896
  # Extract the first word of "krb5-config", so it can be a program name with args.
13030
14897
set dummy krb5-config; ac_word=$2
13031
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
13032
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
14898
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
14899
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13033
14900
if test "${ac_cv_path_KRB5_CONFIG+set}" = set; then
13034
14901
  echo $ECHO_N "(cached) $ECHO_C" >&6
13035
14902
else
13045
14912
  IFS=$as_save_IFS
13046
14913
  test -z "$as_dir" && as_dir=.
13047
14914
  for ac_exec_ext in '' $ac_executable_extensions; do
13048
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
14915
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13049
14916
    ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13050
14917
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13051
14918
    break 2
13052
14919
  fi
13053
14920
done
13054
14921
done
 
14922
IFS=$as_save_IFS
13055
14923
 
13056
14924
  test -z "$ac_cv_path_KRB5_CONFIG" && ac_cv_path_KRB5_CONFIG="none"
13057
14925
  ;;
13058
14926
esac
13059
14927
fi
13060
14928
KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
13061
 
 
13062
14929
if test -n "$KRB5_CONFIG"; then
13063
 
  echo "$as_me:$LINENO: result: $KRB5_CONFIG" >&5
13064
 
echo "${ECHO_T}$KRB5_CONFIG" >&6
 
14930
  { echo "$as_me:$LINENO: result: $KRB5_CONFIG" >&5
 
14931
echo "${ECHO_T}$KRB5_CONFIG" >&6; }
13065
14932
else
13066
 
  echo "$as_me:$LINENO: result: no" >&5
13067
 
echo "${ECHO_T}no" >&6
 
14933
  { echo "$as_me:$LINENO: result: no" >&5
 
14934
echo "${ECHO_T}no" >&6; }
13068
14935
fi
13069
14936
 
 
14937
 
13070
14938
else
13071
14939
  KRB5_CONFIG=none
13072
14940
fi
13081
14949
for ac_header in gssapi/gssapi.h gssapi.h
13082
14950
do
13083
14951
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13084
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
13085
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
13086
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13087
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
14952
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
14953
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
14954
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
14955
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13088
14956
  echo $ECHO_N "(cached) $ECHO_C" >&6
13089
14957
fi
13090
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13091
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
14958
ac_res=`eval echo '${'$as_ac_Header'}'`
 
14959
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
14960
echo "${ECHO_T}$ac_res" >&6; }
13092
14961
else
13093
14962
  # Is the header compilable?
13094
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
13095
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
14963
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
14964
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13096
14965
cat >conftest.$ac_ext <<_ACEOF
13097
14966
/* confdefs.h.  */
13098
14967
_ACEOF
13103
14972
#include <$ac_header>
13104
14973
_ACEOF
13105
14974
rm -f conftest.$ac_objext
13106
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13107
 
  (eval $ac_compile) 2>conftest.er1
 
14975
if { (ac_try="$ac_compile"
 
14976
case "(($ac_try" in
 
14977
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14978
  *) ac_try_echo=$ac_try;;
 
14979
esac
 
14980
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14981
  (eval "$ac_compile") 2>conftest.er1
13108
14982
  ac_status=$?
13109
14983
  grep -v '^ *+' conftest.er1 >conftest.err
13110
14984
  rm -f conftest.er1
13111
14985
  cat conftest.err >&5
13112
14986
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113
 
  (exit $ac_status); } &&
13114
 
         { ac_try='test -z "$ac_c_werror_flag"
13115
 
                         || test ! -s conftest.err'
13116
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13117
 
  (eval $ac_try) 2>&5
13118
 
  ac_status=$?
13119
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120
 
  (exit $ac_status); }; } &&
13121
 
         { ac_try='test -s conftest.$ac_objext'
13122
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13123
 
  (eval $ac_try) 2>&5
13124
 
  ac_status=$?
13125
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126
 
  (exit $ac_status); }; }; then
 
14987
  (exit $ac_status); } && {
 
14988
         test -z "$ac_c_werror_flag" ||
 
14989
         test ! -s conftest.err
 
14990
       } && test -s conftest.$ac_objext; then
13127
14991
  ac_header_compiler=yes
13128
14992
else
13129
14993
  echo "$as_me: failed program was:" >&5
13130
14994
sed 's/^/| /' conftest.$ac_ext >&5
13131
14995
 
13132
 
ac_header_compiler=no
 
14996
        ac_header_compiler=no
13133
14997
fi
13134
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13135
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13136
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
14998
 
 
14999
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15000
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
15001
echo "${ECHO_T}$ac_header_compiler" >&6; }
13137
15002
 
13138
15003
# Is the header present?
13139
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
13140
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
15004
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
15005
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13141
15006
cat >conftest.$ac_ext <<_ACEOF
13142
15007
/* confdefs.h.  */
13143
15008
_ACEOF
13146
15011
/* end confdefs.h.  */
13147
15012
#include <$ac_header>
13148
15013
_ACEOF
13149
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13150
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
15014
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
15015
case "(($ac_try" in
 
15016
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15017
  *) ac_try_echo=$ac_try;;
 
15018
esac
 
15019
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15020
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13151
15021
  ac_status=$?
13152
15022
  grep -v '^ *+' conftest.er1 >conftest.err
13153
15023
  rm -f conftest.er1
13154
15024
  cat conftest.err >&5
13155
15025
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156
 
  (exit $ac_status); } >/dev/null; then
13157
 
  if test -s conftest.err; then
13158
 
    ac_cpp_err=$ac_c_preproc_warn_flag
13159
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13160
 
  else
13161
 
    ac_cpp_err=
13162
 
  fi
13163
 
else
13164
 
  ac_cpp_err=yes
13165
 
fi
13166
 
if test -z "$ac_cpp_err"; then
 
15026
  (exit $ac_status); } >/dev/null && {
 
15027
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
15028
         test ! -s conftest.err
 
15029
       }; then
13167
15030
  ac_header_preproc=yes
13168
15031
else
13169
15032
  echo "$as_me: failed program was:" >&5
13171
15034
 
13172
15035
  ac_header_preproc=no
13173
15036
fi
 
15037
 
13174
15038
rm -f conftest.err conftest.$ac_ext
13175
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13176
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
15039
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
15040
echo "${ECHO_T}$ac_header_preproc" >&6; }
13177
15041
 
13178
15042
# So?  What about this header?
13179
15043
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13197
15061
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13198
15062
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13199
15063
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13200
 
    (
13201
 
      cat <<\_ASBOX
 
15064
    ( cat <<\_ASBOX
13202
15065
## -------------------------------- ##
13203
15066
## Report this to sitecopy@lyra.org ##
13204
15067
## -------------------------------- ##
13205
15068
_ASBOX
13206
 
    ) |
13207
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
15069
     ) | sed "s/^/$as_me: WARNING:     /" >&2
13208
15070
    ;;
13209
15071
esac
13210
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
13211
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13212
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
15072
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
15073
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
15074
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13213
15075
  echo $ECHO_N "(cached) $ECHO_C" >&6
13214
15076
else
13215
15077
  eval "$as_ac_Header=\$ac_header_preproc"
13216
15078
fi
13217
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13218
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
15079
ac_res=`eval echo '${'$as_ac_Header'}'`
 
15080
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
15081
echo "${ECHO_T}$ac_res" >&6; }
13219
15082
 
13220
15083
fi
13221
15084
if test `eval echo '${'$as_ac_Header'}'` = yes; then
13230
15093
for ac_func in gss_init_sec_context
13231
15094
do
13232
15095
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13233
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
13234
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13235
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
15096
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
15097
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
15098
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13236
15099
  echo $ECHO_N "(cached) $ECHO_C" >&6
13237
15100
else
13238
15101
  cat >conftest.$ac_ext <<_ACEOF
13258
15121
 
13259
15122
#undef $ac_func
13260
15123
 
13261
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
15124
/* Override any GCC internal prototype to avoid an error.
 
15125
   Use char because int might match the return type of a GCC
 
15126
   builtin and then its argument prototype would still apply.  */
13262
15127
#ifdef __cplusplus
13263
15128
extern "C"
13264
 
{
13265
15129
#endif
13266
 
/* We use char because int might match the return type of a gcc2
13267
 
   builtin and then its argument prototype would still apply.  */
13268
15130
char $ac_func ();
13269
15131
/* The GNU C library defines this for functions which it implements
13270
15132
    to always fail with ENOSYS.  Some functions are actually named
13271
15133
    something starting with __ and the normal name is an alias.  */
13272
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
15134
#if defined __stub_$ac_func || defined __stub___$ac_func
13273
15135
choke me
13274
 
#else
13275
 
char (*f) () = $ac_func;
13276
 
#endif
13277
 
#ifdef __cplusplus
13278
 
}
13279
15136
#endif
13280
15137
 
13281
15138
int
13282
15139
main ()
13283
15140
{
13284
 
return f != $ac_func;
 
15141
return $ac_func ();
13285
15142
  ;
13286
15143
  return 0;
13287
15144
}
13288
15145
_ACEOF
13289
15146
rm -f conftest.$ac_objext conftest$ac_exeext
13290
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13291
 
  (eval $ac_link) 2>conftest.er1
 
15147
if { (ac_try="$ac_link"
 
15148
case "(($ac_try" in
 
15149
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15150
  *) ac_try_echo=$ac_try;;
 
15151
esac
 
15152
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15153
  (eval "$ac_link") 2>conftest.er1
13292
15154
  ac_status=$?
13293
15155
  grep -v '^ *+' conftest.er1 >conftest.err
13294
15156
  rm -f conftest.er1
13295
15157
  cat conftest.err >&5
13296
15158
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297
 
  (exit $ac_status); } &&
13298
 
         { ac_try='test -z "$ac_c_werror_flag"
13299
 
                         || test ! -s conftest.err'
13300
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13301
 
  (eval $ac_try) 2>&5
13302
 
  ac_status=$?
13303
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304
 
  (exit $ac_status); }; } &&
13305
 
         { ac_try='test -s conftest$ac_exeext'
13306
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13307
 
  (eval $ac_try) 2>&5
13308
 
  ac_status=$?
13309
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310
 
  (exit $ac_status); }; }; then
 
15159
  (exit $ac_status); } && {
 
15160
         test -z "$ac_c_werror_flag" ||
 
15161
         test ! -s conftest.err
 
15162
       } && test -s conftest$ac_exeext &&
 
15163
       $as_test_x conftest$ac_exeext; then
13311
15164
  eval "$as_ac_var=yes"
13312
15165
else
13313
15166
  echo "$as_me: failed program was:" >&5
13314
15167
sed 's/^/| /' conftest.$ac_ext >&5
13315
15168
 
13316
 
eval "$as_ac_var=no"
 
15169
        eval "$as_ac_var=no"
13317
15170
fi
13318
 
rm -f conftest.err conftest.$ac_objext \
 
15171
 
 
15172
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13319
15173
      conftest$ac_exeext conftest.$ac_ext
13320
15174
fi
13321
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13322
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
15175
ac_res=`eval echo '${'$as_ac_var'}'`
 
15176
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
15177
echo "${ECHO_T}$ac_res" >&6; }
13323
15178
if test `eval echo '${'$as_ac_var'}'` = yes; then
13324
15179
  cat >>confdefs.h <<_ACEOF
13325
15180
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13338
15193
for ac_header in gssapi/gssapi_generic.h
13339
15194
do
13340
15195
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13341
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
13342
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
13343
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13344
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
15196
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
15197
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
15198
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
15199
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13345
15200
  echo $ECHO_N "(cached) $ECHO_C" >&6
13346
15201
fi
13347
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13348
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
15202
ac_res=`eval echo '${'$as_ac_Header'}'`
 
15203
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
15204
echo "${ECHO_T}$ac_res" >&6; }
13349
15205
else
13350
15206
  # Is the header compilable?
13351
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
13352
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
15207
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
15208
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13353
15209
cat >conftest.$ac_ext <<_ACEOF
13354
15210
/* confdefs.h.  */
13355
15211
_ACEOF
13360
15216
#include <$ac_header>
13361
15217
_ACEOF
13362
15218
rm -f conftest.$ac_objext
13363
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13364
 
  (eval $ac_compile) 2>conftest.er1
 
15219
if { (ac_try="$ac_compile"
 
15220
case "(($ac_try" in
 
15221
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15222
  *) ac_try_echo=$ac_try;;
 
15223
esac
 
15224
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15225
  (eval "$ac_compile") 2>conftest.er1
13365
15226
  ac_status=$?
13366
15227
  grep -v '^ *+' conftest.er1 >conftest.err
13367
15228
  rm -f conftest.er1
13368
15229
  cat conftest.err >&5
13369
15230
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370
 
  (exit $ac_status); } &&
13371
 
         { ac_try='test -z "$ac_c_werror_flag"
13372
 
                         || test ! -s conftest.err'
13373
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13374
 
  (eval $ac_try) 2>&5
13375
 
  ac_status=$?
13376
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377
 
  (exit $ac_status); }; } &&
13378
 
         { ac_try='test -s conftest.$ac_objext'
13379
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13380
 
  (eval $ac_try) 2>&5
13381
 
  ac_status=$?
13382
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383
 
  (exit $ac_status); }; }; then
 
15231
  (exit $ac_status); } && {
 
15232
         test -z "$ac_c_werror_flag" ||
 
15233
         test ! -s conftest.err
 
15234
       } && test -s conftest.$ac_objext; then
13384
15235
  ac_header_compiler=yes
13385
15236
else
13386
15237
  echo "$as_me: failed program was:" >&5
13387
15238
sed 's/^/| /' conftest.$ac_ext >&5
13388
15239
 
13389
 
ac_header_compiler=no
 
15240
        ac_header_compiler=no
13390
15241
fi
13391
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13392
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13393
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
15242
 
 
15243
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15244
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
15245
echo "${ECHO_T}$ac_header_compiler" >&6; }
13394
15246
 
13395
15247
# Is the header present?
13396
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
13397
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
15248
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
15249
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13398
15250
cat >conftest.$ac_ext <<_ACEOF
13399
15251
/* confdefs.h.  */
13400
15252
_ACEOF
13403
15255
/* end confdefs.h.  */
13404
15256
#include <$ac_header>
13405
15257
_ACEOF
13406
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13407
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
15258
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
15259
case "(($ac_try" in
 
15260
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15261
  *) ac_try_echo=$ac_try;;
 
15262
esac
 
15263
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15264
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13408
15265
  ac_status=$?
13409
15266
  grep -v '^ *+' conftest.er1 >conftest.err
13410
15267
  rm -f conftest.er1
13411
15268
  cat conftest.err >&5
13412
15269
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413
 
  (exit $ac_status); } >/dev/null; then
13414
 
  if test -s conftest.err; then
13415
 
    ac_cpp_err=$ac_c_preproc_warn_flag
13416
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13417
 
  else
13418
 
    ac_cpp_err=
13419
 
  fi
13420
 
else
13421
 
  ac_cpp_err=yes
13422
 
fi
13423
 
if test -z "$ac_cpp_err"; then
 
15270
  (exit $ac_status); } >/dev/null && {
 
15271
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
15272
         test ! -s conftest.err
 
15273
       }; then
13424
15274
  ac_header_preproc=yes
13425
15275
else
13426
15276
  echo "$as_me: failed program was:" >&5
13428
15278
 
13429
15279
  ac_header_preproc=no
13430
15280
fi
 
15281
 
13431
15282
rm -f conftest.err conftest.$ac_ext
13432
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13433
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
15283
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
15284
echo "${ECHO_T}$ac_header_preproc" >&6; }
13434
15285
 
13435
15286
# So?  What about this header?
13436
15287
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13454
15305
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13455
15306
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13456
15307
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13457
 
    (
13458
 
      cat <<\_ASBOX
 
15308
    ( cat <<\_ASBOX
13459
15309
## -------------------------------- ##
13460
15310
## Report this to sitecopy@lyra.org ##
13461
15311
## -------------------------------- ##
13462
15312
_ASBOX
13463
 
    ) |
13464
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
15313
     ) | sed "s/^/$as_me: WARNING:     /" >&2
13465
15314
    ;;
13466
15315
esac
13467
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
13468
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13469
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
15316
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
15317
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
15318
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13470
15319
  echo $ECHO_N "(cached) $ECHO_C" >&6
13471
15320
else
13472
15321
  eval "$as_ac_Header=\$ac_header_preproc"
13473
15322
fi
13474
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13475
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
15323
ac_res=`eval echo '${'$as_ac_Header'}'`
 
15324
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
15325
echo "${ECHO_T}$ac_res" >&6; }
13476
15326
 
13477
15327
fi
13478
15328
if test `eval echo '${'$as_ac_Header'}'` = yes; then
13485
15335
done
13486
15336
 
13487
15337
      # Older versions of MIT Kerberos lack GSS_C_NT_HOSTBASED_SERVICE
13488
 
      echo "$as_me:$LINENO: checking whether GSS_C_NT_HOSTBASED_SERVICE is declared" >&5
13489
 
echo $ECHO_N "checking whether GSS_C_NT_HOSTBASED_SERVICE is declared... $ECHO_C" >&6
 
15338
      { echo "$as_me:$LINENO: checking whether GSS_C_NT_HOSTBASED_SERVICE is declared" >&5
 
15339
echo $ECHO_N "checking whether GSS_C_NT_HOSTBASED_SERVICE is declared... $ECHO_C" >&6; }
13490
15340
if test "${ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE+set}" = set; then
13491
15341
  echo $ECHO_N "(cached) $ECHO_C" >&6
13492
15342
else
13506
15356
main ()
13507
15357
{
13508
15358
#ifndef GSS_C_NT_HOSTBASED_SERVICE
13509
 
  char *p = (char *) GSS_C_NT_HOSTBASED_SERVICE;
 
15359
  (void) GSS_C_NT_HOSTBASED_SERVICE;
13510
15360
#endif
13511
15361
 
13512
15362
  ;
13514
15364
}
13515
15365
_ACEOF
13516
15366
rm -f conftest.$ac_objext
13517
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13518
 
  (eval $ac_compile) 2>conftest.er1
 
15367
if { (ac_try="$ac_compile"
 
15368
case "(($ac_try" in
 
15369
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15370
  *) ac_try_echo=$ac_try;;
 
15371
esac
 
15372
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15373
  (eval "$ac_compile") 2>conftest.er1
13519
15374
  ac_status=$?
13520
15375
  grep -v '^ *+' conftest.er1 >conftest.err
13521
15376
  rm -f conftest.er1
13522
15377
  cat conftest.err >&5
13523
15378
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524
 
  (exit $ac_status); } &&
13525
 
         { ac_try='test -z "$ac_c_werror_flag"
13526
 
                         || test ! -s conftest.err'
13527
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13528
 
  (eval $ac_try) 2>&5
13529
 
  ac_status=$?
13530
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531
 
  (exit $ac_status); }; } &&
13532
 
         { ac_try='test -s conftest.$ac_objext'
13533
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13534
 
  (eval $ac_try) 2>&5
13535
 
  ac_status=$?
13536
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537
 
  (exit $ac_status); }; }; then
 
15379
  (exit $ac_status); } && {
 
15380
         test -z "$ac_c_werror_flag" ||
 
15381
         test ! -s conftest.err
 
15382
       } && test -s conftest.$ac_objext; then
13538
15383
  ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE=yes
13539
15384
else
13540
15385
  echo "$as_me: failed program was:" >&5
13541
15386
sed 's/^/| /' conftest.$ac_ext >&5
13542
15387
 
13543
 
ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE=no
13544
 
fi
13545
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13546
 
fi
13547
 
echo "$as_me:$LINENO: result: $ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" >&5
13548
 
echo "${ECHO_T}$ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" >&6
 
15388
        ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE=no
 
15389
fi
 
15390
 
 
15391
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15392
fi
 
15393
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" >&5
 
15394
echo "${ECHO_T}$ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" >&6; }
13549
15395
if test $ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE = yes; then
13550
15396
  :
13551
15397
else
13597
15443
 
13598
15444
 
13599
15445
 
13600
 
# Check whether --with-libxml2 or --without-libxml2 was given.
 
15446
# Check whether --with-libxml2 was given.
13601
15447
if test "${with_libxml2+set}" = set; then
13602
 
  withval="$with_libxml2"
13603
 
 
13604
 
fi;
13605
 
 
13606
 
# Check whether --with-expat or --without-expat was given.
 
15448
  withval=$with_libxml2;
 
15449
fi
 
15450
 
 
15451
 
 
15452
# Check whether --with-expat was given.
13607
15453
if test "${with_expat+set}" = set; then
13608
 
  withval="$with_expat"
13609
 
 
13610
 
fi;
13611
 
 
13612
 
 
13613
 
 
13614
 
# Check whether --with-included-expat or --without-included-expat was given.
 
15454
  withval=$with_expat;
 
15455
fi
 
15456
 
 
15457
 
 
15458
 
 
15459
 
 
15460
# Check whether --with-included-expat was given.
13615
15461
if test "${with_included_expat+set}" = set; then
13616
 
  withval="$with_included_expat"
13617
 
 
 
15462
  withval=$with_included_expat;
13618
15463
else
13619
15464
  with_included_expat=no
13620
 
fi;
 
15465
fi
 
15466
 
13621
15467
 
13622
15468
if test "$NEON_NEED_XML_PARSER" = "yes"; then
13623
15469
  # Find an XML parser
13627
15473
  case $with_expat in
13628
15474
  yes)
13629
15475
if test "${ac_cv_header_expat_h+set}" = set; then
13630
 
  echo "$as_me:$LINENO: checking for expat.h" >&5
13631
 
echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
 
15476
  { echo "$as_me:$LINENO: checking for expat.h" >&5
 
15477
echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
13632
15478
if test "${ac_cv_header_expat_h+set}" = set; then
13633
15479
  echo $ECHO_N "(cached) $ECHO_C" >&6
13634
15480
fi
13635
 
echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
13636
 
echo "${ECHO_T}$ac_cv_header_expat_h" >&6
 
15481
{ echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
 
15482
echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
13637
15483
else
13638
15484
  # Is the header compilable?
13639
 
echo "$as_me:$LINENO: checking expat.h usability" >&5
13640
 
echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
 
15485
{ echo "$as_me:$LINENO: checking expat.h usability" >&5
 
15486
echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6; }
13641
15487
cat >conftest.$ac_ext <<_ACEOF
13642
15488
/* confdefs.h.  */
13643
15489
_ACEOF
13648
15494
#include <expat.h>
13649
15495
_ACEOF
13650
15496
rm -f conftest.$ac_objext
13651
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13652
 
  (eval $ac_compile) 2>conftest.er1
 
15497
if { (ac_try="$ac_compile"
 
15498
case "(($ac_try" in
 
15499
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15500
  *) ac_try_echo=$ac_try;;
 
15501
esac
 
15502
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15503
  (eval "$ac_compile") 2>conftest.er1
13653
15504
  ac_status=$?
13654
15505
  grep -v '^ *+' conftest.er1 >conftest.err
13655
15506
  rm -f conftest.er1
13656
15507
  cat conftest.err >&5
13657
15508
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658
 
  (exit $ac_status); } &&
13659
 
         { ac_try='test -z "$ac_c_werror_flag"
13660
 
                         || test ! -s conftest.err'
13661
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13662
 
  (eval $ac_try) 2>&5
13663
 
  ac_status=$?
13664
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665
 
  (exit $ac_status); }; } &&
13666
 
         { ac_try='test -s conftest.$ac_objext'
13667
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13668
 
  (eval $ac_try) 2>&5
13669
 
  ac_status=$?
13670
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671
 
  (exit $ac_status); }; }; then
 
15509
  (exit $ac_status); } && {
 
15510
         test -z "$ac_c_werror_flag" ||
 
15511
         test ! -s conftest.err
 
15512
       } && test -s conftest.$ac_objext; then
13672
15513
  ac_header_compiler=yes
13673
15514
else
13674
15515
  echo "$as_me: failed program was:" >&5
13675
15516
sed 's/^/| /' conftest.$ac_ext >&5
13676
15517
 
13677
 
ac_header_compiler=no
 
15518
        ac_header_compiler=no
13678
15519
fi
13679
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13680
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13681
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
15520
 
 
15521
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15522
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
15523
echo "${ECHO_T}$ac_header_compiler" >&6; }
13682
15524
 
13683
15525
# Is the header present?
13684
 
echo "$as_me:$LINENO: checking expat.h presence" >&5
13685
 
echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
 
15526
{ echo "$as_me:$LINENO: checking expat.h presence" >&5
 
15527
echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6; }
13686
15528
cat >conftest.$ac_ext <<_ACEOF
13687
15529
/* confdefs.h.  */
13688
15530
_ACEOF
13691
15533
/* end confdefs.h.  */
13692
15534
#include <expat.h>
13693
15535
_ACEOF
13694
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13695
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
15536
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
15537
case "(($ac_try" in
 
15538
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15539
  *) ac_try_echo=$ac_try;;
 
15540
esac
 
15541
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15542
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13696
15543
  ac_status=$?
13697
15544
  grep -v '^ *+' conftest.er1 >conftest.err
13698
15545
  rm -f conftest.er1
13699
15546
  cat conftest.err >&5
13700
15547
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701
 
  (exit $ac_status); } >/dev/null; then
13702
 
  if test -s conftest.err; then
13703
 
    ac_cpp_err=$ac_c_preproc_warn_flag
13704
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13705
 
  else
13706
 
    ac_cpp_err=
13707
 
  fi
13708
 
else
13709
 
  ac_cpp_err=yes
13710
 
fi
13711
 
if test -z "$ac_cpp_err"; then
 
15548
  (exit $ac_status); } >/dev/null && {
 
15549
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
15550
         test ! -s conftest.err
 
15551
       }; then
13712
15552
  ac_header_preproc=yes
13713
15553
else
13714
15554
  echo "$as_me: failed program was:" >&5
13716
15556
 
13717
15557
  ac_header_preproc=no
13718
15558
fi
 
15559
 
13719
15560
rm -f conftest.err conftest.$ac_ext
13720
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13721
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
15561
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
15562
echo "${ECHO_T}$ac_header_preproc" >&6; }
13722
15563
 
13723
15564
# So?  What about this header?
13724
15565
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13742
15583
echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
13743
15584
    { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
13744
15585
echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
13745
 
    (
13746
 
      cat <<\_ASBOX
 
15586
    ( cat <<\_ASBOX
13747
15587
## -------------------------------- ##
13748
15588
## Report this to sitecopy@lyra.org ##
13749
15589
## -------------------------------- ##
13750
15590
_ASBOX
13751
 
    ) |
13752
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
15591
     ) | sed "s/^/$as_me: WARNING:     /" >&2
13753
15592
    ;;
13754
15593
esac
13755
 
echo "$as_me:$LINENO: checking for expat.h" >&5
13756
 
echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
 
15594
{ echo "$as_me:$LINENO: checking for expat.h" >&5
 
15595
echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
13757
15596
if test "${ac_cv_header_expat_h+set}" = set; then
13758
15597
  echo $ECHO_N "(cached) $ECHO_C" >&6
13759
15598
else
13760
15599
  ac_cv_header_expat_h=$ac_header_preproc
13761
15600
fi
13762
 
echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
13763
 
echo "${ECHO_T}$ac_cv_header_expat_h" >&6
 
15601
{ echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
 
15602
echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
13764
15603
 
13765
15604
fi
13766
15605
if test $ac_cv_header_expat_h = yes; then
13767
 
  echo "$as_me:$LINENO: checking for XML_SetXmlDeclHandler in -lexpat" >&5
13768
 
echo $ECHO_N "checking for XML_SetXmlDeclHandler in -lexpat... $ECHO_C" >&6
 
15606
  { echo "$as_me:$LINENO: checking for XML_SetXmlDeclHandler in -lexpat" >&5
 
15607
echo $ECHO_N "checking for XML_SetXmlDeclHandler in -lexpat... $ECHO_C" >&6; }
13769
15608
if test "${ac_cv_lib_expat_XML_SetXmlDeclHandler+set}" = set; then
13770
15609
  echo $ECHO_N "(cached) $ECHO_C" >&6
13771
15610
else
13778
15617
cat >>conftest.$ac_ext <<_ACEOF
13779
15618
/* end confdefs.h.  */
13780
15619
 
13781
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
15620
/* Override any GCC internal prototype to avoid an error.
 
15621
   Use char because int might match the return type of a GCC
 
15622
   builtin and then its argument prototype would still apply.  */
13782
15623
#ifdef __cplusplus
13783
15624
extern "C"
13784
15625
#endif
13785
 
/* We use char because int might match the return type of a gcc2
13786
 
   builtin and then its argument prototype would still apply.  */
13787
15626
char XML_SetXmlDeclHandler ();
13788
15627
int
13789
15628
main ()
13790
15629
{
13791
 
XML_SetXmlDeclHandler ();
 
15630
return XML_SetXmlDeclHandler ();
13792
15631
  ;
13793
15632
  return 0;
13794
15633
}
13795
15634
_ACEOF
13796
15635
rm -f conftest.$ac_objext conftest$ac_exeext
13797
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13798
 
  (eval $ac_link) 2>conftest.er1
 
15636
if { (ac_try="$ac_link"
 
15637
case "(($ac_try" in
 
15638
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15639
  *) ac_try_echo=$ac_try;;
 
15640
esac
 
15641
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15642
  (eval "$ac_link") 2>conftest.er1
13799
15643
  ac_status=$?
13800
15644
  grep -v '^ *+' conftest.er1 >conftest.err
13801
15645
  rm -f conftest.er1
13802
15646
  cat conftest.err >&5
13803
15647
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804
 
  (exit $ac_status); } &&
13805
 
         { ac_try='test -z "$ac_c_werror_flag"
13806
 
                         || test ! -s conftest.err'
13807
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13808
 
  (eval $ac_try) 2>&5
13809
 
  ac_status=$?
13810
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811
 
  (exit $ac_status); }; } &&
13812
 
         { ac_try='test -s conftest$ac_exeext'
13813
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13814
 
  (eval $ac_try) 2>&5
13815
 
  ac_status=$?
13816
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817
 
  (exit $ac_status); }; }; then
 
15648
  (exit $ac_status); } && {
 
15649
         test -z "$ac_c_werror_flag" ||
 
15650
         test ! -s conftest.err
 
15651
       } && test -s conftest$ac_exeext &&
 
15652
       $as_test_x conftest$ac_exeext; then
13818
15653
  ac_cv_lib_expat_XML_SetXmlDeclHandler=yes
13819
15654
else
13820
15655
  echo "$as_me: failed program was:" >&5
13821
15656
sed 's/^/| /' conftest.$ac_ext >&5
13822
15657
 
13823
 
ac_cv_lib_expat_XML_SetXmlDeclHandler=no
 
15658
        ac_cv_lib_expat_XML_SetXmlDeclHandler=no
13824
15659
fi
13825
 
rm -f conftest.err conftest.$ac_objext \
 
15660
 
 
15661
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13826
15662
      conftest$ac_exeext conftest.$ac_ext
13827
15663
LIBS=$ac_check_lib_save_LIBS
13828
15664
fi
13829
 
echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_SetXmlDeclHandler" >&5
13830
 
echo "${ECHO_T}$ac_cv_lib_expat_XML_SetXmlDeclHandler" >&6
 
15665
{ echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_SetXmlDeclHandler" >&5
 
15666
echo "${ECHO_T}$ac_cv_lib_expat_XML_SetXmlDeclHandler" >&6; }
13831
15667
if test $ac_cv_lib_expat_XML_SetXmlDeclHandler = yes; then
13832
15668
 
13833
15669
 
13838
15674
    neon_xml_parser_message="expat"
13839
15675
    NEON_LIBS="$NEON_LIBS -lexpat"
13840
15676
    neon_xml_parser=expat
 
15677
    { echo "$as_me:$LINENO: checking for XML_Size" >&5
 
15678
echo $ECHO_N "checking for XML_Size... $ECHO_C" >&6; }
 
15679
if test "${ac_cv_type_XML_Size+set}" = set; then
 
15680
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15681
else
 
15682
  cat >conftest.$ac_ext <<_ACEOF
 
15683
/* confdefs.h.  */
 
15684
_ACEOF
 
15685
cat confdefs.h >>conftest.$ac_ext
 
15686
cat >>conftest.$ac_ext <<_ACEOF
 
15687
/* end confdefs.h.  */
 
15688
#include <expat.h>
 
15689
 
 
15690
typedef XML_Size ac__type_new_;
 
15691
int
 
15692
main ()
 
15693
{
 
15694
if ((ac__type_new_ *) 0)
 
15695
  return 0;
 
15696
if (sizeof (ac__type_new_))
 
15697
  return 0;
 
15698
  ;
 
15699
  return 0;
 
15700
}
 
15701
_ACEOF
 
15702
rm -f conftest.$ac_objext
 
15703
if { (ac_try="$ac_compile"
 
15704
case "(($ac_try" in
 
15705
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15706
  *) ac_try_echo=$ac_try;;
 
15707
esac
 
15708
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15709
  (eval "$ac_compile") 2>conftest.er1
 
15710
  ac_status=$?
 
15711
  grep -v '^ *+' conftest.er1 >conftest.err
 
15712
  rm -f conftest.er1
 
15713
  cat conftest.err >&5
 
15714
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15715
  (exit $ac_status); } && {
 
15716
         test -z "$ac_c_werror_flag" ||
 
15717
         test ! -s conftest.err
 
15718
       } && test -s conftest.$ac_objext; then
 
15719
  ac_cv_type_XML_Size=yes
 
15720
else
 
15721
  echo "$as_me: failed program was:" >&5
 
15722
sed 's/^/| /' conftest.$ac_ext >&5
 
15723
 
 
15724
        ac_cv_type_XML_Size=no
 
15725
fi
 
15726
 
 
15727
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15728
fi
 
15729
{ echo "$as_me:$LINENO: result: $ac_cv_type_XML_Size" >&5
 
15730
echo "${ECHO_T}$ac_cv_type_XML_Size" >&6; }
 
15731
if test $ac_cv_type_XML_Size = yes; then
 
15732
 
 
15733
 
 
15734
 
 
15735
 
 
15736
{ echo "$as_me:$LINENO: checking for XML_Size" >&5
 
15737
echo $ECHO_N "checking for XML_Size... $ECHO_C" >&6; }
 
15738
if test "${ac_cv_type_XML_Size+set}" = set; then
 
15739
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15740
else
 
15741
  cat >conftest.$ac_ext <<_ACEOF
 
15742
/* confdefs.h.  */
 
15743
_ACEOF
 
15744
cat confdefs.h >>conftest.$ac_ext
 
15745
cat >>conftest.$ac_ext <<_ACEOF
 
15746
/* end confdefs.h.  */
 
15747
$ac_includes_default
 
15748
#include <expat.h>
 
15749
 
 
15750
typedef XML_Size ac__type_new_;
 
15751
int
 
15752
main ()
 
15753
{
 
15754
if ((ac__type_new_ *) 0)
 
15755
  return 0;
 
15756
if (sizeof (ac__type_new_))
 
15757
  return 0;
 
15758
  ;
 
15759
  return 0;
 
15760
}
 
15761
_ACEOF
 
15762
rm -f conftest.$ac_objext
 
15763
if { (ac_try="$ac_compile"
 
15764
case "(($ac_try" in
 
15765
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15766
  *) ac_try_echo=$ac_try;;
 
15767
esac
 
15768
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15769
  (eval "$ac_compile") 2>conftest.er1
 
15770
  ac_status=$?
 
15771
  grep -v '^ *+' conftest.er1 >conftest.err
 
15772
  rm -f conftest.er1
 
15773
  cat conftest.err >&5
 
15774
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15775
  (exit $ac_status); } && {
 
15776
         test -z "$ac_c_werror_flag" ||
 
15777
         test ! -s conftest.err
 
15778
       } && test -s conftest.$ac_objext; then
 
15779
  ac_cv_type_XML_Size=yes
 
15780
else
 
15781
  echo "$as_me: failed program was:" >&5
 
15782
sed 's/^/| /' conftest.$ac_ext >&5
 
15783
 
 
15784
        ac_cv_type_XML_Size=no
 
15785
fi
 
15786
 
 
15787
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15788
fi
 
15789
{ echo "$as_me:$LINENO: result: $ac_cv_type_XML_Size" >&5
 
15790
echo "${ECHO_T}$ac_cv_type_XML_Size" >&6; }
 
15791
 
 
15792
# The cast to long int works around a bug in the HP C Compiler
 
15793
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
15794
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
15795
# This bug is HP SR number 8606223364.
 
15796
{ echo "$as_me:$LINENO: checking size of XML_Size" >&5
 
15797
echo $ECHO_N "checking size of XML_Size... $ECHO_C" >&6; }
 
15798
if test "${ac_cv_sizeof_XML_Size+set}" = set; then
 
15799
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15800
else
 
15801
  if test "$cross_compiling" = yes; then
 
15802
  # Depending upon the size, compute the lo and hi bounds.
 
15803
cat >conftest.$ac_ext <<_ACEOF
 
15804
/* confdefs.h.  */
 
15805
_ACEOF
 
15806
cat confdefs.h >>conftest.$ac_ext
 
15807
cat >>conftest.$ac_ext <<_ACEOF
 
15808
/* end confdefs.h.  */
 
15809
$ac_includes_default
 
15810
#include <expat.h>
 
15811
 
 
15812
   typedef XML_Size ac__type_sizeof_;
 
15813
int
 
15814
main ()
 
15815
{
 
15816
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
15817
test_array [0] = 0
 
15818
 
 
15819
  ;
 
15820
  return 0;
 
15821
}
 
15822
_ACEOF
 
15823
rm -f conftest.$ac_objext
 
15824
if { (ac_try="$ac_compile"
 
15825
case "(($ac_try" in
 
15826
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15827
  *) ac_try_echo=$ac_try;;
 
15828
esac
 
15829
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15830
  (eval "$ac_compile") 2>conftest.er1
 
15831
  ac_status=$?
 
15832
  grep -v '^ *+' conftest.er1 >conftest.err
 
15833
  rm -f conftest.er1
 
15834
  cat conftest.err >&5
 
15835
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15836
  (exit $ac_status); } && {
 
15837
         test -z "$ac_c_werror_flag" ||
 
15838
         test ! -s conftest.err
 
15839
       } && test -s conftest.$ac_objext; then
 
15840
  ac_lo=0 ac_mid=0
 
15841
  while :; do
 
15842
    cat >conftest.$ac_ext <<_ACEOF
 
15843
/* confdefs.h.  */
 
15844
_ACEOF
 
15845
cat confdefs.h >>conftest.$ac_ext
 
15846
cat >>conftest.$ac_ext <<_ACEOF
 
15847
/* end confdefs.h.  */
 
15848
$ac_includes_default
 
15849
#include <expat.h>
 
15850
 
 
15851
   typedef XML_Size ac__type_sizeof_;
 
15852
int
 
15853
main ()
 
15854
{
 
15855
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
15856
test_array [0] = 0
 
15857
 
 
15858
  ;
 
15859
  return 0;
 
15860
}
 
15861
_ACEOF
 
15862
rm -f conftest.$ac_objext
 
15863
if { (ac_try="$ac_compile"
 
15864
case "(($ac_try" in
 
15865
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15866
  *) ac_try_echo=$ac_try;;
 
15867
esac
 
15868
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15869
  (eval "$ac_compile") 2>conftest.er1
 
15870
  ac_status=$?
 
15871
  grep -v '^ *+' conftest.er1 >conftest.err
 
15872
  rm -f conftest.er1
 
15873
  cat conftest.err >&5
 
15874
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15875
  (exit $ac_status); } && {
 
15876
         test -z "$ac_c_werror_flag" ||
 
15877
         test ! -s conftest.err
 
15878
       } && test -s conftest.$ac_objext; then
 
15879
  ac_hi=$ac_mid; break
 
15880
else
 
15881
  echo "$as_me: failed program was:" >&5
 
15882
sed 's/^/| /' conftest.$ac_ext >&5
 
15883
 
 
15884
        ac_lo=`expr $ac_mid + 1`
 
15885
                        if test $ac_lo -le $ac_mid; then
 
15886
                          ac_lo= ac_hi=
 
15887
                          break
 
15888
                        fi
 
15889
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
15890
fi
 
15891
 
 
15892
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15893
  done
 
15894
else
 
15895
  echo "$as_me: failed program was:" >&5
 
15896
sed 's/^/| /' conftest.$ac_ext >&5
 
15897
 
 
15898
        cat >conftest.$ac_ext <<_ACEOF
 
15899
/* confdefs.h.  */
 
15900
_ACEOF
 
15901
cat confdefs.h >>conftest.$ac_ext
 
15902
cat >>conftest.$ac_ext <<_ACEOF
 
15903
/* end confdefs.h.  */
 
15904
$ac_includes_default
 
15905
#include <expat.h>
 
15906
 
 
15907
   typedef XML_Size ac__type_sizeof_;
 
15908
int
 
15909
main ()
 
15910
{
 
15911
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
15912
test_array [0] = 0
 
15913
 
 
15914
  ;
 
15915
  return 0;
 
15916
}
 
15917
_ACEOF
 
15918
rm -f conftest.$ac_objext
 
15919
if { (ac_try="$ac_compile"
 
15920
case "(($ac_try" in
 
15921
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15922
  *) ac_try_echo=$ac_try;;
 
15923
esac
 
15924
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15925
  (eval "$ac_compile") 2>conftest.er1
 
15926
  ac_status=$?
 
15927
  grep -v '^ *+' conftest.er1 >conftest.err
 
15928
  rm -f conftest.er1
 
15929
  cat conftest.err >&5
 
15930
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15931
  (exit $ac_status); } && {
 
15932
         test -z "$ac_c_werror_flag" ||
 
15933
         test ! -s conftest.err
 
15934
       } && test -s conftest.$ac_objext; then
 
15935
  ac_hi=-1 ac_mid=-1
 
15936
  while :; do
 
15937
    cat >conftest.$ac_ext <<_ACEOF
 
15938
/* confdefs.h.  */
 
15939
_ACEOF
 
15940
cat confdefs.h >>conftest.$ac_ext
 
15941
cat >>conftest.$ac_ext <<_ACEOF
 
15942
/* end confdefs.h.  */
 
15943
$ac_includes_default
 
15944
#include <expat.h>
 
15945
 
 
15946
   typedef XML_Size ac__type_sizeof_;
 
15947
int
 
15948
main ()
 
15949
{
 
15950
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
15951
test_array [0] = 0
 
15952
 
 
15953
  ;
 
15954
  return 0;
 
15955
}
 
15956
_ACEOF
 
15957
rm -f conftest.$ac_objext
 
15958
if { (ac_try="$ac_compile"
 
15959
case "(($ac_try" in
 
15960
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15961
  *) ac_try_echo=$ac_try;;
 
15962
esac
 
15963
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15964
  (eval "$ac_compile") 2>conftest.er1
 
15965
  ac_status=$?
 
15966
  grep -v '^ *+' conftest.er1 >conftest.err
 
15967
  rm -f conftest.er1
 
15968
  cat conftest.err >&5
 
15969
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15970
  (exit $ac_status); } && {
 
15971
         test -z "$ac_c_werror_flag" ||
 
15972
         test ! -s conftest.err
 
15973
       } && test -s conftest.$ac_objext; then
 
15974
  ac_lo=$ac_mid; break
 
15975
else
 
15976
  echo "$as_me: failed program was:" >&5
 
15977
sed 's/^/| /' conftest.$ac_ext >&5
 
15978
 
 
15979
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
15980
                        if test $ac_mid -le $ac_hi; then
 
15981
                          ac_lo= ac_hi=
 
15982
                          break
 
15983
                        fi
 
15984
                        ac_mid=`expr 2 '*' $ac_mid`
 
15985
fi
 
15986
 
 
15987
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15988
  done
 
15989
else
 
15990
  echo "$as_me: failed program was:" >&5
 
15991
sed 's/^/| /' conftest.$ac_ext >&5
 
15992
 
 
15993
        ac_lo= ac_hi=
 
15994
fi
 
15995
 
 
15996
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15997
fi
 
15998
 
 
15999
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16000
# Binary search between lo and hi bounds.
 
16001
while test "x$ac_lo" != "x$ac_hi"; do
 
16002
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
16003
  cat >conftest.$ac_ext <<_ACEOF
 
16004
/* confdefs.h.  */
 
16005
_ACEOF
 
16006
cat confdefs.h >>conftest.$ac_ext
 
16007
cat >>conftest.$ac_ext <<_ACEOF
 
16008
/* end confdefs.h.  */
 
16009
$ac_includes_default
 
16010
#include <expat.h>
 
16011
 
 
16012
   typedef XML_Size ac__type_sizeof_;
 
16013
int
 
16014
main ()
 
16015
{
 
16016
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
16017
test_array [0] = 0
 
16018
 
 
16019
  ;
 
16020
  return 0;
 
16021
}
 
16022
_ACEOF
 
16023
rm -f conftest.$ac_objext
 
16024
if { (ac_try="$ac_compile"
 
16025
case "(($ac_try" in
 
16026
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16027
  *) ac_try_echo=$ac_try;;
 
16028
esac
 
16029
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16030
  (eval "$ac_compile") 2>conftest.er1
 
16031
  ac_status=$?
 
16032
  grep -v '^ *+' conftest.er1 >conftest.err
 
16033
  rm -f conftest.er1
 
16034
  cat conftest.err >&5
 
16035
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16036
  (exit $ac_status); } && {
 
16037
         test -z "$ac_c_werror_flag" ||
 
16038
         test ! -s conftest.err
 
16039
       } && test -s conftest.$ac_objext; then
 
16040
  ac_hi=$ac_mid
 
16041
else
 
16042
  echo "$as_me: failed program was:" >&5
 
16043
sed 's/^/| /' conftest.$ac_ext >&5
 
16044
 
 
16045
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
16046
fi
 
16047
 
 
16048
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16049
done
 
16050
case $ac_lo in
 
16051
?*) ac_cv_sizeof_XML_Size=$ac_lo;;
 
16052
'') if test "$ac_cv_type_XML_Size" = yes; then
 
16053
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (XML_Size)
 
16054
See \`config.log' for more details." >&5
 
16055
echo "$as_me: error: cannot compute sizeof (XML_Size)
 
16056
See \`config.log' for more details." >&2;}
 
16057
   { (exit 77); exit 77; }; }
 
16058
   else
 
16059
     ac_cv_sizeof_XML_Size=0
 
16060
   fi ;;
 
16061
esac
 
16062
else
 
16063
  cat >conftest.$ac_ext <<_ACEOF
 
16064
/* confdefs.h.  */
 
16065
_ACEOF
 
16066
cat confdefs.h >>conftest.$ac_ext
 
16067
cat >>conftest.$ac_ext <<_ACEOF
 
16068
/* end confdefs.h.  */
 
16069
$ac_includes_default
 
16070
#include <expat.h>
 
16071
 
 
16072
   typedef XML_Size ac__type_sizeof_;
 
16073
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
16074
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
16075
#include <stdio.h>
 
16076
#include <stdlib.h>
 
16077
int
 
16078
main ()
 
16079
{
 
16080
 
 
16081
  FILE *f = fopen ("conftest.val", "w");
 
16082
  if (! f)
 
16083
    return 1;
 
16084
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
16085
    {
 
16086
      long int i = longval ();
 
16087
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
16088
        return 1;
 
16089
      fprintf (f, "%ld\n", i);
 
16090
    }
 
16091
  else
 
16092
    {
 
16093
      unsigned long int i = ulongval ();
 
16094
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
16095
        return 1;
 
16096
      fprintf (f, "%lu\n", i);
 
16097
    }
 
16098
  return ferror (f) || fclose (f) != 0;
 
16099
 
 
16100
  ;
 
16101
  return 0;
 
16102
}
 
16103
_ACEOF
 
16104
rm -f conftest$ac_exeext
 
16105
if { (ac_try="$ac_link"
 
16106
case "(($ac_try" in
 
16107
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16108
  *) ac_try_echo=$ac_try;;
 
16109
esac
 
16110
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16111
  (eval "$ac_link") 2>&5
 
16112
  ac_status=$?
 
16113
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16114
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
16115
  { (case "(($ac_try" in
 
16116
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16117
  *) ac_try_echo=$ac_try;;
 
16118
esac
 
16119
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16120
  (eval "$ac_try") 2>&5
 
16121
  ac_status=$?
 
16122
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16123
  (exit $ac_status); }; }; then
 
16124
  ac_cv_sizeof_XML_Size=`cat conftest.val`
 
16125
else
 
16126
  echo "$as_me: program exited with status $ac_status" >&5
 
16127
echo "$as_me: failed program was:" >&5
 
16128
sed 's/^/| /' conftest.$ac_ext >&5
 
16129
 
 
16130
( exit $ac_status )
 
16131
if test "$ac_cv_type_XML_Size" = yes; then
 
16132
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (XML_Size)
 
16133
See \`config.log' for more details." >&5
 
16134
echo "$as_me: error: cannot compute sizeof (XML_Size)
 
16135
See \`config.log' for more details." >&2;}
 
16136
   { (exit 77); exit 77; }; }
 
16137
   else
 
16138
     ac_cv_sizeof_XML_Size=0
 
16139
   fi
 
16140
fi
 
16141
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
16142
fi
 
16143
rm -f conftest.val
 
16144
fi
 
16145
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_XML_Size" >&5
 
16146
echo "${ECHO_T}$ac_cv_sizeof_XML_Size" >&6; }
 
16147
 
 
16148
 
 
16149
 
 
16150
cat >>confdefs.h <<_ACEOF
 
16151
#define SIZEOF_XML_SIZE $ac_cv_sizeof_XML_Size
 
16152
_ACEOF
 
16153
 
 
16154
 
 
16155
 
 
16156
 
 
16157
 
 
16158
 
 
16159
 
 
16160
{ echo "$as_me:$LINENO: checking how to print XML_Size" >&5
 
16161
echo $ECHO_N "checking how to print XML_Size... $ECHO_C" >&6; }
 
16162
if test "${ne_cv_fmt_XML_Size+set}" = set; then
 
16163
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16164
else
 
16165
 
 
16166
ne_cv_fmt_XML_Size=none
 
16167
if test $ne_fmt_trycompile = yes; then
 
16168
  oflags="$CPPFLAGS"
 
16169
  # Consider format string mismatches as errors
 
16170
  CPPFLAGS="$CPPFLAGS -Wformat -Werror"
 
16171
    for str in d ld lld; do
 
16172
    cat >conftest.$ac_ext <<_ACEOF
 
16173
/* confdefs.h.  */
 
16174
_ACEOF
 
16175
cat confdefs.h >>conftest.$ac_ext
 
16176
cat >>conftest.$ac_ext <<_ACEOF
 
16177
/* end confdefs.h.  */
 
16178
#include <sys/types.h>
 
16179
#include <expat.h>
 
16180
#include <stdio.h>
 
16181
int
 
16182
main ()
 
16183
{
 
16184
XML_Size i = 1; printf("%$str", i);
 
16185
  ;
 
16186
  return 0;
 
16187
}
 
16188
_ACEOF
 
16189
rm -f conftest.$ac_objext
 
16190
if { (ac_try="$ac_compile"
 
16191
case "(($ac_try" in
 
16192
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16193
  *) ac_try_echo=$ac_try;;
 
16194
esac
 
16195
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16196
  (eval "$ac_compile") 2>conftest.er1
 
16197
  ac_status=$?
 
16198
  grep -v '^ *+' conftest.er1 >conftest.err
 
16199
  rm -f conftest.er1
 
16200
  cat conftest.err >&5
 
16201
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16202
  (exit $ac_status); } && {
 
16203
         test -z "$ac_c_werror_flag" ||
 
16204
         test ! -s conftest.err
 
16205
       } && test -s conftest.$ac_objext; then
 
16206
  ne_cv_fmt_XML_Size=$str; break
 
16207
else
 
16208
  echo "$as_me: failed program was:" >&5
 
16209
sed 's/^/| /' conftest.$ac_ext >&5
 
16210
 
 
16211
 
 
16212
fi
 
16213
 
 
16214
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16215
  done
 
16216
  CPPFLAGS=$oflags
 
16217
else
 
16218
  # Best guess. Don't have to be too precise since we probably won't
 
16219
  # get a warning message anyway.
 
16220
  case $ac_cv_sizeof_XML_Size in
 
16221
  $ac_cv_sizeof_int) ne_cv_fmt_XML_Size="d" ;;
 
16222
  $ac_cv_sizeof_long) ne_cv_fmt_XML_Size="ld" ;;
 
16223
  $ac_cv_sizeof_long_long) ne_cv_fmt_XML_Size="lld" ;;
 
16224
  esac
 
16225
fi
 
16226
 
 
16227
fi
 
16228
{ echo "$as_me:$LINENO: result: $ne_cv_fmt_XML_Size" >&5
 
16229
echo "${ECHO_T}$ne_cv_fmt_XML_Size" >&6; }
 
16230
 
 
16231
if test "x$ne_cv_fmt_XML_Size" = "xnone"; then
 
16232
  { { echo "$as_me:$LINENO: error: format string for XML_Size not found" >&5
 
16233
echo "$as_me: error: format string for XML_Size not found" >&2;}
 
16234
   { (exit 1); exit 1; }; }
 
16235
fi
 
16236
 
 
16237
 
 
16238
cat >>confdefs.h <<_ACEOF
 
16239
#define NE_FMT_XML_SIZE "$ne_cv_fmt_XML_Size"
 
16240
_ACEOF
 
16241
 
 
16242
 
 
16243
else
 
16244
  cat >>confdefs.h <<_ACEOF
 
16245
#define NE_FMT_XML_SIZE "d"
 
16246
_ACEOF
 
16247
 
 
16248
fi
 
16249
 
13841
16250
 
13842
16251
else
13843
16252
  { { echo "$as_me:$LINENO: error: expat library not found, cannot proceed" >&5
13861
16270
#define HAVE_EXPAT 1
13862
16271
_ACEOF
13863
16272
 
 
16273
       cat >>confdefs.h <<_ACEOF
 
16274
#define NE_FMT_XML_SIZE "d"
 
16275
_ACEOF
 
16276
 
13864
16277
       CPPFLAGS="$CPPFLAGS -I$ne_expdir"
13865
16278
       if test "x${NEON_TARGET}" = "xlibneon.la"; then
13866
16279
         NEON_LTLIBS=$with_expat
13881
16294
 
13882
16295
# Extract the first word of "xml2-config", so it can be a program name with args.
13883
16296
set dummy xml2-config; ac_word=$2
13884
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
13885
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
16297
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
16298
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13886
16299
if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
13887
16300
  echo $ECHO_N "(cached) $ECHO_C" >&6
13888
16301
else
13895
16308
  IFS=$as_save_IFS
13896
16309
  test -z "$as_dir" && as_dir=.
13897
16310
  for ac_exec_ext in '' $ac_executable_extensions; do
13898
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
16311
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13899
16312
    ac_cv_prog_XML2_CONFIG="xml2-config"
13900
16313
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13901
16314
    break 2
13902
16315
  fi
13903
16316
done
13904
16317
done
 
16318
IFS=$as_save_IFS
13905
16319
 
13906
16320
fi
13907
16321
fi
13908
16322
XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
13909
16323
if test -n "$XML2_CONFIG"; then
13910
 
  echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
13911
 
echo "${ECHO_T}$XML2_CONFIG" >&6
 
16324
  { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
 
16325
echo "${ECHO_T}$XML2_CONFIG" >&6; }
13912
16326
else
13913
 
  echo "$as_me:$LINENO: result: no" >&5
13914
 
echo "${ECHO_T}no" >&6
 
16327
  { echo "$as_me:$LINENO: result: no" >&5
 
16328
echo "${ECHO_T}no" >&6; }
13915
16329
fi
13916
16330
 
 
16331
 
13917
16332
if test -n "$XML2_CONFIG"; then
13918
16333
    neon_xml_parser_message="libxml `$XML2_CONFIG --version`"
13919
16334
 
13930
16345
for ac_header in libxml/xmlversion.h libxml/parser.h
13931
16346
do
13932
16347
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13933
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
13934
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
13935
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13936
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
16348
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
16349
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
16350
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
16351
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13937
16352
  echo $ECHO_N "(cached) $ECHO_C" >&6
13938
16353
fi
13939
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13940
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
16354
ac_res=`eval echo '${'$as_ac_Header'}'`
 
16355
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
16356
echo "${ECHO_T}$ac_res" >&6; }
13941
16357
else
13942
16358
  # Is the header compilable?
13943
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
13944
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
16359
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
16360
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13945
16361
cat >conftest.$ac_ext <<_ACEOF
13946
16362
/* confdefs.h.  */
13947
16363
_ACEOF
13952
16368
#include <$ac_header>
13953
16369
_ACEOF
13954
16370
rm -f conftest.$ac_objext
13955
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13956
 
  (eval $ac_compile) 2>conftest.er1
 
16371
if { (ac_try="$ac_compile"
 
16372
case "(($ac_try" in
 
16373
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16374
  *) ac_try_echo=$ac_try;;
 
16375
esac
 
16376
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16377
  (eval "$ac_compile") 2>conftest.er1
13957
16378
  ac_status=$?
13958
16379
  grep -v '^ *+' conftest.er1 >conftest.err
13959
16380
  rm -f conftest.er1
13960
16381
  cat conftest.err >&5
13961
16382
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962
 
  (exit $ac_status); } &&
13963
 
         { ac_try='test -z "$ac_c_werror_flag"
13964
 
                         || test ! -s conftest.err'
13965
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13966
 
  (eval $ac_try) 2>&5
13967
 
  ac_status=$?
13968
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969
 
  (exit $ac_status); }; } &&
13970
 
         { ac_try='test -s conftest.$ac_objext'
13971
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13972
 
  (eval $ac_try) 2>&5
13973
 
  ac_status=$?
13974
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975
 
  (exit $ac_status); }; }; then
 
16383
  (exit $ac_status); } && {
 
16384
         test -z "$ac_c_werror_flag" ||
 
16385
         test ! -s conftest.err
 
16386
       } && test -s conftest.$ac_objext; then
13976
16387
  ac_header_compiler=yes
13977
16388
else
13978
16389
  echo "$as_me: failed program was:" >&5
13979
16390
sed 's/^/| /' conftest.$ac_ext >&5
13980
16391
 
13981
 
ac_header_compiler=no
 
16392
        ac_header_compiler=no
13982
16393
fi
13983
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13984
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13985
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
16394
 
 
16395
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16396
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
16397
echo "${ECHO_T}$ac_header_compiler" >&6; }
13986
16398
 
13987
16399
# Is the header present?
13988
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
13989
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
16400
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
16401
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13990
16402
cat >conftest.$ac_ext <<_ACEOF
13991
16403
/* confdefs.h.  */
13992
16404
_ACEOF
13995
16407
/* end confdefs.h.  */
13996
16408
#include <$ac_header>
13997
16409
_ACEOF
13998
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13999
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
16410
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
16411
case "(($ac_try" in
 
16412
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16413
  *) ac_try_echo=$ac_try;;
 
16414
esac
 
16415
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16416
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14000
16417
  ac_status=$?
14001
16418
  grep -v '^ *+' conftest.er1 >conftest.err
14002
16419
  rm -f conftest.er1
14003
16420
  cat conftest.err >&5
14004
16421
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005
 
  (exit $ac_status); } >/dev/null; then
14006
 
  if test -s conftest.err; then
14007
 
    ac_cpp_err=$ac_c_preproc_warn_flag
14008
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14009
 
  else
14010
 
    ac_cpp_err=
14011
 
  fi
14012
 
else
14013
 
  ac_cpp_err=yes
14014
 
fi
14015
 
if test -z "$ac_cpp_err"; then
 
16422
  (exit $ac_status); } >/dev/null && {
 
16423
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
16424
         test ! -s conftest.err
 
16425
       }; then
14016
16426
  ac_header_preproc=yes
14017
16427
else
14018
16428
  echo "$as_me: failed program was:" >&5
14020
16430
 
14021
16431
  ac_header_preproc=no
14022
16432
fi
 
16433
 
14023
16434
rm -f conftest.err conftest.$ac_ext
14024
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14025
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
16435
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
16436
echo "${ECHO_T}$ac_header_preproc" >&6; }
14026
16437
 
14027
16438
# So?  What about this header?
14028
16439
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14046
16457
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14047
16458
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14048
16459
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14049
 
    (
14050
 
      cat <<\_ASBOX
 
16460
    ( cat <<\_ASBOX
14051
16461
## -------------------------------- ##
14052
16462
## Report this to sitecopy@lyra.org ##
14053
16463
## -------------------------------- ##
14054
16464
_ASBOX
14055
 
    ) |
14056
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
16465
     ) | sed "s/^/$as_me: WARNING:     /" >&2
14057
16466
    ;;
14058
16467
esac
14059
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
14060
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14061
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
16468
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
16469
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
16470
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14062
16471
  echo $ECHO_N "(cached) $ECHO_C" >&6
14063
16472
else
14064
16473
  eval "$as_ac_Header=\$ac_header_preproc"
14065
16474
fi
14066
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14067
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
16475
ac_res=`eval echo '${'$as_ac_Header'}'`
 
16476
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
16477
echo "${ECHO_T}$ac_res" >&6; }
14068
16478
 
14069
16479
fi
14070
16480
if test `eval echo '${'$as_ac_Header'}'` = yes; then
14094
16504
  if test "${neon_xml_parser}-${with_included_expat}" = "none-no"; then
14095
16505
 
14096
16506
if test "${ac_cv_header_expat_h+set}" = set; then
14097
 
  echo "$as_me:$LINENO: checking for expat.h" >&5
14098
 
echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
 
16507
  { echo "$as_me:$LINENO: checking for expat.h" >&5
 
16508
echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
14099
16509
if test "${ac_cv_header_expat_h+set}" = set; then
14100
16510
  echo $ECHO_N "(cached) $ECHO_C" >&6
14101
16511
fi
14102
 
echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
14103
 
echo "${ECHO_T}$ac_cv_header_expat_h" >&6
 
16512
{ echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
 
16513
echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
14104
16514
else
14105
16515
  # Is the header compilable?
14106
 
echo "$as_me:$LINENO: checking expat.h usability" >&5
14107
 
echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
 
16516
{ echo "$as_me:$LINENO: checking expat.h usability" >&5
 
16517
echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6; }
14108
16518
cat >conftest.$ac_ext <<_ACEOF
14109
16519
/* confdefs.h.  */
14110
16520
_ACEOF
14115
16525
#include <expat.h>
14116
16526
_ACEOF
14117
16527
rm -f conftest.$ac_objext
14118
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14119
 
  (eval $ac_compile) 2>conftest.er1
 
16528
if { (ac_try="$ac_compile"
 
16529
case "(($ac_try" in
 
16530
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16531
  *) ac_try_echo=$ac_try;;
 
16532
esac
 
16533
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16534
  (eval "$ac_compile") 2>conftest.er1
14120
16535
  ac_status=$?
14121
16536
  grep -v '^ *+' conftest.er1 >conftest.err
14122
16537
  rm -f conftest.er1
14123
16538
  cat conftest.err >&5
14124
16539
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125
 
  (exit $ac_status); } &&
14126
 
         { ac_try='test -z "$ac_c_werror_flag"
14127
 
                         || test ! -s conftest.err'
14128
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14129
 
  (eval $ac_try) 2>&5
14130
 
  ac_status=$?
14131
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132
 
  (exit $ac_status); }; } &&
14133
 
         { ac_try='test -s conftest.$ac_objext'
14134
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14135
 
  (eval $ac_try) 2>&5
14136
 
  ac_status=$?
14137
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138
 
  (exit $ac_status); }; }; then
 
16540
  (exit $ac_status); } && {
 
16541
         test -z "$ac_c_werror_flag" ||
 
16542
         test ! -s conftest.err
 
16543
       } && test -s conftest.$ac_objext; then
14139
16544
  ac_header_compiler=yes
14140
16545
else
14141
16546
  echo "$as_me: failed program was:" >&5
14142
16547
sed 's/^/| /' conftest.$ac_ext >&5
14143
16548
 
14144
 
ac_header_compiler=no
 
16549
        ac_header_compiler=no
14145
16550
fi
14146
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14147
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14148
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
16551
 
 
16552
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16553
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
16554
echo "${ECHO_T}$ac_header_compiler" >&6; }
14149
16555
 
14150
16556
# Is the header present?
14151
 
echo "$as_me:$LINENO: checking expat.h presence" >&5
14152
 
echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
 
16557
{ echo "$as_me:$LINENO: checking expat.h presence" >&5
 
16558
echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6; }
14153
16559
cat >conftest.$ac_ext <<_ACEOF
14154
16560
/* confdefs.h.  */
14155
16561
_ACEOF
14158
16564
/* end confdefs.h.  */
14159
16565
#include <expat.h>
14160
16566
_ACEOF
14161
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14162
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
16567
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
16568
case "(($ac_try" in
 
16569
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16570
  *) ac_try_echo=$ac_try;;
 
16571
esac
 
16572
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16573
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14163
16574
  ac_status=$?
14164
16575
  grep -v '^ *+' conftest.er1 >conftest.err
14165
16576
  rm -f conftest.er1
14166
16577
  cat conftest.err >&5
14167
16578
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168
 
  (exit $ac_status); } >/dev/null; then
14169
 
  if test -s conftest.err; then
14170
 
    ac_cpp_err=$ac_c_preproc_warn_flag
14171
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14172
 
  else
14173
 
    ac_cpp_err=
14174
 
  fi
14175
 
else
14176
 
  ac_cpp_err=yes
14177
 
fi
14178
 
if test -z "$ac_cpp_err"; then
 
16579
  (exit $ac_status); } >/dev/null && {
 
16580
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
16581
         test ! -s conftest.err
 
16582
       }; then
14179
16583
  ac_header_preproc=yes
14180
16584
else
14181
16585
  echo "$as_me: failed program was:" >&5
14183
16587
 
14184
16588
  ac_header_preproc=no
14185
16589
fi
 
16590
 
14186
16591
rm -f conftest.err conftest.$ac_ext
14187
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14188
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
16592
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
16593
echo "${ECHO_T}$ac_header_preproc" >&6; }
14189
16594
 
14190
16595
# So?  What about this header?
14191
16596
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14209
16614
echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
14210
16615
    { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
14211
16616
echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
14212
 
    (
14213
 
      cat <<\_ASBOX
 
16617
    ( cat <<\_ASBOX
14214
16618
## -------------------------------- ##
14215
16619
## Report this to sitecopy@lyra.org ##
14216
16620
## -------------------------------- ##
14217
16621
_ASBOX
14218
 
    ) |
14219
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
16622
     ) | sed "s/^/$as_me: WARNING:     /" >&2
14220
16623
    ;;
14221
16624
esac
14222
 
echo "$as_me:$LINENO: checking for expat.h" >&5
14223
 
echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
 
16625
{ echo "$as_me:$LINENO: checking for expat.h" >&5
 
16626
echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
14224
16627
if test "${ac_cv_header_expat_h+set}" = set; then
14225
16628
  echo $ECHO_N "(cached) $ECHO_C" >&6
14226
16629
else
14227
16630
  ac_cv_header_expat_h=$ac_header_preproc
14228
16631
fi
14229
 
echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
14230
 
echo "${ECHO_T}$ac_cv_header_expat_h" >&6
 
16632
{ echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
 
16633
echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
14231
16634
 
14232
16635
fi
14233
16636
if test $ac_cv_header_expat_h = yes; then
14234
 
  echo "$as_me:$LINENO: checking for XML_SetXmlDeclHandler in -lexpat" >&5
14235
 
echo $ECHO_N "checking for XML_SetXmlDeclHandler in -lexpat... $ECHO_C" >&6
 
16637
  { echo "$as_me:$LINENO: checking for XML_SetXmlDeclHandler in -lexpat" >&5
 
16638
echo $ECHO_N "checking for XML_SetXmlDeclHandler in -lexpat... $ECHO_C" >&6; }
14236
16639
if test "${ac_cv_lib_expat_XML_SetXmlDeclHandler+set}" = set; then
14237
16640
  echo $ECHO_N "(cached) $ECHO_C" >&6
14238
16641
else
14245
16648
cat >>conftest.$ac_ext <<_ACEOF
14246
16649
/* end confdefs.h.  */
14247
16650
 
14248
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
16651
/* Override any GCC internal prototype to avoid an error.
 
16652
   Use char because int might match the return type of a GCC
 
16653
   builtin and then its argument prototype would still apply.  */
14249
16654
#ifdef __cplusplus
14250
16655
extern "C"
14251
16656
#endif
14252
 
/* We use char because int might match the return type of a gcc2
14253
 
   builtin and then its argument prototype would still apply.  */
14254
16657
char XML_SetXmlDeclHandler ();
14255
16658
int
14256
16659
main ()
14257
16660
{
14258
 
XML_SetXmlDeclHandler ();
 
16661
return XML_SetXmlDeclHandler ();
14259
16662
  ;
14260
16663
  return 0;
14261
16664
}
14262
16665
_ACEOF
14263
16666
rm -f conftest.$ac_objext conftest$ac_exeext
14264
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14265
 
  (eval $ac_link) 2>conftest.er1
 
16667
if { (ac_try="$ac_link"
 
16668
case "(($ac_try" in
 
16669
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16670
  *) ac_try_echo=$ac_try;;
 
16671
esac
 
16672
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16673
  (eval "$ac_link") 2>conftest.er1
14266
16674
  ac_status=$?
14267
16675
  grep -v '^ *+' conftest.er1 >conftest.err
14268
16676
  rm -f conftest.er1
14269
16677
  cat conftest.err >&5
14270
16678
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271
 
  (exit $ac_status); } &&
14272
 
         { ac_try='test -z "$ac_c_werror_flag"
14273
 
                         || test ! -s conftest.err'
14274
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14275
 
  (eval $ac_try) 2>&5
14276
 
  ac_status=$?
14277
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278
 
  (exit $ac_status); }; } &&
14279
 
         { ac_try='test -s conftest$ac_exeext'
14280
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14281
 
  (eval $ac_try) 2>&5
14282
 
  ac_status=$?
14283
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284
 
  (exit $ac_status); }; }; then
 
16679
  (exit $ac_status); } && {
 
16680
         test -z "$ac_c_werror_flag" ||
 
16681
         test ! -s conftest.err
 
16682
       } && test -s conftest$ac_exeext &&
 
16683
       $as_test_x conftest$ac_exeext; then
14285
16684
  ac_cv_lib_expat_XML_SetXmlDeclHandler=yes
14286
16685
else
14287
16686
  echo "$as_me: failed program was:" >&5
14288
16687
sed 's/^/| /' conftest.$ac_ext >&5
14289
16688
 
14290
 
ac_cv_lib_expat_XML_SetXmlDeclHandler=no
 
16689
        ac_cv_lib_expat_XML_SetXmlDeclHandler=no
14291
16690
fi
14292
 
rm -f conftest.err conftest.$ac_objext \
 
16691
 
 
16692
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14293
16693
      conftest$ac_exeext conftest.$ac_ext
14294
16694
LIBS=$ac_check_lib_save_LIBS
14295
16695
fi
14296
 
echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_SetXmlDeclHandler" >&5
14297
 
echo "${ECHO_T}$ac_cv_lib_expat_XML_SetXmlDeclHandler" >&6
 
16696
{ echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_SetXmlDeclHandler" >&5
 
16697
echo "${ECHO_T}$ac_cv_lib_expat_XML_SetXmlDeclHandler" >&6; }
14298
16698
if test $ac_cv_lib_expat_XML_SetXmlDeclHandler = yes; then
14299
16699
 
14300
16700
 
14305
16705
    neon_xml_parser_message="expat"
14306
16706
    NEON_LIBS="$NEON_LIBS -lexpat"
14307
16707
    neon_xml_parser=expat
 
16708
    { echo "$as_me:$LINENO: checking for XML_Size" >&5
 
16709
echo $ECHO_N "checking for XML_Size... $ECHO_C" >&6; }
 
16710
if test "${ac_cv_type_XML_Size+set}" = set; then
 
16711
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16712
else
 
16713
  cat >conftest.$ac_ext <<_ACEOF
 
16714
/* confdefs.h.  */
 
16715
_ACEOF
 
16716
cat confdefs.h >>conftest.$ac_ext
 
16717
cat >>conftest.$ac_ext <<_ACEOF
 
16718
/* end confdefs.h.  */
 
16719
#include <expat.h>
 
16720
 
 
16721
typedef XML_Size ac__type_new_;
 
16722
int
 
16723
main ()
 
16724
{
 
16725
if ((ac__type_new_ *) 0)
 
16726
  return 0;
 
16727
if (sizeof (ac__type_new_))
 
16728
  return 0;
 
16729
  ;
 
16730
  return 0;
 
16731
}
 
16732
_ACEOF
 
16733
rm -f conftest.$ac_objext
 
16734
if { (ac_try="$ac_compile"
 
16735
case "(($ac_try" in
 
16736
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16737
  *) ac_try_echo=$ac_try;;
 
16738
esac
 
16739
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16740
  (eval "$ac_compile") 2>conftest.er1
 
16741
  ac_status=$?
 
16742
  grep -v '^ *+' conftest.er1 >conftest.err
 
16743
  rm -f conftest.er1
 
16744
  cat conftest.err >&5
 
16745
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16746
  (exit $ac_status); } && {
 
16747
         test -z "$ac_c_werror_flag" ||
 
16748
         test ! -s conftest.err
 
16749
       } && test -s conftest.$ac_objext; then
 
16750
  ac_cv_type_XML_Size=yes
 
16751
else
 
16752
  echo "$as_me: failed program was:" >&5
 
16753
sed 's/^/| /' conftest.$ac_ext >&5
 
16754
 
 
16755
        ac_cv_type_XML_Size=no
 
16756
fi
 
16757
 
 
16758
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16759
fi
 
16760
{ echo "$as_me:$LINENO: result: $ac_cv_type_XML_Size" >&5
 
16761
echo "${ECHO_T}$ac_cv_type_XML_Size" >&6; }
 
16762
if test $ac_cv_type_XML_Size = yes; then
 
16763
 
 
16764
 
 
16765
 
 
16766
 
 
16767
{ echo "$as_me:$LINENO: checking for XML_Size" >&5
 
16768
echo $ECHO_N "checking for XML_Size... $ECHO_C" >&6; }
 
16769
if test "${ac_cv_type_XML_Size+set}" = set; then
 
16770
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16771
else
 
16772
  cat >conftest.$ac_ext <<_ACEOF
 
16773
/* confdefs.h.  */
 
16774
_ACEOF
 
16775
cat confdefs.h >>conftest.$ac_ext
 
16776
cat >>conftest.$ac_ext <<_ACEOF
 
16777
/* end confdefs.h.  */
 
16778
$ac_includes_default
 
16779
#include <expat.h>
 
16780
 
 
16781
typedef XML_Size ac__type_new_;
 
16782
int
 
16783
main ()
 
16784
{
 
16785
if ((ac__type_new_ *) 0)
 
16786
  return 0;
 
16787
if (sizeof (ac__type_new_))
 
16788
  return 0;
 
16789
  ;
 
16790
  return 0;
 
16791
}
 
16792
_ACEOF
 
16793
rm -f conftest.$ac_objext
 
16794
if { (ac_try="$ac_compile"
 
16795
case "(($ac_try" in
 
16796
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16797
  *) ac_try_echo=$ac_try;;
 
16798
esac
 
16799
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16800
  (eval "$ac_compile") 2>conftest.er1
 
16801
  ac_status=$?
 
16802
  grep -v '^ *+' conftest.er1 >conftest.err
 
16803
  rm -f conftest.er1
 
16804
  cat conftest.err >&5
 
16805
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16806
  (exit $ac_status); } && {
 
16807
         test -z "$ac_c_werror_flag" ||
 
16808
         test ! -s conftest.err
 
16809
       } && test -s conftest.$ac_objext; then
 
16810
  ac_cv_type_XML_Size=yes
 
16811
else
 
16812
  echo "$as_me: failed program was:" >&5
 
16813
sed 's/^/| /' conftest.$ac_ext >&5
 
16814
 
 
16815
        ac_cv_type_XML_Size=no
 
16816
fi
 
16817
 
 
16818
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16819
fi
 
16820
{ echo "$as_me:$LINENO: result: $ac_cv_type_XML_Size" >&5
 
16821
echo "${ECHO_T}$ac_cv_type_XML_Size" >&6; }
 
16822
 
 
16823
# The cast to long int works around a bug in the HP C Compiler
 
16824
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
16825
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
16826
# This bug is HP SR number 8606223364.
 
16827
{ echo "$as_me:$LINENO: checking size of XML_Size" >&5
 
16828
echo $ECHO_N "checking size of XML_Size... $ECHO_C" >&6; }
 
16829
if test "${ac_cv_sizeof_XML_Size+set}" = set; then
 
16830
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16831
else
 
16832
  if test "$cross_compiling" = yes; then
 
16833
  # Depending upon the size, compute the lo and hi bounds.
 
16834
cat >conftest.$ac_ext <<_ACEOF
 
16835
/* confdefs.h.  */
 
16836
_ACEOF
 
16837
cat confdefs.h >>conftest.$ac_ext
 
16838
cat >>conftest.$ac_ext <<_ACEOF
 
16839
/* end confdefs.h.  */
 
16840
$ac_includes_default
 
16841
#include <expat.h>
 
16842
 
 
16843
   typedef XML_Size ac__type_sizeof_;
 
16844
int
 
16845
main ()
 
16846
{
 
16847
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
16848
test_array [0] = 0
 
16849
 
 
16850
  ;
 
16851
  return 0;
 
16852
}
 
16853
_ACEOF
 
16854
rm -f conftest.$ac_objext
 
16855
if { (ac_try="$ac_compile"
 
16856
case "(($ac_try" in
 
16857
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16858
  *) ac_try_echo=$ac_try;;
 
16859
esac
 
16860
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16861
  (eval "$ac_compile") 2>conftest.er1
 
16862
  ac_status=$?
 
16863
  grep -v '^ *+' conftest.er1 >conftest.err
 
16864
  rm -f conftest.er1
 
16865
  cat conftest.err >&5
 
16866
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16867
  (exit $ac_status); } && {
 
16868
         test -z "$ac_c_werror_flag" ||
 
16869
         test ! -s conftest.err
 
16870
       } && test -s conftest.$ac_objext; then
 
16871
  ac_lo=0 ac_mid=0
 
16872
  while :; do
 
16873
    cat >conftest.$ac_ext <<_ACEOF
 
16874
/* confdefs.h.  */
 
16875
_ACEOF
 
16876
cat confdefs.h >>conftest.$ac_ext
 
16877
cat >>conftest.$ac_ext <<_ACEOF
 
16878
/* end confdefs.h.  */
 
16879
$ac_includes_default
 
16880
#include <expat.h>
 
16881
 
 
16882
   typedef XML_Size ac__type_sizeof_;
 
16883
int
 
16884
main ()
 
16885
{
 
16886
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
16887
test_array [0] = 0
 
16888
 
 
16889
  ;
 
16890
  return 0;
 
16891
}
 
16892
_ACEOF
 
16893
rm -f conftest.$ac_objext
 
16894
if { (ac_try="$ac_compile"
 
16895
case "(($ac_try" in
 
16896
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16897
  *) ac_try_echo=$ac_try;;
 
16898
esac
 
16899
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16900
  (eval "$ac_compile") 2>conftest.er1
 
16901
  ac_status=$?
 
16902
  grep -v '^ *+' conftest.er1 >conftest.err
 
16903
  rm -f conftest.er1
 
16904
  cat conftest.err >&5
 
16905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16906
  (exit $ac_status); } && {
 
16907
         test -z "$ac_c_werror_flag" ||
 
16908
         test ! -s conftest.err
 
16909
       } && test -s conftest.$ac_objext; then
 
16910
  ac_hi=$ac_mid; break
 
16911
else
 
16912
  echo "$as_me: failed program was:" >&5
 
16913
sed 's/^/| /' conftest.$ac_ext >&5
 
16914
 
 
16915
        ac_lo=`expr $ac_mid + 1`
 
16916
                        if test $ac_lo -le $ac_mid; then
 
16917
                          ac_lo= ac_hi=
 
16918
                          break
 
16919
                        fi
 
16920
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
16921
fi
 
16922
 
 
16923
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16924
  done
 
16925
else
 
16926
  echo "$as_me: failed program was:" >&5
 
16927
sed 's/^/| /' conftest.$ac_ext >&5
 
16928
 
 
16929
        cat >conftest.$ac_ext <<_ACEOF
 
16930
/* confdefs.h.  */
 
16931
_ACEOF
 
16932
cat confdefs.h >>conftest.$ac_ext
 
16933
cat >>conftest.$ac_ext <<_ACEOF
 
16934
/* end confdefs.h.  */
 
16935
$ac_includes_default
 
16936
#include <expat.h>
 
16937
 
 
16938
   typedef XML_Size ac__type_sizeof_;
 
16939
int
 
16940
main ()
 
16941
{
 
16942
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
16943
test_array [0] = 0
 
16944
 
 
16945
  ;
 
16946
  return 0;
 
16947
}
 
16948
_ACEOF
 
16949
rm -f conftest.$ac_objext
 
16950
if { (ac_try="$ac_compile"
 
16951
case "(($ac_try" in
 
16952
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16953
  *) ac_try_echo=$ac_try;;
 
16954
esac
 
16955
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16956
  (eval "$ac_compile") 2>conftest.er1
 
16957
  ac_status=$?
 
16958
  grep -v '^ *+' conftest.er1 >conftest.err
 
16959
  rm -f conftest.er1
 
16960
  cat conftest.err >&5
 
16961
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16962
  (exit $ac_status); } && {
 
16963
         test -z "$ac_c_werror_flag" ||
 
16964
         test ! -s conftest.err
 
16965
       } && test -s conftest.$ac_objext; then
 
16966
  ac_hi=-1 ac_mid=-1
 
16967
  while :; do
 
16968
    cat >conftest.$ac_ext <<_ACEOF
 
16969
/* confdefs.h.  */
 
16970
_ACEOF
 
16971
cat confdefs.h >>conftest.$ac_ext
 
16972
cat >>conftest.$ac_ext <<_ACEOF
 
16973
/* end confdefs.h.  */
 
16974
$ac_includes_default
 
16975
#include <expat.h>
 
16976
 
 
16977
   typedef XML_Size ac__type_sizeof_;
 
16978
int
 
16979
main ()
 
16980
{
 
16981
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
16982
test_array [0] = 0
 
16983
 
 
16984
  ;
 
16985
  return 0;
 
16986
}
 
16987
_ACEOF
 
16988
rm -f conftest.$ac_objext
 
16989
if { (ac_try="$ac_compile"
 
16990
case "(($ac_try" in
 
16991
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16992
  *) ac_try_echo=$ac_try;;
 
16993
esac
 
16994
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16995
  (eval "$ac_compile") 2>conftest.er1
 
16996
  ac_status=$?
 
16997
  grep -v '^ *+' conftest.er1 >conftest.err
 
16998
  rm -f conftest.er1
 
16999
  cat conftest.err >&5
 
17000
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17001
  (exit $ac_status); } && {
 
17002
         test -z "$ac_c_werror_flag" ||
 
17003
         test ! -s conftest.err
 
17004
       } && test -s conftest.$ac_objext; then
 
17005
  ac_lo=$ac_mid; break
 
17006
else
 
17007
  echo "$as_me: failed program was:" >&5
 
17008
sed 's/^/| /' conftest.$ac_ext >&5
 
17009
 
 
17010
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
17011
                        if test $ac_mid -le $ac_hi; then
 
17012
                          ac_lo= ac_hi=
 
17013
                          break
 
17014
                        fi
 
17015
                        ac_mid=`expr 2 '*' $ac_mid`
 
17016
fi
 
17017
 
 
17018
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17019
  done
 
17020
else
 
17021
  echo "$as_me: failed program was:" >&5
 
17022
sed 's/^/| /' conftest.$ac_ext >&5
 
17023
 
 
17024
        ac_lo= ac_hi=
 
17025
fi
 
17026
 
 
17027
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17028
fi
 
17029
 
 
17030
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17031
# Binary search between lo and hi bounds.
 
17032
while test "x$ac_lo" != "x$ac_hi"; do
 
17033
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
17034
  cat >conftest.$ac_ext <<_ACEOF
 
17035
/* confdefs.h.  */
 
17036
_ACEOF
 
17037
cat confdefs.h >>conftest.$ac_ext
 
17038
cat >>conftest.$ac_ext <<_ACEOF
 
17039
/* end confdefs.h.  */
 
17040
$ac_includes_default
 
17041
#include <expat.h>
 
17042
 
 
17043
   typedef XML_Size ac__type_sizeof_;
 
17044
int
 
17045
main ()
 
17046
{
 
17047
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
17048
test_array [0] = 0
 
17049
 
 
17050
  ;
 
17051
  return 0;
 
17052
}
 
17053
_ACEOF
 
17054
rm -f conftest.$ac_objext
 
17055
if { (ac_try="$ac_compile"
 
17056
case "(($ac_try" in
 
17057
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17058
  *) ac_try_echo=$ac_try;;
 
17059
esac
 
17060
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17061
  (eval "$ac_compile") 2>conftest.er1
 
17062
  ac_status=$?
 
17063
  grep -v '^ *+' conftest.er1 >conftest.err
 
17064
  rm -f conftest.er1
 
17065
  cat conftest.err >&5
 
17066
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17067
  (exit $ac_status); } && {
 
17068
         test -z "$ac_c_werror_flag" ||
 
17069
         test ! -s conftest.err
 
17070
       } && test -s conftest.$ac_objext; then
 
17071
  ac_hi=$ac_mid
 
17072
else
 
17073
  echo "$as_me: failed program was:" >&5
 
17074
sed 's/^/| /' conftest.$ac_ext >&5
 
17075
 
 
17076
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
17077
fi
 
17078
 
 
17079
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17080
done
 
17081
case $ac_lo in
 
17082
?*) ac_cv_sizeof_XML_Size=$ac_lo;;
 
17083
'') if test "$ac_cv_type_XML_Size" = yes; then
 
17084
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (XML_Size)
 
17085
See \`config.log' for more details." >&5
 
17086
echo "$as_me: error: cannot compute sizeof (XML_Size)
 
17087
See \`config.log' for more details." >&2;}
 
17088
   { (exit 77); exit 77; }; }
 
17089
   else
 
17090
     ac_cv_sizeof_XML_Size=0
 
17091
   fi ;;
 
17092
esac
 
17093
else
 
17094
  cat >conftest.$ac_ext <<_ACEOF
 
17095
/* confdefs.h.  */
 
17096
_ACEOF
 
17097
cat confdefs.h >>conftest.$ac_ext
 
17098
cat >>conftest.$ac_ext <<_ACEOF
 
17099
/* end confdefs.h.  */
 
17100
$ac_includes_default
 
17101
#include <expat.h>
 
17102
 
 
17103
   typedef XML_Size ac__type_sizeof_;
 
17104
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
17105
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
17106
#include <stdio.h>
 
17107
#include <stdlib.h>
 
17108
int
 
17109
main ()
 
17110
{
 
17111
 
 
17112
  FILE *f = fopen ("conftest.val", "w");
 
17113
  if (! f)
 
17114
    return 1;
 
17115
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
17116
    {
 
17117
      long int i = longval ();
 
17118
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
17119
        return 1;
 
17120
      fprintf (f, "%ld\n", i);
 
17121
    }
 
17122
  else
 
17123
    {
 
17124
      unsigned long int i = ulongval ();
 
17125
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
17126
        return 1;
 
17127
      fprintf (f, "%lu\n", i);
 
17128
    }
 
17129
  return ferror (f) || fclose (f) != 0;
 
17130
 
 
17131
  ;
 
17132
  return 0;
 
17133
}
 
17134
_ACEOF
 
17135
rm -f conftest$ac_exeext
 
17136
if { (ac_try="$ac_link"
 
17137
case "(($ac_try" in
 
17138
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17139
  *) ac_try_echo=$ac_try;;
 
17140
esac
 
17141
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17142
  (eval "$ac_link") 2>&5
 
17143
  ac_status=$?
 
17144
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17145
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
17146
  { (case "(($ac_try" in
 
17147
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17148
  *) ac_try_echo=$ac_try;;
 
17149
esac
 
17150
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17151
  (eval "$ac_try") 2>&5
 
17152
  ac_status=$?
 
17153
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17154
  (exit $ac_status); }; }; then
 
17155
  ac_cv_sizeof_XML_Size=`cat conftest.val`
 
17156
else
 
17157
  echo "$as_me: program exited with status $ac_status" >&5
 
17158
echo "$as_me: failed program was:" >&5
 
17159
sed 's/^/| /' conftest.$ac_ext >&5
 
17160
 
 
17161
( exit $ac_status )
 
17162
if test "$ac_cv_type_XML_Size" = yes; then
 
17163
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (XML_Size)
 
17164
See \`config.log' for more details." >&5
 
17165
echo "$as_me: error: cannot compute sizeof (XML_Size)
 
17166
See \`config.log' for more details." >&2;}
 
17167
   { (exit 77); exit 77; }; }
 
17168
   else
 
17169
     ac_cv_sizeof_XML_Size=0
 
17170
   fi
 
17171
fi
 
17172
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
17173
fi
 
17174
rm -f conftest.val
 
17175
fi
 
17176
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_XML_Size" >&5
 
17177
echo "${ECHO_T}$ac_cv_sizeof_XML_Size" >&6; }
 
17178
 
 
17179
 
 
17180
 
 
17181
cat >>confdefs.h <<_ACEOF
 
17182
#define SIZEOF_XML_SIZE $ac_cv_sizeof_XML_Size
 
17183
_ACEOF
 
17184
 
 
17185
 
 
17186
 
 
17187
 
 
17188
 
 
17189
 
 
17190
 
 
17191
{ echo "$as_me:$LINENO: checking how to print XML_Size" >&5
 
17192
echo $ECHO_N "checking how to print XML_Size... $ECHO_C" >&6; }
 
17193
if test "${ne_cv_fmt_XML_Size+set}" = set; then
 
17194
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17195
else
 
17196
 
 
17197
ne_cv_fmt_XML_Size=none
 
17198
if test $ne_fmt_trycompile = yes; then
 
17199
  oflags="$CPPFLAGS"
 
17200
  # Consider format string mismatches as errors
 
17201
  CPPFLAGS="$CPPFLAGS -Wformat -Werror"
 
17202
    for str in d ld lld; do
 
17203
    cat >conftest.$ac_ext <<_ACEOF
 
17204
/* confdefs.h.  */
 
17205
_ACEOF
 
17206
cat confdefs.h >>conftest.$ac_ext
 
17207
cat >>conftest.$ac_ext <<_ACEOF
 
17208
/* end confdefs.h.  */
 
17209
#include <sys/types.h>
 
17210
#include <expat.h>
 
17211
#include <stdio.h>
 
17212
int
 
17213
main ()
 
17214
{
 
17215
XML_Size i = 1; printf("%$str", i);
 
17216
  ;
 
17217
  return 0;
 
17218
}
 
17219
_ACEOF
 
17220
rm -f conftest.$ac_objext
 
17221
if { (ac_try="$ac_compile"
 
17222
case "(($ac_try" in
 
17223
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17224
  *) ac_try_echo=$ac_try;;
 
17225
esac
 
17226
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17227
  (eval "$ac_compile") 2>conftest.er1
 
17228
  ac_status=$?
 
17229
  grep -v '^ *+' conftest.er1 >conftest.err
 
17230
  rm -f conftest.er1
 
17231
  cat conftest.err >&5
 
17232
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17233
  (exit $ac_status); } && {
 
17234
         test -z "$ac_c_werror_flag" ||
 
17235
         test ! -s conftest.err
 
17236
       } && test -s conftest.$ac_objext; then
 
17237
  ne_cv_fmt_XML_Size=$str; break
 
17238
else
 
17239
  echo "$as_me: failed program was:" >&5
 
17240
sed 's/^/| /' conftest.$ac_ext >&5
 
17241
 
 
17242
 
 
17243
fi
 
17244
 
 
17245
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17246
  done
 
17247
  CPPFLAGS=$oflags
 
17248
else
 
17249
  # Best guess. Don't have to be too precise since we probably won't
 
17250
  # get a warning message anyway.
 
17251
  case $ac_cv_sizeof_XML_Size in
 
17252
  $ac_cv_sizeof_int) ne_cv_fmt_XML_Size="d" ;;
 
17253
  $ac_cv_sizeof_long) ne_cv_fmt_XML_Size="ld" ;;
 
17254
  $ac_cv_sizeof_long_long) ne_cv_fmt_XML_Size="lld" ;;
 
17255
  esac
 
17256
fi
 
17257
 
 
17258
fi
 
17259
{ echo "$as_me:$LINENO: result: $ne_cv_fmt_XML_Size" >&5
 
17260
echo "${ECHO_T}$ne_cv_fmt_XML_Size" >&6; }
 
17261
 
 
17262
if test "x$ne_cv_fmt_XML_Size" = "xnone"; then
 
17263
  { { echo "$as_me:$LINENO: error: format string for XML_Size not found" >&5
 
17264
echo "$as_me: error: format string for XML_Size not found" >&2;}
 
17265
   { (exit 1); exit 1; }; }
 
17266
fi
 
17267
 
 
17268
 
 
17269
cat >>confdefs.h <<_ACEOF
 
17270
#define NE_FMT_XML_SIZE "$ne_cv_fmt_XML_Size"
 
17271
_ACEOF
 
17272
 
 
17273
 
 
17274
else
 
17275
  cat >>confdefs.h <<_ACEOF
 
17276
#define NE_FMT_XML_SIZE "d"
 
17277
_ACEOF
 
17278
 
 
17279
fi
 
17280
 
14308
17281
 
14309
17282
else
14310
17283
 
14311
17284
# Extract the first word of "xml2-config", so it can be a program name with args.
14312
17285
set dummy xml2-config; ac_word=$2
14313
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
14314
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
17286
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
17287
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14315
17288
if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
14316
17289
  echo $ECHO_N "(cached) $ECHO_C" >&6
14317
17290
else
14324
17297
  IFS=$as_save_IFS
14325
17298
  test -z "$as_dir" && as_dir=.
14326
17299
  for ac_exec_ext in '' $ac_executable_extensions; do
14327
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
17300
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14328
17301
    ac_cv_prog_XML2_CONFIG="xml2-config"
14329
17302
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14330
17303
    break 2
14331
17304
  fi
14332
17305
done
14333
17306
done
 
17307
IFS=$as_save_IFS
14334
17308
 
14335
17309
fi
14336
17310
fi
14337
17311
XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
14338
17312
if test -n "$XML2_CONFIG"; then
14339
 
  echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
14340
 
echo "${ECHO_T}$XML2_CONFIG" >&6
 
17313
  { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
 
17314
echo "${ECHO_T}$XML2_CONFIG" >&6; }
14341
17315
else
14342
 
  echo "$as_me:$LINENO: result: no" >&5
14343
 
echo "${ECHO_T}no" >&6
 
17316
  { echo "$as_me:$LINENO: result: no" >&5
 
17317
echo "${ECHO_T}no" >&6; }
14344
17318
fi
14345
17319
 
 
17320
 
14346
17321
if test -n "$XML2_CONFIG"; then
14347
17322
    neon_xml_parser_message="libxml `$XML2_CONFIG --version`"
14348
17323
 
14359
17334
for ac_header in libxml/xmlversion.h libxml/parser.h
14360
17335
do
14361
17336
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14362
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
14363
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
14364
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14365
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
17337
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
17338
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
17339
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
17340
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14366
17341
  echo $ECHO_N "(cached) $ECHO_C" >&6
14367
17342
fi
14368
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14369
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
17343
ac_res=`eval echo '${'$as_ac_Header'}'`
 
17344
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
17345
echo "${ECHO_T}$ac_res" >&6; }
14370
17346
else
14371
17347
  # Is the header compilable?
14372
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
14373
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
17348
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
17349
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14374
17350
cat >conftest.$ac_ext <<_ACEOF
14375
17351
/* confdefs.h.  */
14376
17352
_ACEOF
14381
17357
#include <$ac_header>
14382
17358
_ACEOF
14383
17359
rm -f conftest.$ac_objext
14384
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14385
 
  (eval $ac_compile) 2>conftest.er1
 
17360
if { (ac_try="$ac_compile"
 
17361
case "(($ac_try" in
 
17362
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17363
  *) ac_try_echo=$ac_try;;
 
17364
esac
 
17365
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17366
  (eval "$ac_compile") 2>conftest.er1
14386
17367
  ac_status=$?
14387
17368
  grep -v '^ *+' conftest.er1 >conftest.err
14388
17369
  rm -f conftest.er1
14389
17370
  cat conftest.err >&5
14390
17371
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391
 
  (exit $ac_status); } &&
14392
 
         { ac_try='test -z "$ac_c_werror_flag"
14393
 
                         || test ! -s conftest.err'
14394
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14395
 
  (eval $ac_try) 2>&5
14396
 
  ac_status=$?
14397
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398
 
  (exit $ac_status); }; } &&
14399
 
         { ac_try='test -s conftest.$ac_objext'
14400
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14401
 
  (eval $ac_try) 2>&5
14402
 
  ac_status=$?
14403
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404
 
  (exit $ac_status); }; }; then
 
17372
  (exit $ac_status); } && {
 
17373
         test -z "$ac_c_werror_flag" ||
 
17374
         test ! -s conftest.err
 
17375
       } && test -s conftest.$ac_objext; then
14405
17376
  ac_header_compiler=yes
14406
17377
else
14407
17378
  echo "$as_me: failed program was:" >&5
14408
17379
sed 's/^/| /' conftest.$ac_ext >&5
14409
17380
 
14410
 
ac_header_compiler=no
 
17381
        ac_header_compiler=no
14411
17382
fi
14412
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14413
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14414
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
17383
 
 
17384
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17385
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
17386
echo "${ECHO_T}$ac_header_compiler" >&6; }
14415
17387
 
14416
17388
# Is the header present?
14417
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
14418
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
17389
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
17390
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14419
17391
cat >conftest.$ac_ext <<_ACEOF
14420
17392
/* confdefs.h.  */
14421
17393
_ACEOF
14424
17396
/* end confdefs.h.  */
14425
17397
#include <$ac_header>
14426
17398
_ACEOF
14427
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14428
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
17399
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
17400
case "(($ac_try" in
 
17401
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17402
  *) ac_try_echo=$ac_try;;
 
17403
esac
 
17404
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17405
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14429
17406
  ac_status=$?
14430
17407
  grep -v '^ *+' conftest.er1 >conftest.err
14431
17408
  rm -f conftest.er1
14432
17409
  cat conftest.err >&5
14433
17410
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434
 
  (exit $ac_status); } >/dev/null; then
14435
 
  if test -s conftest.err; then
14436
 
    ac_cpp_err=$ac_c_preproc_warn_flag
14437
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14438
 
  else
14439
 
    ac_cpp_err=
14440
 
  fi
14441
 
else
14442
 
  ac_cpp_err=yes
14443
 
fi
14444
 
if test -z "$ac_cpp_err"; then
 
17411
  (exit $ac_status); } >/dev/null && {
 
17412
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
17413
         test ! -s conftest.err
 
17414
       }; then
14445
17415
  ac_header_preproc=yes
14446
17416
else
14447
17417
  echo "$as_me: failed program was:" >&5
14449
17419
 
14450
17420
  ac_header_preproc=no
14451
17421
fi
 
17422
 
14452
17423
rm -f conftest.err conftest.$ac_ext
14453
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14454
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
17424
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
17425
echo "${ECHO_T}$ac_header_preproc" >&6; }
14455
17426
 
14456
17427
# So?  What about this header?
14457
17428
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14475
17446
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14476
17447
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14477
17448
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14478
 
    (
14479
 
      cat <<\_ASBOX
 
17449
    ( cat <<\_ASBOX
14480
17450
## -------------------------------- ##
14481
17451
## Report this to sitecopy@lyra.org ##
14482
17452
## -------------------------------- ##
14483
17453
_ASBOX
14484
 
    ) |
14485
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
17454
     ) | sed "s/^/$as_me: WARNING:     /" >&2
14486
17455
    ;;
14487
17456
esac
14488
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
14489
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14490
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
17457
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
17458
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
17459
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14491
17460
  echo $ECHO_N "(cached) $ECHO_C" >&6
14492
17461
else
14493
17462
  eval "$as_ac_Header=\$ac_header_preproc"
14494
17463
fi
14495
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14496
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
17464
ac_res=`eval echo '${'$as_ac_Header'}'`
 
17465
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
17466
echo "${ECHO_T}$ac_res" >&6; }
14497
17467
 
14498
17468
fi
14499
17469
if test `eval echo '${'$as_ac_Header'}'` = yes; then
14521
17491
 
14522
17492
# Extract the first word of "xml2-config", so it can be a program name with args.
14523
17493
set dummy xml2-config; ac_word=$2
14524
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
14525
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
17494
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
17495
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14526
17496
if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
14527
17497
  echo $ECHO_N "(cached) $ECHO_C" >&6
14528
17498
else
14535
17505
  IFS=$as_save_IFS
14536
17506
  test -z "$as_dir" && as_dir=.
14537
17507
  for ac_exec_ext in '' $ac_executable_extensions; do
14538
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
17508
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14539
17509
    ac_cv_prog_XML2_CONFIG="xml2-config"
14540
17510
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14541
17511
    break 2
14542
17512
  fi
14543
17513
done
14544
17514
done
 
17515
IFS=$as_save_IFS
14545
17516
 
14546
17517
fi
14547
17518
fi
14548
17519
XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
14549
17520
if test -n "$XML2_CONFIG"; then
14550
 
  echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
14551
 
echo "${ECHO_T}$XML2_CONFIG" >&6
 
17521
  { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
 
17522
echo "${ECHO_T}$XML2_CONFIG" >&6; }
14552
17523
else
14553
 
  echo "$as_me:$LINENO: result: no" >&5
14554
 
echo "${ECHO_T}no" >&6
 
17524
  { echo "$as_me:$LINENO: result: no" >&5
 
17525
echo "${ECHO_T}no" >&6; }
14555
17526
fi
14556
17527
 
 
17528
 
14557
17529
if test -n "$XML2_CONFIG"; then
14558
17530
    neon_xml_parser_message="libxml `$XML2_CONFIG --version`"
14559
17531
 
14570
17542
for ac_header in libxml/xmlversion.h libxml/parser.h
14571
17543
do
14572
17544
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14573
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
14574
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
14575
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14576
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
17545
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
17546
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
17547
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
17548
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14577
17549
  echo $ECHO_N "(cached) $ECHO_C" >&6
14578
17550
fi
14579
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14580
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
17551
ac_res=`eval echo '${'$as_ac_Header'}'`
 
17552
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
17553
echo "${ECHO_T}$ac_res" >&6; }
14581
17554
else
14582
17555
  # Is the header compilable?
14583
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
14584
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
17556
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
17557
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14585
17558
cat >conftest.$ac_ext <<_ACEOF
14586
17559
/* confdefs.h.  */
14587
17560
_ACEOF
14592
17565
#include <$ac_header>
14593
17566
_ACEOF
14594
17567
rm -f conftest.$ac_objext
14595
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14596
 
  (eval $ac_compile) 2>conftest.er1
 
17568
if { (ac_try="$ac_compile"
 
17569
case "(($ac_try" in
 
17570
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17571
  *) ac_try_echo=$ac_try;;
 
17572
esac
 
17573
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17574
  (eval "$ac_compile") 2>conftest.er1
14597
17575
  ac_status=$?
14598
17576
  grep -v '^ *+' conftest.er1 >conftest.err
14599
17577
  rm -f conftest.er1
14600
17578
  cat conftest.err >&5
14601
17579
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602
 
  (exit $ac_status); } &&
14603
 
         { ac_try='test -z "$ac_c_werror_flag"
14604
 
                         || test ! -s conftest.err'
14605
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14606
 
  (eval $ac_try) 2>&5
14607
 
  ac_status=$?
14608
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609
 
  (exit $ac_status); }; } &&
14610
 
         { ac_try='test -s conftest.$ac_objext'
14611
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14612
 
  (eval $ac_try) 2>&5
14613
 
  ac_status=$?
14614
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615
 
  (exit $ac_status); }; }; then
 
17580
  (exit $ac_status); } && {
 
17581
         test -z "$ac_c_werror_flag" ||
 
17582
         test ! -s conftest.err
 
17583
       } && test -s conftest.$ac_objext; then
14616
17584
  ac_header_compiler=yes
14617
17585
else
14618
17586
  echo "$as_me: failed program was:" >&5
14619
17587
sed 's/^/| /' conftest.$ac_ext >&5
14620
17588
 
14621
 
ac_header_compiler=no
 
17589
        ac_header_compiler=no
14622
17590
fi
14623
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14624
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14625
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
17591
 
 
17592
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17593
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
17594
echo "${ECHO_T}$ac_header_compiler" >&6; }
14626
17595
 
14627
17596
# Is the header present?
14628
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
14629
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
17597
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
17598
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14630
17599
cat >conftest.$ac_ext <<_ACEOF
14631
17600
/* confdefs.h.  */
14632
17601
_ACEOF
14635
17604
/* end confdefs.h.  */
14636
17605
#include <$ac_header>
14637
17606
_ACEOF
14638
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14639
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
17607
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
17608
case "(($ac_try" in
 
17609
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17610
  *) ac_try_echo=$ac_try;;
 
17611
esac
 
17612
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17613
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14640
17614
  ac_status=$?
14641
17615
  grep -v '^ *+' conftest.er1 >conftest.err
14642
17616
  rm -f conftest.er1
14643
17617
  cat conftest.err >&5
14644
17618
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645
 
  (exit $ac_status); } >/dev/null; then
14646
 
  if test -s conftest.err; then
14647
 
    ac_cpp_err=$ac_c_preproc_warn_flag
14648
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14649
 
  else
14650
 
    ac_cpp_err=
14651
 
  fi
14652
 
else
14653
 
  ac_cpp_err=yes
14654
 
fi
14655
 
if test -z "$ac_cpp_err"; then
 
17619
  (exit $ac_status); } >/dev/null && {
 
17620
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
17621
         test ! -s conftest.err
 
17622
       }; then
14656
17623
  ac_header_preproc=yes
14657
17624
else
14658
17625
  echo "$as_me: failed program was:" >&5
14660
17627
 
14661
17628
  ac_header_preproc=no
14662
17629
fi
 
17630
 
14663
17631
rm -f conftest.err conftest.$ac_ext
14664
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14665
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
17632
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
17633
echo "${ECHO_T}$ac_header_preproc" >&6; }
14666
17634
 
14667
17635
# So?  What about this header?
14668
17636
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14686
17654
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14687
17655
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14688
17656
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14689
 
    (
14690
 
      cat <<\_ASBOX
 
17657
    ( cat <<\_ASBOX
14691
17658
## -------------------------------- ##
14692
17659
## Report this to sitecopy@lyra.org ##
14693
17660
## -------------------------------- ##
14694
17661
_ASBOX
14695
 
    ) |
14696
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
17662
     ) | sed "s/^/$as_me: WARNING:     /" >&2
14697
17663
    ;;
14698
17664
esac
14699
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
14700
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14701
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
17665
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
17666
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
17667
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14702
17668
  echo $ECHO_N "(cached) $ECHO_C" >&6
14703
17669
else
14704
17670
  eval "$as_ac_Header=\$ac_header_preproc"
14705
17671
fi
14706
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14707
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
17672
ac_res=`eval echo '${'$as_ac_Header'}'`
 
17673
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
17674
echo "${ECHO_T}$ac_res" >&6; }
14708
17675
 
14709
17676
fi
14710
17677
if test `eval echo '${'$as_ac_Header'}'` = yes; then
14748
17715
# mini-expat doesn't pick up config.h
14749
17716
CPPFLAGS="$CPPFLAGS -DXML_BYTE_ORDER=$ne_xml_border -DXML_DTD -I\$(top_srcdir)/lib/expat/xmlparse -I\$(top_srcdir)/lib/expat/xmltok"
14750
17717
 
 
17718
cat >>confdefs.h <<_ACEOF
 
17719
#define NE_FMT_XML_SIZE "d"
 
17720
_ACEOF
 
17721
 
 
17722
 
14751
17723
# Use the bundled expat sources
14752
 
case $LIBOBJS in
14753
 
    "\$(top_builddir)/lib/expat/xmltok/xmltok.$ac_objext"   | \
14754
 
  *" \$(top_builddir)/lib/expat/xmltok/xmltok.$ac_objext"   | \
14755
 
    "\$(top_builddir)/lib/expat/xmltok/xmltok.$ac_objext "* | \
 
17724
case " $LIBOBJS " in
14756
17725
  *" \$(top_builddir)/lib/expat/xmltok/xmltok.$ac_objext "* ) ;;
14757
 
  *) LIBOBJS="$LIBOBJS \$(top_builddir)/lib/expat/xmltok/xmltok.$ac_objext" ;;
 
17726
  *) LIBOBJS="$LIBOBJS \$(top_builddir)/lib/expat/xmltok/xmltok.$ac_objext"
 
17727
 ;;
14758
17728
esac
14759
17729
 
14760
 
case $LIBOBJS in
14761
 
    "\$(top_builddir)/lib/expat/xmltok/xmlrole.$ac_objext"   | \
14762
 
  *" \$(top_builddir)/lib/expat/xmltok/xmlrole.$ac_objext"   | \
14763
 
    "\$(top_builddir)/lib/expat/xmltok/xmlrole.$ac_objext "* | \
 
17730
case " $LIBOBJS " in
14764
17731
  *" \$(top_builddir)/lib/expat/xmltok/xmlrole.$ac_objext "* ) ;;
14765
 
  *) LIBOBJS="$LIBOBJS \$(top_builddir)/lib/expat/xmltok/xmlrole.$ac_objext" ;;
 
17732
  *) LIBOBJS="$LIBOBJS \$(top_builddir)/lib/expat/xmltok/xmlrole.$ac_objext"
 
17733
 ;;
14766
17734
esac
14767
17735
 
14768
 
case $LIBOBJS in
14769
 
    "\$(top_builddir)/lib/expat/xmlparse/xmlparse.$ac_objext"   | \
14770
 
  *" \$(top_builddir)/lib/expat/xmlparse/xmlparse.$ac_objext"   | \
14771
 
    "\$(top_builddir)/lib/expat/xmlparse/xmlparse.$ac_objext "* | \
 
17736
case " $LIBOBJS " in
14772
17737
  *" \$(top_builddir)/lib/expat/xmlparse/xmlparse.$ac_objext "* ) ;;
14773
 
  *) LIBOBJS="$LIBOBJS \$(top_builddir)/lib/expat/xmlparse/xmlparse.$ac_objext" ;;
 
17738
  *) LIBOBJS="$LIBOBJS \$(top_builddir)/lib/expat/xmlparse/xmlparse.$ac_objext"
 
17739
 ;;
14774
17740
esac
14775
17741
 
14776
 
case $LIBOBJS in
14777
 
    "\$(top_builddir)/lib/expat/xmlparse/hashtable.$ac_objext"   | \
14778
 
  *" \$(top_builddir)/lib/expat/xmlparse/hashtable.$ac_objext"   | \
14779
 
    "\$(top_builddir)/lib/expat/xmlparse/hashtable.$ac_objext "* | \
 
17742
case " $LIBOBJS " in
14780
17743
  *" \$(top_builddir)/lib/expat/xmlparse/hashtable.$ac_objext "* ) ;;
14781
 
  *) LIBOBJS="$LIBOBJS \$(top_builddir)/lib/expat/xmlparse/hashtable.$ac_objext" ;;
 
17744
  *) LIBOBJS="$LIBOBJS \$(top_builddir)/lib/expat/xmlparse/hashtable.$ac_objext"
 
17745
 ;;
14782
17746
esac
14783
17747
 
14784
17748
 
14830
17794
  { echo "$as_me:$LINENO: WebDAV support is not enabled" >&5
14831
17795
echo "$as_me: WebDAV support is not enabled" >&6;}
14832
17796
 
 
17797
 
 
17798
: Disabled for 0.28 to retain 0.27 ABI
 
17799
 
14833
17800
else
14834
17801
  # WebDAV support
14835
17802
  NEONOBJS="$NEONOBJS \$(NEON_DAVOBJS)"
14866
17833
 
14867
17834
 
14868
17835
 
14869
 
echo "$as_me:$LINENO: checking for getopt_long" >&5
14870
 
echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
 
17836
{ echo "$as_me:$LINENO: checking for getopt_long" >&5
 
17837
echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6; }
14871
17838
if test "${ac_cv_func_getopt_long+set}" = set; then
14872
17839
  echo $ECHO_N "(cached) $ECHO_C" >&6
14873
17840
else
14894
17861
 
14895
17862
#undef getopt_long
14896
17863
 
14897
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
17864
/* Override any GCC internal prototype to avoid an error.
 
17865
   Use char because int might match the return type of a GCC
 
17866
   builtin and then its argument prototype would still apply.  */
14898
17867
#ifdef __cplusplus
14899
17868
extern "C"
14900
 
{
14901
17869
#endif
14902
 
/* We use char because int might match the return type of a gcc2
14903
 
   builtin and then its argument prototype would still apply.  */
14904
17870
char getopt_long ();
14905
17871
/* The GNU C library defines this for functions which it implements
14906
17872
    to always fail with ENOSYS.  Some functions are actually named
14907
17873
    something starting with __ and the normal name is an alias.  */
14908
 
#if defined (__stub_getopt_long) || defined (__stub___getopt_long)
 
17874
#if defined __stub_getopt_long || defined __stub___getopt_long
14909
17875
choke me
14910
 
#else
14911
 
char (*f) () = getopt_long;
14912
 
#endif
14913
 
#ifdef __cplusplus
14914
 
}
14915
17876
#endif
14916
17877
 
14917
17878
int
14918
17879
main ()
14919
17880
{
14920
 
return f != getopt_long;
 
17881
return getopt_long ();
14921
17882
  ;
14922
17883
  return 0;
14923
17884
}
14924
17885
_ACEOF
14925
17886
rm -f conftest.$ac_objext conftest$ac_exeext
14926
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14927
 
  (eval $ac_link) 2>conftest.er1
 
17887
if { (ac_try="$ac_link"
 
17888
case "(($ac_try" in
 
17889
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17890
  *) ac_try_echo=$ac_try;;
 
17891
esac
 
17892
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17893
  (eval "$ac_link") 2>conftest.er1
14928
17894
  ac_status=$?
14929
17895
  grep -v '^ *+' conftest.er1 >conftest.err
14930
17896
  rm -f conftest.er1
14931
17897
  cat conftest.err >&5
14932
17898
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933
 
  (exit $ac_status); } &&
14934
 
         { ac_try='test -z "$ac_c_werror_flag"
14935
 
                         || test ! -s conftest.err'
14936
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14937
 
  (eval $ac_try) 2>&5
14938
 
  ac_status=$?
14939
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940
 
  (exit $ac_status); }; } &&
14941
 
         { ac_try='test -s conftest$ac_exeext'
14942
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14943
 
  (eval $ac_try) 2>&5
14944
 
  ac_status=$?
14945
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946
 
  (exit $ac_status); }; }; then
 
17899
  (exit $ac_status); } && {
 
17900
         test -z "$ac_c_werror_flag" ||
 
17901
         test ! -s conftest.err
 
17902
       } && test -s conftest$ac_exeext &&
 
17903
       $as_test_x conftest$ac_exeext; then
14947
17904
  ac_cv_func_getopt_long=yes
14948
17905
else
14949
17906
  echo "$as_me: failed program was:" >&5
14950
17907
sed 's/^/| /' conftest.$ac_ext >&5
14951
17908
 
14952
 
ac_cv_func_getopt_long=no
 
17909
        ac_cv_func_getopt_long=no
14953
17910
fi
14954
 
rm -f conftest.err conftest.$ac_objext \
 
17911
 
 
17912
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14955
17913
      conftest$ac_exeext conftest.$ac_ext
14956
17914
fi
14957
 
echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
14958
 
echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
 
17915
{ echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
 
17916
echo "${ECHO_T}$ac_cv_func_getopt_long" >&6; }
14959
17917
if test $ac_cv_func_getopt_long = yes; then
14960
17918
  :
14961
17919
else
14962
 
  case $LIBOBJS in
14963
 
    "lib/getopt.$ac_objext"   | \
14964
 
  *" lib/getopt.$ac_objext"   | \
14965
 
    "lib/getopt.$ac_objext "* | \
 
17920
  case " $LIBOBJS " in
14966
17921
  *" lib/getopt.$ac_objext "* ) ;;
14967
 
  *) LIBOBJS="$LIBOBJS lib/getopt.$ac_objext" ;;
 
17922
  *) LIBOBJS="$LIBOBJS lib/getopt.$ac_objext"
 
17923
 ;;
14968
17924
esac
14969
17925
 
14970
 
case $LIBOBJS in
14971
 
    "lib/getopt1.$ac_objext"   | \
14972
 
  *" lib/getopt1.$ac_objext"   | \
14973
 
    "lib/getopt1.$ac_objext "* | \
 
17926
case " $LIBOBJS " in
14974
17927
  *" lib/getopt1.$ac_objext "* ) ;;
14975
 
  *) LIBOBJS="$LIBOBJS lib/getopt1.$ac_objext" ;;
 
17928
  *) LIBOBJS="$LIBOBJS lib/getopt1.$ac_objext"
 
17929
 ;;
14976
17930
esac
14977
17931
 
14978
17932
fi
14979
17933
 
14980
17934
 
14981
 
echo "$as_me:$LINENO: checking for strcasecmp" >&5
14982
 
echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6
 
17935
{ echo "$as_me:$LINENO: checking for strcasecmp" >&5
 
17936
echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6; }
14983
17937
if test "${ac_cv_func_strcasecmp+set}" = set; then
14984
17938
  echo $ECHO_N "(cached) $ECHO_C" >&6
14985
17939
else
15006
17960
 
15007
17961
#undef strcasecmp
15008
17962
 
15009
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
17963
/* Override any GCC internal prototype to avoid an error.
 
17964
   Use char because int might match the return type of a GCC
 
17965
   builtin and then its argument prototype would still apply.  */
15010
17966
#ifdef __cplusplus
15011
17967
extern "C"
15012
 
{
15013
17968
#endif
15014
 
/* We use char because int might match the return type of a gcc2
15015
 
   builtin and then its argument prototype would still apply.  */
15016
17969
char strcasecmp ();
15017
17970
/* The GNU C library defines this for functions which it implements
15018
17971
    to always fail with ENOSYS.  Some functions are actually named
15019
17972
    something starting with __ and the normal name is an alias.  */
15020
 
#if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
 
17973
#if defined __stub_strcasecmp || defined __stub___strcasecmp
15021
17974
choke me
15022
 
#else
15023
 
char (*f) () = strcasecmp;
15024
 
#endif
15025
 
#ifdef __cplusplus
15026
 
}
15027
17975
#endif
15028
17976
 
15029
17977
int
15030
17978
main ()
15031
17979
{
15032
 
return f != strcasecmp;
 
17980
return strcasecmp ();
15033
17981
  ;
15034
17982
  return 0;
15035
17983
}
15036
17984
_ACEOF
15037
17985
rm -f conftest.$ac_objext conftest$ac_exeext
15038
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15039
 
  (eval $ac_link) 2>conftest.er1
 
17986
if { (ac_try="$ac_link"
 
17987
case "(($ac_try" in
 
17988
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17989
  *) ac_try_echo=$ac_try;;
 
17990
esac
 
17991
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17992
  (eval "$ac_link") 2>conftest.er1
15040
17993
  ac_status=$?
15041
17994
  grep -v '^ *+' conftest.er1 >conftest.err
15042
17995
  rm -f conftest.er1
15043
17996
  cat conftest.err >&5
15044
17997
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045
 
  (exit $ac_status); } &&
15046
 
         { ac_try='test -z "$ac_c_werror_flag"
15047
 
                         || test ! -s conftest.err'
15048
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15049
 
  (eval $ac_try) 2>&5
15050
 
  ac_status=$?
15051
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052
 
  (exit $ac_status); }; } &&
15053
 
         { ac_try='test -s conftest$ac_exeext'
15054
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15055
 
  (eval $ac_try) 2>&5
15056
 
  ac_status=$?
15057
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058
 
  (exit $ac_status); }; }; then
 
17998
  (exit $ac_status); } && {
 
17999
         test -z "$ac_c_werror_flag" ||
 
18000
         test ! -s conftest.err
 
18001
       } && test -s conftest$ac_exeext &&
 
18002
       $as_test_x conftest$ac_exeext; then
15059
18003
  ac_cv_func_strcasecmp=yes
15060
18004
else
15061
18005
  echo "$as_me: failed program was:" >&5
15062
18006
sed 's/^/| /' conftest.$ac_ext >&5
15063
18007
 
15064
 
ac_cv_func_strcasecmp=no
 
18008
        ac_cv_func_strcasecmp=no
15065
18009
fi
15066
 
rm -f conftest.err conftest.$ac_objext \
 
18010
 
 
18011
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15067
18012
      conftest$ac_exeext conftest.$ac_ext
15068
18013
fi
15069
 
echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
15070
 
echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6
 
18014
{ echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
 
18015
echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6; }
15071
18016
if test $ac_cv_func_strcasecmp = yes; then
15072
18017
  :
15073
18018
else
15074
 
  case $LIBOBJS in
15075
 
    "lib/strcasecmp.$ac_objext"   | \
15076
 
  *" lib/strcasecmp.$ac_objext"   | \
15077
 
    "lib/strcasecmp.$ac_objext "* | \
 
18019
  case " $LIBOBJS " in
15078
18020
  *" lib/strcasecmp.$ac_objext "* ) ;;
15079
 
  *) LIBOBJS="$LIBOBJS lib/strcasecmp.$ac_objext" ;;
 
18021
  *) LIBOBJS="$LIBOBJS lib/strcasecmp.$ac_objext"
 
18022
 ;;
15080
18023
esac
15081
18024
 
15082
18025
fi
15091
18034
for ac_func in strdup strsignal strerror memcpy setlocale nl_langinfo
15092
18035
do
15093
18036
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15094
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
15095
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15096
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
18037
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
18038
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
18039
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15097
18040
  echo $ECHO_N "(cached) $ECHO_C" >&6
15098
18041
else
15099
18042
  cat >conftest.$ac_ext <<_ACEOF
15119
18062
 
15120
18063
#undef $ac_func
15121
18064
 
15122
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
18065
/* Override any GCC internal prototype to avoid an error.
 
18066
   Use char because int might match the return type of a GCC
 
18067
   builtin and then its argument prototype would still apply.  */
15123
18068
#ifdef __cplusplus
15124
18069
extern "C"
15125
 
{
15126
18070
#endif
15127
 
/* We use char because int might match the return type of a gcc2
15128
 
   builtin and then its argument prototype would still apply.  */
15129
18071
char $ac_func ();
15130
18072
/* The GNU C library defines this for functions which it implements
15131
18073
    to always fail with ENOSYS.  Some functions are actually named
15132
18074
    something starting with __ and the normal name is an alias.  */
15133
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
18075
#if defined __stub_$ac_func || defined __stub___$ac_func
15134
18076
choke me
15135
 
#else
15136
 
char (*f) () = $ac_func;
15137
 
#endif
15138
 
#ifdef __cplusplus
15139
 
}
15140
18077
#endif
15141
18078
 
15142
18079
int
15143
18080
main ()
15144
18081
{
15145
 
return f != $ac_func;
 
18082
return $ac_func ();
15146
18083
  ;
15147
18084
  return 0;
15148
18085
}
15149
18086
_ACEOF
15150
18087
rm -f conftest.$ac_objext conftest$ac_exeext
15151
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15152
 
  (eval $ac_link) 2>conftest.er1
 
18088
if { (ac_try="$ac_link"
 
18089
case "(($ac_try" in
 
18090
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18091
  *) ac_try_echo=$ac_try;;
 
18092
esac
 
18093
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18094
  (eval "$ac_link") 2>conftest.er1
15153
18095
  ac_status=$?
15154
18096
  grep -v '^ *+' conftest.er1 >conftest.err
15155
18097
  rm -f conftest.er1
15156
18098
  cat conftest.err >&5
15157
18099
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158
 
  (exit $ac_status); } &&
15159
 
         { ac_try='test -z "$ac_c_werror_flag"
15160
 
                         || test ! -s conftest.err'
15161
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15162
 
  (eval $ac_try) 2>&5
15163
 
  ac_status=$?
15164
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165
 
  (exit $ac_status); }; } &&
15166
 
         { ac_try='test -s conftest$ac_exeext'
15167
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15168
 
  (eval $ac_try) 2>&5
15169
 
  ac_status=$?
15170
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171
 
  (exit $ac_status); }; }; then
 
18100
  (exit $ac_status); } && {
 
18101
         test -z "$ac_c_werror_flag" ||
 
18102
         test ! -s conftest.err
 
18103
       } && test -s conftest$ac_exeext &&
 
18104
       $as_test_x conftest$ac_exeext; then
15172
18105
  eval "$as_ac_var=yes"
15173
18106
else
15174
18107
  echo "$as_me: failed program was:" >&5
15175
18108
sed 's/^/| /' conftest.$ac_ext >&5
15176
18109
 
15177
 
eval "$as_ac_var=no"
 
18110
        eval "$as_ac_var=no"
15178
18111
fi
15179
 
rm -f conftest.err conftest.$ac_objext \
 
18112
 
 
18113
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15180
18114
      conftest$ac_exeext conftest.$ac_ext
15181
18115
fi
15182
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15183
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
18116
ac_res=`eval echo '${'$as_ac_var'}'`
 
18117
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
18118
echo "${ECHO_T}$ac_res" >&6; }
15184
18119
if test `eval echo '${'$as_ac_var'}'` = yes; then
15185
18120
  cat >>confdefs.h <<_ACEOF
15186
18121
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15190
18125
done
15191
18126
 
15192
18127
 
15193
 
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
15194
 
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
 
18128
{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
 
18129
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
15195
18130
if test "${ac_cv_type_signal+set}" = set; then
15196
18131
  echo $ECHO_N "(cached) $ECHO_C" >&6
15197
18132
else
15203
18138
/* end confdefs.h.  */
15204
18139
#include <sys/types.h>
15205
18140
#include <signal.h>
15206
 
#ifdef signal
15207
 
# undef signal
15208
 
#endif
15209
 
#ifdef __cplusplus
15210
 
extern "C" void (*signal (int, void (*)(int)))(int);
15211
 
#else
15212
 
void (*signal ()) ();
15213
 
#endif
15214
18141
 
15215
18142
int
15216
18143
main ()
15217
18144
{
15218
 
int i;
 
18145
return *(signal (0, 0)) (0) == 1;
15219
18146
  ;
15220
18147
  return 0;
15221
18148
}
15222
18149
_ACEOF
15223
18150
rm -f conftest.$ac_objext
15224
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15225
 
  (eval $ac_compile) 2>conftest.er1
 
18151
if { (ac_try="$ac_compile"
 
18152
case "(($ac_try" in
 
18153
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18154
  *) ac_try_echo=$ac_try;;
 
18155
esac
 
18156
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18157
  (eval "$ac_compile") 2>conftest.er1
15226
18158
  ac_status=$?
15227
18159
  grep -v '^ *+' conftest.er1 >conftest.err
15228
18160
  rm -f conftest.er1
15229
18161
  cat conftest.err >&5
15230
18162
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231
 
  (exit $ac_status); } &&
15232
 
         { ac_try='test -z "$ac_c_werror_flag"
15233
 
                         || test ! -s conftest.err'
15234
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15235
 
  (eval $ac_try) 2>&5
15236
 
  ac_status=$?
15237
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238
 
  (exit $ac_status); }; } &&
15239
 
         { ac_try='test -s conftest.$ac_objext'
15240
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15241
 
  (eval $ac_try) 2>&5
15242
 
  ac_status=$?
15243
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244
 
  (exit $ac_status); }; }; then
15245
 
  ac_cv_type_signal=void
 
18163
  (exit $ac_status); } && {
 
18164
         test -z "$ac_c_werror_flag" ||
 
18165
         test ! -s conftest.err
 
18166
       } && test -s conftest.$ac_objext; then
 
18167
  ac_cv_type_signal=int
15246
18168
else
15247
18169
  echo "$as_me: failed program was:" >&5
15248
18170
sed 's/^/| /' conftest.$ac_ext >&5
15249
18171
 
15250
 
ac_cv_type_signal=int
15251
 
fi
15252
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15253
 
fi
15254
 
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
15255
 
echo "${ECHO_T}$ac_cv_type_signal" >&6
 
18172
        ac_cv_type_signal=void
 
18173
fi
 
18174
 
 
18175
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18176
fi
 
18177
{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
 
18178
echo "${ECHO_T}$ac_cv_type_signal" >&6; }
15256
18179
 
15257
18180
cat >>confdefs.h <<_ACEOF
15258
18181
#define RETSIGTYPE $ac_cv_type_signal
15276
18199
        locale.h langinfo.h stdlib.h unistd.h limits.h sys/select.h fcntl.h
15277
18200
do
15278
18201
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15279
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
15280
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
15281
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15282
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
18202
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
18203
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
18204
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
18205
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15283
18206
  echo $ECHO_N "(cached) $ECHO_C" >&6
15284
18207
fi
15285
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15286
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
18208
ac_res=`eval echo '${'$as_ac_Header'}'`
 
18209
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
18210
echo "${ECHO_T}$ac_res" >&6; }
15287
18211
else
15288
18212
  # Is the header compilable?
15289
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
15290
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
18213
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
18214
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15291
18215
cat >conftest.$ac_ext <<_ACEOF
15292
18216
/* confdefs.h.  */
15293
18217
_ACEOF
15298
18222
#include <$ac_header>
15299
18223
_ACEOF
15300
18224
rm -f conftest.$ac_objext
15301
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15302
 
  (eval $ac_compile) 2>conftest.er1
 
18225
if { (ac_try="$ac_compile"
 
18226
case "(($ac_try" in
 
18227
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18228
  *) ac_try_echo=$ac_try;;
 
18229
esac
 
18230
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18231
  (eval "$ac_compile") 2>conftest.er1
15303
18232
  ac_status=$?
15304
18233
  grep -v '^ *+' conftest.er1 >conftest.err
15305
18234
  rm -f conftest.er1
15306
18235
  cat conftest.err >&5
15307
18236
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308
 
  (exit $ac_status); } &&
15309
 
         { ac_try='test -z "$ac_c_werror_flag"
15310
 
                         || test ! -s conftest.err'
15311
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15312
 
  (eval $ac_try) 2>&5
15313
 
  ac_status=$?
15314
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315
 
  (exit $ac_status); }; } &&
15316
 
         { ac_try='test -s conftest.$ac_objext'
15317
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15318
 
  (eval $ac_try) 2>&5
15319
 
  ac_status=$?
15320
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321
 
  (exit $ac_status); }; }; then
 
18237
  (exit $ac_status); } && {
 
18238
         test -z "$ac_c_werror_flag" ||
 
18239
         test ! -s conftest.err
 
18240
       } && test -s conftest.$ac_objext; then
15322
18241
  ac_header_compiler=yes
15323
18242
else
15324
18243
  echo "$as_me: failed program was:" >&5
15325
18244
sed 's/^/| /' conftest.$ac_ext >&5
15326
18245
 
15327
 
ac_header_compiler=no
 
18246
        ac_header_compiler=no
15328
18247
fi
15329
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15330
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15331
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
18248
 
 
18249
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18250
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
18251
echo "${ECHO_T}$ac_header_compiler" >&6; }
15332
18252
 
15333
18253
# Is the header present?
15334
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
15335
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
18254
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
18255
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15336
18256
cat >conftest.$ac_ext <<_ACEOF
15337
18257
/* confdefs.h.  */
15338
18258
_ACEOF
15341
18261
/* end confdefs.h.  */
15342
18262
#include <$ac_header>
15343
18263
_ACEOF
15344
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15345
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
18264
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
18265
case "(($ac_try" in
 
18266
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18267
  *) ac_try_echo=$ac_try;;
 
18268
esac
 
18269
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18270
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15346
18271
  ac_status=$?
15347
18272
  grep -v '^ *+' conftest.er1 >conftest.err
15348
18273
  rm -f conftest.er1
15349
18274
  cat conftest.err >&5
15350
18275
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351
 
  (exit $ac_status); } >/dev/null; then
15352
 
  if test -s conftest.err; then
15353
 
    ac_cpp_err=$ac_c_preproc_warn_flag
15354
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15355
 
  else
15356
 
    ac_cpp_err=
15357
 
  fi
15358
 
else
15359
 
  ac_cpp_err=yes
15360
 
fi
15361
 
if test -z "$ac_cpp_err"; then
 
18276
  (exit $ac_status); } >/dev/null && {
 
18277
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
18278
         test ! -s conftest.err
 
18279
       }; then
15362
18280
  ac_header_preproc=yes
15363
18281
else
15364
18282
  echo "$as_me: failed program was:" >&5
15366
18284
 
15367
18285
  ac_header_preproc=no
15368
18286
fi
 
18287
 
15369
18288
rm -f conftest.err conftest.$ac_ext
15370
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15371
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
18289
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
18290
echo "${ECHO_T}$ac_header_preproc" >&6; }
15372
18291
 
15373
18292
# So?  What about this header?
15374
18293
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15392
18311
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15393
18312
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15394
18313
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15395
 
    (
15396
 
      cat <<\_ASBOX
 
18314
    ( cat <<\_ASBOX
15397
18315
## -------------------------------- ##
15398
18316
## Report this to sitecopy@lyra.org ##
15399
18317
## -------------------------------- ##
15400
18318
_ASBOX
15401
 
    ) |
15402
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
18319
     ) | sed "s/^/$as_me: WARNING:     /" >&2
15403
18320
    ;;
15404
18321
esac
15405
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
15406
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15407
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
18322
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
18323
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
18324
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15408
18325
  echo $ECHO_N "(cached) $ECHO_C" >&6
15409
18326
else
15410
18327
  eval "$as_ac_Header=\$ac_header_preproc"
15411
18328
fi
15412
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15413
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
18329
ac_res=`eval echo '${'$as_ac_Header'}'`
 
18330
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
18331
echo "${ECHO_T}$ac_res" >&6; }
15414
18332
 
15415
18333
fi
15416
18334
if test `eval echo '${'$as_ac_Header'}'` = yes; then
15425
18343
 
15426
18344
 
15427
18345
 
15428
 
echo "$as_me:$LINENO: checking for the third argument of getsockname" >&5
15429
 
echo $ECHO_N "checking for the third argument of getsockname... $ECHO_C" >&6
 
18346
{ echo "$as_me:$LINENO: checking for the third argument of getsockname" >&5
 
18347
echo $ECHO_N "checking for the third argument of getsockname... $ECHO_C" >&6; }
15430
18348
if test "${ac_cv_ksize_t+set}" = set; then
15431
18349
  echo $ECHO_N "(cached) $ECHO_C" >&6
15432
18350
else
15452
18370
}
15453
18371
_ACEOF
15454
18372
rm -f conftest.$ac_objext
15455
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15456
 
  (eval $ac_compile) 2>conftest.er1
 
18373
if { (ac_try="$ac_compile"
 
18374
case "(($ac_try" in
 
18375
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18376
  *) ac_try_echo=$ac_try;;
 
18377
esac
 
18378
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18379
  (eval "$ac_compile") 2>conftest.er1
15457
18380
  ac_status=$?
15458
18381
  grep -v '^ *+' conftest.er1 >conftest.err
15459
18382
  rm -f conftest.er1
15460
18383
  cat conftest.err >&5
15461
18384
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462
 
  (exit $ac_status); } &&
15463
 
         { ac_try='test -z "$ac_c_werror_flag"
15464
 
                         || test ! -s conftest.err'
15465
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15466
 
  (eval $ac_try) 2>&5
15467
 
  ac_status=$?
15468
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469
 
  (exit $ac_status); }; } &&
15470
 
         { ac_try='test -s conftest.$ac_objext'
15471
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15472
 
  (eval $ac_try) 2>&5
15473
 
  ac_status=$?
15474
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475
 
  (exit $ac_status); }; }; then
 
18385
  (exit $ac_status); } && {
 
18386
         test -z "$ac_c_werror_flag" ||
 
18387
         test ! -s conftest.err
 
18388
       } && test -s conftest.$ac_objext; then
15476
18389
  ac_cv_ksize_t=socklen_t
15477
18390
else
15478
18391
  echo "$as_me: failed program was:" >&5
15479
18392
sed 's/^/| /' conftest.$ac_ext >&5
15480
18393
 
15481
 
ac_cv_ksize_t=
 
18394
        ac_cv_ksize_t=
15482
18395
fi
15483
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
18396
 
 
18397
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15484
18398
if test -z "$ac_cv_ksize_t"; then
15485
18399
ac_safe_cflags="$CFLAGS"
15486
18400
if test "$GCC" = "yes"; then
15508
18422
}
15509
18423
_ACEOF
15510
18424
rm -f conftest.$ac_objext
15511
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15512
 
  (eval $ac_compile) 2>conftest.er1
 
18425
if { (ac_try="$ac_compile"
 
18426
case "(($ac_try" in
 
18427
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18428
  *) ac_try_echo=$ac_try;;
 
18429
esac
 
18430
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18431
  (eval "$ac_compile") 2>conftest.er1
15513
18432
  ac_status=$?
15514
18433
  grep -v '^ *+' conftest.er1 >conftest.err
15515
18434
  rm -f conftest.er1
15516
18435
  cat conftest.err >&5
15517
18436
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518
 
  (exit $ac_status); } &&
15519
 
         { ac_try='test -z "$ac_c_werror_flag"
15520
 
                         || test ! -s conftest.err'
15521
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15522
 
  (eval $ac_try) 2>&5
15523
 
  ac_status=$?
15524
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525
 
  (exit $ac_status); }; } &&
15526
 
         { ac_try='test -s conftest.$ac_objext'
15527
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15528
 
  (eval $ac_try) 2>&5
15529
 
  ac_status=$?
15530
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531
 
  (exit $ac_status); }; }; then
 
18437
  (exit $ac_status); } && {
 
18438
         test -z "$ac_c_werror_flag" ||
 
18439
         test ! -s conftest.err
 
18440
       } && test -s conftest.$ac_objext; then
15532
18441
  ac_cv_ksize_t=int
15533
18442
else
15534
18443
  echo "$as_me: failed program was:" >&5
15535
18444
sed 's/^/| /' conftest.$ac_ext >&5
15536
18445
 
15537
 
ac_cv_ksize_t=size_t
 
18446
        ac_cv_ksize_t=size_t
15538
18447
fi
15539
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
18448
 
 
18449
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15540
18450
CFLAGS="$ac_safe_cflags"
15541
18451
fi
15542
18452
 
15547
18457
  ac_cv_ksize_t=int
15548
18458
fi
15549
18459
 
15550
 
echo "$as_me:$LINENO: result: $ac_cv_ksize_t" >&5
15551
 
echo "${ECHO_T}$ac_cv_ksize_t" >&6
 
18460
{ echo "$as_me:$LINENO: result: $ac_cv_ksize_t" >&5
 
18461
echo "${ECHO_T}$ac_cv_ksize_t" >&6; }
15552
18462
 
15553
18463
cat >>confdefs.h <<_ACEOF
15554
18464
#define ksize_t $ac_cv_ksize_t
15558
18468
 
15559
18469
 
15560
18470
if test "$enable_gnomefe" = "yes"; then
15561
 
    echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
15562
 
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
 
18471
    { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
 
18472
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
15563
18473
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
15564
18474
  echo $ECHO_N "(cached) $ECHO_C" >&6
15565
18475
else
15572
18482
cat >>conftest.$ac_ext <<_ACEOF
15573
18483
/* end confdefs.h.  */
15574
18484
 
15575
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
18485
/* Override any GCC internal prototype to avoid an error.
 
18486
   Use char because int might match the return type of a GCC
 
18487
   builtin and then its argument prototype would still apply.  */
15576
18488
#ifdef __cplusplus
15577
18489
extern "C"
15578
18490
#endif
15579
 
/* We use char because int might match the return type of a gcc2
15580
 
   builtin and then its argument prototype would still apply.  */
15581
18491
char pthread_create ();
15582
18492
int
15583
18493
main ()
15584
18494
{
15585
 
pthread_create ();
 
18495
return pthread_create ();
15586
18496
  ;
15587
18497
  return 0;
15588
18498
}
15589
18499
_ACEOF
15590
18500
rm -f conftest.$ac_objext conftest$ac_exeext
15591
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15592
 
  (eval $ac_link) 2>conftest.er1
 
18501
if { (ac_try="$ac_link"
 
18502
case "(($ac_try" in
 
18503
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18504
  *) ac_try_echo=$ac_try;;
 
18505
esac
 
18506
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18507
  (eval "$ac_link") 2>conftest.er1
15593
18508
  ac_status=$?
15594
18509
  grep -v '^ *+' conftest.er1 >conftest.err
15595
18510
  rm -f conftest.er1
15596
18511
  cat conftest.err >&5
15597
18512
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598
 
  (exit $ac_status); } &&
15599
 
         { ac_try='test -z "$ac_c_werror_flag"
15600
 
                         || test ! -s conftest.err'
15601
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15602
 
  (eval $ac_try) 2>&5
15603
 
  ac_status=$?
15604
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605
 
  (exit $ac_status); }; } &&
15606
 
         { ac_try='test -s conftest$ac_exeext'
15607
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15608
 
  (eval $ac_try) 2>&5
15609
 
  ac_status=$?
15610
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611
 
  (exit $ac_status); }; }; then
 
18513
  (exit $ac_status); } && {
 
18514
         test -z "$ac_c_werror_flag" ||
 
18515
         test ! -s conftest.err
 
18516
       } && test -s conftest$ac_exeext &&
 
18517
       $as_test_x conftest$ac_exeext; then
15612
18518
  ac_cv_lib_pthread_pthread_create=yes
15613
18519
else
15614
18520
  echo "$as_me: failed program was:" >&5
15615
18521
sed 's/^/| /' conftest.$ac_ext >&5
15616
18522
 
15617
 
ac_cv_lib_pthread_pthread_create=no
 
18523
        ac_cv_lib_pthread_pthread_create=no
15618
18524
fi
15619
 
rm -f conftest.err conftest.$ac_objext \
 
18525
 
 
18526
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15620
18527
      conftest$ac_exeext conftest.$ac_ext
15621
18528
LIBS=$ac_check_lib_save_LIBS
15622
18529
fi
15623
 
echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
15624
 
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
 
18530
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
 
18531
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
15625
18532
if test $ac_cv_lib_pthread_pthread_create = yes; then
15626
18533
  gnome_is_ok=yes
15627
18534
else
15629
18536
fi
15630
18537
 
15631
18538
 
15632
 
# Check whether --with-libglade-config or --without-libglade-config was given.
 
18539
# Check whether --with-libglade-config was given.
15633
18540
if test "${with_libglade_config+set}" = set; then
15634
 
  withval="$with_libglade_config"
15635
 
  LIBGLADE_CONFIG="$withval"
15636
 
fi;
 
18541
  withval=$with_libglade_config; LIBGLADE_CONFIG="$withval"
 
18542
fi
 
18543
 
15637
18544
 
15638
18545
module_args=
15639
18546
for module in . gnome; do
15652
18559
 
15653
18560
# Extract the first word of "libglade-config", so it can be a program name with args.
15654
18561
set dummy libglade-config; ac_word=$2
15655
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
15656
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
18562
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
18563
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15657
18564
if test "${ac_cv_path_LIBGLADE_CONFIG+set}" = set; then
15658
18565
  echo $ECHO_N "(cached) $ECHO_C" >&6
15659
18566
else
15668
18575
  IFS=$as_save_IFS
15669
18576
  test -z "$as_dir" && as_dir=.
15670
18577
  for ac_exec_ext in '' $ac_executable_extensions; do
15671
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
18578
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15672
18579
    ac_cv_path_LIBGLADE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15673
18580
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15674
18581
    break 2
15675
18582
  fi
15676
18583
done
15677
18584
done
 
18585
IFS=$as_save_IFS
15678
18586
 
15679
18587
  test -z "$ac_cv_path_LIBGLADE_CONFIG" && ac_cv_path_LIBGLADE_CONFIG="no"
15680
18588
  ;;
15681
18589
esac
15682
18590
fi
15683
18591
LIBGLADE_CONFIG=$ac_cv_path_LIBGLADE_CONFIG
15684
 
 
15685
18592
if test -n "$LIBGLADE_CONFIG"; then
15686
 
  echo "$as_me:$LINENO: result: $LIBGLADE_CONFIG" >&5
15687
 
echo "${ECHO_T}$LIBGLADE_CONFIG" >&6
 
18593
  { echo "$as_me:$LINENO: result: $LIBGLADE_CONFIG" >&5
 
18594
echo "${ECHO_T}$LIBGLADE_CONFIG" >&6; }
15688
18595
else
15689
 
  echo "$as_me:$LINENO: result: no" >&5
15690
 
echo "${ECHO_T}no" >&6
 
18596
  { echo "$as_me:$LINENO: result: no" >&5
 
18597
echo "${ECHO_T}no" >&6; }
15691
18598
fi
15692
18599
 
15693
 
echo "$as_me:$LINENO: checking for libglade" >&5
15694
 
echo $ECHO_N "checking for libglade... $ECHO_C" >&6
 
18600
 
 
18601
{ echo "$as_me:$LINENO: checking for libglade" >&5
 
18602
echo $ECHO_N "checking for libglade... $ECHO_C" >&6; }
15695
18603
if test "$LIBGLADE_CONFIG" = "no"; then
15696
 
  echo "$as_me:$LINENO: result: no" >&5
15697
 
echo "${ECHO_T}no" >&6
 
18604
  { echo "$as_me:$LINENO: result: no" >&5
 
18605
echo "${ECHO_T}no" >&6; }
15698
18606
  :
15699
18607
else
15700
18608
  if $LIBGLADE_CONFIG --check $module_args; then
15701
18609
    LIBGLADE_CFLAGS=`$LIBGLADE_CONFIG --cflags $module_args`
15702
18610
    LIBGLADE_LIBS=`$LIBGLADE_CONFIG --libs $module_args`
15703
 
    echo "$as_me:$LINENO: result: yes" >&5
15704
 
echo "${ECHO_T}yes" >&6
 
18611
    { echo "$as_me:$LINENO: result: yes" >&5
 
18612
echo "${ECHO_T}yes" >&6; }
15705
18613
    :
15706
18614
  else
15707
18615
    echo "*** libglade was not compiled with support for $module_args" 1>&2
15708
 
    echo "$as_me:$LINENO: result: no" >&5
15709
 
echo "${ECHO_T}no" >&6
 
18616
    { echo "$as_me:$LINENO: result: no" >&5
 
18617
echo "${ECHO_T}no" >&6; }
15710
18618
    :
15711
18619
  fi
15712
18620
fi
15716
18624
fi
15717
18625
 
15718
18626
ALL_LINGUAS="ru fr cs ja de tr nn it"
15719
 
 
15720
 
 
15721
 
        MKINSTALLDIRS=
15722
 
  if test -n "$ac_aux_dir"; then
15723
 
    case "$ac_aux_dir" in
15724
 
      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
15725
 
      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
15726
 
    esac
15727
 
  fi
15728
 
  if test -z "$MKINSTALLDIRS"; then
15729
 
    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15730
 
  fi
15731
 
 
15732
 
 
15733
 
 
15734
 
  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
15735
 
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
15736
 
    # Check whether --enable-nls or --disable-nls was given.
 
18627
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
 
18628
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
 
18629
if test -z "$MKDIR_P"; then
 
18630
  if test "${ac_cv_path_mkdir+set}" = set; then
 
18631
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18632
else
 
18633
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18634
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
18635
do
 
18636
  IFS=$as_save_IFS
 
18637
  test -z "$as_dir" && as_dir=.
 
18638
  for ac_prog in mkdir gmkdir; do
 
18639
         for ac_exec_ext in '' $ac_executable_extensions; do
 
18640
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
18641
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
18642
             'mkdir (GNU coreutils) '* | \
 
18643
             'mkdir (coreutils) '* | \
 
18644
             'mkdir (fileutils) '4.1*)
 
18645
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
18646
               break 3;;
 
18647
           esac
 
18648
         done
 
18649
       done
 
18650
done
 
18651
IFS=$as_save_IFS
 
18652
 
 
18653
fi
 
18654
 
 
18655
  if test "${ac_cv_path_mkdir+set}" = set; then
 
18656
    MKDIR_P="$ac_cv_path_mkdir -p"
 
18657
  else
 
18658
    # As a last resort, use the slow shell script.  Don't cache a
 
18659
    # value for MKDIR_P within a source directory, because that will
 
18660
    # break other packages using the cache if that directory is
 
18661
    # removed, or if the value is a relative name.
 
18662
    test -d ./--version && rmdir ./--version
 
18663
    MKDIR_P="$ac_install_sh -d"
 
18664
  fi
 
18665
fi
 
18666
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
 
18667
echo "${ECHO_T}$MKDIR_P" >&6; }
 
18668
 
 
18669
mkdir_p="$MKDIR_P"
 
18670
case $mkdir_p in
 
18671
  [\\/$]* | ?:[\\/]*) ;;
 
18672
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
18673
esac
 
18674
 
 
18675
 
 
18676
  { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
 
18677
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
 
18678
    # Check whether --enable-nls was given.
15737
18679
if test "${enable_nls+set}" = set; then
15738
 
  enableval="$enable_nls"
15739
 
  USE_NLS=$enableval
 
18680
  enableval=$enable_nls; USE_NLS=$enableval
15740
18681
else
15741
18682
  USE_NLS=yes
15742
 
fi;
15743
 
  echo "$as_me:$LINENO: result: $USE_NLS" >&5
15744
 
echo "${ECHO_T}$USE_NLS" >&6
15745
 
 
15746
 
 
 
18683
fi
 
18684
 
 
18685
  { echo "$as_me:$LINENO: result: $USE_NLS" >&5
 
18686
echo "${ECHO_T}$USE_NLS" >&6; }
 
18687
 
 
18688
 
 
18689
 
 
18690
 
 
18691
      GETTEXT_MACRO_VERSION=0.17
15747
18692
 
15748
18693
 
15749
18694
 
15778
18723
 
15779
18724
# Extract the first word of "msgfmt", so it can be a program name with args.
15780
18725
set dummy msgfmt; ac_word=$2
15781
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
15782
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
18726
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
18727
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15783
18728
if test "${ac_cv_path_MSGFMT+set}" = set; then
15784
18729
  echo $ECHO_N "(cached) $ECHO_C" >&6
15785
18730
else
15810
18755
fi
15811
18756
MSGFMT="$ac_cv_path_MSGFMT"
15812
18757
if test "$MSGFMT" != ":"; then
15813
 
  echo "$as_me:$LINENO: result: $MSGFMT" >&5
15814
 
echo "${ECHO_T}$MSGFMT" >&6
 
18758
  { echo "$as_me:$LINENO: result: $MSGFMT" >&5
 
18759
echo "${ECHO_T}$MSGFMT" >&6; }
15815
18760
else
15816
 
  echo "$as_me:$LINENO: result: no" >&5
15817
 
echo "${ECHO_T}no" >&6
 
18761
  { echo "$as_me:$LINENO: result: no" >&5
 
18762
echo "${ECHO_T}no" >&6; }
15818
18763
fi
15819
18764
 
15820
18765
  # Extract the first word of "gmsgfmt", so it can be a program name with args.
15821
18766
set dummy gmsgfmt; ac_word=$2
15822
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
15823
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
18767
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
18768
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15824
18769
if test "${ac_cv_path_GMSGFMT+set}" = set; then
15825
18770
  echo $ECHO_N "(cached) $ECHO_C" >&6
15826
18771
else
15835
18780
  IFS=$as_save_IFS
15836
18781
  test -z "$as_dir" && as_dir=.
15837
18782
  for ac_exec_ext in '' $ac_executable_extensions; do
15838
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
18783
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15839
18784
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15840
18785
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15841
18786
    break 2
15842
18787
  fi
15843
18788
done
15844
18789
done
 
18790
IFS=$as_save_IFS
15845
18791
 
15846
18792
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15847
18793
  ;;
15848
18794
esac
15849
18795
fi
15850
18796
GMSGFMT=$ac_cv_path_GMSGFMT
15851
 
 
15852
18797
if test -n "$GMSGFMT"; then
15853
 
  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
15854
 
echo "${ECHO_T}$GMSGFMT" >&6
 
18798
  { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
 
18799
echo "${ECHO_T}$GMSGFMT" >&6; }
15855
18800
else
15856
 
  echo "$as_me:$LINENO: result: no" >&5
15857
 
echo "${ECHO_T}no" >&6
 
18801
  { echo "$as_me:$LINENO: result: no" >&5
 
18802
echo "${ECHO_T}no" >&6; }
15858
18803
fi
15859
18804
 
15860
18805
 
15861
18806
 
 
18807
    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
 
18808
    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
 
18809
    *) MSGFMT_015=$MSGFMT ;;
 
18810
  esac
 
18811
 
 
18812
  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
 
18813
    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
 
18814
    *) GMSGFMT_015=$GMSGFMT ;;
 
18815
  esac
 
18816
 
 
18817
 
 
18818
 
15862
18819
# Prepare PATH_SEPARATOR.
15863
18820
# The user is always right.
15864
18821
if test "${PATH_SEPARATOR+set}" != set; then
15889
18846
 
15890
18847
# Extract the first word of "xgettext", so it can be a program name with args.
15891
18848
set dummy xgettext; ac_word=$2
15892
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
15893
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
18849
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
18850
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15894
18851
if test "${ac_cv_path_XGETTEXT+set}" = set; then
15895
18852
  echo $ECHO_N "(cached) $ECHO_C" >&6
15896
18853
else
15921
18878
fi
15922
18879
XGETTEXT="$ac_cv_path_XGETTEXT"
15923
18880
if test "$XGETTEXT" != ":"; then
15924
 
  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15925
 
echo "${ECHO_T}$XGETTEXT" >&6
 
18881
  { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
 
18882
echo "${ECHO_T}$XGETTEXT" >&6; }
15926
18883
else
15927
 
  echo "$as_me:$LINENO: result: no" >&5
15928
 
echo "${ECHO_T}no" >&6
 
18884
  { echo "$as_me:$LINENO: result: no" >&5
 
18885
echo "${ECHO_T}no" >&6; }
15929
18886
fi
15930
18887
 
15931
18888
    rm -f messages.po
15932
18889
 
 
18890
    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
 
18891
    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
 
18892
    *) XGETTEXT_015=$XGETTEXT ;;
 
18893
  esac
 
18894
 
 
18895
 
15933
18896
 
15934
18897
# Prepare PATH_SEPARATOR.
15935
18898
# The user is always right.
15961
18924
 
15962
18925
# Extract the first word of "msgmerge", so it can be a program name with args.
15963
18926
set dummy msgmerge; ac_word=$2
15964
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
15965
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
18927
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
18928
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15966
18929
if test "${ac_cv_path_MSGMERGE+set}" = set; then
15967
18930
  echo $ECHO_N "(cached) $ECHO_C" >&6
15968
18931
else
15992
18955
fi
15993
18956
MSGMERGE="$ac_cv_path_MSGMERGE"
15994
18957
if test "$MSGMERGE" != ":"; then
15995
 
  echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15996
 
echo "${ECHO_T}$MSGMERGE" >&6
 
18958
  { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
 
18959
echo "${ECHO_T}$MSGMERGE" >&6; }
15997
18960
else
15998
 
  echo "$as_me:$LINENO: result: no" >&5
15999
 
echo "${ECHO_T}no" >&6
 
18961
  { echo "$as_me:$LINENO: result: no" >&5
 
18962
echo "${ECHO_T}no" >&6; }
16000
18963
fi
16001
18964
 
16002
18965
 
16003
 
      if test "$GMSGFMT" != ":"; then
16004
 
            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16005
 
       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16006
 
      : ;
16007
 
    else
16008
 
      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16009
 
      echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16010
 
echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
16011
 
      GMSGFMT=":"
16012
 
    fi
16013
 
  fi
16014
 
 
16015
 
      if test "$XGETTEXT" != ":"; then
16016
 
            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16017
 
       (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16018
 
      : ;
16019
 
    else
16020
 
      echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16021
 
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
16022
 
      XGETTEXT=":"
16023
 
    fi
16024
 
        rm -f messages.po
16025
 
  fi
16026
 
 
16027
 
            ac_config_commands="$ac_config_commands default-1"
 
18966
        test -n "$localedir" || localedir='${datadir}/locale'
 
18967
 
 
18968
 
 
18969
    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
 
18970
 
 
18971
 
 
18972
  ac_config_commands="$ac_config_commands po-directories"
16028
18973
 
16029
18974
 
16030
18975
# Make sure we can run config.sub.
16031
 
$ac_config_sub sun4 >/dev/null 2>&1 ||
16032
 
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
16033
 
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
18976
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
18977
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
 
18978
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
16034
18979
   { (exit 1); exit 1; }; }
16035
18980
 
16036
 
echo "$as_me:$LINENO: checking build system type" >&5
16037
 
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
18981
{ echo "$as_me:$LINENO: checking build system type" >&5
 
18982
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
16038
18983
if test "${ac_cv_build+set}" = set; then
16039
18984
  echo $ECHO_N "(cached) $ECHO_C" >&6
16040
18985
else
16041
 
  ac_cv_build_alias=$build_alias
16042
 
test -z "$ac_cv_build_alias" &&
16043
 
  ac_cv_build_alias=`$ac_config_guess`
16044
 
test -z "$ac_cv_build_alias" &&
 
18986
  ac_build_alias=$build_alias
 
18987
test "x$ac_build_alias" = x &&
 
18988
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
18989
test "x$ac_build_alias" = x &&
16045
18990
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
16046
18991
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
16047
18992
   { (exit 1); exit 1; }; }
16048
 
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
16049
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
16050
 
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
18993
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
18994
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
 
18995
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
16051
18996
   { (exit 1); exit 1; }; }
16052
18997
 
16053
18998
fi
16054
 
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
16055
 
echo "${ECHO_T}$ac_cv_build" >&6
 
18999
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
19000
echo "${ECHO_T}$ac_cv_build" >&6; }
 
19001
case $ac_cv_build in
 
19002
*-*-*) ;;
 
19003
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
 
19004
echo "$as_me: error: invalid value of canonical build" >&2;}
 
19005
   { (exit 1); exit 1; }; };;
 
19006
esac
16056
19007
build=$ac_cv_build
16057
 
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
16058
 
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
16059
 
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
16060
 
 
16061
 
 
16062
 
echo "$as_me:$LINENO: checking host system type" >&5
16063
 
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
19008
ac_save_IFS=$IFS; IFS='-'
 
19009
set x $ac_cv_build
 
19010
shift
 
19011
build_cpu=$1
 
19012
build_vendor=$2
 
19013
shift; shift
 
19014
# Remember, the first character of IFS is used to create $*,
 
19015
# except with old shells:
 
19016
build_os=$*
 
19017
IFS=$ac_save_IFS
 
19018
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
19019
 
 
19020
 
 
19021
{ echo "$as_me:$LINENO: checking host system type" >&5
 
19022
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
16064
19023
if test "${ac_cv_host+set}" = set; then
16065
19024
  echo $ECHO_N "(cached) $ECHO_C" >&6
16066
19025
else
16067
 
  ac_cv_host_alias=$host_alias
16068
 
test -z "$ac_cv_host_alias" &&
16069
 
  ac_cv_host_alias=$ac_cv_build_alias
16070
 
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
16071
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
16072
 
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
19026
  if test "x$host_alias" = x; then
 
19027
  ac_cv_host=$ac_cv_build
 
19028
else
 
19029
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
19030
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
 
19031
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
16073
19032
   { (exit 1); exit 1; }; }
 
19033
fi
16074
19034
 
16075
19035
fi
16076
 
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
16077
 
echo "${ECHO_T}$ac_cv_host" >&6
 
19036
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
19037
echo "${ECHO_T}$ac_cv_host" >&6; }
 
19038
case $ac_cv_host in
 
19039
*-*-*) ;;
 
19040
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
 
19041
echo "$as_me: error: invalid value of canonical host" >&2;}
 
19042
   { (exit 1); exit 1; }; };;
 
19043
esac
16078
19044
host=$ac_cv_host
16079
 
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
16080
 
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
16081
 
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
16082
 
 
16083
 
 
16084
 
 
16085
 
    echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
16086
 
echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6
 
19045
ac_save_IFS=$IFS; IFS='-'
 
19046
set x $ac_cv_host
 
19047
shift
 
19048
host_cpu=$1
 
19049
host_vendor=$2
 
19050
shift; shift
 
19051
# Remember, the first character of IFS is used to create $*,
 
19052
# except with old shells:
 
19053
host_os=$*
 
19054
IFS=$ac_save_IFS
 
19055
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
19056
 
 
19057
 
 
19058
 
 
19059
    { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
 
19060
echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
16087
19061
if test "${ac_cv_gnu_library_2+set}" = set; then
16088
19062
  echo $ECHO_N "(cached) $ECHO_C" >&6
16089
19063
else
16113
19087
 
16114
19088
 
16115
19089
fi
16116
 
echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
16117
 
echo "${ECHO_T}$ac_cv_gnu_library_2" >&6
 
19090
{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
 
19091
echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
16118
19092
 
16119
19093
    GLIBC2="$ac_cv_gnu_library_2"
16120
19094
 
16122
19096
if test -n "$ac_tool_prefix"; then
16123
19097
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
16124
19098
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
16125
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
16126
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19099
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19100
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16127
19101
if test "${ac_cv_prog_RANLIB+set}" = set; then
16128
19102
  echo $ECHO_N "(cached) $ECHO_C" >&6
16129
19103
else
16136
19110
  IFS=$as_save_IFS
16137
19111
  test -z "$as_dir" && as_dir=.
16138
19112
  for ac_exec_ext in '' $ac_executable_extensions; do
16139
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19113
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16140
19114
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
16141
19115
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16142
19116
    break 2
16143
19117
  fi
16144
19118
done
16145
19119
done
 
19120
IFS=$as_save_IFS
16146
19121
 
16147
19122
fi
16148
19123
fi
16149
19124
RANLIB=$ac_cv_prog_RANLIB
16150
19125
if test -n "$RANLIB"; then
16151
 
  echo "$as_me:$LINENO: result: $RANLIB" >&5
16152
 
echo "${ECHO_T}$RANLIB" >&6
 
19126
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
 
19127
echo "${ECHO_T}$RANLIB" >&6; }
16153
19128
else
16154
 
  echo "$as_me:$LINENO: result: no" >&5
16155
 
echo "${ECHO_T}no" >&6
 
19129
  { echo "$as_me:$LINENO: result: no" >&5
 
19130
echo "${ECHO_T}no" >&6; }
16156
19131
fi
 
19132
 
16157
19133
 
16158
19134
fi
16159
19135
if test -z "$ac_cv_prog_RANLIB"; then
16160
19136
  ac_ct_RANLIB=$RANLIB
16161
19137
  # Extract the first word of "ranlib", so it can be a program name with args.
16162
19138
set dummy ranlib; ac_word=$2
16163
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
16164
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19139
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19140
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16165
19141
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
16166
19142
  echo $ECHO_N "(cached) $ECHO_C" >&6
16167
19143
else
16174
19150
  IFS=$as_save_IFS
16175
19151
  test -z "$as_dir" && as_dir=.
16176
19152
  for ac_exec_ext in '' $ac_executable_extensions; do
16177
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19153
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16178
19154
    ac_cv_prog_ac_ct_RANLIB="ranlib"
16179
19155
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16180
19156
    break 2
16181
19157
  fi
16182
19158
done
16183
19159
done
 
19160
IFS=$as_save_IFS
16184
19161
 
16185
 
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
16186
19162
fi
16187
19163
fi
16188
19164
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
16189
19165
if test -n "$ac_ct_RANLIB"; then
16190
 
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
16191
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
19166
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
19167
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
16192
19168
else
16193
 
  echo "$as_me:$LINENO: result: no" >&5
16194
 
echo "${ECHO_T}no" >&6
 
19169
  { echo "$as_me:$LINENO: result: no" >&5
 
19170
echo "${ECHO_T}no" >&6; }
16195
19171
fi
16196
19172
 
16197
 
  RANLIB=$ac_ct_RANLIB
 
19173
  if test "x$ac_ct_RANLIB" = x; then
 
19174
    RANLIB=":"
 
19175
  else
 
19176
    case $cross_compiling:$ac_tool_warned in
 
19177
yes:)
 
19178
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
19179
whose name does not start with the host triplet.  If you think this
 
19180
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
19181
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
19182
whose name does not start with the host triplet.  If you think this
 
19183
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
19184
ac_tool_warned=yes ;;
 
19185
esac
 
19186
    RANLIB=$ac_ct_RANLIB
 
19187
  fi
16198
19188
else
16199
19189
  RANLIB="$ac_cv_prog_RANLIB"
16200
19190
fi
16201
19191
 
16202
19192
 
16203
 
  echo "$as_me:$LINENO: checking for signed" >&5
16204
 
echo $ECHO_N "checking for signed... $ECHO_C" >&6
16205
 
if test "${bh_cv_c_signed+set}" = set; then
16206
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16207
 
else
16208
 
  cat >conftest.$ac_ext <<_ACEOF
16209
 
/* confdefs.h.  */
16210
 
_ACEOF
16211
 
cat confdefs.h >>conftest.$ac_ext
16212
 
cat >>conftest.$ac_ext <<_ACEOF
16213
 
/* end confdefs.h.  */
16214
 
 
16215
 
int
16216
 
main ()
16217
 
{
16218
 
signed char x;
16219
 
  ;
16220
 
  return 0;
16221
 
}
16222
 
_ACEOF
16223
 
rm -f conftest.$ac_objext
16224
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16225
 
  (eval $ac_compile) 2>conftest.er1
16226
 
  ac_status=$?
16227
 
  grep -v '^ *+' conftest.er1 >conftest.err
16228
 
  rm -f conftest.er1
16229
 
  cat conftest.err >&5
16230
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231
 
  (exit $ac_status); } &&
16232
 
         { ac_try='test -z "$ac_c_werror_flag"
16233
 
                         || test ! -s conftest.err'
16234
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16235
 
  (eval $ac_try) 2>&5
16236
 
  ac_status=$?
16237
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238
 
  (exit $ac_status); }; } &&
16239
 
         { ac_try='test -s conftest.$ac_objext'
16240
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16241
 
  (eval $ac_try) 2>&5
16242
 
  ac_status=$?
16243
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244
 
  (exit $ac_status); }; }; then
16245
 
  bh_cv_c_signed=yes
16246
 
else
16247
 
  echo "$as_me: failed program was:" >&5
16248
 
sed 's/^/| /' conftest.$ac_ext >&5
16249
 
 
16250
 
bh_cv_c_signed=no
16251
 
fi
16252
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16253
 
fi
16254
 
echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
16255
 
echo "${ECHO_T}$bh_cv_c_signed" >&6
16256
 
  if test $bh_cv_c_signed = no; then
16257
 
 
16258
 
cat >>confdefs.h <<\_ACEOF
16259
 
#define signed
16260
 
_ACEOF
16261
 
 
16262
 
  fi
16263
 
 
16264
 
 
16265
 
  echo "$as_me:$LINENO: checking for long long" >&5
16266
 
echo $ECHO_N "checking for long long... $ECHO_C" >&6
16267
 
if test "${ac_cv_type_long_long+set}" = set; then
16268
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16269
 
else
16270
 
  cat >conftest.$ac_ext <<_ACEOF
16271
 
/* confdefs.h.  */
16272
 
_ACEOF
16273
 
cat confdefs.h >>conftest.$ac_ext
16274
 
cat >>conftest.$ac_ext <<_ACEOF
16275
 
/* end confdefs.h.  */
16276
 
long long ll = 1LL; int i = 63;
16277
 
int
16278
 
main ()
16279
 
{
16280
 
long long llmax = (long long) -1;
16281
 
     return ll << i | ll >> i | llmax / ll | llmax % ll;
16282
 
  ;
16283
 
  return 0;
16284
 
}
16285
 
_ACEOF
16286
 
rm -f conftest.$ac_objext conftest$ac_exeext
16287
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16288
 
  (eval $ac_link) 2>conftest.er1
16289
 
  ac_status=$?
16290
 
  grep -v '^ *+' conftest.er1 >conftest.err
16291
 
  rm -f conftest.er1
16292
 
  cat conftest.err >&5
16293
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16294
 
  (exit $ac_status); } &&
16295
 
         { ac_try='test -z "$ac_c_werror_flag"
16296
 
                         || test ! -s conftest.err'
16297
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16298
 
  (eval $ac_try) 2>&5
16299
 
  ac_status=$?
16300
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301
 
  (exit $ac_status); }; } &&
16302
 
         { ac_try='test -s conftest$ac_exeext'
16303
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16304
 
  (eval $ac_try) 2>&5
16305
 
  ac_status=$?
16306
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307
 
  (exit $ac_status); }; }; then
16308
 
  ac_cv_type_long_long=yes
16309
 
else
16310
 
  echo "$as_me: failed program was:" >&5
16311
 
sed 's/^/| /' conftest.$ac_ext >&5
16312
 
 
16313
 
ac_cv_type_long_long=no
16314
 
fi
16315
 
rm -f conftest.err conftest.$ac_objext \
16316
 
      conftest$ac_exeext conftest.$ac_ext
16317
 
fi
16318
 
echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16319
 
echo "${ECHO_T}$ac_cv_type_long_long" >&6
16320
 
  if test $ac_cv_type_long_long = yes; then
16321
 
 
16322
 
cat >>confdefs.h <<\_ACEOF
16323
 
#define HAVE_LONG_LONG 1
16324
 
_ACEOF
16325
 
 
16326
 
  fi
16327
 
 
16328
 
 
16329
 
  echo "$as_me:$LINENO: checking for long double" >&5
16330
 
echo $ECHO_N "checking for long double... $ECHO_C" >&6
16331
 
if test "${gt_cv_c_long_double+set}" = set; then
16332
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16333
 
else
16334
 
  if test "$GCC" = yes; then
16335
 
       gt_cv_c_long_double=yes
16336
 
     else
16337
 
       cat >conftest.$ac_ext <<_ACEOF
16338
 
/* confdefs.h.  */
16339
 
_ACEOF
16340
 
cat confdefs.h >>conftest.$ac_ext
16341
 
cat >>conftest.$ac_ext <<_ACEOF
16342
 
/* end confdefs.h.  */
16343
 
 
16344
 
         /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
16345
 
         long double foo = 0.0;
16346
 
         /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
16347
 
         int array [2*(sizeof(long double) >= sizeof(double)) - 1];
16348
 
 
16349
 
int
16350
 
main ()
16351
 
{
16352
 
 
16353
 
  ;
16354
 
  return 0;
16355
 
}
16356
 
_ACEOF
16357
 
rm -f conftest.$ac_objext
16358
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16359
 
  (eval $ac_compile) 2>conftest.er1
16360
 
  ac_status=$?
16361
 
  grep -v '^ *+' conftest.er1 >conftest.err
16362
 
  rm -f conftest.er1
16363
 
  cat conftest.err >&5
16364
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365
 
  (exit $ac_status); } &&
16366
 
         { ac_try='test -z "$ac_c_werror_flag"
16367
 
                         || test ! -s conftest.err'
16368
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16369
 
  (eval $ac_try) 2>&5
16370
 
  ac_status=$?
16371
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372
 
  (exit $ac_status); }; } &&
16373
 
         { ac_try='test -s conftest.$ac_objext'
16374
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16375
 
  (eval $ac_try) 2>&5
16376
 
  ac_status=$?
16377
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378
 
  (exit $ac_status); }; }; then
16379
 
  gt_cv_c_long_double=yes
16380
 
else
16381
 
  echo "$as_me: failed program was:" >&5
16382
 
sed 's/^/| /' conftest.$ac_ext >&5
16383
 
 
16384
 
gt_cv_c_long_double=no
16385
 
fi
16386
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16387
 
     fi
16388
 
fi
16389
 
echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
16390
 
echo "${ECHO_T}$gt_cv_c_long_double" >&6
16391
 
  if test $gt_cv_c_long_double = yes; then
16392
 
 
16393
 
cat >>confdefs.h <<\_ACEOF
16394
 
#define HAVE_LONG_DOUBLE 1
16395
 
_ACEOF
16396
 
 
16397
 
  fi
16398
 
 
16399
 
 
16400
 
  echo "$as_me:$LINENO: checking for wchar_t" >&5
16401
 
echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
16402
 
if test "${gt_cv_c_wchar_t+set}" = set; then
16403
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16404
 
else
16405
 
  cat >conftest.$ac_ext <<_ACEOF
16406
 
/* confdefs.h.  */
16407
 
_ACEOF
16408
 
cat confdefs.h >>conftest.$ac_ext
16409
 
cat >>conftest.$ac_ext <<_ACEOF
16410
 
/* end confdefs.h.  */
16411
 
#include <stddef.h>
16412
 
       wchar_t foo = (wchar_t)'\0';
16413
 
int
16414
 
main ()
16415
 
{
16416
 
 
16417
 
  ;
16418
 
  return 0;
16419
 
}
16420
 
_ACEOF
16421
 
rm -f conftest.$ac_objext
16422
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16423
 
  (eval $ac_compile) 2>conftest.er1
16424
 
  ac_status=$?
16425
 
  grep -v '^ *+' conftest.er1 >conftest.err
16426
 
  rm -f conftest.er1
16427
 
  cat conftest.err >&5
16428
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429
 
  (exit $ac_status); } &&
16430
 
         { ac_try='test -z "$ac_c_werror_flag"
16431
 
                         || test ! -s conftest.err'
16432
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16433
 
  (eval $ac_try) 2>&5
16434
 
  ac_status=$?
16435
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436
 
  (exit $ac_status); }; } &&
16437
 
         { ac_try='test -s conftest.$ac_objext'
16438
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16439
 
  (eval $ac_try) 2>&5
16440
 
  ac_status=$?
16441
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442
 
  (exit $ac_status); }; }; then
16443
 
  gt_cv_c_wchar_t=yes
16444
 
else
16445
 
  echo "$as_me: failed program was:" >&5
16446
 
sed 's/^/| /' conftest.$ac_ext >&5
16447
 
 
16448
 
gt_cv_c_wchar_t=no
16449
 
fi
16450
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16451
 
fi
16452
 
echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
16453
 
echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
16454
 
  if test $gt_cv_c_wchar_t = yes; then
16455
 
 
16456
 
cat >>confdefs.h <<\_ACEOF
16457
 
#define HAVE_WCHAR_T 1
16458
 
_ACEOF
16459
 
 
16460
 
  fi
16461
 
 
16462
 
 
16463
 
  echo "$as_me:$LINENO: checking for wint_t" >&5
16464
 
echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
16465
 
if test "${gt_cv_c_wint_t+set}" = set; then
16466
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16467
 
else
16468
 
  cat >conftest.$ac_ext <<_ACEOF
16469
 
/* confdefs.h.  */
16470
 
_ACEOF
16471
 
cat confdefs.h >>conftest.$ac_ext
16472
 
cat >>conftest.$ac_ext <<_ACEOF
16473
 
/* end confdefs.h.  */
16474
 
#include <wchar.h>
16475
 
       wint_t foo = (wchar_t)'\0';
16476
 
int
16477
 
main ()
16478
 
{
16479
 
 
16480
 
  ;
16481
 
  return 0;
16482
 
}
16483
 
_ACEOF
16484
 
rm -f conftest.$ac_objext
16485
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16486
 
  (eval $ac_compile) 2>conftest.er1
16487
 
  ac_status=$?
16488
 
  grep -v '^ *+' conftest.er1 >conftest.err
16489
 
  rm -f conftest.er1
16490
 
  cat conftest.err >&5
16491
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492
 
  (exit $ac_status); } &&
16493
 
         { ac_try='test -z "$ac_c_werror_flag"
16494
 
                         || test ! -s conftest.err'
16495
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16496
 
  (eval $ac_try) 2>&5
16497
 
  ac_status=$?
16498
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499
 
  (exit $ac_status); }; } &&
16500
 
         { ac_try='test -s conftest.$ac_objext'
16501
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16502
 
  (eval $ac_try) 2>&5
16503
 
  ac_status=$?
16504
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505
 
  (exit $ac_status); }; }; then
16506
 
  gt_cv_c_wint_t=yes
16507
 
else
16508
 
  echo "$as_me: failed program was:" >&5
16509
 
sed 's/^/| /' conftest.$ac_ext >&5
16510
 
 
16511
 
gt_cv_c_wint_t=no
16512
 
fi
16513
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16514
 
fi
16515
 
echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
16516
 
echo "${ECHO_T}$gt_cv_c_wint_t" >&6
16517
 
  if test $gt_cv_c_wint_t = yes; then
16518
 
 
16519
 
cat >>confdefs.h <<\_ACEOF
16520
 
#define HAVE_WINT_T 1
16521
 
_ACEOF
16522
 
 
16523
 
  fi
16524
 
 
16525
 
 
16526
 
  echo "$as_me:$LINENO: checking for inttypes.h" >&5
16527
 
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
16528
 
if test "${gl_cv_header_inttypes_h+set}" = set; then
16529
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16530
 
else
16531
 
  cat >conftest.$ac_ext <<_ACEOF
16532
 
/* confdefs.h.  */
16533
 
_ACEOF
16534
 
cat confdefs.h >>conftest.$ac_ext
16535
 
cat >>conftest.$ac_ext <<_ACEOF
16536
 
/* end confdefs.h.  */
16537
 
#include <sys/types.h>
16538
 
#include <inttypes.h>
16539
 
int
16540
 
main ()
16541
 
{
16542
 
uintmax_t i = (uintmax_t) -1;
16543
 
  ;
16544
 
  return 0;
16545
 
}
16546
 
_ACEOF
16547
 
rm -f conftest.$ac_objext
16548
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16549
 
  (eval $ac_compile) 2>conftest.er1
16550
 
  ac_status=$?
16551
 
  grep -v '^ *+' conftest.er1 >conftest.err
16552
 
  rm -f conftest.er1
16553
 
  cat conftest.err >&5
16554
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555
 
  (exit $ac_status); } &&
16556
 
         { ac_try='test -z "$ac_c_werror_flag"
16557
 
                         || test ! -s conftest.err'
16558
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16559
 
  (eval $ac_try) 2>&5
16560
 
  ac_status=$?
16561
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562
 
  (exit $ac_status); }; } &&
16563
 
         { ac_try='test -s conftest.$ac_objext'
16564
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16565
 
  (eval $ac_try) 2>&5
16566
 
  ac_status=$?
16567
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568
 
  (exit $ac_status); }; }; then
16569
 
  gl_cv_header_inttypes_h=yes
16570
 
else
16571
 
  echo "$as_me: failed program was:" >&5
16572
 
sed 's/^/| /' conftest.$ac_ext >&5
16573
 
 
16574
 
gl_cv_header_inttypes_h=no
16575
 
fi
16576
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16577
 
fi
16578
 
echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
16579
 
echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
16580
 
  if test $gl_cv_header_inttypes_h = yes; then
 
19193
 
 
19194
  CFLAG_VISIBILITY=
 
19195
  HAVE_VISIBILITY=0
 
19196
  if test -n "$GCC"; then
 
19197
    { echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
 
19198
echo $ECHO_N "checking for simple visibility declarations... $ECHO_C" >&6; }
 
19199
    if test "${gl_cv_cc_visibility+set}" = set; then
 
19200
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19201
else
 
19202
 
 
19203
      gl_save_CFLAGS="$CFLAGS"
 
19204
      CFLAGS="$CFLAGS -fvisibility=hidden"
 
19205
      cat >conftest.$ac_ext <<_ACEOF
 
19206
/* confdefs.h.  */
 
19207
_ACEOF
 
19208
cat confdefs.h >>conftest.$ac_ext
 
19209
cat >>conftest.$ac_ext <<_ACEOF
 
19210
/* end confdefs.h.  */
 
19211
extern __attribute__((__visibility__("hidden"))) int hiddenvar;
 
19212
         extern __attribute__((__visibility__("default"))) int exportedvar;
 
19213
         extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
 
19214
         extern __attribute__((__visibility__("default"))) int exportedfunc (void);
 
19215
int
 
19216
main ()
 
19217
{
 
19218
 
 
19219
  ;
 
19220
  return 0;
 
19221
}
 
19222
_ACEOF
 
19223
rm -f conftest.$ac_objext
 
19224
if { (ac_try="$ac_compile"
 
19225
case "(($ac_try" in
 
19226
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19227
  *) ac_try_echo=$ac_try;;
 
19228
esac
 
19229
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19230
  (eval "$ac_compile") 2>conftest.er1
 
19231
  ac_status=$?
 
19232
  grep -v '^ *+' conftest.er1 >conftest.err
 
19233
  rm -f conftest.er1
 
19234
  cat conftest.err >&5
 
19235
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19236
  (exit $ac_status); } && {
 
19237
         test -z "$ac_c_werror_flag" ||
 
19238
         test ! -s conftest.err
 
19239
       } && test -s conftest.$ac_objext; then
 
19240
  gl_cv_cc_visibility=yes
 
19241
else
 
19242
  echo "$as_me: failed program was:" >&5
 
19243
sed 's/^/| /' conftest.$ac_ext >&5
 
19244
 
 
19245
        gl_cv_cc_visibility=no
 
19246
fi
 
19247
 
 
19248
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19249
      CFLAGS="$gl_save_CFLAGS"
 
19250
fi
 
19251
 
 
19252
    { echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
 
19253
echo "${ECHO_T}$gl_cv_cc_visibility" >&6; }
 
19254
    if test $gl_cv_cc_visibility = yes; then
 
19255
      CFLAG_VISIBILITY="-fvisibility=hidden"
 
19256
      HAVE_VISIBILITY=1
 
19257
    fi
 
19258
  fi
 
19259
 
 
19260
 
16581
19261
 
16582
19262
cat >>confdefs.h <<_ACEOF
16583
 
#define HAVE_INTTYPES_H_WITH_UINTMAX 1
 
19263
#define HAVE_VISIBILITY $HAVE_VISIBILITY
16584
19264
_ACEOF
16585
19265
 
16586
 
  fi
16587
 
 
16588
 
 
16589
 
  echo "$as_me:$LINENO: checking for stdint.h" >&5
16590
 
echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
 
19266
 
 
19267
 
 
19268
  { echo "$as_me:$LINENO: checking for stdint.h" >&5
 
19269
echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
16591
19270
if test "${gl_cv_header_stdint_h+set}" = set; then
16592
19271
  echo $ECHO_N "(cached) $ECHO_C" >&6
16593
19272
else
16602
19281
int
16603
19282
main ()
16604
19283
{
16605
 
uintmax_t i = (uintmax_t) -1;
 
19284
uintmax_t i = (uintmax_t) -1; return !i;
16606
19285
  ;
16607
19286
  return 0;
16608
19287
}
16609
19288
_ACEOF
16610
19289
rm -f conftest.$ac_objext
16611
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16612
 
  (eval $ac_compile) 2>conftest.er1
 
19290
if { (ac_try="$ac_compile"
 
19291
case "(($ac_try" in
 
19292
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19293
  *) ac_try_echo=$ac_try;;
 
19294
esac
 
19295
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19296
  (eval "$ac_compile") 2>conftest.er1
16613
19297
  ac_status=$?
16614
19298
  grep -v '^ *+' conftest.er1 >conftest.err
16615
19299
  rm -f conftest.er1
16616
19300
  cat conftest.err >&5
16617
19301
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618
 
  (exit $ac_status); } &&
16619
 
         { ac_try='test -z "$ac_c_werror_flag"
16620
 
                         || test ! -s conftest.err'
16621
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16622
 
  (eval $ac_try) 2>&5
16623
 
  ac_status=$?
16624
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625
 
  (exit $ac_status); }; } &&
16626
 
         { ac_try='test -s conftest.$ac_objext'
16627
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16628
 
  (eval $ac_try) 2>&5
16629
 
  ac_status=$?
16630
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631
 
  (exit $ac_status); }; }; then
 
19302
  (exit $ac_status); } && {
 
19303
         test -z "$ac_c_werror_flag" ||
 
19304
         test ! -s conftest.err
 
19305
       } && test -s conftest.$ac_objext; then
16632
19306
  gl_cv_header_stdint_h=yes
16633
19307
else
16634
19308
  echo "$as_me: failed program was:" >&5
16635
19309
sed 's/^/| /' conftest.$ac_ext >&5
16636
19310
 
16637
 
gl_cv_header_stdint_h=no
16638
 
fi
16639
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16640
 
fi
16641
 
echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
16642
 
echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
 
19311
        gl_cv_header_stdint_h=no
 
19312
fi
 
19313
 
 
19314
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19315
fi
 
19316
{ echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
 
19317
echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
16643
19318
  if test $gl_cv_header_stdint_h = yes; then
16644
19319
 
16645
19320
cat >>confdefs.h <<_ACEOF
16648
19323
 
16649
19324
  fi
16650
19325
 
16651
 
 
16652
 
 
16653
 
 
16654
 
  echo "$as_me:$LINENO: checking for intmax_t" >&5
16655
 
echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
16656
 
if test "${gt_cv_c_intmax_t+set}" = set; then
16657
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16658
 
else
16659
 
  cat >conftest.$ac_ext <<_ACEOF
16660
 
/* confdefs.h.  */
16661
 
_ACEOF
16662
 
cat confdefs.h >>conftest.$ac_ext
16663
 
cat >>conftest.$ac_ext <<_ACEOF
16664
 
/* end confdefs.h.  */
16665
 
 
16666
 
#include <stddef.h>
16667
 
#include <stdlib.h>
16668
 
#if HAVE_STDINT_H_WITH_UINTMAX
16669
 
#include <stdint.h>
16670
 
#endif
16671
 
#if HAVE_INTTYPES_H_WITH_UINTMAX
16672
 
#include <inttypes.h>
16673
 
#endif
16674
 
 
16675
 
int
16676
 
main ()
16677
 
{
16678
 
intmax_t x = -1;
16679
 
  ;
16680
 
  return 0;
16681
 
}
16682
 
_ACEOF
16683
 
rm -f conftest.$ac_objext
16684
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16685
 
  (eval $ac_compile) 2>conftest.er1
16686
 
  ac_status=$?
16687
 
  grep -v '^ *+' conftest.er1 >conftest.err
16688
 
  rm -f conftest.er1
16689
 
  cat conftest.err >&5
16690
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691
 
  (exit $ac_status); } &&
16692
 
         { ac_try='test -z "$ac_c_werror_flag"
16693
 
                         || test ! -s conftest.err'
16694
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16695
 
  (eval $ac_try) 2>&5
16696
 
  ac_status=$?
16697
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698
 
  (exit $ac_status); }; } &&
16699
 
         { ac_try='test -s conftest.$ac_objext'
16700
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16701
 
  (eval $ac_try) 2>&5
16702
 
  ac_status=$?
16703
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704
 
  (exit $ac_status); }; }; then
16705
 
  gt_cv_c_intmax_t=yes
16706
 
else
16707
 
  echo "$as_me: failed program was:" >&5
16708
 
sed 's/^/| /' conftest.$ac_ext >&5
16709
 
 
16710
 
gt_cv_c_intmax_t=no
16711
 
fi
16712
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16713
 
fi
16714
 
echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
16715
 
echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
16716
 
  if test $gt_cv_c_intmax_t = yes; then
16717
 
 
16718
 
cat >>confdefs.h <<\_ACEOF
16719
 
#define HAVE_INTMAX_T 1
16720
 
_ACEOF
16721
 
 
16722
 
  fi
16723
 
 
16724
 
 
16725
 
 
16726
 
  echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
16727
 
echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
16728
 
if test "${gt_cv_func_printf_posix+set}" = set; then
16729
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16730
 
else
16731
 
 
16732
 
      if test "$cross_compiling" = yes; then
16733
 
 
16734
 
        cat >conftest.$ac_ext <<_ACEOF
16735
 
/* confdefs.h.  */
16736
 
_ACEOF
16737
 
cat confdefs.h >>conftest.$ac_ext
16738
 
cat >>conftest.$ac_ext <<_ACEOF
16739
 
/* end confdefs.h.  */
16740
 
 
16741
 
#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
16742
 
  notposix
16743
 
#endif
16744
 
 
16745
 
_ACEOF
16746
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16747
 
  $EGREP "notposix" >/dev/null 2>&1; then
16748
 
  gt_cv_func_printf_posix="guessing no"
16749
 
else
16750
 
  gt_cv_func_printf_posix="guessing yes"
16751
 
fi
16752
 
rm -f conftest*
16753
 
 
16754
 
 
16755
 
else
16756
 
  cat >conftest.$ac_ext <<_ACEOF
16757
 
/* confdefs.h.  */
16758
 
_ACEOF
16759
 
cat confdefs.h >>conftest.$ac_ext
16760
 
cat >>conftest.$ac_ext <<_ACEOF
16761
 
/* end confdefs.h.  */
16762
 
 
16763
 
#include <stdio.h>
16764
 
#include <string.h>
16765
 
/* The string "%2$d %1$d", with dollar characters protected from the shell's
16766
 
   dollar expansion (possibly an autoconf bug).  */
16767
 
static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
16768
 
static char buf[100];
16769
 
int main ()
16770
 
{
16771
 
  sprintf (buf, format, 33, 55);
16772
 
  return (strcmp (buf, "55 33") != 0);
16773
 
}
16774
 
_ACEOF
16775
 
rm -f conftest$ac_exeext
16776
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16777
 
  (eval $ac_link) 2>&5
16778
 
  ac_status=$?
16779
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16781
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16782
 
  (eval $ac_try) 2>&5
16783
 
  ac_status=$?
16784
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785
 
  (exit $ac_status); }; }; then
16786
 
  gt_cv_func_printf_posix=yes
16787
 
else
16788
 
  echo "$as_me: program exited with status $ac_status" >&5
16789
 
echo "$as_me: failed program was:" >&5
16790
 
sed 's/^/| /' conftest.$ac_ext >&5
16791
 
 
16792
 
( exit $ac_status )
16793
 
gt_cv_func_printf_posix=no
16794
 
fi
16795
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16796
 
fi
16797
 
 
16798
 
fi
16799
 
echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
16800
 
echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
16801
 
  case $gt_cv_func_printf_posix in
16802
 
    *yes)
16803
 
 
16804
 
cat >>confdefs.h <<\_ACEOF
16805
 
#define HAVE_POSIX_PRINTF 1
16806
 
_ACEOF
16807
 
 
16808
 
      ;;
16809
 
  esac
16810
 
 
16811
19326
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16812
19327
# for constant arguments.  Useless!
16813
 
echo "$as_me:$LINENO: checking for working alloca.h" >&5
16814
 
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
 
19328
{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
 
19329
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
16815
19330
if test "${ac_cv_working_alloca_h+set}" = set; then
16816
19331
  echo $ECHO_N "(cached) $ECHO_C" >&6
16817
19332
else
16826
19341
main ()
16827
19342
{
16828
19343
char *p = (char *) alloca (2 * sizeof (int));
 
19344
                          if (p) return 0;
16829
19345
  ;
16830
19346
  return 0;
16831
19347
}
16832
19348
_ACEOF
16833
19349
rm -f conftest.$ac_objext conftest$ac_exeext
16834
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16835
 
  (eval $ac_link) 2>conftest.er1
 
19350
if { (ac_try="$ac_link"
 
19351
case "(($ac_try" in
 
19352
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19353
  *) ac_try_echo=$ac_try;;
 
19354
esac
 
19355
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19356
  (eval "$ac_link") 2>conftest.er1
16836
19357
  ac_status=$?
16837
19358
  grep -v '^ *+' conftest.er1 >conftest.err
16838
19359
  rm -f conftest.er1
16839
19360
  cat conftest.err >&5
16840
19361
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841
 
  (exit $ac_status); } &&
16842
 
         { ac_try='test -z "$ac_c_werror_flag"
16843
 
                         || test ! -s conftest.err'
16844
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16845
 
  (eval $ac_try) 2>&5
16846
 
  ac_status=$?
16847
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848
 
  (exit $ac_status); }; } &&
16849
 
         { ac_try='test -s conftest$ac_exeext'
16850
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16851
 
  (eval $ac_try) 2>&5
16852
 
  ac_status=$?
16853
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854
 
  (exit $ac_status); }; }; then
 
19362
  (exit $ac_status); } && {
 
19363
         test -z "$ac_c_werror_flag" ||
 
19364
         test ! -s conftest.err
 
19365
       } && test -s conftest$ac_exeext &&
 
19366
       $as_test_x conftest$ac_exeext; then
16855
19367
  ac_cv_working_alloca_h=yes
16856
19368
else
16857
19369
  echo "$as_me: failed program was:" >&5
16858
19370
sed 's/^/| /' conftest.$ac_ext >&5
16859
19371
 
16860
 
ac_cv_working_alloca_h=no
 
19372
        ac_cv_working_alloca_h=no
16861
19373
fi
16862
 
rm -f conftest.err conftest.$ac_objext \
 
19374
 
 
19375
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16863
19376
      conftest$ac_exeext conftest.$ac_ext
16864
19377
fi
16865
 
echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16866
 
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
 
19378
{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
 
19379
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
16867
19380
if test $ac_cv_working_alloca_h = yes; then
16868
19381
 
16869
19382
cat >>confdefs.h <<\_ACEOF
16872
19385
 
16873
19386
fi
16874
19387
 
16875
 
echo "$as_me:$LINENO: checking for alloca" >&5
16876
 
echo $ECHO_N "checking for alloca... $ECHO_C" >&6
 
19388
{ echo "$as_me:$LINENO: checking for alloca" >&5
 
19389
echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
16877
19390
if test "${ac_cv_func_alloca_works+set}" = set; then
16878
19391
  echo $ECHO_N "(cached) $ECHO_C" >&6
16879
19392
else
16890
19403
#  include <malloc.h>
16891
19404
#  define alloca _alloca
16892
19405
# else
16893
 
#  if HAVE_ALLOCA_H
 
19406
#  ifdef HAVE_ALLOCA_H
16894
19407
#   include <alloca.h>
16895
19408
#  else
16896
19409
#   ifdef _AIX
16908
19421
main ()
16909
19422
{
16910
19423
char *p = (char *) alloca (1);
 
19424
                                    if (p) return 0;
16911
19425
  ;
16912
19426
  return 0;
16913
19427
}
16914
19428
_ACEOF
16915
19429
rm -f conftest.$ac_objext conftest$ac_exeext
16916
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16917
 
  (eval $ac_link) 2>conftest.er1
 
19430
if { (ac_try="$ac_link"
 
19431
case "(($ac_try" in
 
19432
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19433
  *) ac_try_echo=$ac_try;;
 
19434
esac
 
19435
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19436
  (eval "$ac_link") 2>conftest.er1
16918
19437
  ac_status=$?
16919
19438
  grep -v '^ *+' conftest.er1 >conftest.err
16920
19439
  rm -f conftest.er1
16921
19440
  cat conftest.err >&5
16922
19441
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923
 
  (exit $ac_status); } &&
16924
 
         { ac_try='test -z "$ac_c_werror_flag"
16925
 
                         || test ! -s conftest.err'
16926
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16927
 
  (eval $ac_try) 2>&5
16928
 
  ac_status=$?
16929
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930
 
  (exit $ac_status); }; } &&
16931
 
         { ac_try='test -s conftest$ac_exeext'
16932
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16933
 
  (eval $ac_try) 2>&5
16934
 
  ac_status=$?
16935
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936
 
  (exit $ac_status); }; }; then
 
19442
  (exit $ac_status); } && {
 
19443
         test -z "$ac_c_werror_flag" ||
 
19444
         test ! -s conftest.err
 
19445
       } && test -s conftest$ac_exeext &&
 
19446
       $as_test_x conftest$ac_exeext; then
16937
19447
  ac_cv_func_alloca_works=yes
16938
19448
else
16939
19449
  echo "$as_me: failed program was:" >&5
16940
19450
sed 's/^/| /' conftest.$ac_ext >&5
16941
19451
 
16942
 
ac_cv_func_alloca_works=no
 
19452
        ac_cv_func_alloca_works=no
16943
19453
fi
16944
 
rm -f conftest.err conftest.$ac_objext \
 
19454
 
 
19455
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16945
19456
      conftest$ac_exeext conftest.$ac_ext
16946
19457
fi
16947
 
echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16948
 
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
 
19458
{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
 
19459
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
16949
19460
 
16950
19461
if test $ac_cv_func_alloca_works = yes; then
16951
19462
 
16959
19470
# contain a buggy version.  If you still want to use their alloca,
16960
19471
# use ar to extract alloca.o from them instead of compiling alloca.c.
16961
19472
 
16962
 
ALLOCA=alloca.$ac_objext
 
19473
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16963
19474
 
16964
19475
cat >>confdefs.h <<\_ACEOF
16965
19476
#define C_ALLOCA 1
16966
19477
_ACEOF
16967
19478
 
16968
19479
 
16969
 
echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16970
 
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
 
19480
{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
 
19481
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
16971
19482
if test "${ac_cv_os_cray+set}" = set; then
16972
19483
  echo $ECHO_N "(cached) $ECHO_C" >&6
16973
19484
else
16977
19488
cat confdefs.h >>conftest.$ac_ext
16978
19489
cat >>conftest.$ac_ext <<_ACEOF
16979
19490
/* end confdefs.h.  */
16980
 
#if defined(CRAY) && ! defined(CRAY2)
 
19491
#if defined CRAY && ! defined CRAY2
16981
19492
webecray
16982
19493
#else
16983
19494
wenotbecray
16993
19504
rm -f conftest*
16994
19505
 
16995
19506
fi
16996
 
echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16997
 
echo "${ECHO_T}$ac_cv_os_cray" >&6
 
19507
{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
 
19508
echo "${ECHO_T}$ac_cv_os_cray" >&6; }
16998
19509
if test $ac_cv_os_cray = yes; then
16999
19510
  for ac_func in _getb67 GETB67 getb67; do
17000
19511
    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17001
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
17002
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17003
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
19512
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
19513
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
19514
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17004
19515
  echo $ECHO_N "(cached) $ECHO_C" >&6
17005
19516
else
17006
19517
  cat >conftest.$ac_ext <<_ACEOF
17026
19537
 
17027
19538
#undef $ac_func
17028
19539
 
17029
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
19540
/* Override any GCC internal prototype to avoid an error.
 
19541
   Use char because int might match the return type of a GCC
 
19542
   builtin and then its argument prototype would still apply.  */
17030
19543
#ifdef __cplusplus
17031
19544
extern "C"
17032
 
{
17033
19545
#endif
17034
 
/* We use char because int might match the return type of a gcc2
17035
 
   builtin and then its argument prototype would still apply.  */
17036
19546
char $ac_func ();
17037
19547
/* The GNU C library defines this for functions which it implements
17038
19548
    to always fail with ENOSYS.  Some functions are actually named
17039
19549
    something starting with __ and the normal name is an alias.  */
17040
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
19550
#if defined __stub_$ac_func || defined __stub___$ac_func
17041
19551
choke me
17042
 
#else
17043
 
char (*f) () = $ac_func;
17044
 
#endif
17045
 
#ifdef __cplusplus
17046
 
}
17047
19552
#endif
17048
19553
 
17049
19554
int
17050
19555
main ()
17051
19556
{
17052
 
return f != $ac_func;
 
19557
return $ac_func ();
17053
19558
  ;
17054
19559
  return 0;
17055
19560
}
17056
19561
_ACEOF
17057
19562
rm -f conftest.$ac_objext conftest$ac_exeext
17058
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17059
 
  (eval $ac_link) 2>conftest.er1
 
19563
if { (ac_try="$ac_link"
 
19564
case "(($ac_try" in
 
19565
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19566
  *) ac_try_echo=$ac_try;;
 
19567
esac
 
19568
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19569
  (eval "$ac_link") 2>conftest.er1
17060
19570
  ac_status=$?
17061
19571
  grep -v '^ *+' conftest.er1 >conftest.err
17062
19572
  rm -f conftest.er1
17063
19573
  cat conftest.err >&5
17064
19574
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065
 
  (exit $ac_status); } &&
17066
 
         { ac_try='test -z "$ac_c_werror_flag"
17067
 
                         || test ! -s conftest.err'
17068
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17069
 
  (eval $ac_try) 2>&5
17070
 
  ac_status=$?
17071
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072
 
  (exit $ac_status); }; } &&
17073
 
         { ac_try='test -s conftest$ac_exeext'
17074
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17075
 
  (eval $ac_try) 2>&5
17076
 
  ac_status=$?
17077
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078
 
  (exit $ac_status); }; }; then
 
19575
  (exit $ac_status); } && {
 
19576
         test -z "$ac_c_werror_flag" ||
 
19577
         test ! -s conftest.err
 
19578
       } && test -s conftest$ac_exeext &&
 
19579
       $as_test_x conftest$ac_exeext; then
17079
19580
  eval "$as_ac_var=yes"
17080
19581
else
17081
19582
  echo "$as_me: failed program was:" >&5
17082
19583
sed 's/^/| /' conftest.$ac_ext >&5
17083
19584
 
17084
 
eval "$as_ac_var=no"
 
19585
        eval "$as_ac_var=no"
17085
19586
fi
17086
 
rm -f conftest.err conftest.$ac_objext \
 
19587
 
 
19588
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17087
19589
      conftest$ac_exeext conftest.$ac_ext
17088
19590
fi
17089
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17090
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
19591
ac_res=`eval echo '${'$as_ac_var'}'`
 
19592
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
19593
echo "${ECHO_T}$ac_res" >&6; }
17091
19594
if test `eval echo '${'$as_ac_var'}'` = yes; then
17092
19595
 
17093
19596
cat >>confdefs.h <<_ACEOF
17100
19603
  done
17101
19604
fi
17102
19605
 
17103
 
echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17104
 
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
 
19606
{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
 
19607
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
17105
19608
if test "${ac_cv_c_stack_direction+set}" = set; then
17106
19609
  echo $ECHO_N "(cached) $ECHO_C" >&6
17107
19610
else
17114
19617
cat confdefs.h >>conftest.$ac_ext
17115
19618
cat >>conftest.$ac_ext <<_ACEOF
17116
19619
/* end confdefs.h.  */
 
19620
$ac_includes_default
17117
19621
int
17118
19622
find_stack_direction ()
17119
19623
{
17131
19635
int
17132
19636
main ()
17133
19637
{
17134
 
  exit (find_stack_direction () < 0);
 
19638
  return find_stack_direction () < 0;
17135
19639
}
17136
19640
_ACEOF
17137
19641
rm -f conftest$ac_exeext
17138
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17139
 
  (eval $ac_link) 2>&5
 
19642
if { (ac_try="$ac_link"
 
19643
case "(($ac_try" in
 
19644
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19645
  *) ac_try_echo=$ac_try;;
 
19646
esac
 
19647
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19648
  (eval "$ac_link") 2>&5
17140
19649
  ac_status=$?
17141
19650
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142
19651
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17143
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17144
 
  (eval $ac_try) 2>&5
 
19652
  { (case "(($ac_try" in
 
19653
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19654
  *) ac_try_echo=$ac_try;;
 
19655
esac
 
19656
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19657
  (eval "$ac_try") 2>&5
17145
19658
  ac_status=$?
17146
19659
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147
19660
  (exit $ac_status); }; }; then
17154
19667
( exit $ac_status )
17155
19668
ac_cv_c_stack_direction=-1
17156
19669
fi
17157
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17158
 
fi
17159
 
fi
17160
 
echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17161
 
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
 
19670
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
19671
fi
 
19672
 
 
19673
 
 
19674
fi
 
19675
{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
 
19676
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
17162
19677
 
17163
19678
cat >>confdefs.h <<_ACEOF
17164
19679
#define STACK_DIRECTION $ac_cv_c_stack_direction
17172
19687
for ac_header in stdlib.h unistd.h
17173
19688
do
17174
19689
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17175
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
17176
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
17177
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17178
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
19690
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
19691
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
19692
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
19693
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17179
19694
  echo $ECHO_N "(cached) $ECHO_C" >&6
17180
19695
fi
17181
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17182
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
19696
ac_res=`eval echo '${'$as_ac_Header'}'`
 
19697
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
19698
echo "${ECHO_T}$ac_res" >&6; }
17183
19699
else
17184
19700
  # Is the header compilable?
17185
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
17186
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
19701
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
19702
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17187
19703
cat >conftest.$ac_ext <<_ACEOF
17188
19704
/* confdefs.h.  */
17189
19705
_ACEOF
17194
19710
#include <$ac_header>
17195
19711
_ACEOF
17196
19712
rm -f conftest.$ac_objext
17197
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17198
 
  (eval $ac_compile) 2>conftest.er1
 
19713
if { (ac_try="$ac_compile"
 
19714
case "(($ac_try" in
 
19715
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19716
  *) ac_try_echo=$ac_try;;
 
19717
esac
 
19718
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19719
  (eval "$ac_compile") 2>conftest.er1
17199
19720
  ac_status=$?
17200
19721
  grep -v '^ *+' conftest.er1 >conftest.err
17201
19722
  rm -f conftest.er1
17202
19723
  cat conftest.err >&5
17203
19724
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204
 
  (exit $ac_status); } &&
17205
 
         { ac_try='test -z "$ac_c_werror_flag"
17206
 
                         || test ! -s conftest.err'
17207
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17208
 
  (eval $ac_try) 2>&5
17209
 
  ac_status=$?
17210
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211
 
  (exit $ac_status); }; } &&
17212
 
         { ac_try='test -s conftest.$ac_objext'
17213
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17214
 
  (eval $ac_try) 2>&5
17215
 
  ac_status=$?
17216
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217
 
  (exit $ac_status); }; }; then
 
19725
  (exit $ac_status); } && {
 
19726
         test -z "$ac_c_werror_flag" ||
 
19727
         test ! -s conftest.err
 
19728
       } && test -s conftest.$ac_objext; then
17218
19729
  ac_header_compiler=yes
17219
19730
else
17220
19731
  echo "$as_me: failed program was:" >&5
17221
19732
sed 's/^/| /' conftest.$ac_ext >&5
17222
19733
 
17223
 
ac_header_compiler=no
 
19734
        ac_header_compiler=no
17224
19735
fi
17225
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17226
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17227
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
19736
 
 
19737
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19738
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
19739
echo "${ECHO_T}$ac_header_compiler" >&6; }
17228
19740
 
17229
19741
# Is the header present?
17230
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
17231
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
19742
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
19743
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17232
19744
cat >conftest.$ac_ext <<_ACEOF
17233
19745
/* confdefs.h.  */
17234
19746
_ACEOF
17237
19749
/* end confdefs.h.  */
17238
19750
#include <$ac_header>
17239
19751
_ACEOF
17240
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17241
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
19752
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
19753
case "(($ac_try" in
 
19754
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19755
  *) ac_try_echo=$ac_try;;
 
19756
esac
 
19757
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19758
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17242
19759
  ac_status=$?
17243
19760
  grep -v '^ *+' conftest.er1 >conftest.err
17244
19761
  rm -f conftest.er1
17245
19762
  cat conftest.err >&5
17246
19763
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247
 
  (exit $ac_status); } >/dev/null; then
17248
 
  if test -s conftest.err; then
17249
 
    ac_cpp_err=$ac_c_preproc_warn_flag
17250
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17251
 
  else
17252
 
    ac_cpp_err=
17253
 
  fi
17254
 
else
17255
 
  ac_cpp_err=yes
17256
 
fi
17257
 
if test -z "$ac_cpp_err"; then
 
19764
  (exit $ac_status); } >/dev/null && {
 
19765
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
19766
         test ! -s conftest.err
 
19767
       }; then
17258
19768
  ac_header_preproc=yes
17259
19769
else
17260
19770
  echo "$as_me: failed program was:" >&5
17262
19772
 
17263
19773
  ac_header_preproc=no
17264
19774
fi
 
19775
 
17265
19776
rm -f conftest.err conftest.$ac_ext
17266
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17267
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
19777
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
19778
echo "${ECHO_T}$ac_header_preproc" >&6; }
17268
19779
 
17269
19780
# So?  What about this header?
17270
19781
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17288
19799
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17289
19800
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17290
19801
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17291
 
    (
17292
 
      cat <<\_ASBOX
 
19802
    ( cat <<\_ASBOX
17293
19803
## -------------------------------- ##
17294
19804
## Report this to sitecopy@lyra.org ##
17295
19805
## -------------------------------- ##
17296
19806
_ASBOX
17297
 
    ) |
17298
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
19807
     ) | sed "s/^/$as_me: WARNING:     /" >&2
17299
19808
    ;;
17300
19809
esac
17301
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
17302
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17303
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
19810
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
19811
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
19812
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17304
19813
  echo $ECHO_N "(cached) $ECHO_C" >&6
17305
19814
else
17306
19815
  eval "$as_ac_Header=\$ac_header_preproc"
17307
19816
fi
17308
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17309
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
19817
ac_res=`eval echo '${'$as_ac_Header'}'`
 
19818
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
19819
echo "${ECHO_T}$ac_res" >&6; }
17310
19820
 
17311
19821
fi
17312
19822
if test `eval echo '${'$as_ac_Header'}'` = yes; then
17322
19832
for ac_func in getpagesize
17323
19833
do
17324
19834
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17325
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
17326
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17327
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
19835
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
19836
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
19837
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17328
19838
  echo $ECHO_N "(cached) $ECHO_C" >&6
17329
19839
else
17330
19840
  cat >conftest.$ac_ext <<_ACEOF
17350
19860
 
17351
19861
#undef $ac_func
17352
19862
 
17353
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
19863
/* Override any GCC internal prototype to avoid an error.
 
19864
   Use char because int might match the return type of a GCC
 
19865
   builtin and then its argument prototype would still apply.  */
17354
19866
#ifdef __cplusplus
17355
19867
extern "C"
17356
 
{
17357
19868
#endif
17358
 
/* We use char because int might match the return type of a gcc2
17359
 
   builtin and then its argument prototype would still apply.  */
17360
19869
char $ac_func ();
17361
19870
/* The GNU C library defines this for functions which it implements
17362
19871
    to always fail with ENOSYS.  Some functions are actually named
17363
19872
    something starting with __ and the normal name is an alias.  */
17364
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
19873
#if defined __stub_$ac_func || defined __stub___$ac_func
17365
19874
choke me
17366
 
#else
17367
 
char (*f) () = $ac_func;
17368
 
#endif
17369
 
#ifdef __cplusplus
17370
 
}
17371
19875
#endif
17372
19876
 
17373
19877
int
17374
19878
main ()
17375
19879
{
17376
 
return f != $ac_func;
 
19880
return $ac_func ();
17377
19881
  ;
17378
19882
  return 0;
17379
19883
}
17380
19884
_ACEOF
17381
19885
rm -f conftest.$ac_objext conftest$ac_exeext
17382
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17383
 
  (eval $ac_link) 2>conftest.er1
 
19886
if { (ac_try="$ac_link"
 
19887
case "(($ac_try" in
 
19888
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19889
  *) ac_try_echo=$ac_try;;
 
19890
esac
 
19891
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19892
  (eval "$ac_link") 2>conftest.er1
17384
19893
  ac_status=$?
17385
19894
  grep -v '^ *+' conftest.er1 >conftest.err
17386
19895
  rm -f conftest.er1
17387
19896
  cat conftest.err >&5
17388
19897
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389
 
  (exit $ac_status); } &&
17390
 
         { ac_try='test -z "$ac_c_werror_flag"
17391
 
                         || test ! -s conftest.err'
17392
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17393
 
  (eval $ac_try) 2>&5
17394
 
  ac_status=$?
17395
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396
 
  (exit $ac_status); }; } &&
17397
 
         { ac_try='test -s conftest$ac_exeext'
17398
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17399
 
  (eval $ac_try) 2>&5
17400
 
  ac_status=$?
17401
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402
 
  (exit $ac_status); }; }; then
 
19898
  (exit $ac_status); } && {
 
19899
         test -z "$ac_c_werror_flag" ||
 
19900
         test ! -s conftest.err
 
19901
       } && test -s conftest$ac_exeext &&
 
19902
       $as_test_x conftest$ac_exeext; then
17403
19903
  eval "$as_ac_var=yes"
17404
19904
else
17405
19905
  echo "$as_me: failed program was:" >&5
17406
19906
sed 's/^/| /' conftest.$ac_ext >&5
17407
19907
 
17408
 
eval "$as_ac_var=no"
 
19908
        eval "$as_ac_var=no"
17409
19909
fi
17410
 
rm -f conftest.err conftest.$ac_objext \
 
19910
 
 
19911
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17411
19912
      conftest$ac_exeext conftest.$ac_ext
17412
19913
fi
17413
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17414
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
19914
ac_res=`eval echo '${'$as_ac_var'}'`
 
19915
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
19916
echo "${ECHO_T}$ac_res" >&6; }
17415
19917
if test `eval echo '${'$as_ac_var'}'` = yes; then
17416
19918
  cat >>confdefs.h <<_ACEOF
17417
19919
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17420
19922
fi
17421
19923
done
17422
19924
 
17423
 
echo "$as_me:$LINENO: checking for working mmap" >&5
17424
 
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
 
19925
{ echo "$as_me:$LINENO: checking for working mmap" >&5
 
19926
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17425
19927
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17426
19928
  echo $ECHO_N "(cached) $ECHO_C" >&6
17427
19929
else
17463
19965
#include <fcntl.h>
17464
19966
#include <sys/mman.h>
17465
19967
 
17466
 
#if !STDC_HEADERS && !HAVE_STDLIB_H
 
19968
#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
17467
19969
char *malloc ();
17468
19970
#endif
17469
19971
 
17470
19972
/* This mess was copied from the GNU getpagesize.h.  */
17471
 
#if !HAVE_GETPAGESIZE
 
19973
#ifndef HAVE_GETPAGESIZE
17472
19974
/* Assume that all systems that can run configure have sys/param.h.  */
17473
 
# if !HAVE_SYS_PARAM_H
 
19975
# ifndef HAVE_SYS_PARAM_H
17474
19976
#  define HAVE_SYS_PARAM_H 1
17475
19977
# endif
17476
19978
 
17477
19979
# ifdef _SC_PAGESIZE
17478
19980
#  define getpagesize() sysconf(_SC_PAGESIZE)
17479
19981
# else /* no _SC_PAGESIZE */
17480
 
#  if HAVE_SYS_PARAM_H
 
19982
#  ifdef HAVE_SYS_PARAM_H
17481
19983
#   include <sys/param.h>
17482
19984
#   ifdef EXEC_PAGESIZE
17483
19985
#    define getpagesize() EXEC_PAGESIZE
17516
20018
  /* First, make a file with some known garbage in it. */
17517
20019
  data = (char *) malloc (pagesize);
17518
20020
  if (!data)
17519
 
    exit (1);
 
20021
    return 1;
17520
20022
  for (i = 0; i < pagesize; ++i)
17521
20023
    *(data + i) = rand ();
17522
20024
  umask (0);
17523
20025
  fd = creat ("conftest.mmap", 0600);
17524
20026
  if (fd < 0)
17525
 
    exit (1);
 
20027
    return 1;
17526
20028
  if (write (fd, data, pagesize) != pagesize)
17527
 
    exit (1);
 
20029
    return 1;
17528
20030
  close (fd);
17529
20031
 
17530
20032
  /* Next, try to mmap the file at a fixed address which already has
17532
20034
     we see the same garbage.  */
17533
20035
  fd = open ("conftest.mmap", O_RDWR);
17534
20036
  if (fd < 0)
17535
 
    exit (1);
 
20037
    return 1;
17536
20038
  data2 = (char *) malloc (2 * pagesize);
17537
20039
  if (!data2)
17538
 
    exit (1);
17539
 
  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
 
20040
    return 1;
 
20041
  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
17540
20042
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17541
20043
                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
17542
 
    exit (1);
 
20044
    return 1;
17543
20045
  for (i = 0; i < pagesize; ++i)
17544
20046
    if (*(data + i) != *(data2 + i))
17545
 
      exit (1);
 
20047
      return 1;
17546
20048
 
17547
20049
  /* Finally, make sure that changes to the mapped area do not
17548
20050
     percolate back to the file as seen by read().  (This is a bug on
17551
20053
    *(data2 + i) = *(data2 + i) + 1;
17552
20054
  data3 = (char *) malloc (pagesize);
17553
20055
  if (!data3)
17554
 
    exit (1);
 
20056
    return 1;
17555
20057
  if (read (fd, data3, pagesize) != pagesize)
17556
 
    exit (1);
 
20058
    return 1;
17557
20059
  for (i = 0; i < pagesize; ++i)
17558
20060
    if (*(data + i) != *(data3 + i))
17559
 
      exit (1);
 
20061
      return 1;
17560
20062
  close (fd);
17561
 
  exit (0);
 
20063
  return 0;
17562
20064
}
17563
20065
_ACEOF
17564
20066
rm -f conftest$ac_exeext
17565
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17566
 
  (eval $ac_link) 2>&5
 
20067
if { (ac_try="$ac_link"
 
20068
case "(($ac_try" in
 
20069
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20070
  *) ac_try_echo=$ac_try;;
 
20071
esac
 
20072
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20073
  (eval "$ac_link") 2>&5
17567
20074
  ac_status=$?
17568
20075
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569
20076
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17570
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17571
 
  (eval $ac_try) 2>&5
 
20077
  { (case "(($ac_try" in
 
20078
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20079
  *) ac_try_echo=$ac_try;;
 
20080
esac
 
20081
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20082
  (eval "$ac_try") 2>&5
17572
20083
  ac_status=$?
17573
20084
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574
20085
  (exit $ac_status); }; }; then
17581
20092
( exit $ac_status )
17582
20093
ac_cv_func_mmap_fixed_mapped=no
17583
20094
fi
17584
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17585
 
fi
17586
 
fi
17587
 
echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17588
 
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
 
20095
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20096
fi
 
20097
 
 
20098
 
 
20099
fi
 
20100
{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
 
20101
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
17589
20102
if test $ac_cv_func_mmap_fixed_mapped = yes; then
17590
20103
 
17591
20104
cat >>confdefs.h <<\_ACEOF
17596
20109
rm -f conftest.mmap
17597
20110
 
17598
20111
 
17599
 
    echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
17600
 
echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
17601
 
if test "${ac_cv_gnu_library_2_1+set}" = set; then
17602
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17603
 
else
17604
 
  cat >conftest.$ac_ext <<_ACEOF
17605
 
/* confdefs.h.  */
17606
 
_ACEOF
17607
 
cat confdefs.h >>conftest.$ac_ext
17608
 
cat >>conftest.$ac_ext <<_ACEOF
17609
 
/* end confdefs.h.  */
17610
 
 
17611
 
#include <features.h>
17612
 
#ifdef __GNU_LIBRARY__
17613
 
 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
17614
 
  Lucky GNU user
17615
 
 #endif
17616
 
#endif
17617
 
 
17618
 
_ACEOF
17619
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17620
 
  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
17621
 
  ac_cv_gnu_library_2_1=yes
17622
 
else
17623
 
  ac_cv_gnu_library_2_1=no
17624
 
fi
17625
 
rm -f conftest*
17626
 
 
17627
 
 
17628
 
 
17629
 
fi
17630
 
echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
17631
 
echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
17632
 
 
17633
 
    GLIBC21="$ac_cv_gnu_library_2_1"
17634
 
 
17635
 
 
17636
 
 
17637
 
 
17638
 
  echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
17639
 
echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
 
20112
 
 
20113
  { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
 
20114
echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
17640
20115
if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
17641
20116
  echo $ECHO_N "(cached) $ECHO_C" >&6
17642
20117
else
17643
20118
 
17644
 
      if test "$cross_compiling" = yes; then
17645
 
 
17646
 
          # Guess based on the CPU.
 
20119
      gt_cv_int_divbyzero_sigfpe=
 
20120
      case "$host_os" in
 
20121
        macos* | darwin[6-9]* | darwin[1-9][0-9]*)
 
20122
          # On MacOS X 10.2 or newer, just assume the same as when cross-
 
20123
          # compiling. If we were to perform the real test, 1 Crash Report
 
20124
          # dialog window would pop up.
17647
20125
          case "$host_cpu" in
17648
 
            alpha* | i3456786 | m68k | s390*)
17649
 
              gt_cv_int_divbyzero_sigfpe="guessing yes";;
17650
 
            *)
17651
 
              gt_cv_int_divbyzero_sigfpe="guessing no";;
 
20126
            i[34567]86 | x86_64)
 
20127
              gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
17652
20128
          esac
 
20129
          ;;
 
20130
      esac
 
20131
      if test -z "$gt_cv_int_divbyzero_sigfpe"; then
 
20132
        if test "$cross_compiling" = yes; then
 
20133
 
 
20134
            # Guess based on the CPU.
 
20135
            case "$host_cpu" in
 
20136
              alpha* | i[34567]86 | x86_64 | m68k | s390*)
 
20137
                gt_cv_int_divbyzero_sigfpe="guessing yes";;
 
20138
              *)
 
20139
                gt_cv_int_divbyzero_sigfpe="guessing no";;
 
20140
            esac
17653
20141
 
17654
20142
else
17655
20143
  cat >conftest.$ac_ext <<_ACEOF
17663
20151
#include <signal.h>
17664
20152
 
17665
20153
static void
17666
 
#ifdef __cplusplus
17667
20154
sigfpe_handler (int sig)
17668
 
#else
17669
 
sigfpe_handler (sig) int sig;
17670
 
#endif
17671
20155
{
17672
20156
  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
17673
20157
  exit (sig != SIGFPE);
17697
20181
 
17698
20182
_ACEOF
17699
20183
rm -f conftest$ac_exeext
17700
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17701
 
  (eval $ac_link) 2>&5
 
20184
if { (ac_try="$ac_link"
 
20185
case "(($ac_try" in
 
20186
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20187
  *) ac_try_echo=$ac_try;;
 
20188
esac
 
20189
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20190
  (eval "$ac_link") 2>&5
17702
20191
  ac_status=$?
17703
20192
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704
20193
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17705
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17706
 
  (eval $ac_try) 2>&5
 
20194
  { (case "(($ac_try" in
 
20195
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20196
  *) ac_try_echo=$ac_try;;
 
20197
esac
 
20198
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20199
  (eval "$ac_try") 2>&5
17707
20200
  ac_status=$?
17708
20201
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709
20202
  (exit $ac_status); }; }; then
17716
20209
( exit $ac_status )
17717
20210
gt_cv_int_divbyzero_sigfpe=no
17718
20211
fi
17719
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17720
 
fi
17721
 
 
17722
 
fi
17723
 
echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
17724
 
echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
 
20212
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20213
fi
 
20214
 
 
20215
 
 
20216
      fi
 
20217
 
 
20218
fi
 
20219
{ echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
 
20220
echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
17725
20221
  case "$gt_cv_int_divbyzero_sigfpe" in
17726
20222
    *yes) value=1;;
17727
20223
    *) value=0;;
17733
20229
 
17734
20230
 
17735
20231
 
17736
 
  echo "$as_me:$LINENO: checking for unsigned long long" >&5
17737
 
echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
17738
 
if test "${ac_cv_type_unsigned_long_long+set}" = set; then
 
20232
  { echo "$as_me:$LINENO: checking for inttypes.h" >&5
 
20233
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
 
20234
if test "${gl_cv_header_inttypes_h+set}" = set; then
17739
20235
  echo $ECHO_N "(cached) $ECHO_C" >&6
17740
20236
else
17741
20237
  cat >conftest.$ac_ext <<_ACEOF
17744
20240
cat confdefs.h >>conftest.$ac_ext
17745
20241
cat >>conftest.$ac_ext <<_ACEOF
17746
20242
/* end confdefs.h.  */
17747
 
unsigned long long ull = 1ULL; int i = 63;
17748
 
int
17749
 
main ()
17750
 
{
17751
 
unsigned long long ullmax = (unsigned long long) -1;
17752
 
     return ull << i | ull >> i | ullmax / ull | ullmax % ull;
17753
 
  ;
17754
 
  return 0;
17755
 
}
 
20243
#include <sys/types.h>
 
20244
#include <inttypes.h>
 
20245
int
 
20246
main ()
 
20247
{
 
20248
uintmax_t i = (uintmax_t) -1; return !i;
 
20249
  ;
 
20250
  return 0;
 
20251
}
 
20252
_ACEOF
 
20253
rm -f conftest.$ac_objext
 
20254
if { (ac_try="$ac_compile"
 
20255
case "(($ac_try" in
 
20256
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20257
  *) ac_try_echo=$ac_try;;
 
20258
esac
 
20259
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20260
  (eval "$ac_compile") 2>conftest.er1
 
20261
  ac_status=$?
 
20262
  grep -v '^ *+' conftest.er1 >conftest.err
 
20263
  rm -f conftest.er1
 
20264
  cat conftest.err >&5
 
20265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20266
  (exit $ac_status); } && {
 
20267
         test -z "$ac_c_werror_flag" ||
 
20268
         test ! -s conftest.err
 
20269
       } && test -s conftest.$ac_objext; then
 
20270
  gl_cv_header_inttypes_h=yes
 
20271
else
 
20272
  echo "$as_me: failed program was:" >&5
 
20273
sed 's/^/| /' conftest.$ac_ext >&5
 
20274
 
 
20275
        gl_cv_header_inttypes_h=no
 
20276
fi
 
20277
 
 
20278
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20279
fi
 
20280
{ echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
 
20281
echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
 
20282
  if test $gl_cv_header_inttypes_h = yes; then
 
20283
 
 
20284
cat >>confdefs.h <<_ACEOF
 
20285
#define HAVE_INTTYPES_H_WITH_UINTMAX 1
 
20286
_ACEOF
 
20287
 
 
20288
  fi
 
20289
 
 
20290
 
 
20291
  { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
 
20292
echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
 
20293
if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
 
20294
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20295
else
 
20296
  cat >conftest.$ac_ext <<_ACEOF
 
20297
 
 
20298
  /* confdefs.h.  */
 
20299
_ACEOF
 
20300
cat confdefs.h >>conftest.$ac_ext
 
20301
cat >>conftest.$ac_ext <<_ACEOF
 
20302
/* end confdefs.h.  */
 
20303
/* Test preprocessor.  */
 
20304
      #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
 
20305
        error in preprocessor;
 
20306
      #endif
 
20307
      #if ! (18446744073709551615ULL <= -1ull)
 
20308
        error in preprocessor;
 
20309
      #endif
 
20310
      /* Test literals.  */
 
20311
      long long int ll = 9223372036854775807ll;
 
20312
      long long int nll = -9223372036854775807LL;
 
20313
      unsigned long long int ull = 18446744073709551615ULL;
 
20314
      /* Test constant expressions.   */
 
20315
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
 
20316
                     ? 1 : -1)];
 
20317
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
 
20318
                     ? 1 : -1)];
 
20319
      int i = 63;
 
20320
int
 
20321
main ()
 
20322
{
 
20323
/* Test availability of runtime routines for shift and division.  */
 
20324
      long long int llmax = 9223372036854775807ll;
 
20325
      unsigned long long int ullmax = 18446744073709551615ull;
 
20326
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
 
20327
              | (llmax / ll) | (llmax % ll)
 
20328
              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
 
20329
              | (ullmax / ull) | (ullmax % ull));
 
20330
  ;
 
20331
  return 0;
 
20332
}
 
20333
 
17756
20334
_ACEOF
17757
20335
rm -f conftest.$ac_objext conftest$ac_exeext
17758
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17759
 
  (eval $ac_link) 2>conftest.er1
 
20336
if { (ac_try="$ac_link"
 
20337
case "(($ac_try" in
 
20338
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20339
  *) ac_try_echo=$ac_try;;
 
20340
esac
 
20341
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20342
  (eval "$ac_link") 2>conftest.er1
17760
20343
  ac_status=$?
17761
20344
  grep -v '^ *+' conftest.er1 >conftest.err
17762
20345
  rm -f conftest.er1
17763
20346
  cat conftest.err >&5
17764
20347
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765
 
  (exit $ac_status); } &&
17766
 
         { ac_try='test -z "$ac_c_werror_flag"
17767
 
                         || test ! -s conftest.err'
17768
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17769
 
  (eval $ac_try) 2>&5
17770
 
  ac_status=$?
17771
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772
 
  (exit $ac_status); }; } &&
17773
 
         { ac_try='test -s conftest$ac_exeext'
17774
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17775
 
  (eval $ac_try) 2>&5
17776
 
  ac_status=$?
17777
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778
 
  (exit $ac_status); }; }; then
17779
 
  ac_cv_type_unsigned_long_long=yes
 
20348
  (exit $ac_status); } && {
 
20349
         test -z "$ac_c_werror_flag" ||
 
20350
         test ! -s conftest.err
 
20351
       } && test -s conftest$ac_exeext &&
 
20352
       $as_test_x conftest$ac_exeext; then
 
20353
  ac_cv_type_unsigned_long_long_int=yes
17780
20354
else
17781
20355
  echo "$as_me: failed program was:" >&5
17782
20356
sed 's/^/| /' conftest.$ac_ext >&5
17783
20357
 
17784
 
ac_cv_type_unsigned_long_long=no
 
20358
        ac_cv_type_unsigned_long_long_int=no
17785
20359
fi
17786
 
rm -f conftest.err conftest.$ac_objext \
 
20360
 
 
20361
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17787
20362
      conftest$ac_exeext conftest.$ac_ext
17788
20363
fi
17789
 
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
17790
 
echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
17791
 
  if test $ac_cv_type_unsigned_long_long = yes; then
 
20364
{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
 
20365
echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
 
20366
  if test $ac_cv_type_unsigned_long_long_int = yes; then
17792
20367
 
17793
20368
cat >>confdefs.h <<\_ACEOF
17794
 
#define HAVE_UNSIGNED_LONG_LONG 1
 
20369
#define HAVE_UNSIGNED_LONG_LONG_INT 1
17795
20370
_ACEOF
17796
20371
 
17797
20372
  fi
17801
20376
 
17802
20377
  if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
17803
20378
 
17804
 
    test $ac_cv_type_unsigned_long_long = yes \
 
20379
    test $ac_cv_type_unsigned_long_long_int = yes \
17805
20380
      && ac_type='unsigned long long' \
17806
20381
      || ac_type='unsigned long'
17807
20382
 
17818
20393
  fi
17819
20394
 
17820
20395
 
17821
 
  echo "$as_me:$LINENO: checking for inttypes.h" >&5
17822
 
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
17823
 
if test "${gt_cv_header_inttypes_h+set}" = set; then
 
20396
 
 
20397
for ac_header in inttypes.h
 
20398
do
 
20399
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
20400
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20401
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20402
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
20403
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17824
20404
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20405
fi
 
20406
ac_res=`eval echo '${'$as_ac_Header'}'`
 
20407
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
20408
echo "${ECHO_T}$ac_res" >&6; }
17825
20409
else
17826
 
 
17827
 
    cat >conftest.$ac_ext <<_ACEOF
 
20410
  # Is the header compilable?
 
20411
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20412
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
20413
cat >conftest.$ac_ext <<_ACEOF
17828
20414
/* confdefs.h.  */
17829
20415
_ACEOF
17830
20416
cat confdefs.h >>conftest.$ac_ext
17831
20417
cat >>conftest.$ac_ext <<_ACEOF
17832
20418
/* end confdefs.h.  */
17833
 
#include <sys/types.h>
17834
 
#include <inttypes.h>
17835
 
int
17836
 
main ()
17837
 
{
17838
 
 
17839
 
  ;
17840
 
  return 0;
17841
 
}
 
20419
$ac_includes_default
 
20420
#include <$ac_header>
17842
20421
_ACEOF
17843
20422
rm -f conftest.$ac_objext
17844
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17845
 
  (eval $ac_compile) 2>conftest.er1
17846
 
  ac_status=$?
17847
 
  grep -v '^ *+' conftest.er1 >conftest.err
17848
 
  rm -f conftest.er1
17849
 
  cat conftest.err >&5
17850
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851
 
  (exit $ac_status); } &&
17852
 
         { ac_try='test -z "$ac_c_werror_flag"
17853
 
                         || test ! -s conftest.err'
17854
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17855
 
  (eval $ac_try) 2>&5
17856
 
  ac_status=$?
17857
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858
 
  (exit $ac_status); }; } &&
17859
 
         { ac_try='test -s conftest.$ac_objext'
17860
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17861
 
  (eval $ac_try) 2>&5
17862
 
  ac_status=$?
17863
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864
 
  (exit $ac_status); }; }; then
17865
 
  gt_cv_header_inttypes_h=yes
17866
 
else
17867
 
  echo "$as_me: failed program was:" >&5
17868
 
sed 's/^/| /' conftest.$ac_ext >&5
17869
 
 
17870
 
gt_cv_header_inttypes_h=no
17871
 
fi
17872
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17873
 
 
17874
 
fi
17875
 
echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
17876
 
echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
17877
 
  if test $gt_cv_header_inttypes_h = yes; then
17878
 
 
17879
 
cat >>confdefs.h <<_ACEOF
17880
 
#define HAVE_INTTYPES_H 1
17881
 
_ACEOF
17882
 
 
17883
 
  fi
17884
 
 
17885
 
 
17886
 
 
17887
 
  if test $gt_cv_header_inttypes_h = yes; then
17888
 
    echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
17889
 
echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
 
20423
if { (ac_try="$ac_compile"
 
20424
case "(($ac_try" in
 
20425
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20426
  *) ac_try_echo=$ac_try;;
 
20427
esac
 
20428
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20429
  (eval "$ac_compile") 2>conftest.er1
 
20430
  ac_status=$?
 
20431
  grep -v '^ *+' conftest.er1 >conftest.err
 
20432
  rm -f conftest.er1
 
20433
  cat conftest.err >&5
 
20434
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20435
  (exit $ac_status); } && {
 
20436
         test -z "$ac_c_werror_flag" ||
 
20437
         test ! -s conftest.err
 
20438
       } && test -s conftest.$ac_objext; then
 
20439
  ac_header_compiler=yes
 
20440
else
 
20441
  echo "$as_me: failed program was:" >&5
 
20442
sed 's/^/| /' conftest.$ac_ext >&5
 
20443
 
 
20444
        ac_header_compiler=no
 
20445
fi
 
20446
 
 
20447
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20448
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20449
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
20450
 
 
20451
# Is the header present?
 
20452
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20453
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
20454
cat >conftest.$ac_ext <<_ACEOF
 
20455
/* confdefs.h.  */
 
20456
_ACEOF
 
20457
cat confdefs.h >>conftest.$ac_ext
 
20458
cat >>conftest.$ac_ext <<_ACEOF
 
20459
/* end confdefs.h.  */
 
20460
#include <$ac_header>
 
20461
_ACEOF
 
20462
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
20463
case "(($ac_try" in
 
20464
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20465
  *) ac_try_echo=$ac_try;;
 
20466
esac
 
20467
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20468
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
20469
  ac_status=$?
 
20470
  grep -v '^ *+' conftest.er1 >conftest.err
 
20471
  rm -f conftest.er1
 
20472
  cat conftest.err >&5
 
20473
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20474
  (exit $ac_status); } >/dev/null && {
 
20475
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
20476
         test ! -s conftest.err
 
20477
       }; then
 
20478
  ac_header_preproc=yes
 
20479
else
 
20480
  echo "$as_me: failed program was:" >&5
 
20481
sed 's/^/| /' conftest.$ac_ext >&5
 
20482
 
 
20483
  ac_header_preproc=no
 
20484
fi
 
20485
 
 
20486
rm -f conftest.err conftest.$ac_ext
 
20487
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20488
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
20489
 
 
20490
# So?  What about this header?
 
20491
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20492
  yes:no: )
 
20493
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
20494
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20495
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
20496
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20497
    ac_header_preproc=yes
 
20498
    ;;
 
20499
  no:yes:* )
 
20500
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
20501
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
20502
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
20503
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
20504
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
20505
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
20506
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
20507
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20508
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
20509
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
20510
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
20511
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
20512
    ( cat <<\_ASBOX
 
20513
## -------------------------------- ##
 
20514
## Report this to sitecopy@lyra.org ##
 
20515
## -------------------------------- ##
 
20516
_ASBOX
 
20517
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
20518
    ;;
 
20519
esac
 
20520
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20521
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
20522
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20523
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20524
else
 
20525
  eval "$as_ac_Header=\$ac_header_preproc"
 
20526
fi
 
20527
ac_res=`eval echo '${'$as_ac_Header'}'`
 
20528
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
20529
echo "${ECHO_T}$ac_res" >&6; }
 
20530
 
 
20531
fi
 
20532
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
20533
  cat >>confdefs.h <<_ACEOF
 
20534
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
20535
_ACEOF
 
20536
 
 
20537
fi
 
20538
 
 
20539
done
 
20540
 
 
20541
  if test $ac_cv_header_inttypes_h = yes; then
 
20542
    { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
 
20543
echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
17890
20544
if test "${gt_cv_inttypes_pri_broken+set}" = set; then
17891
20545
  echo $ECHO_N "(cached) $ECHO_C" >&6
17892
20546
else
17911
20565
}
17912
20566
_ACEOF
17913
20567
rm -f conftest.$ac_objext
17914
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17915
 
  (eval $ac_compile) 2>conftest.er1
 
20568
if { (ac_try="$ac_compile"
 
20569
case "(($ac_try" in
 
20570
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20571
  *) ac_try_echo=$ac_try;;
 
20572
esac
 
20573
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20574
  (eval "$ac_compile") 2>conftest.er1
17916
20575
  ac_status=$?
17917
20576
  grep -v '^ *+' conftest.er1 >conftest.err
17918
20577
  rm -f conftest.er1
17919
20578
  cat conftest.err >&5
17920
20579
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921
 
  (exit $ac_status); } &&
17922
 
         { ac_try='test -z "$ac_c_werror_flag"
17923
 
                         || test ! -s conftest.err'
17924
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17925
 
  (eval $ac_try) 2>&5
17926
 
  ac_status=$?
17927
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928
 
  (exit $ac_status); }; } &&
17929
 
         { ac_try='test -s conftest.$ac_objext'
17930
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17931
 
  (eval $ac_try) 2>&5
17932
 
  ac_status=$?
17933
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934
 
  (exit $ac_status); }; }; then
 
20580
  (exit $ac_status); } && {
 
20581
         test -z "$ac_c_werror_flag" ||
 
20582
         test ! -s conftest.err
 
20583
       } && test -s conftest.$ac_objext; then
17935
20584
  gt_cv_inttypes_pri_broken=no
17936
20585
else
17937
20586
  echo "$as_me: failed program was:" >&5
17938
20587
sed 's/^/| /' conftest.$ac_ext >&5
17939
20588
 
17940
 
gt_cv_inttypes_pri_broken=yes
17941
 
fi
17942
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17943
 
 
17944
 
fi
17945
 
echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
17946
 
echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
 
20589
        gt_cv_inttypes_pri_broken=yes
 
20590
fi
 
20591
 
 
20592
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20593
 
 
20594
fi
 
20595
{ echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
 
20596
echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
17947
20597
  fi
17948
20598
  if test "$gt_cv_inttypes_pri_broken" = yes; then
17949
20599
 
17951
20601
#define PRI_MACROS_BROKEN 1
17952
20602
_ACEOF
17953
20603
 
17954
 
  fi
17955
 
 
17956
 
 
17957
 
 
17958
 
for ac_header in stdint.h
17959
 
do
17960
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17961
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
17962
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
17963
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17964
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
17965
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17966
 
fi
17967
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17968
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17969
 
else
17970
 
  # Is the header compilable?
17971
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
17972
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17973
 
cat >conftest.$ac_ext <<_ACEOF
17974
 
/* confdefs.h.  */
17975
 
_ACEOF
17976
 
cat confdefs.h >>conftest.$ac_ext
17977
 
cat >>conftest.$ac_ext <<_ACEOF
17978
 
/* end confdefs.h.  */
17979
 
$ac_includes_default
17980
 
#include <$ac_header>
17981
 
_ACEOF
17982
 
rm -f conftest.$ac_objext
17983
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17984
 
  (eval $ac_compile) 2>conftest.er1
17985
 
  ac_status=$?
17986
 
  grep -v '^ *+' conftest.er1 >conftest.err
17987
 
  rm -f conftest.er1
17988
 
  cat conftest.err >&5
17989
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990
 
  (exit $ac_status); } &&
17991
 
         { ac_try='test -z "$ac_c_werror_flag"
17992
 
                         || test ! -s conftest.err'
17993
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17994
 
  (eval $ac_try) 2>&5
17995
 
  ac_status=$?
17996
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997
 
  (exit $ac_status); }; } &&
17998
 
         { ac_try='test -s conftest.$ac_objext'
17999
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18000
 
  (eval $ac_try) 2>&5
18001
 
  ac_status=$?
18002
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003
 
  (exit $ac_status); }; }; then
18004
 
  ac_header_compiler=yes
18005
 
else
18006
 
  echo "$as_me: failed program was:" >&5
18007
 
sed 's/^/| /' conftest.$ac_ext >&5
18008
 
 
18009
 
ac_header_compiler=no
18010
 
fi
18011
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18012
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18013
 
echo "${ECHO_T}$ac_header_compiler" >&6
18014
 
 
18015
 
# Is the header present?
18016
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
18017
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18018
 
cat >conftest.$ac_ext <<_ACEOF
18019
 
/* confdefs.h.  */
18020
 
_ACEOF
18021
 
cat confdefs.h >>conftest.$ac_ext
18022
 
cat >>conftest.$ac_ext <<_ACEOF
18023
 
/* end confdefs.h.  */
18024
 
#include <$ac_header>
18025
 
_ACEOF
18026
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18027
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18028
 
  ac_status=$?
18029
 
  grep -v '^ *+' conftest.er1 >conftest.err
18030
 
  rm -f conftest.er1
18031
 
  cat conftest.err >&5
18032
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18033
 
  (exit $ac_status); } >/dev/null; then
18034
 
  if test -s conftest.err; then
18035
 
    ac_cpp_err=$ac_c_preproc_warn_flag
18036
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
20604
    PRI_MACROS_BROKEN=1
18037
20605
  else
18038
 
    ac_cpp_err=
 
20606
    PRI_MACROS_BROKEN=0
18039
20607
  fi
18040
 
else
18041
 
  ac_cpp_err=yes
18042
 
fi
18043
 
if test -z "$ac_cpp_err"; then
18044
 
  ac_header_preproc=yes
18045
 
else
18046
 
  echo "$as_me: failed program was:" >&5
18047
 
sed 's/^/| /' conftest.$ac_ext >&5
18048
 
 
18049
 
  ac_header_preproc=no
18050
 
fi
18051
 
rm -f conftest.err conftest.$ac_ext
18052
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18053
 
echo "${ECHO_T}$ac_header_preproc" >&6
18054
 
 
18055
 
# So?  What about this header?
18056
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18057
 
  yes:no: )
18058
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18059
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18060
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18061
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18062
 
    ac_header_preproc=yes
18063
 
    ;;
18064
 
  no:yes:* )
18065
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18066
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18067
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18068
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18069
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18070
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18071
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18072
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18073
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18074
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18075
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18076
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18077
 
    (
18078
 
      cat <<\_ASBOX
18079
 
## -------------------------------- ##
18080
 
## Report this to sitecopy@lyra.org ##
18081
 
## -------------------------------- ##
18082
 
_ASBOX
18083
 
    ) |
18084
 
      sed "s/^/$as_me: WARNING:     /" >&2
18085
 
    ;;
18086
 
esac
18087
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
18088
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18089
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
18090
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18091
 
else
18092
 
  eval "$as_ac_Header=\$ac_header_preproc"
18093
 
fi
18094
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18095
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18096
 
 
18097
 
fi
18098
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
18099
 
  cat >>confdefs.h <<_ACEOF
18100
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
20608
 
 
20609
 
 
20610
 
 
20611
cat >>confdefs.h <<\_ACEOF
 
20612
#define _GNU_SOURCE 1
18101
20613
_ACEOF
18102
20614
 
18103
 
fi
18104
 
 
18105
 
done
18106
 
 
18107
 
    echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
18108
 
echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
18109
 
  result=
18110
 
  cat >conftest.$ac_ext <<_ACEOF
 
20615
 
 
20616
 
 
20617
{ echo "$as_me:$LINENO: checking for AIX" >&5
 
20618
echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
 
20619
cat >conftest.$ac_ext <<_ACEOF
18111
20620
/* confdefs.h.  */
18112
20621
_ACEOF
18113
20622
cat confdefs.h >>conftest.$ac_ext
18114
20623
cat >>conftest.$ac_ext <<_ACEOF
18115
20624
/* end confdefs.h.  */
18116
 
 
18117
 
#include <limits.h>
18118
 
#if HAVE_STDINT_H
18119
 
#include <stdint.h>
18120
 
#endif
18121
 
#ifdef SIZE_MAX
18122
 
Found it
 
20625
#ifdef _AIX
 
20626
  yes
18123
20627
#endif
18124
20628
 
18125
20629
_ACEOF
18126
20630
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18127
 
  $EGREP "Found it" >/dev/null 2>&1; then
18128
 
  result=yes
 
20631
  $EGREP "yes" >/dev/null 2>&1; then
 
20632
  { echo "$as_me:$LINENO: result: yes" >&5
 
20633
echo "${ECHO_T}yes" >&6; }
 
20634
cat >>confdefs.h <<\_ACEOF
 
20635
#define _ALL_SOURCE 1
 
20636
_ACEOF
 
20637
 
 
20638
else
 
20639
  { echo "$as_me:$LINENO: result: no" >&5
 
20640
echo "${ECHO_T}no" >&6; }
18129
20641
fi
18130
20642
rm -f conftest*
18131
20643
 
18132
 
  if test -z "$result"; then
18133
 
                    if test "$cross_compiling" = yes; then
18134
 
  # Depending upon the size, compute the lo and hi bounds.
18135
 
cat >conftest.$ac_ext <<_ACEOF
18136
 
/* confdefs.h.  */
18137
 
_ACEOF
18138
 
cat confdefs.h >>conftest.$ac_ext
18139
 
cat >>conftest.$ac_ext <<_ACEOF
18140
 
/* end confdefs.h.  */
18141
 
#include <stddef.h>
18142
 
int
18143
 
main ()
18144
 
{
18145
 
static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
18146
 
test_array [0] = 0
18147
 
 
18148
 
  ;
18149
 
  return 0;
18150
 
}
18151
 
_ACEOF
18152
 
rm -f conftest.$ac_objext
18153
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18154
 
  (eval $ac_compile) 2>conftest.er1
18155
 
  ac_status=$?
18156
 
  grep -v '^ *+' conftest.er1 >conftest.err
18157
 
  rm -f conftest.er1
18158
 
  cat conftest.err >&5
18159
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160
 
  (exit $ac_status); } &&
18161
 
         { ac_try='test -z "$ac_c_werror_flag"
18162
 
                         || test ! -s conftest.err'
18163
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18164
 
  (eval $ac_try) 2>&5
18165
 
  ac_status=$?
18166
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167
 
  (exit $ac_status); }; } &&
18168
 
         { ac_try='test -s conftest.$ac_objext'
18169
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18170
 
  (eval $ac_try) 2>&5
18171
 
  ac_status=$?
18172
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18173
 
  (exit $ac_status); }; }; then
18174
 
  ac_lo=0 ac_mid=0
18175
 
  while :; do
18176
 
    cat >conftest.$ac_ext <<_ACEOF
18177
 
/* confdefs.h.  */
18178
 
_ACEOF
18179
 
cat confdefs.h >>conftest.$ac_ext
18180
 
cat >>conftest.$ac_ext <<_ACEOF
18181
 
/* end confdefs.h.  */
18182
 
#include <stddef.h>
18183
 
int
18184
 
main ()
18185
 
{
18186
 
static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
18187
 
test_array [0] = 0
18188
 
 
18189
 
  ;
18190
 
  return 0;
18191
 
}
18192
 
_ACEOF
18193
 
rm -f conftest.$ac_objext
18194
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18195
 
  (eval $ac_compile) 2>conftest.er1
18196
 
  ac_status=$?
18197
 
  grep -v '^ *+' conftest.er1 >conftest.err
18198
 
  rm -f conftest.er1
18199
 
  cat conftest.err >&5
18200
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18201
 
  (exit $ac_status); } &&
18202
 
         { ac_try='test -z "$ac_c_werror_flag"
18203
 
                         || test ! -s conftest.err'
18204
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18205
 
  (eval $ac_try) 2>&5
18206
 
  ac_status=$?
18207
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208
 
  (exit $ac_status); }; } &&
18209
 
         { ac_try='test -s conftest.$ac_objext'
18210
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18211
 
  (eval $ac_try) 2>&5
18212
 
  ac_status=$?
18213
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214
 
  (exit $ac_status); }; }; then
18215
 
  ac_hi=$ac_mid; break
18216
 
else
18217
 
  echo "$as_me: failed program was:" >&5
18218
 
sed 's/^/| /' conftest.$ac_ext >&5
18219
 
 
18220
 
ac_lo=`expr $ac_mid + 1`
18221
 
                    if test $ac_lo -le $ac_mid; then
18222
 
                      ac_lo= ac_hi=
18223
 
                      break
18224
 
                    fi
18225
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
18226
 
fi
18227
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18228
 
  done
18229
 
else
18230
 
  echo "$as_me: failed program was:" >&5
18231
 
sed 's/^/| /' conftest.$ac_ext >&5
18232
 
 
18233
 
cat >conftest.$ac_ext <<_ACEOF
18234
 
/* confdefs.h.  */
18235
 
_ACEOF
18236
 
cat confdefs.h >>conftest.$ac_ext
18237
 
cat >>conftest.$ac_ext <<_ACEOF
18238
 
/* end confdefs.h.  */
18239
 
#include <stddef.h>
18240
 
int
18241
 
main ()
18242
 
{
18243
 
static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
18244
 
test_array [0] = 0
18245
 
 
18246
 
  ;
18247
 
  return 0;
18248
 
}
18249
 
_ACEOF
18250
 
rm -f conftest.$ac_objext
18251
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18252
 
  (eval $ac_compile) 2>conftest.er1
18253
 
  ac_status=$?
18254
 
  grep -v '^ *+' conftest.er1 >conftest.err
18255
 
  rm -f conftest.er1
18256
 
  cat conftest.err >&5
18257
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258
 
  (exit $ac_status); } &&
18259
 
         { ac_try='test -z "$ac_c_werror_flag"
18260
 
                         || test ! -s conftest.err'
18261
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18262
 
  (eval $ac_try) 2>&5
18263
 
  ac_status=$?
18264
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265
 
  (exit $ac_status); }; } &&
18266
 
         { ac_try='test -s conftest.$ac_objext'
18267
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18268
 
  (eval $ac_try) 2>&5
18269
 
  ac_status=$?
18270
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271
 
  (exit $ac_status); }; }; then
18272
 
  ac_hi=-1 ac_mid=-1
18273
 
  while :; do
18274
 
    cat >conftest.$ac_ext <<_ACEOF
18275
 
/* confdefs.h.  */
18276
 
_ACEOF
18277
 
cat confdefs.h >>conftest.$ac_ext
18278
 
cat >>conftest.$ac_ext <<_ACEOF
18279
 
/* end confdefs.h.  */
18280
 
#include <stddef.h>
18281
 
int
18282
 
main ()
18283
 
{
18284
 
static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
18285
 
test_array [0] = 0
18286
 
 
18287
 
  ;
18288
 
  return 0;
18289
 
}
18290
 
_ACEOF
18291
 
rm -f conftest.$ac_objext
18292
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18293
 
  (eval $ac_compile) 2>conftest.er1
18294
 
  ac_status=$?
18295
 
  grep -v '^ *+' conftest.er1 >conftest.err
18296
 
  rm -f conftest.er1
18297
 
  cat conftest.err >&5
18298
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299
 
  (exit $ac_status); } &&
18300
 
         { ac_try='test -z "$ac_c_werror_flag"
18301
 
                         || test ! -s conftest.err'
18302
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18303
 
  (eval $ac_try) 2>&5
18304
 
  ac_status=$?
18305
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306
 
  (exit $ac_status); }; } &&
18307
 
         { ac_try='test -s conftest.$ac_objext'
18308
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18309
 
  (eval $ac_try) 2>&5
18310
 
  ac_status=$?
18311
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312
 
  (exit $ac_status); }; }; then
18313
 
  ac_lo=$ac_mid; break
18314
 
else
18315
 
  echo "$as_me: failed program was:" >&5
18316
 
sed 's/^/| /' conftest.$ac_ext >&5
18317
 
 
18318
 
ac_hi=`expr '(' $ac_mid ')' - 1`
18319
 
                       if test $ac_mid -le $ac_hi; then
18320
 
                         ac_lo= ac_hi=
18321
 
                         break
18322
 
                       fi
18323
 
                       ac_mid=`expr 2 '*' $ac_mid`
18324
 
fi
18325
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18326
 
  done
18327
 
else
18328
 
  echo "$as_me: failed program was:" >&5
18329
 
sed 's/^/| /' conftest.$ac_ext >&5
18330
 
 
18331
 
ac_lo= ac_hi=
18332
 
fi
18333
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18334
 
fi
18335
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18336
 
# Binary search between lo and hi bounds.
18337
 
while test "x$ac_lo" != "x$ac_hi"; do
18338
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18339
 
  cat >conftest.$ac_ext <<_ACEOF
18340
 
/* confdefs.h.  */
18341
 
_ACEOF
18342
 
cat confdefs.h >>conftest.$ac_ext
18343
 
cat >>conftest.$ac_ext <<_ACEOF
18344
 
/* end confdefs.h.  */
18345
 
#include <stddef.h>
18346
 
int
18347
 
main ()
18348
 
{
18349
 
static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
18350
 
test_array [0] = 0
18351
 
 
18352
 
  ;
18353
 
  return 0;
18354
 
}
18355
 
_ACEOF
18356
 
rm -f conftest.$ac_objext
18357
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18358
 
  (eval $ac_compile) 2>conftest.er1
18359
 
  ac_status=$?
18360
 
  grep -v '^ *+' conftest.er1 >conftest.err
18361
 
  rm -f conftest.er1
18362
 
  cat conftest.err >&5
18363
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364
 
  (exit $ac_status); } &&
18365
 
         { ac_try='test -z "$ac_c_werror_flag"
18366
 
                         || test ! -s conftest.err'
18367
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18368
 
  (eval $ac_try) 2>&5
18369
 
  ac_status=$?
18370
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371
 
  (exit $ac_status); }; } &&
18372
 
         { ac_try='test -s conftest.$ac_objext'
18373
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18374
 
  (eval $ac_try) 2>&5
18375
 
  ac_status=$?
18376
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18377
 
  (exit $ac_status); }; }; then
18378
 
  ac_hi=$ac_mid
18379
 
else
18380
 
  echo "$as_me: failed program was:" >&5
18381
 
sed 's/^/| /' conftest.$ac_ext >&5
18382
 
 
18383
 
ac_lo=`expr '(' $ac_mid ')' + 1`
18384
 
fi
18385
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18386
 
done
18387
 
case $ac_lo in
18388
 
?*) res_hi=$ac_lo;;
18389
 
'') result=? ;;
18390
 
esac
18391
 
else
18392
 
  if test "$cross_compiling" = yes; then
18393
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18394
 
See \`config.log' for more details." >&5
18395
 
echo "$as_me: error: cannot run test program while cross compiling
18396
 
See \`config.log' for more details." >&2;}
18397
 
   { (exit 1); exit 1; }; }
18398
 
else
18399
 
  cat >conftest.$ac_ext <<_ACEOF
18400
 
/* confdefs.h.  */
18401
 
_ACEOF
18402
 
cat confdefs.h >>conftest.$ac_ext
18403
 
cat >>conftest.$ac_ext <<_ACEOF
18404
 
/* end confdefs.h.  */
18405
 
#include <stddef.h>
18406
 
long longval () { return ~(size_t)0 / 10; }
18407
 
unsigned long ulongval () { return ~(size_t)0 / 10; }
18408
 
#include <stdio.h>
18409
 
#include <stdlib.h>
18410
 
int
18411
 
main ()
18412
 
{
18413
 
 
18414
 
  FILE *f = fopen ("conftest.val", "w");
18415
 
  if (! f)
18416
 
    exit (1);
18417
 
  if ((~(size_t)0 / 10) < 0)
18418
 
    {
18419
 
      long i = longval ();
18420
 
      if (i != (~(size_t)0 / 10))
18421
 
        exit (1);
18422
 
      fprintf (f, "%ld\n", i);
18423
 
    }
18424
 
  else
18425
 
    {
18426
 
      unsigned long i = ulongval ();
18427
 
      if (i != (~(size_t)0 / 10))
18428
 
        exit (1);
18429
 
      fprintf (f, "%lu\n", i);
18430
 
    }
18431
 
  exit (ferror (f) || fclose (f) != 0);
18432
 
 
18433
 
  ;
18434
 
  return 0;
18435
 
}
18436
 
_ACEOF
18437
 
rm -f conftest$ac_exeext
18438
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18439
 
  (eval $ac_link) 2>&5
18440
 
  ac_status=$?
18441
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18443
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18444
 
  (eval $ac_try) 2>&5
18445
 
  ac_status=$?
18446
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447
 
  (exit $ac_status); }; }; then
18448
 
  res_hi=`cat conftest.val`
18449
 
else
18450
 
  echo "$as_me: program exited with status $ac_status" >&5
18451
 
echo "$as_me: failed program was:" >&5
18452
 
sed 's/^/| /' conftest.$ac_ext >&5
18453
 
 
18454
 
( exit $ac_status )
18455
 
result=?
18456
 
fi
18457
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18458
 
fi
18459
 
fi
18460
 
rm -f conftest.val
18461
 
    if test "$cross_compiling" = yes; then
18462
 
  # Depending upon the size, compute the lo and hi bounds.
18463
 
cat >conftest.$ac_ext <<_ACEOF
18464
 
/* confdefs.h.  */
18465
 
_ACEOF
18466
 
cat confdefs.h >>conftest.$ac_ext
18467
 
cat >>conftest.$ac_ext <<_ACEOF
18468
 
/* end confdefs.h.  */
18469
 
#include <stddef.h>
18470
 
int
18471
 
main ()
18472
 
{
18473
 
static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
18474
 
test_array [0] = 0
18475
 
 
18476
 
  ;
18477
 
  return 0;
18478
 
}
18479
 
_ACEOF
18480
 
rm -f conftest.$ac_objext
18481
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18482
 
  (eval $ac_compile) 2>conftest.er1
18483
 
  ac_status=$?
18484
 
  grep -v '^ *+' conftest.er1 >conftest.err
18485
 
  rm -f conftest.er1
18486
 
  cat conftest.err >&5
18487
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488
 
  (exit $ac_status); } &&
18489
 
         { ac_try='test -z "$ac_c_werror_flag"
18490
 
                         || test ! -s conftest.err'
18491
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18492
 
  (eval $ac_try) 2>&5
18493
 
  ac_status=$?
18494
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495
 
  (exit $ac_status); }; } &&
18496
 
         { ac_try='test -s conftest.$ac_objext'
18497
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18498
 
  (eval $ac_try) 2>&5
18499
 
  ac_status=$?
18500
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501
 
  (exit $ac_status); }; }; then
18502
 
  ac_lo=0 ac_mid=0
18503
 
  while :; do
18504
 
    cat >conftest.$ac_ext <<_ACEOF
18505
 
/* confdefs.h.  */
18506
 
_ACEOF
18507
 
cat confdefs.h >>conftest.$ac_ext
18508
 
cat >>conftest.$ac_ext <<_ACEOF
18509
 
/* end confdefs.h.  */
18510
 
#include <stddef.h>
18511
 
int
18512
 
main ()
18513
 
{
18514
 
static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
18515
 
test_array [0] = 0
18516
 
 
18517
 
  ;
18518
 
  return 0;
18519
 
}
18520
 
_ACEOF
18521
 
rm -f conftest.$ac_objext
18522
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18523
 
  (eval $ac_compile) 2>conftest.er1
18524
 
  ac_status=$?
18525
 
  grep -v '^ *+' conftest.er1 >conftest.err
18526
 
  rm -f conftest.er1
18527
 
  cat conftest.err >&5
18528
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529
 
  (exit $ac_status); } &&
18530
 
         { ac_try='test -z "$ac_c_werror_flag"
18531
 
                         || test ! -s conftest.err'
18532
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18533
 
  (eval $ac_try) 2>&5
18534
 
  ac_status=$?
18535
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536
 
  (exit $ac_status); }; } &&
18537
 
         { ac_try='test -s conftest.$ac_objext'
18538
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18539
 
  (eval $ac_try) 2>&5
18540
 
  ac_status=$?
18541
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542
 
  (exit $ac_status); }; }; then
18543
 
  ac_hi=$ac_mid; break
18544
 
else
18545
 
  echo "$as_me: failed program was:" >&5
18546
 
sed 's/^/| /' conftest.$ac_ext >&5
18547
 
 
18548
 
ac_lo=`expr $ac_mid + 1`
18549
 
                    if test $ac_lo -le $ac_mid; then
18550
 
                      ac_lo= ac_hi=
18551
 
                      break
18552
 
                    fi
18553
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
18554
 
fi
18555
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18556
 
  done
18557
 
else
18558
 
  echo "$as_me: failed program was:" >&5
18559
 
sed 's/^/| /' conftest.$ac_ext >&5
18560
 
 
18561
 
cat >conftest.$ac_ext <<_ACEOF
18562
 
/* confdefs.h.  */
18563
 
_ACEOF
18564
 
cat confdefs.h >>conftest.$ac_ext
18565
 
cat >>conftest.$ac_ext <<_ACEOF
18566
 
/* end confdefs.h.  */
18567
 
#include <stddef.h>
18568
 
int
18569
 
main ()
18570
 
{
18571
 
static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
18572
 
test_array [0] = 0
18573
 
 
18574
 
  ;
18575
 
  return 0;
18576
 
}
18577
 
_ACEOF
18578
 
rm -f conftest.$ac_objext
18579
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18580
 
  (eval $ac_compile) 2>conftest.er1
18581
 
  ac_status=$?
18582
 
  grep -v '^ *+' conftest.er1 >conftest.err
18583
 
  rm -f conftest.er1
18584
 
  cat conftest.err >&5
18585
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586
 
  (exit $ac_status); } &&
18587
 
         { ac_try='test -z "$ac_c_werror_flag"
18588
 
                         || test ! -s conftest.err'
18589
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18590
 
  (eval $ac_try) 2>&5
18591
 
  ac_status=$?
18592
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593
 
  (exit $ac_status); }; } &&
18594
 
         { ac_try='test -s conftest.$ac_objext'
18595
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18596
 
  (eval $ac_try) 2>&5
18597
 
  ac_status=$?
18598
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599
 
  (exit $ac_status); }; }; then
18600
 
  ac_hi=-1 ac_mid=-1
18601
 
  while :; do
18602
 
    cat >conftest.$ac_ext <<_ACEOF
18603
 
/* confdefs.h.  */
18604
 
_ACEOF
18605
 
cat confdefs.h >>conftest.$ac_ext
18606
 
cat >>conftest.$ac_ext <<_ACEOF
18607
 
/* end confdefs.h.  */
18608
 
#include <stddef.h>
18609
 
int
18610
 
main ()
18611
 
{
18612
 
static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
18613
 
test_array [0] = 0
18614
 
 
18615
 
  ;
18616
 
  return 0;
18617
 
}
18618
 
_ACEOF
18619
 
rm -f conftest.$ac_objext
18620
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18621
 
  (eval $ac_compile) 2>conftest.er1
18622
 
  ac_status=$?
18623
 
  grep -v '^ *+' conftest.er1 >conftest.err
18624
 
  rm -f conftest.er1
18625
 
  cat conftest.err >&5
18626
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627
 
  (exit $ac_status); } &&
18628
 
         { ac_try='test -z "$ac_c_werror_flag"
18629
 
                         || test ! -s conftest.err'
18630
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18631
 
  (eval $ac_try) 2>&5
18632
 
  ac_status=$?
18633
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634
 
  (exit $ac_status); }; } &&
18635
 
         { ac_try='test -s conftest.$ac_objext'
18636
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18637
 
  (eval $ac_try) 2>&5
18638
 
  ac_status=$?
18639
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640
 
  (exit $ac_status); }; }; then
18641
 
  ac_lo=$ac_mid; break
18642
 
else
18643
 
  echo "$as_me: failed program was:" >&5
18644
 
sed 's/^/| /' conftest.$ac_ext >&5
18645
 
 
18646
 
ac_hi=`expr '(' $ac_mid ')' - 1`
18647
 
                       if test $ac_mid -le $ac_hi; then
18648
 
                         ac_lo= ac_hi=
18649
 
                         break
18650
 
                       fi
18651
 
                       ac_mid=`expr 2 '*' $ac_mid`
18652
 
fi
18653
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18654
 
  done
18655
 
else
18656
 
  echo "$as_me: failed program was:" >&5
18657
 
sed 's/^/| /' conftest.$ac_ext >&5
18658
 
 
18659
 
ac_lo= ac_hi=
18660
 
fi
18661
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18662
 
fi
18663
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18664
 
# Binary search between lo and hi bounds.
18665
 
while test "x$ac_lo" != "x$ac_hi"; do
18666
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18667
 
  cat >conftest.$ac_ext <<_ACEOF
18668
 
/* confdefs.h.  */
18669
 
_ACEOF
18670
 
cat confdefs.h >>conftest.$ac_ext
18671
 
cat >>conftest.$ac_ext <<_ACEOF
18672
 
/* end confdefs.h.  */
18673
 
#include <stddef.h>
18674
 
int
18675
 
main ()
18676
 
{
18677
 
static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
18678
 
test_array [0] = 0
18679
 
 
18680
 
  ;
18681
 
  return 0;
18682
 
}
18683
 
_ACEOF
18684
 
rm -f conftest.$ac_objext
18685
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18686
 
  (eval $ac_compile) 2>conftest.er1
18687
 
  ac_status=$?
18688
 
  grep -v '^ *+' conftest.er1 >conftest.err
18689
 
  rm -f conftest.er1
18690
 
  cat conftest.err >&5
18691
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692
 
  (exit $ac_status); } &&
18693
 
         { ac_try='test -z "$ac_c_werror_flag"
18694
 
                         || test ! -s conftest.err'
18695
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18696
 
  (eval $ac_try) 2>&5
18697
 
  ac_status=$?
18698
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699
 
  (exit $ac_status); }; } &&
18700
 
         { ac_try='test -s conftest.$ac_objext'
18701
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18702
 
  (eval $ac_try) 2>&5
18703
 
  ac_status=$?
18704
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705
 
  (exit $ac_status); }; }; then
18706
 
  ac_hi=$ac_mid
18707
 
else
18708
 
  echo "$as_me: failed program was:" >&5
18709
 
sed 's/^/| /' conftest.$ac_ext >&5
18710
 
 
18711
 
ac_lo=`expr '(' $ac_mid ')' + 1`
18712
 
fi
18713
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18714
 
done
18715
 
case $ac_lo in
18716
 
?*) res_lo=$ac_lo;;
18717
 
'') result=? ;;
18718
 
esac
18719
 
else
18720
 
  if test "$cross_compiling" = yes; then
18721
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18722
 
See \`config.log' for more details." >&5
18723
 
echo "$as_me: error: cannot run test program while cross compiling
18724
 
See \`config.log' for more details." >&2;}
18725
 
   { (exit 1); exit 1; }; }
18726
 
else
18727
 
  cat >conftest.$ac_ext <<_ACEOF
18728
 
/* confdefs.h.  */
18729
 
_ACEOF
18730
 
cat confdefs.h >>conftest.$ac_ext
18731
 
cat >>conftest.$ac_ext <<_ACEOF
18732
 
/* end confdefs.h.  */
18733
 
#include <stddef.h>
18734
 
long longval () { return ~(size_t)0 % 10; }
18735
 
unsigned long ulongval () { return ~(size_t)0 % 10; }
18736
 
#include <stdio.h>
18737
 
#include <stdlib.h>
18738
 
int
18739
 
main ()
18740
 
{
18741
 
 
18742
 
  FILE *f = fopen ("conftest.val", "w");
18743
 
  if (! f)
18744
 
    exit (1);
18745
 
  if ((~(size_t)0 % 10) < 0)
18746
 
    {
18747
 
      long i = longval ();
18748
 
      if (i != (~(size_t)0 % 10))
18749
 
        exit (1);
18750
 
      fprintf (f, "%ld\n", i);
18751
 
    }
18752
 
  else
18753
 
    {
18754
 
      unsigned long i = ulongval ();
18755
 
      if (i != (~(size_t)0 % 10))
18756
 
        exit (1);
18757
 
      fprintf (f, "%lu\n", i);
18758
 
    }
18759
 
  exit (ferror (f) || fclose (f) != 0);
18760
 
 
18761
 
  ;
18762
 
  return 0;
18763
 
}
18764
 
_ACEOF
18765
 
rm -f conftest$ac_exeext
18766
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18767
 
  (eval $ac_link) 2>&5
18768
 
  ac_status=$?
18769
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18771
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18772
 
  (eval $ac_try) 2>&5
18773
 
  ac_status=$?
18774
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775
 
  (exit $ac_status); }; }; then
18776
 
  res_lo=`cat conftest.val`
18777
 
else
18778
 
  echo "$as_me: program exited with status $ac_status" >&5
18779
 
echo "$as_me: failed program was:" >&5
18780
 
sed 's/^/| /' conftest.$ac_ext >&5
18781
 
 
18782
 
( exit $ac_status )
18783
 
result=?
18784
 
fi
18785
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18786
 
fi
18787
 
fi
18788
 
rm -f conftest.val
18789
 
    if test "$cross_compiling" = yes; then
18790
 
  # Depending upon the size, compute the lo and hi bounds.
18791
 
cat >conftest.$ac_ext <<_ACEOF
18792
 
/* confdefs.h.  */
18793
 
_ACEOF
18794
 
cat confdefs.h >>conftest.$ac_ext
18795
 
cat >>conftest.$ac_ext <<_ACEOF
18796
 
/* end confdefs.h.  */
18797
 
#include <stddef.h>
18798
 
int
18799
 
main ()
18800
 
{
18801
 
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
18802
 
test_array [0] = 0
18803
 
 
18804
 
  ;
18805
 
  return 0;
18806
 
}
18807
 
_ACEOF
18808
 
rm -f conftest.$ac_objext
18809
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18810
 
  (eval $ac_compile) 2>conftest.er1
18811
 
  ac_status=$?
18812
 
  grep -v '^ *+' conftest.er1 >conftest.err
18813
 
  rm -f conftest.er1
18814
 
  cat conftest.err >&5
18815
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816
 
  (exit $ac_status); } &&
18817
 
         { ac_try='test -z "$ac_c_werror_flag"
18818
 
                         || test ! -s conftest.err'
18819
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18820
 
  (eval $ac_try) 2>&5
18821
 
  ac_status=$?
18822
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823
 
  (exit $ac_status); }; } &&
18824
 
         { ac_try='test -s conftest.$ac_objext'
18825
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18826
 
  (eval $ac_try) 2>&5
18827
 
  ac_status=$?
18828
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829
 
  (exit $ac_status); }; }; then
18830
 
  ac_lo=0 ac_mid=0
18831
 
  while :; do
18832
 
    cat >conftest.$ac_ext <<_ACEOF
18833
 
/* confdefs.h.  */
18834
 
_ACEOF
18835
 
cat confdefs.h >>conftest.$ac_ext
18836
 
cat >>conftest.$ac_ext <<_ACEOF
18837
 
/* end confdefs.h.  */
18838
 
#include <stddef.h>
18839
 
int
18840
 
main ()
18841
 
{
18842
 
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
18843
 
test_array [0] = 0
18844
 
 
18845
 
  ;
18846
 
  return 0;
18847
 
}
18848
 
_ACEOF
18849
 
rm -f conftest.$ac_objext
18850
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18851
 
  (eval $ac_compile) 2>conftest.er1
18852
 
  ac_status=$?
18853
 
  grep -v '^ *+' conftest.er1 >conftest.err
18854
 
  rm -f conftest.er1
18855
 
  cat conftest.err >&5
18856
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857
 
  (exit $ac_status); } &&
18858
 
         { ac_try='test -z "$ac_c_werror_flag"
18859
 
                         || test ! -s conftest.err'
18860
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18861
 
  (eval $ac_try) 2>&5
18862
 
  ac_status=$?
18863
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864
 
  (exit $ac_status); }; } &&
18865
 
         { ac_try='test -s conftest.$ac_objext'
18866
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18867
 
  (eval $ac_try) 2>&5
18868
 
  ac_status=$?
18869
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870
 
  (exit $ac_status); }; }; then
18871
 
  ac_hi=$ac_mid; break
18872
 
else
18873
 
  echo "$as_me: failed program was:" >&5
18874
 
sed 's/^/| /' conftest.$ac_ext >&5
18875
 
 
18876
 
ac_lo=`expr $ac_mid + 1`
18877
 
                    if test $ac_lo -le $ac_mid; then
18878
 
                      ac_lo= ac_hi=
18879
 
                      break
18880
 
                    fi
18881
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
18882
 
fi
18883
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18884
 
  done
18885
 
else
18886
 
  echo "$as_me: failed program was:" >&5
18887
 
sed 's/^/| /' conftest.$ac_ext >&5
18888
 
 
18889
 
cat >conftest.$ac_ext <<_ACEOF
18890
 
/* confdefs.h.  */
18891
 
_ACEOF
18892
 
cat confdefs.h >>conftest.$ac_ext
18893
 
cat >>conftest.$ac_ext <<_ACEOF
18894
 
/* end confdefs.h.  */
18895
 
#include <stddef.h>
18896
 
int
18897
 
main ()
18898
 
{
18899
 
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
18900
 
test_array [0] = 0
18901
 
 
18902
 
  ;
18903
 
  return 0;
18904
 
}
18905
 
_ACEOF
18906
 
rm -f conftest.$ac_objext
18907
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18908
 
  (eval $ac_compile) 2>conftest.er1
18909
 
  ac_status=$?
18910
 
  grep -v '^ *+' conftest.er1 >conftest.err
18911
 
  rm -f conftest.er1
18912
 
  cat conftest.err >&5
18913
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914
 
  (exit $ac_status); } &&
18915
 
         { ac_try='test -z "$ac_c_werror_flag"
18916
 
                         || test ! -s conftest.err'
18917
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18918
 
  (eval $ac_try) 2>&5
18919
 
  ac_status=$?
18920
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921
 
  (exit $ac_status); }; } &&
18922
 
         { ac_try='test -s conftest.$ac_objext'
18923
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18924
 
  (eval $ac_try) 2>&5
18925
 
  ac_status=$?
18926
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927
 
  (exit $ac_status); }; }; then
18928
 
  ac_hi=-1 ac_mid=-1
18929
 
  while :; do
18930
 
    cat >conftest.$ac_ext <<_ACEOF
18931
 
/* confdefs.h.  */
18932
 
_ACEOF
18933
 
cat confdefs.h >>conftest.$ac_ext
18934
 
cat >>conftest.$ac_ext <<_ACEOF
18935
 
/* end confdefs.h.  */
18936
 
#include <stddef.h>
18937
 
int
18938
 
main ()
18939
 
{
18940
 
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
18941
 
test_array [0] = 0
18942
 
 
18943
 
  ;
18944
 
  return 0;
18945
 
}
18946
 
_ACEOF
18947
 
rm -f conftest.$ac_objext
18948
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18949
 
  (eval $ac_compile) 2>conftest.er1
18950
 
  ac_status=$?
18951
 
  grep -v '^ *+' conftest.er1 >conftest.err
18952
 
  rm -f conftest.er1
18953
 
  cat conftest.err >&5
18954
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955
 
  (exit $ac_status); } &&
18956
 
         { ac_try='test -z "$ac_c_werror_flag"
18957
 
                         || test ! -s conftest.err'
18958
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18959
 
  (eval $ac_try) 2>&5
18960
 
  ac_status=$?
18961
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962
 
  (exit $ac_status); }; } &&
18963
 
         { ac_try='test -s conftest.$ac_objext'
18964
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18965
 
  (eval $ac_try) 2>&5
18966
 
  ac_status=$?
18967
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968
 
  (exit $ac_status); }; }; then
18969
 
  ac_lo=$ac_mid; break
18970
 
else
18971
 
  echo "$as_me: failed program was:" >&5
18972
 
sed 's/^/| /' conftest.$ac_ext >&5
18973
 
 
18974
 
ac_hi=`expr '(' $ac_mid ')' - 1`
18975
 
                       if test $ac_mid -le $ac_hi; then
18976
 
                         ac_lo= ac_hi=
18977
 
                         break
18978
 
                       fi
18979
 
                       ac_mid=`expr 2 '*' $ac_mid`
18980
 
fi
18981
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18982
 
  done
18983
 
else
18984
 
  echo "$as_me: failed program was:" >&5
18985
 
sed 's/^/| /' conftest.$ac_ext >&5
18986
 
 
18987
 
ac_lo= ac_hi=
18988
 
fi
18989
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18990
 
fi
18991
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18992
 
# Binary search between lo and hi bounds.
18993
 
while test "x$ac_lo" != "x$ac_hi"; do
18994
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18995
 
  cat >conftest.$ac_ext <<_ACEOF
18996
 
/* confdefs.h.  */
18997
 
_ACEOF
18998
 
cat confdefs.h >>conftest.$ac_ext
18999
 
cat >>conftest.$ac_ext <<_ACEOF
19000
 
/* end confdefs.h.  */
19001
 
#include <stddef.h>
19002
 
int
19003
 
main ()
19004
 
{
19005
 
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
19006
 
test_array [0] = 0
19007
 
 
19008
 
  ;
19009
 
  return 0;
19010
 
}
19011
 
_ACEOF
19012
 
rm -f conftest.$ac_objext
19013
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19014
 
  (eval $ac_compile) 2>conftest.er1
19015
 
  ac_status=$?
19016
 
  grep -v '^ *+' conftest.er1 >conftest.err
19017
 
  rm -f conftest.er1
19018
 
  cat conftest.err >&5
19019
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19020
 
  (exit $ac_status); } &&
19021
 
         { ac_try='test -z "$ac_c_werror_flag"
19022
 
                         || test ! -s conftest.err'
19023
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19024
 
  (eval $ac_try) 2>&5
19025
 
  ac_status=$?
19026
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027
 
  (exit $ac_status); }; } &&
19028
 
         { ac_try='test -s conftest.$ac_objext'
19029
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19030
 
  (eval $ac_try) 2>&5
19031
 
  ac_status=$?
19032
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033
 
  (exit $ac_status); }; }; then
19034
 
  ac_hi=$ac_mid
19035
 
else
19036
 
  echo "$as_me: failed program was:" >&5
19037
 
sed 's/^/| /' conftest.$ac_ext >&5
19038
 
 
19039
 
ac_lo=`expr '(' $ac_mid ')' + 1`
19040
 
fi
19041
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19042
 
done
19043
 
case $ac_lo in
19044
 
?*) fits_in_uint=$ac_lo;;
19045
 
'') result=? ;;
19046
 
esac
19047
 
else
19048
 
  if test "$cross_compiling" = yes; then
19049
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19050
 
See \`config.log' for more details." >&5
19051
 
echo "$as_me: error: cannot run test program while cross compiling
19052
 
See \`config.log' for more details." >&2;}
19053
 
   { (exit 1); exit 1; }; }
19054
 
else
19055
 
  cat >conftest.$ac_ext <<_ACEOF
19056
 
/* confdefs.h.  */
19057
 
_ACEOF
19058
 
cat confdefs.h >>conftest.$ac_ext
19059
 
cat >>conftest.$ac_ext <<_ACEOF
19060
 
/* end confdefs.h.  */
19061
 
#include <stddef.h>
19062
 
long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
19063
 
unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
19064
 
#include <stdio.h>
19065
 
#include <stdlib.h>
19066
 
int
19067
 
main ()
19068
 
{
19069
 
 
19070
 
  FILE *f = fopen ("conftest.val", "w");
19071
 
  if (! f)
19072
 
    exit (1);
19073
 
  if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
19074
 
    {
19075
 
      long i = longval ();
19076
 
      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
19077
 
        exit (1);
19078
 
      fprintf (f, "%ld\n", i);
19079
 
    }
19080
 
  else
19081
 
    {
19082
 
      unsigned long i = ulongval ();
19083
 
      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
19084
 
        exit (1);
19085
 
      fprintf (f, "%lu\n", i);
19086
 
    }
19087
 
  exit (ferror (f) || fclose (f) != 0);
19088
 
 
19089
 
  ;
19090
 
  return 0;
19091
 
}
19092
 
_ACEOF
19093
 
rm -f conftest$ac_exeext
19094
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19095
 
  (eval $ac_link) 2>&5
19096
 
  ac_status=$?
19097
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19099
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19100
 
  (eval $ac_try) 2>&5
19101
 
  ac_status=$?
19102
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19103
 
  (exit $ac_status); }; }; then
19104
 
  fits_in_uint=`cat conftest.val`
19105
 
else
19106
 
  echo "$as_me: program exited with status $ac_status" >&5
19107
 
echo "$as_me: failed program was:" >&5
19108
 
sed 's/^/| /' conftest.$ac_ext >&5
19109
 
 
19110
 
( exit $ac_status )
19111
 
result=?
19112
 
fi
19113
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19114
 
fi
19115
 
fi
19116
 
rm -f conftest.val
19117
 
    if test "$fits_in_uint" = 1; then
19118
 
                  cat >conftest.$ac_ext <<_ACEOF
19119
 
/* confdefs.h.  */
19120
 
_ACEOF
19121
 
cat confdefs.h >>conftest.$ac_ext
19122
 
cat >>conftest.$ac_ext <<_ACEOF
19123
 
/* end confdefs.h.  */
19124
 
#include <stddef.h>
19125
 
        extern size_t foo;
19126
 
        extern unsigned long foo;
19127
 
 
19128
 
int
19129
 
main ()
19130
 
{
19131
 
 
19132
 
  ;
19133
 
  return 0;
19134
 
}
19135
 
_ACEOF
19136
 
rm -f conftest.$ac_objext
19137
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19138
 
  (eval $ac_compile) 2>conftest.er1
19139
 
  ac_status=$?
19140
 
  grep -v '^ *+' conftest.er1 >conftest.err
19141
 
  rm -f conftest.er1
19142
 
  cat conftest.err >&5
19143
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144
 
  (exit $ac_status); } &&
19145
 
         { ac_try='test -z "$ac_c_werror_flag"
19146
 
                         || test ! -s conftest.err'
19147
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19148
 
  (eval $ac_try) 2>&5
19149
 
  ac_status=$?
19150
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151
 
  (exit $ac_status); }; } &&
19152
 
         { ac_try='test -s conftest.$ac_objext'
19153
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19154
 
  (eval $ac_try) 2>&5
19155
 
  ac_status=$?
19156
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157
 
  (exit $ac_status); }; }; then
19158
 
  fits_in_uint=0
19159
 
else
19160
 
  echo "$as_me: failed program was:" >&5
19161
 
sed 's/^/| /' conftest.$ac_ext >&5
19162
 
 
19163
 
fi
19164
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19165
 
    fi
19166
 
    if test -z "$result"; then
19167
 
      if test "$fits_in_uint" = 1; then
19168
 
        result="$res_hi$res_lo"U
19169
 
      else
19170
 
        result="$res_hi$res_lo"UL
19171
 
      fi
19172
 
    else
19173
 
            result='~(size_t)0'
19174
 
    fi
19175
 
  fi
19176
 
  echo "$as_me:$LINENO: result: $result" >&5
19177
 
echo "${ECHO_T}$result" >&6
19178
 
  if test "$result" != yes; then
19179
 
 
19180
 
cat >>confdefs.h <<_ACEOF
19181
 
#define SIZE_MAX $result
19182
 
_ACEOF
19183
 
 
19184
 
  fi
19185
 
 
19186
 
 
19187
 
 
19188
 
 
19189
 
 
19190
 
for ac_header in stdint.h
19191
 
do
19192
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19193
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
19194
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
19195
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19196
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20644
 
 
20645
if test "${ac_cv_header_minix_config_h+set}" = set; then
 
20646
  { echo "$as_me:$LINENO: checking for minix/config.h" >&5
 
20647
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
 
20648
if test "${ac_cv_header_minix_config_h+set}" = set; then
19197
20649
  echo $ECHO_N "(cached) $ECHO_C" >&6
19198
20650
fi
19199
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19200
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20651
{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
 
20652
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
19201
20653
else
19202
20654
  # Is the header compilable?
19203
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
19204
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
20655
{ echo "$as_me:$LINENO: checking minix/config.h usability" >&5
 
20656
echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
19205
20657
cat >conftest.$ac_ext <<_ACEOF
19206
20658
/* confdefs.h.  */
19207
20659
_ACEOF
19209
20661
cat >>conftest.$ac_ext <<_ACEOF
19210
20662
/* end confdefs.h.  */
19211
20663
$ac_includes_default
19212
 
#include <$ac_header>
 
20664
#include <minix/config.h>
19213
20665
_ACEOF
19214
20666
rm -f conftest.$ac_objext
19215
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19216
 
  (eval $ac_compile) 2>conftest.er1
 
20667
if { (ac_try="$ac_compile"
 
20668
case "(($ac_try" in
 
20669
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20670
  *) ac_try_echo=$ac_try;;
 
20671
esac
 
20672
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20673
  (eval "$ac_compile") 2>conftest.er1
19217
20674
  ac_status=$?
19218
20675
  grep -v '^ *+' conftest.er1 >conftest.err
19219
20676
  rm -f conftest.er1
19220
20677
  cat conftest.err >&5
19221
20678
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222
 
  (exit $ac_status); } &&
19223
 
         { ac_try='test -z "$ac_c_werror_flag"
19224
 
                         || test ! -s conftest.err'
19225
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19226
 
  (eval $ac_try) 2>&5
19227
 
  ac_status=$?
19228
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229
 
  (exit $ac_status); }; } &&
19230
 
         { ac_try='test -s conftest.$ac_objext'
19231
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19232
 
  (eval $ac_try) 2>&5
19233
 
  ac_status=$?
19234
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235
 
  (exit $ac_status); }; }; then
 
20679
  (exit $ac_status); } && {
 
20680
         test -z "$ac_c_werror_flag" ||
 
20681
         test ! -s conftest.err
 
20682
       } && test -s conftest.$ac_objext; then
19236
20683
  ac_header_compiler=yes
19237
20684
else
19238
20685
  echo "$as_me: failed program was:" >&5
19239
20686
sed 's/^/| /' conftest.$ac_ext >&5
19240
20687
 
19241
 
ac_header_compiler=no
 
20688
        ac_header_compiler=no
19242
20689
fi
19243
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19244
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19245
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
20690
 
 
20691
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20692
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20693
echo "${ECHO_T}$ac_header_compiler" >&6; }
19246
20694
 
19247
20695
# Is the header present?
19248
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
19249
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
20696
{ echo "$as_me:$LINENO: checking minix/config.h presence" >&5
 
20697
echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
19250
20698
cat >conftest.$ac_ext <<_ACEOF
19251
20699
/* confdefs.h.  */
19252
20700
_ACEOF
19253
20701
cat confdefs.h >>conftest.$ac_ext
19254
20702
cat >>conftest.$ac_ext <<_ACEOF
19255
20703
/* end confdefs.h.  */
19256
 
#include <$ac_header>
 
20704
#include <minix/config.h>
19257
20705
_ACEOF
19258
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19259
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
20706
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
20707
case "(($ac_try" in
 
20708
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20709
  *) ac_try_echo=$ac_try;;
 
20710
esac
 
20711
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20712
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19260
20713
  ac_status=$?
19261
20714
  grep -v '^ *+' conftest.er1 >conftest.err
19262
20715
  rm -f conftest.er1
19263
20716
  cat conftest.err >&5
19264
20717
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265
 
  (exit $ac_status); } >/dev/null; then
19266
 
  if test -s conftest.err; then
19267
 
    ac_cpp_err=$ac_c_preproc_warn_flag
19268
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19269
 
  else
19270
 
    ac_cpp_err=
19271
 
  fi
19272
 
else
19273
 
  ac_cpp_err=yes
19274
 
fi
19275
 
if test -z "$ac_cpp_err"; then
 
20718
  (exit $ac_status); } >/dev/null && {
 
20719
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
20720
         test ! -s conftest.err
 
20721
       }; then
19276
20722
  ac_header_preproc=yes
19277
20723
else
19278
20724
  echo "$as_me: failed program was:" >&5
19280
20726
 
19281
20727
  ac_header_preproc=no
19282
20728
fi
 
20729
 
19283
20730
rm -f conftest.err conftest.$ac_ext
19284
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19285
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
20731
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20732
echo "${ECHO_T}$ac_header_preproc" >&6; }
19286
20733
 
19287
20734
# So?  What about this header?
19288
20735
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19289
20736
  yes:no: )
19290
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19291
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19292
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19293
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20737
    { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
20738
echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20739
    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
 
20740
echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
19294
20741
    ac_header_preproc=yes
19295
20742
    ;;
19296
20743
  no:yes:* )
19297
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19298
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19299
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19300
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19301
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19302
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19303
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19304
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19305
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19306
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19307
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19308
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19309
 
    (
19310
 
      cat <<\_ASBOX
 
20744
    { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
 
20745
echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
 
20746
    { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
 
20747
echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
 
20748
    { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
 
20749
echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
 
20750
    { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
 
20751
echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20752
    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
 
20753
echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
 
20754
    { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
 
20755
echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
 
20756
    ( cat <<\_ASBOX
19311
20757
## -------------------------------- ##
19312
20758
## Report this to sitecopy@lyra.org ##
19313
20759
## -------------------------------- ##
19314
20760
_ASBOX
19315
 
    ) |
19316
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
20761
     ) | sed "s/^/$as_me: WARNING:     /" >&2
19317
20762
    ;;
19318
20763
esac
19319
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
19320
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19321
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
19322
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19323
 
else
19324
 
  eval "$as_ac_Header=\$ac_header_preproc"
19325
 
fi
19326
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19327
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19328
 
 
19329
 
fi
19330
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
19331
 
  cat >>confdefs.h <<_ACEOF
19332
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19333
 
_ACEOF
19334
 
 
19335
 
fi
19336
 
 
19337
 
done
19338
 
 
19339
 
 
19340
 
 
19341
 
    echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
19342
 
echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
19343
 
if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
19344
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19345
 
else
19346
 
  gt_save_CPPFLAGS="$CPPFLAGS"
19347
 
     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19348
 
     gt_save_LIBS="$LIBS"
19349
 
     LIBS="$LIBS -framework CoreFoundation"
19350
 
     cat >conftest.$ac_ext <<_ACEOF
19351
 
/* confdefs.h.  */
19352
 
_ACEOF
19353
 
cat confdefs.h >>conftest.$ac_ext
19354
 
cat >>conftest.$ac_ext <<_ACEOF
19355
 
/* end confdefs.h.  */
19356
 
#include <CFPreferences.h>
19357
 
int
19358
 
main ()
19359
 
{
19360
 
CFPreferencesCopyAppValue(NULL, NULL)
19361
 
  ;
19362
 
  return 0;
19363
 
}
19364
 
_ACEOF
19365
 
rm -f conftest.$ac_objext conftest$ac_exeext
19366
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19367
 
  (eval $ac_link) 2>conftest.er1
19368
 
  ac_status=$?
19369
 
  grep -v '^ *+' conftest.er1 >conftest.err
19370
 
  rm -f conftest.er1
19371
 
  cat conftest.err >&5
19372
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373
 
  (exit $ac_status); } &&
19374
 
         { ac_try='test -z "$ac_c_werror_flag"
19375
 
                         || test ! -s conftest.err'
19376
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19377
 
  (eval $ac_try) 2>&5
19378
 
  ac_status=$?
19379
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380
 
  (exit $ac_status); }; } &&
19381
 
         { ac_try='test -s conftest$ac_exeext'
19382
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19383
 
  (eval $ac_try) 2>&5
19384
 
  ac_status=$?
19385
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386
 
  (exit $ac_status); }; }; then
19387
 
  gt_cv_func_CFPreferencesCopyAppValue=yes
19388
 
else
19389
 
  echo "$as_me: failed program was:" >&5
19390
 
sed 's/^/| /' conftest.$ac_ext >&5
19391
 
 
19392
 
gt_cv_func_CFPreferencesCopyAppValue=no
19393
 
fi
19394
 
rm -f conftest.err conftest.$ac_objext \
19395
 
      conftest$ac_exeext conftest.$ac_ext
19396
 
     CPPFLAGS="$gt_save_CPPFLAGS"
19397
 
     LIBS="$gt_save_LIBS"
19398
 
fi
19399
 
echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
19400
 
echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
19401
 
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
19402
 
 
19403
 
cat >>confdefs.h <<\_ACEOF
19404
 
#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
19405
 
_ACEOF
19406
 
 
19407
 
  fi
19408
 
    echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
19409
 
echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
19410
 
if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
19411
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19412
 
else
19413
 
  gt_save_CPPFLAGS="$CPPFLAGS"
19414
 
     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19415
 
     gt_save_LIBS="$LIBS"
19416
 
     LIBS="$LIBS -framework CoreFoundation"
19417
 
     cat >conftest.$ac_ext <<_ACEOF
19418
 
/* confdefs.h.  */
19419
 
_ACEOF
19420
 
cat confdefs.h >>conftest.$ac_ext
19421
 
cat >>conftest.$ac_ext <<_ACEOF
19422
 
/* end confdefs.h.  */
19423
 
#include <CFLocale.h>
19424
 
int
19425
 
main ()
19426
 
{
19427
 
CFLocaleCopyCurrent();
19428
 
  ;
19429
 
  return 0;
19430
 
}
19431
 
_ACEOF
19432
 
rm -f conftest.$ac_objext conftest$ac_exeext
19433
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19434
 
  (eval $ac_link) 2>conftest.er1
19435
 
  ac_status=$?
19436
 
  grep -v '^ *+' conftest.er1 >conftest.err
19437
 
  rm -f conftest.er1
19438
 
  cat conftest.err >&5
19439
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440
 
  (exit $ac_status); } &&
19441
 
         { ac_try='test -z "$ac_c_werror_flag"
19442
 
                         || test ! -s conftest.err'
19443
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19444
 
  (eval $ac_try) 2>&5
19445
 
  ac_status=$?
19446
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447
 
  (exit $ac_status); }; } &&
19448
 
         { ac_try='test -s conftest$ac_exeext'
19449
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19450
 
  (eval $ac_try) 2>&5
19451
 
  ac_status=$?
19452
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453
 
  (exit $ac_status); }; }; then
19454
 
  gt_cv_func_CFLocaleCopyCurrent=yes
19455
 
else
19456
 
  echo "$as_me: failed program was:" >&5
19457
 
sed 's/^/| /' conftest.$ac_ext >&5
19458
 
 
19459
 
gt_cv_func_CFLocaleCopyCurrent=no
19460
 
fi
19461
 
rm -f conftest.err conftest.$ac_objext \
19462
 
      conftest$ac_exeext conftest.$ac_ext
19463
 
     CPPFLAGS="$gt_save_CPPFLAGS"
19464
 
     LIBS="$gt_save_LIBS"
19465
 
fi
19466
 
echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
19467
 
echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
19468
 
  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19469
 
 
19470
 
cat >>confdefs.h <<\_ACEOF
19471
 
#define HAVE_CFLOCALECOPYCURRENT 1
19472
 
_ACEOF
19473
 
 
19474
 
  fi
19475
 
  INTL_MACOSX_LIBS=
19476
 
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19477
 
    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
19478
 
  fi
 
20764
{ echo "$as_me:$LINENO: checking for minix/config.h" >&5
 
20765
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
 
20766
if test "${ac_cv_header_minix_config_h+set}" = set; then
 
20767
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20768
else
 
20769
  ac_cv_header_minix_config_h=$ac_header_preproc
 
20770
fi
 
20771
{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
 
20772
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
 
20773
 
 
20774
fi
 
20775
if test $ac_cv_header_minix_config_h = yes; then
 
20776
  MINIX=yes
 
20777
else
 
20778
  MINIX=
 
20779
fi
 
20780
 
 
20781
 
 
20782
if test "$MINIX" = yes; then
 
20783
 
 
20784
cat >>confdefs.h <<\_ACEOF
 
20785
#define _POSIX_SOURCE 1
 
20786
_ACEOF
 
20787
 
 
20788
 
 
20789
cat >>confdefs.h <<\_ACEOF
 
20790
#define _POSIX_1_SOURCE 2
 
20791
_ACEOF
 
20792
 
 
20793
 
 
20794
cat >>confdefs.h <<\_ACEOF
 
20795
#define _MINIX 1
 
20796
_ACEOF
 
20797
 
 
20798
fi
 
20799
 
 
20800
 
 
20801
 
 
20802
 
 
20803
 
 
20804
 
 
20805
 
 
20806
 
 
20807
 
 
20808
 
 
20809
 
 
20810
  { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
 
20811
echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
 
20812
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
 
20813
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20814
else
 
20815
  cat >conftest.$ac_ext <<_ACEOF
 
20816
/* confdefs.h.  */
 
20817
_ACEOF
 
20818
cat confdefs.h >>conftest.$ac_ext
 
20819
cat >>conftest.$ac_ext <<_ACEOF
 
20820
/* end confdefs.h.  */
 
20821
 
 
20822
#         define __EXTENSIONS__ 1
 
20823
          $ac_includes_default
 
20824
int
 
20825
main ()
 
20826
{
 
20827
 
 
20828
  ;
 
20829
  return 0;
 
20830
}
 
20831
_ACEOF
 
20832
rm -f conftest.$ac_objext
 
20833
if { (ac_try="$ac_compile"
 
20834
case "(($ac_try" in
 
20835
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20836
  *) ac_try_echo=$ac_try;;
 
20837
esac
 
20838
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20839
  (eval "$ac_compile") 2>conftest.er1
 
20840
  ac_status=$?
 
20841
  grep -v '^ *+' conftest.er1 >conftest.err
 
20842
  rm -f conftest.er1
 
20843
  cat conftest.err >&5
 
20844
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20845
  (exit $ac_status); } && {
 
20846
         test -z "$ac_c_werror_flag" ||
 
20847
         test ! -s conftest.err
 
20848
       } && test -s conftest.$ac_objext; then
 
20849
  ac_cv_safe_to_define___extensions__=yes
 
20850
else
 
20851
  echo "$as_me: failed program was:" >&5
 
20852
sed 's/^/| /' conftest.$ac_ext >&5
 
20853
 
 
20854
        ac_cv_safe_to_define___extensions__=no
 
20855
fi
 
20856
 
 
20857
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20858
fi
 
20859
{ echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
 
20860
echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
 
20861
  test $ac_cv_safe_to_define___extensions__ = yes &&
 
20862
    cat >>confdefs.h <<\_ACEOF
 
20863
#define __EXTENSIONS__ 1
 
20864
_ACEOF
 
20865
 
 
20866
  cat >>confdefs.h <<\_ACEOF
 
20867
#define _POSIX_PTHREAD_SEMANTICS 1
 
20868
_ACEOF
 
20869
 
 
20870
  cat >>confdefs.h <<\_ACEOF
 
20871
#define _TANDEM_SOURCE 1
 
20872
_ACEOF
 
20873
 
 
20874
 
 
20875
 
 
20876
 
 
20877
 
 
20878
 
 
20879
    # Check whether --enable-threads was given.
 
20880
if test "${enable_threads+set}" = set; then
 
20881
  enableval=$enable_threads; gl_use_threads=$enableval
 
20882
else
 
20883
  case "$host_os" in
 
20884
                            osf*) gl_use_threads=no ;;
 
20885
       *)    gl_use_threads=yes ;;
 
20886
     esac
 
20887
 
 
20888
fi
 
20889
 
 
20890
  if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
 
20891
    # For using <pthread.h>:
 
20892
    case "$host_os" in
 
20893
      osf*)
 
20894
        # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
 
20895
        # groks <pthread.h>. cc also understands the flag -pthread, but
 
20896
        # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
 
20897
        # 2. putting a flag into CPPFLAGS that has an effect on the linker
 
20898
        # causes the AC_TRY_LINK test below to succeed unexpectedly,
 
20899
        # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
 
20900
        CPPFLAGS="$CPPFLAGS -D_REENTRANT"
 
20901
        ;;
 
20902
    esac
 
20903
    # Some systems optimize for single-threaded programs by default, and
 
20904
    # need special flags to disable these optimizations. For example, the
 
20905
    # definition of 'errno' in <errno.h>.
 
20906
    case "$host_os" in
 
20907
      aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
 
20908
      solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
 
20909
    esac
 
20910
  fi
 
20911
 
 
20912
 
19479
20913
 
19480
20914
 
19481
20915
 
19495
20929
  prefix="$acl_save_prefix"
19496
20930
 
19497
20931
 
19498
 
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
20932
# Check whether --with-gnu-ld was given.
19499
20933
if test "${with_gnu_ld+set}" = set; then
19500
 
  withval="$with_gnu_ld"
19501
 
  test "$withval" = no || with_gnu_ld=yes
 
20934
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19502
20935
else
19503
20936
  with_gnu_ld=no
19504
 
fi;
 
20937
fi
 
20938
 
19505
20939
# Prepare PATH_SEPARATOR.
19506
20940
# The user is always right.
19507
20941
if test "${PATH_SEPARATOR+set}" != set; then
19518
20952
ac_prog=ld
19519
20953
if test "$GCC" = yes; then
19520
20954
  # Check if gcc -print-prog-name=ld gives a path.
19521
 
  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
19522
 
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
 
20955
  { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
 
20956
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
19523
20957
  case $host in
19524
20958
  *-*-mingw*)
19525
20959
    # gcc leaves a trailing carriage return which upsets mingw
19548
20982
    ;;
19549
20983
  esac
19550
20984
elif test "$with_gnu_ld" = yes; then
19551
 
  echo "$as_me:$LINENO: checking for GNU ld" >&5
19552
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
20985
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
20986
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
19553
20987
else
19554
 
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
19555
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
20988
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
20989
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
19556
20990
fi
19557
20991
if test "${acl_cv_path_LD+set}" = set; then
19558
20992
  echo $ECHO_N "(cached) $ECHO_C" >&6
19582
21016
 
19583
21017
LD="$acl_cv_path_LD"
19584
21018
if test -n "$LD"; then
19585
 
  echo "$as_me:$LINENO: result: $LD" >&5
19586
 
echo "${ECHO_T}$LD" >&6
 
21019
  { echo "$as_me:$LINENO: result: $LD" >&5
 
21020
echo "${ECHO_T}$LD" >&6; }
19587
21021
else
19588
 
  echo "$as_me:$LINENO: result: no" >&5
19589
 
echo "${ECHO_T}no" >&6
 
21022
  { echo "$as_me:$LINENO: result: no" >&5
 
21023
echo "${ECHO_T}no" >&6; }
19590
21024
fi
19591
21025
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
19592
21026
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
19593
21027
   { (exit 1); exit 1; }; }
19594
 
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
19595
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
21028
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
21029
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
19596
21030
if test "${acl_cv_prog_gnu_ld+set}" = set; then
19597
21031
  echo $ECHO_N "(cached) $ECHO_C" >&6
19598
21032
else
19604
21038
  acl_cv_prog_gnu_ld=no ;;
19605
21039
esac
19606
21040
fi
19607
 
echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
19608
 
echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
 
21041
{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
 
21042
echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
19609
21043
with_gnu_ld=$acl_cv_prog_gnu_ld
19610
21044
 
19611
21045
 
19612
21046
 
19613
21047
 
19614
 
                                                echo "$as_me:$LINENO: checking for shared library run path origin" >&5
19615
 
echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
 
21048
                                                { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
 
21049
echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
19616
21050
if test "${acl_cv_rpath+set}" = set; then
19617
21051
  echo $ECHO_N "(cached) $ECHO_C" >&6
19618
21052
else
19624
21058
    acl_cv_rpath=done
19625
21059
 
19626
21060
fi
19627
 
echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
19628
 
echo "${ECHO_T}$acl_cv_rpath" >&6
 
21061
{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
 
21062
echo "${ECHO_T}$acl_cv_rpath" >&6; }
19629
21063
  wl="$acl_cv_wl"
19630
 
  libext="$acl_cv_libext"
19631
 
  shlibext="$acl_cv_shlibext"
19632
 
  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
19633
 
  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
19634
 
  hardcode_direct="$acl_cv_hardcode_direct"
19635
 
  hardcode_minus_L="$acl_cv_hardcode_minus_L"
19636
 
    # Check whether --enable-rpath or --disable-rpath was given.
 
21064
  acl_libext="$acl_cv_libext"
 
21065
  acl_shlibext="$acl_cv_shlibext"
 
21066
  acl_libname_spec="$acl_cv_libname_spec"
 
21067
  acl_library_names_spec="$acl_cv_library_names_spec"
 
21068
  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
 
21069
  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
 
21070
  acl_hardcode_direct="$acl_cv_hardcode_direct"
 
21071
  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
 
21072
    # Check whether --enable-rpath was given.
19637
21073
if test "${enable_rpath+set}" = set; then
19638
 
  enableval="$enable_rpath"
19639
 
  :
 
21074
  enableval=$enable_rpath; :
19640
21075
else
19641
21076
  enable_rpath=yes
19642
 
fi;
19643
 
 
19644
 
 
19645
 
 
19646
 
 
19647
 
 
19648
 
 
19649
 
 
19650
 
    use_additional=yes
19651
 
 
19652
 
  acl_save_prefix="$prefix"
19653
 
  prefix="$acl_final_prefix"
19654
 
  acl_save_exec_prefix="$exec_prefix"
19655
 
  exec_prefix="$acl_final_exec_prefix"
19656
 
 
19657
 
    eval additional_includedir=\"$includedir\"
19658
 
    eval additional_libdir=\"$libdir\"
19659
 
 
19660
 
  exec_prefix="$acl_save_exec_prefix"
19661
 
  prefix="$acl_save_prefix"
19662
 
 
19663
 
 
19664
 
# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
 
21077
fi
 
21078
 
 
21079
 
 
21080
 
 
21081
                  acl_libdirstem=lib
 
21082
  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
 
21083
  if test -n "$searchpath"; then
 
21084
    acl_save_IFS="${IFS=        }"; IFS=":"
 
21085
    for searchdir in $searchpath; do
 
21086
      if test -d "$searchdir"; then
 
21087
        case "$searchdir" in
 
21088
          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
 
21089
          *) searchdir=`cd "$searchdir" && pwd`
 
21090
             case "$searchdir" in
 
21091
               */lib64 ) acl_libdirstem=lib64 ;;
 
21092
             esac ;;
 
21093
        esac
 
21094
      fi
 
21095
    done
 
21096
    IFS="$acl_save_IFS"
 
21097
  fi
 
21098
 
 
21099
 
 
21100
 
 
21101
  gl_threads_api=none
 
21102
  LIBTHREAD=
 
21103
  LTLIBTHREAD=
 
21104
  LIBMULTITHREAD=
 
21105
  LTLIBMULTITHREAD=
 
21106
  if test "$gl_use_threads" != no; then
 
21107
        { echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
 
21108
echo $ECHO_N "checking whether imported symbols can be declared weak... $ECHO_C" >&6; }
 
21109
    gl_have_weak=no
 
21110
    cat >conftest.$ac_ext <<_ACEOF
 
21111
/* confdefs.h.  */
 
21112
_ACEOF
 
21113
cat confdefs.h >>conftest.$ac_ext
 
21114
cat >>conftest.$ac_ext <<_ACEOF
 
21115
/* end confdefs.h.  */
 
21116
extern void xyzzy ();
 
21117
#pragma weak xyzzy
 
21118
int
 
21119
main ()
 
21120
{
 
21121
xyzzy();
 
21122
  ;
 
21123
  return 0;
 
21124
}
 
21125
_ACEOF
 
21126
rm -f conftest.$ac_objext conftest$ac_exeext
 
21127
if { (ac_try="$ac_link"
 
21128
case "(($ac_try" in
 
21129
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21130
  *) ac_try_echo=$ac_try;;
 
21131
esac
 
21132
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21133
  (eval "$ac_link") 2>conftest.er1
 
21134
  ac_status=$?
 
21135
  grep -v '^ *+' conftest.er1 >conftest.err
 
21136
  rm -f conftest.er1
 
21137
  cat conftest.err >&5
 
21138
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21139
  (exit $ac_status); } && {
 
21140
         test -z "$ac_c_werror_flag" ||
 
21141
         test ! -s conftest.err
 
21142
       } && test -s conftest$ac_exeext &&
 
21143
       $as_test_x conftest$ac_exeext; then
 
21144
  gl_have_weak=yes
 
21145
else
 
21146
  echo "$as_me: failed program was:" >&5
 
21147
sed 's/^/| /' conftest.$ac_ext >&5
 
21148
 
 
21149
 
 
21150
fi
 
21151
 
 
21152
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21153
      conftest$ac_exeext conftest.$ac_ext
 
21154
    { echo "$as_me:$LINENO: result: $gl_have_weak" >&5
 
21155
echo "${ECHO_T}$gl_have_weak" >&6; }
 
21156
    if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
 
21157
      # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
 
21158
      # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
 
21159
      if test "${ac_cv_header_pthread_h+set}" = set; then
 
21160
  { echo "$as_me:$LINENO: checking for pthread.h" >&5
 
21161
echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
 
21162
if test "${ac_cv_header_pthread_h+set}" = set; then
 
21163
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21164
fi
 
21165
{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
 
21166
echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
 
21167
else
 
21168
  # Is the header compilable?
 
21169
{ echo "$as_me:$LINENO: checking pthread.h usability" >&5
 
21170
echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
 
21171
cat >conftest.$ac_ext <<_ACEOF
 
21172
/* confdefs.h.  */
 
21173
_ACEOF
 
21174
cat confdefs.h >>conftest.$ac_ext
 
21175
cat >>conftest.$ac_ext <<_ACEOF
 
21176
/* end confdefs.h.  */
 
21177
$ac_includes_default
 
21178
#include <pthread.h>
 
21179
_ACEOF
 
21180
rm -f conftest.$ac_objext
 
21181
if { (ac_try="$ac_compile"
 
21182
case "(($ac_try" in
 
21183
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21184
  *) ac_try_echo=$ac_try;;
 
21185
esac
 
21186
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21187
  (eval "$ac_compile") 2>conftest.er1
 
21188
  ac_status=$?
 
21189
  grep -v '^ *+' conftest.er1 >conftest.err
 
21190
  rm -f conftest.er1
 
21191
  cat conftest.err >&5
 
21192
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21193
  (exit $ac_status); } && {
 
21194
         test -z "$ac_c_werror_flag" ||
 
21195
         test ! -s conftest.err
 
21196
       } && test -s conftest.$ac_objext; then
 
21197
  ac_header_compiler=yes
 
21198
else
 
21199
  echo "$as_me: failed program was:" >&5
 
21200
sed 's/^/| /' conftest.$ac_ext >&5
 
21201
 
 
21202
        ac_header_compiler=no
 
21203
fi
 
21204
 
 
21205
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21206
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
21207
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
21208
 
 
21209
# Is the header present?
 
21210
{ echo "$as_me:$LINENO: checking pthread.h presence" >&5
 
21211
echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
 
21212
cat >conftest.$ac_ext <<_ACEOF
 
21213
/* confdefs.h.  */
 
21214
_ACEOF
 
21215
cat confdefs.h >>conftest.$ac_ext
 
21216
cat >>conftest.$ac_ext <<_ACEOF
 
21217
/* end confdefs.h.  */
 
21218
#include <pthread.h>
 
21219
_ACEOF
 
21220
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
21221
case "(($ac_try" in
 
21222
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21223
  *) ac_try_echo=$ac_try;;
 
21224
esac
 
21225
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21226
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
21227
  ac_status=$?
 
21228
  grep -v '^ *+' conftest.er1 >conftest.err
 
21229
  rm -f conftest.er1
 
21230
  cat conftest.err >&5
 
21231
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21232
  (exit $ac_status); } >/dev/null && {
 
21233
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
21234
         test ! -s conftest.err
 
21235
       }; then
 
21236
  ac_header_preproc=yes
 
21237
else
 
21238
  echo "$as_me: failed program was:" >&5
 
21239
sed 's/^/| /' conftest.$ac_ext >&5
 
21240
 
 
21241
  ac_header_preproc=no
 
21242
fi
 
21243
 
 
21244
rm -f conftest.err conftest.$ac_ext
 
21245
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
21246
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
21247
 
 
21248
# So?  What about this header?
 
21249
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
21250
  yes:no: )
 
21251
    { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
21252
echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
21253
    { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
 
21254
echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
 
21255
    ac_header_preproc=yes
 
21256
    ;;
 
21257
  no:yes:* )
 
21258
    { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
 
21259
echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
 
21260
    { echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
 
21261
echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
 
21262
    { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
 
21263
echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
 
21264
    { echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
 
21265
echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
21266
    { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
 
21267
echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
 
21268
    { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
 
21269
echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
 
21270
    ( cat <<\_ASBOX
 
21271
## -------------------------------- ##
 
21272
## Report this to sitecopy@lyra.org ##
 
21273
## -------------------------------- ##
 
21274
_ASBOX
 
21275
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
21276
    ;;
 
21277
esac
 
21278
{ echo "$as_me:$LINENO: checking for pthread.h" >&5
 
21279
echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
 
21280
if test "${ac_cv_header_pthread_h+set}" = set; then
 
21281
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21282
else
 
21283
  ac_cv_header_pthread_h=$ac_header_preproc
 
21284
fi
 
21285
{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
 
21286
echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
 
21287
 
 
21288
fi
 
21289
if test $ac_cv_header_pthread_h = yes; then
 
21290
  gl_have_pthread_h=yes
 
21291
else
 
21292
  gl_have_pthread_h=no
 
21293
fi
 
21294
 
 
21295
 
 
21296
      if test "$gl_have_pthread_h" = yes; then
 
21297
        # Other possible tests:
 
21298
        #   -lpthreads (FSU threads, PCthreads)
 
21299
        #   -lgthreads
 
21300
        gl_have_pthread=
 
21301
        # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
 
21302
        # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
 
21303
        # the second one only in libpthread, and lock.c needs it.
 
21304
        cat >conftest.$ac_ext <<_ACEOF
 
21305
/* confdefs.h.  */
 
21306
_ACEOF
 
21307
cat confdefs.h >>conftest.$ac_ext
 
21308
cat >>conftest.$ac_ext <<_ACEOF
 
21309
/* end confdefs.h.  */
 
21310
#include <pthread.h>
 
21311
int
 
21312
main ()
 
21313
{
 
21314
pthread_mutex_lock((pthread_mutex_t*)0);
 
21315
           pthread_mutexattr_init((pthread_mutexattr_t*)0);
 
21316
  ;
 
21317
  return 0;
 
21318
}
 
21319
_ACEOF
 
21320
rm -f conftest.$ac_objext conftest$ac_exeext
 
21321
if { (ac_try="$ac_link"
 
21322
case "(($ac_try" in
 
21323
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21324
  *) ac_try_echo=$ac_try;;
 
21325
esac
 
21326
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21327
  (eval "$ac_link") 2>conftest.er1
 
21328
  ac_status=$?
 
21329
  grep -v '^ *+' conftest.er1 >conftest.err
 
21330
  rm -f conftest.er1
 
21331
  cat conftest.err >&5
 
21332
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21333
  (exit $ac_status); } && {
 
21334
         test -z "$ac_c_werror_flag" ||
 
21335
         test ! -s conftest.err
 
21336
       } && test -s conftest$ac_exeext &&
 
21337
       $as_test_x conftest$ac_exeext; then
 
21338
  gl_have_pthread=yes
 
21339
else
 
21340
  echo "$as_me: failed program was:" >&5
 
21341
sed 's/^/| /' conftest.$ac_ext >&5
 
21342
 
 
21343
 
 
21344
fi
 
21345
 
 
21346
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21347
      conftest$ac_exeext conftest.$ac_ext
 
21348
        # Test for libpthread by looking for pthread_kill. (Not pthread_self,
 
21349
        # since it is defined as a macro on OSF/1.)
 
21350
        if test -n "$gl_have_pthread"; then
 
21351
          # The program links fine without libpthread. But it may actually
 
21352
          # need to link with libpthread in order to create multiple threads.
 
21353
          { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
 
21354
echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
 
21355
if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
 
21356
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21357
else
 
21358
  ac_check_lib_save_LIBS=$LIBS
 
21359
LIBS="-lpthread  $LIBS"
 
21360
cat >conftest.$ac_ext <<_ACEOF
 
21361
/* confdefs.h.  */
 
21362
_ACEOF
 
21363
cat confdefs.h >>conftest.$ac_ext
 
21364
cat >>conftest.$ac_ext <<_ACEOF
 
21365
/* end confdefs.h.  */
 
21366
 
 
21367
/* Override any GCC internal prototype to avoid an error.
 
21368
   Use char because int might match the return type of a GCC
 
21369
   builtin and then its argument prototype would still apply.  */
 
21370
#ifdef __cplusplus
 
21371
extern "C"
 
21372
#endif
 
21373
char pthread_kill ();
 
21374
int
 
21375
main ()
 
21376
{
 
21377
return pthread_kill ();
 
21378
  ;
 
21379
  return 0;
 
21380
}
 
21381
_ACEOF
 
21382
rm -f conftest.$ac_objext conftest$ac_exeext
 
21383
if { (ac_try="$ac_link"
 
21384
case "(($ac_try" in
 
21385
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21386
  *) ac_try_echo=$ac_try;;
 
21387
esac
 
21388
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21389
  (eval "$ac_link") 2>conftest.er1
 
21390
  ac_status=$?
 
21391
  grep -v '^ *+' conftest.er1 >conftest.err
 
21392
  rm -f conftest.er1
 
21393
  cat conftest.err >&5
 
21394
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21395
  (exit $ac_status); } && {
 
21396
         test -z "$ac_c_werror_flag" ||
 
21397
         test ! -s conftest.err
 
21398
       } && test -s conftest$ac_exeext &&
 
21399
       $as_test_x conftest$ac_exeext; then
 
21400
  ac_cv_lib_pthread_pthread_kill=yes
 
21401
else
 
21402
  echo "$as_me: failed program was:" >&5
 
21403
sed 's/^/| /' conftest.$ac_ext >&5
 
21404
 
 
21405
        ac_cv_lib_pthread_pthread_kill=no
 
21406
fi
 
21407
 
 
21408
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21409
      conftest$ac_exeext conftest.$ac_ext
 
21410
LIBS=$ac_check_lib_save_LIBS
 
21411
fi
 
21412
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
 
21413
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
 
21414
if test $ac_cv_lib_pthread_pthread_kill = yes; then
 
21415
  LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
 
21416
             # On Solaris and HP-UX, most pthread functions exist also in libc.
 
21417
             # Therefore pthread_in_use() needs to actually try to create a
 
21418
             # thread: pthread_create from libc will fail, whereas
 
21419
             # pthread_create will actually create a thread.
 
21420
             case "$host_os" in
 
21421
               solaris* | hpux*)
 
21422
 
 
21423
cat >>confdefs.h <<\_ACEOF
 
21424
#define PTHREAD_IN_USE_DETECTION_HARD 1
 
21425
_ACEOF
 
21426
 
 
21427
             esac
 
21428
 
 
21429
fi
 
21430
 
 
21431
        else
 
21432
          # Some library is needed. Try libpthread and libc_r.
 
21433
          { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
 
21434
echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
 
21435
if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
 
21436
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21437
else
 
21438
  ac_check_lib_save_LIBS=$LIBS
 
21439
LIBS="-lpthread  $LIBS"
 
21440
cat >conftest.$ac_ext <<_ACEOF
 
21441
/* confdefs.h.  */
 
21442
_ACEOF
 
21443
cat confdefs.h >>conftest.$ac_ext
 
21444
cat >>conftest.$ac_ext <<_ACEOF
 
21445
/* end confdefs.h.  */
 
21446
 
 
21447
/* Override any GCC internal prototype to avoid an error.
 
21448
   Use char because int might match the return type of a GCC
 
21449
   builtin and then its argument prototype would still apply.  */
 
21450
#ifdef __cplusplus
 
21451
extern "C"
 
21452
#endif
 
21453
char pthread_kill ();
 
21454
int
 
21455
main ()
 
21456
{
 
21457
return pthread_kill ();
 
21458
  ;
 
21459
  return 0;
 
21460
}
 
21461
_ACEOF
 
21462
rm -f conftest.$ac_objext conftest$ac_exeext
 
21463
if { (ac_try="$ac_link"
 
21464
case "(($ac_try" in
 
21465
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21466
  *) ac_try_echo=$ac_try;;
 
21467
esac
 
21468
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21469
  (eval "$ac_link") 2>conftest.er1
 
21470
  ac_status=$?
 
21471
  grep -v '^ *+' conftest.er1 >conftest.err
 
21472
  rm -f conftest.er1
 
21473
  cat conftest.err >&5
 
21474
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21475
  (exit $ac_status); } && {
 
21476
         test -z "$ac_c_werror_flag" ||
 
21477
         test ! -s conftest.err
 
21478
       } && test -s conftest$ac_exeext &&
 
21479
       $as_test_x conftest$ac_exeext; then
 
21480
  ac_cv_lib_pthread_pthread_kill=yes
 
21481
else
 
21482
  echo "$as_me: failed program was:" >&5
 
21483
sed 's/^/| /' conftest.$ac_ext >&5
 
21484
 
 
21485
        ac_cv_lib_pthread_pthread_kill=no
 
21486
fi
 
21487
 
 
21488
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21489
      conftest$ac_exeext conftest.$ac_ext
 
21490
LIBS=$ac_check_lib_save_LIBS
 
21491
fi
 
21492
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
 
21493
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
 
21494
if test $ac_cv_lib_pthread_pthread_kill = yes; then
 
21495
  gl_have_pthread=yes
 
21496
             LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
 
21497
             LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
 
21498
fi
 
21499
 
 
21500
          if test -z "$gl_have_pthread"; then
 
21501
            # For FreeBSD 4.
 
21502
            { echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
 
21503
echo $ECHO_N "checking for pthread_kill in -lc_r... $ECHO_C" >&6; }
 
21504
if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
 
21505
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21506
else
 
21507
  ac_check_lib_save_LIBS=$LIBS
 
21508
LIBS="-lc_r  $LIBS"
 
21509
cat >conftest.$ac_ext <<_ACEOF
 
21510
/* confdefs.h.  */
 
21511
_ACEOF
 
21512
cat confdefs.h >>conftest.$ac_ext
 
21513
cat >>conftest.$ac_ext <<_ACEOF
 
21514
/* end confdefs.h.  */
 
21515
 
 
21516
/* Override any GCC internal prototype to avoid an error.
 
21517
   Use char because int might match the return type of a GCC
 
21518
   builtin and then its argument prototype would still apply.  */
 
21519
#ifdef __cplusplus
 
21520
extern "C"
 
21521
#endif
 
21522
char pthread_kill ();
 
21523
int
 
21524
main ()
 
21525
{
 
21526
return pthread_kill ();
 
21527
  ;
 
21528
  return 0;
 
21529
}
 
21530
_ACEOF
 
21531
rm -f conftest.$ac_objext conftest$ac_exeext
 
21532
if { (ac_try="$ac_link"
 
21533
case "(($ac_try" in
 
21534
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21535
  *) ac_try_echo=$ac_try;;
 
21536
esac
 
21537
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21538
  (eval "$ac_link") 2>conftest.er1
 
21539
  ac_status=$?
 
21540
  grep -v '^ *+' conftest.er1 >conftest.err
 
21541
  rm -f conftest.er1
 
21542
  cat conftest.err >&5
 
21543
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21544
  (exit $ac_status); } && {
 
21545
         test -z "$ac_c_werror_flag" ||
 
21546
         test ! -s conftest.err
 
21547
       } && test -s conftest$ac_exeext &&
 
21548
       $as_test_x conftest$ac_exeext; then
 
21549
  ac_cv_lib_c_r_pthread_kill=yes
 
21550
else
 
21551
  echo "$as_me: failed program was:" >&5
 
21552
sed 's/^/| /' conftest.$ac_ext >&5
 
21553
 
 
21554
        ac_cv_lib_c_r_pthread_kill=no
 
21555
fi
 
21556
 
 
21557
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21558
      conftest$ac_exeext conftest.$ac_ext
 
21559
LIBS=$ac_check_lib_save_LIBS
 
21560
fi
 
21561
{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
 
21562
echo "${ECHO_T}$ac_cv_lib_c_r_pthread_kill" >&6; }
 
21563
if test $ac_cv_lib_c_r_pthread_kill = yes; then
 
21564
  gl_have_pthread=yes
 
21565
               LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
 
21566
               LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
 
21567
fi
 
21568
 
 
21569
          fi
 
21570
        fi
 
21571
        if test -n "$gl_have_pthread"; then
 
21572
          gl_threads_api=posix
 
21573
 
 
21574
cat >>confdefs.h <<\_ACEOF
 
21575
#define USE_POSIX_THREADS 1
 
21576
_ACEOF
 
21577
 
 
21578
          if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
 
21579
            if test $gl_have_weak = yes; then
 
21580
 
 
21581
cat >>confdefs.h <<\_ACEOF
 
21582
#define USE_POSIX_THREADS_WEAK 1
 
21583
_ACEOF
 
21584
 
 
21585
              LIBTHREAD=
 
21586
              LTLIBTHREAD=
 
21587
            fi
 
21588
          fi
 
21589
          # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
 
21590
          # pthread_rwlock_* functions.
 
21591
          { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
 
21592
echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
 
21593
if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
 
21594
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21595
else
 
21596
  cat >conftest.$ac_ext <<_ACEOF
 
21597
/* confdefs.h.  */
 
21598
_ACEOF
 
21599
cat confdefs.h >>conftest.$ac_ext
 
21600
cat >>conftest.$ac_ext <<_ACEOF
 
21601
/* end confdefs.h.  */
 
21602
#include <pthread.h>
 
21603
 
 
21604
typedef pthread_rwlock_t ac__type_new_;
 
21605
int
 
21606
main ()
 
21607
{
 
21608
if ((ac__type_new_ *) 0)
 
21609
  return 0;
 
21610
if (sizeof (ac__type_new_))
 
21611
  return 0;
 
21612
  ;
 
21613
  return 0;
 
21614
}
 
21615
_ACEOF
 
21616
rm -f conftest.$ac_objext
 
21617
if { (ac_try="$ac_compile"
 
21618
case "(($ac_try" in
 
21619
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21620
  *) ac_try_echo=$ac_try;;
 
21621
esac
 
21622
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21623
  (eval "$ac_compile") 2>conftest.er1
 
21624
  ac_status=$?
 
21625
  grep -v '^ *+' conftest.er1 >conftest.err
 
21626
  rm -f conftest.er1
 
21627
  cat conftest.err >&5
 
21628
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21629
  (exit $ac_status); } && {
 
21630
         test -z "$ac_c_werror_flag" ||
 
21631
         test ! -s conftest.err
 
21632
       } && test -s conftest.$ac_objext; then
 
21633
  ac_cv_type_pthread_rwlock_t=yes
 
21634
else
 
21635
  echo "$as_me: failed program was:" >&5
 
21636
sed 's/^/| /' conftest.$ac_ext >&5
 
21637
 
 
21638
        ac_cv_type_pthread_rwlock_t=no
 
21639
fi
 
21640
 
 
21641
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21642
fi
 
21643
{ echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
 
21644
echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
 
21645
if test $ac_cv_type_pthread_rwlock_t = yes; then
 
21646
 
 
21647
cat >>confdefs.h <<\_ACEOF
 
21648
#define HAVE_PTHREAD_RWLOCK 1
 
21649
_ACEOF
 
21650
 
 
21651
fi
 
21652
 
 
21653
          # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
 
21654
          cat >conftest.$ac_ext <<_ACEOF
 
21655
/* confdefs.h.  */
 
21656
_ACEOF
 
21657
cat confdefs.h >>conftest.$ac_ext
 
21658
cat >>conftest.$ac_ext <<_ACEOF
 
21659
/* end confdefs.h.  */
 
21660
#include <pthread.h>
 
21661
int
 
21662
main ()
 
21663
{
 
21664
#if __FreeBSD__ == 4
 
21665
error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
 
21666
#else
 
21667
int x = (int)PTHREAD_MUTEX_RECURSIVE;
 
21668
return !x;
 
21669
#endif
 
21670
  ;
 
21671
  return 0;
 
21672
}
 
21673
_ACEOF
 
21674
rm -f conftest.$ac_objext
 
21675
if { (ac_try="$ac_compile"
 
21676
case "(($ac_try" in
 
21677
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21678
  *) ac_try_echo=$ac_try;;
 
21679
esac
 
21680
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21681
  (eval "$ac_compile") 2>conftest.er1
 
21682
  ac_status=$?
 
21683
  grep -v '^ *+' conftest.er1 >conftest.err
 
21684
  rm -f conftest.er1
 
21685
  cat conftest.err >&5
 
21686
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21687
  (exit $ac_status); } && {
 
21688
         test -z "$ac_c_werror_flag" ||
 
21689
         test ! -s conftest.err
 
21690
       } && test -s conftest.$ac_objext; then
 
21691
 
 
21692
cat >>confdefs.h <<\_ACEOF
 
21693
#define HAVE_PTHREAD_MUTEX_RECURSIVE 1
 
21694
_ACEOF
 
21695
 
 
21696
else
 
21697
  echo "$as_me: failed program was:" >&5
 
21698
sed 's/^/| /' conftest.$ac_ext >&5
 
21699
 
 
21700
 
 
21701
fi
 
21702
 
 
21703
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21704
        fi
 
21705
      fi
 
21706
    fi
 
21707
    if test -z "$gl_have_pthread"; then
 
21708
      if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
 
21709
        gl_have_solaristhread=
 
21710
        gl_save_LIBS="$LIBS"
 
21711
        LIBS="$LIBS -lthread"
 
21712
        cat >conftest.$ac_ext <<_ACEOF
 
21713
/* confdefs.h.  */
 
21714
_ACEOF
 
21715
cat confdefs.h >>conftest.$ac_ext
 
21716
cat >>conftest.$ac_ext <<_ACEOF
 
21717
/* end confdefs.h.  */
 
21718
#include <thread.h>
 
21719
#include <synch.h>
 
21720
int
 
21721
main ()
 
21722
{
 
21723
thr_self();
 
21724
  ;
 
21725
  return 0;
 
21726
}
 
21727
_ACEOF
 
21728
rm -f conftest.$ac_objext conftest$ac_exeext
 
21729
if { (ac_try="$ac_link"
 
21730
case "(($ac_try" in
 
21731
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21732
  *) ac_try_echo=$ac_try;;
 
21733
esac
 
21734
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21735
  (eval "$ac_link") 2>conftest.er1
 
21736
  ac_status=$?
 
21737
  grep -v '^ *+' conftest.er1 >conftest.err
 
21738
  rm -f conftest.er1
 
21739
  cat conftest.err >&5
 
21740
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21741
  (exit $ac_status); } && {
 
21742
         test -z "$ac_c_werror_flag" ||
 
21743
         test ! -s conftest.err
 
21744
       } && test -s conftest$ac_exeext &&
 
21745
       $as_test_x conftest$ac_exeext; then
 
21746
  gl_have_solaristhread=yes
 
21747
else
 
21748
  echo "$as_me: failed program was:" >&5
 
21749
sed 's/^/| /' conftest.$ac_ext >&5
 
21750
 
 
21751
 
 
21752
fi
 
21753
 
 
21754
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21755
      conftest$ac_exeext conftest.$ac_ext
 
21756
        LIBS="$gl_save_LIBS"
 
21757
        if test -n "$gl_have_solaristhread"; then
 
21758
          gl_threads_api=solaris
 
21759
          LIBTHREAD=-lthread
 
21760
          LTLIBTHREAD=-lthread
 
21761
          LIBMULTITHREAD="$LIBTHREAD"
 
21762
          LTLIBMULTITHREAD="$LTLIBTHREAD"
 
21763
 
 
21764
cat >>confdefs.h <<\_ACEOF
 
21765
#define USE_SOLARIS_THREADS 1
 
21766
_ACEOF
 
21767
 
 
21768
          if test $gl_have_weak = yes; then
 
21769
 
 
21770
cat >>confdefs.h <<\_ACEOF
 
21771
#define USE_SOLARIS_THREADS_WEAK 1
 
21772
_ACEOF
 
21773
 
 
21774
            LIBTHREAD=
 
21775
            LTLIBTHREAD=
 
21776
          fi
 
21777
        fi
 
21778
      fi
 
21779
    fi
 
21780
    if test "$gl_use_threads" = pth; then
 
21781
      gl_save_CPPFLAGS="$CPPFLAGS"
 
21782
 
 
21783
 
 
21784
 
 
21785
 
 
21786
 
 
21787
  { echo "$as_me:$LINENO: checking how to link with libpth" >&5
 
21788
echo $ECHO_N "checking how to link with libpth... $ECHO_C" >&6; }
 
21789
if test "${ac_cv_libpth_libs+set}" = set; then
 
21790
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21791
else
 
21792
 
 
21793
 
 
21794
 
 
21795
 
 
21796
 
 
21797
    use_additional=yes
 
21798
 
 
21799
  acl_save_prefix="$prefix"
 
21800
  prefix="$acl_final_prefix"
 
21801
  acl_save_exec_prefix="$exec_prefix"
 
21802
  exec_prefix="$acl_final_exec_prefix"
 
21803
 
 
21804
    eval additional_includedir=\"$includedir\"
 
21805
    eval additional_libdir=\"$libdir\"
 
21806
 
 
21807
  exec_prefix="$acl_save_exec_prefix"
 
21808
  prefix="$acl_save_prefix"
 
21809
 
 
21810
 
 
21811
# Check whether --with-libpth-prefix was given.
 
21812
if test "${with_libpth_prefix+set}" = set; then
 
21813
  withval=$with_libpth_prefix;
 
21814
    if test "X$withval" = "Xno"; then
 
21815
      use_additional=no
 
21816
    else
 
21817
      if test "X$withval" = "X"; then
 
21818
 
 
21819
  acl_save_prefix="$prefix"
 
21820
  prefix="$acl_final_prefix"
 
21821
  acl_save_exec_prefix="$exec_prefix"
 
21822
  exec_prefix="$acl_final_exec_prefix"
 
21823
 
 
21824
          eval additional_includedir=\"$includedir\"
 
21825
          eval additional_libdir=\"$libdir\"
 
21826
 
 
21827
  exec_prefix="$acl_save_exec_prefix"
 
21828
  prefix="$acl_save_prefix"
 
21829
 
 
21830
      else
 
21831
        additional_includedir="$withval/include"
 
21832
        additional_libdir="$withval/$acl_libdirstem"
 
21833
      fi
 
21834
    fi
 
21835
 
 
21836
fi
 
21837
 
 
21838
      LIBPTH=
 
21839
  LTLIBPTH=
 
21840
  INCPTH=
 
21841
  LIBPTH_PREFIX=
 
21842
  rpathdirs=
 
21843
  ltrpathdirs=
 
21844
  names_already_handled=
 
21845
  names_next_round='pth '
 
21846
  while test -n "$names_next_round"; do
 
21847
    names_this_round="$names_next_round"
 
21848
    names_next_round=
 
21849
    for name in $names_this_round; do
 
21850
      already_handled=
 
21851
      for n in $names_already_handled; do
 
21852
        if test "$n" = "$name"; then
 
21853
          already_handled=yes
 
21854
          break
 
21855
        fi
 
21856
      done
 
21857
      if test -z "$already_handled"; then
 
21858
        names_already_handled="$names_already_handled $name"
 
21859
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
 
21860
        eval value=\"\$HAVE_LIB$uppername\"
 
21861
        if test -n "$value"; then
 
21862
          if test "$value" = yes; then
 
21863
            eval value=\"\$LIB$uppername\"
 
21864
            test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
 
21865
            eval value=\"\$LTLIB$uppername\"
 
21866
            test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
 
21867
          else
 
21868
                                    :
 
21869
          fi
 
21870
        else
 
21871
                              found_dir=
 
21872
          found_la=
 
21873
          found_so=
 
21874
          found_a=
 
21875
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
 
21876
          if test -n "$acl_shlibext"; then
 
21877
            shrext=".$acl_shlibext"             # typically: shrext=.so
 
21878
          else
 
21879
            shrext=
 
21880
          fi
 
21881
          if test $use_additional = yes; then
 
21882
            dir="$additional_libdir"
 
21883
                                    if test -n "$acl_shlibext"; then
 
21884
              if test -f "$dir/$libname$shrext"; then
 
21885
                found_dir="$dir"
 
21886
                found_so="$dir/$libname$shrext"
 
21887
              else
 
21888
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
21889
                  ver=`(cd "$dir" && \
 
21890
                        for f in "$libname$shrext".*; do echo "$f"; done \
 
21891
                        | sed -e "s,^$libname$shrext\\\\.,," \
 
21892
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
21893
                        | sed 1q ) 2>/dev/null`
 
21894
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
21895
                    found_dir="$dir"
 
21896
                    found_so="$dir/$libname$shrext.$ver"
 
21897
                  fi
 
21898
                else
 
21899
                  eval library_names=\"$acl_library_names_spec\"
 
21900
                  for f in $library_names; do
 
21901
                    if test -f "$dir/$f"; then
 
21902
                      found_dir="$dir"
 
21903
                      found_so="$dir/$f"
 
21904
                      break
 
21905
                    fi
 
21906
                  done
 
21907
                fi
 
21908
              fi
 
21909
            fi
 
21910
                        if test "X$found_dir" = "X"; then
 
21911
              if test -f "$dir/$libname.$acl_libext"; then
 
21912
                found_dir="$dir"
 
21913
                found_a="$dir/$libname.$acl_libext"
 
21914
              fi
 
21915
            fi
 
21916
            if test "X$found_dir" != "X"; then
 
21917
              if test -f "$dir/$libname.la"; then
 
21918
                found_la="$dir/$libname.la"
 
21919
              fi
 
21920
            fi
 
21921
          fi
 
21922
          if test "X$found_dir" = "X"; then
 
21923
            for x in $LDFLAGS $LTLIBPTH; do
 
21924
 
 
21925
  acl_save_prefix="$prefix"
 
21926
  prefix="$acl_final_prefix"
 
21927
  acl_save_exec_prefix="$exec_prefix"
 
21928
  exec_prefix="$acl_final_exec_prefix"
 
21929
  eval x=\"$x\"
 
21930
  exec_prefix="$acl_save_exec_prefix"
 
21931
  prefix="$acl_save_prefix"
 
21932
 
 
21933
              case "$x" in
 
21934
                -L*)
 
21935
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
21936
                                    if test -n "$acl_shlibext"; then
 
21937
                    if test -f "$dir/$libname$shrext"; then
 
21938
                      found_dir="$dir"
 
21939
                      found_so="$dir/$libname$shrext"
 
21940
                    else
 
21941
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
21942
                        ver=`(cd "$dir" && \
 
21943
                              for f in "$libname$shrext".*; do echo "$f"; done \
 
21944
                              | sed -e "s,^$libname$shrext\\\\.,," \
 
21945
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
21946
                              | sed 1q ) 2>/dev/null`
 
21947
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
21948
                          found_dir="$dir"
 
21949
                          found_so="$dir/$libname$shrext.$ver"
 
21950
                        fi
 
21951
                      else
 
21952
                        eval library_names=\"$acl_library_names_spec\"
 
21953
                        for f in $library_names; do
 
21954
                          if test -f "$dir/$f"; then
 
21955
                            found_dir="$dir"
 
21956
                            found_so="$dir/$f"
 
21957
                            break
 
21958
                          fi
 
21959
                        done
 
21960
                      fi
 
21961
                    fi
 
21962
                  fi
 
21963
                                    if test "X$found_dir" = "X"; then
 
21964
                    if test -f "$dir/$libname.$acl_libext"; then
 
21965
                      found_dir="$dir"
 
21966
                      found_a="$dir/$libname.$acl_libext"
 
21967
                    fi
 
21968
                  fi
 
21969
                  if test "X$found_dir" != "X"; then
 
21970
                    if test -f "$dir/$libname.la"; then
 
21971
                      found_la="$dir/$libname.la"
 
21972
                    fi
 
21973
                  fi
 
21974
                  ;;
 
21975
              esac
 
21976
              if test "X$found_dir" != "X"; then
 
21977
                break
 
21978
              fi
 
21979
            done
 
21980
          fi
 
21981
          if test "X$found_dir" != "X"; then
 
21982
                        LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
 
21983
            if test "X$found_so" != "X"; then
 
21984
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
 
21985
                                LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
 
21986
              else
 
21987
                                                                                haveit=
 
21988
                for x in $ltrpathdirs; do
 
21989
                  if test "X$x" = "X$found_dir"; then
 
21990
                    haveit=yes
 
21991
                    break
 
21992
                  fi
 
21993
                done
 
21994
                if test -z "$haveit"; then
 
21995
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
21996
                fi
 
21997
                                if test "$acl_hardcode_direct" = yes; then
 
21998
                                                      LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
 
21999
                else
 
22000
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
 
22001
                                                            LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
 
22002
                                                            haveit=
 
22003
                    for x in $rpathdirs; do
 
22004
                      if test "X$x" = "X$found_dir"; then
 
22005
                        haveit=yes
 
22006
                        break
 
22007
                      fi
 
22008
                    done
 
22009
                    if test -z "$haveit"; then
 
22010
                      rpathdirs="$rpathdirs $found_dir"
 
22011
                    fi
 
22012
                  else
 
22013
                                                                                haveit=
 
22014
                    for x in $LDFLAGS $LIBPTH; do
 
22015
 
 
22016
  acl_save_prefix="$prefix"
 
22017
  prefix="$acl_final_prefix"
 
22018
  acl_save_exec_prefix="$exec_prefix"
 
22019
  exec_prefix="$acl_final_exec_prefix"
 
22020
  eval x=\"$x\"
 
22021
  exec_prefix="$acl_save_exec_prefix"
 
22022
  prefix="$acl_save_prefix"
 
22023
 
 
22024
                      if test "X$x" = "X-L$found_dir"; then
 
22025
                        haveit=yes
 
22026
                        break
 
22027
                      fi
 
22028
                    done
 
22029
                    if test -z "$haveit"; then
 
22030
                      LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
 
22031
                    fi
 
22032
                    if test "$acl_hardcode_minus_L" != no; then
 
22033
                                                                                        LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
 
22034
                    else
 
22035
                                                                                                                                                                                LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
 
22036
                    fi
 
22037
                  fi
 
22038
                fi
 
22039
              fi
 
22040
            else
 
22041
              if test "X$found_a" != "X"; then
 
22042
                                LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
 
22043
              else
 
22044
                                                LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
 
22045
              fi
 
22046
            fi
 
22047
                        additional_includedir=
 
22048
            case "$found_dir" in
 
22049
              */$acl_libdirstem | */$acl_libdirstem/)
 
22050
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
 
22051
                LIBPTH_PREFIX="$basedir"
 
22052
                additional_includedir="$basedir/include"
 
22053
                ;;
 
22054
            esac
 
22055
            if test "X$additional_includedir" != "X"; then
 
22056
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
22057
                haveit=
 
22058
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
22059
                  if test -n "$GCC"; then
 
22060
                    case $host_os in
 
22061
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
22062
                    esac
 
22063
                  fi
 
22064
                fi
 
22065
                if test -z "$haveit"; then
 
22066
                  for x in $CPPFLAGS $INCPTH; do
 
22067
 
 
22068
  acl_save_prefix="$prefix"
 
22069
  prefix="$acl_final_prefix"
 
22070
  acl_save_exec_prefix="$exec_prefix"
 
22071
  exec_prefix="$acl_final_exec_prefix"
 
22072
  eval x=\"$x\"
 
22073
  exec_prefix="$acl_save_exec_prefix"
 
22074
  prefix="$acl_save_prefix"
 
22075
 
 
22076
                    if test "X$x" = "X-I$additional_includedir"; then
 
22077
                      haveit=yes
 
22078
                      break
 
22079
                    fi
 
22080
                  done
 
22081
                  if test -z "$haveit"; then
 
22082
                    if test -d "$additional_includedir"; then
 
22083
                                            INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
 
22084
                    fi
 
22085
                  fi
 
22086
                fi
 
22087
              fi
 
22088
            fi
 
22089
                        if test -n "$found_la"; then
 
22090
                                                        save_libdir="$libdir"
 
22091
              case "$found_la" in
 
22092
                */* | *\\*) . "$found_la" ;;
 
22093
                *) . "./$found_la" ;;
 
22094
              esac
 
22095
              libdir="$save_libdir"
 
22096
                            for dep in $dependency_libs; do
 
22097
                case "$dep" in
 
22098
                  -L*)
 
22099
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
22100
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
 
22101
                      haveit=
 
22102
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
 
22103
                        if test -n "$GCC"; then
 
22104
                          case $host_os in
 
22105
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
22106
                          esac
 
22107
                        fi
 
22108
                      fi
 
22109
                      if test -z "$haveit"; then
 
22110
                        haveit=
 
22111
                        for x in $LDFLAGS $LIBPTH; do
 
22112
 
 
22113
  acl_save_prefix="$prefix"
 
22114
  prefix="$acl_final_prefix"
 
22115
  acl_save_exec_prefix="$exec_prefix"
 
22116
  exec_prefix="$acl_final_exec_prefix"
 
22117
  eval x=\"$x\"
 
22118
  exec_prefix="$acl_save_exec_prefix"
 
22119
  prefix="$acl_save_prefix"
 
22120
 
 
22121
                          if test "X$x" = "X-L$additional_libdir"; then
 
22122
                            haveit=yes
 
22123
                            break
 
22124
                          fi
 
22125
                        done
 
22126
                        if test -z "$haveit"; then
 
22127
                          if test -d "$additional_libdir"; then
 
22128
                                                        LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
 
22129
                          fi
 
22130
                        fi
 
22131
                        haveit=
 
22132
                        for x in $LDFLAGS $LTLIBPTH; do
 
22133
 
 
22134
  acl_save_prefix="$prefix"
 
22135
  prefix="$acl_final_prefix"
 
22136
  acl_save_exec_prefix="$exec_prefix"
 
22137
  exec_prefix="$acl_final_exec_prefix"
 
22138
  eval x=\"$x\"
 
22139
  exec_prefix="$acl_save_exec_prefix"
 
22140
  prefix="$acl_save_prefix"
 
22141
 
 
22142
                          if test "X$x" = "X-L$additional_libdir"; then
 
22143
                            haveit=yes
 
22144
                            break
 
22145
                          fi
 
22146
                        done
 
22147
                        if test -z "$haveit"; then
 
22148
                          if test -d "$additional_libdir"; then
 
22149
                                                        LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
 
22150
                          fi
 
22151
                        fi
 
22152
                      fi
 
22153
                    fi
 
22154
                    ;;
 
22155
                  -R*)
 
22156
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
22157
                    if test "$enable_rpath" != no; then
 
22158
                                                                  haveit=
 
22159
                      for x in $rpathdirs; do
 
22160
                        if test "X$x" = "X$dir"; then
 
22161
                          haveit=yes
 
22162
                          break
 
22163
                        fi
 
22164
                      done
 
22165
                      if test -z "$haveit"; then
 
22166
                        rpathdirs="$rpathdirs $dir"
 
22167
                      fi
 
22168
                                                                  haveit=
 
22169
                      for x in $ltrpathdirs; do
 
22170
                        if test "X$x" = "X$dir"; then
 
22171
                          haveit=yes
 
22172
                          break
 
22173
                        fi
 
22174
                      done
 
22175
                      if test -z "$haveit"; then
 
22176
                        ltrpathdirs="$ltrpathdirs $dir"
 
22177
                      fi
 
22178
                    fi
 
22179
                    ;;
 
22180
                  -l*)
 
22181
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
22182
                    ;;
 
22183
                  *.la)
 
22184
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
22185
                    ;;
 
22186
                  *)
 
22187
                                        LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
 
22188
                    LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
 
22189
                    ;;
 
22190
                esac
 
22191
              done
 
22192
            fi
 
22193
          else
 
22194
                                                            LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
 
22195
            LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
 
22196
          fi
 
22197
        fi
 
22198
      fi
 
22199
    done
 
22200
  done
 
22201
  if test "X$rpathdirs" != "X"; then
 
22202
    if test -n "$acl_hardcode_libdir_separator"; then
 
22203
                        alldirs=
 
22204
      for found_dir in $rpathdirs; do
 
22205
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
 
22206
      done
 
22207
            acl_save_libdir="$libdir"
 
22208
      libdir="$alldirs"
 
22209
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
22210
      libdir="$acl_save_libdir"
 
22211
      LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
 
22212
    else
 
22213
            for found_dir in $rpathdirs; do
 
22214
        acl_save_libdir="$libdir"
 
22215
        libdir="$found_dir"
 
22216
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
22217
        libdir="$acl_save_libdir"
 
22218
        LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
 
22219
      done
 
22220
    fi
 
22221
  fi
 
22222
  if test "X$ltrpathdirs" != "X"; then
 
22223
            for found_dir in $ltrpathdirs; do
 
22224
      LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
 
22225
    done
 
22226
  fi
 
22227
 
 
22228
    ac_cv_libpth_libs="$LIBPTH"
 
22229
    ac_cv_libpth_ltlibs="$LTLIBPTH"
 
22230
    ac_cv_libpth_cppflags="$INCPTH"
 
22231
    ac_cv_libpth_prefix="$LIBPTH_PREFIX"
 
22232
 
 
22233
fi
 
22234
{ echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
 
22235
echo "${ECHO_T}$ac_cv_libpth_libs" >&6; }
 
22236
  LIBPTH="$ac_cv_libpth_libs"
 
22237
  LTLIBPTH="$ac_cv_libpth_ltlibs"
 
22238
  INCPTH="$ac_cv_libpth_cppflags"
 
22239
  LIBPTH_PREFIX="$ac_cv_libpth_prefix"
 
22240
 
 
22241
  for element in $INCPTH; do
 
22242
    haveit=
 
22243
    for x in $CPPFLAGS; do
 
22244
 
 
22245
  acl_save_prefix="$prefix"
 
22246
  prefix="$acl_final_prefix"
 
22247
  acl_save_exec_prefix="$exec_prefix"
 
22248
  exec_prefix="$acl_final_exec_prefix"
 
22249
  eval x=\"$x\"
 
22250
  exec_prefix="$acl_save_exec_prefix"
 
22251
  prefix="$acl_save_prefix"
 
22252
 
 
22253
      if test "X$x" = "X$element"; then
 
22254
        haveit=yes
 
22255
        break
 
22256
      fi
 
22257
    done
 
22258
    if test -z "$haveit"; then
 
22259
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
22260
    fi
 
22261
  done
 
22262
 
 
22263
 
 
22264
 
 
22265
 
 
22266
      HAVE_LIBPTH=yes
 
22267
 
 
22268
 
 
22269
 
 
22270
      gl_have_pth=
 
22271
      gl_save_LIBS="$LIBS"
 
22272
      LIBS="$LIBS -lpth"
 
22273
      cat >conftest.$ac_ext <<_ACEOF
 
22274
/* confdefs.h.  */
 
22275
_ACEOF
 
22276
cat confdefs.h >>conftest.$ac_ext
 
22277
cat >>conftest.$ac_ext <<_ACEOF
 
22278
/* end confdefs.h.  */
 
22279
#include <pth.h>
 
22280
int
 
22281
main ()
 
22282
{
 
22283
pth_self();
 
22284
  ;
 
22285
  return 0;
 
22286
}
 
22287
_ACEOF
 
22288
rm -f conftest.$ac_objext conftest$ac_exeext
 
22289
if { (ac_try="$ac_link"
 
22290
case "(($ac_try" in
 
22291
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22292
  *) ac_try_echo=$ac_try;;
 
22293
esac
 
22294
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22295
  (eval "$ac_link") 2>conftest.er1
 
22296
  ac_status=$?
 
22297
  grep -v '^ *+' conftest.er1 >conftest.err
 
22298
  rm -f conftest.er1
 
22299
  cat conftest.err >&5
 
22300
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22301
  (exit $ac_status); } && {
 
22302
         test -z "$ac_c_werror_flag" ||
 
22303
         test ! -s conftest.err
 
22304
       } && test -s conftest$ac_exeext &&
 
22305
       $as_test_x conftest$ac_exeext; then
 
22306
  gl_have_pth=yes
 
22307
else
 
22308
  echo "$as_me: failed program was:" >&5
 
22309
sed 's/^/| /' conftest.$ac_ext >&5
 
22310
 
 
22311
 
 
22312
fi
 
22313
 
 
22314
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
22315
      conftest$ac_exeext conftest.$ac_ext
 
22316
      LIBS="$gl_save_LIBS"
 
22317
      if test -n "$gl_have_pth"; then
 
22318
        gl_threads_api=pth
 
22319
        LIBTHREAD="$LIBPTH"
 
22320
        LTLIBTHREAD="$LTLIBPTH"
 
22321
        LIBMULTITHREAD="$LIBTHREAD"
 
22322
        LTLIBMULTITHREAD="$LTLIBTHREAD"
 
22323
 
 
22324
cat >>confdefs.h <<\_ACEOF
 
22325
#define USE_PTH_THREADS 1
 
22326
_ACEOF
 
22327
 
 
22328
        if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
 
22329
          if test $gl_have_weak = yes; then
 
22330
 
 
22331
cat >>confdefs.h <<\_ACEOF
 
22332
#define USE_PTH_THREADS_WEAK 1
 
22333
_ACEOF
 
22334
 
 
22335
            LIBTHREAD=
 
22336
            LTLIBTHREAD=
 
22337
          fi
 
22338
        fi
 
22339
      else
 
22340
        CPPFLAGS="$gl_save_CPPFLAGS"
 
22341
      fi
 
22342
    fi
 
22343
    if test -z "$gl_have_pthread"; then
 
22344
      if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
 
22345
        if { case "$host_os" in
 
22346
               mingw*) true;;
 
22347
               *) false;;
 
22348
             esac
 
22349
           }; then
 
22350
          gl_threads_api=win32
 
22351
 
 
22352
cat >>confdefs.h <<\_ACEOF
 
22353
#define USE_WIN32_THREADS 1
 
22354
_ACEOF
 
22355
 
 
22356
        fi
 
22357
      fi
 
22358
    fi
 
22359
  fi
 
22360
  { echo "$as_me:$LINENO: checking for multithread API to use" >&5
 
22361
echo $ECHO_N "checking for multithread API to use... $ECHO_C" >&6; }
 
22362
  { echo "$as_me:$LINENO: result: $gl_threads_api" >&5
 
22363
echo "${ECHO_T}$gl_threads_api" >&6; }
 
22364
 
 
22365
 
 
22366
 
 
22367
 
 
22368
 
 
22369
 
 
22370
 
 
22371
 
 
22372
 
 
22373
 
 
22374
 
 
22375
 
 
22376
 
 
22377
 
 
22378
 
 
22379
 
 
22380
 
 
22381
 
 
22382
 
 
22383
 
 
22384
    use_additional=yes
 
22385
 
 
22386
  acl_save_prefix="$prefix"
 
22387
  prefix="$acl_final_prefix"
 
22388
  acl_save_exec_prefix="$exec_prefix"
 
22389
  exec_prefix="$acl_final_exec_prefix"
 
22390
 
 
22391
    eval additional_includedir=\"$includedir\"
 
22392
    eval additional_libdir=\"$libdir\"
 
22393
 
 
22394
  exec_prefix="$acl_save_exec_prefix"
 
22395
  prefix="$acl_save_prefix"
 
22396
 
 
22397
 
 
22398
# Check whether --with-libiconv-prefix was given.
19665
22399
if test "${with_libiconv_prefix+set}" = set; then
19666
 
  withval="$with_libiconv_prefix"
19667
 
 
 
22400
  withval=$with_libiconv_prefix;
19668
22401
    if test "X$withval" = "Xno"; then
19669
22402
      use_additional=no
19670
22403
    else
19683
22416
 
19684
22417
      else
19685
22418
        additional_includedir="$withval/include"
19686
 
        additional_libdir="$withval/lib"
 
22419
        additional_libdir="$withval/$acl_libdirstem"
19687
22420
      fi
19688
22421
    fi
19689
22422
 
19690
 
fi;
 
22423
fi
 
22424
 
19691
22425
      LIBICONV=
19692
22426
  LTLIBICONV=
19693
22427
  INCICONV=
 
22428
  LIBICONV_PREFIX=
19694
22429
  rpathdirs=
19695
22430
  ltrpathdirs=
19696
22431
  names_already_handled=
19724
22459
          found_la=
19725
22460
          found_so=
19726
22461
          found_a=
 
22462
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
 
22463
          if test -n "$acl_shlibext"; then
 
22464
            shrext=".$acl_shlibext"             # typically: shrext=.so
 
22465
          else
 
22466
            shrext=
 
22467
          fi
19727
22468
          if test $use_additional = yes; then
19728
 
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
19729
 
              found_dir="$additional_libdir"
19730
 
              found_so="$additional_libdir/lib$name.$shlibext"
19731
 
              if test -f "$additional_libdir/lib$name.la"; then
19732
 
                found_la="$additional_libdir/lib$name.la"
19733
 
              fi
19734
 
            else
19735
 
              if test -f "$additional_libdir/lib$name.$libext"; then
19736
 
                found_dir="$additional_libdir"
19737
 
                found_a="$additional_libdir/lib$name.$libext"
19738
 
                if test -f "$additional_libdir/lib$name.la"; then
19739
 
                  found_la="$additional_libdir/lib$name.la"
 
22469
            dir="$additional_libdir"
 
22470
                                    if test -n "$acl_shlibext"; then
 
22471
              if test -f "$dir/$libname$shrext"; then
 
22472
                found_dir="$dir"
 
22473
                found_so="$dir/$libname$shrext"
 
22474
              else
 
22475
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
22476
                  ver=`(cd "$dir" && \
 
22477
                        for f in "$libname$shrext".*; do echo "$f"; done \
 
22478
                        | sed -e "s,^$libname$shrext\\\\.,," \
 
22479
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
22480
                        | sed 1q ) 2>/dev/null`
 
22481
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
22482
                    found_dir="$dir"
 
22483
                    found_so="$dir/$libname$shrext.$ver"
 
22484
                  fi
 
22485
                else
 
22486
                  eval library_names=\"$acl_library_names_spec\"
 
22487
                  for f in $library_names; do
 
22488
                    if test -f "$dir/$f"; then
 
22489
                      found_dir="$dir"
 
22490
                      found_so="$dir/$f"
 
22491
                      break
 
22492
                    fi
 
22493
                  done
19740
22494
                fi
19741
22495
              fi
19742
22496
            fi
 
22497
                        if test "X$found_dir" = "X"; then
 
22498
              if test -f "$dir/$libname.$acl_libext"; then
 
22499
                found_dir="$dir"
 
22500
                found_a="$dir/$libname.$acl_libext"
 
22501
              fi
 
22502
            fi
 
22503
            if test "X$found_dir" != "X"; then
 
22504
              if test -f "$dir/$libname.la"; then
 
22505
                found_la="$dir/$libname.la"
 
22506
              fi
 
22507
            fi
19743
22508
          fi
19744
22509
          if test "X$found_dir" = "X"; then
19745
22510
            for x in $LDFLAGS $LTLIBICONV; do
19755
22520
              case "$x" in
19756
22521
                -L*)
19757
22522
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
19758
 
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
19759
 
                    found_dir="$dir"
19760
 
                    found_so="$dir/lib$name.$shlibext"
19761
 
                    if test -f "$dir/lib$name.la"; then
19762
 
                      found_la="$dir/lib$name.la"
19763
 
                    fi
19764
 
                  else
19765
 
                    if test -f "$dir/lib$name.$libext"; then
 
22523
                                    if test -n "$acl_shlibext"; then
 
22524
                    if test -f "$dir/$libname$shrext"; then
19766
22525
                      found_dir="$dir"
19767
 
                      found_a="$dir/lib$name.$libext"
19768
 
                      if test -f "$dir/lib$name.la"; then
19769
 
                        found_la="$dir/lib$name.la"
 
22526
                      found_so="$dir/$libname$shrext"
 
22527
                    else
 
22528
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
22529
                        ver=`(cd "$dir" && \
 
22530
                              for f in "$libname$shrext".*; do echo "$f"; done \
 
22531
                              | sed -e "s,^$libname$shrext\\\\.,," \
 
22532
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
22533
                              | sed 1q ) 2>/dev/null`
 
22534
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
22535
                          found_dir="$dir"
 
22536
                          found_so="$dir/$libname$shrext.$ver"
 
22537
                        fi
 
22538
                      else
 
22539
                        eval library_names=\"$acl_library_names_spec\"
 
22540
                        for f in $library_names; do
 
22541
                          if test -f "$dir/$f"; then
 
22542
                            found_dir="$dir"
 
22543
                            found_so="$dir/$f"
 
22544
                            break
 
22545
                          fi
 
22546
                        done
19770
22547
                      fi
19771
22548
                    fi
19772
22549
                  fi
 
22550
                                    if test "X$found_dir" = "X"; then
 
22551
                    if test -f "$dir/$libname.$acl_libext"; then
 
22552
                      found_dir="$dir"
 
22553
                      found_a="$dir/$libname.$acl_libext"
 
22554
                    fi
 
22555
                  fi
 
22556
                  if test "X$found_dir" != "X"; then
 
22557
                    if test -f "$dir/$libname.la"; then
 
22558
                      found_la="$dir/$libname.la"
 
22559
                    fi
 
22560
                  fi
19773
22561
                  ;;
19774
22562
              esac
19775
22563
              if test "X$found_dir" != "X"; then
19780
22568
          if test "X$found_dir" != "X"; then
19781
22569
                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
19782
22570
            if test "X$found_so" != "X"; then
19783
 
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
 
22571
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
19784
22572
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19785
22573
              else
19786
22574
                                                                                haveit=
19793
22581
                if test -z "$haveit"; then
19794
22582
                  ltrpathdirs="$ltrpathdirs $found_dir"
19795
22583
                fi
19796
 
                                if test "$hardcode_direct" = yes; then
 
22584
                                if test "$acl_hardcode_direct" = yes; then
19797
22585
                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19798
22586
                else
19799
 
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
 
22587
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
19800
22588
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19801
22589
                                                            haveit=
19802
22590
                    for x in $rpathdirs; do
19828
22616
                    if test -z "$haveit"; then
19829
22617
                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
19830
22618
                    fi
19831
 
                    if test "$hardcode_minus_L" != no; then
 
22619
                    if test "$acl_hardcode_minus_L" != no; then
19832
22620
                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19833
22621
                    else
19834
22622
                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
19845
22633
            fi
19846
22634
                        additional_includedir=
19847
22635
            case "$found_dir" in
19848
 
              */lib | */lib/)
19849
 
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
 
22636
              */$acl_libdirstem | */$acl_libdirstem/)
 
22637
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
 
22638
                LIBICONV_PREFIX="$basedir"
19850
22639
                additional_includedir="$basedir/include"
19851
22640
                ;;
19852
22641
            esac
19895
22684
                case "$dep" in
19896
22685
                  -L*)
19897
22686
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
19898
 
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
 
22687
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
19899
22688
                      haveit=
19900
 
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
 
22689
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
19901
22690
                        if test -n "$GCC"; then
19902
22691
                          case $host_os in
19903
22692
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19997
22786
    done
19998
22787
  done
19999
22788
  if test "X$rpathdirs" != "X"; then
20000
 
    if test -n "$hardcode_libdir_separator"; then
 
22789
    if test -n "$acl_hardcode_libdir_separator"; then
20001
22790
                        alldirs=
20002
22791
      for found_dir in $rpathdirs; do
20003
 
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
 
22792
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
20004
22793
      done
20005
22794
            acl_save_libdir="$libdir"
20006
22795
      libdir="$alldirs"
20007
 
      eval flag=\"$hardcode_libdir_flag_spec\"
 
22796
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
20008
22797
      libdir="$acl_save_libdir"
20009
22798
      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20010
22799
    else
20011
22800
            for found_dir in $rpathdirs; do
20012
22801
        acl_save_libdir="$libdir"
20013
22802
        libdir="$found_dir"
20014
 
        eval flag=\"$hardcode_libdir_flag_spec\"
 
22803
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
20015
22804
        libdir="$acl_save_libdir"
20016
22805
        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20017
22806
      done
20027
22816
 
20028
22817
 
20029
22818
 
20030
 
 
20031
 
 
20032
 
 
20033
 
  echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
20034
 
echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
20035
 
if test "${ac_cv_type_ptrdiff_t+set}" = set; then
20036
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20037
 
else
20038
22819
  cat >conftest.$ac_ext <<_ACEOF
20039
22820
/* confdefs.h.  */
20040
22821
_ACEOF
20041
22822
cat confdefs.h >>conftest.$ac_ext
20042
22823
cat >>conftest.$ac_ext <<_ACEOF
20043
22824
/* end confdefs.h.  */
20044
 
$ac_includes_default
 
22825
int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
20045
22826
int
20046
22827
main ()
20047
22828
{
20048
 
if ((ptrdiff_t *) 0)
20049
 
  return 0;
20050
 
if (sizeof (ptrdiff_t))
20051
 
  return 0;
 
22829
 
20052
22830
  ;
20053
22831
  return 0;
20054
22832
}
20055
22833
_ACEOF
20056
 
rm -f conftest.$ac_objext
20057
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20058
 
  (eval $ac_compile) 2>conftest.er1
 
22834
rm -f conftest.$ac_objext conftest$ac_exeext
 
22835
if { (ac_try="$ac_link"
 
22836
case "(($ac_try" in
 
22837
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22838
  *) ac_try_echo=$ac_try;;
 
22839
esac
 
22840
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22841
  (eval "$ac_link") 2>conftest.er1
20059
22842
  ac_status=$?
20060
22843
  grep -v '^ *+' conftest.er1 >conftest.err
20061
22844
  rm -f conftest.er1
20062
22845
  cat conftest.err >&5
20063
22846
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064
 
  (exit $ac_status); } &&
20065
 
         { ac_try='test -z "$ac_c_werror_flag"
20066
 
                         || test ! -s conftest.err'
20067
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20068
 
  (eval $ac_try) 2>&5
20069
 
  ac_status=$?
20070
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071
 
  (exit $ac_status); }; } &&
20072
 
         { ac_try='test -s conftest.$ac_objext'
20073
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20074
 
  (eval $ac_try) 2>&5
20075
 
  ac_status=$?
20076
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077
 
  (exit $ac_status); }; }; then
20078
 
  ac_cv_type_ptrdiff_t=yes
20079
 
else
20080
 
  echo "$as_me: failed program was:" >&5
20081
 
sed 's/^/| /' conftest.$ac_ext >&5
20082
 
 
20083
 
ac_cv_type_ptrdiff_t=no
20084
 
fi
20085
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20086
 
fi
20087
 
echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
20088
 
echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
20089
 
if test $ac_cv_type_ptrdiff_t = yes; then
20090
 
  :
20091
 
else
 
22847
  (exit $ac_status); } && {
 
22848
         test -z "$ac_c_werror_flag" ||
 
22849
         test ! -s conftest.err
 
22850
       } && test -s conftest$ac_exeext &&
 
22851
       $as_test_x conftest$ac_exeext; then
20092
22852
 
20093
22853
cat >>confdefs.h <<\_ACEOF
20094
 
#define ptrdiff_t long
 
22854
#define HAVE_BUILTIN_EXPECT 1
20095
22855
_ACEOF
20096
22856
 
 
22857
else
 
22858
  echo "$as_me: failed program was:" >&5
 
22859
sed 's/^/| /' conftest.$ac_ext >&5
 
22860
 
20097
22861
 
20098
22862
fi
20099
22863
 
20100
 
 
20101
 
 
20102
 
 
20103
 
 
20104
 
 
20105
 
 
20106
 
 
20107
 
 
20108
 
 
20109
 
 
20110
 
for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
20111
 
stdlib.h string.h unistd.h sys/param.h
 
22864
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
22865
      conftest$ac_exeext conftest.$ac_ext
 
22866
 
 
22867
 
 
22868
 
 
22869
 
 
22870
 
 
22871
 
 
22872
for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
20112
22873
do
20113
22874
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20114
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20115
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
20116
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20117
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
22875
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22876
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22877
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
22878
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20118
22879
  echo $ECHO_N "(cached) $ECHO_C" >&6
20119
22880
fi
20120
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20121
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
22881
ac_res=`eval echo '${'$as_ac_Header'}'`
 
22882
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
22883
echo "${ECHO_T}$ac_res" >&6; }
20122
22884
else
20123
22885
  # Is the header compilable?
20124
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
20125
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
22886
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
22887
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20126
22888
cat >conftest.$ac_ext <<_ACEOF
20127
22889
/* confdefs.h.  */
20128
22890
_ACEOF
20133
22895
#include <$ac_header>
20134
22896
_ACEOF
20135
22897
rm -f conftest.$ac_objext
20136
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20137
 
  (eval $ac_compile) 2>conftest.er1
 
22898
if { (ac_try="$ac_compile"
 
22899
case "(($ac_try" in
 
22900
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22901
  *) ac_try_echo=$ac_try;;
 
22902
esac
 
22903
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22904
  (eval "$ac_compile") 2>conftest.er1
20138
22905
  ac_status=$?
20139
22906
  grep -v '^ *+' conftest.er1 >conftest.err
20140
22907
  rm -f conftest.er1
20141
22908
  cat conftest.err >&5
20142
22909
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20143
 
  (exit $ac_status); } &&
20144
 
         { ac_try='test -z "$ac_c_werror_flag"
20145
 
                         || test ! -s conftest.err'
20146
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20147
 
  (eval $ac_try) 2>&5
20148
 
  ac_status=$?
20149
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150
 
  (exit $ac_status); }; } &&
20151
 
         { ac_try='test -s conftest.$ac_objext'
20152
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20153
 
  (eval $ac_try) 2>&5
20154
 
  ac_status=$?
20155
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156
 
  (exit $ac_status); }; }; then
 
22910
  (exit $ac_status); } && {
 
22911
         test -z "$ac_c_werror_flag" ||
 
22912
         test ! -s conftest.err
 
22913
       } && test -s conftest.$ac_objext; then
20157
22914
  ac_header_compiler=yes
20158
22915
else
20159
22916
  echo "$as_me: failed program was:" >&5
20160
22917
sed 's/^/| /' conftest.$ac_ext >&5
20161
22918
 
20162
 
ac_header_compiler=no
 
22919
        ac_header_compiler=no
20163
22920
fi
20164
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20165
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20166
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
22921
 
 
22922
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22923
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
22924
echo "${ECHO_T}$ac_header_compiler" >&6; }
20167
22925
 
20168
22926
# Is the header present?
20169
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
20170
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
22927
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
22928
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20171
22929
cat >conftest.$ac_ext <<_ACEOF
20172
22930
/* confdefs.h.  */
20173
22931
_ACEOF
20176
22934
/* end confdefs.h.  */
20177
22935
#include <$ac_header>
20178
22936
_ACEOF
20179
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20180
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
22937
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
22938
case "(($ac_try" in
 
22939
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22940
  *) ac_try_echo=$ac_try;;
 
22941
esac
 
22942
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22943
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20181
22944
  ac_status=$?
20182
22945
  grep -v '^ *+' conftest.er1 >conftest.err
20183
22946
  rm -f conftest.er1
20184
22947
  cat conftest.err >&5
20185
22948
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186
 
  (exit $ac_status); } >/dev/null; then
20187
 
  if test -s conftest.err; then
20188
 
    ac_cpp_err=$ac_c_preproc_warn_flag
20189
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20190
 
  else
20191
 
    ac_cpp_err=
20192
 
  fi
20193
 
else
20194
 
  ac_cpp_err=yes
20195
 
fi
20196
 
if test -z "$ac_cpp_err"; then
 
22949
  (exit $ac_status); } >/dev/null && {
 
22950
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
22951
         test ! -s conftest.err
 
22952
       }; then
20197
22953
  ac_header_preproc=yes
20198
22954
else
20199
22955
  echo "$as_me: failed program was:" >&5
20201
22957
 
20202
22958
  ac_header_preproc=no
20203
22959
fi
 
22960
 
20204
22961
rm -f conftest.err conftest.$ac_ext
20205
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20206
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
22962
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
22963
echo "${ECHO_T}$ac_header_preproc" >&6; }
20207
22964
 
20208
22965
# So?  What about this header?
20209
22966
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20227
22984
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20228
22985
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20229
22986
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20230
 
    (
20231
 
      cat <<\_ASBOX
 
22987
    ( cat <<\_ASBOX
20232
22988
## -------------------------------- ##
20233
22989
## Report this to sitecopy@lyra.org ##
20234
22990
## -------------------------------- ##
20235
22991
_ASBOX
20236
 
    ) |
20237
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
22992
     ) | sed "s/^/$as_me: WARNING:     /" >&2
20238
22993
    ;;
20239
22994
esac
20240
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
20241
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20242
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
22995
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22996
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
22997
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20243
22998
  echo $ECHO_N "(cached) $ECHO_C" >&6
20244
22999
else
20245
23000
  eval "$as_ac_Header=\$ac_header_preproc"
20246
23001
fi
20247
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20248
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
23002
ac_res=`eval echo '${'$as_ac_Header'}'`
 
23003
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
23004
echo "${ECHO_T}$ac_res" >&6; }
20249
23005
 
20250
23006
fi
20251
23007
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20273
23029
 
20274
23030
 
20275
23031
 
20276
 
 
20277
 
 
20278
 
 
20279
 
 
20280
 
 
20281
 
 
20282
 
 
20283
 
for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
20284
 
mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
20285
 
strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
20286
 
__fsetlocking
 
23032
for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
 
23033
    stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
 
23034
    argz_next __fsetlocking
20287
23035
do
20288
23036
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20289
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
20290
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20291
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
23037
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
23038
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
23039
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20292
23040
  echo $ECHO_N "(cached) $ECHO_C" >&6
20293
23041
else
20294
23042
  cat >conftest.$ac_ext <<_ACEOF
20314
23062
 
20315
23063
#undef $ac_func
20316
23064
 
20317
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
23065
/* Override any GCC internal prototype to avoid an error.
 
23066
   Use char because int might match the return type of a GCC
 
23067
   builtin and then its argument prototype would still apply.  */
20318
23068
#ifdef __cplusplus
20319
23069
extern "C"
20320
 
{
20321
23070
#endif
20322
 
/* We use char because int might match the return type of a gcc2
20323
 
   builtin and then its argument prototype would still apply.  */
20324
23071
char $ac_func ();
20325
23072
/* The GNU C library defines this for functions which it implements
20326
23073
    to always fail with ENOSYS.  Some functions are actually named
20327
23074
    something starting with __ and the normal name is an alias.  */
20328
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
23075
#if defined __stub_$ac_func || defined __stub___$ac_func
20329
23076
choke me
20330
 
#else
20331
 
char (*f) () = $ac_func;
20332
 
#endif
20333
 
#ifdef __cplusplus
20334
 
}
20335
23077
#endif
20336
23078
 
20337
23079
int
20338
23080
main ()
20339
23081
{
20340
 
return f != $ac_func;
 
23082
return $ac_func ();
20341
23083
  ;
20342
23084
  return 0;
20343
23085
}
20344
23086
_ACEOF
20345
23087
rm -f conftest.$ac_objext conftest$ac_exeext
20346
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20347
 
  (eval $ac_link) 2>conftest.er1
 
23088
if { (ac_try="$ac_link"
 
23089
case "(($ac_try" in
 
23090
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23091
  *) ac_try_echo=$ac_try;;
 
23092
esac
 
23093
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23094
  (eval "$ac_link") 2>conftest.er1
20348
23095
  ac_status=$?
20349
23096
  grep -v '^ *+' conftest.er1 >conftest.err
20350
23097
  rm -f conftest.er1
20351
23098
  cat conftest.err >&5
20352
23099
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353
 
  (exit $ac_status); } &&
20354
 
         { ac_try='test -z "$ac_c_werror_flag"
20355
 
                         || test ! -s conftest.err'
20356
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20357
 
  (eval $ac_try) 2>&5
20358
 
  ac_status=$?
20359
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20360
 
  (exit $ac_status); }; } &&
20361
 
         { ac_try='test -s conftest$ac_exeext'
20362
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20363
 
  (eval $ac_try) 2>&5
20364
 
  ac_status=$?
20365
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20366
 
  (exit $ac_status); }; }; then
 
23100
  (exit $ac_status); } && {
 
23101
         test -z "$ac_c_werror_flag" ||
 
23102
         test ! -s conftest.err
 
23103
       } && test -s conftest$ac_exeext &&
 
23104
       $as_test_x conftest$ac_exeext; then
20367
23105
  eval "$as_ac_var=yes"
20368
23106
else
20369
23107
  echo "$as_me: failed program was:" >&5
20370
23108
sed 's/^/| /' conftest.$ac_ext >&5
20371
23109
 
20372
 
eval "$as_ac_var=no"
 
23110
        eval "$as_ac_var=no"
20373
23111
fi
20374
 
rm -f conftest.err conftest.$ac_objext \
 
23112
 
 
23113
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20375
23114
      conftest$ac_exeext conftest.$ac_ext
20376
23115
fi
20377
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20378
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
23116
ac_res=`eval echo '${'$as_ac_var'}'`
 
23117
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
23118
echo "${ECHO_T}$ac_res" >&6; }
20379
23119
if test `eval echo '${'$as_ac_var'}'` = yes; then
20380
23120
  cat >>confdefs.h <<_ACEOF
20381
23121
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20386
23126
 
20387
23127
 
20388
23128
 
20389
 
  echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
20390
 
echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
20391
 
if test "${ac_cv_have_decl__snprintf+set}" = set; then
20392
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20393
 
else
20394
 
  cat >conftest.$ac_ext <<_ACEOF
20395
 
/* confdefs.h.  */
20396
 
_ACEOF
20397
 
cat confdefs.h >>conftest.$ac_ext
20398
 
cat >>conftest.$ac_ext <<_ACEOF
20399
 
/* end confdefs.h.  */
20400
 
#include <stdio.h>
20401
 
int
20402
 
main ()
20403
 
{
20404
 
 
20405
 
#ifndef _snprintf
20406
 
  char *p = (char *) _snprintf;
20407
 
#endif
20408
 
 
20409
 
  ;
20410
 
  return 0;
20411
 
}
20412
 
_ACEOF
20413
 
rm -f conftest.$ac_objext
20414
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20415
 
  (eval $ac_compile) 2>conftest.er1
20416
 
  ac_status=$?
20417
 
  grep -v '^ *+' conftest.er1 >conftest.err
20418
 
  rm -f conftest.er1
20419
 
  cat conftest.err >&5
20420
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421
 
  (exit $ac_status); } &&
20422
 
         { ac_try='test -z "$ac_c_werror_flag"
20423
 
                         || test ! -s conftest.err'
20424
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20425
 
  (eval $ac_try) 2>&5
20426
 
  ac_status=$?
20427
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428
 
  (exit $ac_status); }; } &&
20429
 
         { ac_try='test -s conftest.$ac_objext'
20430
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20431
 
  (eval $ac_try) 2>&5
20432
 
  ac_status=$?
20433
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434
 
  (exit $ac_status); }; }; then
20435
 
  ac_cv_have_decl__snprintf=yes
20436
 
else
20437
 
  echo "$as_me: failed program was:" >&5
20438
 
sed 's/^/| /' conftest.$ac_ext >&5
20439
 
 
20440
 
ac_cv_have_decl__snprintf=no
20441
 
fi
20442
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20443
 
fi
20444
 
echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
20445
 
echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
20446
 
  if test $ac_cv_have_decl__snprintf = yes; then
20447
 
    gt_value=1
20448
 
  else
20449
 
    gt_value=0
20450
 
  fi
20451
 
 
20452
 
cat >>confdefs.h <<_ACEOF
20453
 
#define HAVE_DECL__SNPRINTF $gt_value
20454
 
_ACEOF
20455
 
 
20456
 
 
20457
 
 
20458
 
  echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
20459
 
echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
20460
 
if test "${ac_cv_have_decl__snwprintf+set}" = set; then
20461
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20462
 
else
20463
 
  cat >conftest.$ac_ext <<_ACEOF
20464
 
/* confdefs.h.  */
20465
 
_ACEOF
20466
 
cat confdefs.h >>conftest.$ac_ext
20467
 
cat >>conftest.$ac_ext <<_ACEOF
20468
 
/* end confdefs.h.  */
20469
 
#include <stdio.h>
20470
 
int
20471
 
main ()
20472
 
{
20473
 
 
20474
 
#ifndef _snwprintf
20475
 
  char *p = (char *) _snwprintf;
20476
 
#endif
20477
 
 
20478
 
  ;
20479
 
  return 0;
20480
 
}
20481
 
_ACEOF
20482
 
rm -f conftest.$ac_objext
20483
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20484
 
  (eval $ac_compile) 2>conftest.er1
20485
 
  ac_status=$?
20486
 
  grep -v '^ *+' conftest.er1 >conftest.err
20487
 
  rm -f conftest.er1
20488
 
  cat conftest.err >&5
20489
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490
 
  (exit $ac_status); } &&
20491
 
         { ac_try='test -z "$ac_c_werror_flag"
20492
 
                         || test ! -s conftest.err'
20493
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20494
 
  (eval $ac_try) 2>&5
20495
 
  ac_status=$?
20496
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497
 
  (exit $ac_status); }; } &&
20498
 
         { ac_try='test -s conftest.$ac_objext'
20499
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20500
 
  (eval $ac_try) 2>&5
20501
 
  ac_status=$?
20502
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503
 
  (exit $ac_status); }; }; then
20504
 
  ac_cv_have_decl__snwprintf=yes
20505
 
else
20506
 
  echo "$as_me: failed program was:" >&5
20507
 
sed 's/^/| /' conftest.$ac_ext >&5
20508
 
 
20509
 
ac_cv_have_decl__snwprintf=no
20510
 
fi
20511
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20512
 
fi
20513
 
echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
20514
 
echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
20515
 
  if test $ac_cv_have_decl__snwprintf = yes; then
20516
 
    gt_value=1
20517
 
  else
20518
 
    gt_value=0
20519
 
  fi
20520
 
 
20521
 
cat >>confdefs.h <<_ACEOF
20522
 
#define HAVE_DECL__SNWPRINTF $gt_value
20523
 
_ACEOF
20524
 
 
20525
 
 
20526
 
 
20527
 
 
20528
 
  echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
20529
 
echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
 
23129
  { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
 
23130
echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
20530
23131
if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
20531
23132
  echo $ECHO_N "(cached) $ECHO_C" >&6
20532
23133
else
20550
23151
}
20551
23152
_ACEOF
20552
23153
rm -f conftest.$ac_objext
20553
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20554
 
  (eval $ac_compile) 2>conftest.er1
 
23154
if { (ac_try="$ac_compile"
 
23155
case "(($ac_try" in
 
23156
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23157
  *) ac_try_echo=$ac_try;;
 
23158
esac
 
23159
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23160
  (eval "$ac_compile") 2>conftest.er1
20555
23161
  ac_status=$?
20556
23162
  grep -v '^ *+' conftest.er1 >conftest.err
20557
23163
  rm -f conftest.er1
20558
23164
  cat conftest.err >&5
20559
23165
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560
 
  (exit $ac_status); } &&
20561
 
         { ac_try='test -z "$ac_c_werror_flag"
20562
 
                         || test ! -s conftest.err'
20563
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20564
 
  (eval $ac_try) 2>&5
20565
 
  ac_status=$?
20566
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567
 
  (exit $ac_status); }; } &&
20568
 
         { ac_try='test -s conftest.$ac_objext'
20569
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20570
 
  (eval $ac_try) 2>&5
20571
 
  ac_status=$?
20572
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573
 
  (exit $ac_status); }; }; then
 
23166
  (exit $ac_status); } && {
 
23167
         test -z "$ac_c_werror_flag" ||
 
23168
         test ! -s conftest.err
 
23169
       } && test -s conftest.$ac_objext; then
20574
23170
  ac_cv_have_decl_feof_unlocked=yes
20575
23171
else
20576
23172
  echo "$as_me: failed program was:" >&5
20577
23173
sed 's/^/| /' conftest.$ac_ext >&5
20578
23174
 
20579
 
ac_cv_have_decl_feof_unlocked=no
20580
 
fi
20581
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20582
 
fi
20583
 
echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
20584
 
echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
 
23175
        ac_cv_have_decl_feof_unlocked=no
 
23176
fi
 
23177
 
 
23178
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23179
fi
 
23180
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
 
23181
echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
20585
23182
  if test $ac_cv_have_decl_feof_unlocked = yes; then
20586
23183
    gt_value=1
20587
23184
  else
20594
23191
 
20595
23192
 
20596
23193
 
20597
 
  echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
20598
 
echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
 
23194
  { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
 
23195
echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
20599
23196
if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
20600
23197
  echo $ECHO_N "(cached) $ECHO_C" >&6
20601
23198
else
20619
23216
}
20620
23217
_ACEOF
20621
23218
rm -f conftest.$ac_objext
20622
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20623
 
  (eval $ac_compile) 2>conftest.er1
 
23219
if { (ac_try="$ac_compile"
 
23220
case "(($ac_try" in
 
23221
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23222
  *) ac_try_echo=$ac_try;;
 
23223
esac
 
23224
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23225
  (eval "$ac_compile") 2>conftest.er1
20624
23226
  ac_status=$?
20625
23227
  grep -v '^ *+' conftest.er1 >conftest.err
20626
23228
  rm -f conftest.er1
20627
23229
  cat conftest.err >&5
20628
23230
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629
 
  (exit $ac_status); } &&
20630
 
         { ac_try='test -z "$ac_c_werror_flag"
20631
 
                         || test ! -s conftest.err'
20632
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20633
 
  (eval $ac_try) 2>&5
20634
 
  ac_status=$?
20635
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636
 
  (exit $ac_status); }; } &&
20637
 
         { ac_try='test -s conftest.$ac_objext'
20638
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20639
 
  (eval $ac_try) 2>&5
20640
 
  ac_status=$?
20641
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642
 
  (exit $ac_status); }; }; then
 
23231
  (exit $ac_status); } && {
 
23232
         test -z "$ac_c_werror_flag" ||
 
23233
         test ! -s conftest.err
 
23234
       } && test -s conftest.$ac_objext; then
20643
23235
  ac_cv_have_decl_fgets_unlocked=yes
20644
23236
else
20645
23237
  echo "$as_me: failed program was:" >&5
20646
23238
sed 's/^/| /' conftest.$ac_ext >&5
20647
23239
 
20648
 
ac_cv_have_decl_fgets_unlocked=no
20649
 
fi
20650
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20651
 
fi
20652
 
echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
20653
 
echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
 
23240
        ac_cv_have_decl_fgets_unlocked=no
 
23241
fi
 
23242
 
 
23243
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23244
fi
 
23245
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
 
23246
echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
20654
23247
  if test $ac_cv_have_decl_fgets_unlocked = yes; then
20655
23248
    gt_value=1
20656
23249
  else
20663
23256
 
20664
23257
 
20665
23258
 
20666
 
  echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
20667
 
echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
20668
 
if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
20669
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20670
 
else
20671
 
  cat >conftest.$ac_ext <<_ACEOF
20672
 
/* confdefs.h.  */
20673
 
_ACEOF
20674
 
cat confdefs.h >>conftest.$ac_ext
20675
 
cat >>conftest.$ac_ext <<_ACEOF
20676
 
/* end confdefs.h.  */
20677
 
#include <stdio.h>
20678
 
int
20679
 
main ()
20680
 
{
20681
 
 
20682
 
#ifndef getc_unlocked
20683
 
  char *p = (char *) getc_unlocked;
20684
 
#endif
20685
 
 
20686
 
  ;
20687
 
  return 0;
20688
 
}
20689
 
_ACEOF
20690
 
rm -f conftest.$ac_objext
20691
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20692
 
  (eval $ac_compile) 2>conftest.er1
20693
 
  ac_status=$?
20694
 
  grep -v '^ *+' conftest.er1 >conftest.err
20695
 
  rm -f conftest.er1
20696
 
  cat conftest.err >&5
20697
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20698
 
  (exit $ac_status); } &&
20699
 
         { ac_try='test -z "$ac_c_werror_flag"
20700
 
                         || test ! -s conftest.err'
20701
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20702
 
  (eval $ac_try) 2>&5
20703
 
  ac_status=$?
20704
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705
 
  (exit $ac_status); }; } &&
20706
 
         { ac_try='test -s conftest.$ac_objext'
20707
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20708
 
  (eval $ac_try) 2>&5
20709
 
  ac_status=$?
20710
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711
 
  (exit $ac_status); }; }; then
20712
 
  ac_cv_have_decl_getc_unlocked=yes
20713
 
else
20714
 
  echo "$as_me: failed program was:" >&5
20715
 
sed 's/^/| /' conftest.$ac_ext >&5
20716
 
 
20717
 
ac_cv_have_decl_getc_unlocked=no
20718
 
fi
20719
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20720
 
fi
20721
 
echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
20722
 
echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
20723
 
  if test $ac_cv_have_decl_getc_unlocked = yes; then
20724
 
    gt_value=1
20725
 
  else
20726
 
    gt_value=0
20727
 
  fi
20728
 
 
20729
 
cat >>confdefs.h <<_ACEOF
20730
 
#define HAVE_DECL_GETC_UNLOCKED $gt_value
20731
 
_ACEOF
20732
 
 
20733
 
 
20734
 
 
20735
 
  case $gt_cv_func_printf_posix in
20736
 
    *yes) HAVE_POSIX_PRINTF=1 ;;
20737
 
    *) HAVE_POSIX_PRINTF=0 ;;
20738
 
  esac
20739
 
 
20740
 
  if test "$ac_cv_func_asprintf" = yes; then
20741
 
    HAVE_ASPRINTF=1
20742
 
  else
20743
 
    HAVE_ASPRINTF=0
20744
 
  fi
20745
 
 
20746
 
  if test "$ac_cv_func_snprintf" = yes; then
20747
 
    HAVE_SNPRINTF=1
20748
 
  else
20749
 
    HAVE_SNPRINTF=0
20750
 
  fi
20751
 
 
20752
 
  if test "$ac_cv_func_wprintf" = yes; then
20753
 
    HAVE_WPRINTF=1
20754
 
  else
20755
 
    HAVE_WPRINTF=0
20756
 
  fi
20757
 
 
20758
 
 
20759
23259
 
20760
23260
 
20761
23261
 
20786
23286
  done
20787
23287
 
20788
23288
 
20789
 
  echo "$as_me:$LINENO: checking for iconv" >&5
20790
 
echo $ECHO_N "checking for iconv... $ECHO_C" >&6
 
23289
  { echo "$as_me:$LINENO: checking for iconv" >&5
 
23290
echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
20791
23291
if test "${am_cv_func_iconv+set}" = set; then
20792
23292
  echo $ECHO_N "(cached) $ECHO_C" >&6
20793
23293
else
20813
23313
}
20814
23314
_ACEOF
20815
23315
rm -f conftest.$ac_objext conftest$ac_exeext
20816
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20817
 
  (eval $ac_link) 2>conftest.er1
 
23316
if { (ac_try="$ac_link"
 
23317
case "(($ac_try" in
 
23318
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23319
  *) ac_try_echo=$ac_try;;
 
23320
esac
 
23321
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23322
  (eval "$ac_link") 2>conftest.er1
20818
23323
  ac_status=$?
20819
23324
  grep -v '^ *+' conftest.er1 >conftest.err
20820
23325
  rm -f conftest.er1
20821
23326
  cat conftest.err >&5
20822
23327
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823
 
  (exit $ac_status); } &&
20824
 
         { ac_try='test -z "$ac_c_werror_flag"
20825
 
                         || test ! -s conftest.err'
20826
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20827
 
  (eval $ac_try) 2>&5
20828
 
  ac_status=$?
20829
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830
 
  (exit $ac_status); }; } &&
20831
 
         { ac_try='test -s conftest$ac_exeext'
20832
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20833
 
  (eval $ac_try) 2>&5
20834
 
  ac_status=$?
20835
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836
 
  (exit $ac_status); }; }; then
 
23328
  (exit $ac_status); } && {
 
23329
         test -z "$ac_c_werror_flag" ||
 
23330
         test ! -s conftest.err
 
23331
       } && test -s conftest$ac_exeext &&
 
23332
       $as_test_x conftest$ac_exeext; then
20837
23333
  am_cv_func_iconv=yes
20838
23334
else
20839
23335
  echo "$as_me: failed program was:" >&5
20840
23336
sed 's/^/| /' conftest.$ac_ext >&5
20841
23337
 
 
23338
 
20842
23339
fi
20843
 
rm -f conftest.err conftest.$ac_objext \
 
23340
 
 
23341
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20844
23342
      conftest$ac_exeext conftest.$ac_ext
20845
23343
    if test "$am_cv_func_iconv" != yes; then
20846
23344
      am_save_LIBS="$LIBS"
20864
23362
}
20865
23363
_ACEOF
20866
23364
rm -f conftest.$ac_objext conftest$ac_exeext
20867
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20868
 
  (eval $ac_link) 2>conftest.er1
 
23365
if { (ac_try="$ac_link"
 
23366
case "(($ac_try" in
 
23367
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23368
  *) ac_try_echo=$ac_try;;
 
23369
esac
 
23370
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23371
  (eval "$ac_link") 2>conftest.er1
20869
23372
  ac_status=$?
20870
23373
  grep -v '^ *+' conftest.er1 >conftest.err
20871
23374
  rm -f conftest.er1
20872
23375
  cat conftest.err >&5
20873
23376
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874
 
  (exit $ac_status); } &&
20875
 
         { ac_try='test -z "$ac_c_werror_flag"
20876
 
                         || test ! -s conftest.err'
20877
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20878
 
  (eval $ac_try) 2>&5
20879
 
  ac_status=$?
20880
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881
 
  (exit $ac_status); }; } &&
20882
 
         { ac_try='test -s conftest$ac_exeext'
20883
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20884
 
  (eval $ac_try) 2>&5
20885
 
  ac_status=$?
20886
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887
 
  (exit $ac_status); }; }; then
 
23377
  (exit $ac_status); } && {
 
23378
         test -z "$ac_c_werror_flag" ||
 
23379
         test ! -s conftest.err
 
23380
       } && test -s conftest$ac_exeext &&
 
23381
       $as_test_x conftest$ac_exeext; then
20888
23382
  am_cv_lib_iconv=yes
20889
23383
        am_cv_func_iconv=yes
20890
23384
else
20891
23385
  echo "$as_me: failed program was:" >&5
20892
23386
sed 's/^/| /' conftest.$ac_ext >&5
20893
23387
 
 
23388
 
20894
23389
fi
20895
 
rm -f conftest.err conftest.$ac_objext \
 
23390
 
 
23391
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20896
23392
      conftest$ac_exeext conftest.$ac_ext
20897
23393
      LIBS="$am_save_LIBS"
20898
23394
    fi
20899
23395
 
20900
23396
fi
20901
 
echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
20902
 
echo "${ECHO_T}$am_cv_func_iconv" >&6
 
23397
{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
 
23398
echo "${ECHO_T}$am_cv_func_iconv" >&6; }
20903
23399
  if test "$am_cv_func_iconv" = yes; then
 
23400
    { echo "$as_me:$LINENO: checking for working iconv" >&5
 
23401
echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
 
23402
if test "${am_cv_func_iconv_works+set}" = set; then
 
23403
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23404
else
 
23405
 
 
23406
            am_save_LIBS="$LIBS"
 
23407
      if test $am_cv_lib_iconv = yes; then
 
23408
        LIBS="$LIBS $LIBICONV"
 
23409
      fi
 
23410
      if test "$cross_compiling" = yes; then
 
23411
  case "$host_os" in
 
23412
           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
 
23413
           *)            am_cv_func_iconv_works="guessing yes" ;;
 
23414
         esac
 
23415
else
 
23416
  cat >conftest.$ac_ext <<_ACEOF
 
23417
/* confdefs.h.  */
 
23418
_ACEOF
 
23419
cat confdefs.h >>conftest.$ac_ext
 
23420
cat >>conftest.$ac_ext <<_ACEOF
 
23421
/* end confdefs.h.  */
 
23422
 
 
23423
#include <iconv.h>
 
23424
#include <string.h>
 
23425
int main ()
 
23426
{
 
23427
  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
 
23428
     returns.  */
 
23429
  {
 
23430
    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
 
23431
    if (cd_utf8_to_88591 != (iconv_t)(-1))
 
23432
      {
 
23433
        static const char input[] = "\342\202\254"; /* EURO SIGN */
 
23434
        char buf[10];
 
23435
        const char *inptr = input;
 
23436
        size_t inbytesleft = strlen (input);
 
23437
        char *outptr = buf;
 
23438
        size_t outbytesleft = sizeof (buf);
 
23439
        size_t res = iconv (cd_utf8_to_88591,
 
23440
                            (char **) &inptr, &inbytesleft,
 
23441
                            &outptr, &outbytesleft);
 
23442
        if (res == 0)
 
23443
          return 1;
 
23444
      }
 
23445
  }
 
23446
#if 0 /* This bug could be worked around by the caller.  */
 
23447
  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
 
23448
  {
 
23449
    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
 
23450
    if (cd_88591_to_utf8 != (iconv_t)(-1))
 
23451
      {
 
23452
        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
 
23453
        char buf[50];
 
23454
        const char *inptr = input;
 
23455
        size_t inbytesleft = strlen (input);
 
23456
        char *outptr = buf;
 
23457
        size_t outbytesleft = sizeof (buf);
 
23458
        size_t res = iconv (cd_88591_to_utf8,
 
23459
                            (char **) &inptr, &inbytesleft,
 
23460
                            &outptr, &outbytesleft);
 
23461
        if ((int)res > 0)
 
23462
          return 1;
 
23463
      }
 
23464
  }
 
23465
#endif
 
23466
  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
 
23467
     provided.  */
 
23468
  if (/* Try standardized names.  */
 
23469
      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
 
23470
      /* Try IRIX, OSF/1 names.  */
 
23471
      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
 
23472
      /* Try AIX names.  */
 
23473
      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
 
23474
      /* Try HP-UX names.  */
 
23475
      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
 
23476
    return 1;
 
23477
  return 0;
 
23478
}
 
23479
_ACEOF
 
23480
rm -f conftest$ac_exeext
 
23481
if { (ac_try="$ac_link"
 
23482
case "(($ac_try" in
 
23483
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23484
  *) ac_try_echo=$ac_try;;
 
23485
esac
 
23486
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23487
  (eval "$ac_link") 2>&5
 
23488
  ac_status=$?
 
23489
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23490
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
23491
  { (case "(($ac_try" in
 
23492
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23493
  *) ac_try_echo=$ac_try;;
 
23494
esac
 
23495
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23496
  (eval "$ac_try") 2>&5
 
23497
  ac_status=$?
 
23498
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23499
  (exit $ac_status); }; }; then
 
23500
  am_cv_func_iconv_works=yes
 
23501
else
 
23502
  echo "$as_me: program exited with status $ac_status" >&5
 
23503
echo "$as_me: failed program was:" >&5
 
23504
sed 's/^/| /' conftest.$ac_ext >&5
 
23505
 
 
23506
( exit $ac_status )
 
23507
am_cv_func_iconv_works=no
 
23508
fi
 
23509
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
23510
fi
 
23511
 
 
23512
 
 
23513
      LIBS="$am_save_LIBS"
 
23514
 
 
23515
fi
 
23516
{ echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
 
23517
echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
 
23518
    case "$am_cv_func_iconv_works" in
 
23519
      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
 
23520
      *)   am_func_iconv=yes ;;
 
23521
    esac
 
23522
  else
 
23523
    am_func_iconv=no am_cv_lib_iconv=no
 
23524
  fi
 
23525
  if test "$am_func_iconv" = yes; then
20904
23526
 
20905
23527
cat >>confdefs.h <<\_ACEOF
20906
23528
#define HAVE_ICONV 1
20908
23530
 
20909
23531
  fi
20910
23532
  if test "$am_cv_lib_iconv" = yes; then
20911
 
    echo "$as_me:$LINENO: checking how to link with libiconv" >&5
20912
 
echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
20913
 
    echo "$as_me:$LINENO: result: $LIBICONV" >&5
20914
 
echo "${ECHO_T}$LIBICONV" >&6
 
23533
    { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
 
23534
echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
 
23535
    { echo "$as_me:$LINENO: result: $LIBICONV" >&5
 
23536
echo "${ECHO_T}$LIBICONV" >&6; }
20915
23537
  else
20916
23538
            CPPFLAGS="$am_save_CPPFLAGS"
20917
23539
    LIBICONV=
20921
23543
 
20922
23544
 
20923
23545
  if test "$am_cv_func_iconv" = yes; then
20924
 
    echo "$as_me:$LINENO: checking for iconv declaration" >&5
20925
 
echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
 
23546
    { echo "$as_me:$LINENO: checking for iconv declaration" >&5
 
23547
echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
20926
23548
    if test "${am_cv_proto_iconv+set}" = set; then
20927
23549
  echo $ECHO_N "(cached) $ECHO_C" >&6
20928
23550
else
20955
23577
}
20956
23578
_ACEOF
20957
23579
rm -f conftest.$ac_objext
20958
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20959
 
  (eval $ac_compile) 2>conftest.er1
 
23580
if { (ac_try="$ac_compile"
 
23581
case "(($ac_try" in
 
23582
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23583
  *) ac_try_echo=$ac_try;;
 
23584
esac
 
23585
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23586
  (eval "$ac_compile") 2>conftest.er1
20960
23587
  ac_status=$?
20961
23588
  grep -v '^ *+' conftest.er1 >conftest.err
20962
23589
  rm -f conftest.er1
20963
23590
  cat conftest.err >&5
20964
23591
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965
 
  (exit $ac_status); } &&
20966
 
         { ac_try='test -z "$ac_c_werror_flag"
20967
 
                         || test ! -s conftest.err'
20968
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20969
 
  (eval $ac_try) 2>&5
20970
 
  ac_status=$?
20971
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20972
 
  (exit $ac_status); }; } &&
20973
 
         { ac_try='test -s conftest.$ac_objext'
20974
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20975
 
  (eval $ac_try) 2>&5
20976
 
  ac_status=$?
20977
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978
 
  (exit $ac_status); }; }; then
 
23592
  (exit $ac_status); } && {
 
23593
         test -z "$ac_c_werror_flag" ||
 
23594
         test ! -s conftest.err
 
23595
       } && test -s conftest.$ac_objext; then
20979
23596
  am_cv_proto_iconv_arg1=""
20980
23597
else
20981
23598
  echo "$as_me: failed program was:" >&5
20982
23599
sed 's/^/| /' conftest.$ac_ext >&5
20983
23600
 
20984
 
am_cv_proto_iconv_arg1="const"
 
23601
        am_cv_proto_iconv_arg1="const"
20985
23602
fi
20986
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23603
 
 
23604
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20987
23605
      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
20988
23606
fi
20989
23607
 
20990
23608
    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20991
 
    echo "$as_me:$LINENO: result: ${ac_t:-
 
23609
    { echo "$as_me:$LINENO: result: ${ac_t:-
20992
23610
         }$am_cv_proto_iconv" >&5
20993
23611
echo "${ECHO_T}${ac_t:-
20994
 
         }$am_cv_proto_iconv" >&6
 
23612
         }$am_cv_proto_iconv" >&6; }
20995
23613
 
20996
23614
cat >>confdefs.h <<_ACEOF
20997
23615
#define ICONV_CONST $am_cv_proto_iconv_arg1
21000
23618
  fi
21001
23619
 
21002
23620
 
21003
 
  echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
21004
 
echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
21005
 
if test "${am_cv_langinfo_codeset+set}" = set; then
 
23621
      { echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5
 
23622
echo $ECHO_N "checking for NL_LOCALE_NAME macro... $ECHO_C" >&6; }
 
23623
if test "${gt_cv_nl_locale_name+set}" = set; then
21006
23624
  echo $ECHO_N "(cached) $ECHO_C" >&6
21007
23625
else
21008
23626
  cat >conftest.$ac_ext <<_ACEOF
21012
23630
cat >>conftest.$ac_ext <<_ACEOF
21013
23631
/* end confdefs.h.  */
21014
23632
#include <langinfo.h>
21015
 
int
21016
 
main ()
21017
 
{
21018
 
char* cs = nl_langinfo(CODESET);
21019
 
  ;
21020
 
  return 0;
21021
 
}
21022
 
_ACEOF
21023
 
rm -f conftest.$ac_objext conftest$ac_exeext
21024
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21025
 
  (eval $ac_link) 2>conftest.er1
21026
 
  ac_status=$?
21027
 
  grep -v '^ *+' conftest.er1 >conftest.err
21028
 
  rm -f conftest.er1
21029
 
  cat conftest.err >&5
21030
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031
 
  (exit $ac_status); } &&
21032
 
         { ac_try='test -z "$ac_c_werror_flag"
21033
 
                         || test ! -s conftest.err'
21034
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21035
 
  (eval $ac_try) 2>&5
21036
 
  ac_status=$?
21037
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038
 
  (exit $ac_status); }; } &&
21039
 
         { ac_try='test -s conftest$ac_exeext'
21040
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21041
 
  (eval $ac_try) 2>&5
21042
 
  ac_status=$?
21043
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044
 
  (exit $ac_status); }; }; then
21045
 
  am_cv_langinfo_codeset=yes
21046
 
else
21047
 
  echo "$as_me: failed program was:" >&5
21048
 
sed 's/^/| /' conftest.$ac_ext >&5
21049
 
 
21050
 
am_cv_langinfo_codeset=no
21051
 
fi
21052
 
rm -f conftest.err conftest.$ac_objext \
21053
 
      conftest$ac_exeext conftest.$ac_ext
21054
 
 
21055
 
fi
21056
 
echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
21057
 
echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
21058
 
  if test $am_cv_langinfo_codeset = yes; then
21059
 
 
21060
 
cat >>confdefs.h <<\_ACEOF
21061
 
#define HAVE_LANGINFO_CODESET 1
21062
 
_ACEOF
21063
 
 
21064
 
  fi
21065
 
 
21066
 
  if test $ac_cv_header_locale_h = yes; then
21067
 
 
21068
 
  echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
21069
 
echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
21070
 
if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
21071
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21072
 
else
21073
 
  cat >conftest.$ac_ext <<_ACEOF
21074
 
/* confdefs.h.  */
21075
 
_ACEOF
21076
 
cat confdefs.h >>conftest.$ac_ext
21077
 
cat >>conftest.$ac_ext <<_ACEOF
21078
 
/* end confdefs.h.  */
21079
23633
#include <locale.h>
21080
23634
int
21081
23635
main ()
21082
23636
{
21083
 
return LC_MESSAGES
 
23637
char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
 
23638
       return !cs;
 
23639
 
21084
23640
  ;
21085
23641
  return 0;
21086
23642
}
21087
23643
_ACEOF
21088
23644
rm -f conftest.$ac_objext conftest$ac_exeext
21089
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21090
 
  (eval $ac_link) 2>conftest.er1
 
23645
if { (ac_try="$ac_link"
 
23646
case "(($ac_try" in
 
23647
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23648
  *) ac_try_echo=$ac_try;;
 
23649
esac
 
23650
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23651
  (eval "$ac_link") 2>conftest.er1
21091
23652
  ac_status=$?
21092
23653
  grep -v '^ *+' conftest.er1 >conftest.err
21093
23654
  rm -f conftest.er1
21094
23655
  cat conftest.err >&5
21095
23656
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096
 
  (exit $ac_status); } &&
21097
 
         { ac_try='test -z "$ac_c_werror_flag"
21098
 
                         || test ! -s conftest.err'
21099
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21100
 
  (eval $ac_try) 2>&5
21101
 
  ac_status=$?
21102
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103
 
  (exit $ac_status); }; } &&
21104
 
         { ac_try='test -s conftest$ac_exeext'
21105
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21106
 
  (eval $ac_try) 2>&5
21107
 
  ac_status=$?
21108
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109
 
  (exit $ac_status); }; }; then
21110
 
  gt_cv_val_LC_MESSAGES=yes
 
23657
  (exit $ac_status); } && {
 
23658
         test -z "$ac_c_werror_flag" ||
 
23659
         test ! -s conftest.err
 
23660
       } && test -s conftest$ac_exeext &&
 
23661
       $as_test_x conftest$ac_exeext; then
 
23662
  gt_cv_nl_locale_name=yes
21111
23663
else
21112
23664
  echo "$as_me: failed program was:" >&5
21113
23665
sed 's/^/| /' conftest.$ac_ext >&5
21114
23666
 
21115
 
gt_cv_val_LC_MESSAGES=no
 
23667
        gt_cv_nl_locale_name=no
21116
23668
fi
21117
 
rm -f conftest.err conftest.$ac_objext \
 
23669
 
 
23670
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21118
23671
      conftest$ac_exeext conftest.$ac_ext
 
23672
 
21119
23673
fi
21120
 
echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
21121
 
echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6
21122
 
  if test $gt_cv_val_LC_MESSAGES = yes; then
 
23674
{ echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5
 
23675
echo "${ECHO_T}$gt_cv_nl_locale_name" >&6; }
 
23676
  if test $gt_cv_nl_locale_name = yes; then
21123
23677
 
21124
23678
cat >>confdefs.h <<\_ACEOF
21125
 
#define HAVE_LC_MESSAGES 1
 
23679
#define HAVE_NL_LOCALE_NAME 1
21126
23680
_ACEOF
21127
23681
 
21128
23682
  fi
21129
23683
 
21130
 
  fi
21131
 
 
21132
 
  if test -n "$INTL_MACOSX_LIBS"; then
21133
 
    CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21134
 
  fi
21135
 
 
21136
23684
                      for ac_prog in bison
21137
23685
do
21138
23686
  # Extract the first word of "$ac_prog", so it can be a program name with args.
21139
23687
set dummy $ac_prog; ac_word=$2
21140
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
21141
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
23688
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
23689
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21142
23690
if test "${ac_cv_prog_INTLBISON+set}" = set; then
21143
23691
  echo $ECHO_N "(cached) $ECHO_C" >&6
21144
23692
else
21151
23699
  IFS=$as_save_IFS
21152
23700
  test -z "$as_dir" && as_dir=.
21153
23701
  for ac_exec_ext in '' $ac_executable_extensions; do
21154
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
23702
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21155
23703
    ac_cv_prog_INTLBISON="$ac_prog"
21156
23704
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21157
23705
    break 2
21158
23706
  fi
21159
23707
done
21160
23708
done
 
23709
IFS=$as_save_IFS
21161
23710
 
21162
23711
fi
21163
23712
fi
21164
23713
INTLBISON=$ac_cv_prog_INTLBISON
21165
23714
if test -n "$INTLBISON"; then
21166
 
  echo "$as_me:$LINENO: result: $INTLBISON" >&5
21167
 
echo "${ECHO_T}$INTLBISON" >&6
 
23715
  { echo "$as_me:$LINENO: result: $INTLBISON" >&5
 
23716
echo "${ECHO_T}$INTLBISON" >&6; }
21168
23717
else
21169
 
  echo "$as_me:$LINENO: result: no" >&5
21170
 
echo "${ECHO_T}no" >&6
 
23718
  { echo "$as_me:$LINENO: result: no" >&5
 
23719
echo "${ECHO_T}no" >&6; }
21171
23720
fi
21172
23721
 
 
23722
 
21173
23723
  test -n "$INTLBISON" && break
21174
23724
done
21175
23725
 
21176
23726
  if test -z "$INTLBISON"; then
21177
23727
    ac_verc_fail=yes
21178
23728
  else
21179
 
        echo "$as_me:$LINENO: checking version of bison" >&5
21180
 
echo $ECHO_N "checking version of bison... $ECHO_C" >&6
 
23729
        { echo "$as_me:$LINENO: checking version of bison" >&5
 
23730
echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
21181
23731
    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
21182
23732
    case $ac_prog_version in
21183
23733
      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
21185
23735
         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
21186
23736
      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
21187
23737
    esac
21188
 
    echo "$as_me:$LINENO: result: $ac_prog_version" >&5
21189
 
echo "${ECHO_T}$ac_prog_version" >&6
 
23738
    { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
 
23739
echo "${ECHO_T}$ac_prog_version" >&6; }
21190
23740
  fi
21191
23741
  if test $ac_verc_fail = yes; then
21192
23742
    INTLBISON=:
21193
23743
  fi
21194
23744
 
21195
23745
 
21196
 
 
21197
 
 
21198
 
 
21199
 
 
21200
 
 
21201
 
 
21202
 
 
21203
 
 
21204
 
 
21205
 
 
21206
 
 
21207
 
 
21208
 
 
21209
 
 
21210
 
    echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
21211
 
echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
21212
 
if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
21213
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21214
 
else
21215
 
  gt_save_CPPFLAGS="$CPPFLAGS"
21216
 
     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21217
 
     gt_save_LIBS="$LIBS"
21218
 
     LIBS="$LIBS -framework CoreFoundation"
21219
 
     cat >conftest.$ac_ext <<_ACEOF
21220
 
/* confdefs.h.  */
21221
 
_ACEOF
21222
 
cat confdefs.h >>conftest.$ac_ext
21223
 
cat >>conftest.$ac_ext <<_ACEOF
21224
 
/* end confdefs.h.  */
21225
 
#include <CFPreferences.h>
21226
 
int
21227
 
main ()
21228
 
{
21229
 
CFPreferencesCopyAppValue(NULL, NULL)
21230
 
  ;
21231
 
  return 0;
21232
 
}
21233
 
_ACEOF
21234
 
rm -f conftest.$ac_objext conftest$ac_exeext
21235
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21236
 
  (eval $ac_link) 2>conftest.er1
21237
 
  ac_status=$?
21238
 
  grep -v '^ *+' conftest.er1 >conftest.err
21239
 
  rm -f conftest.er1
21240
 
  cat conftest.err >&5
21241
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242
 
  (exit $ac_status); } &&
21243
 
         { ac_try='test -z "$ac_c_werror_flag"
21244
 
                         || test ! -s conftest.err'
21245
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21246
 
  (eval $ac_try) 2>&5
21247
 
  ac_status=$?
21248
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21249
 
  (exit $ac_status); }; } &&
21250
 
         { ac_try='test -s conftest$ac_exeext'
21251
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21252
 
  (eval $ac_try) 2>&5
21253
 
  ac_status=$?
21254
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21255
 
  (exit $ac_status); }; }; then
21256
 
  gt_cv_func_CFPreferencesCopyAppValue=yes
21257
 
else
21258
 
  echo "$as_me: failed program was:" >&5
21259
 
sed 's/^/| /' conftest.$ac_ext >&5
21260
 
 
21261
 
gt_cv_func_CFPreferencesCopyAppValue=no
21262
 
fi
21263
 
rm -f conftest.err conftest.$ac_objext \
21264
 
      conftest$ac_exeext conftest.$ac_ext
21265
 
     CPPFLAGS="$gt_save_CPPFLAGS"
21266
 
     LIBS="$gt_save_LIBS"
21267
 
fi
21268
 
echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
21269
 
echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
21270
 
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
21271
 
 
21272
 
cat >>confdefs.h <<\_ACEOF
21273
 
#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
21274
 
_ACEOF
21275
 
 
21276
 
  fi
21277
 
    echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
21278
 
echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
21279
 
if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
21280
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21281
 
else
21282
 
  gt_save_CPPFLAGS="$CPPFLAGS"
21283
 
     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21284
 
     gt_save_LIBS="$LIBS"
21285
 
     LIBS="$LIBS -framework CoreFoundation"
21286
 
     cat >conftest.$ac_ext <<_ACEOF
21287
 
/* confdefs.h.  */
21288
 
_ACEOF
21289
 
cat confdefs.h >>conftest.$ac_ext
21290
 
cat >>conftest.$ac_ext <<_ACEOF
21291
 
/* end confdefs.h.  */
21292
 
#include <CFLocale.h>
21293
 
int
21294
 
main ()
21295
 
{
21296
 
CFLocaleCopyCurrent();
21297
 
  ;
21298
 
  return 0;
21299
 
}
21300
 
_ACEOF
21301
 
rm -f conftest.$ac_objext conftest$ac_exeext
21302
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21303
 
  (eval $ac_link) 2>conftest.er1
21304
 
  ac_status=$?
21305
 
  grep -v '^ *+' conftest.er1 >conftest.err
21306
 
  rm -f conftest.er1
21307
 
  cat conftest.err >&5
21308
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21309
 
  (exit $ac_status); } &&
21310
 
         { ac_try='test -z "$ac_c_werror_flag"
21311
 
                         || test ! -s conftest.err'
21312
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21313
 
  (eval $ac_try) 2>&5
21314
 
  ac_status=$?
21315
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316
 
  (exit $ac_status); }; } &&
21317
 
         { ac_try='test -s conftest$ac_exeext'
21318
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21319
 
  (eval $ac_try) 2>&5
21320
 
  ac_status=$?
21321
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322
 
  (exit $ac_status); }; }; then
21323
 
  gt_cv_func_CFLocaleCopyCurrent=yes
21324
 
else
21325
 
  echo "$as_me: failed program was:" >&5
21326
 
sed 's/^/| /' conftest.$ac_ext >&5
21327
 
 
21328
 
gt_cv_func_CFLocaleCopyCurrent=no
21329
 
fi
21330
 
rm -f conftest.err conftest.$ac_objext \
21331
 
      conftest$ac_exeext conftest.$ac_ext
21332
 
     CPPFLAGS="$gt_save_CPPFLAGS"
21333
 
     LIBS="$gt_save_LIBS"
21334
 
fi
21335
 
echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
21336
 
echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
21337
 
  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21338
 
 
21339
 
cat >>confdefs.h <<\_ACEOF
21340
 
#define HAVE_CFLOCALECOPYCURRENT 1
21341
 
_ACEOF
21342
 
 
21343
 
  fi
21344
 
  INTL_MACOSX_LIBS=
21345
 
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21346
 
    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
21347
 
  fi
21348
 
 
21349
 
 
21350
 
 
21351
 
 
21352
 
  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
21353
 
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
21354
 
    # Check whether --enable-nls or --disable-nls was given.
21355
 
if test "${enable_nls+set}" = set; then
21356
 
  enableval="$enable_nls"
21357
 
  USE_NLS=$enableval
21358
 
else
21359
 
  USE_NLS=yes
21360
 
fi;
21361
 
  echo "$as_me:$LINENO: result: $USE_NLS" >&5
21362
 
echo "${ECHO_T}$USE_NLS" >&6
 
23746
  { echo "$as_me:$LINENO: checking for long long int" >&5
 
23747
echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
 
23748
if test "${ac_cv_type_long_long_int+set}" = set; then
 
23749
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23750
else
 
23751
  cat >conftest.$ac_ext <<_ACEOF
 
23752
 
 
23753
  /* confdefs.h.  */
 
23754
_ACEOF
 
23755
cat confdefs.h >>conftest.$ac_ext
 
23756
cat >>conftest.$ac_ext <<_ACEOF
 
23757
/* end confdefs.h.  */
 
23758
/* Test preprocessor.  */
 
23759
      #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
 
23760
        error in preprocessor;
 
23761
      #endif
 
23762
      #if ! (18446744073709551615ULL <= -1ull)
 
23763
        error in preprocessor;
 
23764
      #endif
 
23765
      /* Test literals.  */
 
23766
      long long int ll = 9223372036854775807ll;
 
23767
      long long int nll = -9223372036854775807LL;
 
23768
      unsigned long long int ull = 18446744073709551615ULL;
 
23769
      /* Test constant expressions.   */
 
23770
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
 
23771
                     ? 1 : -1)];
 
23772
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
 
23773
                     ? 1 : -1)];
 
23774
      int i = 63;
 
23775
int
 
23776
main ()
 
23777
{
 
23778
/* Test availability of runtime routines for shift and division.  */
 
23779
      long long int llmax = 9223372036854775807ll;
 
23780
      unsigned long long int ullmax = 18446744073709551615ull;
 
23781
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
 
23782
              | (llmax / ll) | (llmax % ll)
 
23783
              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
 
23784
              | (ullmax / ull) | (ullmax % ull));
 
23785
  ;
 
23786
  return 0;
 
23787
}
 
23788
 
 
23789
_ACEOF
 
23790
rm -f conftest.$ac_objext conftest$ac_exeext
 
23791
if { (ac_try="$ac_link"
 
23792
case "(($ac_try" in
 
23793
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23794
  *) ac_try_echo=$ac_try;;
 
23795
esac
 
23796
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23797
  (eval "$ac_link") 2>conftest.er1
 
23798
  ac_status=$?
 
23799
  grep -v '^ *+' conftest.er1 >conftest.err
 
23800
  rm -f conftest.er1
 
23801
  cat conftest.err >&5
 
23802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23803
  (exit $ac_status); } && {
 
23804
         test -z "$ac_c_werror_flag" ||
 
23805
         test ! -s conftest.err
 
23806
       } && test -s conftest$ac_exeext &&
 
23807
       $as_test_x conftest$ac_exeext; then
 
23808
                        if test "$cross_compiling" = yes; then
 
23809
  ac_cv_type_long_long_int=yes
 
23810
else
 
23811
  cat >conftest.$ac_ext <<_ACEOF
 
23812
/* confdefs.h.  */
 
23813
_ACEOF
 
23814
cat confdefs.h >>conftest.$ac_ext
 
23815
cat >>conftest.$ac_ext <<_ACEOF
 
23816
/* end confdefs.h.  */
 
23817
#include <limits.h>
 
23818
               #ifndef LLONG_MAX
 
23819
               # define HALF \
 
23820
                        (1LL << (sizeof (long long int) * CHAR_BIT - 2))
 
23821
               # define LLONG_MAX (HALF - 1 + HALF)
 
23822
               #endif
 
23823
int
 
23824
main ()
 
23825
{
 
23826
long long int n = 1;
 
23827
               int i;
 
23828
               for (i = 0; ; i++)
 
23829
                 {
 
23830
                   long long int m = n << i;
 
23831
                   if (m >> i != n)
 
23832
                     return 1;
 
23833
                   if (LLONG_MAX / 2 < m)
 
23834
                     break;
 
23835
                 }
 
23836
               return 0;
 
23837
  ;
 
23838
  return 0;
 
23839
}
 
23840
_ACEOF
 
23841
rm -f conftest$ac_exeext
 
23842
if { (ac_try="$ac_link"
 
23843
case "(($ac_try" in
 
23844
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23845
  *) ac_try_echo=$ac_try;;
 
23846
esac
 
23847
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23848
  (eval "$ac_link") 2>&5
 
23849
  ac_status=$?
 
23850
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23851
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
23852
  { (case "(($ac_try" in
 
23853
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23854
  *) ac_try_echo=$ac_try;;
 
23855
esac
 
23856
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23857
  (eval "$ac_try") 2>&5
 
23858
  ac_status=$?
 
23859
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23860
  (exit $ac_status); }; }; then
 
23861
  ac_cv_type_long_long_int=yes
 
23862
else
 
23863
  echo "$as_me: program exited with status $ac_status" >&5
 
23864
echo "$as_me: failed program was:" >&5
 
23865
sed 's/^/| /' conftest.$ac_ext >&5
 
23866
 
 
23867
( exit $ac_status )
 
23868
ac_cv_type_long_long_int=no
 
23869
fi
 
23870
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
23871
fi
 
23872
 
 
23873
 
 
23874
else
 
23875
  echo "$as_me: failed program was:" >&5
 
23876
sed 's/^/| /' conftest.$ac_ext >&5
 
23877
 
 
23878
        ac_cv_type_long_long_int=no
 
23879
fi
 
23880
 
 
23881
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23882
      conftest$ac_exeext conftest.$ac_ext
 
23883
fi
 
23884
{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
 
23885
echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
 
23886
  if test $ac_cv_type_long_long_int = yes; then
 
23887
 
 
23888
cat >>confdefs.h <<\_ACEOF
 
23889
#define HAVE_LONG_LONG_INT 1
 
23890
_ACEOF
 
23891
 
 
23892
  fi
 
23893
 
 
23894
 
 
23895
  { echo "$as_me:$LINENO: checking for wchar_t" >&5
 
23896
echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
 
23897
if test "${gt_cv_c_wchar_t+set}" = set; then
 
23898
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23899
else
 
23900
  cat >conftest.$ac_ext <<_ACEOF
 
23901
/* confdefs.h.  */
 
23902
_ACEOF
 
23903
cat confdefs.h >>conftest.$ac_ext
 
23904
cat >>conftest.$ac_ext <<_ACEOF
 
23905
/* end confdefs.h.  */
 
23906
#include <stddef.h>
 
23907
       wchar_t foo = (wchar_t)'\0';
 
23908
int
 
23909
main ()
 
23910
{
 
23911
 
 
23912
  ;
 
23913
  return 0;
 
23914
}
 
23915
_ACEOF
 
23916
rm -f conftest.$ac_objext
 
23917
if { (ac_try="$ac_compile"
 
23918
case "(($ac_try" in
 
23919
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23920
  *) ac_try_echo=$ac_try;;
 
23921
esac
 
23922
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23923
  (eval "$ac_compile") 2>conftest.er1
 
23924
  ac_status=$?
 
23925
  grep -v '^ *+' conftest.er1 >conftest.err
 
23926
  rm -f conftest.er1
 
23927
  cat conftest.err >&5
 
23928
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23929
  (exit $ac_status); } && {
 
23930
         test -z "$ac_c_werror_flag" ||
 
23931
         test ! -s conftest.err
 
23932
       } && test -s conftest.$ac_objext; then
 
23933
  gt_cv_c_wchar_t=yes
 
23934
else
 
23935
  echo "$as_me: failed program was:" >&5
 
23936
sed 's/^/| /' conftest.$ac_ext >&5
 
23937
 
 
23938
        gt_cv_c_wchar_t=no
 
23939
fi
 
23940
 
 
23941
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23942
fi
 
23943
{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
 
23944
echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
 
23945
  if test $gt_cv_c_wchar_t = yes; then
 
23946
 
 
23947
cat >>confdefs.h <<\_ACEOF
 
23948
#define HAVE_WCHAR_T 1
 
23949
_ACEOF
 
23950
 
 
23951
  fi
 
23952
 
 
23953
 
 
23954
  { echo "$as_me:$LINENO: checking for wint_t" >&5
 
23955
echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
 
23956
if test "${gt_cv_c_wint_t+set}" = set; then
 
23957
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23958
else
 
23959
  cat >conftest.$ac_ext <<_ACEOF
 
23960
/* confdefs.h.  */
 
23961
_ACEOF
 
23962
cat confdefs.h >>conftest.$ac_ext
 
23963
cat >>conftest.$ac_ext <<_ACEOF
 
23964
/* end confdefs.h.  */
 
23965
 
 
23966
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
 
23967
   <wchar.h>.
 
23968
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
 
23969
   before <wchar.h>.  */
 
23970
#include <stddef.h>
 
23971
#include <stdio.h>
 
23972
#include <time.h>
 
23973
#include <wchar.h>
 
23974
       wint_t foo = (wchar_t)'\0';
 
23975
int
 
23976
main ()
 
23977
{
 
23978
 
 
23979
  ;
 
23980
  return 0;
 
23981
}
 
23982
_ACEOF
 
23983
rm -f conftest.$ac_objext
 
23984
if { (ac_try="$ac_compile"
 
23985
case "(($ac_try" in
 
23986
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23987
  *) ac_try_echo=$ac_try;;
 
23988
esac
 
23989
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23990
  (eval "$ac_compile") 2>conftest.er1
 
23991
  ac_status=$?
 
23992
  grep -v '^ *+' conftest.er1 >conftest.err
 
23993
  rm -f conftest.er1
 
23994
  cat conftest.err >&5
 
23995
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23996
  (exit $ac_status); } && {
 
23997
         test -z "$ac_c_werror_flag" ||
 
23998
         test ! -s conftest.err
 
23999
       } && test -s conftest.$ac_objext; then
 
24000
  gt_cv_c_wint_t=yes
 
24001
else
 
24002
  echo "$as_me: failed program was:" >&5
 
24003
sed 's/^/| /' conftest.$ac_ext >&5
 
24004
 
 
24005
        gt_cv_c_wint_t=no
 
24006
fi
 
24007
 
 
24008
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24009
fi
 
24010
{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
 
24011
echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
 
24012
  if test $gt_cv_c_wint_t = yes; then
 
24013
 
 
24014
cat >>confdefs.h <<\_ACEOF
 
24015
#define HAVE_WINT_T 1
 
24016
_ACEOF
 
24017
 
 
24018
  fi
 
24019
 
 
24020
 
 
24021
 
 
24022
 
 
24023
  { echo "$as_me:$LINENO: checking for intmax_t" >&5
 
24024
echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
 
24025
if test "${gt_cv_c_intmax_t+set}" = set; then
 
24026
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24027
else
 
24028
  cat >conftest.$ac_ext <<_ACEOF
 
24029
/* confdefs.h.  */
 
24030
_ACEOF
 
24031
cat confdefs.h >>conftest.$ac_ext
 
24032
cat >>conftest.$ac_ext <<_ACEOF
 
24033
/* end confdefs.h.  */
 
24034
 
 
24035
#include <stddef.h>
 
24036
#include <stdlib.h>
 
24037
#if HAVE_STDINT_H_WITH_UINTMAX
 
24038
#include <stdint.h>
 
24039
#endif
 
24040
#if HAVE_INTTYPES_H_WITH_UINTMAX
 
24041
#include <inttypes.h>
 
24042
#endif
 
24043
 
 
24044
int
 
24045
main ()
 
24046
{
 
24047
intmax_t x = -1;
 
24048
        return !x;
 
24049
  ;
 
24050
  return 0;
 
24051
}
 
24052
_ACEOF
 
24053
rm -f conftest.$ac_objext
 
24054
if { (ac_try="$ac_compile"
 
24055
case "(($ac_try" in
 
24056
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24057
  *) ac_try_echo=$ac_try;;
 
24058
esac
 
24059
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24060
  (eval "$ac_compile") 2>conftest.er1
 
24061
  ac_status=$?
 
24062
  grep -v '^ *+' conftest.er1 >conftest.err
 
24063
  rm -f conftest.er1
 
24064
  cat conftest.err >&5
 
24065
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24066
  (exit $ac_status); } && {
 
24067
         test -z "$ac_c_werror_flag" ||
 
24068
         test ! -s conftest.err
 
24069
       } && test -s conftest.$ac_objext; then
 
24070
  gt_cv_c_intmax_t=yes
 
24071
else
 
24072
  echo "$as_me: failed program was:" >&5
 
24073
sed 's/^/| /' conftest.$ac_ext >&5
 
24074
 
 
24075
        gt_cv_c_intmax_t=no
 
24076
fi
 
24077
 
 
24078
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24079
fi
 
24080
{ echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
 
24081
echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
 
24082
  if test $gt_cv_c_intmax_t = yes; then
 
24083
 
 
24084
cat >>confdefs.h <<\_ACEOF
 
24085
#define HAVE_INTMAX_T 1
 
24086
_ACEOF
 
24087
 
 
24088
  fi
 
24089
 
 
24090
 
 
24091
 
 
24092
  { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
 
24093
echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
 
24094
if test "${gt_cv_func_printf_posix+set}" = set; then
 
24095
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24096
else
 
24097
 
 
24098
      if test "$cross_compiling" = yes; then
 
24099
 
 
24100
        cat >conftest.$ac_ext <<_ACEOF
 
24101
/* confdefs.h.  */
 
24102
_ACEOF
 
24103
cat confdefs.h >>conftest.$ac_ext
 
24104
cat >>conftest.$ac_ext <<_ACEOF
 
24105
/* end confdefs.h.  */
 
24106
 
 
24107
#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
 
24108
  notposix
 
24109
#endif
 
24110
 
 
24111
_ACEOF
 
24112
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
24113
  $EGREP "notposix" >/dev/null 2>&1; then
 
24114
  gt_cv_func_printf_posix="guessing no"
 
24115
else
 
24116
  gt_cv_func_printf_posix="guessing yes"
 
24117
fi
 
24118
rm -f conftest*
 
24119
 
 
24120
 
 
24121
else
 
24122
  cat >conftest.$ac_ext <<_ACEOF
 
24123
/* confdefs.h.  */
 
24124
_ACEOF
 
24125
cat confdefs.h >>conftest.$ac_ext
 
24126
cat >>conftest.$ac_ext <<_ACEOF
 
24127
/* end confdefs.h.  */
 
24128
 
 
24129
#include <stdio.h>
 
24130
#include <string.h>
 
24131
/* The string "%2$d %1$d", with dollar characters protected from the shell's
 
24132
   dollar expansion (possibly an autoconf bug).  */
 
24133
static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
 
24134
static char buf[100];
 
24135
int main ()
 
24136
{
 
24137
  sprintf (buf, format, 33, 55);
 
24138
  return (strcmp (buf, "55 33") != 0);
 
24139
}
 
24140
_ACEOF
 
24141
rm -f conftest$ac_exeext
 
24142
if { (ac_try="$ac_link"
 
24143
case "(($ac_try" in
 
24144
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24145
  *) ac_try_echo=$ac_try;;
 
24146
esac
 
24147
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24148
  (eval "$ac_link") 2>&5
 
24149
  ac_status=$?
 
24150
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24151
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
24152
  { (case "(($ac_try" in
 
24153
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24154
  *) ac_try_echo=$ac_try;;
 
24155
esac
 
24156
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24157
  (eval "$ac_try") 2>&5
 
24158
  ac_status=$?
 
24159
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24160
  (exit $ac_status); }; }; then
 
24161
  gt_cv_func_printf_posix=yes
 
24162
else
 
24163
  echo "$as_me: program exited with status $ac_status" >&5
 
24164
echo "$as_me: failed program was:" >&5
 
24165
sed 's/^/| /' conftest.$ac_ext >&5
 
24166
 
 
24167
( exit $ac_status )
 
24168
gt_cv_func_printf_posix=no
 
24169
fi
 
24170
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
24171
fi
 
24172
 
 
24173
 
 
24174
 
 
24175
fi
 
24176
{ echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
 
24177
echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
 
24178
  case $gt_cv_func_printf_posix in
 
24179
    *yes)
 
24180
 
 
24181
cat >>confdefs.h <<\_ACEOF
 
24182
#define HAVE_POSIX_PRINTF 1
 
24183
_ACEOF
 
24184
 
 
24185
      ;;
 
24186
  esac
 
24187
 
 
24188
 
 
24189
    { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
 
24190
echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
 
24191
if test "${ac_cv_gnu_library_2_1+set}" = set; then
 
24192
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24193
else
 
24194
  cat >conftest.$ac_ext <<_ACEOF
 
24195
/* confdefs.h.  */
 
24196
_ACEOF
 
24197
cat confdefs.h >>conftest.$ac_ext
 
24198
cat >>conftest.$ac_ext <<_ACEOF
 
24199
/* end confdefs.h.  */
 
24200
 
 
24201
#include <features.h>
 
24202
#ifdef __GNU_LIBRARY__
 
24203
 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
 
24204
  Lucky GNU user
 
24205
 #endif
 
24206
#endif
 
24207
 
 
24208
_ACEOF
 
24209
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
24210
  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
 
24211
  ac_cv_gnu_library_2_1=yes
 
24212
else
 
24213
  ac_cv_gnu_library_2_1=no
 
24214
fi
 
24215
rm -f conftest*
 
24216
 
 
24217
 
 
24218
 
 
24219
fi
 
24220
{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
 
24221
echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
 
24222
 
 
24223
    GLIBC21="$ac_cv_gnu_library_2_1"
 
24224
 
 
24225
 
 
24226
 
 
24227
 
 
24228
for ac_header in stdint.h
 
24229
do
 
24230
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
24231
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
24232
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
24233
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
24234
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
24235
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24236
fi
 
24237
ac_res=`eval echo '${'$as_ac_Header'}'`
 
24238
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
24239
echo "${ECHO_T}$ac_res" >&6; }
 
24240
else
 
24241
  # Is the header compilable?
 
24242
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
24243
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
24244
cat >conftest.$ac_ext <<_ACEOF
 
24245
/* confdefs.h.  */
 
24246
_ACEOF
 
24247
cat confdefs.h >>conftest.$ac_ext
 
24248
cat >>conftest.$ac_ext <<_ACEOF
 
24249
/* end confdefs.h.  */
 
24250
$ac_includes_default
 
24251
#include <$ac_header>
 
24252
_ACEOF
 
24253
rm -f conftest.$ac_objext
 
24254
if { (ac_try="$ac_compile"
 
24255
case "(($ac_try" in
 
24256
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24257
  *) ac_try_echo=$ac_try;;
 
24258
esac
 
24259
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24260
  (eval "$ac_compile") 2>conftest.er1
 
24261
  ac_status=$?
 
24262
  grep -v '^ *+' conftest.er1 >conftest.err
 
24263
  rm -f conftest.er1
 
24264
  cat conftest.err >&5
 
24265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24266
  (exit $ac_status); } && {
 
24267
         test -z "$ac_c_werror_flag" ||
 
24268
         test ! -s conftest.err
 
24269
       } && test -s conftest.$ac_objext; then
 
24270
  ac_header_compiler=yes
 
24271
else
 
24272
  echo "$as_me: failed program was:" >&5
 
24273
sed 's/^/| /' conftest.$ac_ext >&5
 
24274
 
 
24275
        ac_header_compiler=no
 
24276
fi
 
24277
 
 
24278
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24279
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
24280
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
24281
 
 
24282
# Is the header present?
 
24283
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
24284
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
24285
cat >conftest.$ac_ext <<_ACEOF
 
24286
/* confdefs.h.  */
 
24287
_ACEOF
 
24288
cat confdefs.h >>conftest.$ac_ext
 
24289
cat >>conftest.$ac_ext <<_ACEOF
 
24290
/* end confdefs.h.  */
 
24291
#include <$ac_header>
 
24292
_ACEOF
 
24293
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
24294
case "(($ac_try" in
 
24295
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24296
  *) ac_try_echo=$ac_try;;
 
24297
esac
 
24298
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24299
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
24300
  ac_status=$?
 
24301
  grep -v '^ *+' conftest.er1 >conftest.err
 
24302
  rm -f conftest.er1
 
24303
  cat conftest.err >&5
 
24304
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24305
  (exit $ac_status); } >/dev/null && {
 
24306
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
24307
         test ! -s conftest.err
 
24308
       }; then
 
24309
  ac_header_preproc=yes
 
24310
else
 
24311
  echo "$as_me: failed program was:" >&5
 
24312
sed 's/^/| /' conftest.$ac_ext >&5
 
24313
 
 
24314
  ac_header_preproc=no
 
24315
fi
 
24316
 
 
24317
rm -f conftest.err conftest.$ac_ext
 
24318
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
24319
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
24320
 
 
24321
# So?  What about this header?
 
24322
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
24323
  yes:no: )
 
24324
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
24325
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
24326
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
24327
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
24328
    ac_header_preproc=yes
 
24329
    ;;
 
24330
  no:yes:* )
 
24331
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
24332
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
24333
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
24334
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
24335
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
24336
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
24337
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
24338
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
24339
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
24340
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
24341
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
24342
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
24343
    ( cat <<\_ASBOX
 
24344
## -------------------------------- ##
 
24345
## Report this to sitecopy@lyra.org ##
 
24346
## -------------------------------- ##
 
24347
_ASBOX
 
24348
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
24349
    ;;
 
24350
esac
 
24351
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
24352
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
24353
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
24354
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24355
else
 
24356
  eval "$as_ac_Header=\$ac_header_preproc"
 
24357
fi
 
24358
ac_res=`eval echo '${'$as_ac_Header'}'`
 
24359
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
24360
echo "${ECHO_T}$ac_res" >&6; }
 
24361
 
 
24362
fi
 
24363
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
24364
  cat >>confdefs.h <<_ACEOF
 
24365
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
24366
_ACEOF
 
24367
 
 
24368
fi
 
24369
 
 
24370
done
 
24371
 
 
24372
    { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
 
24373
echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
 
24374
  if test "${gl_cv_size_max+set}" = set; then
 
24375
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24376
else
 
24377
 
 
24378
    gl_cv_size_max=
 
24379
    cat >conftest.$ac_ext <<_ACEOF
 
24380
/* confdefs.h.  */
 
24381
_ACEOF
 
24382
cat confdefs.h >>conftest.$ac_ext
 
24383
cat >>conftest.$ac_ext <<_ACEOF
 
24384
/* end confdefs.h.  */
 
24385
 
 
24386
#include <limits.h>
 
24387
#if HAVE_STDINT_H
 
24388
#include <stdint.h>
 
24389
#endif
 
24390
#ifdef SIZE_MAX
 
24391
Found it
 
24392
#endif
 
24393
 
 
24394
_ACEOF
 
24395
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
24396
  $EGREP "Found it" >/dev/null 2>&1; then
 
24397
  gl_cv_size_max=yes
 
24398
fi
 
24399
rm -f conftest*
 
24400
 
 
24401
    if test -z "$gl_cv_size_max"; then
 
24402
                        if test "$cross_compiling" = yes; then
 
24403
  # Depending upon the size, compute the lo and hi bounds.
 
24404
cat >conftest.$ac_ext <<_ACEOF
 
24405
/* confdefs.h.  */
 
24406
_ACEOF
 
24407
cat confdefs.h >>conftest.$ac_ext
 
24408
cat >>conftest.$ac_ext <<_ACEOF
 
24409
/* end confdefs.h.  */
 
24410
#include <stddef.h>
 
24411
#include <limits.h>
 
24412
int
 
24413
main ()
 
24414
{
 
24415
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
 
24416
test_array [0] = 0
 
24417
 
 
24418
  ;
 
24419
  return 0;
 
24420
}
 
24421
_ACEOF
 
24422
rm -f conftest.$ac_objext
 
24423
if { (ac_try="$ac_compile"
 
24424
case "(($ac_try" in
 
24425
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24426
  *) ac_try_echo=$ac_try;;
 
24427
esac
 
24428
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24429
  (eval "$ac_compile") 2>conftest.er1
 
24430
  ac_status=$?
 
24431
  grep -v '^ *+' conftest.er1 >conftest.err
 
24432
  rm -f conftest.er1
 
24433
  cat conftest.err >&5
 
24434
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24435
  (exit $ac_status); } && {
 
24436
         test -z "$ac_c_werror_flag" ||
 
24437
         test ! -s conftest.err
 
24438
       } && test -s conftest.$ac_objext; then
 
24439
  ac_lo=0 ac_mid=0
 
24440
  while :; do
 
24441
    cat >conftest.$ac_ext <<_ACEOF
 
24442
/* confdefs.h.  */
 
24443
_ACEOF
 
24444
cat confdefs.h >>conftest.$ac_ext
 
24445
cat >>conftest.$ac_ext <<_ACEOF
 
24446
/* end confdefs.h.  */
 
24447
#include <stddef.h>
 
24448
#include <limits.h>
 
24449
int
 
24450
main ()
 
24451
{
 
24452
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
 
24453
test_array [0] = 0
 
24454
 
 
24455
  ;
 
24456
  return 0;
 
24457
}
 
24458
_ACEOF
 
24459
rm -f conftest.$ac_objext
 
24460
if { (ac_try="$ac_compile"
 
24461
case "(($ac_try" in
 
24462
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24463
  *) ac_try_echo=$ac_try;;
 
24464
esac
 
24465
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24466
  (eval "$ac_compile") 2>conftest.er1
 
24467
  ac_status=$?
 
24468
  grep -v '^ *+' conftest.er1 >conftest.err
 
24469
  rm -f conftest.er1
 
24470
  cat conftest.err >&5
 
24471
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24472
  (exit $ac_status); } && {
 
24473
         test -z "$ac_c_werror_flag" ||
 
24474
         test ! -s conftest.err
 
24475
       } && test -s conftest.$ac_objext; then
 
24476
  ac_hi=$ac_mid; break
 
24477
else
 
24478
  echo "$as_me: failed program was:" >&5
 
24479
sed 's/^/| /' conftest.$ac_ext >&5
 
24480
 
 
24481
        ac_lo=`expr $ac_mid + 1`
 
24482
                        if test $ac_lo -le $ac_mid; then
 
24483
                          ac_lo= ac_hi=
 
24484
                          break
 
24485
                        fi
 
24486
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
24487
fi
 
24488
 
 
24489
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24490
  done
 
24491
else
 
24492
  echo "$as_me: failed program was:" >&5
 
24493
sed 's/^/| /' conftest.$ac_ext >&5
 
24494
 
 
24495
        cat >conftest.$ac_ext <<_ACEOF
 
24496
/* confdefs.h.  */
 
24497
_ACEOF
 
24498
cat confdefs.h >>conftest.$ac_ext
 
24499
cat >>conftest.$ac_ext <<_ACEOF
 
24500
/* end confdefs.h.  */
 
24501
#include <stddef.h>
 
24502
#include <limits.h>
 
24503
int
 
24504
main ()
 
24505
{
 
24506
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
 
24507
test_array [0] = 0
 
24508
 
 
24509
  ;
 
24510
  return 0;
 
24511
}
 
24512
_ACEOF
 
24513
rm -f conftest.$ac_objext
 
24514
if { (ac_try="$ac_compile"
 
24515
case "(($ac_try" in
 
24516
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24517
  *) ac_try_echo=$ac_try;;
 
24518
esac
 
24519
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24520
  (eval "$ac_compile") 2>conftest.er1
 
24521
  ac_status=$?
 
24522
  grep -v '^ *+' conftest.er1 >conftest.err
 
24523
  rm -f conftest.er1
 
24524
  cat conftest.err >&5
 
24525
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24526
  (exit $ac_status); } && {
 
24527
         test -z "$ac_c_werror_flag" ||
 
24528
         test ! -s conftest.err
 
24529
       } && test -s conftest.$ac_objext; then
 
24530
  ac_hi=-1 ac_mid=-1
 
24531
  while :; do
 
24532
    cat >conftest.$ac_ext <<_ACEOF
 
24533
/* confdefs.h.  */
 
24534
_ACEOF
 
24535
cat confdefs.h >>conftest.$ac_ext
 
24536
cat >>conftest.$ac_ext <<_ACEOF
 
24537
/* end confdefs.h.  */
 
24538
#include <stddef.h>
 
24539
#include <limits.h>
 
24540
int
 
24541
main ()
 
24542
{
 
24543
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
 
24544
test_array [0] = 0
 
24545
 
 
24546
  ;
 
24547
  return 0;
 
24548
}
 
24549
_ACEOF
 
24550
rm -f conftest.$ac_objext
 
24551
if { (ac_try="$ac_compile"
 
24552
case "(($ac_try" in
 
24553
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24554
  *) ac_try_echo=$ac_try;;
 
24555
esac
 
24556
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24557
  (eval "$ac_compile") 2>conftest.er1
 
24558
  ac_status=$?
 
24559
  grep -v '^ *+' conftest.er1 >conftest.err
 
24560
  rm -f conftest.er1
 
24561
  cat conftest.err >&5
 
24562
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24563
  (exit $ac_status); } && {
 
24564
         test -z "$ac_c_werror_flag" ||
 
24565
         test ! -s conftest.err
 
24566
       } && test -s conftest.$ac_objext; then
 
24567
  ac_lo=$ac_mid; break
 
24568
else
 
24569
  echo "$as_me: failed program was:" >&5
 
24570
sed 's/^/| /' conftest.$ac_ext >&5
 
24571
 
 
24572
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
24573
                        if test $ac_mid -le $ac_hi; then
 
24574
                          ac_lo= ac_hi=
 
24575
                          break
 
24576
                        fi
 
24577
                        ac_mid=`expr 2 '*' $ac_mid`
 
24578
fi
 
24579
 
 
24580
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24581
  done
 
24582
else
 
24583
  echo "$as_me: failed program was:" >&5
 
24584
sed 's/^/| /' conftest.$ac_ext >&5
 
24585
 
 
24586
        ac_lo= ac_hi=
 
24587
fi
 
24588
 
 
24589
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24590
fi
 
24591
 
 
24592
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24593
# Binary search between lo and hi bounds.
 
24594
while test "x$ac_lo" != "x$ac_hi"; do
 
24595
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
24596
  cat >conftest.$ac_ext <<_ACEOF
 
24597
/* confdefs.h.  */
 
24598
_ACEOF
 
24599
cat confdefs.h >>conftest.$ac_ext
 
24600
cat >>conftest.$ac_ext <<_ACEOF
 
24601
/* end confdefs.h.  */
 
24602
#include <stddef.h>
 
24603
#include <limits.h>
 
24604
int
 
24605
main ()
 
24606
{
 
24607
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
 
24608
test_array [0] = 0
 
24609
 
 
24610
  ;
 
24611
  return 0;
 
24612
}
 
24613
_ACEOF
 
24614
rm -f conftest.$ac_objext
 
24615
if { (ac_try="$ac_compile"
 
24616
case "(($ac_try" in
 
24617
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24618
  *) ac_try_echo=$ac_try;;
 
24619
esac
 
24620
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24621
  (eval "$ac_compile") 2>conftest.er1
 
24622
  ac_status=$?
 
24623
  grep -v '^ *+' conftest.er1 >conftest.err
 
24624
  rm -f conftest.er1
 
24625
  cat conftest.err >&5
 
24626
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24627
  (exit $ac_status); } && {
 
24628
         test -z "$ac_c_werror_flag" ||
 
24629
         test ! -s conftest.err
 
24630
       } && test -s conftest.$ac_objext; then
 
24631
  ac_hi=$ac_mid
 
24632
else
 
24633
  echo "$as_me: failed program was:" >&5
 
24634
sed 's/^/| /' conftest.$ac_ext >&5
 
24635
 
 
24636
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
24637
fi
 
24638
 
 
24639
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24640
done
 
24641
case $ac_lo in
 
24642
?*) size_t_bits_minus_1=$ac_lo;;
 
24643
'') size_t_bits_minus_1= ;;
 
24644
esac
 
24645
else
 
24646
  cat >conftest.$ac_ext <<_ACEOF
 
24647
/* confdefs.h.  */
 
24648
_ACEOF
 
24649
cat confdefs.h >>conftest.$ac_ext
 
24650
cat >>conftest.$ac_ext <<_ACEOF
 
24651
/* end confdefs.h.  */
 
24652
#include <stddef.h>
 
24653
#include <limits.h>
 
24654
static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
 
24655
static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
 
24656
#include <stdio.h>
 
24657
#include <stdlib.h>
 
24658
int
 
24659
main ()
 
24660
{
 
24661
 
 
24662
  FILE *f = fopen ("conftest.val", "w");
 
24663
  if (! f)
 
24664
    return 1;
 
24665
  if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
 
24666
    {
 
24667
      long int i = longval ();
 
24668
      if (i != (sizeof (size_t) * CHAR_BIT - 1))
 
24669
        return 1;
 
24670
      fprintf (f, "%ld\n", i);
 
24671
    }
 
24672
  else
 
24673
    {
 
24674
      unsigned long int i = ulongval ();
 
24675
      if (i != (sizeof (size_t) * CHAR_BIT - 1))
 
24676
        return 1;
 
24677
      fprintf (f, "%lu\n", i);
 
24678
    }
 
24679
  return ferror (f) || fclose (f) != 0;
 
24680
 
 
24681
  ;
 
24682
  return 0;
 
24683
}
 
24684
_ACEOF
 
24685
rm -f conftest$ac_exeext
 
24686
if { (ac_try="$ac_link"
 
24687
case "(($ac_try" in
 
24688
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24689
  *) ac_try_echo=$ac_try;;
 
24690
esac
 
24691
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24692
  (eval "$ac_link") 2>&5
 
24693
  ac_status=$?
 
24694
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24695
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
24696
  { (case "(($ac_try" in
 
24697
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24698
  *) ac_try_echo=$ac_try;;
 
24699
esac
 
24700
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24701
  (eval "$ac_try") 2>&5
 
24702
  ac_status=$?
 
24703
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24704
  (exit $ac_status); }; }; then
 
24705
  size_t_bits_minus_1=`cat conftest.val`
 
24706
else
 
24707
  echo "$as_me: program exited with status $ac_status" >&5
 
24708
echo "$as_me: failed program was:" >&5
 
24709
sed 's/^/| /' conftest.$ac_ext >&5
 
24710
 
 
24711
( exit $ac_status )
 
24712
size_t_bits_minus_1=
 
24713
fi
 
24714
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
24715
fi
 
24716
rm -f conftest.val
 
24717
      if test "$cross_compiling" = yes; then
 
24718
  # Depending upon the size, compute the lo and hi bounds.
 
24719
cat >conftest.$ac_ext <<_ACEOF
 
24720
/* confdefs.h.  */
 
24721
_ACEOF
 
24722
cat confdefs.h >>conftest.$ac_ext
 
24723
cat >>conftest.$ac_ext <<_ACEOF
 
24724
/* end confdefs.h.  */
 
24725
#include <stddef.h>
 
24726
int
 
24727
main ()
 
24728
{
 
24729
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
 
24730
test_array [0] = 0
 
24731
 
 
24732
  ;
 
24733
  return 0;
 
24734
}
 
24735
_ACEOF
 
24736
rm -f conftest.$ac_objext
 
24737
if { (ac_try="$ac_compile"
 
24738
case "(($ac_try" in
 
24739
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24740
  *) ac_try_echo=$ac_try;;
 
24741
esac
 
24742
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24743
  (eval "$ac_compile") 2>conftest.er1
 
24744
  ac_status=$?
 
24745
  grep -v '^ *+' conftest.er1 >conftest.err
 
24746
  rm -f conftest.er1
 
24747
  cat conftest.err >&5
 
24748
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24749
  (exit $ac_status); } && {
 
24750
         test -z "$ac_c_werror_flag" ||
 
24751
         test ! -s conftest.err
 
24752
       } && test -s conftest.$ac_objext; then
 
24753
  ac_lo=0 ac_mid=0
 
24754
  while :; do
 
24755
    cat >conftest.$ac_ext <<_ACEOF
 
24756
/* confdefs.h.  */
 
24757
_ACEOF
 
24758
cat confdefs.h >>conftest.$ac_ext
 
24759
cat >>conftest.$ac_ext <<_ACEOF
 
24760
/* end confdefs.h.  */
 
24761
#include <stddef.h>
 
24762
int
 
24763
main ()
 
24764
{
 
24765
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
 
24766
test_array [0] = 0
 
24767
 
 
24768
  ;
 
24769
  return 0;
 
24770
}
 
24771
_ACEOF
 
24772
rm -f conftest.$ac_objext
 
24773
if { (ac_try="$ac_compile"
 
24774
case "(($ac_try" in
 
24775
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24776
  *) ac_try_echo=$ac_try;;
 
24777
esac
 
24778
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24779
  (eval "$ac_compile") 2>conftest.er1
 
24780
  ac_status=$?
 
24781
  grep -v '^ *+' conftest.er1 >conftest.err
 
24782
  rm -f conftest.er1
 
24783
  cat conftest.err >&5
 
24784
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24785
  (exit $ac_status); } && {
 
24786
         test -z "$ac_c_werror_flag" ||
 
24787
         test ! -s conftest.err
 
24788
       } && test -s conftest.$ac_objext; then
 
24789
  ac_hi=$ac_mid; break
 
24790
else
 
24791
  echo "$as_me: failed program was:" >&5
 
24792
sed 's/^/| /' conftest.$ac_ext >&5
 
24793
 
 
24794
        ac_lo=`expr $ac_mid + 1`
 
24795
                        if test $ac_lo -le $ac_mid; then
 
24796
                          ac_lo= ac_hi=
 
24797
                          break
 
24798
                        fi
 
24799
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
24800
fi
 
24801
 
 
24802
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24803
  done
 
24804
else
 
24805
  echo "$as_me: failed program was:" >&5
 
24806
sed 's/^/| /' conftest.$ac_ext >&5
 
24807
 
 
24808
        cat >conftest.$ac_ext <<_ACEOF
 
24809
/* confdefs.h.  */
 
24810
_ACEOF
 
24811
cat confdefs.h >>conftest.$ac_ext
 
24812
cat >>conftest.$ac_ext <<_ACEOF
 
24813
/* end confdefs.h.  */
 
24814
#include <stddef.h>
 
24815
int
 
24816
main ()
 
24817
{
 
24818
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
 
24819
test_array [0] = 0
 
24820
 
 
24821
  ;
 
24822
  return 0;
 
24823
}
 
24824
_ACEOF
 
24825
rm -f conftest.$ac_objext
 
24826
if { (ac_try="$ac_compile"
 
24827
case "(($ac_try" in
 
24828
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24829
  *) ac_try_echo=$ac_try;;
 
24830
esac
 
24831
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24832
  (eval "$ac_compile") 2>conftest.er1
 
24833
  ac_status=$?
 
24834
  grep -v '^ *+' conftest.er1 >conftest.err
 
24835
  rm -f conftest.er1
 
24836
  cat conftest.err >&5
 
24837
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24838
  (exit $ac_status); } && {
 
24839
         test -z "$ac_c_werror_flag" ||
 
24840
         test ! -s conftest.err
 
24841
       } && test -s conftest.$ac_objext; then
 
24842
  ac_hi=-1 ac_mid=-1
 
24843
  while :; do
 
24844
    cat >conftest.$ac_ext <<_ACEOF
 
24845
/* confdefs.h.  */
 
24846
_ACEOF
 
24847
cat confdefs.h >>conftest.$ac_ext
 
24848
cat >>conftest.$ac_ext <<_ACEOF
 
24849
/* end confdefs.h.  */
 
24850
#include <stddef.h>
 
24851
int
 
24852
main ()
 
24853
{
 
24854
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
 
24855
test_array [0] = 0
 
24856
 
 
24857
  ;
 
24858
  return 0;
 
24859
}
 
24860
_ACEOF
 
24861
rm -f conftest.$ac_objext
 
24862
if { (ac_try="$ac_compile"
 
24863
case "(($ac_try" in
 
24864
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24865
  *) ac_try_echo=$ac_try;;
 
24866
esac
 
24867
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24868
  (eval "$ac_compile") 2>conftest.er1
 
24869
  ac_status=$?
 
24870
  grep -v '^ *+' conftest.er1 >conftest.err
 
24871
  rm -f conftest.er1
 
24872
  cat conftest.err >&5
 
24873
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24874
  (exit $ac_status); } && {
 
24875
         test -z "$ac_c_werror_flag" ||
 
24876
         test ! -s conftest.err
 
24877
       } && test -s conftest.$ac_objext; then
 
24878
  ac_lo=$ac_mid; break
 
24879
else
 
24880
  echo "$as_me: failed program was:" >&5
 
24881
sed 's/^/| /' conftest.$ac_ext >&5
 
24882
 
 
24883
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
24884
                        if test $ac_mid -le $ac_hi; then
 
24885
                          ac_lo= ac_hi=
 
24886
                          break
 
24887
                        fi
 
24888
                        ac_mid=`expr 2 '*' $ac_mid`
 
24889
fi
 
24890
 
 
24891
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24892
  done
 
24893
else
 
24894
  echo "$as_me: failed program was:" >&5
 
24895
sed 's/^/| /' conftest.$ac_ext >&5
 
24896
 
 
24897
        ac_lo= ac_hi=
 
24898
fi
 
24899
 
 
24900
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24901
fi
 
24902
 
 
24903
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24904
# Binary search between lo and hi bounds.
 
24905
while test "x$ac_lo" != "x$ac_hi"; do
 
24906
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
24907
  cat >conftest.$ac_ext <<_ACEOF
 
24908
/* confdefs.h.  */
 
24909
_ACEOF
 
24910
cat confdefs.h >>conftest.$ac_ext
 
24911
cat >>conftest.$ac_ext <<_ACEOF
 
24912
/* end confdefs.h.  */
 
24913
#include <stddef.h>
 
24914
int
 
24915
main ()
 
24916
{
 
24917
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
 
24918
test_array [0] = 0
 
24919
 
 
24920
  ;
 
24921
  return 0;
 
24922
}
 
24923
_ACEOF
 
24924
rm -f conftest.$ac_objext
 
24925
if { (ac_try="$ac_compile"
 
24926
case "(($ac_try" in
 
24927
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24928
  *) ac_try_echo=$ac_try;;
 
24929
esac
 
24930
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24931
  (eval "$ac_compile") 2>conftest.er1
 
24932
  ac_status=$?
 
24933
  grep -v '^ *+' conftest.er1 >conftest.err
 
24934
  rm -f conftest.er1
 
24935
  cat conftest.err >&5
 
24936
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24937
  (exit $ac_status); } && {
 
24938
         test -z "$ac_c_werror_flag" ||
 
24939
         test ! -s conftest.err
 
24940
       } && test -s conftest.$ac_objext; then
 
24941
  ac_hi=$ac_mid
 
24942
else
 
24943
  echo "$as_me: failed program was:" >&5
 
24944
sed 's/^/| /' conftest.$ac_ext >&5
 
24945
 
 
24946
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
24947
fi
 
24948
 
 
24949
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24950
done
 
24951
case $ac_lo in
 
24952
?*) fits_in_uint=$ac_lo;;
 
24953
'') fits_in_uint= ;;
 
24954
esac
 
24955
else
 
24956
  cat >conftest.$ac_ext <<_ACEOF
 
24957
/* confdefs.h.  */
 
24958
_ACEOF
 
24959
cat confdefs.h >>conftest.$ac_ext
 
24960
cat >>conftest.$ac_ext <<_ACEOF
 
24961
/* end confdefs.h.  */
 
24962
#include <stddef.h>
 
24963
static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
 
24964
static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
 
24965
#include <stdio.h>
 
24966
#include <stdlib.h>
 
24967
int
 
24968
main ()
 
24969
{
 
24970
 
 
24971
  FILE *f = fopen ("conftest.val", "w");
 
24972
  if (! f)
 
24973
    return 1;
 
24974
  if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
 
24975
    {
 
24976
      long int i = longval ();
 
24977
      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
 
24978
        return 1;
 
24979
      fprintf (f, "%ld\n", i);
 
24980
    }
 
24981
  else
 
24982
    {
 
24983
      unsigned long int i = ulongval ();
 
24984
      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
 
24985
        return 1;
 
24986
      fprintf (f, "%lu\n", i);
 
24987
    }
 
24988
  return ferror (f) || fclose (f) != 0;
 
24989
 
 
24990
  ;
 
24991
  return 0;
 
24992
}
 
24993
_ACEOF
 
24994
rm -f conftest$ac_exeext
 
24995
if { (ac_try="$ac_link"
 
24996
case "(($ac_try" in
 
24997
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24998
  *) ac_try_echo=$ac_try;;
 
24999
esac
 
25000
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25001
  (eval "$ac_link") 2>&5
 
25002
  ac_status=$?
 
25003
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25004
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
25005
  { (case "(($ac_try" in
 
25006
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25007
  *) ac_try_echo=$ac_try;;
 
25008
esac
 
25009
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25010
  (eval "$ac_try") 2>&5
 
25011
  ac_status=$?
 
25012
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25013
  (exit $ac_status); }; }; then
 
25014
  fits_in_uint=`cat conftest.val`
 
25015
else
 
25016
  echo "$as_me: program exited with status $ac_status" >&5
 
25017
echo "$as_me: failed program was:" >&5
 
25018
sed 's/^/| /' conftest.$ac_ext >&5
 
25019
 
 
25020
( exit $ac_status )
 
25021
fits_in_uint=
 
25022
fi
 
25023
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
25024
fi
 
25025
rm -f conftest.val
 
25026
      if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
 
25027
        if test $fits_in_uint = 1; then
 
25028
                              cat >conftest.$ac_ext <<_ACEOF
 
25029
/* confdefs.h.  */
 
25030
_ACEOF
 
25031
cat confdefs.h >>conftest.$ac_ext
 
25032
cat >>conftest.$ac_ext <<_ACEOF
 
25033
/* end confdefs.h.  */
 
25034
#include <stddef.h>
 
25035
            extern size_t foo;
 
25036
            extern unsigned long foo;
 
25037
 
 
25038
int
 
25039
main ()
 
25040
{
 
25041
 
 
25042
  ;
 
25043
  return 0;
 
25044
}
 
25045
_ACEOF
 
25046
rm -f conftest.$ac_objext
 
25047
if { (ac_try="$ac_compile"
 
25048
case "(($ac_try" in
 
25049
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25050
  *) ac_try_echo=$ac_try;;
 
25051
esac
 
25052
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25053
  (eval "$ac_compile") 2>conftest.er1
 
25054
  ac_status=$?
 
25055
  grep -v '^ *+' conftest.er1 >conftest.err
 
25056
  rm -f conftest.er1
 
25057
  cat conftest.err >&5
 
25058
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25059
  (exit $ac_status); } && {
 
25060
         test -z "$ac_c_werror_flag" ||
 
25061
         test ! -s conftest.err
 
25062
       } && test -s conftest.$ac_objext; then
 
25063
  fits_in_uint=0
 
25064
else
 
25065
  echo "$as_me: failed program was:" >&5
 
25066
sed 's/^/| /' conftest.$ac_ext >&5
 
25067
 
 
25068
 
 
25069
fi
 
25070
 
 
25071
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25072
        fi
 
25073
                                if test $fits_in_uint = 1; then
 
25074
          gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
 
25075
        else
 
25076
          gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
 
25077
        fi
 
25078
      else
 
25079
                gl_cv_size_max='((size_t)~(size_t)0)'
 
25080
      fi
 
25081
    fi
 
25082
 
 
25083
fi
 
25084
 
 
25085
  { echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
 
25086
echo "${ECHO_T}$gl_cv_size_max" >&6; }
 
25087
  if test "$gl_cv_size_max" != yes; then
 
25088
 
 
25089
cat >>confdefs.h <<_ACEOF
 
25090
#define SIZE_MAX $gl_cv_size_max
 
25091
_ACEOF
 
25092
 
 
25093
  fi
 
25094
 
 
25095
 
 
25096
 
 
25097
 
 
25098
 
 
25099
for ac_header in stdint.h
 
25100
do
 
25101
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
25102
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
25103
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
25104
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
25105
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
25106
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25107
fi
 
25108
ac_res=`eval echo '${'$as_ac_Header'}'`
 
25109
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
25110
echo "${ECHO_T}$ac_res" >&6; }
 
25111
else
 
25112
  # Is the header compilable?
 
25113
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
25114
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
25115
cat >conftest.$ac_ext <<_ACEOF
 
25116
/* confdefs.h.  */
 
25117
_ACEOF
 
25118
cat confdefs.h >>conftest.$ac_ext
 
25119
cat >>conftest.$ac_ext <<_ACEOF
 
25120
/* end confdefs.h.  */
 
25121
$ac_includes_default
 
25122
#include <$ac_header>
 
25123
_ACEOF
 
25124
rm -f conftest.$ac_objext
 
25125
if { (ac_try="$ac_compile"
 
25126
case "(($ac_try" in
 
25127
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25128
  *) ac_try_echo=$ac_try;;
 
25129
esac
 
25130
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25131
  (eval "$ac_compile") 2>conftest.er1
 
25132
  ac_status=$?
 
25133
  grep -v '^ *+' conftest.er1 >conftest.err
 
25134
  rm -f conftest.er1
 
25135
  cat conftest.err >&5
 
25136
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25137
  (exit $ac_status); } && {
 
25138
         test -z "$ac_c_werror_flag" ||
 
25139
         test ! -s conftest.err
 
25140
       } && test -s conftest.$ac_objext; then
 
25141
  ac_header_compiler=yes
 
25142
else
 
25143
  echo "$as_me: failed program was:" >&5
 
25144
sed 's/^/| /' conftest.$ac_ext >&5
 
25145
 
 
25146
        ac_header_compiler=no
 
25147
fi
 
25148
 
 
25149
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25150
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
25151
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
25152
 
 
25153
# Is the header present?
 
25154
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
25155
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
25156
cat >conftest.$ac_ext <<_ACEOF
 
25157
/* confdefs.h.  */
 
25158
_ACEOF
 
25159
cat confdefs.h >>conftest.$ac_ext
 
25160
cat >>conftest.$ac_ext <<_ACEOF
 
25161
/* end confdefs.h.  */
 
25162
#include <$ac_header>
 
25163
_ACEOF
 
25164
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
25165
case "(($ac_try" in
 
25166
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25167
  *) ac_try_echo=$ac_try;;
 
25168
esac
 
25169
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25170
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
25171
  ac_status=$?
 
25172
  grep -v '^ *+' conftest.er1 >conftest.err
 
25173
  rm -f conftest.er1
 
25174
  cat conftest.err >&5
 
25175
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25176
  (exit $ac_status); } >/dev/null && {
 
25177
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
25178
         test ! -s conftest.err
 
25179
       }; then
 
25180
  ac_header_preproc=yes
 
25181
else
 
25182
  echo "$as_me: failed program was:" >&5
 
25183
sed 's/^/| /' conftest.$ac_ext >&5
 
25184
 
 
25185
  ac_header_preproc=no
 
25186
fi
 
25187
 
 
25188
rm -f conftest.err conftest.$ac_ext
 
25189
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
25190
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
25191
 
 
25192
# So?  What about this header?
 
25193
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
25194
  yes:no: )
 
25195
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
25196
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
25197
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
25198
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
25199
    ac_header_preproc=yes
 
25200
    ;;
 
25201
  no:yes:* )
 
25202
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
25203
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
25204
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
25205
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
25206
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
25207
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
25208
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
25209
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
25210
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
25211
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
25212
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
25213
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
25214
    ( cat <<\_ASBOX
 
25215
## -------------------------------- ##
 
25216
## Report this to sitecopy@lyra.org ##
 
25217
## -------------------------------- ##
 
25218
_ASBOX
 
25219
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
25220
    ;;
 
25221
esac
 
25222
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
25223
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
25224
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
25225
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25226
else
 
25227
  eval "$as_ac_Header=\$ac_header_preproc"
 
25228
fi
 
25229
ac_res=`eval echo '${'$as_ac_Header'}'`
 
25230
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
25231
echo "${ECHO_T}$ac_res" >&6; }
 
25232
 
 
25233
fi
 
25234
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
25235
  cat >>confdefs.h <<_ACEOF
 
25236
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
25237
_ACEOF
 
25238
 
 
25239
fi
 
25240
 
 
25241
done
 
25242
 
 
25243
 
 
25244
 
 
25245
    { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
 
25246
echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
 
25247
if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
 
25248
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25249
else
 
25250
  gt_save_LIBS="$LIBS"
 
25251
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
 
25252
     cat >conftest.$ac_ext <<_ACEOF
 
25253
/* confdefs.h.  */
 
25254
_ACEOF
 
25255
cat confdefs.h >>conftest.$ac_ext
 
25256
cat >>conftest.$ac_ext <<_ACEOF
 
25257
/* end confdefs.h.  */
 
25258
#include <CoreFoundation/CFPreferences.h>
 
25259
int
 
25260
main ()
 
25261
{
 
25262
CFPreferencesCopyAppValue(NULL, NULL)
 
25263
  ;
 
25264
  return 0;
 
25265
}
 
25266
_ACEOF
 
25267
rm -f conftest.$ac_objext conftest$ac_exeext
 
25268
if { (ac_try="$ac_link"
 
25269
case "(($ac_try" in
 
25270
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25271
  *) ac_try_echo=$ac_try;;
 
25272
esac
 
25273
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25274
  (eval "$ac_link") 2>conftest.er1
 
25275
  ac_status=$?
 
25276
  grep -v '^ *+' conftest.er1 >conftest.err
 
25277
  rm -f conftest.er1
 
25278
  cat conftest.err >&5
 
25279
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25280
  (exit $ac_status); } && {
 
25281
         test -z "$ac_c_werror_flag" ||
 
25282
         test ! -s conftest.err
 
25283
       } && test -s conftest$ac_exeext &&
 
25284
       $as_test_x conftest$ac_exeext; then
 
25285
  gt_cv_func_CFPreferencesCopyAppValue=yes
 
25286
else
 
25287
  echo "$as_me: failed program was:" >&5
 
25288
sed 's/^/| /' conftest.$ac_ext >&5
 
25289
 
 
25290
        gt_cv_func_CFPreferencesCopyAppValue=no
 
25291
fi
 
25292
 
 
25293
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
25294
      conftest$ac_exeext conftest.$ac_ext
 
25295
     LIBS="$gt_save_LIBS"
 
25296
fi
 
25297
{ echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
 
25298
echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
 
25299
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
 
25300
 
 
25301
cat >>confdefs.h <<\_ACEOF
 
25302
#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
 
25303
_ACEOF
 
25304
 
 
25305
  fi
 
25306
    { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
 
25307
echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
 
25308
if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
 
25309
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25310
else
 
25311
  gt_save_LIBS="$LIBS"
 
25312
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
 
25313
     cat >conftest.$ac_ext <<_ACEOF
 
25314
/* confdefs.h.  */
 
25315
_ACEOF
 
25316
cat confdefs.h >>conftest.$ac_ext
 
25317
cat >>conftest.$ac_ext <<_ACEOF
 
25318
/* end confdefs.h.  */
 
25319
#include <CoreFoundation/CFLocale.h>
 
25320
int
 
25321
main ()
 
25322
{
 
25323
CFLocaleCopyCurrent();
 
25324
  ;
 
25325
  return 0;
 
25326
}
 
25327
_ACEOF
 
25328
rm -f conftest.$ac_objext conftest$ac_exeext
 
25329
if { (ac_try="$ac_link"
 
25330
case "(($ac_try" in
 
25331
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25332
  *) ac_try_echo=$ac_try;;
 
25333
esac
 
25334
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25335
  (eval "$ac_link") 2>conftest.er1
 
25336
  ac_status=$?
 
25337
  grep -v '^ *+' conftest.er1 >conftest.err
 
25338
  rm -f conftest.er1
 
25339
  cat conftest.err >&5
 
25340
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25341
  (exit $ac_status); } && {
 
25342
         test -z "$ac_c_werror_flag" ||
 
25343
         test ! -s conftest.err
 
25344
       } && test -s conftest$ac_exeext &&
 
25345
       $as_test_x conftest$ac_exeext; then
 
25346
  gt_cv_func_CFLocaleCopyCurrent=yes
 
25347
else
 
25348
  echo "$as_me: failed program was:" >&5
 
25349
sed 's/^/| /' conftest.$ac_ext >&5
 
25350
 
 
25351
        gt_cv_func_CFLocaleCopyCurrent=no
 
25352
fi
 
25353
 
 
25354
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
25355
      conftest$ac_exeext conftest.$ac_ext
 
25356
     LIBS="$gt_save_LIBS"
 
25357
fi
 
25358
{ echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
 
25359
echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
 
25360
  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
 
25361
 
 
25362
cat >>confdefs.h <<\_ACEOF
 
25363
#define HAVE_CFLOCALECOPYCURRENT 1
 
25364
_ACEOF
 
25365
 
 
25366
  fi
 
25367
  INTL_MACOSX_LIBS=
 
25368
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
 
25369
    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
 
25370
  fi
 
25371
 
 
25372
 
 
25373
 
 
25374
 
 
25375
 
 
25376
 
 
25377
 
 
25378
  { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
 
25379
echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
 
25380
if test "${ac_cv_type_ptrdiff_t+set}" = set; then
 
25381
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25382
else
 
25383
  cat >conftest.$ac_ext <<_ACEOF
 
25384
/* confdefs.h.  */
 
25385
_ACEOF
 
25386
cat confdefs.h >>conftest.$ac_ext
 
25387
cat >>conftest.$ac_ext <<_ACEOF
 
25388
/* end confdefs.h.  */
 
25389
$ac_includes_default
 
25390
typedef ptrdiff_t ac__type_new_;
 
25391
int
 
25392
main ()
 
25393
{
 
25394
if ((ac__type_new_ *) 0)
 
25395
  return 0;
 
25396
if (sizeof (ac__type_new_))
 
25397
  return 0;
 
25398
  ;
 
25399
  return 0;
 
25400
}
 
25401
_ACEOF
 
25402
rm -f conftest.$ac_objext
 
25403
if { (ac_try="$ac_compile"
 
25404
case "(($ac_try" in
 
25405
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25406
  *) ac_try_echo=$ac_try;;
 
25407
esac
 
25408
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25409
  (eval "$ac_compile") 2>conftest.er1
 
25410
  ac_status=$?
 
25411
  grep -v '^ *+' conftest.er1 >conftest.err
 
25412
  rm -f conftest.er1
 
25413
  cat conftest.err >&5
 
25414
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25415
  (exit $ac_status); } && {
 
25416
         test -z "$ac_c_werror_flag" ||
 
25417
         test ! -s conftest.err
 
25418
       } && test -s conftest.$ac_objext; then
 
25419
  ac_cv_type_ptrdiff_t=yes
 
25420
else
 
25421
  echo "$as_me: failed program was:" >&5
 
25422
sed 's/^/| /' conftest.$ac_ext >&5
 
25423
 
 
25424
        ac_cv_type_ptrdiff_t=no
 
25425
fi
 
25426
 
 
25427
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25428
fi
 
25429
{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
 
25430
echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
 
25431
if test $ac_cv_type_ptrdiff_t = yes; then
 
25432
  :
 
25433
else
 
25434
 
 
25435
cat >>confdefs.h <<\_ACEOF
 
25436
#define ptrdiff_t long
 
25437
_ACEOF
 
25438
 
 
25439
 
 
25440
fi
 
25441
 
 
25442
 
 
25443
 
 
25444
 
 
25445
for ac_header in stddef.h stdlib.h string.h
 
25446
do
 
25447
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
25448
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
25449
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
25450
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
25451
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
25452
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25453
fi
 
25454
ac_res=`eval echo '${'$as_ac_Header'}'`
 
25455
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
25456
echo "${ECHO_T}$ac_res" >&6; }
 
25457
else
 
25458
  # Is the header compilable?
 
25459
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
25460
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
25461
cat >conftest.$ac_ext <<_ACEOF
 
25462
/* confdefs.h.  */
 
25463
_ACEOF
 
25464
cat confdefs.h >>conftest.$ac_ext
 
25465
cat >>conftest.$ac_ext <<_ACEOF
 
25466
/* end confdefs.h.  */
 
25467
$ac_includes_default
 
25468
#include <$ac_header>
 
25469
_ACEOF
 
25470
rm -f conftest.$ac_objext
 
25471
if { (ac_try="$ac_compile"
 
25472
case "(($ac_try" in
 
25473
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25474
  *) ac_try_echo=$ac_try;;
 
25475
esac
 
25476
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25477
  (eval "$ac_compile") 2>conftest.er1
 
25478
  ac_status=$?
 
25479
  grep -v '^ *+' conftest.er1 >conftest.err
 
25480
  rm -f conftest.er1
 
25481
  cat conftest.err >&5
 
25482
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25483
  (exit $ac_status); } && {
 
25484
         test -z "$ac_c_werror_flag" ||
 
25485
         test ! -s conftest.err
 
25486
       } && test -s conftest.$ac_objext; then
 
25487
  ac_header_compiler=yes
 
25488
else
 
25489
  echo "$as_me: failed program was:" >&5
 
25490
sed 's/^/| /' conftest.$ac_ext >&5
 
25491
 
 
25492
        ac_header_compiler=no
 
25493
fi
 
25494
 
 
25495
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25496
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
25497
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
25498
 
 
25499
# Is the header present?
 
25500
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
25501
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
25502
cat >conftest.$ac_ext <<_ACEOF
 
25503
/* confdefs.h.  */
 
25504
_ACEOF
 
25505
cat confdefs.h >>conftest.$ac_ext
 
25506
cat >>conftest.$ac_ext <<_ACEOF
 
25507
/* end confdefs.h.  */
 
25508
#include <$ac_header>
 
25509
_ACEOF
 
25510
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
25511
case "(($ac_try" in
 
25512
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25513
  *) ac_try_echo=$ac_try;;
 
25514
esac
 
25515
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25516
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
25517
  ac_status=$?
 
25518
  grep -v '^ *+' conftest.er1 >conftest.err
 
25519
  rm -f conftest.er1
 
25520
  cat conftest.err >&5
 
25521
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25522
  (exit $ac_status); } >/dev/null && {
 
25523
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
25524
         test ! -s conftest.err
 
25525
       }; then
 
25526
  ac_header_preproc=yes
 
25527
else
 
25528
  echo "$as_me: failed program was:" >&5
 
25529
sed 's/^/| /' conftest.$ac_ext >&5
 
25530
 
 
25531
  ac_header_preproc=no
 
25532
fi
 
25533
 
 
25534
rm -f conftest.err conftest.$ac_ext
 
25535
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
25536
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
25537
 
 
25538
# So?  What about this header?
 
25539
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
25540
  yes:no: )
 
25541
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
25542
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
25543
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
25544
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
25545
    ac_header_preproc=yes
 
25546
    ;;
 
25547
  no:yes:* )
 
25548
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
25549
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
25550
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
25551
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
25552
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
25553
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
25554
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
25555
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
25556
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
25557
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
25558
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
25559
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
25560
    ( cat <<\_ASBOX
 
25561
## -------------------------------- ##
 
25562
## Report this to sitecopy@lyra.org ##
 
25563
## -------------------------------- ##
 
25564
_ASBOX
 
25565
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
25566
    ;;
 
25567
esac
 
25568
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
25569
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
25570
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
25571
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25572
else
 
25573
  eval "$as_ac_Header=\$ac_header_preproc"
 
25574
fi
 
25575
ac_res=`eval echo '${'$as_ac_Header'}'`
 
25576
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
25577
echo "${ECHO_T}$ac_res" >&6; }
 
25578
 
 
25579
fi
 
25580
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
25581
  cat >>confdefs.h <<_ACEOF
 
25582
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
25583
_ACEOF
 
25584
 
 
25585
fi
 
25586
 
 
25587
done
 
25588
 
 
25589
 
 
25590
 
 
25591
 
 
25592
 
 
25593
 
 
25594
 
 
25595
 
 
25596
for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
 
25597
do
 
25598
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
25599
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
25600
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
25601
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
25602
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25603
else
 
25604
  cat >conftest.$ac_ext <<_ACEOF
 
25605
/* confdefs.h.  */
 
25606
_ACEOF
 
25607
cat confdefs.h >>conftest.$ac_ext
 
25608
cat >>conftest.$ac_ext <<_ACEOF
 
25609
/* end confdefs.h.  */
 
25610
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
25611
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
25612
#define $ac_func innocuous_$ac_func
 
25613
 
 
25614
/* System header to define __stub macros and hopefully few prototypes,
 
25615
    which can conflict with char $ac_func (); below.
 
25616
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
25617
    <limits.h> exists even on freestanding compilers.  */
 
25618
 
 
25619
#ifdef __STDC__
 
25620
# include <limits.h>
 
25621
#else
 
25622
# include <assert.h>
 
25623
#endif
 
25624
 
 
25625
#undef $ac_func
 
25626
 
 
25627
/* Override any GCC internal prototype to avoid an error.
 
25628
   Use char because int might match the return type of a GCC
 
25629
   builtin and then its argument prototype would still apply.  */
 
25630
#ifdef __cplusplus
 
25631
extern "C"
 
25632
#endif
 
25633
char $ac_func ();
 
25634
/* The GNU C library defines this for functions which it implements
 
25635
    to always fail with ENOSYS.  Some functions are actually named
 
25636
    something starting with __ and the normal name is an alias.  */
 
25637
#if defined __stub_$ac_func || defined __stub___$ac_func
 
25638
choke me
 
25639
#endif
 
25640
 
 
25641
int
 
25642
main ()
 
25643
{
 
25644
return $ac_func ();
 
25645
  ;
 
25646
  return 0;
 
25647
}
 
25648
_ACEOF
 
25649
rm -f conftest.$ac_objext conftest$ac_exeext
 
25650
if { (ac_try="$ac_link"
 
25651
case "(($ac_try" in
 
25652
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25653
  *) ac_try_echo=$ac_try;;
 
25654
esac
 
25655
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25656
  (eval "$ac_link") 2>conftest.er1
 
25657
  ac_status=$?
 
25658
  grep -v '^ *+' conftest.er1 >conftest.err
 
25659
  rm -f conftest.er1
 
25660
  cat conftest.err >&5
 
25661
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25662
  (exit $ac_status); } && {
 
25663
         test -z "$ac_c_werror_flag" ||
 
25664
         test ! -s conftest.err
 
25665
       } && test -s conftest$ac_exeext &&
 
25666
       $as_test_x conftest$ac_exeext; then
 
25667
  eval "$as_ac_var=yes"
 
25668
else
 
25669
  echo "$as_me: failed program was:" >&5
 
25670
sed 's/^/| /' conftest.$ac_ext >&5
 
25671
 
 
25672
        eval "$as_ac_var=no"
 
25673
fi
 
25674
 
 
25675
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
25676
      conftest$ac_exeext conftest.$ac_ext
 
25677
fi
 
25678
ac_res=`eval echo '${'$as_ac_var'}'`
 
25679
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
25680
echo "${ECHO_T}$ac_res" >&6; }
 
25681
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
25682
  cat >>confdefs.h <<_ACEOF
 
25683
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
25684
_ACEOF
 
25685
 
 
25686
fi
 
25687
done
 
25688
 
 
25689
 
 
25690
 
 
25691
  { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
 
25692
echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
 
25693
if test "${ac_cv_have_decl__snprintf+set}" = set; then
 
25694
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25695
else
 
25696
  cat >conftest.$ac_ext <<_ACEOF
 
25697
/* confdefs.h.  */
 
25698
_ACEOF
 
25699
cat confdefs.h >>conftest.$ac_ext
 
25700
cat >>conftest.$ac_ext <<_ACEOF
 
25701
/* end confdefs.h.  */
 
25702
#include <stdio.h>
 
25703
int
 
25704
main ()
 
25705
{
 
25706
 
 
25707
#ifndef _snprintf
 
25708
  char *p = (char *) _snprintf;
 
25709
#endif
 
25710
 
 
25711
  ;
 
25712
  return 0;
 
25713
}
 
25714
_ACEOF
 
25715
rm -f conftest.$ac_objext
 
25716
if { (ac_try="$ac_compile"
 
25717
case "(($ac_try" in
 
25718
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25719
  *) ac_try_echo=$ac_try;;
 
25720
esac
 
25721
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25722
  (eval "$ac_compile") 2>conftest.er1
 
25723
  ac_status=$?
 
25724
  grep -v '^ *+' conftest.er1 >conftest.err
 
25725
  rm -f conftest.er1
 
25726
  cat conftest.err >&5
 
25727
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25728
  (exit $ac_status); } && {
 
25729
         test -z "$ac_c_werror_flag" ||
 
25730
         test ! -s conftest.err
 
25731
       } && test -s conftest.$ac_objext; then
 
25732
  ac_cv_have_decl__snprintf=yes
 
25733
else
 
25734
  echo "$as_me: failed program was:" >&5
 
25735
sed 's/^/| /' conftest.$ac_ext >&5
 
25736
 
 
25737
        ac_cv_have_decl__snprintf=no
 
25738
fi
 
25739
 
 
25740
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25741
fi
 
25742
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
 
25743
echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
 
25744
  if test $ac_cv_have_decl__snprintf = yes; then
 
25745
    gt_value=1
 
25746
  else
 
25747
    gt_value=0
 
25748
  fi
 
25749
 
 
25750
cat >>confdefs.h <<_ACEOF
 
25751
#define HAVE_DECL__SNPRINTF $gt_value
 
25752
_ACEOF
 
25753
 
 
25754
 
 
25755
 
 
25756
  { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
 
25757
echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
 
25758
if test "${ac_cv_have_decl__snwprintf+set}" = set; then
 
25759
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25760
else
 
25761
  cat >conftest.$ac_ext <<_ACEOF
 
25762
/* confdefs.h.  */
 
25763
_ACEOF
 
25764
cat confdefs.h >>conftest.$ac_ext
 
25765
cat >>conftest.$ac_ext <<_ACEOF
 
25766
/* end confdefs.h.  */
 
25767
#include <stdio.h>
 
25768
int
 
25769
main ()
 
25770
{
 
25771
 
 
25772
#ifndef _snwprintf
 
25773
  char *p = (char *) _snwprintf;
 
25774
#endif
 
25775
 
 
25776
  ;
 
25777
  return 0;
 
25778
}
 
25779
_ACEOF
 
25780
rm -f conftest.$ac_objext
 
25781
if { (ac_try="$ac_compile"
 
25782
case "(($ac_try" in
 
25783
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25784
  *) ac_try_echo=$ac_try;;
 
25785
esac
 
25786
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25787
  (eval "$ac_compile") 2>conftest.er1
 
25788
  ac_status=$?
 
25789
  grep -v '^ *+' conftest.er1 >conftest.err
 
25790
  rm -f conftest.er1
 
25791
  cat conftest.err >&5
 
25792
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25793
  (exit $ac_status); } && {
 
25794
         test -z "$ac_c_werror_flag" ||
 
25795
         test ! -s conftest.err
 
25796
       } && test -s conftest.$ac_objext; then
 
25797
  ac_cv_have_decl__snwprintf=yes
 
25798
else
 
25799
  echo "$as_me: failed program was:" >&5
 
25800
sed 's/^/| /' conftest.$ac_ext >&5
 
25801
 
 
25802
        ac_cv_have_decl__snwprintf=no
 
25803
fi
 
25804
 
 
25805
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25806
fi
 
25807
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
 
25808
echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
 
25809
  if test $ac_cv_have_decl__snwprintf = yes; then
 
25810
    gt_value=1
 
25811
  else
 
25812
    gt_value=0
 
25813
  fi
 
25814
 
 
25815
cat >>confdefs.h <<_ACEOF
 
25816
#define HAVE_DECL__SNWPRINTF $gt_value
 
25817
_ACEOF
 
25818
 
 
25819
 
 
25820
 
 
25821
 
 
25822
  { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
 
25823
echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
 
25824
if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
 
25825
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25826
else
 
25827
  cat >conftest.$ac_ext <<_ACEOF
 
25828
/* confdefs.h.  */
 
25829
_ACEOF
 
25830
cat confdefs.h >>conftest.$ac_ext
 
25831
cat >>conftest.$ac_ext <<_ACEOF
 
25832
/* end confdefs.h.  */
 
25833
#include <stdio.h>
 
25834
int
 
25835
main ()
 
25836
{
 
25837
 
 
25838
#ifndef getc_unlocked
 
25839
  char *p = (char *) getc_unlocked;
 
25840
#endif
 
25841
 
 
25842
  ;
 
25843
  return 0;
 
25844
}
 
25845
_ACEOF
 
25846
rm -f conftest.$ac_objext
 
25847
if { (ac_try="$ac_compile"
 
25848
case "(($ac_try" in
 
25849
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25850
  *) ac_try_echo=$ac_try;;
 
25851
esac
 
25852
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25853
  (eval "$ac_compile") 2>conftest.er1
 
25854
  ac_status=$?
 
25855
  grep -v '^ *+' conftest.er1 >conftest.err
 
25856
  rm -f conftest.er1
 
25857
  cat conftest.err >&5
 
25858
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25859
  (exit $ac_status); } && {
 
25860
         test -z "$ac_c_werror_flag" ||
 
25861
         test ! -s conftest.err
 
25862
       } && test -s conftest.$ac_objext; then
 
25863
  ac_cv_have_decl_getc_unlocked=yes
 
25864
else
 
25865
  echo "$as_me: failed program was:" >&5
 
25866
sed 's/^/| /' conftest.$ac_ext >&5
 
25867
 
 
25868
        ac_cv_have_decl_getc_unlocked=no
 
25869
fi
 
25870
 
 
25871
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25872
fi
 
25873
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
 
25874
echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
 
25875
  if test $ac_cv_have_decl_getc_unlocked = yes; then
 
25876
    gt_value=1
 
25877
  else
 
25878
    gt_value=0
 
25879
  fi
 
25880
 
 
25881
cat >>confdefs.h <<_ACEOF
 
25882
#define HAVE_DECL_GETC_UNLOCKED $gt_value
 
25883
_ACEOF
 
25884
 
 
25885
 
 
25886
 
 
25887
  case $gt_cv_func_printf_posix in
 
25888
    *yes) HAVE_POSIX_PRINTF=1 ;;
 
25889
    *) HAVE_POSIX_PRINTF=0 ;;
 
25890
  esac
 
25891
 
 
25892
  if test "$ac_cv_func_asprintf" = yes; then
 
25893
    HAVE_ASPRINTF=1
 
25894
  else
 
25895
    HAVE_ASPRINTF=0
 
25896
  fi
 
25897
 
 
25898
  if test "$ac_cv_func_snprintf" = yes; then
 
25899
    HAVE_SNPRINTF=1
 
25900
  else
 
25901
    HAVE_SNPRINTF=0
 
25902
  fi
 
25903
 
 
25904
  if test "$ac_cv_func_wprintf" = yes; then
 
25905
    HAVE_WPRINTF=1
 
25906
  else
 
25907
    HAVE_WPRINTF=0
 
25908
  fi
 
25909
 
 
25910
 
 
25911
 
 
25912
  { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
 
25913
echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
 
25914
if test "${am_cv_langinfo_codeset+set}" = set; then
 
25915
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25916
else
 
25917
  cat >conftest.$ac_ext <<_ACEOF
 
25918
/* confdefs.h.  */
 
25919
_ACEOF
 
25920
cat confdefs.h >>conftest.$ac_ext
 
25921
cat >>conftest.$ac_ext <<_ACEOF
 
25922
/* end confdefs.h.  */
 
25923
#include <langinfo.h>
 
25924
int
 
25925
main ()
 
25926
{
 
25927
char* cs = nl_langinfo(CODESET); return !cs;
 
25928
  ;
 
25929
  return 0;
 
25930
}
 
25931
_ACEOF
 
25932
rm -f conftest.$ac_objext conftest$ac_exeext
 
25933
if { (ac_try="$ac_link"
 
25934
case "(($ac_try" in
 
25935
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25936
  *) ac_try_echo=$ac_try;;
 
25937
esac
 
25938
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25939
  (eval "$ac_link") 2>conftest.er1
 
25940
  ac_status=$?
 
25941
  grep -v '^ *+' conftest.er1 >conftest.err
 
25942
  rm -f conftest.er1
 
25943
  cat conftest.err >&5
 
25944
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25945
  (exit $ac_status); } && {
 
25946
         test -z "$ac_c_werror_flag" ||
 
25947
         test ! -s conftest.err
 
25948
       } && test -s conftest$ac_exeext &&
 
25949
       $as_test_x conftest$ac_exeext; then
 
25950
  am_cv_langinfo_codeset=yes
 
25951
else
 
25952
  echo "$as_me: failed program was:" >&5
 
25953
sed 's/^/| /' conftest.$ac_ext >&5
 
25954
 
 
25955
        am_cv_langinfo_codeset=no
 
25956
fi
 
25957
 
 
25958
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
25959
      conftest$ac_exeext conftest.$ac_ext
 
25960
 
 
25961
fi
 
25962
{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
 
25963
echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
 
25964
  if test $am_cv_langinfo_codeset = yes; then
 
25965
 
 
25966
cat >>confdefs.h <<\_ACEOF
 
25967
#define HAVE_LANGINFO_CODESET 1
 
25968
_ACEOF
 
25969
 
 
25970
  fi
 
25971
 
 
25972
 
 
25973
  { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
 
25974
echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
 
25975
if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
 
25976
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25977
else
 
25978
  cat >conftest.$ac_ext <<_ACEOF
 
25979
/* confdefs.h.  */
 
25980
_ACEOF
 
25981
cat confdefs.h >>conftest.$ac_ext
 
25982
cat >>conftest.$ac_ext <<_ACEOF
 
25983
/* end confdefs.h.  */
 
25984
#include <locale.h>
 
25985
int
 
25986
main ()
 
25987
{
 
25988
return LC_MESSAGES
 
25989
  ;
 
25990
  return 0;
 
25991
}
 
25992
_ACEOF
 
25993
rm -f conftest.$ac_objext conftest$ac_exeext
 
25994
if { (ac_try="$ac_link"
 
25995
case "(($ac_try" in
 
25996
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25997
  *) ac_try_echo=$ac_try;;
 
25998
esac
 
25999
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26000
  (eval "$ac_link") 2>conftest.er1
 
26001
  ac_status=$?
 
26002
  grep -v '^ *+' conftest.er1 >conftest.err
 
26003
  rm -f conftest.er1
 
26004
  cat conftest.err >&5
 
26005
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26006
  (exit $ac_status); } && {
 
26007
         test -z "$ac_c_werror_flag" ||
 
26008
         test ! -s conftest.err
 
26009
       } && test -s conftest$ac_exeext &&
 
26010
       $as_test_x conftest$ac_exeext; then
 
26011
  gt_cv_val_LC_MESSAGES=yes
 
26012
else
 
26013
  echo "$as_me: failed program was:" >&5
 
26014
sed 's/^/| /' conftest.$ac_ext >&5
 
26015
 
 
26016
        gt_cv_val_LC_MESSAGES=no
 
26017
fi
 
26018
 
 
26019
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
26020
      conftest$ac_exeext conftest.$ac_ext
 
26021
fi
 
26022
{ echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
 
26023
echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
 
26024
  if test $gt_cv_val_LC_MESSAGES = yes; then
 
26025
 
 
26026
cat >>confdefs.h <<\_ACEOF
 
26027
#define HAVE_LC_MESSAGES 1
 
26028
_ACEOF
 
26029
 
 
26030
  fi
 
26031
 
 
26032
 
 
26033
                if test "$enable_shared" = yes; then
 
26034
    case "$host_os" in
 
26035
      mingw* | cygwin*) is_woe32dll=yes ;;
 
26036
      *) is_woe32dll=no ;;
 
26037
    esac
 
26038
  else
 
26039
    is_woe32dll=no
 
26040
  fi
 
26041
  WOE32DLL=$is_woe32dll
 
26042
 
 
26043
 
 
26044
      case "$host_os" in
 
26045
    mingw* | cygwin*) is_woe32=yes ;;
 
26046
    *) is_woe32=no ;;
 
26047
  esac
 
26048
  WOE32=$is_woe32
 
26049
 
 
26050
  if test $WOE32 = yes; then
 
26051
        if test -n "$ac_tool_prefix"; then
 
26052
  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
 
26053
set dummy ${ac_tool_prefix}windres; ac_word=$2
 
26054
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
26055
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
26056
if test "${ac_cv_prog_WINDRES+set}" = set; then
 
26057
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26058
else
 
26059
  if test -n "$WINDRES"; then
 
26060
  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
 
26061
else
 
26062
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
26063
for as_dir in $PATH
 
26064
do
 
26065
  IFS=$as_save_IFS
 
26066
  test -z "$as_dir" && as_dir=.
 
26067
  for ac_exec_ext in '' $ac_executable_extensions; do
 
26068
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
26069
    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
 
26070
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
26071
    break 2
 
26072
  fi
 
26073
done
 
26074
done
 
26075
IFS=$as_save_IFS
 
26076
 
 
26077
fi
 
26078
fi
 
26079
WINDRES=$ac_cv_prog_WINDRES
 
26080
if test -n "$WINDRES"; then
 
26081
  { echo "$as_me:$LINENO: result: $WINDRES" >&5
 
26082
echo "${ECHO_T}$WINDRES" >&6; }
 
26083
else
 
26084
  { echo "$as_me:$LINENO: result: no" >&5
 
26085
echo "${ECHO_T}no" >&6; }
 
26086
fi
 
26087
 
 
26088
 
 
26089
fi
 
26090
if test -z "$ac_cv_prog_WINDRES"; then
 
26091
  ac_ct_WINDRES=$WINDRES
 
26092
  # Extract the first word of "windres", so it can be a program name with args.
 
26093
set dummy windres; ac_word=$2
 
26094
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
26095
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
26096
if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
 
26097
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26098
else
 
26099
  if test -n "$ac_ct_WINDRES"; then
 
26100
  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
 
26101
else
 
26102
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
26103
for as_dir in $PATH
 
26104
do
 
26105
  IFS=$as_save_IFS
 
26106
  test -z "$as_dir" && as_dir=.
 
26107
  for ac_exec_ext in '' $ac_executable_extensions; do
 
26108
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
26109
    ac_cv_prog_ac_ct_WINDRES="windres"
 
26110
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
26111
    break 2
 
26112
  fi
 
26113
done
 
26114
done
 
26115
IFS=$as_save_IFS
 
26116
 
 
26117
fi
 
26118
fi
 
26119
ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
 
26120
if test -n "$ac_ct_WINDRES"; then
 
26121
  { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
 
26122
echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
 
26123
else
 
26124
  { echo "$as_me:$LINENO: result: no" >&5
 
26125
echo "${ECHO_T}no" >&6; }
 
26126
fi
 
26127
 
 
26128
  if test "x$ac_ct_WINDRES" = x; then
 
26129
    WINDRES=""
 
26130
  else
 
26131
    case $cross_compiling:$ac_tool_warned in
 
26132
yes:)
 
26133
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
26134
whose name does not start with the host triplet.  If you think this
 
26135
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
26136
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
26137
whose name does not start with the host triplet.  If you think this
 
26138
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
26139
ac_tool_warned=yes ;;
 
26140
esac
 
26141
    WINDRES=$ac_ct_WINDRES
 
26142
  fi
 
26143
else
 
26144
  WINDRES="$ac_cv_prog_WINDRES"
 
26145
fi
 
26146
 
 
26147
  fi
 
26148
 
 
26149
              case "$host_os" in
 
26150
    hpux*) LTLIBC="" ;;
 
26151
    *)     LTLIBC="-lc" ;;
 
26152
  esac
 
26153
 
 
26154
 
 
26155
 
 
26156
 
 
26157
 
 
26158
 
 
26159
 
 
26160
 
 
26161
 
 
26162
 
 
26163
 
 
26164
 
 
26165
 
 
26166
 
 
26167
 
 
26168
 
 
26169
 
 
26170
 
 
26171
 
 
26172
 
 
26173
 
 
26174
 
 
26175
 
 
26176
 
 
26177
 
 
26178
 
 
26179
 
 
26180
    { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
 
26181
echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
 
26182
if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
 
26183
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26184
else
 
26185
  gt_save_LIBS="$LIBS"
 
26186
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
 
26187
     cat >conftest.$ac_ext <<_ACEOF
 
26188
/* confdefs.h.  */
 
26189
_ACEOF
 
26190
cat confdefs.h >>conftest.$ac_ext
 
26191
cat >>conftest.$ac_ext <<_ACEOF
 
26192
/* end confdefs.h.  */
 
26193
#include <CoreFoundation/CFPreferences.h>
 
26194
int
 
26195
main ()
 
26196
{
 
26197
CFPreferencesCopyAppValue(NULL, NULL)
 
26198
  ;
 
26199
  return 0;
 
26200
}
 
26201
_ACEOF
 
26202
rm -f conftest.$ac_objext conftest$ac_exeext
 
26203
if { (ac_try="$ac_link"
 
26204
case "(($ac_try" in
 
26205
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26206
  *) ac_try_echo=$ac_try;;
 
26207
esac
 
26208
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26209
  (eval "$ac_link") 2>conftest.er1
 
26210
  ac_status=$?
 
26211
  grep -v '^ *+' conftest.er1 >conftest.err
 
26212
  rm -f conftest.er1
 
26213
  cat conftest.err >&5
 
26214
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26215
  (exit $ac_status); } && {
 
26216
         test -z "$ac_c_werror_flag" ||
 
26217
         test ! -s conftest.err
 
26218
       } && test -s conftest$ac_exeext &&
 
26219
       $as_test_x conftest$ac_exeext; then
 
26220
  gt_cv_func_CFPreferencesCopyAppValue=yes
 
26221
else
 
26222
  echo "$as_me: failed program was:" >&5
 
26223
sed 's/^/| /' conftest.$ac_ext >&5
 
26224
 
 
26225
        gt_cv_func_CFPreferencesCopyAppValue=no
 
26226
fi
 
26227
 
 
26228
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
26229
      conftest$ac_exeext conftest.$ac_ext
 
26230
     LIBS="$gt_save_LIBS"
 
26231
fi
 
26232
{ echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
 
26233
echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
 
26234
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
 
26235
 
 
26236
cat >>confdefs.h <<\_ACEOF
 
26237
#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
 
26238
_ACEOF
 
26239
 
 
26240
  fi
 
26241
    { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
 
26242
echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
 
26243
if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
 
26244
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26245
else
 
26246
  gt_save_LIBS="$LIBS"
 
26247
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
 
26248
     cat >conftest.$ac_ext <<_ACEOF
 
26249
/* confdefs.h.  */
 
26250
_ACEOF
 
26251
cat confdefs.h >>conftest.$ac_ext
 
26252
cat >>conftest.$ac_ext <<_ACEOF
 
26253
/* end confdefs.h.  */
 
26254
#include <CoreFoundation/CFLocale.h>
 
26255
int
 
26256
main ()
 
26257
{
 
26258
CFLocaleCopyCurrent();
 
26259
  ;
 
26260
  return 0;
 
26261
}
 
26262
_ACEOF
 
26263
rm -f conftest.$ac_objext conftest$ac_exeext
 
26264
if { (ac_try="$ac_link"
 
26265
case "(($ac_try" in
 
26266
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26267
  *) ac_try_echo=$ac_try;;
 
26268
esac
 
26269
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26270
  (eval "$ac_link") 2>conftest.er1
 
26271
  ac_status=$?
 
26272
  grep -v '^ *+' conftest.er1 >conftest.err
 
26273
  rm -f conftest.er1
 
26274
  cat conftest.err >&5
 
26275
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26276
  (exit $ac_status); } && {
 
26277
         test -z "$ac_c_werror_flag" ||
 
26278
         test ! -s conftest.err
 
26279
       } && test -s conftest$ac_exeext &&
 
26280
       $as_test_x conftest$ac_exeext; then
 
26281
  gt_cv_func_CFLocaleCopyCurrent=yes
 
26282
else
 
26283
  echo "$as_me: failed program was:" >&5
 
26284
sed 's/^/| /' conftest.$ac_ext >&5
 
26285
 
 
26286
        gt_cv_func_CFLocaleCopyCurrent=no
 
26287
fi
 
26288
 
 
26289
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
26290
      conftest$ac_exeext conftest.$ac_ext
 
26291
     LIBS="$gt_save_LIBS"
 
26292
fi
 
26293
{ echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
 
26294
echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
 
26295
  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
 
26296
 
 
26297
cat >>confdefs.h <<\_ACEOF
 
26298
#define HAVE_CFLOCALECOPYCURRENT 1
 
26299
_ACEOF
 
26300
 
 
26301
  fi
 
26302
  INTL_MACOSX_LIBS=
 
26303
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
 
26304
    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
 
26305
  fi
 
26306
 
 
26307
 
21363
26308
 
21364
26309
 
21365
26310
 
21371
26316
  LTLIBINTL=
21372
26317
  POSUB=
21373
26318
 
 
26319
    case " $gt_needs " in
 
26320
    *" need-formatstring-macros "*) gt_api_version=3 ;;
 
26321
    *" need-ngettext "*) gt_api_version=2 ;;
 
26322
    *) gt_api_version=1 ;;
 
26323
  esac
 
26324
  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
 
26325
  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
 
26326
 
21374
26327
    if test "$USE_NLS" = "yes"; then
21375
26328
    gt_use_preinstalled_gnugettext=no
21376
26329
 
21377
 
      echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
21378
 
echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
 
26330
      { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
 
26331
echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
21379
26332
 
21380
 
# Check whether --with-included-gettext or --without-included-gettext was given.
 
26333
# Check whether --with-included-gettext was given.
21381
26334
if test "${with_included_gettext+set}" = set; then
21382
 
  withval="$with_included_gettext"
21383
 
  nls_cv_force_use_gnu_gettext=$withval
 
26335
  withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
21384
26336
else
21385
26337
  nls_cv_force_use_gnu_gettext=no
21386
 
fi;
21387
 
      echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
21388
 
echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
 
26338
fi
 
26339
 
 
26340
      { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
 
26341
echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
21389
26342
 
21390
26343
      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
21391
26344
      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
21392
26345
 
21393
26346
 
21394
 
 
21395
 
 
21396
 
 
21397
 
 
21398
 
        echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
21399
 
echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
21400
 
if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
 
26347
        if test $gt_api_version -ge 3; then
 
26348
          gt_revision_test_code='
 
26349
#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
 
26350
#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
 
26351
#endif
 
26352
typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
 
26353
'
 
26354
        else
 
26355
          gt_revision_test_code=
 
26356
        fi
 
26357
        if test $gt_api_version -ge 2; then
 
26358
          gt_expression_test_code=' + * ngettext ("", "", 0)'
 
26359
        else
 
26360
          gt_expression_test_code=
 
26361
        fi
 
26362
 
 
26363
        { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
 
26364
echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
 
26365
if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
21401
26366
  echo $ECHO_N "(cached) $ECHO_C" >&6
21402
26367
else
21403
26368
  cat >conftest.$ac_ext <<_ACEOF
21407
26372
cat >>conftest.$ac_ext <<_ACEOF
21408
26373
/* end confdefs.h.  */
21409
26374
#include <libintl.h>
 
26375
$gt_revision_test_code
21410
26376
extern int _nl_msg_cat_cntr;
21411
26377
extern int *_nl_domain_bindings;
21412
26378
int
21413
26379
main ()
21414
26380
{
21415
26381
bindtextdomain ("", "");
21416
 
return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
 
26382
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
21417
26383
  ;
21418
26384
  return 0;
21419
26385
}
21420
26386
_ACEOF
21421
26387
rm -f conftest.$ac_objext conftest$ac_exeext
21422
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21423
 
  (eval $ac_link) 2>conftest.er1
 
26388
if { (ac_try="$ac_link"
 
26389
case "(($ac_try" in
 
26390
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26391
  *) ac_try_echo=$ac_try;;
 
26392
esac
 
26393
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26394
  (eval "$ac_link") 2>conftest.er1
21424
26395
  ac_status=$?
21425
26396
  grep -v '^ *+' conftest.er1 >conftest.err
21426
26397
  rm -f conftest.er1
21427
26398
  cat conftest.err >&5
21428
26399
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429
 
  (exit $ac_status); } &&
21430
 
         { ac_try='test -z "$ac_c_werror_flag"
21431
 
                         || test ! -s conftest.err'
21432
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21433
 
  (eval $ac_try) 2>&5
21434
 
  ac_status=$?
21435
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436
 
  (exit $ac_status); }; } &&
21437
 
         { ac_try='test -s conftest$ac_exeext'
21438
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21439
 
  (eval $ac_try) 2>&5
21440
 
  ac_status=$?
21441
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442
 
  (exit $ac_status); }; }; then
21443
 
  gt_cv_func_gnugettext1_libc=yes
 
26400
  (exit $ac_status); } && {
 
26401
         test -z "$ac_c_werror_flag" ||
 
26402
         test ! -s conftest.err
 
26403
       } && test -s conftest$ac_exeext &&
 
26404
       $as_test_x conftest$ac_exeext; then
 
26405
  eval "$gt_func_gnugettext_libc=yes"
21444
26406
else
21445
26407
  echo "$as_me: failed program was:" >&5
21446
26408
sed 's/^/| /' conftest.$ac_ext >&5
21447
26409
 
21448
 
gt_cv_func_gnugettext1_libc=no
 
26410
        eval "$gt_func_gnugettext_libc=no"
21449
26411
fi
21450
 
rm -f conftest.err conftest.$ac_objext \
 
26412
 
 
26413
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21451
26414
      conftest$ac_exeext conftest.$ac_ext
21452
26415
fi
21453
 
echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
21454
 
echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
21455
 
 
21456
 
        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
 
26416
ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
 
26417
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
26418
echo "${ECHO_T}$ac_res" >&6; }
 
26419
 
 
26420
        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
 
26421
 
 
26422
 
21457
26423
 
21458
26424
 
21459
26425
 
21471
26437
  prefix="$acl_save_prefix"
21472
26438
 
21473
26439
 
21474
 
# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
 
26440
# Check whether --with-libintl-prefix was given.
21475
26441
if test "${with_libintl_prefix+set}" = set; then
21476
 
  withval="$with_libintl_prefix"
21477
 
 
 
26442
  withval=$with_libintl_prefix;
21478
26443
    if test "X$withval" = "Xno"; then
21479
26444
      use_additional=no
21480
26445
    else
21493
26458
 
21494
26459
      else
21495
26460
        additional_includedir="$withval/include"
21496
 
        additional_libdir="$withval/lib"
 
26461
        additional_libdir="$withval/$acl_libdirstem"
21497
26462
      fi
21498
26463
    fi
21499
26464
 
21500
 
fi;
 
26465
fi
 
26466
 
21501
26467
      LIBINTL=
21502
26468
  LTLIBINTL=
21503
26469
  INCINTL=
 
26470
  LIBINTL_PREFIX=
21504
26471
  rpathdirs=
21505
26472
  ltrpathdirs=
21506
26473
  names_already_handled=
21534
26501
          found_la=
21535
26502
          found_so=
21536
26503
          found_a=
 
26504
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
 
26505
          if test -n "$acl_shlibext"; then
 
26506
            shrext=".$acl_shlibext"             # typically: shrext=.so
 
26507
          else
 
26508
            shrext=
 
26509
          fi
21537
26510
          if test $use_additional = yes; then
21538
 
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21539
 
              found_dir="$additional_libdir"
21540
 
              found_so="$additional_libdir/lib$name.$shlibext"
21541
 
              if test -f "$additional_libdir/lib$name.la"; then
21542
 
                found_la="$additional_libdir/lib$name.la"
21543
 
              fi
21544
 
            else
21545
 
              if test -f "$additional_libdir/lib$name.$libext"; then
21546
 
                found_dir="$additional_libdir"
21547
 
                found_a="$additional_libdir/lib$name.$libext"
21548
 
                if test -f "$additional_libdir/lib$name.la"; then
21549
 
                  found_la="$additional_libdir/lib$name.la"
 
26511
            dir="$additional_libdir"
 
26512
                                    if test -n "$acl_shlibext"; then
 
26513
              if test -f "$dir/$libname$shrext"; then
 
26514
                found_dir="$dir"
 
26515
                found_so="$dir/$libname$shrext"
 
26516
              else
 
26517
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
26518
                  ver=`(cd "$dir" && \
 
26519
                        for f in "$libname$shrext".*; do echo "$f"; done \
 
26520
                        | sed -e "s,^$libname$shrext\\\\.,," \
 
26521
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
26522
                        | sed 1q ) 2>/dev/null`
 
26523
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
26524
                    found_dir="$dir"
 
26525
                    found_so="$dir/$libname$shrext.$ver"
 
26526
                  fi
 
26527
                else
 
26528
                  eval library_names=\"$acl_library_names_spec\"
 
26529
                  for f in $library_names; do
 
26530
                    if test -f "$dir/$f"; then
 
26531
                      found_dir="$dir"
 
26532
                      found_so="$dir/$f"
 
26533
                      break
 
26534
                    fi
 
26535
                  done
21550
26536
                fi
21551
26537
              fi
21552
26538
            fi
 
26539
                        if test "X$found_dir" = "X"; then
 
26540
              if test -f "$dir/$libname.$acl_libext"; then
 
26541
                found_dir="$dir"
 
26542
                found_a="$dir/$libname.$acl_libext"
 
26543
              fi
 
26544
            fi
 
26545
            if test "X$found_dir" != "X"; then
 
26546
              if test -f "$dir/$libname.la"; then
 
26547
                found_la="$dir/$libname.la"
 
26548
              fi
 
26549
            fi
21553
26550
          fi
21554
26551
          if test "X$found_dir" = "X"; then
21555
26552
            for x in $LDFLAGS $LTLIBINTL; do
21565
26562
              case "$x" in
21566
26563
                -L*)
21567
26564
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
21568
 
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21569
 
                    found_dir="$dir"
21570
 
                    found_so="$dir/lib$name.$shlibext"
21571
 
                    if test -f "$dir/lib$name.la"; then
21572
 
                      found_la="$dir/lib$name.la"
21573
 
                    fi
21574
 
                  else
21575
 
                    if test -f "$dir/lib$name.$libext"; then
 
26565
                                    if test -n "$acl_shlibext"; then
 
26566
                    if test -f "$dir/$libname$shrext"; then
21576
26567
                      found_dir="$dir"
21577
 
                      found_a="$dir/lib$name.$libext"
21578
 
                      if test -f "$dir/lib$name.la"; then
21579
 
                        found_la="$dir/lib$name.la"
 
26568
                      found_so="$dir/$libname$shrext"
 
26569
                    else
 
26570
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
26571
                        ver=`(cd "$dir" && \
 
26572
                              for f in "$libname$shrext".*; do echo "$f"; done \
 
26573
                              | sed -e "s,^$libname$shrext\\\\.,," \
 
26574
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
26575
                              | sed 1q ) 2>/dev/null`
 
26576
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
26577
                          found_dir="$dir"
 
26578
                          found_so="$dir/$libname$shrext.$ver"
 
26579
                        fi
 
26580
                      else
 
26581
                        eval library_names=\"$acl_library_names_spec\"
 
26582
                        for f in $library_names; do
 
26583
                          if test -f "$dir/$f"; then
 
26584
                            found_dir="$dir"
 
26585
                            found_so="$dir/$f"
 
26586
                            break
 
26587
                          fi
 
26588
                        done
21580
26589
                      fi
21581
26590
                    fi
21582
26591
                  fi
 
26592
                                    if test "X$found_dir" = "X"; then
 
26593
                    if test -f "$dir/$libname.$acl_libext"; then
 
26594
                      found_dir="$dir"
 
26595
                      found_a="$dir/$libname.$acl_libext"
 
26596
                    fi
 
26597
                  fi
 
26598
                  if test "X$found_dir" != "X"; then
 
26599
                    if test -f "$dir/$libname.la"; then
 
26600
                      found_la="$dir/$libname.la"
 
26601
                    fi
 
26602
                  fi
21583
26603
                  ;;
21584
26604
              esac
21585
26605
              if test "X$found_dir" != "X"; then
21590
26610
          if test "X$found_dir" != "X"; then
21591
26611
                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
21592
26612
            if test "X$found_so" != "X"; then
21593
 
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
 
26613
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
21594
26614
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21595
26615
              else
21596
26616
                                                                                haveit=
21603
26623
                if test -z "$haveit"; then
21604
26624
                  ltrpathdirs="$ltrpathdirs $found_dir"
21605
26625
                fi
21606
 
                                if test "$hardcode_direct" = yes; then
 
26626
                                if test "$acl_hardcode_direct" = yes; then
21607
26627
                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21608
26628
                else
21609
 
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
 
26629
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
21610
26630
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21611
26631
                                                            haveit=
21612
26632
                    for x in $rpathdirs; do
21638
26658
                    if test -z "$haveit"; then
21639
26659
                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21640
26660
                    fi
21641
 
                    if test "$hardcode_minus_L" != no; then
 
26661
                    if test "$acl_hardcode_minus_L" != no; then
21642
26662
                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21643
26663
                    else
21644
26664
                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21655
26675
            fi
21656
26676
                        additional_includedir=
21657
26677
            case "$found_dir" in
21658
 
              */lib | */lib/)
21659
 
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
 
26678
              */$acl_libdirstem | */$acl_libdirstem/)
 
26679
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
 
26680
                LIBINTL_PREFIX="$basedir"
21660
26681
                additional_includedir="$basedir/include"
21661
26682
                ;;
21662
26683
            esac
21705
26726
                case "$dep" in
21706
26727
                  -L*)
21707
26728
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21708
 
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
 
26729
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
21709
26730
                      haveit=
21710
 
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
 
26731
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
21711
26732
                        if test -n "$GCC"; then
21712
26733
                          case $host_os in
21713
26734
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21807
26828
    done
21808
26829
  done
21809
26830
  if test "X$rpathdirs" != "X"; then
21810
 
    if test -n "$hardcode_libdir_separator"; then
 
26831
    if test -n "$acl_hardcode_libdir_separator"; then
21811
26832
                        alldirs=
21812
26833
      for found_dir in $rpathdirs; do
21813
 
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
 
26834
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
21814
26835
      done
21815
26836
            acl_save_libdir="$libdir"
21816
26837
      libdir="$alldirs"
21817
 
      eval flag=\"$hardcode_libdir_flag_spec\"
 
26838
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
21818
26839
      libdir="$acl_save_libdir"
21819
26840
      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21820
26841
    else
21821
26842
            for found_dir in $rpathdirs; do
21822
26843
        acl_save_libdir="$libdir"
21823
26844
        libdir="$found_dir"
21824
 
        eval flag=\"$hardcode_libdir_flag_spec\"
 
26845
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
21825
26846
        libdir="$acl_save_libdir"
21826
26847
        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21827
26848
      done
21833
26854
    done
21834
26855
  fi
21835
26856
 
21836
 
          echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
21837
 
echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
21838
 
if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
 
26857
          { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
 
26858
echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
 
26859
if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
21839
26860
  echo $ECHO_N "(cached) $ECHO_C" >&6
21840
26861
else
21841
26862
  gt_save_CPPFLAGS="$CPPFLAGS"
21849
26870
cat >>conftest.$ac_ext <<_ACEOF
21850
26871
/* end confdefs.h.  */
21851
26872
#include <libintl.h>
 
26873
$gt_revision_test_code
21852
26874
extern int _nl_msg_cat_cntr;
21853
26875
extern
21854
26876
#ifdef __cplusplus
21859
26881
main ()
21860
26882
{
21861
26883
bindtextdomain ("", "");
21862
 
return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
 
26884
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21863
26885
  ;
21864
26886
  return 0;
21865
26887
}
21866
26888
_ACEOF
21867
26889
rm -f conftest.$ac_objext conftest$ac_exeext
21868
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21869
 
  (eval $ac_link) 2>conftest.er1
 
26890
if { (ac_try="$ac_link"
 
26891
case "(($ac_try" in
 
26892
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26893
  *) ac_try_echo=$ac_try;;
 
26894
esac
 
26895
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26896
  (eval "$ac_link") 2>conftest.er1
21870
26897
  ac_status=$?
21871
26898
  grep -v '^ *+' conftest.er1 >conftest.err
21872
26899
  rm -f conftest.er1
21873
26900
  cat conftest.err >&5
21874
26901
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875
 
  (exit $ac_status); } &&
21876
 
         { ac_try='test -z "$ac_c_werror_flag"
21877
 
                         || test ! -s conftest.err'
21878
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21879
 
  (eval $ac_try) 2>&5
21880
 
  ac_status=$?
21881
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21882
 
  (exit $ac_status); }; } &&
21883
 
         { ac_try='test -s conftest$ac_exeext'
21884
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21885
 
  (eval $ac_try) 2>&5
21886
 
  ac_status=$?
21887
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888
 
  (exit $ac_status); }; }; then
21889
 
  gt_cv_func_gnugettext1_libintl=yes
 
26902
  (exit $ac_status); } && {
 
26903
         test -z "$ac_c_werror_flag" ||
 
26904
         test ! -s conftest.err
 
26905
       } && test -s conftest$ac_exeext &&
 
26906
       $as_test_x conftest$ac_exeext; then
 
26907
  eval "$gt_func_gnugettext_libintl=yes"
21890
26908
else
21891
26909
  echo "$as_me: failed program was:" >&5
21892
26910
sed 's/^/| /' conftest.$ac_ext >&5
21893
26911
 
21894
 
gt_cv_func_gnugettext1_libintl=no
 
26912
        eval "$gt_func_gnugettext_libintl=no"
21895
26913
fi
21896
 
rm -f conftest.err conftest.$ac_objext \
 
26914
 
 
26915
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21897
26916
      conftest$ac_exeext conftest.$ac_ext
21898
 
                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
 
26917
                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
21899
26918
              LIBS="$LIBS $LIBICONV"
21900
26919
              cat >conftest.$ac_ext <<_ACEOF
21901
26920
/* confdefs.h.  */
21904
26923
cat >>conftest.$ac_ext <<_ACEOF
21905
26924
/* end confdefs.h.  */
21906
26925
#include <libintl.h>
 
26926
$gt_revision_test_code
21907
26927
extern int _nl_msg_cat_cntr;
21908
26928
extern
21909
26929
#ifdef __cplusplus
21914
26934
main ()
21915
26935
{
21916
26936
bindtextdomain ("", "");
21917
 
return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
 
26937
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21918
26938
  ;
21919
26939
  return 0;
21920
26940
}
21921
26941
_ACEOF
21922
26942
rm -f conftest.$ac_objext conftest$ac_exeext
21923
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21924
 
  (eval $ac_link) 2>conftest.er1
 
26943
if { (ac_try="$ac_link"
 
26944
case "(($ac_try" in
 
26945
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
26946
  *) ac_try_echo=$ac_try;;
 
26947
esac
 
26948
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
26949
  (eval "$ac_link") 2>conftest.er1
21925
26950
  ac_status=$?
21926
26951
  grep -v '^ *+' conftest.er1 >conftest.err
21927
26952
  rm -f conftest.er1
21928
26953
  cat conftest.err >&5
21929
26954
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930
 
  (exit $ac_status); } &&
21931
 
         { ac_try='test -z "$ac_c_werror_flag"
21932
 
                         || test ! -s conftest.err'
21933
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21934
 
  (eval $ac_try) 2>&5
21935
 
  ac_status=$?
21936
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937
 
  (exit $ac_status); }; } &&
21938
 
         { ac_try='test -s conftest$ac_exeext'
21939
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21940
 
  (eval $ac_try) 2>&5
21941
 
  ac_status=$?
21942
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21943
 
  (exit $ac_status); }; }; then
 
26955
  (exit $ac_status); } && {
 
26956
         test -z "$ac_c_werror_flag" ||
 
26957
         test ! -s conftest.err
 
26958
       } && test -s conftest$ac_exeext &&
 
26959
       $as_test_x conftest$ac_exeext; then
21944
26960
  LIBINTL="$LIBINTL $LIBICONV"
21945
26961
                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21946
 
                gt_cv_func_gnugettext1_libintl=yes
 
26962
                eval "$gt_func_gnugettext_libintl=yes"
21947
26963
 
21948
26964
else
21949
26965
  echo "$as_me: failed program was:" >&5
21950
26966
sed 's/^/| /' conftest.$ac_ext >&5
21951
26967
 
 
26968
 
21952
26969
fi
21953
 
rm -f conftest.err conftest.$ac_objext \
 
26970
 
 
26971
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21954
26972
      conftest$ac_exeext conftest.$ac_ext
21955
26973
            fi
21956
26974
            CPPFLAGS="$gt_save_CPPFLAGS"
21957
26975
            LIBS="$gt_save_LIBS"
21958
26976
fi
21959
 
echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
21960
 
echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
 
26977
ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'`
 
26978
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
26979
echo "${ECHO_T}$ac_res" >&6; }
21961
26980
        fi
21962
26981
 
21963
 
                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
21964
 
           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
 
26982
                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
 
26983
           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
21965
26984
                && test "$PACKAGE" != gettext-runtime \
21966
26985
                && test "$PACKAGE" != gettext-tools; }; then
21967
26986
          gt_use_preinstalled_gnugettext=yes
21980
26999
      if test "$nls_cv_use_gnu_gettext" = "yes"; then
21981
27000
                BUILD_INCLUDED_LIBINTL=yes
21982
27001
        USE_INCLUDED_LIBINTL=yes
21983
 
        LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
21984
 
        LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
 
27002
        LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
 
27003
        LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
21985
27004
        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
21986
27005
      fi
21987
27006
 
22012
27031
    fi
22013
27032
  fi
22014
27033
 
22015
 
  echo "$as_me:$LINENO: checking whether to use NLS" >&5
22016
 
echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
22017
 
  echo "$as_me:$LINENO: result: $USE_NLS" >&5
22018
 
echo "${ECHO_T}$USE_NLS" >&6
 
27034
  { echo "$as_me:$LINENO: checking whether to use NLS" >&5
 
27035
echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
 
27036
  { echo "$as_me:$LINENO: result: $USE_NLS" >&5
 
27037
echo "${ECHO_T}$USE_NLS" >&6; }
22019
27038
  if test "$USE_NLS" = "yes"; then
22020
 
    echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
22021
 
echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
 
27039
    { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
 
27040
echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
22022
27041
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
22023
 
      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
 
27042
      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
22024
27043
        gt_source="external libintl"
22025
27044
      else
22026
27045
        gt_source="libc"
22028
27047
    else
22029
27048
      gt_source="included intl directory"
22030
27049
    fi
22031
 
    echo "$as_me:$LINENO: result: $gt_source" >&5
22032
 
echo "${ECHO_T}$gt_source" >&6
 
27050
    { echo "$as_me:$LINENO: result: $gt_source" >&5
 
27051
echo "${ECHO_T}$gt_source" >&6; }
22033
27052
  fi
22034
27053
 
22035
27054
  if test "$USE_NLS" = "yes"; then
22036
27055
 
22037
27056
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
22038
 
      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
22039
 
        echo "$as_me:$LINENO: checking how to link with libintl" >&5
22040
 
echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
22041
 
        echo "$as_me:$LINENO: result: $LIBINTL" >&5
22042
 
echo "${ECHO_T}$LIBINTL" >&6
 
27057
      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
 
27058
        { echo "$as_me:$LINENO: checking how to link with libintl" >&5
 
27059
echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
 
27060
        { echo "$as_me:$LINENO: result: $LIBINTL" >&5
 
27061
echo "${ECHO_T}$LIBINTL" >&6; }
22043
27062
 
22044
27063
  for element in $INCINTL; do
22045
27064
    haveit=
22133
27152
 
22134
27153
 
22135
27154
 
22136
 
# Check whether --enable-warnings or --disable-warnings was given.
 
27155
# Check whether --enable-warnings was given.
22137
27156
if test "${enable_warnings+set}" = set; then
22138
 
  enableval="$enable_warnings"
 
27157
  enableval=$enable_warnings;
 
27158
fi
22139
27159
 
22140
 
fi;
22141
27160
 
22142
27161
if test "$enable_warnings" = "yes"; then
22143
27162
   case $GCC:`uname` in
22175
27194
else
22176
27195
    # Console front end
22177
27196
    EXTRAOBJS="$EXTRAOBJS src/console_fe.o"
22178
 
    case $LIBOBJS in
22179
 
    "lib/rpmatch.$ac_objext"   | \
22180
 
  *" lib/rpmatch.$ac_objext"   | \
22181
 
    "lib/rpmatch.$ac_objext "* | \
 
27197
    case " $LIBOBJS " in
22182
27198
  *" lib/rpmatch.$ac_objext "* ) ;;
22183
 
  *) LIBOBJS="$LIBOBJS lib/rpmatch.$ac_objext" ;;
 
27199
  *) LIBOBJS="$LIBOBJS lib/rpmatch.$ac_objext"
 
27200
 ;;
22184
27201
esac
22185
27202
 
22186
 
    case $LIBOBJS in
22187
 
    "lib/yesno.$ac_objext"   | \
22188
 
  *" lib/yesno.$ac_objext"   | \
22189
 
    "lib/yesno.$ac_objext "* | \
 
27203
    case " $LIBOBJS " in
22190
27204
  *" lib/yesno.$ac_objext "* ) ;;
22191
 
  *) LIBOBJS="$LIBOBJS lib/yesno.$ac_objext" ;;
 
27205
  *) LIBOBJS="$LIBOBJS lib/yesno.$ac_objext"
 
27206
 ;;
22192
27207
esac
22193
27208
 
22194
27209
    fe_msg="Console"
22205
27220
 
22206
27221
 
22207
27222
 
22208
 
                                        ac_config_files="$ac_config_files Makefile lib/neon/Makefile po/Makefile.in intl/Makefile"
 
27223
ac_config_files="$ac_config_files Makefile lib/neon/Makefile po/Makefile.in intl/Makefile"
22209
27224
 
22210
27225
 
22211
27226
cat >confcache <<\_ACEOF
22226
27241
 
22227
27242
# The following way of writing the cache mishandles newlines in values,
22228
27243
# but we know of no workaround that is simple, portable, and efficient.
22229
 
# So, don't put newlines in cache variables' values.
 
27244
# So, we kill variables containing newlines.
22230
27245
# Ultrix sh set writes to stderr and can't be redirected directly,
22231
27246
# and sets the high bit in the cache file unless we assign to the vars.
22232
 
{
 
27247
(
 
27248
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
27249
    eval ac_val=\$$ac_var
 
27250
    case $ac_val in #(
 
27251
    *${as_nl}*)
 
27252
      case $ac_var in #(
 
27253
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
27254
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
27255
      esac
 
27256
      case $ac_var in #(
 
27257
      _ | IFS | as_nl) ;; #(
 
27258
      *) $as_unset $ac_var ;;
 
27259
      esac ;;
 
27260
    esac
 
27261
  done
 
27262
 
22233
27263
  (set) 2>&1 |
22234
 
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
22235
 
    *ac_space=\ *)
 
27264
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
27265
    *${as_nl}ac_space=\ *)
22236
27266
      # `set' does not quote correctly, so add quotes (double-quote
22237
27267
      # substitution turns \\\\ into \\, and sed turns \\ into \).
22238
27268
      sed -n \
22239
27269
        "s/'/'\\\\''/g;
22240
27270
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22241
 
      ;;
 
27271
      ;; #(
22242
27272
    *)
22243
27273
      # `set' quotes correctly as required by POSIX, so do not add quotes.
22244
 
      sed -n \
22245
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
27274
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22246
27275
      ;;
22247
 
    esac;
22248
 
} |
 
27276
    esac |
 
27277
    sort
 
27278
) |
22249
27279
  sed '
 
27280
     /^ac_cv_env_/b end
22250
27281
     t clear
22251
 
     : clear
 
27282
     :clear
22252
27283
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22253
27284
     t end
22254
 
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22255
 
     : end' >>confcache
22256
 
if diff $cache_file confcache >/dev/null 2>&1; then :; else
22257
 
  if test -w $cache_file; then
22258
 
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
27285
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
27286
     :end' >>confcache
 
27287
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
27288
  if test -w "$cache_file"; then
 
27289
    test "x$cache_file" != "x/dev/null" &&
 
27290
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
27291
echo "$as_me: updating cache $cache_file" >&6;}
22259
27292
    cat confcache >$cache_file
22260
27293
  else
22261
 
    echo "not updating unwritable cache $cache_file"
 
27294
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
27295
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22262
27296
  fi
22263
27297
fi
22264
27298
rm -f confcache
22267
27301
# Let make expand exec_prefix.
22268
27302
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22269
27303
 
22270
 
# VPATH may cause trouble with some makes, so we remove $(srcdir),
22271
 
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22272
 
# trailing colons and then remove the whole line if VPATH becomes empty
22273
 
# (actually we leave an empty line to preserve line numbers).
22274
 
if test "x$srcdir" = x.; then
22275
 
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
22276
 
s/:*\$(srcdir):*/:/;
22277
 
s/:*\${srcdir}:*/:/;
22278
 
s/:*@srcdir@:*/:/;
22279
 
s/^\([^=]*=[     ]*\):*/\1/;
22280
 
s/:*$//;
22281
 
s/^[^=]*=[       ]*$//;
22282
 
}'
22283
 
fi
22284
 
 
22285
27304
DEFS=-DHAVE_CONFIG_H
22286
27305
 
22287
27306
ac_libobjs=
22288
27307
ac_ltlibobjs=
22289
27308
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22290
27309
  # 1. Remove the extension, and $U if already installed.
22291
 
  ac_i=`echo "$ac_i" |
22292
 
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22293
 
  # 2. Add them.
22294
 
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22295
 
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
27310
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
27311
  ac_i=`echo "$ac_i" | sed "$ac_script"`
 
27312
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
27313
  #    will be set to the directory where LIBOBJS objects are built.
 
27314
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
27315
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22296
27316
done
22297
27317
LIBOBJS=$ac_libobjs
22298
27318
 
22323
27343
## M4sh Initialization.  ##
22324
27344
## --------------------- ##
22325
27345
 
22326
 
# Be Bourne compatible
 
27346
# Be more Bourne compatible
 
27347
DUALCASE=1; export DUALCASE # for MKS sh
22327
27348
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22328
27349
  emulate sh
22329
27350
  NULLCMD=:
22330
27351
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22331
27352
  # is contrary to our usage.  Disable this feature.
22332
27353
  alias -g '${1+"$@"}'='"$@"'
22333
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22334
 
  set -o posix
22335
 
fi
22336
 
DUALCASE=1; export DUALCASE # for MKS sh
 
27354
  setopt NO_GLOB_SUBST
 
27355
else
 
27356
  case `(set -o) 2>/dev/null` in
 
27357
  *posix*) set -o posix ;;
 
27358
esac
 
27359
 
 
27360
fi
 
27361
 
 
27362
 
 
27363
 
 
27364
 
 
27365
# PATH needs CR
 
27366
# Avoid depending upon Character Ranges.
 
27367
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
27368
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
27369
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
27370
as_cr_digits='0123456789'
 
27371
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
27372
 
 
27373
# The user is always right.
 
27374
if test "${PATH_SEPARATOR+set}" != set; then
 
27375
  echo "#! /bin/sh" >conf$$.sh
 
27376
  echo  "exit 0"   >>conf$$.sh
 
27377
  chmod +x conf$$.sh
 
27378
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
27379
    PATH_SEPARATOR=';'
 
27380
  else
 
27381
    PATH_SEPARATOR=:
 
27382
  fi
 
27383
  rm -f conf$$.sh
 
27384
fi
22337
27385
 
22338
27386
# Support unset when possible.
22339
27387
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22343
27391
fi
22344
27392
 
22345
27393
 
 
27394
# IFS
 
27395
# We need space, tab and new line, in precisely that order.  Quoting is
 
27396
# there to prevent editors from complaining about space-tab.
 
27397
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
27398
# splitting by setting IFS to empty value.)
 
27399
as_nl='
 
27400
'
 
27401
IFS=" ""        $as_nl"
 
27402
 
 
27403
# Find who we are.  Look in the path if we contain no directory separator.
 
27404
case $0 in
 
27405
  *[\\/]* ) as_myself=$0 ;;
 
27406
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
27407
for as_dir in $PATH
 
27408
do
 
27409
  IFS=$as_save_IFS
 
27410
  test -z "$as_dir" && as_dir=.
 
27411
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
27412
done
 
27413
IFS=$as_save_IFS
 
27414
 
 
27415
     ;;
 
27416
esac
 
27417
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
27418
# in which case we are not to be found in the path.
 
27419
if test "x$as_myself" = x; then
 
27420
  as_myself=$0
 
27421
fi
 
27422
if test ! -f "$as_myself"; then
 
27423
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
27424
  { (exit 1); exit 1; }
 
27425
fi
 
27426
 
22346
27427
# Work around bugs in pre-3.0 UWIN ksh.
22347
 
$as_unset ENV MAIL MAILPATH
 
27428
for as_var in ENV MAIL MAILPATH
 
27429
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
27430
done
22348
27431
PS1='$ '
22349
27432
PS2='> '
22350
27433
PS4='+ '
22358
27441
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22359
27442
    eval $as_var=C; export $as_var
22360
27443
  else
22361
 
    $as_unset $as_var
 
27444
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22362
27445
  fi
22363
27446
done
22364
27447
 
22365
27448
# Required to use basename.
22366
 
if expr a : '\(a\)' >/dev/null 2>&1; then
 
27449
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
27450
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22367
27451
  as_expr=expr
22368
27452
else
22369
27453
  as_expr=false
22370
27454
fi
22371
27455
 
22372
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
27456
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22373
27457
  as_basename=basename
22374
27458
else
22375
27459
  as_basename=false
22377
27461
 
22378
27462
 
22379
27463
# Name of the executable.
22380
 
as_me=`$as_basename "$0" ||
 
27464
as_me=`$as_basename -- "$0" ||
22381
27465
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22382
27466
         X"$0" : 'X\(//\)$' \| \
22383
 
         X"$0" : 'X\(/\)$' \| \
22384
 
         .     : '\(.\)' 2>/dev/null ||
 
27467
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22385
27468
echo X/"$0" |
22386
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22387
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
22388
 
          /^X\/\(\/\).*/{ s//\1/; q; }
22389
 
          s/.*/./; q'`
22390
 
 
22391
 
 
22392
 
# PATH needs CR, and LINENO needs CR and PATH.
22393
 
# Avoid depending upon Character Ranges.
22394
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22395
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22396
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22397
 
as_cr_digits='0123456789'
22398
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
22399
 
 
22400
 
# The user is always right.
22401
 
if test "${PATH_SEPARATOR+set}" != set; then
22402
 
  echo "#! /bin/sh" >conf$$.sh
22403
 
  echo  "exit 0"   >>conf$$.sh
22404
 
  chmod +x conf$$.sh
22405
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22406
 
    PATH_SEPARATOR=';'
22407
 
  else
22408
 
    PATH_SEPARATOR=:
22409
 
  fi
22410
 
  rm -f conf$$.sh
22411
 
fi
22412
 
 
22413
 
 
22414
 
  as_lineno_1=$LINENO
22415
 
  as_lineno_2=$LINENO
22416
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22417
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
22418
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22419
 
  # Find who we are.  Look in the path if we contain no path at all
22420
 
  # relative or not.
22421
 
  case $0 in
22422
 
    *[\\/]* ) as_myself=$0 ;;
22423
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22424
 
for as_dir in $PATH
22425
 
do
22426
 
  IFS=$as_save_IFS
22427
 
  test -z "$as_dir" && as_dir=.
22428
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22429
 
done
22430
 
 
22431
 
       ;;
22432
 
  esac
22433
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
22434
 
  # in which case we are not to be found in the path.
22435
 
  if test "x$as_myself" = x; then
22436
 
    as_myself=$0
22437
 
  fi
22438
 
  if test ! -f "$as_myself"; then
22439
 
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22440
 
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22441
 
   { (exit 1); exit 1; }; }
22442
 
  fi
22443
 
  case $CONFIG_SHELL in
22444
 
  '')
22445
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22446
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22447
 
do
22448
 
  IFS=$as_save_IFS
22449
 
  test -z "$as_dir" && as_dir=.
22450
 
  for as_base in sh bash ksh sh5; do
22451
 
         case $as_dir in
22452
 
         /*)
22453
 
           if ("$as_dir/$as_base" -c '
22454
 
  as_lineno_1=$LINENO
22455
 
  as_lineno_2=$LINENO
22456
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22457
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
22458
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
22459
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22460
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22461
 
             CONFIG_SHELL=$as_dir/$as_base
22462
 
             export CONFIG_SHELL
22463
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22464
 
           fi;;
22465
 
         esac
22466
 
       done
22467
 
done
22468
 
;;
22469
 
  esac
 
27469
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
27470
            s//\1/
 
27471
            q
 
27472
          }
 
27473
          /^X\/\(\/\/\)$/{
 
27474
            s//\1/
 
27475
            q
 
27476
          }
 
27477
          /^X\/\(\/\).*/{
 
27478
            s//\1/
 
27479
            q
 
27480
          }
 
27481
          s/.*/./; q'`
 
27482
 
 
27483
# CDPATH.
 
27484
$as_unset CDPATH
 
27485
 
 
27486
 
 
27487
 
 
27488
  as_lineno_1=$LINENO
 
27489
  as_lineno_2=$LINENO
 
27490
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
27491
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22470
27492
 
22471
27493
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22472
27494
  # uniformly replaced by the line number.  The first 'sed' inserts a
22473
 
  # line-number line before each line; the second 'sed' does the real
22474
 
  # work.  The second script uses 'N' to pair each line-number line
22475
 
  # with the numbered line, and appends trailing '-' during
22476
 
  # substitution so that $LINENO is not a special case at line end.
 
27495
  # line-number line after each line using $LINENO; the second 'sed'
 
27496
  # does the real work.  The second script uses 'N' to pair each
 
27497
  # line-number line with the line containing $LINENO, and appends
 
27498
  # trailing '-' during substitution so that $LINENO is not a special
 
27499
  # case at line end.
22477
27500
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22478
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
22479
 
  sed '=' <$as_myself |
 
27501
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
27502
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
27503
  sed -n '
 
27504
    p
 
27505
    /[$]LINENO/=
 
27506
  ' <$as_myself |
22480
27507
    sed '
 
27508
      s/[$]LINENO.*/&-/
 
27509
      t lineno
 
27510
      b
 
27511
      :lineno
22481
27512
      N
22482
 
      s,$,-,
22483
 
      : loop
22484
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
27513
      :loop
 
27514
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22485
27515
      t loop
22486
 
      s,-$,,
22487
 
      s,^['$as_cr_digits']*\n,,
 
27516
      s/-\n.*//
22488
27517
    ' >$as_me.lineno &&
22489
 
  chmod +x $as_me.lineno ||
22490
 
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22491
 
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
27518
  chmod +x "$as_me.lineno" ||
 
27519
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22492
27520
   { (exit 1); exit 1; }; }
22493
27521
 
22494
27522
  # Don't try to exec as it changes $[0], causing all sort of problems
22495
27523
  # (the dirname of $[0] is not the place where we might find the
22496
 
  # original and so on.  Autoconf is especially sensible to this).
22497
 
  . ./$as_me.lineno
 
27524
  # original and so on.  Autoconf is especially sensitive to this).
 
27525
  . "./$as_me.lineno"
22498
27526
  # Exit status is that of the last command.
22499
27527
  exit
22500
27528
}
22501
27529
 
22502
27530
 
22503
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22504
 
  *c*,-n*) ECHO_N= ECHO_C='
22505
 
' ECHO_T='      ' ;;
22506
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22507
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
27531
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
27532
  as_dirname=dirname
 
27533
else
 
27534
  as_dirname=false
 
27535
fi
 
27536
 
 
27537
ECHO_C= ECHO_N= ECHO_T=
 
27538
case `echo -n x` in
 
27539
-n*)
 
27540
  case `echo 'x\c'` in
 
27541
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
27542
  *)   ECHO_C='\c';;
 
27543
  esac;;
 
27544
*)
 
27545
  ECHO_N='-n';;
22508
27546
esac
22509
27547
 
22510
 
if expr a : '\(a\)' >/dev/null 2>&1; then
 
27548
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
27549
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22511
27550
  as_expr=expr
22512
27551
else
22513
27552
  as_expr=false
22514
27553
fi
22515
27554
 
22516
27555
rm -f conf$$ conf$$.exe conf$$.file
 
27556
if test -d conf$$.dir; then
 
27557
  rm -f conf$$.dir/conf$$.file
 
27558
else
 
27559
  rm -f conf$$.dir
 
27560
  mkdir conf$$.dir
 
27561
fi
22517
27562
echo >conf$$.file
22518
27563
if ln -s conf$$.file conf$$ 2>/dev/null; then
22519
 
  # We could just check for DJGPP; but this test a) works b) is more generic
22520
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22521
 
  if test -f conf$$.exe; then
22522
 
    # Don't use ln at all; we don't have any links
 
27564
  as_ln_s='ln -s'
 
27565
  # ... but there are two gotchas:
 
27566
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
27567
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
27568
  # In both cases, we have to default to `cp -p'.
 
27569
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22523
27570
    as_ln_s='cp -p'
22524
 
  else
22525
 
    as_ln_s='ln -s'
22526
 
  fi
22527
27571
elif ln conf$$.file conf$$ 2>/dev/null; then
22528
27572
  as_ln_s=ln
22529
27573
else
22530
27574
  as_ln_s='cp -p'
22531
27575
fi
22532
 
rm -f conf$$ conf$$.exe conf$$.file
 
27576
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
27577
rmdir conf$$.dir 2>/dev/null
22533
27578
 
22534
27579
if mkdir -p . 2>/dev/null; then
22535
27580
  as_mkdir_p=:
22538
27583
  as_mkdir_p=false
22539
27584
fi
22540
27585
 
22541
 
as_executable_p="test -f"
 
27586
if test -x / >/dev/null 2>&1; then
 
27587
  as_test_x='test -x'
 
27588
else
 
27589
  if ls -dL / >/dev/null 2>&1; then
 
27590
    as_ls_L_option=L
 
27591
  else
 
27592
    as_ls_L_option=
 
27593
  fi
 
27594
  as_test_x='
 
27595
    eval sh -c '\''
 
27596
      if test -d "$1"; then
 
27597
        test -d "$1/.";
 
27598
      else
 
27599
        case $1 in
 
27600
        -*)set "./$1";;
 
27601
        esac;
 
27602
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
27603
        ???[sx]*):;;*)false;;esac;fi
 
27604
    '\'' sh
 
27605
  '
 
27606
fi
 
27607
as_executable_p=$as_test_x
22542
27608
 
22543
27609
# Sed expression to map a string onto a valid CPP name.
22544
27610
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22547
27613
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22548
27614
 
22549
27615
 
22550
 
# IFS
22551
 
# We need space, tab and new line, in precisely that order.
22552
 
as_nl='
22553
 
'
22554
 
IFS="   $as_nl"
22555
 
 
22556
 
# CDPATH.
22557
 
$as_unset CDPATH
22558
 
 
22559
27616
exec 6>&1
22560
27617
 
22561
 
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
27618
# Save the log message, to keep $[0] and so on meaningful, and to
22562
27619
# report actual input values of CONFIG_FILES etc. instead of their
22563
 
# values after options handling.  Logging --version etc. is OK.
22564
 
exec 5>>config.log
22565
 
{
22566
 
  echo
22567
 
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22568
 
## Running $as_me. ##
22569
 
_ASBOX
22570
 
} >&5
22571
 
cat >&5 <<_CSEOF
22572
 
 
22573
 
This file was extended by sitecopy $as_me 0.16.3, which was
22574
 
generated by GNU Autoconf 2.59.  Invocation command line was
 
27620
# values after options handling.
 
27621
ac_log="
 
27622
This file was extended by sitecopy $as_me 0.16.6, which was
 
27623
generated by GNU Autoconf 2.61.  Invocation command line was
22575
27624
 
22576
27625
  CONFIG_FILES    = $CONFIG_FILES
22577
27626
  CONFIG_HEADERS  = $CONFIG_HEADERS
22579
27628
  CONFIG_COMMANDS = $CONFIG_COMMANDS
22580
27629
  $ $0 $@
22581
27630
 
22582
 
_CSEOF
22583
 
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22584
 
echo >&5
 
27631
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
27632
"
 
27633
 
22585
27634
_ACEOF
22586
27635
 
 
27636
cat >>$CONFIG_STATUS <<_ACEOF
22587
27637
# Files that config.status was made for.
22588
 
if test -n "$ac_config_files"; then
22589
 
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22590
 
fi
22591
 
 
22592
 
if test -n "$ac_config_headers"; then
22593
 
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22594
 
fi
22595
 
 
22596
 
if test -n "$ac_config_links"; then
22597
 
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22598
 
fi
22599
 
 
22600
 
if test -n "$ac_config_commands"; then
22601
 
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22602
 
fi
 
27638
config_files="$ac_config_files"
 
27639
config_headers="$ac_config_headers"
 
27640
config_commands="$ac_config_commands"
 
27641
 
 
27642
_ACEOF
22603
27643
 
22604
27644
cat >>$CONFIG_STATUS <<\_ACEOF
22605
 
 
22606
27645
ac_cs_usage="\
22607
27646
\`$as_me' instantiates files from templates according to the
22608
27647
current configuration.
22610
27649
Usage: $0 [OPTIONS] [FILE]...
22611
27650
 
22612
27651
  -h, --help       print this help, then exit
22613
 
  -V, --version    print version number, then exit
 
27652
  -V, --version    print version number and configuration settings, then exit
22614
27653
  -q, --quiet      do not print progress messages
22615
27654
  -d, --debug      don't remove temporary files
22616
27655
      --recheck    update $as_me by reconfiguring in the same conditions
22629
27668
$config_commands
22630
27669
 
22631
27670
Report bugs to <bug-autoconf@gnu.org>."
 
27671
 
22632
27672
_ACEOF
22633
 
 
22634
27673
cat >>$CONFIG_STATUS <<_ACEOF
22635
27674
ac_cs_version="\\
22636
 
sitecopy config.status 0.16.3
22637
 
configured by $0, generated by GNU Autoconf 2.59,
22638
 
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
27675
sitecopy config.status 0.16.6
 
27676
configured by $0, generated by GNU Autoconf 2.61,
 
27677
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22639
27678
 
22640
 
Copyright (C) 2003 Free Software Foundation, Inc.
 
27679
Copyright (C) 2006 Free Software Foundation, Inc.
22641
27680
This config.status script is free software; the Free Software Foundation
22642
27681
gives unlimited permission to copy, distribute and modify it."
22643
 
srcdir=$srcdir
22644
 
INSTALL="$INSTALL"
 
27682
 
 
27683
ac_pwd='$ac_pwd'
 
27684
srcdir='$srcdir'
 
27685
INSTALL='$INSTALL'
 
27686
MKDIR_P='$MKDIR_P'
22645
27687
_ACEOF
22646
27688
 
22647
27689
cat >>$CONFIG_STATUS <<\_ACEOF
22652
27694
do
22653
27695
  case $1 in
22654
27696
  --*=*)
22655
 
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
22656
 
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
27697
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
27698
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22657
27699
    ac_shift=:
22658
27700
    ;;
22659
 
  -*)
 
27701
  *)
22660
27702
    ac_option=$1
22661
27703
    ac_optarg=$2
22662
27704
    ac_shift=shift
22663
27705
    ;;
22664
 
  *) # This is not an option, so the user has probably given explicit
22665
 
     # arguments.
22666
 
     ac_option=$1
22667
 
     ac_need_defaults=false;;
22668
27706
  esac
22669
27707
 
22670
27708
  case $ac_option in
22671
27709
  # Handling of the options.
22672
 
_ACEOF
22673
 
cat >>$CONFIG_STATUS <<\_ACEOF
22674
27710
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22675
27711
    ac_cs_recheck=: ;;
22676
 
  --version | --vers* | -V )
22677
 
    echo "$ac_cs_version"; exit 0 ;;
22678
 
  --he | --h)
22679
 
    # Conflict between --help and --header
22680
 
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
22681
 
Try \`$0 --help' for more information." >&5
22682
 
echo "$as_me: error: ambiguous option: $1
22683
 
Try \`$0 --help' for more information." >&2;}
22684
 
   { (exit 1); exit 1; }; };;
22685
 
  --help | --hel | -h )
22686
 
    echo "$ac_cs_usage"; exit 0 ;;
22687
 
  --debug | --d* | -d )
 
27712
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
27713
    echo "$ac_cs_version"; exit ;;
 
27714
  --debug | --debu | --deb | --de | --d | -d )
22688
27715
    debug=: ;;
22689
27716
  --file | --fil | --fi | --f )
22690
27717
    $ac_shift
22694
27721
    $ac_shift
22695
27722
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22696
27723
    ac_need_defaults=false;;
 
27724
  --he | --h)
 
27725
    # Conflict between --help and --header
 
27726
    { echo "$as_me: error: ambiguous option: $1
 
27727
Try \`$0 --help' for more information." >&2
 
27728
   { (exit 1); exit 1; }; };;
 
27729
  --help | --hel | -h )
 
27730
    echo "$ac_cs_usage"; exit ;;
22697
27731
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22698
27732
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22699
27733
    ac_cs_silent=: ;;
22700
27734
 
22701
27735
  # This is an error.
22702
 
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22703
 
Try \`$0 --help' for more information." >&5
22704
 
echo "$as_me: error: unrecognized option: $1
22705
 
Try \`$0 --help' for more information." >&2;}
 
27736
  -*) { echo "$as_me: error: unrecognized option: $1
 
27737
Try \`$0 --help' for more information." >&2
22706
27738
   { (exit 1); exit 1; }; } ;;
22707
27739
 
22708
 
  *) ac_config_targets="$ac_config_targets $1" ;;
 
27740
  *) ac_config_targets="$ac_config_targets $1"
 
27741
     ac_need_defaults=false ;;
22709
27742
 
22710
27743
  esac
22711
27744
  shift
22721
27754
_ACEOF
22722
27755
cat >>$CONFIG_STATUS <<_ACEOF
22723
27756
if \$ac_cs_recheck; then
22724
 
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22725
 
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
27757
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
27758
  CONFIG_SHELL=$SHELL
 
27759
  export CONFIG_SHELL
 
27760
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22726
27761
fi
22727
27762
 
22728
27763
_ACEOF
 
27764
cat >>$CONFIG_STATUS <<\_ACEOF
 
27765
exec 5>>config.log
 
27766
{
 
27767
  echo
 
27768
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
27769
## Running $as_me. ##
 
27770
_ASBOX
 
27771
  echo "$ac_log"
 
27772
} >&5
22729
27773
 
 
27774
_ACEOF
22730
27775
cat >>$CONFIG_STATUS <<_ACEOF
22731
27776
#
22732
 
# INIT-COMMANDS section.
 
27777
# INIT-COMMANDS
22733
27778
#
22734
 
 
22735
27779
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
22736
27780
    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
22737
 
    # from automake.
 
27781
    # from automake < 1.5.
22738
27782
    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
22739
27783
    # Capture the value of LINGUAS because we need it to compute CATALOGS.
22740
27784
    LINGUAS="${LINGUAS-%UNSET%}"
22742
27786
 
22743
27787
_ACEOF
22744
27788
 
22745
 
 
22746
 
 
22747
27789
cat >>$CONFIG_STATUS <<\_ACEOF
 
27790
 
 
27791
# Handling of arguments.
22748
27792
for ac_config_target in $ac_config_targets
22749
27793
do
22750
 
  case "$ac_config_target" in
22751
 
  # Handling of arguments.
22752
 
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22753
 
  "lib/neon/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/neon/Makefile" ;;
22754
 
  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
22755
 
  "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
22756
 
  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
22757
 
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
27794
  case $ac_config_target in
 
27795
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
27796
    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
 
27797
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
27798
    "lib/neon/Makefile") CONFIG_FILES="$CONFIG_FILES lib/neon/Makefile" ;;
 
27799
    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
 
27800
    "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
 
27801
 
22758
27802
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22759
27803
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22760
27804
   { (exit 1); exit 1; }; };;
22761
27805
  esac
22762
27806
done
22763
27807
 
 
27808
 
22764
27809
# If the user did not use the arguments to specify the items to instantiate,
22765
27810
# then the envvar interface is used.  Set only those that are not.
22766
27811
# We use the long form for the default assignment because of an extremely
22772
27817
fi
22773
27818
 
22774
27819
# Have a temporary directory for convenience.  Make it in the build tree
22775
 
# simply because there is no reason to put it here, and in addition,
 
27820
# simply because there is no reason against having it here, and in addition,
22776
27821
# creating and moving files from /tmp can sometimes cause problems.
22777
 
# Create a temporary directory, and hook for its removal unless debugging.
 
27822
# Hook for its removal unless debugging.
 
27823
# Note that there is a small window in which the directory will not be cleaned:
 
27824
# after its creation but before its name has been assigned to `$tmp'.
22778
27825
$debug ||
22779
27826
{
22780
 
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
27827
  tmp=
 
27828
  trap 'exit_status=$?
 
27829
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
27830
' 0
22781
27831
  trap '{ (exit 1); exit 1; }' 1 2 13 15
22782
27832
}
22783
 
 
22784
27833
# Create a (secure) tmp directory for tmp files.
22785
27834
 
22786
27835
{
22787
 
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
27836
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22788
27837
  test -n "$tmp" && test -d "$tmp"
22789
27838
}  ||
22790
27839
{
22791
 
  tmp=./confstat$$-$RANDOM
22792
 
  (umask 077 && mkdir $tmp)
 
27840
  tmp=./conf$$-$RANDOM
 
27841
  (umask 077 && mkdir "$tmp")
22793
27842
} ||
22794
27843
{
22795
27844
   echo "$me: cannot create a temporary directory in ." >&2
22796
27845
   { (exit 1); exit 1; }
22797
27846
}
22798
27847
 
22799
 
_ACEOF
22800
 
 
22801
 
cat >>$CONFIG_STATUS <<_ACEOF
22802
 
 
22803
27848
#
22804
 
# CONFIG_FILES section.
 
27849
# Set up the sed scripts for CONFIG_FILES section.
22805
27850
#
22806
27851
 
22807
27852
# No need to generate the scripts if there are no CONFIG_FILES.
22808
27853
# This happens for instance when ./config.status config.h
22809
 
if test -n "\$CONFIG_FILES"; then
22810
 
  # Protect against being on the right side of a sed subst in config.status.
22811
 
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22812
 
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22813
 
s,@SHELL@,$SHELL,;t t
22814
 
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22815
 
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22816
 
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22817
 
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22818
 
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22819
 
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22820
 
s,@exec_prefix@,$exec_prefix,;t t
22821
 
s,@prefix@,$prefix,;t t
22822
 
s,@program_transform_name@,$program_transform_name,;t t
22823
 
s,@bindir@,$bindir,;t t
22824
 
s,@sbindir@,$sbindir,;t t
22825
 
s,@libexecdir@,$libexecdir,;t t
22826
 
s,@datadir@,$datadir,;t t
22827
 
s,@sysconfdir@,$sysconfdir,;t t
22828
 
s,@sharedstatedir@,$sharedstatedir,;t t
22829
 
s,@localstatedir@,$localstatedir,;t t
22830
 
s,@libdir@,$libdir,;t t
22831
 
s,@includedir@,$includedir,;t t
22832
 
s,@oldincludedir@,$oldincludedir,;t t
22833
 
s,@infodir@,$infodir,;t t
22834
 
s,@mandir@,$mandir,;t t
22835
 
s,@build_alias@,$build_alias,;t t
22836
 
s,@host_alias@,$host_alias,;t t
22837
 
s,@target_alias@,$target_alias,;t t
22838
 
s,@DEFS@,$DEFS,;t t
22839
 
s,@ECHO_C@,$ECHO_C,;t t
22840
 
s,@ECHO_N@,$ECHO_N,;t t
22841
 
s,@ECHO_T@,$ECHO_T,;t t
22842
 
s,@LIBS@,$LIBS,;t t
22843
 
s,@CC@,$CC,;t t
22844
 
s,@CFLAGS@,$CFLAGS,;t t
22845
 
s,@LDFLAGS@,$LDFLAGS,;t t
22846
 
s,@CPPFLAGS@,$CPPFLAGS,;t t
22847
 
s,@ac_ct_CC@,$ac_ct_CC,;t t
22848
 
s,@EXEEXT@,$EXEEXT,;t t
22849
 
s,@OBJEXT@,$OBJEXT,;t t
22850
 
s,@SET_MAKE@,$SET_MAKE,;t t
22851
 
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22852
 
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22853
 
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22854
 
s,@CPP@,$CPP,;t t
22855
 
s,@EGREP@,$EGREP,;t t
22856
 
s,@LIBOBJS@,$LIBOBJS,;t t
22857
 
s,@NEON_CONFIG@,$NEON_CONFIG,;t t
22858
 
s,@NE_FLAG_SSL@,$NE_FLAG_SSL,;t t
22859
 
s,@NE_FLAG_ZLIB@,$NE_FLAG_ZLIB,;t t
22860
 
s,@NE_FLAG_IPV6@,$NE_FLAG_IPV6,;t t
22861
 
s,@NE_FLAG_LFS@,$NE_FLAG_LFS,;t t
22862
 
s,@NE_FLAG_SOCKS@,$NE_FLAG_SOCKS,;t t
22863
 
s,@NE_FLAG_TS_SSL@,$NE_FLAG_TS_SSL,;t t
22864
 
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22865
 
s,@GNUTLS_CONFIG@,$GNUTLS_CONFIG,;t t
22866
 
s,@NEON_SUPPORTS_SSL@,$NEON_SUPPORTS_SSL,;t t
22867
 
s,@KRB5_CONFIG@,$KRB5_CONFIG,;t t
22868
 
s,@NEON_CFLAGS@,$NEON_CFLAGS,;t t
22869
 
s,@NEON_LIBS@,$NEON_LIBS,;t t
22870
 
s,@NEON_LTLIBS@,$NEON_LTLIBS,;t t
22871
 
s,@NEON_BUILD_BUNDLED@,$NEON_BUILD_BUNDLED,;t t
22872
 
s,@XML2_CONFIG@,$XML2_CONFIG,;t t
22873
 
s,@AR@,$AR,;t t
22874
 
s,@ac_pt_AR@,$ac_pt_AR,;t t
22875
 
s,@RANLIB@,$RANLIB,;t t
22876
 
s,@ac_pt_RANLIB@,$ac_pt_RANLIB,;t t
22877
 
s,@NE_FLAG_DAV@,$NE_FLAG_DAV,;t t
22878
 
s,@NEON_TARGET@,$NEON_TARGET,;t t
22879
 
s,@NEON_OBJEXT@,$NEON_OBJEXT,;t t
22880
 
s,@NEONOBJS@,$NEONOBJS,;t t
22881
 
s,@NEON_EXTRAOBJS@,$NEON_EXTRAOBJS,;t t
22882
 
s,@NEON_LINK_FLAGS@,$NEON_LINK_FLAGS,;t t
22883
 
s,@LIBGLADE_CONFIG@,$LIBGLADE_CONFIG,;t t
22884
 
s,@LIBGLADE_CFLAGS@,$LIBGLADE_CFLAGS,;t t
22885
 
s,@LIBGLADE_LIBS@,$LIBGLADE_LIBS,;t t
22886
 
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
22887
 
s,@USE_NLS@,$USE_NLS,;t t
22888
 
s,@MSGFMT@,$MSGFMT,;t t
22889
 
s,@GMSGFMT@,$GMSGFMT,;t t
22890
 
s,@XGETTEXT@,$XGETTEXT,;t t
22891
 
s,@MSGMERGE@,$MSGMERGE,;t t
22892
 
s,@build@,$build,;t t
22893
 
s,@build_cpu@,$build_cpu,;t t
22894
 
s,@build_vendor@,$build_vendor,;t t
22895
 
s,@build_os@,$build_os,;t t
22896
 
s,@host@,$host,;t t
22897
 
s,@host_cpu@,$host_cpu,;t t
22898
 
s,@host_vendor@,$host_vendor,;t t
22899
 
s,@host_os@,$host_os,;t t
22900
 
s,@GLIBC2@,$GLIBC2,;t t
22901
 
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22902
 
s,@ALLOCA@,$ALLOCA,;t t
22903
 
s,@GLIBC21@,$GLIBC21,;t t
22904
 
s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
22905
 
s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
22906
 
s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
22907
 
s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
22908
 
s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
22909
 
s,@LIBICONV@,$LIBICONV,;t t
22910
 
s,@LTLIBICONV@,$LTLIBICONV,;t t
22911
 
s,@INTLBISON@,$INTLBISON,;t t
22912
 
s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
22913
 
s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
22914
 
s,@CATOBJEXT@,$CATOBJEXT,;t t
22915
 
s,@DATADIRNAME@,$DATADIRNAME,;t t
22916
 
s,@INSTOBJEXT@,$INSTOBJEXT,;t t
22917
 
s,@GENCAT@,$GENCAT,;t t
22918
 
s,@INTLOBJS@,$INTLOBJS,;t t
22919
 
s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
22920
 
s,@INTLLIBS@,$INTLLIBS,;t t
22921
 
s,@LIBINTL@,$LIBINTL,;t t
22922
 
s,@LTLIBINTL@,$LTLIBINTL,;t t
22923
 
s,@POSUB@,$POSUB,;t t
22924
 
s,@GNOME_SC_HELPDIR@,$GNOME_SC_HELPDIR,;t t
22925
 
s,@XSC_HELP@,$XSC_HELP,;t t
22926
 
s,@SHORTCUT_LOCATION@,$SHORTCUT_LOCATION,;t t
22927
 
s,@EXTRAOBJS@,$EXTRAOBJS,;t t
22928
 
s,@TARGET@,$TARGET,;t t
22929
 
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22930
 
CEOF
22931
 
 
22932
 
_ACEOF
22933
 
 
22934
 
  cat >>$CONFIG_STATUS <<\_ACEOF
22935
 
  # Split the substitutions into bite-sized pieces for seds with
22936
 
  # small command number limits, like on Digital OSF/1 and HP-UX.
22937
 
  ac_max_sed_lines=48
22938
 
  ac_sed_frag=1 # Number of current file.
22939
 
  ac_beg=1 # First line for current file.
22940
 
  ac_end=$ac_max_sed_lines # Line after last line for current file.
22941
 
  ac_more_lines=:
22942
 
  ac_sed_cmds=
22943
 
  while $ac_more_lines; do
22944
 
    if test $ac_beg -gt 1; then
22945
 
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22946
 
    else
22947
 
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22948
 
    fi
22949
 
    if test ! -s $tmp/subs.frag; then
22950
 
      ac_more_lines=false
22951
 
    else
22952
 
      # The purpose of the label and of the branching condition is to
22953
 
      # speed up the sed processing (if there are no `@' at all, there
22954
 
      # is no need to browse any of the substitutions).
22955
 
      # These are the two extra sed commands mentioned above.
22956
 
      (echo ':t
22957
 
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22958
 
      if test -z "$ac_sed_cmds"; then
22959
 
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22960
 
      else
22961
 
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22962
 
      fi
22963
 
      ac_sed_frag=`expr $ac_sed_frag + 1`
22964
 
      ac_beg=$ac_end
22965
 
      ac_end=`expr $ac_end + $ac_max_sed_lines`
22966
 
    fi
22967
 
  done
22968
 
  if test -z "$ac_sed_cmds"; then
22969
 
    ac_sed_cmds=cat
22970
 
  fi
 
27854
if test -n "$CONFIG_FILES"; then
 
27855
 
 
27856
_ACEOF
 
27857
 
 
27858
 
 
27859
 
 
27860
ac_delim='%!_!# '
 
27861
for ac_last_try in false false false false false :; do
 
27862
  cat >conf$$subs.sed <<_ACEOF
 
27863
SHELL!$SHELL$ac_delim
 
27864
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
 
27865
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
 
27866
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
 
27867
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
 
27868
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
 
27869
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
 
27870
exec_prefix!$exec_prefix$ac_delim
 
27871
prefix!$prefix$ac_delim
 
27872
program_transform_name!$program_transform_name$ac_delim
 
27873
bindir!$bindir$ac_delim
 
27874
sbindir!$sbindir$ac_delim
 
27875
libexecdir!$libexecdir$ac_delim
 
27876
datarootdir!$datarootdir$ac_delim
 
27877
datadir!$datadir$ac_delim
 
27878
sysconfdir!$sysconfdir$ac_delim
 
27879
sharedstatedir!$sharedstatedir$ac_delim
 
27880
localstatedir!$localstatedir$ac_delim
 
27881
includedir!$includedir$ac_delim
 
27882
oldincludedir!$oldincludedir$ac_delim
 
27883
docdir!$docdir$ac_delim
 
27884
infodir!$infodir$ac_delim
 
27885
htmldir!$htmldir$ac_delim
 
27886
dvidir!$dvidir$ac_delim
 
27887
pdfdir!$pdfdir$ac_delim
 
27888
psdir!$psdir$ac_delim
 
27889
libdir!$libdir$ac_delim
 
27890
localedir!$localedir$ac_delim
 
27891
mandir!$mandir$ac_delim
 
27892
DEFS!$DEFS$ac_delim
 
27893
ECHO_C!$ECHO_C$ac_delim
 
27894
ECHO_N!$ECHO_N$ac_delim
 
27895
ECHO_T!$ECHO_T$ac_delim
 
27896
LIBS!$LIBS$ac_delim
 
27897
build_alias!$build_alias$ac_delim
 
27898
host_alias!$host_alias$ac_delim
 
27899
target_alias!$target_alias$ac_delim
 
27900
CC!$CC$ac_delim
 
27901
CFLAGS!$CFLAGS$ac_delim
 
27902
LDFLAGS!$LDFLAGS$ac_delim
 
27903
CPPFLAGS!$CPPFLAGS$ac_delim
 
27904
ac_ct_CC!$ac_ct_CC$ac_delim
 
27905
EXEEXT!$EXEEXT$ac_delim
 
27906
OBJEXT!$OBJEXT$ac_delim
 
27907
SET_MAKE!$SET_MAKE$ac_delim
 
27908
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
 
27909
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
 
27910
INSTALL_DATA!$INSTALL_DATA$ac_delim
 
27911
CPP!$CPP$ac_delim
 
27912
GREP!$GREP$ac_delim
 
27913
EGREP!$EGREP$ac_delim
 
27914
LIBOBJS!$LIBOBJS$ac_delim
 
27915
NEON_CONFIG!$NEON_CONFIG$ac_delim
 
27916
NE_FLAG_SSL!$NE_FLAG_SSL$ac_delim
 
27917
NE_FLAG_ZLIB!$NE_FLAG_ZLIB$ac_delim
 
27918
NE_FLAG_IPV6!$NE_FLAG_IPV6$ac_delim
 
27919
NE_FLAG_LFS!$NE_FLAG_LFS$ac_delim
 
27920
NE_FLAG_SOCKS!$NE_FLAG_SOCKS$ac_delim
 
27921
NE_FLAG_TS_SSL!$NE_FLAG_TS_SSL$ac_delim
 
27922
PKG_CONFIG!$PKG_CONFIG$ac_delim
 
27923
GNUTLS_CONFIG!$GNUTLS_CONFIG$ac_delim
 
27924
NEON_SUPPORTS_SSL!$NEON_SUPPORTS_SSL$ac_delim
 
27925
KRB5_CONFIG!$KRB5_CONFIG$ac_delim
 
27926
NEON_CFLAGS!$NEON_CFLAGS$ac_delim
 
27927
NEON_LIBS!$NEON_LIBS$ac_delim
 
27928
NEON_LTLIBS!$NEON_LTLIBS$ac_delim
 
27929
NEON_BUILD_BUNDLED!$NEON_BUILD_BUNDLED$ac_delim
 
27930
XML2_CONFIG!$XML2_CONFIG$ac_delim
 
27931
AR!$AR$ac_delim
 
27932
RANLIB!$RANLIB$ac_delim
 
27933
NE_FLAG_DAV!$NE_FLAG_DAV$ac_delim
 
27934
NEON_TARGET!$NEON_TARGET$ac_delim
 
27935
NEON_OBJEXT!$NEON_OBJEXT$ac_delim
 
27936
NEONOBJS!$NEONOBJS$ac_delim
 
27937
NEON_EXTRAOBJS!$NEON_EXTRAOBJS$ac_delim
 
27938
NEON_LINK_FLAGS!$NEON_LINK_FLAGS$ac_delim
 
27939
LIBGLADE_CONFIG!$LIBGLADE_CONFIG$ac_delim
 
27940
LIBGLADE_CFLAGS!$LIBGLADE_CFLAGS$ac_delim
 
27941
LIBGLADE_LIBS!$LIBGLADE_LIBS$ac_delim
 
27942
mkdir_p!$mkdir_p$ac_delim
 
27943
USE_NLS!$USE_NLS$ac_delim
 
27944
GETTEXT_MACRO_VERSION!$GETTEXT_MACRO_VERSION$ac_delim
 
27945
MSGFMT!$MSGFMT$ac_delim
 
27946
GMSGFMT!$GMSGFMT$ac_delim
 
27947
MSGFMT_015!$MSGFMT_015$ac_delim
 
27948
GMSGFMT_015!$GMSGFMT_015$ac_delim
 
27949
XGETTEXT!$XGETTEXT$ac_delim
 
27950
XGETTEXT_015!$XGETTEXT_015$ac_delim
 
27951
MSGMERGE!$MSGMERGE$ac_delim
 
27952
XGETTEXT_EXTRA_OPTIONS!$XGETTEXT_EXTRA_OPTIONS$ac_delim
 
27953
build!$build$ac_delim
 
27954
build_cpu!$build_cpu$ac_delim
 
27955
build_vendor!$build_vendor$ac_delim
 
27956
build_os!$build_os$ac_delim
 
27957
host!$host$ac_delim
 
27958
host_cpu!$host_cpu$ac_delim
 
27959
host_vendor!$host_vendor$ac_delim
 
27960
_ACEOF
 
27961
 
 
27962
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
27963
    break
 
27964
  elif $ac_last_try; then
 
27965
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
27966
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
27967
   { (exit 1); exit 1; }; }
 
27968
  else
 
27969
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
27970
  fi
 
27971
done
 
27972
 
 
27973
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
27974
if test -n "$ac_eof"; then
 
27975
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
27976
  ac_eof=`expr $ac_eof + 1`
 
27977
fi
 
27978
 
 
27979
cat >>$CONFIG_STATUS <<_ACEOF
 
27980
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 
27981
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
27982
_ACEOF
 
27983
sed '
 
27984
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
27985
s/^/s,@/; s/!/@,|#_!!_#|/
 
27986
:n
 
27987
t n
 
27988
s/'"$ac_delim"'$/,g/; t
 
27989
s/$/\\/; p
 
27990
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
27991
' >>$CONFIG_STATUS <conf$$subs.sed
 
27992
rm -f conf$$subs.sed
 
27993
cat >>$CONFIG_STATUS <<_ACEOF
 
27994
CEOF$ac_eof
 
27995
_ACEOF
 
27996
 
 
27997
 
 
27998
ac_delim='%!_!# '
 
27999
for ac_last_try in false false false false false :; do
 
28000
  cat >conf$$subs.sed <<_ACEOF
 
28001
host_os!$host_os$ac_delim
 
28002
GLIBC2!$GLIBC2$ac_delim
 
28003
CFLAG_VISIBILITY!$CFLAG_VISIBILITY$ac_delim
 
28004
HAVE_VISIBILITY!$HAVE_VISIBILITY$ac_delim
 
28005
ALLOCA!$ALLOCA$ac_delim
 
28006
PRI_MACROS_BROKEN!$PRI_MACROS_BROKEN$ac_delim
 
28007
LIBPTH!$LIBPTH$ac_delim
 
28008
LTLIBPTH!$LTLIBPTH$ac_delim
 
28009
LIBPTH_PREFIX!$LIBPTH_PREFIX$ac_delim
 
28010
LIBTHREAD!$LIBTHREAD$ac_delim
 
28011
LTLIBTHREAD!$LTLIBTHREAD$ac_delim
 
28012
LIBMULTITHREAD!$LIBMULTITHREAD$ac_delim
 
28013
LTLIBMULTITHREAD!$LTLIBMULTITHREAD$ac_delim
 
28014
LIBICONV!$LIBICONV$ac_delim
 
28015
LTLIBICONV!$LTLIBICONV$ac_delim
 
28016
INTLBISON!$INTLBISON$ac_delim
 
28017
GLIBC21!$GLIBC21$ac_delim
 
28018
INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
 
28019
HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
 
28020
HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
 
28021
HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
 
28022
HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
 
28023
WOE32DLL!$WOE32DLL$ac_delim
 
28024
WOE32!$WOE32$ac_delim
 
28025
WINDRES!$WINDRES$ac_delim
 
28026
LTLIBC!$LTLIBC$ac_delim
 
28027
BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
 
28028
USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
 
28029
CATOBJEXT!$CATOBJEXT$ac_delim
 
28030
DATADIRNAME!$DATADIRNAME$ac_delim
 
28031
INSTOBJEXT!$INSTOBJEXT$ac_delim
 
28032
GENCAT!$GENCAT$ac_delim
 
28033
INTLOBJS!$INTLOBJS$ac_delim
 
28034
INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
 
28035
INTLLIBS!$INTLLIBS$ac_delim
 
28036
LIBINTL!$LIBINTL$ac_delim
 
28037
LTLIBINTL!$LTLIBINTL$ac_delim
 
28038
POSUB!$POSUB$ac_delim
 
28039
GNOME_SC_HELPDIR!$GNOME_SC_HELPDIR$ac_delim
 
28040
XSC_HELP!$XSC_HELP$ac_delim
 
28041
SHORTCUT_LOCATION!$SHORTCUT_LOCATION$ac_delim
 
28042
EXTRAOBJS!$EXTRAOBJS$ac_delim
 
28043
TARGET!$TARGET$ac_delim
 
28044
LTLIBOBJS!$LTLIBOBJS$ac_delim
 
28045
_ACEOF
 
28046
 
 
28047
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 44; then
 
28048
    break
 
28049
  elif $ac_last_try; then
 
28050
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
28051
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
28052
   { (exit 1); exit 1; }; }
 
28053
  else
 
28054
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
28055
  fi
 
28056
done
 
28057
 
 
28058
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
28059
if test -n "$ac_eof"; then
 
28060
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
28061
  ac_eof=`expr $ac_eof + 1`
 
28062
fi
 
28063
 
 
28064
cat >>$CONFIG_STATUS <<_ACEOF
 
28065
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
 
28066
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
 
28067
_ACEOF
 
28068
sed '
 
28069
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
28070
s/^/s,@/; s/!/@,|#_!!_#|/
 
28071
:n
 
28072
t n
 
28073
s/'"$ac_delim"'$/,g/; t
 
28074
s/$/\\/; p
 
28075
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
28076
' >>$CONFIG_STATUS <conf$$subs.sed
 
28077
rm -f conf$$subs.sed
 
28078
cat >>$CONFIG_STATUS <<_ACEOF
 
28079
:end
 
28080
s/|#_!!_#|//g
 
28081
CEOF$ac_eof
 
28082
_ACEOF
 
28083
 
 
28084
 
 
28085
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
28086
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
28087
# trailing colons and then remove the whole line if VPATH becomes empty
 
28088
# (actually we leave an empty line to preserve line numbers).
 
28089
if test "x$srcdir" = x.; then
 
28090
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
28091
s/:*\$(srcdir):*/:/
 
28092
s/:*\${srcdir}:*/:/
 
28093
s/:*@srcdir@:*/:/
 
28094
s/^\([^=]*=[     ]*\):*/\1/
 
28095
s/:*$//
 
28096
s/^[^=]*=[       ]*$//
 
28097
}'
 
28098
fi
 
28099
 
 
28100
cat >>$CONFIG_STATUS <<\_ACEOF
22971
28101
fi # test -n "$CONFIG_FILES"
22972
28102
 
22973
 
_ACEOF
22974
 
cat >>$CONFIG_STATUS <<\_ACEOF
22975
 
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22976
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22977
 
  case $ac_file in
22978
 
  - | *:- | *:-:* ) # input from stdin
22979
 
        cat >$tmp/stdin
22980
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22981
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22982
 
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22983
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22984
 
  * )   ac_file_in=$ac_file.in ;;
22985
 
  esac
22986
 
 
22987
 
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22988
 
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
28103
 
 
28104
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
 
28105
do
 
28106
  case $ac_tag in
 
28107
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
28108
  esac
 
28109
  case $ac_mode$ac_tag in
 
28110
  :[FHL]*:*);;
 
28111
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
 
28112
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 
28113
   { (exit 1); exit 1; }; };;
 
28114
  :[FH]-) ac_tag=-:-;;
 
28115
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
28116
  esac
 
28117
  ac_save_IFS=$IFS
 
28118
  IFS=:
 
28119
  set x $ac_tag
 
28120
  IFS=$ac_save_IFS
 
28121
  shift
 
28122
  ac_file=$1
 
28123
  shift
 
28124
 
 
28125
  case $ac_mode in
 
28126
  :L) ac_source=$1;;
 
28127
  :[FH])
 
28128
    ac_file_inputs=
 
28129
    for ac_f
 
28130
    do
 
28131
      case $ac_f in
 
28132
      -) ac_f="$tmp/stdin";;
 
28133
      *) # Look for the file first in the build tree, then in the source tree
 
28134
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
28135
         # because $ac_f cannot contain `:'.
 
28136
         test -f "$ac_f" ||
 
28137
           case $ac_f in
 
28138
           [\\/$]*) false;;
 
28139
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
28140
           esac ||
 
28141
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 
28142
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 
28143
   { (exit 1); exit 1; }; };;
 
28144
      esac
 
28145
      ac_file_inputs="$ac_file_inputs $ac_f"
 
28146
    done
 
28147
 
 
28148
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
28149
    # use $as_me), people would be surprised to read:
 
28150
    #    /* config.h.  Generated by config.status.  */
 
28151
    configure_input="Generated from "`IFS=:
 
28152
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
 
28153
    if test x"$ac_file" != x-; then
 
28154
      configure_input="$ac_file.  $configure_input"
 
28155
      { echo "$as_me:$LINENO: creating $ac_file" >&5
 
28156
echo "$as_me: creating $ac_file" >&6;}
 
28157
    fi
 
28158
 
 
28159
    case $ac_tag in
 
28160
    *:-:* | *:-) cat >"$tmp/stdin";;
 
28161
    esac
 
28162
    ;;
 
28163
  esac
 
28164
 
 
28165
  ac_dir=`$as_dirname -- "$ac_file" ||
22989
28166
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22990
28167
         X"$ac_file" : 'X\(//\)[^/]' \| \
22991
28168
         X"$ac_file" : 'X\(//\)$' \| \
22992
 
         X"$ac_file" : 'X\(/\)' \| \
22993
 
         .     : '\(.\)' 2>/dev/null ||
 
28169
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22994
28170
echo X"$ac_file" |
22995
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22996
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22997
 
          /^X\(\/\/\)$/{ s//\1/; q; }
22998
 
          /^X\(\/\).*/{ s//\1/; q; }
22999
 
          s/.*/./; q'`
23000
 
  { if $as_mkdir_p; then
23001
 
    mkdir -p "$ac_dir"
23002
 
  else
23003
 
    as_dir="$ac_dir"
 
28171
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
28172
            s//\1/
 
28173
            q
 
28174
          }
 
28175
          /^X\(\/\/\)[^/].*/{
 
28176
            s//\1/
 
28177
            q
 
28178
          }
 
28179
          /^X\(\/\/\)$/{
 
28180
            s//\1/
 
28181
            q
 
28182
          }
 
28183
          /^X\(\/\).*/{
 
28184
            s//\1/
 
28185
            q
 
28186
          }
 
28187
          s/.*/./; q'`
 
28188
  { as_dir="$ac_dir"
 
28189
  case $as_dir in #(
 
28190
  -*) as_dir=./$as_dir;;
 
28191
  esac
 
28192
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23004
28193
    as_dirs=
23005
 
    while test ! -d "$as_dir"; do
23006
 
      as_dirs="$as_dir $as_dirs"
23007
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
28194
    while :; do
 
28195
      case $as_dir in #(
 
28196
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
28197
      *) as_qdir=$as_dir;;
 
28198
      esac
 
28199
      as_dirs="'$as_qdir' $as_dirs"
 
28200
      as_dir=`$as_dirname -- "$as_dir" ||
23008
28201
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23009
28202
         X"$as_dir" : 'X\(//\)[^/]' \| \
23010
28203
         X"$as_dir" : 'X\(//\)$' \| \
23011
 
         X"$as_dir" : 'X\(/\)' \| \
23012
 
         .     : '\(.\)' 2>/dev/null ||
 
28204
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23013
28205
echo X"$as_dir" |
23014
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23015
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23016
 
          /^X\(\/\/\)$/{ s//\1/; q; }
23017
 
          /^X\(\/\).*/{ s//\1/; q; }
23018
 
          s/.*/./; q'`
 
28206
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
28207
            s//\1/
 
28208
            q
 
28209
          }
 
28210
          /^X\(\/\/\)[^/].*/{
 
28211
            s//\1/
 
28212
            q
 
28213
          }
 
28214
          /^X\(\/\/\)$/{
 
28215
            s//\1/
 
28216
            q
 
28217
          }
 
28218
          /^X\(\/\).*/{
 
28219
            s//\1/
 
28220
            q
 
28221
          }
 
28222
          s/.*/./; q'`
 
28223
      test -d "$as_dir" && break
23019
28224
    done
23020
 
    test ! -n "$as_dirs" || mkdir $as_dirs
23021
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23022
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
28225
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
28226
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
28227
echo "$as_me: error: cannot create directory $as_dir" >&2;}
23023
28228
   { (exit 1); exit 1; }; }; }
23024
 
 
23025
28229
  ac_builddir=.
23026
28230
 
23027
 
if test "$ac_dir" != .; then
 
28231
case "$ac_dir" in
 
28232
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
28233
*)
23028
28234
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23029
 
  # A "../" for each directory in $ac_dir_suffix.
23030
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23031
 
else
23032
 
  ac_dir_suffix= ac_top_builddir=
23033
 
fi
 
28235
  # A ".." for each directory in $ac_dir_suffix.
 
28236
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
28237
  case $ac_top_builddir_sub in
 
28238
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
28239
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
28240
  esac ;;
 
28241
esac
 
28242
ac_abs_top_builddir=$ac_pwd
 
28243
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
28244
# for backward compatibility:
 
28245
ac_top_builddir=$ac_top_build_prefix
23034
28246
 
23035
28247
case $srcdir in
23036
 
  .)  # No --srcdir option.  We are building in place.
 
28248
  .)  # We are building in place.
23037
28249
    ac_srcdir=.
23038
 
    if test -z "$ac_top_builddir"; then
23039
 
       ac_top_srcdir=.
23040
 
    else
23041
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23042
 
    fi ;;
23043
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
28250
    ac_top_srcdir=$ac_top_builddir_sub
 
28251
    ac_abs_top_srcdir=$ac_pwd ;;
 
28252
  [\\/]* | ?:[\\/]* )  # Absolute name.
23044
28253
    ac_srcdir=$srcdir$ac_dir_suffix;
23045
 
    ac_top_srcdir=$srcdir ;;
23046
 
  *) # Relative path.
23047
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23048
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
23049
 
esac
23050
 
 
23051
 
# Do not use `cd foo && pwd` to compute absolute paths, because
23052
 
# the directories may not exist.
23053
 
case `pwd` in
23054
 
.) ac_abs_builddir="$ac_dir";;
23055
 
*)
23056
 
  case "$ac_dir" in
23057
 
  .) ac_abs_builddir=`pwd`;;
23058
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23059
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
23060
 
  esac;;
23061
 
esac
23062
 
case $ac_abs_builddir in
23063
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
23064
 
*)
23065
 
  case ${ac_top_builddir}. in
23066
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
23067
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23068
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23069
 
  esac;;
23070
 
esac
23071
 
case $ac_abs_builddir in
23072
 
.) ac_abs_srcdir=$ac_srcdir;;
23073
 
*)
23074
 
  case $ac_srcdir in
23075
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
23076
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23077
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23078
 
  esac;;
23079
 
esac
23080
 
case $ac_abs_builddir in
23081
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
23082
 
*)
23083
 
  case $ac_top_srcdir in
23084
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
23085
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23086
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23087
 
  esac;;
23088
 
esac
23089
 
 
 
28254
    ac_top_srcdir=$srcdir
 
28255
    ac_abs_top_srcdir=$srcdir ;;
 
28256
  *) # Relative name.
 
28257
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
28258
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
28259
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
28260
esac
 
28261
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
28262
 
 
28263
 
 
28264
  case $ac_mode in
 
28265
  :F)
 
28266
  #
 
28267
  # CONFIG_FILE
 
28268
  #
23090
28269
 
23091
28270
  case $INSTALL in
23092
28271
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23093
 
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23094
 
  esac
23095
 
 
23096
 
  if test x"$ac_file" != x-; then
23097
 
    { echo "$as_me:$LINENO: creating $ac_file" >&5
23098
 
echo "$as_me: creating $ac_file" >&6;}
23099
 
    rm -f "$ac_file"
23100
 
  fi
23101
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
23102
 
  # use $as_me), people would be surprised to read:
23103
 
  #    /* config.h.  Generated by config.status.  */
23104
 
  if test x"$ac_file" = x-; then
23105
 
    configure_input=
23106
 
  else
23107
 
    configure_input="$ac_file.  "
23108
 
  fi
23109
 
  configure_input=$configure_input"Generated from `echo $ac_file_in |
23110
 
                                     sed 's,.*/,,'` by configure."
23111
 
 
23112
 
  # First look for the input files in the build tree, otherwise in the
23113
 
  # src tree.
23114
 
  ac_file_inputs=`IFS=:
23115
 
    for f in $ac_file_in; do
23116
 
      case $f in
23117
 
      -) echo $tmp/stdin ;;
23118
 
      [\\/$]*)
23119
 
         # Absolute (can't be DOS-style, as IFS=:)
23120
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23121
 
echo "$as_me: error: cannot find input file: $f" >&2;}
23122
 
   { (exit 1); exit 1; }; }
23123
 
         echo "$f";;
23124
 
      *) # Relative
23125
 
         if test -f "$f"; then
23126
 
           # Build tree
23127
 
           echo "$f"
23128
 
         elif test -f "$srcdir/$f"; then
23129
 
           # Source tree
23130
 
           echo "$srcdir/$f"
23131
 
         else
23132
 
           # /dev/null tree
23133
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23134
 
echo "$as_me: error: cannot find input file: $f" >&2;}
23135
 
   { (exit 1); exit 1; }; }
23136
 
         fi;;
23137
 
      esac
23138
 
    done` || { (exit 1); exit 1; }
23139
 
_ACEOF
 
28272
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
28273
  esac
 
28274
  ac_MKDIR_P=$MKDIR_P
 
28275
  case $MKDIR_P in
 
28276
  [\\/$]* | ?:[\\/]* ) ;;
 
28277
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
28278
  esac
 
28279
_ACEOF
 
28280
 
 
28281
cat >>$CONFIG_STATUS <<\_ACEOF
 
28282
# If the template does not know about datarootdir, expand it.
 
28283
# FIXME: This hack should be removed a few years after 2.60.
 
28284
ac_datarootdir_hack=; ac_datarootdir_seen=
 
28285
 
 
28286
case `sed -n '/datarootdir/ {
 
28287
  p
 
28288
  q
 
28289
}
 
28290
/@datadir@/p
 
28291
/@docdir@/p
 
28292
/@infodir@/p
 
28293
/@localedir@/p
 
28294
/@mandir@/p
 
28295
' $ac_file_inputs` in
 
28296
*datarootdir*) ac_datarootdir_seen=yes;;
 
28297
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
28298
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
28299
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
28300
_ACEOF
 
28301
cat >>$CONFIG_STATUS <<_ACEOF
 
28302
  ac_datarootdir_hack='
 
28303
  s&@datadir@&$datadir&g
 
28304
  s&@docdir@&$docdir&g
 
28305
  s&@infodir@&$infodir&g
 
28306
  s&@localedir@&$localedir&g
 
28307
  s&@mandir@&$mandir&g
 
28308
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
28309
esac
 
28310
_ACEOF
 
28311
 
 
28312
# Neutralize VPATH when `$srcdir' = `.'.
 
28313
# Shell code in configure.ac might set extrasub.
 
28314
# FIXME: do we really want to maintain this feature?
23140
28315
cat >>$CONFIG_STATUS <<_ACEOF
23141
28316
  sed "$ac_vpsub
23142
28317
$extrasub
23144
28319
cat >>$CONFIG_STATUS <<\_ACEOF
23145
28320
:t
23146
28321
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23147
 
s,@configure_input@,$configure_input,;t t
23148
 
s,@srcdir@,$ac_srcdir,;t t
23149
 
s,@abs_srcdir@,$ac_abs_srcdir,;t t
23150
 
s,@top_srcdir@,$ac_top_srcdir,;t t
23151
 
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23152
 
s,@builddir@,$ac_builddir,;t t
23153
 
s,@abs_builddir@,$ac_abs_builddir,;t t
23154
 
s,@top_builddir@,$ac_top_builddir,;t t
23155
 
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23156
 
s,@INSTALL@,$ac_INSTALL,;t t
23157
 
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23158
 
  rm -f $tmp/stdin
23159
 
  if test x"$ac_file" != x-; then
23160
 
    mv $tmp/out $ac_file
23161
 
  else
23162
 
    cat $tmp/out
23163
 
    rm -f $tmp/out
23164
 
  fi
23165
 
 
23166
 
done
 
28322
s&@configure_input@&$configure_input&;t t
 
28323
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
28324
s&@srcdir@&$ac_srcdir&;t t
 
28325
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
28326
s&@top_srcdir@&$ac_top_srcdir&;t t
 
28327
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
28328
s&@builddir@&$ac_builddir&;t t
 
28329
s&@abs_builddir@&$ac_abs_builddir&;t t
 
28330
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
28331
s&@INSTALL@&$ac_INSTALL&;t t
 
28332
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
28333
$ac_datarootdir_hack
 
28334
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
 
28335
 
 
28336
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
28337
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
28338
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
28339
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
28340
which seems to be undefined.  Please make sure it is defined." >&5
 
28341
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
28342
which seems to be undefined.  Please make sure it is defined." >&2;}
 
28343
 
 
28344
  rm -f "$tmp/stdin"
 
28345
  case $ac_file in
 
28346
  -) cat "$tmp/out"; rm -f "$tmp/out";;
 
28347
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
 
28348
  esac
 
28349
 ;;
 
28350
  :H)
 
28351
  #
 
28352
  # CONFIG_HEADER
 
28353
  #
23167
28354
_ACEOF
23168
 
cat >>$CONFIG_STATUS <<\_ACEOF
23169
 
 
23170
 
#
23171
 
# CONFIG_HEADER section.
23172
 
#
23173
 
 
23174
 
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23175
 
# NAME is the cpp macro being defined and VALUE is the value it is being given.
23176
 
#
23177
 
# ac_d sets the value in "#define NAME VALUE" lines.
23178
 
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
23179
 
ac_dB='[         ].*$,\1#\2'
 
28355
 
 
28356
# Transform confdefs.h into a sed script `conftest.defines', that
 
28357
# substitutes the proper values into config.h.in to produce config.h.
 
28358
rm -f conftest.defines conftest.tail
 
28359
# First, append a space to every undef/define line, to ease matching.
 
28360
echo 's/$/ /' >conftest.defines
 
28361
# Then, protect against being on the right side of a sed subst, or in
 
28362
# an unquoted here document, in config.status.  If some macros were
 
28363
# called several times there might be several #defines for the same
 
28364
# symbol, which is useless.  But do not sort them, since the last
 
28365
# AC_DEFINE must be honored.
 
28366
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
28367
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
 
28368
# NAME is the cpp macro being defined, VALUE is the value it is being given.
 
28369
# PARAMS is the parameter list in the macro definition--in most cases, it's
 
28370
# just an empty string.
 
28371
ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
 
28372
ac_dB='\\)[      (].*,\\1define\\2'
23180
28373
ac_dC=' '
23181
 
ac_dD=',;t'
23182
 
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23183
 
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
23184
 
ac_uB='$,\1#\2define\3'
23185
 
ac_uC=' '
23186
 
ac_uD=',;t'
23187
 
 
23188
 
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23189
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23190
 
  case $ac_file in
23191
 
  - | *:- | *:-:* ) # input from stdin
23192
 
        cat >$tmp/stdin
23193
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23194
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23195
 
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23196
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23197
 
  * )   ac_file_in=$ac_file.in ;;
23198
 
  esac
23199
 
 
23200
 
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23201
 
echo "$as_me: creating $ac_file" >&6;}
23202
 
 
23203
 
  # First look for the input files in the build tree, otherwise in the
23204
 
  # src tree.
23205
 
  ac_file_inputs=`IFS=:
23206
 
    for f in $ac_file_in; do
23207
 
      case $f in
23208
 
      -) echo $tmp/stdin ;;
23209
 
      [\\/$]*)
23210
 
         # Absolute (can't be DOS-style, as IFS=:)
23211
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23212
 
echo "$as_me: error: cannot find input file: $f" >&2;}
23213
 
   { (exit 1); exit 1; }; }
23214
 
         # Do quote $f, to prevent DOS paths from being IFS'd.
23215
 
         echo "$f";;
23216
 
      *) # Relative
23217
 
         if test -f "$f"; then
23218
 
           # Build tree
23219
 
           echo "$f"
23220
 
         elif test -f "$srcdir/$f"; then
23221
 
           # Source tree
23222
 
           echo "$srcdir/$f"
23223
 
         else
23224
 
           # /dev/null tree
23225
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23226
 
echo "$as_me: error: cannot find input file: $f" >&2;}
23227
 
   { (exit 1); exit 1; }; }
23228
 
         fi;;
23229
 
      esac
23230
 
    done` || { (exit 1); exit 1; }
23231
 
  # Remove the trailing spaces.
23232
 
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
23233
 
 
23234
 
_ACEOF
23235
 
 
23236
 
# Transform confdefs.h into two sed scripts, `conftest.defines' and
23237
 
# `conftest.undefs', that substitutes the proper values into
23238
 
# config.h.in to produce config.h.  The first handles `#define'
23239
 
# templates, and the second `#undef' templates.
23240
 
# And first: Protect against being on the right side of a sed subst in
23241
 
# config.status.  Protect against being in an unquoted here document
23242
 
# in config.status.
23243
 
rm -f conftest.defines conftest.undefs
23244
 
# Using a here document instead of a string reduces the quoting nightmare.
23245
 
# Putting comments in sed scripts is not portable.
23246
 
#
23247
 
# `end' is used to avoid that the second main sed command (meant for
23248
 
# 0-ary CPP macros) applies to n-ary macro definitions.
23249
 
# See the Autoconf documentation for `clear'.
23250
 
cat >confdef2sed.sed <<\_ACEOF
23251
 
s/[\\&,]/\\&/g
23252
 
s,[\\$`],\\&,g
23253
 
t clear
23254
 
: clear
23255
 
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23256
 
t end
23257
 
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23258
 
: end
23259
 
_ACEOF
23260
 
# If some macros were called several times there might be several times
23261
 
# the same #defines, which is useless.  Nevertheless, we may not want to
23262
 
# sort them, since we want the *last* AC-DEFINE to be honored.
23263
 
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23264
 
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23265
 
rm -f confdef2sed.sed
23266
 
 
23267
 
# This sed command replaces #undef with comments.  This is necessary, for
 
28374
ac_dD=' ,'
 
28375
 
 
28376
uniq confdefs.h |
 
28377
  sed -n '
 
28378
        t rset
 
28379
        :rset
 
28380
        s/^[     ]*#[    ]*define[       ][      ]*//
 
28381
        t ok
 
28382
        d
 
28383
        :ok
 
28384
        s/[\\&,]/\\&/g
 
28385
        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
 
28386
        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
 
28387
  ' >>conftest.defines
 
28388
 
 
28389
# Remove the space that was appended to ease matching.
 
28390
# Then replace #undef with comments.  This is necessary, for
23268
28391
# example, in the case of _POSIX_SOURCE, which is predefined and required
23269
28392
# on some systems where configure will not decide to define it.
23270
 
cat >>conftest.undefs <<\_ACEOF
23271
 
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
28393
# (The regexp can be short, since the line contains either #define or #undef.)
 
28394
echo 's/ $//
 
28395
s,^[     #]*u.*,/* & */,' >>conftest.defines
 
28396
 
 
28397
# Break up conftest.defines:
 
28398
ac_max_sed_lines=50
 
28399
 
 
28400
# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
 
28401
# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
 
28402
# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
 
28403
# et cetera.
 
28404
ac_in='$ac_file_inputs'
 
28405
ac_out='"$tmp/out1"'
 
28406
ac_nxt='"$tmp/out2"'
 
28407
 
 
28408
while :
 
28409
do
 
28410
  # Write a here document:
 
28411
    cat >>$CONFIG_STATUS <<_ACEOF
 
28412
    # First, check the format of the line:
 
28413
    cat >"\$tmp/defines.sed" <<\\CEOF
 
28414
/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
 
28415
/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
 
28416
b
 
28417
:def
23272
28418
_ACEOF
23273
 
 
23274
 
# Break up conftest.defines because some shells have a limit on the size
23275
 
# of here documents, and old seds have small limits too (100 cmds).
23276
 
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23277
 
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23278
 
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23279
 
echo '  :' >>$CONFIG_STATUS
23280
 
rm -f conftest.tail
23281
 
while grep . conftest.defines >/dev/null
23282
 
do
23283
 
  # Write a limited-size here document to $tmp/defines.sed.
23284
 
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23285
 
  # Speed up: don't consider the non `#define' lines.
23286
 
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
23287
 
  # Work around the forget-to-reset-the-flag bug.
23288
 
  echo 't clr' >>$CONFIG_STATUS
23289
 
  echo ': clr' >>$CONFIG_STATUS
23290
 
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
28419
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23291
28420
  echo 'CEOF
23292
 
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
23293
 
  rm -f $tmp/in
23294
 
  mv $tmp/out $tmp/in
23295
 
' >>$CONFIG_STATUS
23296
 
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
28421
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
 
28422
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
 
28423
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
 
28424
  grep . conftest.tail >/dev/null || break
23297
28425
  rm -f conftest.defines
23298
28426
  mv conftest.tail conftest.defines
23299
28427
done
23300
 
rm -f conftest.defines
23301
 
echo '  fi # grep' >>$CONFIG_STATUS
23302
 
echo >>$CONFIG_STATUS
23303
 
 
23304
 
# Break up conftest.undefs because some shells have a limit on the size
23305
 
# of here documents, and old seds have small limits too (100 cmds).
23306
 
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
23307
 
rm -f conftest.tail
23308
 
while grep . conftest.undefs >/dev/null
23309
 
do
23310
 
  # Write a limited-size here document to $tmp/undefs.sed.
23311
 
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23312
 
  # Speed up: don't consider the non `#undef'
23313
 
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
23314
 
  # Work around the forget-to-reset-the-flag bug.
23315
 
  echo 't clr' >>$CONFIG_STATUS
23316
 
  echo ': clr' >>$CONFIG_STATUS
23317
 
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23318
 
  echo 'CEOF
23319
 
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23320
 
  rm -f $tmp/in
23321
 
  mv $tmp/out $tmp/in
23322
 
' >>$CONFIG_STATUS
23323
 
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23324
 
  rm -f conftest.undefs
23325
 
  mv conftest.tail conftest.undefs
23326
 
done
23327
 
rm -f conftest.undefs
23328
 
 
 
28428
rm -f conftest.defines conftest.tail
 
28429
 
 
28430
echo "ac_result=$ac_in" >>$CONFIG_STATUS
23329
28431
cat >>$CONFIG_STATUS <<\_ACEOF
23330
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
23331
 
  # use $as_me), people would be surprised to read:
23332
 
  #    /* config.h.  Generated by config.status.  */
23333
 
  if test x"$ac_file" = x-; then
23334
 
    echo "/* Generated by configure.  */" >$tmp/config.h
23335
 
  else
23336
 
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
23337
 
  fi
23338
 
  cat $tmp/in >>$tmp/config.h
23339
 
  rm -f $tmp/in
23340
28432
  if test x"$ac_file" != x-; then
23341
 
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
28433
    echo "/* $configure_input  */" >"$tmp/config.h"
 
28434
    cat "$ac_result" >>"$tmp/config.h"
 
28435
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23342
28436
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23343
28437
echo "$as_me: $ac_file is unchanged" >&6;}
23344
28438
    else
23345
 
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23346
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23347
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
23348
 
         X"$ac_file" : 'X\(//\)$' \| \
23349
 
         X"$ac_file" : 'X\(/\)' \| \
23350
 
         .     : '\(.\)' 2>/dev/null ||
23351
 
echo X"$ac_file" |
23352
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23353
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23354
 
          /^X\(\/\/\)$/{ s//\1/; q; }
23355
 
          /^X\(\/\).*/{ s//\1/; q; }
23356
 
          s/.*/./; q'`
23357
 
      { if $as_mkdir_p; then
23358
 
    mkdir -p "$ac_dir"
23359
 
  else
23360
 
    as_dir="$ac_dir"
23361
 
    as_dirs=
23362
 
    while test ! -d "$as_dir"; do
23363
 
      as_dirs="$as_dir $as_dirs"
23364
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23365
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23366
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
23367
 
         X"$as_dir" : 'X\(//\)$' \| \
23368
 
         X"$as_dir" : 'X\(/\)' \| \
23369
 
         .     : '\(.\)' 2>/dev/null ||
23370
 
echo X"$as_dir" |
23371
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23372
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23373
 
          /^X\(\/\/\)$/{ s//\1/; q; }
23374
 
          /^X\(\/\).*/{ s//\1/; q; }
23375
 
          s/.*/./; q'`
23376
 
    done
23377
 
    test ! -n "$as_dirs" || mkdir $as_dirs
23378
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23379
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23380
 
   { (exit 1); exit 1; }; }; }
23381
 
 
23382
28439
      rm -f $ac_file
23383
 
      mv $tmp/config.h $ac_file
 
28440
      mv "$tmp/config.h" $ac_file
23384
28441
    fi
23385
28442
  else
23386
 
    cat $tmp/config.h
23387
 
    rm -f $tmp/config.h
 
28443
    echo "/* $configure_input  */"
 
28444
    cat "$ac_result"
23388
28445
  fi
23389
 
done
23390
 
_ACEOF
23391
 
cat >>$CONFIG_STATUS <<\_ACEOF
23392
 
 
23393
 
#
23394
 
# CONFIG_COMMANDS section.
23395
 
#
23396
 
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23397
 
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23398
 
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23399
 
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23400
 
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23401
 
         X"$ac_dest" : 'X\(//\)[^/]' \| \
23402
 
         X"$ac_dest" : 'X\(//\)$' \| \
23403
 
         X"$ac_dest" : 'X\(/\)' \| \
23404
 
         .     : '\(.\)' 2>/dev/null ||
23405
 
echo X"$ac_dest" |
23406
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23407
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23408
 
          /^X\(\/\/\)$/{ s//\1/; q; }
23409
 
          /^X\(\/\).*/{ s//\1/; q; }
23410
 
          s/.*/./; q'`
23411
 
  { if $as_mkdir_p; then
23412
 
    mkdir -p "$ac_dir"
23413
 
  else
23414
 
    as_dir="$ac_dir"
23415
 
    as_dirs=
23416
 
    while test ! -d "$as_dir"; do
23417
 
      as_dirs="$as_dir $as_dirs"
23418
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23419
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23420
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
23421
 
         X"$as_dir" : 'X\(//\)$' \| \
23422
 
         X"$as_dir" : 'X\(/\)' \| \
23423
 
         .     : '\(.\)' 2>/dev/null ||
23424
 
echo X"$as_dir" |
23425
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23426
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23427
 
          /^X\(\/\/\)$/{ s//\1/; q; }
23428
 
          /^X\(\/\).*/{ s//\1/; q; }
23429
 
          s/.*/./; q'`
23430
 
    done
23431
 
    test ! -n "$as_dirs" || mkdir $as_dirs
23432
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23433
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23434
 
   { (exit 1); exit 1; }; }; }
23435
 
 
23436
 
  ac_builddir=.
23437
 
 
23438
 
if test "$ac_dir" != .; then
23439
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23440
 
  # A "../" for each directory in $ac_dir_suffix.
23441
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23442
 
else
23443
 
  ac_dir_suffix= ac_top_builddir=
23444
 
fi
23445
 
 
23446
 
case $srcdir in
23447
 
  .)  # No --srcdir option.  We are building in place.
23448
 
    ac_srcdir=.
23449
 
    if test -z "$ac_top_builddir"; then
23450
 
       ac_top_srcdir=.
23451
 
    else
23452
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23453
 
    fi ;;
23454
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
23455
 
    ac_srcdir=$srcdir$ac_dir_suffix;
23456
 
    ac_top_srcdir=$srcdir ;;
23457
 
  *) # Relative path.
23458
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23459
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
23460
 
esac
23461
 
 
23462
 
# Do not use `cd foo && pwd` to compute absolute paths, because
23463
 
# the directories may not exist.
23464
 
case `pwd` in
23465
 
.) ac_abs_builddir="$ac_dir";;
23466
 
*)
23467
 
  case "$ac_dir" in
23468
 
  .) ac_abs_builddir=`pwd`;;
23469
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23470
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
23471
 
  esac;;
23472
 
esac
23473
 
case $ac_abs_builddir in
23474
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
23475
 
*)
23476
 
  case ${ac_top_builddir}. in
23477
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
23478
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23479
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23480
 
  esac;;
23481
 
esac
23482
 
case $ac_abs_builddir in
23483
 
.) ac_abs_srcdir=$ac_srcdir;;
23484
 
*)
23485
 
  case $ac_srcdir in
23486
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
23487
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23488
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23489
 
  esac;;
23490
 
esac
23491
 
case $ac_abs_builddir in
23492
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
23493
 
*)
23494
 
  case $ac_top_srcdir in
23495
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
23496
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23497
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23498
 
  esac;;
23499
 
esac
23500
 
 
23501
 
 
23502
 
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23503
 
echo "$as_me: executing $ac_dest commands" >&6;}
23504
 
  case $ac_dest in
23505
 
    default-1 )
 
28446
  rm -f "$tmp/out12"
 
28447
 ;;
 
28448
 
 
28449
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
 
28450
echo "$as_me: executing $ac_file commands" >&6;}
 
28451
 ;;
 
28452
  esac
 
28453
 
 
28454
 
 
28455
  case $ac_file$ac_mode in
 
28456
    "po-directories":C)
23506
28457
    for ac_file in $CONFIG_FILES; do
23507
28458
      # Support "outfile[:infile[:infile...]]"
23508
28459
      case "$ac_file" in
23539
28490
              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
23540
28491
            fi
23541
28492
            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
23542
 
            # Hide the ALL_LINGUAS assigment from automake.
 
28493
            # Hide the ALL_LINGUAS assigment from automake < 1.5.
23543
28494
            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
23544
28495
            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
23545
28496
          else
23546
28497
            # The set of available languages was given in configure.in.
 
28498
            # Hide the ALL_LINGUAS assigment from automake < 1.5.
23547
28499
            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
23548
28500
          fi
23549
28501
          # Compute POFILES
23614
28566
        ;;
23615
28567
      esac
23616
28568
    done ;;
 
28569
 
23617
28570
  esac
23618
 
done
23619
 
_ACEOF
 
28571
done # for ac_tag
23620
28572
 
23621
 
cat >>$CONFIG_STATUS <<\_ACEOF
23622
28573
 
23623
28574
{ (exit 0); exit 0; }
23624
28575
_ACEOF